; ModuleID = 'test'
source_filename = "test"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"

%P_inu_im_1wnd_3lvl_r2021b_T.68 = type { double, double, double, double, [2 x double], [2 x double], double, [2 x double], [16 x double], [16 x double], [2 x double], [16 x double], double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, [16 x double], double, double, [2 x double], double, [16 x double], double, double, [2 x double], double, [16 x double], [4 x double], double, [4 x double], double, double, double, double, double, double, double, [2 x double], [400 x double], [440 x double], [580 x double], [638 x double], [20 x double], [2 x double], [2 x double], double, double, double, double, [3 x double], double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, [2 x double], double, double, double, double, double, double, double, double, double, double, double, double, double, double, [6 x double], [6 x double], [8 x double], [8 x double], [10 x double], [10 x double], [8 x double], [8 x double], [8 x double], [8 x double], [8 x double], [8 x double], double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, [3 x double], double, [18 x double], double, double, [16 x double], double, [16 x double], [16 x double], double, double, [2 x double], double, double, double, double, double, double, double, double, double, double, double, double, double, double, i8, i8, i8, i8, i8, i8, i8, i8, i8, [7 x i8] }
%DW_inu_im_1wnd_3lvl_r2021b_T.67 = type { [4 x double], [4 x double], double, double, double, [20 x double], [4 x double], double, double, double, [35 x double], [3 x double], double, double, double, double, [3 x double], [3 x double], [16 x double], [16 x double], [16 x double], [16 x double], [5 x double], [24 x i8*], [2 x i8*], [4 x i8*], [2 x i8*], [4 x i8*], [4 x i8*], [4 x i8*], [2 x i8*], [3 x i8*], [2 x i8*], i8*, i8*, [2 x i8*], i8*, i8*, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [4 x i32], i32, i32, [3 x i32], i32, [11 x i32], [5 x i32], i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, [3 x i8] }
%B_inu_im_1wnd_3lvl_r2021b_T.66 = type { [4 x double], double, [2 x double], [29 x double], [18 x double], [2 x double], [2 x double], [4 x double], double, double, double, [35 x double], [12 x double], double, double, [3 x double], [17 x double], [3 x double], double, double, double, double, double, double, double, double, double, double, double, [18 x double], double, double, [16 x double], double, [16 x double], [16 x double], double, double, [2 x double], double, double, double, double, double, double, double, double, double, double, double, double, double, [2 x double], double, double, [16 x double], [16 x double], [2 x double], double, double, [16 x double], [16 x double], double, double, double, double, [16 x double], [16 x double], double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, [16 x double], [16 x double], double, [2 x double], [16 x double], [16 x double], [2 x double], [16 x double], [3 x double], [3 x double], i8, [7 x i8] }

@rtb_Constant_l = internal global i8 0
@rtb_Constant1 = internal global i8 0
@rtb_Constant_c = internal global i8 0
@rtb_Constant1_e = internal global i8 0
@rtb_Constant2 = internal global i8 0
@rtb_Constant_l2 = internal global i8 0
@rtb_Constant1_eq = internal global i8 0
@rtb_Constant2_j = internal global i8 0

define double @inu_im_1wnd_3lvl_r2021b_rt_urand_Upu32_Yd_f_pw_snf(i32* %u) {
inu_im_1wnd_3lvl_r2021b_rt_urand_Upu32_Yd_f_pw_snf_entry:
  %u_ = alloca i32*, align 8
  store i32* %u, i32** %u_, align 8
  %lo_ = alloca i32, align 4
  %hi_ = alloca i32, align 4
  %y_ = alloca double, align 8
  %u_2 = load i32, i32* %u, align 1
  %tmp0 = urem i32 %u_2, 127773
  %tmp1 = mul nuw i32 %tmp0, 16807
  store i32 %tmp1, i32* %lo_, align 4
  %tmp2 = udiv i32 %u_2, 127773
  %tmp3 = mul nuw nsw i32 %tmp2, 2836
  store i32 %tmp3, i32* %hi_, align 4
  %0 = icmp ult i32 %tmp1, %tmp3
  br i1 %0, label %true, label %false

true:                                             ; preds = %inu_im_1wnd_3lvl_r2021b_rt_urand_Upu32_Yd_f_pw_snf_entry
  %hi_10.neg = sub i32 0, %tmp3
  %tmp5.neg = add i32 %hi_10.neg, 2147483647
  %tmp6 = add i32 %tmp5.neg, %tmp1
  store i32 %tmp6, i32* %u, align 1
  br label %merge

false:                                            ; preds = %inu_im_1wnd_3lvl_r2021b_rt_urand_Upu32_Yd_f_pw_snf_entry
  %tmp4 = sub i32 %tmp1, %tmp3
  store i32 %tmp4, i32* %u, align 1
  br label %merge

merge:                                            ; preds = %true, %false
  %u_14 = phi i32 [ %tmp6, %true ], [ %tmp4, %false ]
  %1 = uitofp i32 %u_14 to double
  %tmp7 = fmul double %1, 0x3E00000000200000
  store double %tmp7, double* %y_, align 8
  ret double %tmp7
}

define double @inu_im_1wnd_3lvl_r2021b_rt_nrand_Upu32_Yd_f_pw_snf(i32* %u) {
inu_im_1wnd_3lvl_r2021b_rt_nrand_Upu32_Yd_f_pw_snf_entry:
  %u_ = alloca i32*, align 8
  store i32* %u, i32** %u_, align 8
  %sr_ = alloca double, align 8
  %si_ = alloca double, align 8
  %y_ = alloca double, align 8
  br label %true

true:                                             ; preds = %true, %inu_im_1wnd_3lvl_r2021b_rt_nrand_Upu32_Yd_f_pw_snf_entry
  %0 = call double @inu_im_1wnd_3lvl_r2021b_rt_urand_Upu32_Yd_f_pw_snf(i32* %u)
  %tmp0 = fmul double %0, 2.000000e+00
  %tmp1 = fadd double %tmp0, -1.000000e+00
  store double %tmp1, double* %sr_, align 8
  %1 = call double @inu_im_1wnd_3lvl_r2021b_rt_urand_Upu32_Yd_f_pw_snf(i32* %u)
  %tmp2 = fmul double %1, 2.000000e+00
  %tmp3 = fadd double %tmp2, -1.000000e+00
  %tmp4 = fmul double %tmp1, %tmp1
  %tmp5 = fmul double %tmp3, %tmp3
  %tmp6 = fadd double %tmp4, %tmp5
  store double %tmp6, double* %si_, align 8
  %2 = fcmp ogt double %tmp6, 1.000000e+00
  br i1 %2, label %true, label %false

false:                                            ; preds = %true
  %3 = call double @muDoubleScalarLog(double %tmp6)
  %tmp7 = fmul double %3, -2.000000e+00
  %tmp8 = fdiv double %tmp7, %tmp6
  %4 = call double @muDoubleScalarSqrt(double %tmp8)
  %tmp9 = fmul double %4, %tmp1
  store double %tmp9, double* %y_, align 8
  ret double %tmp9
}

declare double @muDoubleScalarLog(double)

declare double @muDoubleScalarSqrt(double)

define void @inu_im_1wnd_3lvl_r2021b_rt_invd4x4_snf([16 x double]* %u, [16 x double]* %y) {
inu_im_1wnd_3lvl_r2021b_rt_invd4x4_snf_entry:
  %u_ = alloca [16 x double]*, align 8
  store [16 x double]* %u, [16 x double]** %u_, align 8
  %y_ = alloca [16 x double]*, align 8
  store [16 x double]* %y, [16 x double]** %y_, align 8
  %p_ = alloca [4 x i8], align 1
  %ipiv_ = alloca [4 x i8], align 1
  %pipk_ = alloca i32, align 4
  %jj_ = alloca i32, align 4
  %jp1j_ = alloca i32, align 4
  %jBcol_ = alloca i32, align 4
  %c_ = alloca i32, align 4
  %x_ = alloca [16 x double], align 8
  %ix_ = alloca i32, align 4
  %smax_ = alloca double, align 8
  %s_ = alloca double, align 8
  %iy_ = alloca i32, align 4
  %jA_ = alloca i32, align 4
  %ijA_ = alloca i32, align 4
  %p_0_ = alloca i8, align 1
  br label %merge

true:                                             ; preds = %merge
  %0 = sext i32 %ix_227 to i64
  %1 = getelementptr inbounds [16 x double], [16 x double]* %y, i64 0, i64 %0
  store double 0.000000e+00, double* %1, align 1
  %2 = getelementptr inbounds [16 x double], [16 x double]* %u, i64 0, i64 %0
  %u__el = load double, double* %2, align 1
  %3 = getelementptr inbounds [16 x double], [16 x double]* %x_, i64 0, i64 %0
  store double %u__el, double* %3, align 8
  %tmp103 = add i32 %ix_227, 1
  br label %merge

false:                                            ; preds = %merge
  %4 = getelementptr inbounds [4 x i8], [4 x i8]* %ipiv_, i64 0, i64 0
  store i8 1, i8* %4, align 1
  %5 = getelementptr inbounds [4 x i8], [4 x i8]* %ipiv_, i64 0, i64 1
  store i8 2, i8* %5, align 1
  %6 = getelementptr inbounds [4 x i8], [4 x i8]* %ipiv_, i64 0, i64 2
  store i8 3, i8* %6, align 1
  br label %merge37

true1:                                            ; preds = %merge37
  %tmp43 = mul i32 %pipk_185, 5
  %tmp44 = add i32 %tmp43, 1
  store i32 %tmp44, i32* %jBcol_, align 4
  store i32 %tmp43, i32* %jj_, align 4
  %tmp46 = sub i32 4, %pipk_185
  store i32 %tmp46, i32* %c_, align 4
  store i32 0, i32* %iy_, align 4
  %7 = sext i32 %tmp43 to i64
  %8 = getelementptr inbounds [16 x double], [16 x double]* %x_, i64 0, i64 %7
  %x__el135 = load double, double* %8, align 8
  %9 = call double @muDoubleScalarAbs(double %x__el135)
  store double %9, double* %smax_, align 8
  br label %merge44

false2:                                           ; preds = %merge37
  %10 = getelementptr inbounds [4 x i8], [4 x i8]* %p_, i64 0, i64 0
  store i8 1, i8* %10, align 1
  %11 = getelementptr inbounds [4 x i8], [4 x i8]* %p_, i64 0, i64 1
  store i8 2, i8* %11, align 1
  %12 = getelementptr inbounds [4 x i8], [4 x i8]* %p_, i64 0, i64 2
  store i8 3, i8* %12, align 1
  %13 = getelementptr inbounds [4 x i8], [4 x i8]* %p_, i64 0, i64 3
  store i8 4, i8* %13, align 1
  %ipiv__el = load i8, i8* %4, align 1
  %14 = icmp sgt i8 %ipiv__el, 1
  br i1 %14, label %true3, label %false4

true3:                                            ; preds = %false2
  %15 = sext i8 %ipiv__el to i64
  %tmp0 = add nsw i64 %15, -1
  %16 = getelementptr inbounds [4 x i8], [4 x i8]* %p_, i64 0, i64 %tmp0
  %p__el = load i8, i8* %16, align 1
  %17 = sext i8 %p__el to i32
  store i32 %17, i32* %pipk_, align 4
  store i8 1, i8* %16, align 1
  store i8 %p__el, i8* %10, align 1
  br label %false4

false4:                                           ; preds = %true3, %false2
  %ipiv__el53 = load i8, i8* %5, align 1
  %18 = icmp sgt i8 %ipiv__el53, 2
  br i1 %18, label %true5, label %false6

true5:                                            ; preds = %false4
  %19 = sext i8 %ipiv__el53 to i64
  %tmp2 = add nsw i64 %19, -1
  %20 = getelementptr inbounds [4 x i8], [4 x i8]* %p_, i64 0, i64 %tmp2
  %p__el55 = load i8, i8* %20, align 1
  %21 = sext i8 %p__el55 to i32
  store i32 %21, i32* %pipk_, align 4
  %p__el56 = load i8, i8* %11, align 1
  store i8 %p__el56, i8* %20, align 1
  store i8 %p__el55, i8* %11, align 1
  br label %false6

false6:                                           ; preds = %true5, %false4
  %ipiv__el59 = load i8, i8* %6, align 1
  %22 = icmp sgt i8 %ipiv__el59, 3
  br i1 %22, label %true7, label %false8

true7:                                            ; preds = %false6
  %p__el60 = load i8, i8* %13, align 1
  %23 = sext i8 %p__el60 to i32
  store i32 %23, i32* %pipk_, align 4
  %p__el61 = load i8, i8* %12, align 1
  store i8 %p__el61, i8* %13, align 1
  store i8 %p__el60, i8* %12, align 1
  br label %false8

false8:                                           ; preds = %true7, %false6
  br label %merge38

true9:                                            ; preds = %merge38
  %tmp19 = add i32 %jA_108, 1
  store i32 %tmp19, i32* %jj_, align 4
  %24 = sext i32 %jA_108 to i64
  %25 = getelementptr inbounds [4 x i8], [4 x i8]* %p_, i64 0, i64 %24
  %p__el102 = load i8, i8* %25, align 1
  store i8 %p__el102, i8* %p_0_, align 1
  %26 = sext i8 %p__el102 to i32
  %tmp20 = mul nsw i32 %26, 4
  %27 = add nsw i32 %tmp20, -4
  %tmp21 = add i32 %27, %jA_108
  %28 = sext i32 %tmp21 to i64
  %29 = getelementptr inbounds [16 x double], [16 x double]* %y_103, i64 0, i64 %28
  store double 1.000000e+00, double* %29, align 1
  br label %merge42

true11:                                           ; preds = %merge39
  %30 = shl i32 %pipk_67, 2
  store i32 %30, i32* %jBcol_, align 4
  br label %merge40

false12:                                          ; preds = %merge39
  ret void

true13:                                           ; preds = %merge40
  %31 = shl i32 %jA_84, 2
  store i32 %31, i32* %jj_, align 4
  %tmp5 = add i32 %jBcol_74, %jA_84
  %32 = sext i32 %tmp5 to i64
  %33 = getelementptr inbounds [16 x double], [16 x double]* %y_72, i64 0, i64 %32
  %y__el = load double, double* %33, align 1
  %34 = fcmp une double %y__el, 0.000000e+00
  br i1 %34, label %true15, label %true13.false16_crit_edge

true13.false16_crit_edge:                         ; preds = %true13
  %.pre = add i32 %jA_84, -1
  br label %false16

false14:                                          ; preds = %merge40
  %tmp4 = add i32 %pipk_67, 1
  br label %merge39

true15:                                           ; preds = %true13
  %tmp7 = add i32 %31, %jA_84
  %35 = sext i32 %tmp7 to i64
  %36 = getelementptr inbounds [16 x double], [16 x double]* %x_, i64 0, i64 %35
  %x__el = load double, double* %36, align 8
  %tmp8 = fdiv double %y__el, %x__el
  %tmp9 = add i32 %jBcol_80, %jA_84
  %37 = sext i32 %tmp9 to i64
  %38 = getelementptr inbounds [16 x double], [16 x double]* %y_78, i64 0, i64 %37
  store double %tmp8, double* %38, align 1
  %tmp10 = add i32 %jA_84, -1
  store i32 %tmp10, i32* %iy_, align 4
  br label %merge41

false16:                                          ; preds = %true13.false16_crit_edge, %merge41
  %tmp11.pre-phi = phi i32 [ %.pre, %true13.false16_crit_edge ], [ %tmp10, %merge41 ]
  %jBcol_80261 = phi i32 [ %jBcol_94, %merge41 ], [ %jBcol_80, %true13.false16_crit_edge ]
  %y_78257 = phi [16 x double]* [ %y_92, %merge41 ], [ %y_78, %true13.false16_crit_edge ]
  %jBcol_71254 = phi i32 [ %jBcol_94, %merge41 ], [ %jBcol_74, %true13.false16_crit_edge ]
  %y_69245 = phi [16 x double]* [ %y_92, %merge41 ], [ %y_72, %true13.false16_crit_edge ]
  br label %merge40

true17:                                           ; preds = %merge41
  %tmp12 = add i32 %jBcol_94, %ix_97
  %39 = sext i32 %tmp12 to i64
  %40 = getelementptr inbounds [16 x double], [16 x double]* %y_92, i64 0, i64 %39
  %y__el88 = load double, double* %40, align 1
  %tmp13 = add i32 %31, %ix_97
  %41 = sext i32 %tmp13 to i64
  %42 = getelementptr inbounds [16 x double], [16 x double]* %x_, i64 0, i64 %41
  %x__el91 = load double, double* %42, align 8
  %tmp14 = add i32 %jBcol_94, %jA_84
  %43 = sext i32 %tmp14 to i64
  %44 = getelementptr inbounds [16 x double], [16 x double]* %y_92, i64 0, i64 %43
  %y__el95 = load double, double* %44, align 1
  %tmp15 = fmul double %x__el91, %y__el95
  %tmp16 = fsub double %y__el88, %tmp15
  %tmp17 = add i32 %30, %ix_97
  %45 = sext i32 %tmp17 to i64
  %46 = getelementptr inbounds [16 x double], [16 x double]* %y_103, i64 0, i64 %45
  store double %tmp16, double* %46, align 1
  %tmp18 = add i32 %ix_97, 1
  br label %merge41

true18:                                           ; preds = %merge42
  %47 = sext i8 %p_0_110 to i32
  %tmp23 = mul nsw i32 %47, 4
  %tmp24 = add i32 %pipk_122, -5
  %tmp25 = add i32 %tmp24, %tmp23
  %48 = sext i32 %tmp25 to i64
  %49 = getelementptr inbounds [16 x double], [16 x double]* %y_109, i64 0, i64 %48
  %y__el112 = load double, double* %49, align 1
  %50 = fcmp une double %y__el112, 0.000000e+00
  br i1 %50, label %merge43, label %false21

false21:                                          ; preds = %merge43, %true18
  %p_0_110270 = phi i8 [ %p_0_121, %merge43 ], [ %p_0_110, %true18 ]
  %y_109266 = phi [16 x double]* [ %y_120, %merge43 ], [ %y_109, %true18 ]
  %tmp27 = add i32 %pipk_122, 1
  br label %merge42

true22:                                           ; preds = %merge43
  %51 = sext i8 %p_0_121 to i32
  %tmp28 = mul nsw i32 %51, 4
  %tmp29 = add i32 %storemerge233, -5
  %tmp30 = add i32 %tmp29, %tmp28
  %52 = sext i32 %tmp30 to i64
  %53 = getelementptr inbounds [16 x double], [16 x double]* %y_120, i64 0, i64 %52
  %y__el119 = load double, double* %53, align 1
  %tmp33 = add i32 %tmp24, %tmp28
  %54 = sext i32 %tmp33 to i64
  %55 = getelementptr inbounds [16 x double], [16 x double]* %y_120, i64 0, i64 %54
  %y__el123 = load double, double* %55, align 1
  %tmp34 = mul i32 %pipk_122, 4
  %tmp35 = add i32 %tmp34, -5
  %tmp36 = add i32 %tmp35, %storemerge233
  %56 = sext i32 %tmp36 to i64
  %57 = getelementptr inbounds [16 x double], [16 x double]* %x_, i64 0, i64 %56
  %x__el126 = load double, double* %57, align 8
  %tmp37 = fmul double %y__el123, %x__el126
  %tmp38 = fsub double %y__el119, %tmp37
  %tmp41 = add i32 %tmp29, %tmp20
  %58 = sext i32 %tmp41 to i64
  %59 = getelementptr inbounds [16 x double], [16 x double]* %y, i64 0, i64 %58
  store double %tmp38, double* %59, align 1
  br label %merge43

true23:                                           ; preds = %merge44
  %tmp99 = add i32 %tmp44, -2
  %tmp100 = add i32 %tmp99, %jA_222
  %60 = sext i32 %tmp100 to i64
  %61 = getelementptr inbounds [16 x double], [16 x double]* %x_, i64 0, i64 %60
  %x__el217 = load double, double* %61, align 8
  %62 = call double @muDoubleScalarAbs(double %x__el217)
  store double %62, double* %s_, align 8
  %63 = fcmp ogt double %62, %smax_219
  br i1 %63, label %true35, label %false36

false24:                                          ; preds = %merge44
  %tmp48 = add i32 %tmp43, %iy_146
  %64 = sext i32 %tmp48 to i64
  %65 = getelementptr inbounds [16 x double], [16 x double]* %x_, i64 0, i64 %64
  %x__el140 = load double, double* %65, align 8
  %66 = fcmp une double %x__el140, 0.000000e+00
  br i1 %66, label %true25, label %false26

true25:                                           ; preds = %false24
  %.not240 = icmp eq i32 %iy_146, 0
  br i1 %.not240, label %false28, label %true27

false26:                                          ; preds = %merge45, %false24
  %tmp73 = sub i32 3, %pipk_185
  store i32 %tmp73, i32* %c_, align 4
  store i32 %tmp43, i32* %jA_, align 4
  %tmp74 = add i32 %tmp43, 4
  store i32 %tmp74, i32* %jj_, align 4
  br label %merge46

true27:                                           ; preds = %true25
  %tmp49 = add i32 %iy_146, %pipk_185
  %67 = trunc i32 %tmp49 to i8
  %68 = add i8 %67, 1
  %69 = sext i32 %pipk_185 to i64
  %70 = getelementptr inbounds [4 x i8], [4 x i8]* %ipiv_, i64 0, i64 %69
  store i8 %68, i8* %70, align 1
  %tmp52 = add i32 %tmp49, 1
  store i32 %tmp52, i32* %iy_, align 4
  %71 = getelementptr inbounds [16 x double], [16 x double]* %x_, i64 0, i64 %69
  %x__el148 = load double, double* %71, align 8
  store double %x__el148, double* %smax_, align 8
  %72 = sext i32 %tmp49 to i64
  %73 = getelementptr inbounds [16 x double], [16 x double]* %x_, i64 0, i64 %72
  %x__el150 = load double, double* %73, align 8
  store double %x__el150, double* %71, align 8
  store double %x__el148, double* %73, align 8
  %tmp55 = add i32 %pipk_185, 4
  %74 = sext i32 %tmp55 to i64
  %75 = getelementptr inbounds [16 x double], [16 x double]* %x_, i64 0, i64 %74
  %x__el155 = load double, double* %75, align 8
  store double %x__el155, double* %smax_, align 8
  %tmp56 = add i32 %tmp52, 3
  %76 = sext i32 %tmp56 to i64
  %77 = getelementptr inbounds [16 x double], [16 x double]* %x_, i64 0, i64 %76
  %x__el157 = load double, double* %77, align 8
  store double %x__el157, double* %75, align 8
  store double %x__el155, double* %77, align 8
  %tmp59 = add i32 %pipk_185, 8
  %78 = sext i32 %tmp59 to i64
  %79 = getelementptr inbounds [16 x double], [16 x double]* %x_, i64 0, i64 %78
  %x__el162 = load double, double* %79, align 8
  store double %x__el162, double* %smax_, align 8
  %tmp60 = add i32 %tmp52, 7
  %80 = sext i32 %tmp60 to i64
  %81 = getelementptr inbounds [16 x double], [16 x double]* %x_, i64 0, i64 %80
  %x__el164 = load double, double* %81, align 8
  store double %x__el164, double* %79, align 8
  store double %x__el162, double* %81, align 8
  %tmp63 = add i32 %pipk_185, 12
  %82 = sext i32 %tmp63 to i64
  %83 = getelementptr inbounds [16 x double], [16 x double]* %x_, i64 0, i64 %82
  %x__el169 = load double, double* %83, align 8
  store double %x__el169, double* %smax_, align 8
  %tmp65 = add i32 %tmp52, 11
  %84 = sext i32 %tmp65 to i64
  %85 = getelementptr inbounds [16 x double], [16 x double]* %x_, i64 0, i64 %84
  %x__el171 = load double, double* %85, align 8
  store double %x__el171, double* %83, align 8
  store double %x__el169, double* %85, align 8
  br label %false28

false28:                                          ; preds = %true27, %true25
  %86 = xor i32 %pipk_185, -1
  %tmp70 = add i32 %86, %tmp44
  store i32 %tmp70, i32* %iy_, align 4
  br label %merge45

true29:                                           ; preds = %merge45
  %87 = sext i32 %storemerge242.in to i64
  %88 = getelementptr inbounds [16 x double], [16 x double]* %x_, i64 0, i64 %87
  %x__el210 = load double, double* %88, align 8
  %x__el212 = load double, double* %8, align 8
  %tmp96 = fdiv double %x__el210, %x__el212
  store double %tmp96, double* %88, align 8
  br label %merge45

true30:                                           ; preds = %merge46
  %89 = mul i32 %jp1j_199, 4
  %tmp77 = add i32 %89, %jj_187
  %90 = sext i32 %tmp77 to i64
  %91 = getelementptr inbounds [16 x double], [16 x double]* %x_, i64 0, i64 %90
  %x__el188 = load double, double* %91, align 8
  %92 = fcmp une double %x__el188, 0.000000e+00
  br i1 %92, label %true32, label %false33

false31:                                          ; preds = %merge46
  %tmp76 = add i32 %pipk_185, 1
  br label %merge37

true32:                                           ; preds = %true30
  %tmp78 = add i32 %89, %tmp74
  %93 = sext i32 %tmp78 to i64
  %94 = getelementptr inbounds [16 x double], [16 x double]* %x_, i64 0, i64 %93
  %x__el191 = load double, double* %94, align 8
  %tmp79 = fneg double %x__el191
  store double %tmp79, double* %smax_, align 8
  %tmp80 = add i32 %jA_198, 6
  store i32 %tmp80, i32* %iy_, align 4
  %95 = xor i32 %pipk_185, -1
  %tmp82 = add i32 %95, %jA_198
  store i32 %tmp82, i32* %ix_, align 4
  br label %merge47

false33:                                          ; preds = %merge47, %true30
  %jj_187279 = phi i32 [ %tmp74, %merge47 ], [ %jj_187, %true30 ]
  %tmp84 = add i32 %jA_198, 4
  store i32 %tmp84, i32* %jA_, align 4
  %tmp85 = add i32 %jp1j_199, 1
  br label %merge46

true34:                                           ; preds = %merge47
  %jA_202.neg = sub i32 0, %jA_198
  %tmp86 = add i32 %tmp44, -6
  %tmp87 = add i32 %tmp86, %ijA_208
  %tmp89 = add i32 %tmp87, %jA_202.neg
  %96 = sext i32 %tmp89 to i64
  %97 = getelementptr inbounds [16 x double], [16 x double]* %x_, i64 0, i64 %96
  %x__el203 = load double, double* %97, align 8
  %tmp90 = fmul double %x__el203, %tmp79
  %tmp91 = add i32 %ijA_208, -1
  %98 = sext i32 %tmp91 to i64
  %99 = getelementptr inbounds [16 x double], [16 x double]* %x_, i64 0, i64 %98
  %x__el206 = load double, double* %99, align 8
  %tmp92 = fadd double %tmp90, %x__el206
  store double %tmp92, double* %99, align 8
  %tmp94 = add i32 %ijA_208, 1
  br label %merge47

true35:                                           ; preds = %true23
  %tmp101 = add i32 %jA_222, -1
  store i32 %tmp101, i32* %iy_, align 4
  store double %62, double* %smax_, align 8
  br label %false36

false36:                                          ; preds = %true35, %true23
  %iy_139277 = phi i32 [ %tmp101, %true35 ], [ %iy_146, %true23 ]
  %smax_219275 = phi double [ %62, %true35 ], [ %smax_219, %true23 ]
  %tmp102 = add i32 %jA_222, 1
  br label %merge44

merge:                                            ; preds = %true, %inu_im_1wnd_3lvl_r2021b_rt_invd4x4_snf_entry
  %ix_227 = phi i32 [ %tmp103, %true ], [ 0, %inu_im_1wnd_3lvl_r2021b_rt_invd4x4_snf_entry ]
  store i32 %ix_227, i32* %ix_, align 4
  %100 = icmp slt i32 %ix_227, 16
  br i1 %100, label %true, label %false

merge37:                                          ; preds = %false31, %false
  %pipk_185 = phi i32 [ %tmp76, %false31 ], [ 0, %false ]
  store i32 %pipk_185, i32* %pipk_, align 4
  %101 = icmp slt i32 %pipk_185, 3
  br i1 %101, label %true1, label %false2

merge38:                                          ; preds = %merge42, %false8
  %y_109269 = phi [16 x double]* [ %y, %false8 ], [ %y_109, %merge42 ]
  %y_103 = phi [16 x double]* [ %y, %false8 ], [ %y_103264, %merge42 ]
  %jA_108 = phi i32 [ 0, %false8 ], [ %tmp19, %merge42 ]
  store i32 %jA_108, i32* %jA_, align 4
  %102 = icmp slt i32 %jA_108, 4
  br i1 %102, label %true9, label %merge39

merge39:                                          ; preds = %merge38, %false14
  %y_78260 = phi [16 x double]* [ %y_78, %false14 ], [ %y_103, %merge38 ]
  %y_69247 = phi [16 x double]* [ %y_72, %false14 ], [ %y_103, %merge38 ]
  %pipk_67 = phi i32 [ %tmp4, %false14 ], [ 0, %merge38 ]
  store i32 %pipk_67, i32* %pipk_, align 4
  %103 = icmp slt i32 %pipk_67, 4
  br i1 %103, label %true11, label %false12

merge40:                                          ; preds = %false16, %true11
  %jBcol_80 = phi i32 [ %jBcol_80261, %false16 ], [ %30, %true11 ]
  %y_78 = phi [16 x double]* [ %y_78257, %false16 ], [ %y_78260, %true11 ]
  %jBcol_74 = phi i32 [ %jBcol_71254, %false16 ], [ %30, %true11 ]
  %y_72 = phi [16 x double]* [ %y_69245, %false16 ], [ %y_69247, %true11 ]
  %jA_84 = phi i32 [ %tmp11.pre-phi, %false16 ], [ 3, %true11 ]
  store i32 %jA_84, i32* %jA_, align 4
  %104 = icmp sgt i32 %jA_84, -1
  br i1 %104, label %true13, label %false14

merge41:                                          ; preds = %true17, %true15
  %jBcol_94 = phi i32 [ %30, %true17 ], [ %jBcol_80, %true15 ]
  %y_92 = phi [16 x double]* [ %y_103, %true17 ], [ %y_78, %true15 ]
  %ix_97 = phi i32 [ %tmp18, %true17 ], [ 0, %true15 ]
  store i32 %ix_97, i32* %ix_, align 4
  %.not = icmp sgt i32 %ix_97, %tmp10
  br i1 %.not, label %false16, label %true17

merge42:                                          ; preds = %false21, %true9
  %p_0_110 = phi i8 [ %p_0_110270, %false21 ], [ %p__el102, %true9 ]
  %y_109 = phi [16 x double]* [ %y_109266, %false21 ], [ %y_109269, %true9 ]
  %y_103264 = phi [16 x double]* [ %y_109266, %false21 ], [ %y_103, %true9 ]
  %pipk_122 = phi i32 [ %tmp27, %false21 ], [ %tmp19, %true9 ]
  store i32 %pipk_122, i32* %pipk_, align 4
  %105 = icmp slt i32 %pipk_122, 5
  br i1 %105, label %true18, label %merge38

merge43:                                          ; preds = %true18, %true22
  %p_0_121 = phi i8 [ %p__el102, %true22 ], [ %p_0_110, %true18 ]
  %y_120 = phi [16 x double]* [ %y, %true22 ], [ %y_109, %true18 ]
  %storemerge233.in = phi i32 [ %storemerge233, %true22 ], [ %pipk_122, %true18 ]
  %storemerge233 = add i32 %storemerge233.in, 1
  store i32 %storemerge233, i32* %ix_, align 4
  %106 = icmp slt i32 %storemerge233, 5
  br i1 %106, label %true22, label %false21

merge44:                                          ; preds = %false36, %true1
  %iy_146 = phi i32 [ %iy_139277, %false36 ], [ 0, %true1 ]
  %smax_219 = phi double [ %smax_219275, %false36 ], [ %9, %true1 ]
  %jA_222 = phi i32 [ %tmp102, %false36 ], [ 2, %true1 ]
  store i32 %jA_222, i32* %jA_, align 4
  %.not234 = icmp sgt i32 %jA_222, %tmp46
  br i1 %.not234, label %false24, label %true23

merge45:                                          ; preds = %true29, %false28
  %storemerge242.in = phi i32 [ %storemerge242, %true29 ], [ %tmp44, %false28 ]
  %storemerge242 = add i32 %storemerge242.in, 1
  store i32 %storemerge242, i32* %ix_, align 4
  %tmp72 = add i32 %tmp70, 4
  %.not241 = icmp sgt i32 %storemerge242, %tmp72
  br i1 %.not241, label %false26, label %true29

merge46:                                          ; preds = %false33, %false26
  %jA_198 = phi i32 [ %tmp84, %false33 ], [ %tmp43, %false26 ]
  %jj_187 = phi i32 [ %jj_187279, %false33 ], [ %tmp74, %false26 ]
  %jp1j_199 = phi i32 [ %tmp85, %false33 ], [ 0, %false26 ]
  store i32 %jp1j_199, i32* %jp1j_, align 4
  %tmp75 = add i32 %tmp73, -1
  %.not235 = icmp sgt i32 %jp1j_199, %tmp75
  br i1 %.not235, label %false31, label %true30

merge47:                                          ; preds = %true34, %true32
  %ijA_208 = phi i32 [ %tmp94, %true34 ], [ %tmp80, %true32 ]
  store i32 %ijA_208, i32* %ijA_, align 4
  %tmp83 = add i32 %tmp82, 9
  %.not238 = icmp sgt i32 %ijA_208, %tmp83
  br i1 %.not238, label %false33, label %true34
}

declare double @muDoubleScalarAbs(double)

define void @inu_im_1wnd_3lvl_r2021b_CGInitializeSizes(i8* %S_0) {
inu_im_1wnd_3lvl_r2021b_CGInitializeSizes_entry:
  %S_0_ = alloca i8*, align 8
  store i8* %S_0, i8** %S_0_, align 8
  %tmp_ = alloca [4 x i32], align 4
  call void @inu_im_1wnd_3lvl_r2021b_Checksum([4 x i32]* nonnull %tmp_)
  %0 = getelementptr inbounds [4 x i32], [4 x i32]* %tmp_, i64 0, i64 0
  %tmp__el = load i32, i32* %0, align 4
  call void @vm_ssSetChecksumVal(i8* %S_0, i32 0, i32 %tmp__el)
  %1 = getelementptr inbounds [4 x i32], [4 x i32]* %tmp_, i64 0, i64 1
  %tmp__el3 = load i32, i32* %1, align 4
  call void @vm_ssSetChecksumVal(i8* %S_0, i32 1, i32 %tmp__el3)
  %2 = getelementptr inbounds [4 x i32], [4 x i32]* %tmp_, i64 0, i64 2
  %tmp__el5 = load i32, i32* %2, align 4
  call void @vm_ssSetChecksumVal(i8* %S_0, i32 2, i32 %tmp__el5)
  %3 = getelementptr inbounds [4 x i32], [4 x i32]* %tmp_, i64 0, i64 3
  %tmp__el7 = load i32, i32* %3, align 4
  call void @vm_ssSetChecksumVal(i8* %S_0, i32 3, i32 %tmp__el7)
  call void @vm_blockIOSizeCheck(i8* %S_0, i32 3672)
  call void @vm_dworkSizeCheck(i8* %S_0, i32 1864)
  call void @vm_paramSizeCheck(i8* %S_0, i32 19976)
  ret void
}

define void @inu_im_1wnd_3lvl_r2021b_Checksum([4 x i32]* %y) {
inu_im_1wnd_3lvl_r2021b_Checksum_entry:
  %y_ = alloca [4 x i32]*, align 8
  store [4 x i32]* %y, [4 x i32]** %y_, align 8
  %0 = getelementptr inbounds [4 x i32], [4 x i32]* %y, i64 0, i64 0
  store i32 661338339, i32* %0, align 1
  %1 = getelementptr inbounds [4 x i32], [4 x i32]* %y, i64 0, i64 1
  store i32 2075070143, i32* %1, align 1
  %2 = getelementptr inbounds [4 x i32], [4 x i32]* %y, i64 0, i64 2
  store i32 -1844829948, i32* %2, align 1
  %3 = getelementptr inbounds [4 x i32], [4 x i32]* %y, i64 0, i64 3
  store i32 686049123, i32* %3, align 1
  ret void
}

declare void @vm_ssSetChecksumVal(i8*, i32 zeroext, i32 zeroext)

declare void @vm_blockIOSizeCheck(i8*, i32 zeroext)

declare void @vm_dworkSizeCheck(i8*, i32 zeroext)

declare void @vm_paramSizeCheck(i8*, i32 zeroext)

define void @Enable(i8* %S) {
Enable_entry:
  %0 = call i8* @vm_ssGetRootDWork(i8* %S)
  %1 = getelementptr inbounds i8, i8* %0, i64 1851
  store i8 1, i8* %1, align 1
  ret void
}

declare i8* @vm_ssGetRootDWork(i8*)

define void @Update1(i8* %S) {
Update1_entry:
  %_rtP_ = alloca %P_inu_im_1wnd_3lvl_r2021b_T.68*, align 8
  %_rtDW_ = alloca %DW_inu_im_1wnd_3lvl_r2021b_T.67*, align 8
  %0 = call i8* @vm_ssGetRootDWork(i8* %S)
  %1 = bitcast %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_ to i8**
  store i8* %0, i8** %1, align 8
  %2 = call i8* @vm_ssGetModelRtp(i8* %S)
  %3 = bitcast %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_ to i8**
  store i8* %2, i8** %3, align 8
  %4 = getelementptr inbounds i8, i8* %0, i64 1760
  %5 = bitcast i8* %4 to i32*
  %6 = call double @inu_im_1wnd_3lvl_r2021b_rt_nrand_Upu32_Yd_f_pw_snf(i32* nonnull %5)
  %7 = getelementptr inbounds i8, i8* %2, i64 19224
  %8 = bitcast i8* %7 to double*
  %_rtP__WhiteNoise_StdDev = load double, double* %8, align 1
  %tmp0 = fmul double %6, %_rtP__WhiteNoise_StdDev
  %9 = bitcast i8* %2 to %P_inu_im_1wnd_3lvl_r2021b_T.68*
  %10 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %9, i64 0, i32 137
  %_rtP__WhiteNoise_Mean = load double, double* %10, align 1
  %tmp1 = fadd double %tmp0, %_rtP__WhiteNoise_Mean
  %11 = bitcast i8* %0 to %DW_inu_im_1wnd_3lvl_r2021b_T.67*
  %12 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %11, i64 0, i32 17, i64 0
  store double %tmp1, double* %12, align 1
  %13 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %11, i64 0, i32 51, i64 1
  %14 = call double @inu_im_1wnd_3lvl_r2021b_rt_nrand_Upu32_Yd_f_pw_snf(i32* nonnull %13)
  %15 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %9, i64 0, i32 138
  %_rtP__WhiteNoise_StdDev9 = load double, double* %15, align 1
  %tmp2 = fmul double %14, %_rtP__WhiteNoise_StdDev9
  %_rtP__WhiteNoise_Mean11 = load double, double* %10, align 1
  %tmp3 = fadd double %tmp2, %_rtP__WhiteNoise_Mean11
  %16 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %11, i64 0, i32 17, i64 1
  store double %tmp3, double* %16, align 1
  %17 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %11, i64 0, i32 51, i64 2
  %18 = call double @inu_im_1wnd_3lvl_r2021b_rt_nrand_Upu32_Yd_f_pw_snf(i32* nonnull %17)
  %_rtP__WhiteNoise_StdDev15 = load double, double* %15, align 1
  %tmp4 = fmul double %18, %_rtP__WhiteNoise_StdDev15
  %_rtP__WhiteNoise_Mean17 = load double, double* %10, align 1
  %tmp5 = fadd double %tmp4, %_rtP__WhiteNoise_Mean17
  %19 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %11, i64 0, i32 17, i64 2
  store double %tmp5, double* %19, align 1
  ret void
}

declare i8* @vm_ssGetModelRtp(i8*)

define void @Update0(i8* %S) {
Update0_entry:
  %S_ = alloca i8*, align 8
  store i8* %S, i8** %S_, align 8
  %_rtB_ = alloca %B_inu_im_1wnd_3lvl_r2021b_T.66*, align 8
  %_rtP_ = alloca %P_inu_im_1wnd_3lvl_r2021b_T.68*, align 8
  %_rtDW_ = alloca %DW_inu_im_1wnd_3lvl_r2021b_T.67*, align 8
  %vm_ssIsSampleHitVar0_ = alloca i32, align 4
  %vm_ssIsSampleHitVar1_ = alloca i32, align 4
  %0 = call i32 @vm_ssIsSampleHit(i8* %S, i32 1, i32 0)
  store i32 %0, i32* %vm_ssIsSampleHitVar1_, align 4
  %1 = call i32 @vm_ssIsSampleHit(i8* %S, i32 0, i32 0)
  store i32 %1, i32* %vm_ssIsSampleHitVar0_, align 4
  %2 = call i8* @vm_ssGetRootDWork(i8* %S)
  %3 = bitcast %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_ to i8**
  store i8* %2, i8** %3, align 8
  %4 = call i8* @vm_ssGetModelRtp(i8* %S)
  %5 = bitcast %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_ to i8**
  store i8* %4, i8** %5, align 8
  %6 = call i8* @vm__ssGetModelBlockIO(i8* %S)
  %7 = bitcast %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_ to i8**
  store i8* %6, i8** %7, align 8
  %.not = icmp eq i32 %1, 0
  %8 = bitcast i8* %6 to %B_inu_im_1wnd_3lvl_r2021b_T.66*
  %9 = bitcast i8* %2 to %DW_inu_im_1wnd_3lvl_r2021b_T.67*
  %10 = bitcast i8* %4 to %P_inu_im_1wnd_3lvl_r2021b_T.68*
  br i1 %.not, label %false, label %true

true:                                             ; preds = %Update0_entry
  %11 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %8, i64 0, i32 7, i64 0
  %_rtB__IC_el = load double, double* %11, align 1
  %12 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %9, i64 0, i32 0, i64 0
  store double %_rtB__IC_el, double* %12, align 1
  %13 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %8, i64 0, i32 0, i64 0
  %_rtB__xk1_el = load double, double* %13, align 1
  %14 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %9, i64 0, i32 1, i64 0
  store double %_rtB__xk1_el, double* %14, align 1
  %15 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %8, i64 0, i32 7, i64 1
  %_rtB__IC_el21 = load double, double* %15, align 1
  %16 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %9, i64 0, i32 0, i64 1
  store double %_rtB__IC_el21, double* %16, align 1
  %17 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %8, i64 0, i32 0, i64 1
  %_rtB__xk1_el24 = load double, double* %17, align 1
  %18 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %9, i64 0, i32 1, i64 1
  store double %_rtB__xk1_el24, double* %18, align 1
  %19 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %8, i64 0, i32 7, i64 2
  %_rtB__IC_el27 = load double, double* %19, align 1
  %20 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %9, i64 0, i32 0, i64 2
  store double %_rtB__IC_el27, double* %20, align 1
  %21 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %8, i64 0, i32 0, i64 2
  %_rtB__xk1_el30 = load double, double* %21, align 1
  %22 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %9, i64 0, i32 1, i64 2
  store double %_rtB__xk1_el30, double* %22, align 1
  %23 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %8, i64 0, i32 7, i64 3
  %_rtB__IC_el33 = load double, double* %23, align 1
  %24 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %9, i64 0, i32 0, i64 3
  store double %_rtB__IC_el33, double* %24, align 1
  %25 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %8, i64 0, i32 0, i64 3
  %_rtB__xk1_el36 = load double, double* %25, align 1
  %26 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %9, i64 0, i32 1, i64 3
  store double %_rtB__xk1_el36, double* %26, align 1
  %27 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %8, i64 0, i32 30
  %_rtB__Constant = load double, double* %27, align 1
  %28 = fcmp ogt double %_rtB__Constant, 0.000000e+00
  br i1 %28, label %true1, label %false2

false:                                            ; preds = %merge, %Update0_entry
  %.not102 = icmp eq i32 %0, 0
  br i1 %.not102, label %false8, label %true7

true1:                                            ; preds = %true
  %29 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %8, i64 0, i32 92
  %_rtB__Switch = load double, double* %29, align 1
  %30 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %9, i64 0, i32 15
  store double %_rtB__Switch, double* %30, align 1
  br label %false2

false2:                                           ; preds = %true1, %true
  %31 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %10, i64 0, i32 47
  %_rtP__Rotoranglethetam_gainval = load double, double* %31, align 1
  %32 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %8, i64 0, i32 10
  %_rtB__web_psb = load double, double* %32, align 1
  %tmp0 = fmul double %_rtP__Rotoranglethetam_gainval, %_rtB__web_psb
  %33 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %9, i64 0, i32 2
  %_rtDW__Rotoranglethetam_DSTATE = load double, double* %33, align 1
  %tmp1 = fadd double %tmp0, %_rtDW__Rotoranglethetam_DSTATE
  store double %tmp1, double* %33, align 1
  %34 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %8, i64 0, i32 9
  %_rtB__Rotorspeedwm = load double, double* %34, align 1
  %35 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %9, i64 0, i32 3
  store double %_rtB__Rotorspeedwm, double* %35, align 1
  %36 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %8, i64 0, i32 1
  %_rtB__wm_delay = load double, double* %36, align 1
  %37 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %9, i64 0, i32 4
  store double %_rtB__wm_delay, double* %37, align 1
  call void @vm_ssCallAccelRunBlock(i8* %S, i32 12, i32 29, i32 105)
  %38 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %8, i64 0, i32 5, i64 0
  %_rtB__MultiportSwitch1_el = load double, double* %38, align 1
  %39 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %9, i64 0, i32 6, i64 0
  store double %_rtB__MultiportSwitch1_el, double* %39, align 1
  %40 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %8, i64 0, i32 6, i64 0
  %_rtB__MultiportSwitch_el = load double, double* %40, align 1
  %41 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %9, i64 0, i32 6, i64 2
  store double %_rtB__MultiportSwitch_el, double* %41, align 1
  %42 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %8, i64 0, i32 5, i64 1
  %_rtB__MultiportSwitch1_el55 = load double, double* %42, align 1
  %43 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %9, i64 0, i32 6, i64 1
  store double %_rtB__MultiportSwitch1_el55, double* %43, align 1
  %44 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %8, i64 0, i32 6, i64 1
  %_rtB__MultiportSwitch_el58 = load double, double* %44, align 1
  %45 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %9, i64 0, i32 6, i64 3
  store double %_rtB__MultiportSwitch_el58, double* %45, align 1
  %46 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %10, i64 0, i32 67
  %_rtP__DiscreteTimeIntegrator_gainval = load double, double* %46, align 1
  %47 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %8, i64 0, i32 27
  %_rtB__Abs = load double, double* %47, align 1
  %tmp2 = fmul double %_rtP__DiscreteTimeIntegrator_gainval, %_rtB__Abs
  %48 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %9, i64 0, i32 7
  %_rtDW__DiscreteTimeIntegrator_DSTATE = load double, double* %48, align 1
  %tmp3 = fadd double %tmp2, %_rtDW__DiscreteTimeIntegrator_DSTATE
  store double %tmp3, double* %48, align 1
  %49 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %10, i64 0, i32 69
  %_rtP__DiscreteTimeIntegrator_UpperSat = load double, double* %49, align 1
  %50 = fcmp ult double %tmp3, %_rtP__DiscreteTimeIntegrator_UpperSat
  br i1 %50, label %false4, label %true3

true3:                                            ; preds = %false2
  store double %_rtP__DiscreteTimeIntegrator_UpperSat, double* %48, align 1
  br label %merge

false4:                                           ; preds = %false2
  %51 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %10, i64 0, i32 70
  %_rtP__DiscreteTimeIntegrator_LowerSat = load double, double* %51, align 1
  %52 = fcmp ugt double %tmp3, %_rtP__DiscreteTimeIntegrator_LowerSat
  br i1 %52, label %merge, label %true5

true5:                                            ; preds = %false4
  store double %_rtP__DiscreteTimeIntegrator_LowerSat, double* %48, align 1
  br label %merge

true7:                                            ; preds = %false
  call void @Update1(i8* %S)
  br label %false8

false8:                                           ; preds = %true7, %false
  ret void

merge:                                            ; preds = %false4, %true5, %true3
  %53 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %8, i64 0, i32 28
  %_rtB__xk1_me = load double, double* %53, align 1
  %54 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %9, i64 0, i32 8
  store double %_rtB__xk1_me, double* %54, align 1
  %55 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %9, i64 0, i32 66
  store i8 0, i8* %55, align 1
  %56 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %10, i64 0, i32 79
  %_rtP__Rotorspeedwm_gainval = load double, double* %56, align 1
  %57 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %8, i64 0, i32 8
  %_rtB__u_2H = load double, double* %57, align 1
  %tmp4 = fmul double %_rtP__Rotorspeedwm_gainval, %_rtB__u_2H
  %_rtB__Rotorspeedwm82 = load double, double* %34, align 1
  %tmp5 = fadd double %tmp4, %_rtB__Rotorspeedwm82
  %58 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %9, i64 0, i32 9
  store double %tmp5, double* %58, align 1
  call void @vm_ssCallAccelRunBlock(i8* %S, i32 12, i32 111, i32 105)
  %59 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %8, i64 0, i32 17, i64 0
  %_rtB__xk1_d_el = load double, double* %59, align 1
  %60 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %9, i64 0, i32 11, i64 0
  store double %_rtB__xk1_d_el, double* %60, align 1
  %61 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %8, i64 0, i32 17, i64 1
  %_rtB__xk1_d_el88 = load double, double* %61, align 1
  %62 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %9, i64 0, i32 11, i64 1
  store double %_rtB__xk1_d_el88, double* %62, align 1
  %63 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %8, i64 0, i32 17, i64 2
  %_rtB__xk1_d_el91 = load double, double* %63, align 1
  %64 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %9, i64 0, i32 11, i64 2
  store double %_rtB__xk1_d_el91, double* %64, align 1
  %65 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %8, i64 0, i32 23
  %_rtB__xk1_m = load double, double* %65, align 1
  %66 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %9, i64 0, i32 12
  store double %_rtB__xk1_m, double* %66, align 1
  %67 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %8, i64 0, i32 24
  %_rtB__xk1_e = load double, double* %67, align 1
  %68 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %9, i64 0, i32 13
  store double %_rtB__xk1_e, double* %68, align 1
  %69 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %8, i64 0, i32 26
  %_rtB__xk1_ds = load double, double* %69, align 1
  %70 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %9, i64 0, i32 14
  store double %_rtB__xk1_ds, double* %70, align 1
  br label %false
}

declare signext i32 @vm_ssIsSampleHit(i8*, i32 signext, i32 signext)

declare i8* @vm__ssGetModelBlockIO(i8*)

declare void @vm_ssCallAccelRunBlock(i8*, i32 signext, i32 signext, i32 signext)

define void @Outputs2(i8* %S, i32 signext %controlPortIdx) {
Outputs2_entry:
  %S_ = alloca i8*, align 8
  store i8* %S, i8** %S_, align 8
  %_rtB_ = alloca %B_inu_im_1wnd_3lvl_r2021b_T.66*, align 8
  %_rtP_ = alloca %P_inu_im_1wnd_3lvl_r2021b_T.68*, align 8
  %_rtDW_ = alloca %DW_inu_im_1wnd_3lvl_r2021b_T.67*, align 8
  %0 = call i8* @vm_ssGetRootDWork(i8* %S)
  %1 = bitcast %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_ to i8**
  store i8* %0, i8** %1, align 8
  %2 = call i8* @vm_ssGetModelRtp(i8* %S)
  %3 = bitcast %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_ to i8**
  store i8* %2, i8** %3, align 8
  %4 = call i8* @vm__ssGetModelBlockIO(i8* %S)
  %5 = bitcast %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_ to i8**
  store i8* %4, i8** %5, align 8
  %6 = getelementptr inbounds i8, i8* %4, i64 1184
  %_rtP_5 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %7 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_5, i64 0, i32 141, i64 0
  %8 = bitcast double* %7 to i8*
  %9 = call i8* @memcpy(i8* nonnull %6, i8* nonnull %8, i32 144)
  %_rtP_6 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %10 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_6, i64 0, i32 142
  %_rtP__Constant_Value_a = load double, double* %10, align 1
  %_rtB_7 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %11 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_7, i64 0, i32 30
  store double %_rtP__Constant_Value_a, double* %11, align 1
  %12 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_6, i64 0, i32 143
  %_rtP__Constant1_Value_c = load double, double* %12, align 1
  %13 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_7, i64 0, i32 31
  store double %_rtP__Constant1_Value_c, double* %13, align 1
  %14 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_6, i64 0, i32 145
  %_rtP__Constant3_Value = load double, double* %14, align 1
  %15 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_7, i64 0, i32 33
  store double %_rtP__Constant3_Value, double* %15, align 1
  %16 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_6, i64 0, i32 6
  %_rtP__Constant1_Value = load double, double* %16, align 1
  %17 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_7, i64 0, i32 95
  store double %_rtP__Constant1_Value, double* %17, align 1
  %18 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_6, i64 0, i32 7, i64 0
  %_rtP__u2_Value_el = load double, double* %18, align 1
  %19 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_7, i64 0, i32 96, i64 0
  store double %_rtP__u2_Value_el, double* %19, align 1
  %20 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_6, i64 0, i32 7, i64 1
  %_rtP__u2_Value_el17 = load double, double* %20, align 1
  %21 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_7, i64 0, i32 96, i64 1
  store double %_rtP__u2_Value_el17, double* %21, align 1
  %22 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_6, i64 0, i32 10, i64 0
  %_rtP__u1_Value_e_el = load double, double* %22, align 1
  %23 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_7, i64 0, i32 99, i64 0
  store double %_rtP__u1_Value_e_el, double* %23, align 1
  %24 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_6, i64 0, i32 10, i64 1
  %_rtP__u1_Value_e_el22 = load double, double* %24, align 1
  %25 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_7, i64 0, i32 99, i64 1
  store double %_rtP__u1_Value_e_el22, double* %25, align 1
  %26 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_6, i64 0, i32 148
  %_rtP__Constant3_Value_a = load double, double* %26, align 1
  %27 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_7, i64 0, i32 36
  store double %_rtP__Constant3_Value_a, double* %27, align 1
  %28 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_6, i64 0, i32 149
  %_rtP__Constant4_Value_d = load double, double* %28, align 1
  %29 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_7, i64 0, i32 37
  store double %_rtP__Constant4_Value_d, double* %29, align 1
  %30 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_6, i64 0, i32 150, i64 0
  %_rtP__Constant6_Value_el = load double, double* %30, align 1
  %31 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_7, i64 0, i32 38, i64 0
  store double %_rtP__Constant6_Value_el, double* %31, align 1
  %32 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_6, i64 0, i32 150, i64 1
  %_rtP__Constant6_Value_el31 = load double, double* %32, align 1
  %33 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_7, i64 0, i32 38, i64 1
  store double %_rtP__Constant6_Value_el31, double* %33, align 1
  %34 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_6, i64 0, i32 151
  %_rtP__Constant3_Value_m = load double, double* %34, align 1
  %35 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_7, i64 0, i32 39
  store double %_rtP__Constant3_Value_m, double* %35, align 1
  %36 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_6, i64 0, i32 152
  %_rtP__Constant4_Value_h = load double, double* %36, align 1
  %37 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_7, i64 0, i32 40
  store double %_rtP__Constant4_Value_h, double* %37, align 1
  %38 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_6, i64 0, i32 153
  %_rtP__Constant2_Value_p = load double, double* %38, align 1
  %39 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_7, i64 0, i32 41
  store double %_rtP__Constant2_Value_p, double* %39, align 1
  %40 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_6, i64 0, i32 154
  %_rtP__Constant4_Value_p = load double, double* %40, align 1
  %41 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_7, i64 0, i32 42
  store double %_rtP__Constant4_Value_p, double* %41, align 1
  %42 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_7, i64 0, i32 32, i64 0
  %43 = bitcast double* %42 to i8*
  %44 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_6, i64 0, i32 144, i64 0
  %45 = bitcast double* %44 to i8*
  %46 = call i8* @memcpy(i8* nonnull %43, i8* nonnull %45, i32 128)
  %47 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_7, i64 0, i32 34, i64 0
  %48 = bitcast double* %47 to i8*
  %49 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_6, i64 0, i32 146, i64 0
  %50 = bitcast double* %49 to i8*
  %51 = call i8* @memcpy(i8* nonnull %48, i8* nonnull %50, i32 128)
  %52 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_7, i64 0, i32 97, i64 0
  %53 = bitcast double* %52 to i8*
  %54 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_6, i64 0, i32 8, i64 0
  %55 = bitcast double* %54 to i8*
  %56 = call i8* @memcpy(i8* nonnull %53, i8* nonnull %55, i32 128)
  %57 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_7, i64 0, i32 98, i64 0
  %58 = bitcast double* %57 to i8*
  %59 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_6, i64 0, i32 9, i64 0
  %60 = bitcast double* %59 to i8*
  %61 = call i8* @memcpy(i8* nonnull %58, i8* nonnull %60, i32 128)
  %62 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_7, i64 0, i32 100, i64 0
  %63 = bitcast double* %62 to i8*
  %64 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_6, i64 0, i32 11, i64 0
  %65 = bitcast double* %64 to i8*
  %66 = call i8* @memcpy(i8* nonnull %63, i8* nonnull %65, i32 128)
  %67 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_7, i64 0, i32 35, i64 0
  %68 = bitcast double* %67 to i8*
  %69 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_6, i64 0, i32 147, i64 0
  %70 = bitcast double* %69 to i8*
  %71 = call i8* @memcpy(i8* nonnull %68, i8* nonnull %70, i32 128)
  %72 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_7, i64 0, i32 67, i64 0
  %73 = bitcast double* %72 to i8*
  %74 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_6, i64 0, i32 32, i64 0
  %75 = bitcast double* %74 to i8*
  %76 = call i8* @memcpy(i8* nonnull %73, i8* nonnull %75, i32 128)
  %77 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_7, i64 0, i32 61, i64 0
  %78 = bitcast double* %77 to i8*
  %_rtP_56 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %79 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_56, i64 0, i32 37, i64 0
  %80 = bitcast double* %79 to i8*
  %81 = call i8* @memcpy(i8* nonnull %78, i8* nonnull %80, i32 128)
  %_rtDW_57 = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  %82 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_57, i64 0, i32 56
  call void @vm_srUpdateBC(i8* nonnull %82)
  %_rtB_58 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %83 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_58, i64 0, i32 56, i64 0
  %84 = bitcast double* %83 to i8*
  %85 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_56, i64 0, i32 42, i64 0
  %86 = bitcast double* %85 to i8*
  %87 = call i8* @memcpy(i8* nonnull %84, i8* nonnull %86, i32 128)
  %88 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_57, i64 0, i32 55
  call void @vm_srUpdateBC(i8* nonnull %88)
  %89 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_56, i64 0, i32 155
  %_rtP__BL_Value = load double, double* %89, align 1
  %90 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_56, i64 0, i32 156
  %_rtP__Constant_Value_e = load double, double* %90, align 1
  %91 = fcmp ole double %_rtP__BL_Value, %_rtP__Constant_Value_e
  %92 = uitofp i1 %91 to double
  %93 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_58, i64 0, i32 43
  store double %92, double* %93, align 1
  %94 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_56, i64 0, i32 157
  %_rtP__dummy1_Value = load double, double* %94, align 1
  %95 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_58, i64 0, i32 44
  store double %_rtP__dummy1_Value, double* %95, align 1
  %96 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_56, i64 0, i32 158
  %_rtP__dummy2_Value = load double, double* %96, align 1
  %97 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_58, i64 0, i32 45
  store double %_rtP__dummy2_Value, double* %97, align 1
  %98 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_56, i64 0, i32 159
  %_rtP__iref_Value = load double, double* %98, align 1
  %99 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_58, i64 0, i32 46
  store double %_rtP__iref_Value, double* %99, align 1
  %100 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_56, i64 0, i32 160
  %_rtP__mstpDecrMaxpuPnom_Value = load double, double* %100, align 1
  %101 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_58, i64 0, i32 47
  store double %_rtP__mstpDecrMaxpuPnom_Value, double* %101, align 1
  %102 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_56, i64 0, i32 161
  %_rtP__mstpIncrMaxpuPnom_Value = load double, double* %102, align 1
  %103 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_58, i64 0, i32 48
  store double %_rtP__mstpIncrMaxpuPnom_Value, double* %103, align 1
  %104 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_56, i64 0, i32 162
  %_rtP__Constant1_Value_g = load double, double* %104, align 1
  %105 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_58, i64 0, i32 49
  store double %_rtP__Constant1_Value_g, double* %105, align 1
  %106 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_56, i64 0, i32 163
  %_rtP__DC_Value = load double, double* %106, align 1
  %107 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_58, i64 0, i32 50
  store double %_rtP__DC_Value, double* %107, align 1
  %108 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_56, i64 0, i32 164
  %_rtP__DC_Value_b = load double, double* %108, align 1
  %109 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_58, i64 0, i32 51
  store double %_rtP__DC_Value_b, double* %109, align 1
  ret void
}

declare i8* @memcpy(i8*, i8*, i32 zeroext)

declare void @vm_srUpdateBC(i8*)

define void @Outputs1(i8* %S) {
Outputs1_entry:
  %_rtP_ = alloca %P_inu_im_1wnd_3lvl_r2021b_T.68*, align 8
  %_rtDW_ = alloca %DW_inu_im_1wnd_3lvl_r2021b_T.67*, align 8
  %0 = call i8* @vm_ssGetRootDWork(i8* %S)
  %1 = bitcast %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_ to i8**
  store i8* %0, i8** %1, align 8
  %2 = call i8* @vm_ssGetModelRtp(i8* %S)
  %3 = bitcast %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_ to i8**
  store i8* %2, i8** %3, align 8
  %4 = getelementptr inbounds i8, i8* %2, i64 19256
  %5 = bitcast i8* %4 to double*
  %_rtP__Output_Gain = load double, double* %5, align 1
  %6 = bitcast i8* %0 to %DW_inu_im_1wnd_3lvl_r2021b_T.67*
  %7 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %6, i64 0, i32 17, i64 0
  %_rtDW__NextOutput_el = load double, double* %7, align 1
  %tmp0 = fmul double %_rtP__Output_Gain, %_rtDW__NextOutput_el
  %8 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %6, i64 0, i32 16, i64 0
  store double %tmp0, double* %8, align 1
  %9 = bitcast i8* %2 to %P_inu_im_1wnd_3lvl_r2021b_T.68*
  %10 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %9, i64 0, i32 140
  %_rtP__Output_Gain7 = load double, double* %10, align 1
  %11 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %6, i64 0, i32 17, i64 1
  %_rtDW__NextOutput_el9 = load double, double* %11, align 1
  %tmp1 = fmul double %_rtP__Output_Gain7, %_rtDW__NextOutput_el9
  %12 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %6, i64 0, i32 16, i64 1
  store double %tmp1, double* %12, align 1
  %_rtP__Output_Gain12 = load double, double* %10, align 1
  %13 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %6, i64 0, i32 17, i64 2
  %_rtDW__NextOutput_el14 = load double, double* %13, align 1
  %tmp2 = fmul double %_rtP__Output_Gain12, %_rtDW__NextOutput_el14
  %14 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %6, i64 0, i32 16, i64 2
  store double %tmp2, double* %14, align 1
  ret void
}

define void @Outputs0(i8* %S) {
Outputs0_entry:
  %S_ = alloca i8*, align 8
  store i8* %S, i8** %S_, align 8
  %rtb_MathFunction1_ = alloca double, align 8
  %rtb_Sum1_ = alloca double, align 8
  %rtb_phimd_ = alloca double, align 8
  %rtb_Lminrows24col24_ = alloca [16 x double], align 8
  %rtb_u_Vb_ = alloca [4 x double], align 8
  %rtb_RLinv_ = alloca [16 x double], align 8
  %rtb_LookUpTable_gu_ = alloca double, align 8
  %i_ = alloca i32, align 4
  %tmp_ = alloca i8, align 1
  %rtb_RLinv_0_ = alloca [16 x double], align 8
  %i_0_ = alloca i32, align 4
  %rtb_Sum2_idx_0_ = alloca double, align 8
  %rtb_Sum2_idx_1_ = alloca double, align 8
  %rtb_Sum2_idx_2_ = alloca double, align 8
  %rtb_Sum2_idx_3_ = alloca double, align 8
  %rtb_Product2_idx_0_ = alloca double, align 8
  %rtb_Product_h_idx_0_ = alloca double, align 8
  %tmp_0_ = alloca <2 x double>, align 16
  %tmp_1_ = alloca <2 x double>, align 16
  %tmp_2_ = alloca <2 x double>, align 16
  %tmp_3_ = alloca <2 x double>, align 16
  %tmp_4_ = alloca <2 x double>, align 16
  %tmp_5_ = alloca <2 x double>, align 16
  %tmp_6_ = alloca <2 x double>, align 16
  %tmp_7_ = alloca <2 x double>, align 16
  %_rtB_ = alloca %B_inu_im_1wnd_3lvl_r2021b_T.66*, align 8
  %_rtP_ = alloca %P_inu_im_1wnd_3lvl_r2021b_T.68*, align 8
  %_rtDW_ = alloca %DW_inu_im_1wnd_3lvl_r2021b_T.67*, align 8
  %vm_ssIsSampleHitVar0_ = alloca i32, align 4
  %vm_ssIsSampleHitVar1_ = alloca i32, align 4
  %vm_ssGetTaskTimeVar2_ = alloca double, align 8
  %vm_ssGetTStartVar3_ = alloca double, align 8
  %0 = call double @vm_ssGetTStart(i8* %S)
  store double %0, double* %vm_ssGetTStartVar3_, align 8
  %S_151 = load i8*, i8** %S_, align 8
  %1 = call double @vm_ssGetTaskTime(i8* %S_151, i32 0)
  store double %1, double* %vm_ssGetTaskTimeVar2_, align 8
  %S_152 = load i8*, i8** %S_, align 8
  %2 = call i32 @vm_ssIsSampleHit(i8* %S_152, i32 1, i32 0)
  store i32 %2, i32* %vm_ssIsSampleHitVar1_, align 4
  %S_153 = load i8*, i8** %S_, align 8
  %3 = call i32 @vm_ssIsSampleHit(i8* %S_153, i32 0, i32 0)
  store i32 %3, i32* %vm_ssIsSampleHitVar0_, align 4
  %S_154 = load i8*, i8** %S_, align 8
  %4 = call i8* @vm_ssGetRootDWork(i8* %S_154)
  %5 = bitcast %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_ to i8**
  store i8* %4, i8** %5, align 8
  %S_155 = load i8*, i8** %S_, align 8
  %6 = call i8* @vm_ssGetModelRtp(i8* %S_155)
  %7 = bitcast %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_ to i8**
  store i8* %6, i8** %7, align 8
  %S_156 = load i8*, i8** %S_, align 8
  %8 = call i8* @vm__ssGetModelBlockIO(i8* %S_156)
  %9 = bitcast %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_ to i8**
  store i8* %8, i8** %9, align 8
  store i32 %3, i32* %i_, align 4
  %.not = icmp eq i32 %3, 0
  %10 = bitcast i8* %8 to %B_inu_im_1wnd_3lvl_r2021b_T.66*
  br i1 %.not, label %false, label %true

true:                                             ; preds = %Outputs0_entry
  %_rtDW_159 = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  %11 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_159, i64 0, i32 0, i64 0
  %_rtDW__fluxes_DSTATE_el = load double, double* %11, align 1
  %12 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %10, i64 0, i32 0, i64 0
  store double %_rtDW__fluxes_DSTATE_el, double* %12, align 1
  %_rtDW_161 = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  %13 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_161, i64 0, i32 0, i64 1
  %_rtDW__fluxes_DSTATE_el162 = load double, double* %13, align 1
  %_rtB_163 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %14 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_163, i64 0, i32 0, i64 1
  store double %_rtDW__fluxes_DSTATE_el162, double* %14, align 1
  %15 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_161, i64 0, i32 0, i64 2
  %_rtDW__fluxes_DSTATE_el165 = load double, double* %15, align 1
  %16 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_163, i64 0, i32 0, i64 2
  store double %_rtDW__fluxes_DSTATE_el165, double* %16, align 1
  %17 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_161, i64 0, i32 0, i64 3
  %_rtDW__fluxes_DSTATE_el168 = load double, double* %17, align 1
  %18 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_163, i64 0, i32 0, i64 3
  store double %_rtDW__fluxes_DSTATE_el168, double* %18, align 1
  %19 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_163, i64 0, i32 30
  %_rtB__Constant = load double, double* %19, align 1
  %20 = fcmp ogt double %_rtB__Constant, 0.000000e+00
  br i1 %20, label %true1, label %false2

false:                                            ; preds = %false109, %Outputs0_entry
  %vm_ssIsSampleHitVar1_991 = phi i32 [ %vm_ssIsSampleHitVar1_991.pre, %false109 ], [ %2, %Outputs0_entry ]
  store i32 %vm_ssIsSampleHitVar1_991, i32* %i_, align 4
  %.not1144 = icmp eq i32 %vm_ssIsSampleHitVar1_991, 0
  br i1 %.not1144, label %false111, label %true110

true1:                                            ; preds = %true
  %21 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_163, i64 0, i32 96, i64 0
  %_rtB__u2_el = load double, double* %21, align 1
  %tmp0 = fdiv double 1.000000e+00, %_rtB__u2_el
  %22 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_163, i64 0, i32 96, i64 1
  %_rtB__u2_el173 = load double, double* %22, align 1
  %tmp1 = fdiv double 1.000000e+00, %_rtB__u2_el173
  %tmp2 = fadd double %tmp0, %tmp1
  %23 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_161, i64 0, i32 15
  %_rtDW__Delay_DSTATE = load double, double* %23, align 1
  %tmp3 = fdiv double 1.000000e+00, %_rtDW__Delay_DSTATE
  %tmp4 = fadd double %tmp2, %tmp3
  %tmp5 = fdiv double 1.000000e+00, %tmp4
  store double %tmp5, double* %rtb_MathFunction1_, align 8
  %24 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_163, i64 0, i32 99, i64 0
  %_rtB__u1_f_el = load double, double* %24, align 1
  %tmp6 = fmul double %_rtB__u1_f_el, %tmp5
  store double %tmp6, double* %rtb_Product2_idx_0_, align 8
  %25 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_163, i64 0, i32 99, i64 1
  %_rtB__u1_f_el178 = load double, double* %25, align 1
  %tmp7 = fmul double %_rtB__u1_f_el178, %tmp5
  store double %tmp7, double* %rtb_MathFunction1_, align 8
  %_rtP_180 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %26 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_180, i64 0, i32 44
  %_rtP__Gain_Gain = load double, double* %26, align 1
  %27 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_161, i64 0, i32 0, i64 0
  %_rtDW__fluxes_DSTATE_el182 = load double, double* %27, align 1
  %tmp8 = fmul double %_rtP__Gain_Gain, %_rtDW__fluxes_DSTATE_el182
  %28 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_161, i64 0, i32 1, i64 0
  %_rtDW__fluxes_DSTATE_p_el = load double, double* %28, align 1
  %tmp9 = fsub double %tmp8, %_rtDW__fluxes_DSTATE_p_el
  %tmp10 = fmul double %tmp9, %tmp6
  %_rtDW__fluxes_DSTATE_el188 = load double, double* %15, align 1
  %tmp11 = fmul double %_rtP__Gain_Gain, %_rtDW__fluxes_DSTATE_el188
  %29 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_161, i64 0, i32 1, i64 2
  %_rtDW__fluxes_DSTATE_p_el190 = load double, double* %29, align 1
  %tmp12 = fsub double %tmp11, %_rtDW__fluxes_DSTATE_p_el190
  %tmp13 = fmul double %tmp12, %tmp7
  %tmp14 = fadd double %tmp10, %tmp13
  %_rtDW__fluxes_DSTATE_el195 = load double, double* %13, align 1
  %tmp15 = fmul double %_rtP__Gain_Gain, %_rtDW__fluxes_DSTATE_el195
  %30 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_161, i64 0, i32 1, i64 1
  %_rtDW__fluxes_DSTATE_p_el197 = load double, double* %30, align 1
  %tmp16 = fsub double %tmp15, %_rtDW__fluxes_DSTATE_p_el197
  %tmp17 = fmul double %tmp16, %tmp6
  %_rtDW__fluxes_DSTATE_el202 = load double, double* %17, align 1
  %tmp18 = fmul double %_rtP__Gain_Gain, %_rtDW__fluxes_DSTATE_el202
  %31 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_161, i64 0, i32 1, i64 3
  %_rtDW__fluxes_DSTATE_p_el204 = load double, double* %31, align 1
  %tmp19 = fsub double %tmp18, %_rtDW__fluxes_DSTATE_p_el204
  %tmp20 = fmul double %tmp19, %tmp7
  %tmp21 = fadd double %tmp17, %tmp20
  %32 = call double @muDoubleScalarHypot(double %tmp14, double %tmp21)
  store double %32, double* %rtb_Product2_idx_0_, align 8
  %_rtP_207 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %33 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_207, i64 0, i32 5, i64 0
  %34 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_207, i64 0, i32 4, i64 0
  %_rtDW_209 = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  %35 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_209, i64 0, i32 52
  %36 = call double @look1_pbinlxpw(double %32, double* nonnull %33, double* nonnull %34, i32* nonnull %35, i32 1)
  store double %36, double* %rtb_phimd_, align 8
  %37 = fcmp une double %36, 0.000000e+00
  br i1 %37, label %true3, label %false4

false2:                                           ; preds = %false8, %true
  %_rtB_240 = phi %B_inu_im_1wnd_3lvl_r2021b_T.66* [ %_rtB_236.pre, %false8 ], [ %_rtB_163, %true ]
  %38 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_240, i64 0, i32 31
  %_rtB__Constant1 = load double, double* %38, align 1
  %_rtP_237 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %39 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_237, i64 0, i32 46
  %_rtP__Switch_Threshold = load double, double* %39, align 1
  %40 = fcmp oge double %_rtB__Constant1, %_rtP__Switch_Threshold
  %41 = zext i1 %40 to i8
  store i8 %41, i8* %tmp_, align 1
  br i1 %40, label %true9, label %false10

true3:                                            ; preds = %true1
  %tmp22 = fdiv double %32, %36
  %_rtB_215 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %42 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_215, i64 0, i32 92
  store double %tmp22, double* %42, align 1
  br label %merge

false4:                                           ; preds = %true1
  %_rtB_211 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %43 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_211, i64 0, i32 95
  %_rtB__Constant1_f = load double, double* %43, align 1
  %44 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_211, i64 0, i32 92
  store double %_rtB__Constant1_f, double* %44, align 1
  br label %merge

true5:                                            ; preds = %merge122
  %45 = sext i32 %i_1143 to i64
  %46 = getelementptr inbounds [16 x double], [16 x double]* %rtb_Lminrows24col24_, i64 0, i64 %45
  %47 = bitcast double* %46 to <2 x double>*
  %48 = load <2 x double>, <2 x double>* %47, align 8
  store <2 x double> %48, <2 x double>* %tmp_6_, align 16
  %49 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_217, i64 0, i32 98, i64 %45
  %50 = bitcast double* %49 to <2 x double>*
  %51 = load <2 x double>, <2 x double>* %50, align 1
  store <2 x double> %51, <2 x double>* %tmp_7_, align 16
  %52 = getelementptr inbounds [16 x double], [16 x double]* %rtb_RLinv_, i64 0, i64 %45
  %53 = fadd <2 x double> %51, %48
  %54 = bitcast double* %52 to <2 x double>*
  store <2 x double> %53, <2 x double>* %54, align 8
  %tmp293 = add i32 %i_1143, 2
  br label %merge122

false6:                                           ; preds = %merge122
  %55 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_217, i64 0, i32 93
  call void @inu_im_1wnd_3lvl_r2021b_rt_invd4x4_snf([16 x double]* nonnull %rtb_RLinv_, [16 x double]* nonnull %55)
  br label %merge123

true7:                                            ; preds = %merge123
  %_rtB_1104 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %56 = shl i32 %i_1127, 2
  %tmp284 = or i32 %56, 1
  %57 = sext i32 %tmp284 to i64
  %58 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_1104, i64 0, i32 93, i64 %57
  %_rtB__Linv_el = load double, double* %58, align 1
  store double %_rtB__Linv_el, double* %rtb_Sum1_, align 8
  %59 = sext i32 %56 to i64
  %60 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_1104, i64 0, i32 93, i64 %59
  %_rtB__Linv_el1108 = load double, double* %60, align 1
  store double %_rtB__Linv_el1108, double* %rtb_MathFunction1_, align 8
  %tmp285 = or i32 %56, 2
  %61 = sext i32 %tmp285 to i64
  %62 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_1104, i64 0, i32 93, i64 %61
  %_rtB__Linv_el1111 = load double, double* %62, align 1
  store double %_rtB__Linv_el1111, double* %rtb_Product2_idx_0_, align 8
  %tmp286 = or i32 %56, 3
  %63 = sext i32 %tmp286 to i64
  %64 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_1104, i64 0, i32 93, i64 %63
  %_rtB__Linv_el1114 = load double, double* %64, align 1
  store double %_rtB__Linv_el1114, double* %rtb_phimd_, align 8
  br label %merge149

false8:                                           ; preds = %merge123
  %_rtDW_235 = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  %65 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_235, i64 0, i32 64
  call void @vm_srUpdateBC(i8* nonnull %65)
  %_rtB_236.pre = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  br label %false2

true9:                                            ; preds = %false2
  %66 = bitcast [16 x double]* %rtb_RLinv_0_ to i8*
  %67 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_240, i64 0, i32 93, i64 0
  %68 = bitcast double* %67 to i8*
  %69 = call i8* @memcpy(i8* nonnull %66, i8* nonnull %68, i32 128)
  br label %merge124

false10:                                          ; preds = %false2
  %70 = bitcast [16 x double]* %rtb_RLinv_0_ to i8*
  %71 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_240, i64 0, i32 32, i64 0
  %72 = bitcast double* %71 to i8*
  %73 = call i8* @memcpy(i8* nonnull %70, i8* nonnull %72, i32 128)
  br label %merge124

true11:                                           ; preds = %merge125
  %tmp280 = add i32 %i_1103, 4
  %74 = sext i32 %tmp280 to i64
  %75 = getelementptr inbounds [16 x double], [16 x double]* %rtb_RLinv_0_, i64 0, i64 %74
  %76 = bitcast double* %75 to <2 x double>*
  %77 = load <2 x double>, <2 x double>* %76, align 8
  store <2 x double> %77, <2 x double>* %tmp_6_, align 16
  %78 = sext i32 %i_1103 to i64
  %79 = getelementptr inbounds [16 x double], [16 x double]* %rtb_RLinv_0_, i64 0, i64 %78
  %80 = bitcast double* %79 to <2 x double>*
  %81 = load <2 x double>, <2 x double>* %80, align 8
  store <2 x double> %81, <2 x double>* %tmp_7_, align 16
  %tmp281 = add i32 %i_1103, 8
  %82 = sext i32 %tmp281 to i64
  %83 = getelementptr inbounds [16 x double], [16 x double]* %rtb_RLinv_0_, i64 0, i64 %82
  %84 = bitcast double* %83 to <2 x double>*
  %85 = load <2 x double>, <2 x double>* %84, align 8
  store <2 x double> %85, <2 x double>* %tmp_4_, align 16
  %tmp282 = add i32 %i_1103, 12
  %86 = sext i32 %tmp282 to i64
  %87 = getelementptr inbounds [16 x double], [16 x double]* %rtb_RLinv_0_, i64 0, i64 %86
  %88 = bitcast double* %87 to <2 x double>*
  %89 = load <2 x double>, <2 x double>* %88, align 8
  store <2 x double> %89, <2 x double>* %tmp_5_, align 16
  %90 = getelementptr inbounds [4 x double], [4 x double]* %rtb_u_Vb_, i64 0, i64 %78
  %91 = insertelement <2 x double> undef, double %_rtB__xk1_el, i32 0
  %92 = shufflevector <2 x double> %91, <2 x double> undef, <2 x i32> zeroinitializer
  %93 = fmul <2 x double> %77, %92
  %94 = insertelement <2 x double> undef, double %_rtB__xk1_el243, i32 0
  %95 = shufflevector <2 x double> %94, <2 x double> undef, <2 x i32> zeroinitializer
  %96 = fmul <2 x double> %81, %95
  %97 = fadd <2 x double> %93, %96
  %98 = insertelement <2 x double> undef, double %_rtB__xk1_el245, i32 0
  %99 = shufflevector <2 x double> %98, <2 x double> undef, <2 x i32> zeroinitializer
  %100 = fmul <2 x double> %85, %99
  %101 = fadd <2 x double> %97, %100
  %102 = insertelement <2 x double> undef, double %_rtB__xk1_el247, i32 0
  %103 = shufflevector <2 x double> %102, <2 x double> undef, <2 x i32> zeroinitializer
  %104 = fmul <2 x double> %89, %103
  %105 = fadd <2 x double> %101, %104
  %106 = bitcast double* %90 to <2 x double>*
  store <2 x double> %105, <2 x double>* %106, align 8
  %tmp283 = add i32 %i_1103, 2
  br label %merge125

false12:                                          ; preds = %merge125
  %_rtDW_249 = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  %107 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_249, i64 0, i32 2
  %_rtDW__Rotoranglethetam_DSTATE = load double, double* %107, align 1
  store double %_rtDW__Rotoranglethetam_DSTATE, double* %rtb_Product2_idx_0_, align 8
  %108 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_249, i64 0, i32 3
  %_rtDW__wm_delay_DSTATE = load double, double* %108, align 1
  %109 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_241, i64 0, i32 1
  store double %_rtDW__wm_delay_DSTATE, double* %109, align 1
  %_rtP_252 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %110 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_252, i64 0, i32 50
  %_rtP__F2_Gain = load double, double* %110, align 1
  %tmp23 = fmul double %_rtDW__wm_delay_DSTATE, %_rtP__F2_Gain
  %111 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_249, i64 0, i32 4
  %_rtDW__wm_predict_DSTATE = load double, double* %111, align 1
  %tmp24 = fsub double %tmp23, %_rtDW__wm_predict_DSTATE
  store double %tmp24, double* %rtb_Sum1_, align 8
  %112 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_252, i64 0, i32 165
  %_rtP__Constant_Value_d = load i8, i8* %112, align 1
  store i8 %_rtP__Constant_Value_d, i8* @rtb_Constant_l, align 1
  %113 = and i8 %_rtP__Constant_Value_d, 1
  %.not1145 = icmp eq i8 %113, 0
  br i1 %.not1145, label %false14, label %true13

true13:                                           ; preds = %false12
  %114 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_249, i64 0, i32 69
  %_rtDW__sinthrcosthr_MODE276 = load i8, i8* %114, align 1
  %115 = and i8 %_rtDW__sinthrcosthr_MODE276, 1
  %.not1179 = icmp eq i8 %115, 0
  br i1 %.not1179, label %true19, label %false20

false14:                                          ; preds = %false12
  %116 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_249, i64 0, i32 69
  %_rtDW__sinthrcosthr_MODE = load i8, i8* %116, align 1
  %117 = and i8 %_rtDW__sinthrcosthr_MODE, 1
  %.not1146 = icmp eq i8 %117, 0
  br i1 %.not1146, label %merge127, label %true15

true15:                                           ; preds = %false14
  %S_257 = load i8*, i8** %S_, align 8
  call void @vm_ssSetBlockStateForSolverChangedAtMajorStep(i8* %S_257)
  %_rtP_258 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %118 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_258, i64 0, i32 33
  %_rtP__sinthrcosthr_Y0 = load double, double* %118, align 1
  %_rtB_259 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %119 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_259, i64 0, i32 58
  store double %_rtP__sinthrcosthr_Y0, double* %119, align 1
  %_rtP__sinthrcosthr_Y0261 = load double, double* %118, align 1
  %120 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_259, i64 0, i32 59
  store double %_rtP__sinthrcosthr_Y0261, double* %120, align 1
  %_rtP__sinthrcosthr_Y0264 = load double, double* %118, align 1
  %121 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_259, i64 0, i32 57, i64 0
  store double %_rtP__sinthrcosthr_Y0264, double* %121, align 1
  %_rtP__sinthrcosthr_Y0267 = load double, double* %118, align 1
  %122 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_259, i64 0, i32 57, i64 1
  store double %_rtP__sinthrcosthr_Y0267, double* %122, align 1
  br label %merge126

true17:                                           ; preds = %merge126
  %_rtP_271 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %123 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_271, i64 0, i32 34
  %_rtP__W_Y0_h = load double, double* %123, align 1
  %_rtB_272 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %124 = sext i32 %i_273 to i64
  %125 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_272, i64 0, i32 60, i64 %124
  store double %_rtP__W_Y0_h, double* %125, align 1
  %tmp25 = add i32 %i_273, 1
  br label %merge126

false18:                                          ; preds = %merge126
  %_rtDW_270 = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  %126 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_270, i64 0, i32 69
  store i8 0, i8* %126, align 1
  br label %merge127

true19:                                           ; preds = %true13
  %127 = fcmp une double %1, %0
  br i1 %127, label %true21, label %false22

false20:                                          ; preds = %false22, %true13
  %_rtB_287 = phi %B_inu_im_1wnd_3lvl_r2021b_T.66* [ %_rtB_282.pre, %false22 ], [ %_rtB_241, %true13 ]
  %_rtP_281 = phi %P_inu_im_1wnd_3lvl_r2021b_T.68* [ %_rtP_281.pre, %false22 ], [ %_rtP_252, %true13 ]
  %128 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_281, i64 0, i32 35, i64 0
  %_rtP__Constant_Value_el = load double, double* %128, align 1
  %129 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_287, i64 0, i32 57, i64 0
  store double %_rtP__Constant_Value_el, double* %129, align 1
  %130 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_281, i64 0, i32 35, i64 1
  %_rtP__Constant_Value_el284 = load double, double* %130, align 1
  %131 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_287, i64 0, i32 57, i64 1
  store double %_rtP__Constant_Value_el284, double* %131, align 1
  %132 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_287, i64 0, i32 58
  %133 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_287, i64 0, i32 59
  call void @muDoubleScalarSinCos(double %_rtDW__Rotoranglethetam_DSTATE, double* nonnull %132, double* nonnull %133)
  %134 = bitcast [16 x double]* %rtb_Lminrows24col24_ to i8*
  %_rtB_289 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %135 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_289, i64 0, i32 61, i64 0
  %136 = bitcast double* %135 to i8*
  %137 = call i8* @memcpy(i8* nonnull %134, i8* nonnull %136, i32 128)
  %rtb_Sum1_290 = load double, double* %rtb_Sum1_, align 8
  %138 = getelementptr inbounds [16 x double], [16 x double]* %rtb_Lminrows24col24_, i64 0, i64 4
  store double %rtb_Sum1_290, double* %138, align 8
  %_rtB_291 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %139 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_291, i64 0, i32 60, i64 0
  %140 = bitcast double* %139 to i8*
  %141 = call i8* @memcpy(i8* nonnull %140, i8* nonnull %134, i32 128)
  %_rtP_292 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %142 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_292, i64 0, i32 36
  %_rtP__Gain1_Gain = load double, double* %142, align 1
  %rtb_Sum1_293 = load double, double* %rtb_Sum1_, align 8
  %tmp26 = fmul double %_rtP__Gain1_Gain, %rtb_Sum1_293
  %_rtB_294 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %143 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_294, i64 0, i32 60, i64 1
  store double %tmp26, double* %143, align 1
  %_rtDW_295 = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  %144 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_295, i64 0, i32 56
  call void @vm_srUpdateBC(i8* nonnull %144)
  br label %merge127

true21:                                           ; preds = %true19
  %S_279 = load i8*, i8** %S_, align 8
  call void @vm_ssSetBlockStateForSolverChangedAtMajorStep(i8* %S_279)
  %_rtDW_280.pre = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  %_rtP_281.pre.pre = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %_rtB_282.pre.pre = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  br label %false22

false22:                                          ; preds = %true21, %true19
  %_rtB_282.pre = phi %B_inu_im_1wnd_3lvl_r2021b_T.66* [ %_rtB_282.pre.pre, %true21 ], [ %_rtB_241, %true19 ]
  %_rtP_281.pre = phi %P_inu_im_1wnd_3lvl_r2021b_T.68* [ %_rtP_281.pre.pre, %true21 ], [ %_rtP_252, %true19 ]
  %_rtDW_280 = phi %DW_inu_im_1wnd_3lvl_r2021b_T.67* [ %_rtDW_280.pre, %true21 ], [ %_rtDW_249, %true19 ]
  %145 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_280, i64 0, i32 69
  store i8 1, i8* %145, align 1
  br label %false20

true23:                                           ; preds = %merge127
  %_rtDW_311 = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  %146 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_311, i64 0, i32 68
  %_rtDW__sinthrcosthr1_MODE312 = load i8, i8* %146, align 1
  %147 = and i8 %_rtDW__sinthrcosthr1_MODE312, 1
  %.not1177 = icmp eq i8 %147, 0
  br i1 %.not1177, label %true27, label %false28

false24:                                          ; preds = %merge127
  %_rtDW_297 = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  %148 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_297, i64 0, i32 68
  %_rtDW__sinthrcosthr1_MODE = load i8, i8* %148, align 1
  %149 = and i8 %_rtDW__sinthrcosthr1_MODE, 1
  %.not1148 = icmp eq i8 %149, 0
  br i1 %.not1148, label %merge128, label %true25

true25:                                           ; preds = %false24
  %S_298 = load i8*, i8** %S_, align 8
  call void @vm_ssSetBlockStateForSolverChangedAtMajorStep(i8* %S_298)
  %_rtP_299 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %150 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_299, i64 0, i32 38
  %_rtP__sinthrcosthr_Y0_n = load double, double* %150, align 1
  %_rtB_300 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %151 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_300, i64 0, i32 53
  store double %_rtP__sinthrcosthr_Y0_n, double* %151, align 1
  %_rtP__sinthrcosthr_Y0_n302 = load double, double* %150, align 1
  %152 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_300, i64 0, i32 54
  store double %_rtP__sinthrcosthr_Y0_n302, double* %152, align 1
  %_rtP__sinthrcosthr_Y0_n305 = load double, double* %150, align 1
  %153 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_300, i64 0, i32 52, i64 0
  store double %_rtP__sinthrcosthr_Y0_n305, double* %153, align 1
  %_rtP__sinthrcosthr_Y0_n308 = load double, double* %150, align 1
  %154 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_300, i64 0, i32 52, i64 1
  store double %_rtP__sinthrcosthr_Y0_n308, double* %154, align 1
  %_rtDW_310 = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  %155 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_310, i64 0, i32 68
  store i8 0, i8* %155, align 1
  br label %merge128

true27:                                           ; preds = %true23
  %156 = fcmp une double %1, %0
  br i1 %156, label %true29, label %false30

false28:                                          ; preds = %false30, %true23
  %_rtP_317 = phi %P_inu_im_1wnd_3lvl_r2021b_T.68* [ %_rtP_317.pre, %false30 ], [ %_rtP_296, %true23 ]
  %157 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_317, i64 0, i32 40, i64 0
  %_rtP__Constant_Value_o_el = load double, double* %157, align 1
  %_rtB_318 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %158 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_318, i64 0, i32 52, i64 0
  store double %_rtP__Constant_Value_o_el, double* %158, align 1
  %159 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_317, i64 0, i32 40, i64 1
  %_rtP__Constant_Value_o_el320 = load double, double* %159, align 1
  %160 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_318, i64 0, i32 52, i64 1
  store double %_rtP__Constant_Value_o_el320, double* %160, align 1
  %rtb_Product2_idx_0_322 = load double, double* %rtb_Product2_idx_0_, align 8
  %161 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_318, i64 0, i32 53
  %162 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_318, i64 0, i32 54
  call void @muDoubleScalarSinCos(double %rtb_Product2_idx_0_322, double* nonnull %161, double* nonnull %162)
  %163 = bitcast [16 x double]* %rtb_Lminrows24col24_ to i8*
  %_rtB_325 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %164 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_325, i64 0, i32 56, i64 0
  %165 = bitcast double* %164 to i8*
  %166 = call i8* @memcpy(i8* nonnull %163, i8* nonnull %165, i32 128)
  %_rtP_326 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %167 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_326, i64 0, i32 41
  %_rtP__Gain3_Gain = load double, double* %167, align 1
  %rtb_Sum1_327 = load double, double* %rtb_Sum1_, align 8
  %tmp27 = fmul double %_rtP__Gain3_Gain, %rtb_Sum1_327
  %168 = getelementptr inbounds [16 x double], [16 x double]* %rtb_Lminrows24col24_, i64 0, i64 14
  store double %tmp27, double* %168, align 8
  %_rtB_328 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %169 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_328, i64 0, i32 55, i64 0
  %170 = bitcast double* %169 to i8*
  %171 = call i8* @memcpy(i8* nonnull %170, i8* nonnull %163, i32 128)
  %rtb_Sum1_329 = load double, double* %rtb_Sum1_, align 8
  %_rtB_330 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %172 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_330, i64 0, i32 55, i64 11
  store double %rtb_Sum1_329, double* %172, align 1
  %_rtDW_331 = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  %173 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_331, i64 0, i32 55
  call void @vm_srUpdateBC(i8* nonnull %173)
  %_rtP_332.pre = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  br label %merge128

true29:                                           ; preds = %true27
  %S_315 = load i8*, i8** %S_, align 8
  call void @vm_ssSetBlockStateForSolverChangedAtMajorStep(i8* %S_315)
  %_rtDW_316.pre = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  %_rtP_317.pre.pre = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  br label %false30

false30:                                          ; preds = %true29, %true27
  %_rtP_317.pre = phi %P_inu_im_1wnd_3lvl_r2021b_T.68* [ %_rtP_317.pre.pre, %true29 ], [ %_rtP_296, %true27 ]
  %_rtDW_316 = phi %DW_inu_im_1wnd_3lvl_r2021b_T.67* [ %_rtDW_316.pre, %true29 ], [ %_rtDW_311, %true27 ]
  %174 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_316, i64 0, i32 68
  store i8 1, i8* %174, align 1
  br label %false28

true31:                                           ; preds = %merge128
  %175 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_335, i64 0, i32 29
  %_rtP__we_Value = load double, double* %175, align 1
  %rtb_Sum1_336 = load double, double* %rtb_Sum1_, align 8
  %tmp28 = fsub double %_rtP__we_Value, %rtb_Sum1_336
  store double %tmp28, double* %rtb_phimd_, align 8
  %176 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_335, i64 0, i32 31
  %_rtP__web_psb_Gain = load double, double* %176, align 1
  %tmp29 = fmul double %_rtP__web_psb_Gain, %1
  store double %tmp29, double* %rtb_MathFunction1_, align 8
  %177 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_333, i64 0, i32 62
  %178 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_333, i64 0, i32 63
  call void @muDoubleScalarSinCos(double %tmp29, double* nonnull %177, double* nonnull %178)
  %rtb_MathFunction1_342 = load double, double* %rtb_MathFunction1_, align 8
  %rtb_Product2_idx_0_343 = load double, double* %rtb_Product2_idx_0_, align 8
  %tmp30 = fsub double %rtb_MathFunction1_342, %rtb_Product2_idx_0_343
  %_rtB_344 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %179 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_344, i64 0, i32 64
  %180 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_344, i64 0, i32 65
  call void @muDoubleScalarSinCos(double %tmp30, double* nonnull %179, double* nonnull %180)
  %181 = bitcast [16 x double]* %rtb_Lminrows24col24_ to i8*
  %_rtB_346 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %182 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_346, i64 0, i32 67, i64 0
  %183 = bitcast double* %182 to i8*
  %184 = call i8* @memcpy(i8* nonnull %181, i8* nonnull %183, i32 128)
  %185 = getelementptr inbounds [16 x double], [16 x double]* %rtb_Lminrows24col24_, i64 0, i64 14
  store double %tmp28, double* %185, align 8
  %_rtB_348 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %186 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_348, i64 0, i32 66, i64 0
  %187 = bitcast double* %186 to i8*
  %188 = call i8* @memcpy(i8* nonnull %187, i8* nonnull %181, i32 128)
  %_rtP_349 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %189 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_349, i64 0, i32 30
  %_rtP__Gain2_Gain = load double, double* %189, align 1
  %tmp31 = fmul double %_rtP__Gain2_Gain, %tmp28
  %_rtB_351 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %190 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_351, i64 0, i32 66, i64 11
  store double %tmp31, double* %190, align 1
  %_rtDW_352 = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  %191 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_352, i64 0, i32 57
  call void @vm_srUpdateBC(i8* nonnull %191)
  %_rtB_353.pre = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  br label %false32

false32:                                          ; preds = %true31, %merge128
  %_rtB_356 = phi %B_inu_im_1wnd_3lvl_r2021b_T.66* [ %_rtB_353.pre, %true31 ], [ %_rtB_333, %merge128 ]
  %192 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_356, i64 0, i32 41
  %_rtB__Constant2_m = load double, double* %192, align 1
  %193 = fptosi double %_rtB__Constant2_m to i32
  switch i32 %193, label %default [
    i32 1, label %case
    i32 2, label %case33
  ]

case:                                             ; preds = %false32
  %194 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_356, i64 0, i32 58
  %_rtB__TrigonometricFunction_o1_a = load double, double* %194, align 1
  store double %_rtB__TrigonometricFunction_o1_a, double* %rtb_Sum2_idx_0_, align 8
  %195 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_356, i64 0, i32 59
  %_rtB__TrigonometricFunction_o2_d = load double, double* %195, align 1
  store double %_rtB__TrigonometricFunction_o2_d, double* %rtb_Sum2_idx_1_, align 8
  %196 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_356, i64 0, i32 57, i64 0
  %_rtB__Constant_do_el = load double, double* %196, align 1
  store double %_rtB__Constant_do_el, double* %rtb_Sum2_idx_2_, align 8
  %197 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_356, i64 0, i32 57, i64 1
  %_rtB__Constant_do_el362 = load double, double* %197, align 1
  store double %_rtB__Constant_do_el362, double* %rtb_Sum2_idx_3_, align 8
  br label %merge129

case33:                                           ; preds = %false32
  %198 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_356, i64 0, i32 53
  %_rtB__TrigonometricFunction_o1 = load double, double* %198, align 1
  store double %_rtB__TrigonometricFunction_o1, double* %rtb_Sum2_idx_0_, align 8
  %199 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_356, i64 0, i32 54
  %_rtB__TrigonometricFunction_o2 = load double, double* %199, align 1
  store double %_rtB__TrigonometricFunction_o2, double* %rtb_Sum2_idx_1_, align 8
  %200 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_356, i64 0, i32 52, i64 0
  %_rtB__Constant_d_el = load double, double* %200, align 1
  store double %_rtB__Constant_d_el, double* %rtb_Sum2_idx_2_, align 8
  %201 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_356, i64 0, i32 52, i64 1
  %_rtB__Constant_d_el367 = load double, double* %201, align 1
  store double %_rtB__Constant_d_el367, double* %rtb_Sum2_idx_3_, align 8
  br label %merge129

default:                                          ; preds = %false32
  %202 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_356, i64 0, i32 64
  %_rtB__TrigonometricFunction1_o1 = load double, double* %202, align 1
  store double %_rtB__TrigonometricFunction1_o1, double* %rtb_Sum2_idx_0_, align 8
  %203 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_356, i64 0, i32 65
  %_rtB__TrigonometricFunction1_o2 = load double, double* %203, align 1
  store double %_rtB__TrigonometricFunction1_o2, double* %rtb_Sum2_idx_1_, align 8
  %204 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_356, i64 0, i32 62
  %_rtB__TrigonometricFunction_o1_i = load double, double* %204, align 1
  store double %_rtB__TrigonometricFunction_o1_i, double* %rtb_Sum2_idx_2_, align 8
  %205 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_356, i64 0, i32 63
  %_rtB__TrigonometricFunction_o2_e = load double, double* %205, align 1
  store double %_rtB__TrigonometricFunction_o2_e, double* %rtb_Sum2_idx_3_, align 8
  br label %merge129

true34:                                           ; preds = %merge129
  %_rtDW_382 = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  %206 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_382, i64 0, i32 72
  %_rtDW__Rotorreferenceframe_MODE383 = load i8, i8* %206, align 1
  %207 = and i8 %_rtDW__Rotorreferenceframe_MODE383, 1
  %.not1176 = icmp eq i8 %207, 0
  br i1 %.not1176, label %true38, label %false39

false35:                                          ; preds = %merge129
  %_rtDW_369 = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  %208 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_369, i64 0, i32 72
  %_rtDW__Rotorreferenceframe_MODE = load i8, i8* %208, align 1
  %209 = and i8 %_rtDW__Rotorreferenceframe_MODE, 1
  %.not1151 = icmp eq i8 %209, 0
  br i1 %.not1151, label %merge130, label %true36

true36:                                           ; preds = %false35
  %S_370 = load i8*, i8** %S_, align 8
  call void @vm_ssSetBlockStateForSolverChangedAtMajorStep(i8* %S_370)
  %_rtP_371 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %210 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_371, i64 0, i32 21
  %_rtP__irairb_Y0 = load double, double* %210, align 1
  %_rtB_372 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %211 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_372, i64 0, i32 76
  store double %_rtP__irairb_Y0, double* %211, align 1
  %_rtP__irairb_Y0374 = load double, double* %210, align 1
  %212 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_372, i64 0, i32 77
  store double %_rtP__irairb_Y0374, double* %212, align 1
  %213 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_371, i64 0, i32 22
  %_rtP__isaisb_Y0 = load double, double* %213, align 1
  %214 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_372, i64 0, i32 78
  store double %_rtP__isaisb_Y0, double* %214, align 1
  %_rtP__isaisb_Y0379 = load double, double* %213, align 1
  %215 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_372, i64 0, i32 79
  store double %_rtP__isaisb_Y0379, double* %215, align 1
  %_rtDW_381 = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  %216 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_381, i64 0, i32 72
  store i8 0, i8* %216, align 1
  br label %merge130

true38:                                           ; preds = %true34
  %217 = fcmp une double %1, %0
  br i1 %217, label %true40, label %false41

false39:                                          ; preds = %false41, %true34
  %_rtDW_404 = phi %DW_inu_im_1wnd_3lvl_r2021b_T.67* [ %_rtDW_387, %false41 ], [ %_rtDW_382, %true34 ]
  %_rtB_403 = phi %B_inu_im_1wnd_3lvl_r2021b_T.66* [ %_rtB_388.pre, %false41 ], [ %_rtB_356, %true34 ]
  %218 = getelementptr inbounds [4 x double], [4 x double]* %rtb_u_Vb_, i64 0, i64 2
  %rtb_u_Vb__el = load double, double* %218, align 8
  %219 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_403, i64 0, i32 76
  store double %rtb_u_Vb__el, double* %219, align 1
  %220 = getelementptr inbounds [4 x double], [4 x double]* %rtb_u_Vb_, i64 0, i64 3
  %rtb_u_Vb__el389 = load double, double* %220, align 8
  %tmp32 = fmul double %rtb_u_Vb__el389, 0x3FFBB67AE8584CAA
  %tmp33 = fadd double %tmp32, %rtb_u_Vb__el
  %tmp35 = fmul double %tmp33, -5.000000e-01
  %221 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_403, i64 0, i32 77
  store double %tmp35, double* %221, align 1
  %222 = getelementptr inbounds [4 x double], [4 x double]* %rtb_u_Vb_, i64 0, i64 0
  %rtb_u_Vb__el392 = load double, double* %222, align 8
  %tmp36 = fmul double %rtb_u_Vb__el392, %rtb_Sum2_idx_1_393.pre
  %223 = getelementptr inbounds [4 x double], [4 x double]* %rtb_u_Vb_, i64 0, i64 1
  %rtb_u_Vb__el395 = load double, double* %223, align 8
  %tmp37 = fmul double %rtb_Sum2_idx_0_394.pre, %rtb_u_Vb__el395
  %tmp38 = fadd double %tmp36, %tmp37
  %224 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_403, i64 0, i32 78
  store double %tmp38, double* %224, align 1
  %tmp39 = fmul double %rtb_Sum2_idx_0_394.pre, 0x3FFBB67AE8584CAA
  %tmp40 = fsub double %tmp39, %rtb_Sum2_idx_1_393.pre
  %tmp41 = fmul double %tmp40, %rtb_u_Vb__el392
  %tmp42 = fmul double %rtb_Sum2_idx_1_393.pre, 0xBFFBB67AE8584CAA
  %tmp43 = fsub double %tmp42, %rtb_Sum2_idx_0_394.pre
  %tmp44 = fmul double %tmp43, %rtb_u_Vb__el395
  %tmp45 = fadd double %tmp41, %tmp44
  %tmp46 = fmul double %tmp45, 5.000000e-01
  %225 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_403, i64 0, i32 79
  store double %tmp46, double* %225, align 1
  %226 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_404, i64 0, i32 60
  call void @vm_srUpdateBC(i8* nonnull %226)
  %_rtP_405.pre = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  br label %merge130

true40:                                           ; preds = %true38
  %S_386 = load i8*, i8** %S_, align 8
  call void @vm_ssSetBlockStateForSolverChangedAtMajorStep(i8* %S_386)
  %_rtDW_387.pre = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  %_rtB_388.pre.pre = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  br label %false41

false41:                                          ; preds = %true40, %true38
  %_rtB_388.pre = phi %B_inu_im_1wnd_3lvl_r2021b_T.66* [ %_rtB_388.pre.pre, %true40 ], [ %_rtB_356, %true38 ]
  %_rtDW_387 = phi %DW_inu_im_1wnd_3lvl_r2021b_T.67* [ %_rtDW_387.pre, %true40 ], [ %_rtDW_382, %true38 ]
  %227 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_387, i64 0, i32 72
  store i8 1, i8* %227, align 1
  br label %false39

true42:                                           ; preds = %merge130
  %_rtDW_419 = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  %228 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_419, i64 0, i32 71
  %_rtDW__Stationaryreferenceframe_MODE420 = load i8, i8* %228, align 1
  %229 = and i8 %_rtDW__Stationaryreferenceframe_MODE420, 1
  %.not1175 = icmp eq i8 %229, 0
  br i1 %.not1175, label %true46, label %false47

false43:                                          ; preds = %merge130
  %_rtDW_406 = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  %230 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_406, i64 0, i32 71
  %_rtDW__Stationaryreferenceframe_MODE = load i8, i8* %230, align 1
  %231 = and i8 %_rtDW__Stationaryreferenceframe_MODE, 1
  %.not1153 = icmp eq i8 %231, 0
  br i1 %.not1153, label %merge131, label %true44

true44:                                           ; preds = %false43
  %S_407 = load i8*, i8** %S_, align 8
  call void @vm_ssSetBlockStateForSolverChangedAtMajorStep(i8* %S_407)
  %_rtP_408 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %232 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_408, i64 0, i32 23
  %_rtP__irairb_Y0_o = load double, double* %232, align 1
  %_rtB_409 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %233 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_409, i64 0, i32 72
  store double %_rtP__irairb_Y0_o, double* %233, align 1
  %_rtP__irairb_Y0_o411 = load double, double* %232, align 1
  %234 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_409, i64 0, i32 73
  store double %_rtP__irairb_Y0_o411, double* %234, align 1
  %235 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_408, i64 0, i32 24
  %_rtP__isaisb_Y0_p = load double, double* %235, align 1
  %236 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_409, i64 0, i32 74
  store double %_rtP__isaisb_Y0_p, double* %236, align 1
  %_rtP__isaisb_Y0_p416 = load double, double* %235, align 1
  %237 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_409, i64 0, i32 75
  store double %_rtP__isaisb_Y0_p416, double* %237, align 1
  %_rtDW_418 = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  %238 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_418, i64 0, i32 71
  store i8 0, i8* %238, align 1
  br label %merge131

true46:                                           ; preds = %true42
  %239 = fcmp une double %1, %0
  br i1 %239, label %true48, label %false49

false47:                                          ; preds = %false49, %true42
  %_rtDW_442 = phi %DW_inu_im_1wnd_3lvl_r2021b_T.67* [ %_rtDW_424, %false49 ], [ %_rtDW_419, %true42 ]
  %rtb_Sum2_idx_1_425 = load double, double* %rtb_Sum2_idx_1_, align 8
  %240 = getelementptr inbounds [4 x double], [4 x double]* %rtb_u_Vb_, i64 0, i64 2
  %rtb_u_Vb__el426 = load double, double* %240, align 8
  %tmp47 = fmul double %rtb_Sum2_idx_1_425, %rtb_u_Vb__el426
  %rtb_Sum2_idx_0_427 = load double, double* %rtb_Sum2_idx_0_, align 8
  %241 = getelementptr inbounds [4 x double], [4 x double]* %rtb_u_Vb_, i64 0, i64 3
  %rtb_u_Vb__el428 = load double, double* %241, align 8
  %tmp48 = fmul double %rtb_Sum2_idx_0_427, %rtb_u_Vb__el428
  %tmp49 = fsub double %tmp47, %tmp48
  %_rtB_429 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %242 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_429, i64 0, i32 72
  store double %tmp49, double* %242, align 1
  %tmp50 = fneg double %rtb_Sum2_idx_1_425
  %tmp51 = fmul double %rtb_Sum2_idx_0_427, 0x3FFBB67AE8584CAA
  %tmp52 = fsub double %tmp50, %tmp51
  %tmp53 = fmul double %rtb_u_Vb__el426, %tmp52
  %tmp54 = fmul double %rtb_Sum2_idx_1_425, 0x3FFBB67AE8584CAA
  %tmp55 = fsub double %rtb_Sum2_idx_0_427, %tmp54
  %tmp56 = fmul double %rtb_u_Vb__el428, %tmp55
  %tmp57 = fadd double %tmp53, %tmp56
  %tmp58 = fmul double %tmp57, 5.000000e-01
  %243 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_429, i64 0, i32 73
  store double %tmp58, double* %243, align 1
  %244 = getelementptr inbounds [4 x double], [4 x double]* %rtb_u_Vb_, i64 0, i64 0
  %rtb_u_Vb__el437 = load double, double* %244, align 8
  %245 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_429, i64 0, i32 74
  store double %rtb_u_Vb__el437, double* %245, align 1
  %246 = getelementptr inbounds [4 x double], [4 x double]* %rtb_u_Vb_, i64 0, i64 1
  %rtb_u_Vb__el439 = load double, double* %246, align 8
  %tmp59 = fmul double %rtb_u_Vb__el439, 0x3FFBB67AE8584CAA
  %tmp60 = fadd double %tmp59, %rtb_u_Vb__el437
  %tmp62 = fmul double %tmp60, -5.000000e-01
  %247 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_429, i64 0, i32 75
  store double %tmp62, double* %247, align 1
  %248 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_442, i64 0, i32 59
  call void @vm_srUpdateBC(i8* nonnull %248)
  %_rtP_443.pre = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  br label %merge131

true48:                                           ; preds = %true46
  %S_423 = load i8*, i8** %S_, align 8
  call void @vm_ssSetBlockStateForSolverChangedAtMajorStep(i8* %S_423)
  %_rtDW_424.pre = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  br label %false49

false49:                                          ; preds = %true48, %true46
  %_rtDW_424 = phi %DW_inu_im_1wnd_3lvl_r2021b_T.67* [ %_rtDW_424.pre, %true48 ], [ %_rtDW_419, %true46 ]
  %249 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_424, i64 0, i32 71
  store i8 1, i8* %249, align 1
  br label %false47

true50:                                           ; preds = %merge131
  %_rtDW_457 = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  %250 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_457, i64 0, i32 70
  %_rtDW__Synchronousreferenceframe_MODE458 = load i8, i8* %250, align 1
  %251 = and i8 %_rtDW__Synchronousreferenceframe_MODE458, 1
  %.not1174 = icmp eq i8 %251, 0
  br i1 %.not1174, label %true54, label %false55

false51:                                          ; preds = %merge131
  %_rtDW_444 = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  %252 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_444, i64 0, i32 70
  %_rtDW__Synchronousreferenceframe_MODE = load i8, i8* %252, align 1
  %253 = and i8 %_rtDW__Synchronousreferenceframe_MODE, 1
  %.not1155 = icmp eq i8 %253, 0
  br i1 %.not1155, label %merge132, label %true52

true52:                                           ; preds = %false51
  %S_445 = load i8*, i8** %S_, align 8
  call void @vm_ssSetBlockStateForSolverChangedAtMajorStep(i8* %S_445)
  %_rtP_446 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %254 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_446, i64 0, i32 25
  %_rtP__irairb_Y0_h = load double, double* %254, align 1
  %_rtB_447 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %255 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_447, i64 0, i32 68
  store double %_rtP__irairb_Y0_h, double* %255, align 1
  %_rtP__irairb_Y0_h449 = load double, double* %254, align 1
  %256 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_447, i64 0, i32 69
  store double %_rtP__irairb_Y0_h449, double* %256, align 1
  %257 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_446, i64 0, i32 26
  %_rtP__isaisb_Y0_i = load double, double* %257, align 1
  %258 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_447, i64 0, i32 70
  store double %_rtP__isaisb_Y0_i, double* %258, align 1
  %_rtP__isaisb_Y0_i454 = load double, double* %257, align 1
  %259 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_447, i64 0, i32 71
  store double %_rtP__isaisb_Y0_i454, double* %259, align 1
  %_rtDW_456 = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  %260 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_456, i64 0, i32 70
  store i8 0, i8* %260, align 1
  br label %merge132

true54:                                           ; preds = %true50
  %261 = fcmp une double %1, %0
  br i1 %261, label %true56, label %false57

false55:                                          ; preds = %false57, %true50
  %_rtDW_487 = phi %DW_inu_im_1wnd_3lvl_r2021b_T.67* [ %_rtDW_462, %false57 ], [ %_rtDW_457, %true50 ]
  %rtb_Sum2_idx_1_463 = load double, double* %rtb_Sum2_idx_1_, align 8
  %262 = getelementptr inbounds [4 x double], [4 x double]* %rtb_u_Vb_, i64 0, i64 2
  %rtb_u_Vb__el464 = load double, double* %262, align 8
  %tmp63 = fmul double %rtb_Sum2_idx_1_463, %rtb_u_Vb__el464
  %rtb_Sum2_idx_0_465 = load double, double* %rtb_Sum2_idx_0_, align 8
  %263 = getelementptr inbounds [4 x double], [4 x double]* %rtb_u_Vb_, i64 0, i64 3
  %rtb_u_Vb__el466 = load double, double* %263, align 8
  %tmp64 = fmul double %rtb_Sum2_idx_0_465, %rtb_u_Vb__el466
  %tmp65 = fadd double %tmp63, %tmp64
  %_rtB_467 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %264 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_467, i64 0, i32 68
  store double %tmp65, double* %264, align 1
  %tmp66 = fmul double %rtb_Sum2_idx_0_465, 0x3FFBB67AE8584CAA
  %tmp67 = fsub double %tmp66, %rtb_Sum2_idx_1_463
  %tmp68 = fmul double %tmp67, %rtb_u_Vb__el464
  %tmp69 = fmul double %rtb_Sum2_idx_1_463, 0xBFFBB67AE8584CAA
  %tmp70 = fsub double %tmp69, %rtb_Sum2_idx_0_465
  %tmp71 = fmul double %tmp70, %rtb_u_Vb__el466
  %tmp72 = fadd double %tmp68, %tmp71
  %tmp73 = fmul double %tmp72, 5.000000e-01
  %265 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_467, i64 0, i32 69
  store double %tmp73, double* %265, align 1
  %266 = getelementptr inbounds [4 x double], [4 x double]* %rtb_u_Vb_, i64 0, i64 0
  %rtb_u_Vb__el475 = load double, double* %266, align 8
  %tmp74 = fmul double %rtb_u_Vb__el475, %rtb_Sum2_idx_3_647
  %267 = getelementptr inbounds [4 x double], [4 x double]* %rtb_u_Vb_, i64 0, i64 1
  %rtb_u_Vb__el477 = load double, double* %267, align 8
  %tmp75 = fmul double %rtb_u_Vb__el477, %rtb_Sum2_idx_2_646
  %tmp76 = fadd double %tmp74, %tmp75
  %268 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_467, i64 0, i32 70
  store double %tmp76, double* %268, align 1
  %tmp77 = fmul double %rtb_Sum2_idx_2_646, 0x3FFBB67AE8584CAA
  %tmp78 = fsub double %tmp77, %rtb_Sum2_idx_3_647
  %tmp79 = fmul double %tmp78, %rtb_u_Vb__el475
  %tmp80 = fmul double %rtb_Sum2_idx_3_647, 0xBFFBB67AE8584CAA
  %tmp81 = fsub double %tmp80, %rtb_Sum2_idx_2_646
  %tmp82 = fmul double %tmp81, %rtb_u_Vb__el477
  %tmp83 = fadd double %tmp79, %tmp82
  %tmp84 = fmul double %tmp83, 5.000000e-01
  %269 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_467, i64 0, i32 71
  store double %tmp84, double* %269, align 1
  %270 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_487, i64 0, i32 58
  call void @vm_srUpdateBC(i8* nonnull %270)
  br label %merge132

true56:                                           ; preds = %true54
  %S_461 = load i8*, i8** %S_, align 8
  call void @vm_ssSetBlockStateForSolverChangedAtMajorStep(i8* %S_461)
  %_rtDW_462.pre = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  br label %false57

false57:                                          ; preds = %true56, %true54
  %_rtDW_462 = phi %DW_inu_im_1wnd_3lvl_r2021b_T.67* [ %_rtDW_462.pre, %true56 ], [ %_rtDW_457, %true54 ]
  %271 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_462, i64 0, i32 70
  store i8 1, i8* %271, align 1
  br label %false55

case58:                                           ; preds = %merge132
  %272 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_488, i64 0, i32 78
  %_rtB__isa_a = load double, double* %272, align 1
  store double %_rtB__isa_a, double* %rtb_Product2_idx_0_, align 8
  %273 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_488, i64 0, i32 79
  %_rtB__isb_m = load double, double* %273, align 1
  store double %_rtB__isb_m, double* %rtb_MathFunction1_, align 8
  br label %merge133

case59:                                           ; preds = %merge132
  %274 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_488, i64 0, i32 74
  %_rtB__isa_h = load double, double* %274, align 1
  store double %_rtB__isa_h, double* %rtb_Product2_idx_0_, align 8
  %275 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_488, i64 0, i32 75
  %_rtB__isb_h = load double, double* %275, align 1
  store double %_rtB__isb_h, double* %rtb_MathFunction1_, align 8
  br label %merge133

default60:                                        ; preds = %merge132
  %276 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_488, i64 0, i32 70
  %_rtB__isa = load double, double* %276, align 1
  store double %_rtB__isa, double* %rtb_Product2_idx_0_, align 8
  %277 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_488, i64 0, i32 71
  %_rtB__isb = load double, double* %277, align 1
  store double %_rtB__isb, double* %rtb_MathFunction1_, align 8
  br label %merge133

true61:                                           ; preds = %merge133
  %_rtDW_546 = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  %278 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_546, i64 0, i32 75
  %_rtDW__Rotorreferenceframe_MODE_g547 = load i8, i8* %278, align 1
  %279 = and i8 %_rtDW__Rotorreferenceframe_MODE_g547, 1
  %.not1173 = icmp eq i8 %279, 0
  br i1 %.not1173, label %true65, label %false66

false62:                                          ; preds = %merge133
  %_rtDW_533 = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  %280 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_533, i64 0, i32 75
  %_rtDW__Rotorreferenceframe_MODE_g = load i8, i8* %280, align 1
  %281 = and i8 %_rtDW__Rotorreferenceframe_MODE_g, 1
  %.not1157 = icmp eq i8 %281, 0
  br i1 %.not1157, label %merge134, label %true63

true63:                                           ; preds = %false62
  %S_534 = load i8*, i8** %S_, align 8
  call void @vm_ssSetBlockStateForSolverChangedAtMajorStep(i8* %S_534)
  %_rtP_535 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %282 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_535, i64 0, i32 15
  %_rtP__vqrvdr_Y0 = load double, double* %282, align 1
  %_rtB_536 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %283 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_536, i64 0, i32 90
  store double %_rtP__vqrvdr_Y0, double* %283, align 1
  %_rtP__vqrvdr_Y0538 = load double, double* %282, align 1
  %284 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_536, i64 0, i32 88
  store double %_rtP__vqrvdr_Y0538, double* %284, align 1
  %285 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_535, i64 0, i32 16
  %_rtP__vqsvds_Y0 = load double, double* %285, align 1
  %286 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_536, i64 0, i32 91
  store double %_rtP__vqsvds_Y0, double* %286, align 1
  %_rtP__vqsvds_Y0543 = load double, double* %285, align 1
  %287 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_536, i64 0, i32 89
  store double %_rtP__vqsvds_Y0543, double* %287, align 1
  %_rtDW_545 = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  %288 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_545, i64 0, i32 75
  store i8 0, i8* %288, align 1
  br label %merge134

true65:                                           ; preds = %true61
  %289 = fcmp une double %1, %0
  br i1 %289, label %true67, label %false68

false66:                                          ; preds = %false68, %true61
  %_rtDW_569 = phi %DW_inu_im_1wnd_3lvl_r2021b_T.67* [ %_rtDW_551, %false68 ], [ %_rtDW_546, %true61 ]
  %_rtB_568 = phi %B_inu_im_1wnd_3lvl_r2021b_T.66* [ %_rtB_553.pre, %false68 ], [ %_rtB_508, %true61 ]
  %tmp100 = fmul double %tmp97, 0xBFE279A74590331C
  %290 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_568, i64 0, i32 88
  store double %tmp100, double* %290, align 1
  %rtb_Sum2_idx_0_554 = load double, double* %rtb_Sum2_idx_0_, align 8
  %rtb_Sum2_idx_1_555 = load double, double* %rtb_Sum2_idx_1_, align 8
  %tmp101 = fmul double %rtb_Sum2_idx_1_555, 0x3FFBB67AE8584CAA
  %tmp102 = fsub double %rtb_Sum2_idx_0_554, %tmp101
  %tmp103 = fmul double %tmp99, %tmp102
  %tmp104 = fmul double %rtb_Sum2_idx_0_554, 2.000000e+00
  %tmp105 = fmul double %tmp104, %tmp93
  %tmp106 = fadd double %tmp103, %tmp105
  %tmp107 = fmul double %tmp106, 0x3FD5555555555555
  %291 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_568, i64 0, i32 89
  store double %tmp107, double* %291, align 1
  %tmp108 = fmul double %tmp91, 2.000000e+00
  %tmp109 = fadd double %tmp108, %tmp97
  %tmp110 = fmul double %tmp109, 0x3FD5555555555555
  %292 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_568, i64 0, i32 90
  store double %tmp110, double* %292, align 1
  %tmp111 = fmul double %rtb_Sum2_idx_0_554, 0x3FFBB67AE8584CAA
  %tmp112 = fadd double %tmp111, %rtb_Sum2_idx_1_555
  %tmp113 = fmul double %tmp112, %tmp99
  %tmp114 = fmul double %rtb_Sum2_idx_1_555, 2.000000e+00
  %tmp115 = fmul double %tmp114, %tmp93
  %tmp116 = fadd double %tmp113, %tmp115
  %tmp117 = fmul double %tmp116, 0x3FD5555555555555
  %293 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_568, i64 0, i32 91
  store double %tmp117, double* %293, align 1
  %294 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_569, i64 0, i32 63
  call void @vm_srUpdateBC(i8* nonnull %294)
  %_rtP_570.pre = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  br label %merge134

true67:                                           ; preds = %true65
  %S_550 = load i8*, i8** %S_, align 8
  call void @vm_ssSetBlockStateForSolverChangedAtMajorStep(i8* %S_550)
  %_rtDW_551.pre = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  %_rtB_553.pre.pre = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  br label %false68

false68:                                          ; preds = %true67, %true65
  %_rtB_553.pre = phi %B_inu_im_1wnd_3lvl_r2021b_T.66* [ %_rtB_553.pre.pre, %true67 ], [ %_rtB_508, %true65 ]
  %_rtDW_551 = phi %DW_inu_im_1wnd_3lvl_r2021b_T.67* [ %_rtDW_551.pre, %true67 ], [ %_rtDW_546, %true65 ]
  %295 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_551, i64 0, i32 75
  store i8 1, i8* %295, align 1
  br label %false66

true69:                                           ; preds = %merge134
  %_rtDW_584 = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  %296 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_584, i64 0, i32 74
  %_rtDW__Stationaryreferenceframe_MODE_a585 = load i8, i8* %296, align 1
  %297 = and i8 %_rtDW__Stationaryreferenceframe_MODE_a585, 1
  %.not1172 = icmp eq i8 %297, 0
  br i1 %.not1172, label %true73, label %false74

false70:                                          ; preds = %merge134
  %_rtDW_571 = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  %298 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_571, i64 0, i32 74
  %_rtDW__Stationaryreferenceframe_MODE_a = load i8, i8* %298, align 1
  %299 = and i8 %_rtDW__Stationaryreferenceframe_MODE_a, 1
  %.not1159 = icmp eq i8 %299, 0
  br i1 %.not1159, label %merge135, label %true71

true71:                                           ; preds = %false70
  %S_572 = load i8*, i8** %S_, align 8
  call void @vm_ssSetBlockStateForSolverChangedAtMajorStep(i8* %S_572)
  %_rtP_573 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %300 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_573, i64 0, i32 17
  %_rtP__vqrvdr_Y0_p = load double, double* %300, align 1
  %_rtB_574 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %301 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_574, i64 0, i32 86
  store double %_rtP__vqrvdr_Y0_p, double* %301, align 1
  %_rtP__vqrvdr_Y0_p576 = load double, double* %300, align 1
  %302 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_574, i64 0, i32 84
  store double %_rtP__vqrvdr_Y0_p576, double* %302, align 1
  %303 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_573, i64 0, i32 18
  %_rtP__vqsvds_Y0_b = load double, double* %303, align 1
  %304 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_574, i64 0, i32 87
  store double %_rtP__vqsvds_Y0_b, double* %304, align 1
  %_rtP__vqsvds_Y0_b581 = load double, double* %303, align 1
  %305 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_574, i64 0, i32 85
  store double %_rtP__vqsvds_Y0_b581, double* %305, align 1
  %_rtDW_583 = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  %306 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_583, i64 0, i32 74
  store i8 0, i8* %306, align 1
  br label %merge135

true73:                                           ; preds = %true69
  %307 = fcmp une double %1, %0
  br i1 %307, label %true75, label %false76

false74:                                          ; preds = %false76, %true69
  %_rtDW_607 = phi %DW_inu_im_1wnd_3lvl_r2021b_T.67* [ %_rtDW_589, %false76 ], [ %_rtDW_584, %true69 ]
  %rtb_Sum2_idx_0_590 = load double, double* %rtb_Sum2_idx_0_, align 8
  %tmp118 = fneg double %rtb_Sum2_idx_0_590
  %rtb_Sum2_idx_1_591 = load double, double* %rtb_Sum2_idx_1_, align 8
  %tmp119 = fmul double %rtb_Sum2_idx_1_591, 0x3FFBB67AE8584CAA
  %tmp120 = fsub double %tmp118, %tmp119
  %tmp121 = fmul double %tmp97, %tmp120
  %tmp122 = fmul double %rtb_Sum2_idx_0_590, 2.000000e+00
  %tmp123 = fmul double %tmp122, %tmp91
  %308 = fsub double %tmp121, %tmp123
  %tmp125 = fmul double %308, 0x3FD5555555555555
  %_rtB_595 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %309 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_595, i64 0, i32 84
  store double %tmp125, double* %309, align 1
  %tmp126 = fmul double %tmp99, 0xBFE279A74590331C
  %310 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_595, i64 0, i32 85
  store double %tmp126, double* %310, align 1
  %tmp127 = fmul double %rtb_Sum2_idx_0_590, 0x3FFBB67AE8584CAA
  %tmp128 = fsub double %rtb_Sum2_idx_1_591, %tmp127
  %tmp129 = fmul double %tmp97, %tmp128
  %tmp130 = fmul double %rtb_Sum2_idx_1_591, 2.000000e+00
  %tmp131 = fmul double %tmp130, %tmp91
  %tmp132 = fadd double %tmp129, %tmp131
  %tmp133 = fmul double %tmp132, 0x3FD5555555555555
  %311 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_595, i64 0, i32 86
  store double %tmp133, double* %311, align 1
  %tmp134 = fmul double %tmp93, 2.000000e+00
  %tmp135 = fadd double %tmp134, %tmp99
  %tmp136 = fmul double %tmp135, 0x3FD5555555555555
  %312 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_595, i64 0, i32 87
  store double %tmp136, double* %312, align 1
  %313 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_607, i64 0, i32 62
  call void @vm_srUpdateBC(i8* nonnull %313)
  %_rtP_608.pre = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  br label %merge135

true75:                                           ; preds = %true73
  %S_588 = load i8*, i8** %S_, align 8
  call void @vm_ssSetBlockStateForSolverChangedAtMajorStep(i8* %S_588)
  %_rtDW_589.pre = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  br label %false76

false76:                                          ; preds = %true75, %true73
  %_rtDW_589 = phi %DW_inu_im_1wnd_3lvl_r2021b_T.67* [ %_rtDW_589.pre, %true75 ], [ %_rtDW_584, %true73 ]
  %314 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_589, i64 0, i32 74
  store i8 1, i8* %314, align 1
  br label %false74

true77:                                           ; preds = %merge135
  %_rtDW_622 = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  %315 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_622, i64 0, i32 73
  %_rtDW__Synchronousreferenceframe_MODE_c623 = load i8, i8* %315, align 1
  %316 = and i8 %_rtDW__Synchronousreferenceframe_MODE_c623, 1
  %.not1171 = icmp eq i8 %316, 0
  br i1 %.not1171, label %true81, label %false82

false78:                                          ; preds = %merge135
  %_rtDW_609 = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  %317 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_609, i64 0, i32 73
  %_rtDW__Synchronousreferenceframe_MODE_c = load i8, i8* %317, align 1
  %318 = and i8 %_rtDW__Synchronousreferenceframe_MODE_c, 1
  %.not1161 = icmp eq i8 %318, 0
  br i1 %.not1161, label %merge136, label %true79

true79:                                           ; preds = %false78
  %S_610 = load i8*, i8** %S_, align 8
  call void @vm_ssSetBlockStateForSolverChangedAtMajorStep(i8* %S_610)
  %_rtP_611 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %319 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_611, i64 0, i32 19
  %_rtP__vqrvdr_Y0_f = load double, double* %319, align 1
  %_rtB_612 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %320 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_612, i64 0, i32 82
  store double %_rtP__vqrvdr_Y0_f, double* %320, align 1
  %_rtP__vqrvdr_Y0_f614 = load double, double* %319, align 1
  %321 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_612, i64 0, i32 80
  store double %_rtP__vqrvdr_Y0_f614, double* %321, align 1
  %322 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_611, i64 0, i32 20
  %_rtP__vqsvds_Y0_c = load double, double* %322, align 1
  %323 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_612, i64 0, i32 83
  store double %_rtP__vqsvds_Y0_c, double* %323, align 1
  %_rtP__vqsvds_Y0_c619 = load double, double* %322, align 1
  %324 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_612, i64 0, i32 81
  store double %_rtP__vqsvds_Y0_c619, double* %324, align 1
  %_rtDW_621 = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  %325 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_621, i64 0, i32 73
  store i8 0, i8* %325, align 1
  br label %merge136

true81:                                           ; preds = %true77
  %326 = fcmp une double %1, %0
  br i1 %326, label %true83, label %false84

false82:                                          ; preds = %false84, %true77
  %_rtDW_652 = phi %DW_inu_im_1wnd_3lvl_r2021b_T.67* [ %_rtDW_627, %false84 ], [ %_rtDW_622, %true77 ]
  %rtb_Sum2_idx_0_628 = load double, double* %rtb_Sum2_idx_0_, align 8
  %rtb_Sum2_idx_1_629 = load double, double* %rtb_Sum2_idx_1_, align 8
  %tmp137 = fmul double %rtb_Sum2_idx_1_629, 0x3FFBB67AE8584CAA
  %tmp138 = fsub double %rtb_Sum2_idx_0_628, %tmp137
  %tmp139 = fmul double %tmp97, %tmp138
  %tmp140 = fmul double %rtb_Sum2_idx_0_628, 2.000000e+00
  %tmp141 = fmul double %tmp140, %tmp91
  %tmp142 = fadd double %tmp139, %tmp141
  %tmp143 = fdiv double %tmp142, 3.000000e+00
  %_rtB_633 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %327 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_633, i64 0, i32 80
  store double %tmp143, double* %327, align 1
  %tmp144 = fmul double %rtb_Sum2_idx_3_647, 0x3FFBB67AE8584CAA
  %tmp145 = fsub double %rtb_Sum2_idx_2_646, %tmp144
  %tmp146 = fmul double %tmp99, %tmp145
  %tmp147 = fmul double %rtb_Sum2_idx_2_646, 2.000000e+00
  %tmp148 = fmul double %tmp147, %tmp93
  %tmp149 = fadd double %tmp146, %tmp148
  %tmp150 = fdiv double %tmp149, 3.000000e+00
  %328 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_633, i64 0, i32 81
  store double %tmp150, double* %328, align 1
  %tmp151 = fmul double %rtb_Sum2_idx_0_628, 0x3FFBB67AE8584CAA
  %tmp152 = fadd double %tmp151, %rtb_Sum2_idx_1_629
  %tmp153 = fmul double %tmp152, %tmp97
  %tmp154 = fmul double %rtb_Sum2_idx_1_629, 2.000000e+00
  %tmp155 = fmul double %tmp154, %tmp91
  %tmp156 = fadd double %tmp153, %tmp155
  %tmp157 = fdiv double %tmp156, 3.000000e+00
  %329 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_633, i64 0, i32 82
  store double %tmp157, double* %329, align 1
  %tmp158 = fmul double %rtb_Sum2_idx_2_646, 0x3FFBB67AE8584CAA
  %tmp159 = fadd double %tmp158, %rtb_Sum2_idx_3_647
  %tmp160 = fmul double %tmp159, %tmp99
  %tmp161 = fmul double %rtb_Sum2_idx_3_647, 2.000000e+00
  %tmp162 = fmul double %tmp161, %tmp93
  %tmp163 = fadd double %tmp160, %tmp162
  %tmp164 = fdiv double %tmp163, 3.000000e+00
  %330 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_633, i64 0, i32 83
  store double %tmp164, double* %330, align 1
  %331 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_652, i64 0, i32 61
  call void @vm_srUpdateBC(i8* nonnull %331)
  br label %merge136

true83:                                           ; preds = %true81
  %S_626 = load i8*, i8** %S_, align 8
  call void @vm_ssSetBlockStateForSolverChangedAtMajorStep(i8* %S_626)
  %_rtDW_627.pre = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  br label %false84

false84:                                          ; preds = %true83, %true81
  %_rtDW_627 = phi %DW_inu_im_1wnd_3lvl_r2021b_T.67* [ %_rtDW_627.pre, %true83 ], [ %_rtDW_622, %true81 ]
  %332 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_627, i64 0, i32 73
  store i8 1, i8* %332, align 1
  br label %false82

case85:                                           ; preds = %merge136
  %333 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_653, i64 0, i32 91
  %_rtB__vqs_d = load double, double* %333, align 1
  %334 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_653, i64 0, i32 5, i64 0
  store double %_rtB__vqs_d, double* %334, align 1
  %335 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_653, i64 0, i32 89
  %_rtB__vds_ah = load double, double* %335, align 1
  %336 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_653, i64 0, i32 5, i64 1
  store double %_rtB__vds_ah, double* %336, align 1
  br label %merge137

case86:                                           ; preds = %merge136
  %337 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_653, i64 0, i32 87
  %_rtB__vqs_i = load double, double* %337, align 1
  %338 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_653, i64 0, i32 5, i64 0
  store double %_rtB__vqs_i, double* %338, align 1
  %339 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_653, i64 0, i32 85
  %_rtB__vds_a = load double, double* %339, align 1
  %340 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_653, i64 0, i32 5, i64 1
  store double %_rtB__vds_a, double* %340, align 1
  br label %merge137

default87:                                        ; preds = %merge136
  %341 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_653, i64 0, i32 83
  %_rtB__vqs = load double, double* %341, align 1
  %342 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_653, i64 0, i32 5, i64 0
  store double %_rtB__vqs, double* %342, align 1
  %343 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_653, i64 0, i32 81
  %_rtB__vds = load double, double* %343, align 1
  %344 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_653, i64 0, i32 5, i64 1
  store double %_rtB__vds, double* %344, align 1
  br label %merge137

case88:                                           ; preds = %merge137
  %345 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_653, i64 0, i32 90
  %_rtB__vqr_n = load double, double* %345, align 1
  %346 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_653, i64 0, i32 6, i64 0
  store double %_rtB__vqr_n, double* %346, align 1
  %347 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_653, i64 0, i32 88
  %_rtB__vdr_g = load double, double* %347, align 1
  %348 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_653, i64 0, i32 6, i64 1
  store double %_rtB__vdr_g, double* %348, align 1
  br label %merge138

case89:                                           ; preds = %merge137
  %349 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_653, i64 0, i32 86
  %_rtB__vqr_k = load double, double* %349, align 1
  %350 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_653, i64 0, i32 6, i64 0
  store double %_rtB__vqr_k, double* %350, align 1
  %351 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_653, i64 0, i32 84
  %_rtB__vdr_o = load double, double* %351, align 1
  %352 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_653, i64 0, i32 6, i64 1
  store double %_rtB__vdr_o, double* %352, align 1
  br label %merge138

default90:                                        ; preds = %merge137
  %353 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_653, i64 0, i32 82
  %_rtB__vqr = load double, double* %353, align 1
  %354 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_653, i64 0, i32 6, i64 0
  store double %_rtB__vqr, double* %354, align 1
  %355 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_653, i64 0, i32 80
  %_rtB__vdr = load double, double* %355, align 1
  %356 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_653, i64 0, i32 6, i64 1
  store double %_rtB__vdr, double* %356, align 1
  br label %merge138

true91:                                           ; preds = %merge138
  %357 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_653, i64 0, i32 42
  %_rtB__Constant4_k = load double, double* %357, align 1
  %358 = fptosi double %_rtB__Constant4_k to i32
  switch i32 %358, label %default95 [
    i32 1, label %case93
    i32 2, label %case94
  ]

false92:                                          ; preds = %merge138
  %359 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_653, i64 0, i32 0, i64 0
  %_rtB__xk1_el682 = load double, double* %359, align 1
  %360 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_653, i64 0, i32 7, i64 0
  store double %_rtB__xk1_el682, double* %360, align 1
  %361 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_653, i64 0, i32 0, i64 1
  %_rtB__xk1_el685 = load double, double* %361, align 1
  %362 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_653, i64 0, i32 7, i64 1
  store double %_rtB__xk1_el685, double* %362, align 1
  %363 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_653, i64 0, i32 0, i64 2
  %_rtB__xk1_el688 = load double, double* %363, align 1
  %364 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_653, i64 0, i32 7, i64 2
  store double %_rtB__xk1_el688, double* %364, align 1
  %365 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_653, i64 0, i32 0, i64 3
  %_rtB__xk1_el691 = load double, double* %365, align 1
  %366 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_653, i64 0, i32 7, i64 3
  store double %_rtB__xk1_el691, double* %366, align 1
  %_rtDW_732.pre = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  br label %false103

case93:                                           ; preds = %true91
  %367 = bitcast [16 x double]* %rtb_Lminrows24col24_ to i8*
  %368 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_653, i64 0, i32 60, i64 0
  %369 = bitcast double* %368 to i8*
  %370 = call i8* @memcpy(i8* nonnull %367, i8* nonnull %369, i32 128)
  br label %merge139

case94:                                           ; preds = %true91
  %371 = bitcast [16 x double]* %rtb_Lminrows24col24_ to i8*
  %372 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_653, i64 0, i32 55, i64 0
  %373 = bitcast double* %372 to i8*
  %374 = call i8* @memcpy(i8* nonnull %371, i8* nonnull %373, i32 128)
  br label %merge139

default95:                                        ; preds = %true91
  %375 = bitcast [16 x double]* %rtb_Lminrows24col24_ to i8*
  %376 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_653, i64 0, i32 66, i64 0
  %377 = bitcast double* %376 to i8*
  %378 = call i8* @memcpy(i8* nonnull %375, i8* nonnull %377, i32 128)
  br label %merge139

true96:                                           ; preds = %merge140
  %379 = and i8 %785, 1
  %.not1168 = icmp eq i8 %379, 0
  %380 = sext i32 %i_1088 to i64
  %381 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_697, i64 0, i32 94, i64 %380
  %382 = sext i32 %i_1088 to i64
  %383 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_697, i64 0, i32 34, i64 %382
  %.pre-phi = select i1 %.not1168, i64 %382, i64 %380
  %storemerge1170.in = select i1 %.not1168, double* %383, double* %381
  %storemerge1170 = load double, double* %storemerge1170.in, align 1
  store double %storemerge1170, double* %rtb_Sum2_idx_0_, align 8
  %384 = getelementptr inbounds [16 x double], [16 x double]* %rtb_Lminrows24col24_, i64 0, i64 %.pre-phi
  %rtb_Lminrows24col24__el1080 = load double, double* %384, align 8
  %tmp275 = fsub double 0.000000e+00, %rtb_Lminrows24col24__el1080
  %tmp276 = fsub double %tmp275, %storemerge1170
  %385 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_698, i64 0, i32 13
  %_rtP__wbaseTs2_Gain = load double, double* %385, align 1
  %tmp277 = fmul double %tmp276, %_rtP__wbaseTs2_Gain
  store double %tmp277, double* %rtb_MathFunction1_, align 8
  store double %tmp277, double* %384, align 8
  %386 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_697, i64 0, i32 35, i64 %.pre-phi
  %_rtB__u5_el = load double, double* %386, align 1
  %tmp278 = fsub double %_rtB__u5_el, %tmp277
  %387 = getelementptr inbounds [16 x double], [16 x double]* %rtb_RLinv_0_, i64 0, i64 %.pre-phi
  store double %tmp278, double* %387, align 8
  %tmp279 = add i32 %i_1088, 1
  br label %merge140

false97:                                          ; preds = %merge140
  call void @inu_im_1wnd_3lvl_r2021b_rt_invd4x4_snf([16 x double]* nonnull %rtb_RLinv_0_, [16 x double]* nonnull %rtb_RLinv_)
  br label %merge141

true98:                                           ; preds = %merge141
  %_rtB_1067 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %388 = sext i32 %i_1073 to i64
  %389 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_1067, i64 0, i32 35, i64 %388
  %390 = bitcast double* %389 to <2 x double>*
  %391 = load <2 x double>, <2 x double>* %390, align 1
  store <2 x double> %391, <2 x double>* %tmp_6_, align 16
  %392 = getelementptr inbounds [16 x double], [16 x double]* %rtb_Lminrows24col24_, i64 0, i64 %388
  %393 = bitcast double* %392 to <2 x double>*
  %394 = load <2 x double>, <2 x double>* %393, align 8
  store <2 x double> %394, <2 x double>* %tmp_7_, align 16
  %395 = fadd <2 x double> %394, %391
  store <2 x double> %395, <2 x double>* %393, align 8
  %tmp274 = add i32 %i_1073, 2
  br label %merge141

true100:                                          ; preds = %merge142
  %396 = shl i32 %i_1057, 2
  %tmp265 = or i32 %396, 1
  %397 = sext i32 %tmp265 to i64
  %398 = getelementptr inbounds [16 x double], [16 x double]* %rtb_Lminrows24col24_, i64 0, i64 %397
  %rtb_Lminrows24col24__el = load double, double* %398, align 8
  store double %rtb_Lminrows24col24__el, double* %rtb_MathFunction1_, align 8
  %399 = sext i32 %396 to i64
  %400 = getelementptr inbounds [16 x double], [16 x double]* %rtb_Lminrows24col24_, i64 0, i64 %399
  %rtb_Lminrows24col24__el1045 = load double, double* %400, align 8
  store double %rtb_Lminrows24col24__el1045, double* %rtb_Sum2_idx_0_, align 8
  %tmp266 = or i32 %396, 2
  %401 = sext i32 %tmp266 to i64
  %402 = getelementptr inbounds [16 x double], [16 x double]* %rtb_Lminrows24col24_, i64 0, i64 %401
  %rtb_Lminrows24col24__el1047 = load double, double* %402, align 8
  store double %rtb_Lminrows24col24__el1047, double* %rtb_Product2_idx_0_, align 8
  %tmp267 = or i32 %396, 3
  %403 = sext i32 %tmp267 to i64
  %404 = getelementptr inbounds [16 x double], [16 x double]* %rtb_Lminrows24col24_, i64 0, i64 %403
  %rtb_Lminrows24col24__el1049 = load double, double* %404, align 8
  store double %rtb_Lminrows24col24__el1049, double* %rtb_Sum2_idx_1_, align 8
  br label %merge147

false101:                                         ; preds = %merge142
  %_rtB_702 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %405 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_702, i64 0, i32 5, i64 0
  %_rtB__MultiportSwitch1_el = load double, double* %405, align 1
  %_rtDW_703 = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  %406 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_703, i64 0, i32 6, i64 0
  %_rtDW__voltages_DSTATE_el = load double, double* %406, align 1
  %tmp165 = fadd double %_rtB__MultiportSwitch1_el, %_rtDW__voltages_DSTATE_el
  store double %tmp165, double* %rtb_Sum2_idx_0_, align 8
  %407 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_702, i64 0, i32 6, i64 0
  %_rtB__MultiportSwitch_el = load double, double* %407, align 1
  %408 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_703, i64 0, i32 6, i64 2
  %_rtDW__voltages_DSTATE_el706 = load double, double* %408, align 1
  %tmp166 = fadd double %_rtB__MultiportSwitch_el, %_rtDW__voltages_DSTATE_el706
  store double %tmp166, double* %rtb_Sum2_idx_1_, align 8
  %409 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_702, i64 0, i32 5, i64 1
  %_rtB__MultiportSwitch1_el708 = load double, double* %409, align 1
  %410 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_703, i64 0, i32 6, i64 1
  %_rtDW__voltages_DSTATE_el710 = load double, double* %410, align 1
  %tmp167 = fadd double %_rtB__MultiportSwitch1_el708, %_rtDW__voltages_DSTATE_el710
  store double %tmp167, double* %rtb_Sum2_idx_2_, align 8
  %411 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_702, i64 0, i32 6, i64 1
  %_rtB__MultiportSwitch_el712 = load double, double* %411, align 1
  %412 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_703, i64 0, i32 6, i64 3
  %_rtDW__voltages_DSTATE_el714 = load double, double* %412, align 1
  %tmp168 = fadd double %_rtB__MultiportSwitch_el712, %_rtDW__voltages_DSTATE_el714
  store double %tmp168, double* %rtb_Sum2_idx_3_, align 8
  %413 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_702, i64 0, i32 0, i64 1
  %_rtB__xk1_el716 = load double, double* %413, align 1
  store double %_rtB__xk1_el716, double* %rtb_MathFunction1_, align 8
  %414 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_702, i64 0, i32 0, i64 0
  %_rtB__xk1_el718 = load double, double* %414, align 1
  store double %_rtB__xk1_el718, double* %rtb_Product2_idx_0_, align 8
  %415 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_702, i64 0, i32 0, i64 2
  %_rtB__xk1_el720 = load double, double* %415, align 1
  store double %_rtB__xk1_el720, double* %rtb_phimd_, align 8
  %416 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_702, i64 0, i32 0, i64 3
  %_rtB__xk1_el722 = load double, double* %416, align 1
  store double %_rtB__xk1_el722, double* %rtb_LookUpTable_gu_, align 8
  br label %merge143

true102:                                          ; preds = %merge143
  %tmp258 = add i32 %i_1042, 4
  %417 = sext i32 %tmp258 to i64
  %418 = getelementptr inbounds [16 x double], [16 x double]* %rtb_RLinv_, i64 0, i64 %417
  %419 = bitcast double* %418 to <2 x double>*
  %420 = load <2 x double>, <2 x double>* %419, align 8
  store <2 x double> %420, <2 x double>* %tmp_6_, align 16
  %421 = sext i32 %i_1042 to i64
  %422 = getelementptr inbounds [16 x double], [16 x double]* %rtb_RLinv_, i64 0, i64 %421
  %423 = bitcast double* %422 to <2 x double>*
  %424 = load <2 x double>, <2 x double>* %423, align 8
  store <2 x double> %424, <2 x double>* %tmp_7_, align 16
  %tmp259 = add i32 %i_1042, 8
  %425 = sext i32 %tmp259 to i64
  %426 = getelementptr inbounds [16 x double], [16 x double]* %rtb_RLinv_, i64 0, i64 %425
  %427 = bitcast double* %426 to <2 x double>*
  %428 = load <2 x double>, <2 x double>* %427, align 8
  store <2 x double> %428, <2 x double>* %tmp_4_, align 16
  %tmp260 = add i32 %i_1042, 12
  %429 = sext i32 %tmp260 to i64
  %430 = getelementptr inbounds [16 x double], [16 x double]* %rtb_RLinv_, i64 0, i64 %429
  %431 = bitcast double* %430 to <2 x double>*
  %432 = load <2 x double>, <2 x double>* %431, align 8
  store <2 x double> %432, <2 x double>* %tmp_5_, align 16
  %433 = getelementptr inbounds [16 x double], [16 x double]* %rtb_RLinv_0_, i64 0, i64 %417
  %434 = bitcast double* %433 to <2 x double>*
  %435 = load <2 x double>, <2 x double>* %434, align 8
  store <2 x double> %435, <2 x double>* %tmp_0_, align 16
  %436 = getelementptr inbounds [16 x double], [16 x double]* %rtb_RLinv_0_, i64 0, i64 %421
  %437 = bitcast double* %436 to <2 x double>*
  %438 = load <2 x double>, <2 x double>* %437, align 8
  store <2 x double> %438, <2 x double>* %tmp_1_, align 16
  %439 = getelementptr inbounds [16 x double], [16 x double]* %rtb_RLinv_0_, i64 0, i64 %425
  %440 = bitcast double* %439 to <2 x double>*
  %441 = load <2 x double>, <2 x double>* %440, align 8
  store <2 x double> %441, <2 x double>* %tmp_2_, align 16
  %442 = getelementptr inbounds [16 x double], [16 x double]* %rtb_RLinv_0_, i64 0, i64 %429
  %443 = bitcast double* %442 to <2 x double>*
  %444 = load <2 x double>, <2 x double>* %443, align 8
  store <2 x double> %444, <2 x double>* %tmp_3_, align 16
  %445 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_702, i64 0, i32 7, i64 %421
  %_rtP_1020 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %446 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_1020, i64 0, i32 14
  %_rtP__wbaseTs2_Gain_i = load double, double* %446, align 1
  %447 = insertelement <2 x double> undef, double %_rtP__wbaseTs2_Gain_i, i32 0
  %448 = shufflevector <2 x double> %447, <2 x double> undef, <2 x i32> zeroinitializer
  %449 = fmul <2 x double> %420, %448
  %450 = insertelement <2 x double> undef, double %tmp167, i32 0
  %451 = shufflevector <2 x double> %450, <2 x double> undef, <2 x i32> zeroinitializer
  %452 = fmul <2 x double> %449, %451
  %453 = fmul <2 x double> %424, %448
  %454 = insertelement <2 x double> undef, double %tmp165, i32 0
  %455 = shufflevector <2 x double> %454, <2 x double> undef, <2 x i32> zeroinitializer
  %456 = fmul <2 x double> %453, %455
  %457 = fadd <2 x double> %452, %456
  %458 = fmul <2 x double> %428, %448
  %459 = insertelement <2 x double> undef, double %tmp166, i32 0
  %460 = shufflevector <2 x double> %459, <2 x double> undef, <2 x i32> zeroinitializer
  %461 = fmul <2 x double> %458, %460
  %462 = fadd <2 x double> %457, %461
  %463 = fmul <2 x double> %432, %448
  %464 = insertelement <2 x double> undef, double %tmp168, i32 0
  %465 = shufflevector <2 x double> %464, <2 x double> undef, <2 x i32> zeroinitializer
  %466 = fmul <2 x double> %463, %465
  %467 = fadd <2 x double> %462, %466
  %468 = insertelement <2 x double> undef, double %_rtB__xk1_el716, i32 0
  %469 = shufflevector <2 x double> %468, <2 x double> undef, <2 x i32> zeroinitializer
  %470 = fmul <2 x double> %435, %469
  %471 = insertelement <2 x double> undef, double %_rtB__xk1_el718, i32 0
  %472 = shufflevector <2 x double> %471, <2 x double> undef, <2 x i32> zeroinitializer
  %473 = fmul <2 x double> %438, %472
  %474 = fadd <2 x double> %470, %473
  %475 = insertelement <2 x double> undef, double %_rtB__xk1_el720, i32 0
  %476 = shufflevector <2 x double> %475, <2 x double> undef, <2 x i32> zeroinitializer
  %477 = fmul <2 x double> %441, %476
  %478 = fadd <2 x double> %474, %477
  %479 = insertelement <2 x double> undef, double %_rtB__xk1_el722, i32 0
  %480 = shufflevector <2 x double> %479, <2 x double> undef, <2 x i32> zeroinitializer
  %481 = fmul <2 x double> %444, %480
  %482 = fadd <2 x double> %478, %481
  %483 = fadd <2 x double> %467, %482
  %484 = bitcast double* %445 to <2 x double>*
  store <2 x double> %483, <2 x double>* %484, align 1
  %tmp264 = add i32 %i_1042, 2
  br label %merge143

false103:                                         ; preds = %merge143.false103_crit_edge, %false92
  %_rtDW_732 = phi %DW_inu_im_1wnd_3lvl_r2021b_T.67* [ %_rtDW_703, %merge143.false103_crit_edge ], [ %_rtDW_732.pre, %false92 ]
  %_rtB_731 = phi %B_inu_im_1wnd_3lvl_r2021b_T.66* [ %_rtB_702, %merge143.false103_crit_edge ], [ %_rtB_653, %false92 ]
  %_rtP_729 = phi %P_inu_im_1wnd_3lvl_r2021b_T.68* [ %_rtP_724.pre, %merge143.false103_crit_edge ], [ %_rtP_680, %false92 ]
  %485 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_729, i64 0, i32 65, i64 0
  %_rtP__up1_Gain_el = load double, double* %485, align 1
  %rtb_Sum1_725 = load double, double* %rtb_Sum1_, align 8
  %tmp169 = fmul double %_rtP__up1_Gain_el, %rtb_Sum1_725
  store double %tmp169, double* %rtb_Sum2_idx_0_, align 8
  %486 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_729, i64 0, i32 65, i64 1
  %_rtP__up1_Gain_el727 = load double, double* %486, align 1
  %tmp170 = fmul double %_rtP__up1_Gain_el727, %tmp96
  store double %tmp170, double* %rtb_Sum2_idx_1_, align 8
  %487 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_729, i64 0, i32 66
  %_rtP__uWmNom_Gain = load double, double* %487, align 1
  %tmp171 = fmul double %_rtP__uWmNom_Gain, %tmp169
  store double %tmp171, double* %rtb_MathFunction1_, align 8
  %488 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_731, i64 0, i32 49
  %_rtB__Constant1_b = load double, double* %488, align 1
  %489 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_732, i64 0, i32 7
  %_rtDW__DiscreteTimeIntegrator_DSTATE = load double, double* %489, align 1
  %tmp172 = fsub double %_rtB__Constant1_b, %_rtDW__DiscreteTimeIntegrator_DSTATE
  %490 = call double @muDoubleScalarSign(double %tmp169)
  %tmp173 = fmul double %tmp172, %490
  %_rtP_734 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %491 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_734, i64 0, i32 71
  %_rtP__Mst2pi_Gain = load double, double* %491, align 1
  %tmp174 = fmul double %tmp173, %_rtP__Mst2pi_Gain
  store double %tmp174, double* %rtb_Product2_idx_0_, align 8
  %tmp175 = fmul double %tmp171, %tmp171
  %492 = call double @muDoubleScalarSign(double %tmp171)
  %tmp176 = fmul double %tmp175, %492
  %_rtP_738 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %493 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_738, i64 0, i32 72
  %_rtP__D_Gain = load double, double* %493, align 1
  %tmp177 = fmul double %_rtP__D_Gain, %tmp174
  %494 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_738, i64 0, i32 74
  %_rtP__C_Gain = load double, double* %494, align 1
  %_rtDW_741 = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  %495 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_741, i64 0, i32 8
  %_rtDW__Delay_x_DSTATE = load double, double* %495, align 1
  %tmp178 = fmul double %_rtP__C_Gain, %_rtDW__Delay_x_DSTATE
  %tmp179 = fadd double %tmp177, %tmp178
  %tmp180 = fadd double %tmp176, %tmp179
  %496 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_738, i64 0, i32 75
  %_rtP__Gain1_Gain_n = load double, double* %496, align 1
  %tmp181 = fmul double %_rtP__Gain1_Gain_n, %tmp180
  store double %tmp181, double* %rtb_MathFunction1_, align 8
  %497 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_738, i64 0, i32 76
  %_rtP__Unitconversion_Gain = load double, double* %497, align 1
  %tmp182 = fmul double %tmp181, %_rtP__Unitconversion_Gain
  %tmp183 = fsub double %tmp96, %tmp182
  %498 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_738, i64 0, i32 77
  %_rtP__F_Gain = load double, double* %498, align 1
  %rtb_Sum1_747 = load double, double* %rtb_Sum1_, align 8
  %tmp184 = fmul double %_rtP__F_Gain, %rtb_Sum1_747
  %tmp185 = fsub double %tmp183, %tmp184
  %499 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_738, i64 0, i32 78
  %_rtP__u_2H_Gain = load double, double* %499, align 1
  %tmp186 = fmul double %_rtP__u_2H_Gain, %tmp185
  %_rtB_749 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %500 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_749, i64 0, i32 8
  store double %tmp186, double* %500, align 1
  %501 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_741, i64 0, i32 66
  %_rtDW__Rotorspeedwm_SYSTEM_ENABLE = load i8, i8* %501, align 1
  %.not1162 = icmp eq i8 %_rtDW__Rotorspeedwm_SYSTEM_ENABLE, 0
  br i1 %.not1162, label %false105, label %true104

true104:                                          ; preds = %false103
  %502 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_741, i64 0, i32 9
  %_rtDW__Rotorspeedwm_DSTATE756 = load double, double* %502, align 1
  %503 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_749, i64 0, i32 9
  store double %_rtDW__Rotorspeedwm_DSTATE756, double* %503, align 1
  br label %merge144

false105:                                         ; preds = %false103
  %504 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_738, i64 0, i32 79
  %_rtP__Rotorspeedwm_gainval = load double, double* %504, align 1
  %tmp187 = fmul double %_rtP__Rotorspeedwm_gainval, %tmp186
  %505 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_741, i64 0, i32 9
  %_rtDW__Rotorspeedwm_DSTATE = load double, double* %505, align 1
  %tmp188 = fadd double %tmp187, %_rtDW__Rotorspeedwm_DSTATE
  %506 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_749, i64 0, i32 9
  store double %tmp188, double* %506, align 1
  br label %merge144

true106:                                          ; preds = %merge145
  %_rtB_994 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %507 = sext i32 %i_1007 to i64
  %508 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_994, i64 0, i32 11, i64 %507
  %_rtB__SFunction_el = load double, double* %508, align 1
  store double %_rtB__SFunction_el, double* %rtb_Sum1_, align 8
  %_rtP_997 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %509 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_997, i64 0, i32 84
  %_rtP__Saturation_UpperSat = load double, double* %509, align 1
  %510 = fcmp ogt double %_rtB__SFunction_el, %_rtP__Saturation_UpperSat
  br i1 %510, label %true112, label %false113

false107:                                         ; preds = %merge145
  %_rtP_763 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %511 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_763, i64 0, i32 86
  %_rtP__donotdeletethisgain_Gain = load double, double* %511, align 1
  %_rtB_764 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %512 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_764, i64 0, i32 3, i64 23
  %_rtB__StateSpace_o1_el765 = load double, double* %512, align 1
  %tmp190 = fmul double %_rtP__donotdeletethisgain_Gain, %_rtB__StateSpace_o1_el765
  %513 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_764, i64 0, i32 13
  store double %tmp190, double* %513, align 1
  %514 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_763, i64 0, i32 87
  %_rtP__donotdeletethisgain_Gain_a = load double, double* %514, align 1
  %515 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_764, i64 0, i32 3, i64 24
  %_rtB__StateSpace_o1_el769 = load double, double* %515, align 1
  %tmp191 = fmul double %_rtP__donotdeletethisgain_Gain_a, %_rtB__StateSpace_o1_el769
  %516 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_764, i64 0, i32 14
  store double %tmp191, double* %516, align 1
  %517 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_763, i64 0, i32 88
  %_rtP__donotdeletethisgain_Gain_f = load double, double* %517, align 1
  %518 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_764, i64 0, i32 3, i64 26
  %_rtB__StateSpace_o1_el773 = load double, double* %518, align 1
  %tmp192 = fmul double %_rtP__donotdeletethisgain_Gain_f, %_rtB__StateSpace_o1_el773
  %519 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_763, i64 0, i32 91
  %_rtP__Kv_Gain = load double, double* %519, align 1
  %tmp193 = fmul double %tmp192, %_rtP__Kv_Gain
  %520 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_764, i64 0, i32 101, i64 0
  store double %tmp193, double* %520, align 1
  %521 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_763, i64 0, i32 89
  %_rtP__donotdeletethisgain_Gain_k = load double, double* %521, align 1
  %522 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_764, i64 0, i32 3, i64 27
  %_rtB__StateSpace_o1_el778 = load double, double* %522, align 1
  %tmp194 = fmul double %_rtP__donotdeletethisgain_Gain_k, %_rtB__StateSpace_o1_el778
  %_rtP__Kv_Gain780 = load double, double* %519, align 1
  %tmp195 = fmul double %tmp194, %_rtP__Kv_Gain780
  %523 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_764, i64 0, i32 101, i64 1
  store double %tmp195, double* %523, align 1
  %524 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_763, i64 0, i32 90
  %_rtP__donotdeletethisgain_Gain_m = load double, double* %524, align 1
  %525 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_764, i64 0, i32 3, i64 28
  %_rtB__StateSpace_o1_el784 = load double, double* %525, align 1
  %tmp196 = fmul double %_rtP__donotdeletethisgain_Gain_m, %_rtB__StateSpace_o1_el784
  %_rtP__Kv_Gain786 = load double, double* %519, align 1
  %tmp197 = fmul double %tmp196, %_rtP__Kv_Gain786
  %526 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_764, i64 0, i32 101, i64 2
  store double %tmp197, double* %526, align 1
  %S_788 = load i8*, i8** %S_, align 8
  %527 = call i32 @vm_ssIsSpecialSampleHit(i8* %S_788, i32 1, i32 0, i32 0)
  store i32 %527, i32* %i_, align 4
  %.not1163 = icmp eq i32 %527, 0
  br i1 %.not1163, label %false109, label %true108

true108:                                          ; preds = %false107
  %_rtDW_790 = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  %528 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_790, i64 0, i32 16, i64 0
  %_rtDW__RateTransition_Buffer0_el = load double, double* %528, align 1
  %_rtB_791 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %529 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_791, i64 0, i32 15, i64 0
  store double %_rtDW__RateTransition_Buffer0_el, double* %529, align 1
  %530 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_790, i64 0, i32 16, i64 1
  %_rtDW__RateTransition_Buffer0_el793 = load double, double* %530, align 1
  %531 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_791, i64 0, i32 15, i64 1
  store double %_rtDW__RateTransition_Buffer0_el793, double* %531, align 1
  %532 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_790, i64 0, i32 16, i64 2
  %_rtDW__RateTransition_Buffer0_el796 = load double, double* %532, align 1
  %533 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_791, i64 0, i32 15, i64 2
  store double %_rtDW__RateTransition_Buffer0_el796, double* %533, align 1
  br label %false109

false109:                                         ; preds = %true108, %false107
  %_rtP_798 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %534 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_798, i64 0, i32 97, i64 0
  %535 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_798, i64 0, i32 98, i64 0
  %536 = call double @rt_Lookup(double* nonnull %534, i32 6, double %1, double* nonnull %535)
  store double %536, double* %rtb_Sum1_, align 8
  %_rtP_801 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %537 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_801, i64 0, i32 99, i64 0
  %538 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_801, i64 0, i32 100, i64 0
  %539 = call double @rt_Lookup(double* nonnull %537, i32 8, double %1, double* nonnull %538)
  store double %539, double* %rtb_Product_h_idx_0_, align 8
  %_rtP_804 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %540 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_804, i64 0, i32 101, i64 0
  %541 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_804, i64 0, i32 102, i64 0
  %542 = call double @rt_Lookup(double* nonnull %540, i32 10, double %1, double* nonnull %541)
  store double %542, double* %rtb_Sum2_idx_2_, align 8
  %_rtP_807 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %543 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_807, i64 0, i32 103, i64 0
  %544 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_807, i64 0, i32 104, i64 0
  %545 = call double @rt_Lookup(double* nonnull %543, i32 8, double %1, double* nonnull %544)
  store double %545, double* %rtb_Sum2_idx_3_, align 8
  %_rtP_810 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %546 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_810, i64 0, i32 105, i64 0
  %547 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_810, i64 0, i32 106, i64 0
  %548 = call double @rt_Lookup(double* nonnull %546, i32 8, double %1, double* nonnull %547)
  store double %548, double* %rtb_phimd_, align 8
  %_rtP_813 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %549 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_813, i64 0, i32 107, i64 0
  %550 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_813, i64 0, i32 108, i64 0
  %551 = call double @rt_Lookup(double* nonnull %549, i32 8, double %1, double* nonnull %550)
  store double %551, double* %rtb_LookUpTable_gu_, align 8
  %_rtB_816 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %552 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_816, i64 0, i32 13
  %_rtB__donotdeletethisgain = load double, double* %552, align 1
  %553 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_816, i64 0, i32 14
  %_rtB__donotdeletethisgain_a = load double, double* %553, align 1
  %tmp198 = fadd double %_rtB__donotdeletethisgain, %_rtB__donotdeletethisgain_a
  %554 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_816, i64 0, i32 16, i64 0
  store double %tmp198, double* %554, align 1
  %555 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_816, i64 0, i32 16, i64 4
  store double %tmp169, double* %555, align 1
  %rtb_Sum1_821 = load double, double* %rtb_Sum1_, align 8
  %556 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_816, i64 0, i32 16, i64 5
  store double %rtb_Sum1_821, double* %556, align 1
  %557 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_816, i64 0, i32 16, i64 6
  store double %539, double* %557, align 1
  %558 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_816, i64 0, i32 16, i64 7
  store double %542, double* %558, align 1
  %559 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_816, i64 0, i32 16, i64 8
  store double %545, double* %559, align 1
  %560 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_816, i64 0, i32 16, i64 9
  store double %545, double* %560, align 1
  %561 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_816, i64 0, i32 16, i64 10
  store double %548, double* %561, align 1
  %562 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_816, i64 0, i32 16, i64 11
  store double %551, double* %562, align 1
  %563 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_816, i64 0, i32 48
  %_rtB__mstpIncrMaxpuPnom = load double, double* %563, align 1
  %564 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_816, i64 0, i32 16, i64 12
  store double %_rtB__mstpIncrMaxpuPnom, double* %564, align 1
  %565 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_816, i64 0, i32 47
  %_rtB__mstpDecrMaxpuPnom = load double, double* %565, align 1
  %566 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_816, i64 0, i32 16, i64 13
  store double %_rtB__mstpDecrMaxpuPnom, double* %566, align 1
  %567 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_816, i64 0, i32 46
  %_rtB__iref = load double, double* %567, align 1
  %568 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_816, i64 0, i32 16, i64 14
  store double %_rtB__iref, double* %568, align 1
  %569 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_816, i64 0, i32 44
  %_rtB__dummy1 = load double, double* %569, align 1
  %570 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_816, i64 0, i32 16, i64 15
  store double %_rtB__dummy1, double* %570, align 1
  %571 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_816, i64 0, i32 45
  %_rtB__dummy2 = load double, double* %571, align 1
  %572 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_816, i64 0, i32 16, i64 16
  store double %_rtB__dummy2, double* %572, align 1
  %_rtP_845 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %573 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_845, i64 0, i32 109
  %_rtP__donotdeletethisgain_Gain_ax = load double, double* %573, align 1
  %574 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_816, i64 0, i32 3, i64 25
  %_rtB__StateSpace_o1_el847 = load double, double* %574, align 1
  %tmp199 = fmul double %_rtP__donotdeletethisgain_Gain_ax, %_rtB__StateSpace_o1_el847
  store double %tmp199, double* %rtb_Product_h_idx_0_, align 8
  %575 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_845, i64 0, i32 93
  %_rtP__Gain_Gain_f = load double, double* %575, align 1
  %576 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_816, i64 0, i32 15, i64 0
  %_rtB__RateTransition_el = load double, double* %576, align 1
  %tmp200 = fmul double %_rtP__Gain_Gain_f, %_rtB__RateTransition_el
  %577 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_816, i64 0, i32 101, i64 0
  %_rtB__Kv_el = load double, double* %577, align 1
  %tmp201 = fadd double %tmp200, %_rtB__Kv_el
  store double %tmp201, double* %rtb_Sum1_, align 8
  %578 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_845, i64 0, i32 94
  %_rtP__D_Gain_k = load double, double* %578, align 1
  %tmp202 = fmul double %tmp201, %_rtP__D_Gain_k
  %579 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_845, i64 0, i32 96
  %_rtP__C_Gain_b = load double, double* %579, align 1
  %_rtDW_854 = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  %580 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_854, i64 0, i32 11, i64 0
  %_rtDW__Delay_x_DSTATE_c_el = load double, double* %580, align 1
  %tmp203 = fmul double %_rtP__C_Gain_b, %_rtDW__Delay_x_DSTATE_c_el
  %tmp204 = fadd double %tmp202, %tmp203
  %581 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_816, i64 0, i32 16, i64 1
  store double %tmp204, double* %581, align 1
  %582 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_845, i64 0, i32 110
  %_rtP__A_Gain = load double, double* %582, align 1
  %_rtDW__Delay_x_DSTATE_c_el858 = load double, double* %580, align 1
  %tmp205 = fmul double %_rtP__A_Gain, %_rtDW__Delay_x_DSTATE_c_el858
  %583 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_845, i64 0, i32 111
  %_rtP__B_Gain = load double, double* %583, align 1
  %tmp206 = fmul double %_rtP__B_Gain, %tmp201
  %tmp207 = fadd double %tmp205, %tmp206
  %584 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_816, i64 0, i32 17, i64 0
  store double %tmp207, double* %584, align 1
  %_rtP__Gain_Gain_f863 = load double, double* %575, align 1
  %585 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_816, i64 0, i32 15, i64 1
  %_rtB__RateTransition_el865 = load double, double* %585, align 1
  %tmp208 = fmul double %_rtP__Gain_Gain_f863, %_rtB__RateTransition_el865
  %586 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_816, i64 0, i32 101, i64 1
  %_rtB__Kv_el867 = load double, double* %586, align 1
  %tmp209 = fadd double %tmp208, %_rtB__Kv_el867
  store double %tmp209, double* %rtb_Sum1_, align 8
  %_rtP__D_Gain_k869 = load double, double* %578, align 1
  %tmp210 = fmul double %tmp209, %_rtP__D_Gain_k869
  %_rtP__C_Gain_b872 = load double, double* %579, align 1
  %587 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_854, i64 0, i32 11, i64 1
  %_rtDW__Delay_x_DSTATE_c_el874 = load double, double* %587, align 1
  %tmp211 = fmul double %_rtP__C_Gain_b872, %_rtDW__Delay_x_DSTATE_c_el874
  %tmp212 = fadd double %tmp210, %tmp211
  %588 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_816, i64 0, i32 16, i64 2
  store double %tmp212, double* %588, align 1
  %_rtP__A_Gain877 = load double, double* %582, align 1
  %_rtDW__Delay_x_DSTATE_c_el879 = load double, double* %587, align 1
  %tmp213 = fmul double %_rtP__A_Gain877, %_rtDW__Delay_x_DSTATE_c_el879
  %_rtP__B_Gain881 = load double, double* %583, align 1
  %tmp214 = fmul double %_rtP__B_Gain881, %tmp209
  %tmp215 = fadd double %tmp213, %tmp214
  %_rtB_883 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %589 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_883, i64 0, i32 17, i64 1
  store double %tmp215, double* %589, align 1
  %_rtP__Gain_Gain_f885 = load double, double* %575, align 1
  %590 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_883, i64 0, i32 15, i64 2
  %_rtB__RateTransition_el887 = load double, double* %590, align 1
  %tmp216 = fmul double %_rtP__Gain_Gain_f885, %_rtB__RateTransition_el887
  %591 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_883, i64 0, i32 101, i64 2
  %_rtB__Kv_el889 = load double, double* %591, align 1
  %tmp217 = fadd double %tmp216, %_rtB__Kv_el889
  store double %tmp217, double* %rtb_Sum1_, align 8
  %_rtP__D_Gain_k891 = load double, double* %578, align 1
  %tmp218 = fmul double %tmp217, %_rtP__D_Gain_k891
  %_rtP__C_Gain_b894 = load double, double* %579, align 1
  %592 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_854, i64 0, i32 11, i64 2
  %_rtDW__Delay_x_DSTATE_c_el896 = load double, double* %592, align 1
  %tmp219 = fmul double %_rtP__C_Gain_b894, %_rtDW__Delay_x_DSTATE_c_el896
  %tmp220 = fadd double %tmp218, %tmp219
  %593 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_883, i64 0, i32 16, i64 3
  store double %tmp220, double* %593, align 1
  %_rtP__A_Gain899 = load double, double* %582, align 1
  %_rtDW__Delay_x_DSTATE_c_el901 = load double, double* %592, align 1
  %tmp221 = fmul double %_rtP__A_Gain899, %_rtDW__Delay_x_DSTATE_c_el901
  %_rtP__B_Gain903 = load double, double* %583, align 1
  %tmp222 = fmul double %_rtP__B_Gain903, %tmp217
  %tmp223 = fadd double %tmp221, %tmp222
  %594 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_883, i64 0, i32 17, i64 2
  store double %tmp223, double* %594, align 1
  %595 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_845, i64 0, i32 112
  %_rtP__donotdeletethisgain_Gain_a3 = load double, double* %595, align 1
  %596 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_883, i64 0, i32 3, i64 20
  %_rtB__StateSpace_o1_el908 = load double, double* %596, align 1
  %tmp224 = fmul double %_rtP__donotdeletethisgain_Gain_a3, %_rtB__StateSpace_o1_el908
  %597 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_845, i64 0, i32 115
  %_rtP__Kv1_Gain = load double, double* %597, align 1
  %tmp225 = fmul double %tmp224, %_rtP__Kv1_Gain
  %598 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_883, i64 0, i32 102, i64 0
  store double %tmp225, double* %598, align 1
  %599 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_845, i64 0, i32 113
  %_rtP__donotdeletethisgain_Gain_fa = load double, double* %599, align 1
  %600 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_883, i64 0, i32 3, i64 21
  %_rtB__StateSpace_o1_el913 = load double, double* %600, align 1
  %tmp226 = fmul double %_rtP__donotdeletethisgain_Gain_fa, %_rtB__StateSpace_o1_el913
  %_rtP__Kv1_Gain915 = load double, double* %597, align 1
  %tmp227 = fmul double %tmp226, %_rtP__Kv1_Gain915
  %601 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_883, i64 0, i32 102, i64 1
  store double %tmp227, double* %601, align 1
  %_rtP_917 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %602 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_917, i64 0, i32 114
  %_rtP__donotdeletethisgain_Gain_i = load double, double* %602, align 1
  %603 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_883, i64 0, i32 3, i64 22
  %_rtB__StateSpace_o1_el919 = load double, double* %603, align 1
  %tmp228 = fmul double %_rtP__donotdeletethisgain_Gain_i, %_rtB__StateSpace_o1_el919
  %604 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_917, i64 0, i32 115
  %_rtP__Kv1_Gain921 = load double, double* %604, align 1
  %tmp229 = fmul double %tmp228, %_rtP__Kv1_Gain921
  %605 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_883, i64 0, i32 102, i64 2
  store double %tmp229, double* %605, align 1
  %S_923 = load i8*, i8** %S_, align 8
  call void @vm_ssCallAccelRunBlock(i8* %S_923, i32 12, i32 229, i32 104)
  %_rtP_924 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %606 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_924, i64 0, i32 116
  %_rtP__Nmpu1_Gain = load double, double* %606, align 1
  %rtb_Sum2_idx_1_925 = load double, double* %rtb_Sum2_idx_1_, align 8
  %tmp230 = fmul double %_rtP__Nmpu1_Gain, %rtb_Sum2_idx_1_925
  %_rtB_926 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %607 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_926, i64 0, i32 18
  store double %tmp230, double* %607, align 1
  %608 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_924, i64 0, i32 117
  %_rtP__D_Gain_f = load double, double* %608, align 1
  %tmp231 = fmul double %tmp230, %_rtP__D_Gain_f
  %609 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_924, i64 0, i32 119
  %_rtP__C_Gain_o = load double, double* %609, align 1
  %_rtDW_930 = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  %610 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_930, i64 0, i32 12
  %_rtDW__Delay_x_DSTATE_b = load double, double* %610, align 1
  %tmp232 = fmul double %_rtP__C_Gain_o, %_rtDW__Delay_x_DSTATE_b
  %tmp233 = fadd double %tmp231, %tmp232
  %611 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_926, i64 0, i32 19
  store double %tmp233, double* %611, align 1
  %612 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_924, i64 0, i32 120
  %_rtP__Nmpu2_Gain = load double, double* %612, align 1
  %rtb_MathFunction1_933 = load double, double* %rtb_MathFunction1_, align 8
  %tmp234 = fmul double %_rtP__Nmpu2_Gain, %rtb_MathFunction1_933
  %613 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_926, i64 0, i32 20
  store double %tmp234, double* %613, align 1
  %S_935 = load i8*, i8** %S_, align 8
  call void @vm_ssCallAccelRunBlock(i8* %S_935, i32 12, i32 236, i32 104)
  %S_936 = load i8*, i8** %S_, align 8
  call void @vm_ssCallAccelRunBlock(i8* %S_936, i32 12, i32 237, i32 104)
  %rtb_Sum2_idx_0_937 = load double, double* %rtb_Sum2_idx_0_, align 8
  %tmp235 = fmul double %rtb_Sum2_idx_0_937, %rtb_Sum2_idx_1_925
  store double %tmp235, double* %rtb_MathFunction1_, align 8
  %_rtP_939 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %614 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_939, i64 0, i32 121
  %_rtP__D_Gain_p = load double, double* %614, align 1
  %tmp236 = fmul double %tmp235, %_rtP__D_Gain_p
  %615 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_939, i64 0, i32 123
  %_rtP__C_Gain_c = load double, double* %615, align 1
  %_rtDW_942 = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  %616 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_942, i64 0, i32 13
  %_rtDW__Delay_x_DSTATE_j = load double, double* %616, align 1
  %tmp237 = fmul double %_rtP__C_Gain_c, %_rtDW__Delay_x_DSTATE_j
  %tmp238 = fadd double %tmp236, %tmp237
  %617 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_939, i64 0, i32 124
  %_rtP__Wtpu_Gain = load double, double* %617, align 1
  %tmp239 = fmul double %tmp238, %_rtP__Wtpu_Gain
  %_rtB_944 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %618 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_944, i64 0, i32 21
  store double %tmp239, double* %618, align 1
  %S_945 = load i8*, i8** %S_, align 8
  call void @vm_ssCallAccelRunBlock(i8* %S_945, i32 12, i32 244, i32 104)
  %_rtP_946 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %619 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_946, i64 0, i32 125
  %_rtP__radspu_Gain = load double, double* %619, align 1
  %tmp240 = fmul double %_rtP__radspu_Gain, %rtb_Sum2_idx_0_937
  %_rtB_948 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %620 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_948, i64 0, i32 22
  store double %tmp240, double* %620, align 1
  %S_949 = load i8*, i8** %S_, align 8
  call void @vm_ssCallAccelRunBlock(i8* %S_949, i32 12, i32 246, i32 104)
  %S_950 = load i8*, i8** %S_, align 8
  call void @vm_ssCallAccelRunBlock(i8* %S_950, i32 12, i32 247, i32 104)
  %S_951 = load i8*, i8** %S_, align 8
  call void @vm_ssCallAccelRunBlock(i8* %S_951, i32 12, i32 248, i32 104)
  %S_952 = load i8*, i8** %S_, align 8
  call void @vm_ssCallAccelRunBlock(i8* %S_952, i32 12, i32 249, i32 104)
  %S_953 = load i8*, i8** %S_, align 8
  call void @vm_ssCallAccelRunBlock(i8* %S_953, i32 12, i32 250, i32 104)
  %S_954 = load i8*, i8** %S_, align 8
  call void @vm_ssCallAccelRunBlock(i8* %S_954, i32 12, i32 251, i32 104)
  %_rtP_955 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %621 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_955, i64 0, i32 126
  %_rtP__A_Gain_b = load double, double* %621, align 1
  %_rtDW_956 = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  %622 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_956, i64 0, i32 12
  %_rtDW__Delay_x_DSTATE_b957 = load double, double* %622, align 1
  %tmp241 = fmul double %_rtP__A_Gain_b, %_rtDW__Delay_x_DSTATE_b957
  %623 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_955, i64 0, i32 127
  %_rtP__B_Gain_a = load double, double* %623, align 1
  %_rtB_959 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %624 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_959, i64 0, i32 18
  %_rtB__Me960 = load double, double* %624, align 1
  %tmp242 = fmul double %_rtP__B_Gain_a, %_rtB__Me960
  %tmp243 = fadd double %tmp241, %tmp242
  %625 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_959, i64 0, i32 23
  store double %tmp243, double* %625, align 1
  %626 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_955, i64 0, i32 128
  %_rtP__A_Gain_f = load double, double* %626, align 1
  %627 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_956, i64 0, i32 13
  %_rtDW__Delay_x_DSTATE_j964 = load double, double* %627, align 1
  %tmp244 = fmul double %_rtP__A_Gain_f, %_rtDW__Delay_x_DSTATE_j964
  %628 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_955, i64 0, i32 129
  %_rtP__B_Gain_p = load double, double* %628, align 1
  %tmp245 = fmul double %_rtP__B_Gain_p, %tmp235
  %tmp246 = fadd double %tmp244, %tmp245
  %629 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_959, i64 0, i32 24
  store double %tmp246, double* %629, align 1
  %630 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_955, i64 0, i32 130
  %_rtP__D_Gain_e = load double, double* %630, align 1
  %rtb_Product_h_idx_0_969 = load double, double* %rtb_Product_h_idx_0_, align 8
  %tmp247 = fmul double %_rtP__D_Gain_e, %rtb_Product_h_idx_0_969
  %631 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_955, i64 0, i32 132
  %_rtP__C_Gain_m = load double, double* %631, align 1
  %632 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_956, i64 0, i32 14
  %_rtDW__Delay_x_DSTATE_o = load double, double* %632, align 1
  %tmp248 = fmul double %_rtP__C_Gain_m, %_rtDW__Delay_x_DSTATE_o
  %tmp249 = fadd double %tmp247, %tmp248
  %633 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_959, i64 0, i32 25
  store double %tmp249, double* %633, align 1
  %S_973 = load i8*, i8** %S_, align 8
  call void @vm_ssCallAccelRunBlock(i8* %S_973, i32 12, i32 262, i32 104)
  %_rtP_974 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %634 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_974, i64 0, i32 133
  %_rtP__A_Gain_n = load double, double* %634, align 1
  %_rtDW_975 = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  %635 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_975, i64 0, i32 14
  %_rtDW__Delay_x_DSTATE_o976 = load double, double* %635, align 1
  %tmp250 = fmul double %_rtP__A_Gain_n, %_rtDW__Delay_x_DSTATE_o976
  %636 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_974, i64 0, i32 134
  %_rtP__B_Gain_j = load double, double* %636, align 1
  %tmp251 = fmul double %_rtP__B_Gain_j, %rtb_Product_h_idx_0_969
  %tmp252 = fadd double %tmp250, %tmp251
  %_rtB_979 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %637 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_979, i64 0, i32 26
  store double %tmp252, double* %637, align 1
  %S_980 = load i8*, i8** %S_, align 8
  call void @vm_ssCallAccelRunBlock(i8* %S_980, i32 12, i32 266, i32 104)
  %S_981 = load i8*, i8** %S_, align 8
  call void @vm_ssCallAccelRunBlock(i8* %S_981, i32 12, i32 267, i32 104)
  %S_982 = load i8*, i8** %S_, align 8
  call void @vm_ssCallAccelRunBlock(i8* %S_982, i32 12, i32 268, i32 104)
  %rtb_Sum2_idx_0_983 = load double, double* %rtb_Sum2_idx_0_, align 8
  %638 = call double @muDoubleScalarAbs(double %rtb_Sum2_idx_0_983)
  %_rtB_984 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %639 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_984, i64 0, i32 27
  store double %638, double* %639, align 1
  %_rtP_985 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %640 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_985, i64 0, i32 135
  %_rtP__A_Gain_g = load double, double* %640, align 1
  %_rtDW_986 = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  %641 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_986, i64 0, i32 8
  %_rtDW__Delay_x_DSTATE987 = load double, double* %641, align 1
  %tmp253 = fmul double %_rtP__A_Gain_g, %_rtDW__Delay_x_DSTATE987
  %642 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_985, i64 0, i32 136
  %_rtP__B_Gain_b = load double, double* %642, align 1
  %rtb_Product2_idx_0_989 = load double, double* %rtb_Product2_idx_0_, align 8
  %tmp254 = fmul double %_rtP__B_Gain_b, %rtb_Product2_idx_0_989
  %tmp255 = fadd double %tmp253, %tmp254
  %643 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_984, i64 0, i32 28
  store double %tmp255, double* %643, align 1
  %vm_ssIsSampleHitVar1_991.pre = load i32, i32* %vm_ssIsSampleHitVar1_, align 4
  br label %false

true110:                                          ; preds = %false
  %S_993 = load i8*, i8** %S_, align 8
  call void @Outputs1(i8* %S_993)
  br label %false111

false111:                                         ; preds = %true110, %false
  ret void

true112:                                          ; preds = %true106
  store double %_rtP__Saturation_UpperSat, double* %rtb_Sum1_, align 8
  br label %merge146

false113:                                         ; preds = %true106
  %644 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_997, i64 0, i32 85
  %_rtP__Saturation_LowerSat = load double, double* %644, align 1
  %645 = fcmp olt double %_rtB__SFunction_el, %_rtP__Saturation_LowerSat
  br i1 %645, label %true114, label %merge146

true114:                                          ; preds = %false113
  store double %_rtP__Saturation_LowerSat, double* %rtb_Sum1_, align 8
  br label %merge146

true116:                                          ; preds = %merge147
  %tmp269 = add i32 %i_0_1066, 4
  %646 = sext i32 %tmp269 to i64
  %647 = getelementptr inbounds [16 x double], [16 x double]* %rtb_RLinv_, i64 0, i64 %646
  %648 = bitcast double* %647 to <2 x double>*
  %649 = load <2 x double>, <2 x double>* %648, align 8
  store <2 x double> %649, <2 x double>* %tmp_6_, align 16
  %650 = sext i32 %i_0_1066 to i64
  %651 = getelementptr inbounds [16 x double], [16 x double]* %rtb_RLinv_, i64 0, i64 %650
  %652 = bitcast double* %651 to <2 x double>*
  %653 = load <2 x double>, <2 x double>* %652, align 8
  store <2 x double> %653, <2 x double>* %tmp_7_, align 16
  %tmp270 = add i32 %i_0_1066, 8
  %654 = sext i32 %tmp270 to i64
  %655 = getelementptr inbounds [16 x double], [16 x double]* %rtb_RLinv_, i64 0, i64 %654
  %656 = bitcast double* %655 to <2 x double>*
  %657 = load <2 x double>, <2 x double>* %656, align 8
  store <2 x double> %657, <2 x double>* %tmp_4_, align 16
  %tmp271 = add i32 %i_0_1066, 12
  %658 = sext i32 %tmp271 to i64
  %659 = getelementptr inbounds [16 x double], [16 x double]* %rtb_RLinv_, i64 0, i64 %658
  %660 = bitcast double* %659 to <2 x double>*
  %661 = load <2 x double>, <2 x double>* %660, align 8
  store <2 x double> %661, <2 x double>* %tmp_5_, align 16
  %662 = mul i32 %i_1057, 4
  %tmp272 = add i32 %662, %i_0_1066
  %663 = sext i32 %tmp272 to i64
  %664 = getelementptr inbounds [16 x double], [16 x double]* %rtb_RLinv_0_, i64 0, i64 %663
  %665 = insertelement <2 x double> undef, double %rtb_Lminrows24col24__el, i32 0
  %666 = shufflevector <2 x double> %665, <2 x double> undef, <2 x i32> zeroinitializer
  %667 = fmul <2 x double> %649, %666
  %668 = insertelement <2 x double> undef, double %rtb_Lminrows24col24__el1045, i32 0
  %669 = shufflevector <2 x double> %668, <2 x double> undef, <2 x i32> zeroinitializer
  %670 = fmul <2 x double> %653, %669
  %671 = fadd <2 x double> %667, %670
  %672 = insertelement <2 x double> undef, double %rtb_Lminrows24col24__el1047, i32 0
  %673 = shufflevector <2 x double> %672, <2 x double> undef, <2 x i32> zeroinitializer
  %674 = fmul <2 x double> %657, %673
  %675 = fadd <2 x double> %671, %674
  %676 = insertelement <2 x double> undef, double %rtb_Lminrows24col24__el1049, i32 0
  %677 = shufflevector <2 x double> %676, <2 x double> undef, <2 x i32> zeroinitializer
  %678 = fmul <2 x double> %661, %677
  %679 = fadd <2 x double> %675, %678
  %680 = bitcast double* %664 to <2 x double>*
  store <2 x double> %679, <2 x double>* %680, align 8
  %tmp273 = add i32 %i_0_1066, 2
  br label %merge147

false117:                                         ; preds = %merge147
  %tmp268 = add i32 %i_1057, 1
  br label %merge142

true120:                                          ; preds = %merge149
  %tmp288 = add i32 %i_0_1136, 4
  %681 = sext i32 %tmp288 to i64
  %682 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_1104, i64 0, i32 100, i64 %681
  %683 = bitcast double* %682 to <2 x double>*
  %684 = load <2 x double>, <2 x double>* %683, align 1
  store <2 x double> %684, <2 x double>* %tmp_6_, align 16
  %685 = sext i32 %i_0_1136 to i64
  %686 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_1104, i64 0, i32 100, i64 %685
  %687 = bitcast double* %686 to <2 x double>*
  %688 = load <2 x double>, <2 x double>* %687, align 1
  store <2 x double> %688, <2 x double>* %tmp_7_, align 16
  %tmp289 = add i32 %i_0_1136, 8
  %689 = sext i32 %tmp289 to i64
  %690 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_1104, i64 0, i32 100, i64 %689
  %691 = bitcast double* %690 to <2 x double>*
  %692 = load <2 x double>, <2 x double>* %691, align 1
  store <2 x double> %692, <2 x double>* %tmp_4_, align 16
  %tmp290 = add i32 %i_0_1136, 12
  %693 = sext i32 %tmp290 to i64
  %694 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_1104, i64 0, i32 100, i64 %693
  %695 = bitcast double* %694 to <2 x double>*
  %696 = load <2 x double>, <2 x double>* %695, align 1
  store <2 x double> %696, <2 x double>* %tmp_5_, align 16
  %697 = mul i32 %i_1127, 4
  %tmp291 = add i32 %697, %i_0_1136
  %698 = sext i32 %tmp291 to i64
  %699 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_1104, i64 0, i32 94, i64 %698
  %700 = insertelement <2 x double> undef, double %_rtB__Linv_el, i32 0
  %701 = shufflevector <2 x double> %700, <2 x double> undef, <2 x i32> zeroinitializer
  %702 = fmul <2 x double> %684, %701
  %703 = insertelement <2 x double> undef, double %_rtB__Linv_el1108, i32 0
  %704 = shufflevector <2 x double> %703, <2 x double> undef, <2 x i32> zeroinitializer
  %705 = fmul <2 x double> %688, %704
  %706 = fadd <2 x double> %702, %705
  %707 = insertelement <2 x double> undef, double %_rtB__Linv_el1111, i32 0
  %708 = shufflevector <2 x double> %707, <2 x double> undef, <2 x i32> zeroinitializer
  %709 = fmul <2 x double> %692, %708
  %710 = fadd <2 x double> %706, %709
  %711 = insertelement <2 x double> undef, double %_rtB__Linv_el1114, i32 0
  %712 = shufflevector <2 x double> %711, <2 x double> undef, <2 x i32> zeroinitializer
  %713 = fmul <2 x double> %696, %712
  %714 = fadd <2 x double> %710, %713
  %715 = bitcast double* %699 to <2 x double>*
  store <2 x double> %714, <2 x double>* %715, align 1
  %tmp292 = add i32 %i_0_1136, 2
  br label %merge149

false121:                                         ; preds = %merge149
  %tmp287 = add i32 %i_1127, 1
  br label %merge123

merge:                                            ; preds = %true3, %false4
  %_rtB_216 = phi %B_inu_im_1wnd_3lvl_r2021b_T.66* [ %_rtB_215, %true3 ], [ %_rtB_211, %false4 ]
  %716 = bitcast [16 x double]* %rtb_Lminrows24col24_ to i8*
  %717 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_216, i64 0, i32 97, i64 0
  %718 = bitcast double* %717 to i8*
  %719 = call i8* @memcpy(i8* nonnull %716, i8* nonnull %718, i32 128)
  %_rtB_217 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %720 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_217, i64 0, i32 92
  %_rtB__Switch = load double, double* %720, align 1
  %721 = getelementptr inbounds [16 x double], [16 x double]* %rtb_Lminrows24col24_, i64 0, i64 0
  store double %_rtB__Switch, double* %721, align 8
  %722 = getelementptr inbounds [16 x double], [16 x double]* %rtb_Lminrows24col24_, i64 0, i64 5
  store double %_rtB__Switch, double* %722, align 8
  %723 = getelementptr inbounds [16 x double], [16 x double]* %rtb_Lminrows24col24_, i64 0, i64 2
  store double %_rtB__Switch, double* %723, align 8
  %724 = getelementptr inbounds [16 x double], [16 x double]* %rtb_Lminrows24col24_, i64 0, i64 7
  store double %_rtB__Switch, double* %724, align 8
  %725 = getelementptr inbounds [16 x double], [16 x double]* %rtb_Lminrows24col24_, i64 0, i64 8
  store double %_rtB__Switch, double* %725, align 8
  %726 = getelementptr inbounds [16 x double], [16 x double]* %rtb_Lminrows24col24_, i64 0, i64 13
  store double %_rtB__Switch, double* %726, align 8
  %727 = getelementptr inbounds [16 x double], [16 x double]* %rtb_Lminrows24col24_, i64 0, i64 10
  store double %_rtB__Switch, double* %727, align 8
  %728 = getelementptr inbounds [16 x double], [16 x double]* %rtb_Lminrows24col24_, i64 0, i64 15
  store double %_rtB__Switch, double* %728, align 8
  br label %merge122

merge122:                                         ; preds = %true5, %merge
  %i_1143 = phi i32 [ %tmp293, %true5 ], [ 0, %merge ]
  store i32 %i_1143, i32* %i_, align 4
  %729 = icmp slt i32 %i_1143, 15
  br i1 %729, label %true5, label %false6

merge123:                                         ; preds = %false121, %false6
  %i_1127 = phi i32 [ %tmp287, %false121 ], [ 0, %false6 ]
  store i32 %i_1127, i32* %i_, align 4
  %730 = icmp slt i32 %i_1127, 4
  br i1 %730, label %true7, label %false8

merge124:                                         ; preds = %true9, %false10
  %_rtB_241 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %731 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_241, i64 0, i32 0, i64 1
  %_rtB__xk1_el = load double, double* %731, align 1
  store double %_rtB__xk1_el, double* %rtb_MathFunction1_, align 8
  %732 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_241, i64 0, i32 0, i64 0
  %_rtB__xk1_el243 = load double, double* %732, align 1
  store double %_rtB__xk1_el243, double* %rtb_Product2_idx_0_, align 8
  %733 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_241, i64 0, i32 0, i64 2
  %_rtB__xk1_el245 = load double, double* %733, align 1
  store double %_rtB__xk1_el245, double* %rtb_phimd_, align 8
  %734 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_241, i64 0, i32 0, i64 3
  %_rtB__xk1_el247 = load double, double* %734, align 1
  store double %_rtB__xk1_el247, double* %rtb_LookUpTable_gu_, align 8
  br label %merge125

merge125:                                         ; preds = %true11, %merge124
  %i_1103 = phi i32 [ %tmp283, %true11 ], [ 0, %merge124 ]
  store i32 %i_1103, i32* %i_, align 4
  %735 = icmp slt i32 %i_1103, 3
  br i1 %735, label %true11, label %false12

merge126:                                         ; preds = %true17, %true15
  %i_273 = phi i32 [ %tmp25, %true17 ], [ 0, %true15 ]
  store i32 %i_273, i32* %i_, align 4
  %736 = icmp slt i32 %i_273, 16
  br i1 %736, label %true17, label %false18

merge127:                                         ; preds = %false14, %false18, %false20
  %_rtP_296 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %737 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_296, i64 0, i32 166
  %_rtP__Constant1_Value_f = load i8, i8* %737, align 1
  store i8 %_rtP__Constant1_Value_f, i8* @rtb_Constant1, align 1
  %738 = and i8 %_rtP__Constant1_Value_f, 1
  %.not1147 = icmp eq i8 %738, 0
  br i1 %.not1147, label %false24, label %true23

merge128:                                         ; preds = %false24, %true25, %false28
  %_rtP_335 = phi %P_inu_im_1wnd_3lvl_r2021b_T.68* [ %_rtP_332.pre, %false28 ], [ %_rtP_299, %true25 ], [ %_rtP_296, %false24 ]
  %739 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_335, i64 0, i32 167
  %_rtP__Constant3_Value_f = load i8, i8* %739, align 1
  %_rtB_333 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %740 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_333, i64 0, i32 103
  store i8 %_rtP__Constant3_Value_f, i8* %740, align 1
  %741 = and i8 %_rtP__Constant3_Value_f, 1
  %.not1149 = icmp eq i8 %741, 0
  br i1 %.not1149, label %false32, label %true31

merge129:                                         ; preds = %case33, %case, %default
  %rtb_Sum2_idx_2_646 = phi double [ %_rtB__Constant_d_el, %case33 ], [ %_rtB__Constant_do_el, %case ], [ %_rtB__TrigonometricFunction_o1_i, %default ]
  %rtb_Sum2_idx_3_647 = phi double [ %_rtB__Constant_d_el367, %case33 ], [ %_rtB__Constant_do_el362, %case ], [ %_rtB__TrigonometricFunction_o2_e, %default ]
  %rtb_Sum2_idx_0_394.pre = phi double [ %_rtB__TrigonometricFunction_o1, %case33 ], [ %_rtB__TrigonometricFunction_o1_a, %case ], [ %_rtB__TrigonometricFunction1_o1, %default ]
  %rtb_Sum2_idx_1_393.pre = phi double [ %_rtB__TrigonometricFunction_o2, %case33 ], [ %_rtB__TrigonometricFunction_o2_d, %case ], [ %_rtB__TrigonometricFunction1_o2, %default ]
  %_rtP_368 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %742 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_368, i64 0, i32 168
  %_rtP__Constant_Value_h = load i8, i8* %742, align 1
  store i8 %_rtP__Constant_Value_h, i8* @rtb_Constant_c, align 1
  %743 = and i8 %_rtP__Constant_Value_h, 1
  %.not1150 = icmp eq i8 %743, 0
  br i1 %.not1150, label %false35, label %true34

merge130:                                         ; preds = %false35, %true36, %false39
  %_rtP_405 = phi %P_inu_im_1wnd_3lvl_r2021b_T.68* [ %_rtP_405.pre, %false39 ], [ %_rtP_371, %true36 ], [ %_rtP_368, %false35 ]
  %744 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_405, i64 0, i32 169
  %_rtP__Constant1_Value_cu = load i8, i8* %744, align 1
  store i8 %_rtP__Constant1_Value_cu, i8* @rtb_Constant1_e, align 1
  %745 = and i8 %_rtP__Constant1_Value_cu, 1
  %.not1152 = icmp eq i8 %745, 0
  br i1 %.not1152, label %false43, label %true42

merge131:                                         ; preds = %false43, %true44, %false47
  %_rtP_443 = phi %P_inu_im_1wnd_3lvl_r2021b_T.68* [ %_rtP_443.pre, %false47 ], [ %_rtP_408, %true44 ], [ %_rtP_405, %false43 ]
  %746 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_443, i64 0, i32 170
  %_rtP__Constant2_Value_l = load i8, i8* %746, align 1
  store i8 %_rtP__Constant2_Value_l, i8* @rtb_Constant2, align 1
  %747 = and i8 %_rtP__Constant2_Value_l, 1
  %.not1154 = icmp eq i8 %747, 0
  br i1 %.not1154, label %false51, label %true50

merge132:                                         ; preds = %false51, %true52, %false55
  %_rtB_488 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %748 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_488, i64 0, i32 40
  %_rtB__Constant4_o = load double, double* %748, align 1
  %749 = fptosi double %_rtB__Constant4_o to i32
  switch i32 %749, label %default60 [
    i32 1, label %case58
    i32 2, label %case59
  ]

merge133:                                         ; preds = %case59, %case58, %default60
  %rtb_MathFunction1_501 = phi double [ %_rtB__isb_h, %case59 ], [ %_rtB__isb_m, %case58 ], [ %_rtB__isb, %default60 ]
  %rtb_Product2_idx_0_496 = phi double [ %_rtB__isa_h, %case59 ], [ %_rtB__isa_a, %case58 ], [ %_rtB__isa, %default60 ]
  %_rtP_495 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %750 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_495, i64 0, i32 52
  %_rtP__ib_Gain = load double, double* %750, align 1
  %tmp85 = fmul double %_rtP__ib_Gain, %rtb_Product2_idx_0_496
  %751 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_495, i64 0, i32 53, i64 0
  %_rtP__GainVr_Vs1_Gain_el = load double, double* %751, align 1
  %tmp86 = fmul double %tmp85, %_rtP__GainVr_Vs1_Gain_el
  %752 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_488, i64 0, i32 2, i64 0
  store double %tmp86, double* %752, align 1
  %_rtP__ib_Gain500 = load double, double* %750, align 1
  %tmp87 = fmul double %_rtP__ib_Gain500, %rtb_MathFunction1_501
  %753 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_495, i64 0, i32 53, i64 1
  %_rtP__GainVr_Vs1_Gain_el503 = load double, double* %753, align 1
  %tmp88 = fmul double %tmp87, %_rtP__GainVr_Vs1_Gain_el503
  %754 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_488, i64 0, i32 2, i64 1
  store double %tmp88, double* %754, align 1
  %S_505 = load i8*, i8** %S_, align 8
  call void @vm_ssCallAccelRunBlock(i8* %S_505, i32 12, i32 29, i32 104)
  %_rtP_506 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %755 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_506, i64 0, i32 59, i64 0
  %_rtP__u1_Gain_el = load double, double* %755, align 1
  %756 = getelementptr inbounds [4 x double], [4 x double]* %rtb_u_Vb_, i64 0, i64 0
  %rtb_u_Vb__el507 = load double, double* %756, align 8
  %tmp89 = fmul double %_rtP__u1_Gain_el, %rtb_u_Vb__el507
  %_rtB_508 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %757 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_508, i64 0, i32 0, i64 1
  %_rtB__xk1_el509 = load double, double* %757, align 1
  %tmp90 = fmul double %tmp89, %_rtB__xk1_el509
  store double %tmp90, double* %rtb_Product_h_idx_0_, align 8
  %758 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_506, i64 0, i32 61
  %_rtP__u_Vb_Gain = load double, double* %758, align 1
  %759 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_508, i64 0, i32 38, i64 0
  %_rtB__Constant6_el = load double, double* %759, align 1
  %tmp91 = fmul double %_rtP__u_Vb_Gain, %_rtB__Constant6_el
  store double %tmp91, double* %756, align 8
  %760 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_506, i64 0, i32 60, i64 0
  %_rtP__GainVr_Vs_Gain_el = load double, double* %760, align 1
  %761 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_508, i64 0, i32 3, i64 18
  %_rtB__StateSpace_o1_el = load double, double* %761, align 1
  %tmp92 = fmul double %_rtP__GainVr_Vs_Gain_el, %_rtB__StateSpace_o1_el
  %tmp93 = fmul double %tmp92, %_rtP__u_Vb_Gain
  %762 = getelementptr inbounds [4 x double], [4 x double]* %rtb_u_Vb_, i64 0, i64 2
  store double %tmp93, double* %762, align 8
  %763 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_506, i64 0, i32 59, i64 1
  %_rtP__u1_Gain_el517 = load double, double* %763, align 1
  %764 = getelementptr inbounds [4 x double], [4 x double]* %rtb_u_Vb_, i64 0, i64 1
  %rtb_u_Vb__el518 = load double, double* %764, align 8
  %tmp94 = fmul double %_rtP__u1_Gain_el517, %rtb_u_Vb__el518
  %765 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_508, i64 0, i32 0, i64 0
  %_rtB__xk1_el520 = load double, double* %765, align 1
  %tmp95 = fmul double %tmp94, %_rtB__xk1_el520
  %tmp96 = fadd double %tmp95, %tmp90
  store double %tmp96, double* %rtb_Product_h_idx_0_, align 8
  %766 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_508, i64 0, i32 38, i64 1
  %_rtB__Constant6_el525 = load double, double* %766, align 1
  %tmp97 = fmul double %_rtP__u_Vb_Gain, %_rtB__Constant6_el525
  store double %tmp97, double* %764, align 8
  %767 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_506, i64 0, i32 60, i64 1
  %_rtP__GainVr_Vs_Gain_el527 = load double, double* %767, align 1
  %768 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_508, i64 0, i32 3, i64 19
  %_rtB__StateSpace_o1_el529 = load double, double* %768, align 1
  %tmp98 = fmul double %_rtP__GainVr_Vs_Gain_el527, %_rtB__StateSpace_o1_el529
  %tmp99 = fmul double %tmp98, %_rtP__u_Vb_Gain
  %769 = getelementptr inbounds [4 x double], [4 x double]* %rtb_u_Vb_, i64 0, i64 3
  store double %tmp99, double* %769, align 8
  %770 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_506, i64 0, i32 171
  %_rtP__Constant_Value_ad = load i8, i8* %770, align 1
  store i8 %_rtP__Constant_Value_ad, i8* @rtb_Constant_l2, align 1
  %771 = and i8 %_rtP__Constant_Value_ad, 1
  %.not1156 = icmp eq i8 %771, 0
  br i1 %.not1156, label %false62, label %true61

merge134:                                         ; preds = %false62, %true63, %false66
  %_rtP_570 = phi %P_inu_im_1wnd_3lvl_r2021b_T.68* [ %_rtP_570.pre, %false66 ], [ %_rtP_535, %true63 ], [ %_rtP_506, %false62 ]
  %772 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_570, i64 0, i32 172
  %_rtP__Constant1_Value_k = load i8, i8* %772, align 1
  store i8 %_rtP__Constant1_Value_k, i8* @rtb_Constant1_eq, align 1
  %773 = and i8 %_rtP__Constant1_Value_k, 1
  %.not1158 = icmp eq i8 %773, 0
  br i1 %.not1158, label %false70, label %true69

merge135:                                         ; preds = %false70, %true71, %false74
  %_rtP_608 = phi %P_inu_im_1wnd_3lvl_r2021b_T.68* [ %_rtP_608.pre, %false74 ], [ %_rtP_573, %true71 ], [ %_rtP_570, %false70 ]
  %774 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_608, i64 0, i32 173
  %_rtP__Constant2_Value_i = load i8, i8* %774, align 1
  store i8 %_rtP__Constant2_Value_i, i8* @rtb_Constant2_j, align 1
  %775 = and i8 %_rtP__Constant2_Value_i, 1
  %.not1160 = icmp eq i8 %775, 0
  br i1 %.not1160, label %false78, label %true77

merge136:                                         ; preds = %false78, %true79, %false82
  %_rtB_653 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %776 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_653, i64 0, i32 37
  %_rtB__Constant4_h = load double, double* %776, align 1
  %777 = fptosi double %_rtB__Constant4_h to i32
  switch i32 %777, label %default87 [
    i32 1, label %case85
    i32 2, label %case86
  ]

merge137:                                         ; preds = %case86, %case85, %default87
  %778 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_653, i64 0, i32 36
  %_rtB__Constant3_o = load double, double* %778, align 1
  %779 = fptosi double %_rtB__Constant3_o to i32
  switch i32 %779, label %default90 [
    i32 1, label %case88
    i32 2, label %case89
  ]

merge138:                                         ; preds = %case89, %case88, %default90
  %_rtP_680 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %780 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_680, i64 0, i32 63
  %_rtP__IC_Threshold = load double, double* %780, align 1
  %781 = fcmp ult double %1, %_rtP__IC_Threshold
  br i1 %781, label %false92, label %true91

merge139:                                         ; preds = %case94, %case93, %default95
  %_rtB_697 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %782 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_697, i64 0, i32 33
  %_rtB__Constant3 = load double, double* %782, align 1
  %_rtP_698 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %783 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_698, i64 0, i32 12
  %_rtP__Switch1_Threshold = load double, double* %783, align 1
  %784 = fcmp oge double %_rtB__Constant3, %_rtP__Switch1_Threshold
  %785 = zext i1 %784 to i8
  store i8 %785, i8* %tmp_, align 1
  br label %merge140

merge140:                                         ; preds = %true96, %merge139
  %i_1088 = phi i32 [ %tmp279, %true96 ], [ 0, %merge139 ]
  store i32 %i_1088, i32* %i_, align 4
  %786 = icmp slt i32 %i_1088, 16
  br i1 %786, label %true96, label %false97

merge141:                                         ; preds = %true98, %false97
  %i_1073 = phi i32 [ %tmp274, %true98 ], [ 0, %false97 ]
  store i32 %i_1073, i32* %i_, align 4
  %787 = icmp slt i32 %i_1073, 15
  br i1 %787, label %true98, label %merge142

merge142:                                         ; preds = %merge141, %false117
  %i_1057 = phi i32 [ %tmp268, %false117 ], [ 0, %merge141 ]
  store i32 %i_1057, i32* %i_, align 4
  %788 = icmp slt i32 %i_1057, 4
  br i1 %788, label %true100, label %false101

merge143:                                         ; preds = %true102, %false101
  %i_1042 = phi i32 [ %tmp264, %true102 ], [ 0, %false101 ]
  store i32 %i_1042, i32* %i_, align 4
  %789 = icmp slt i32 %i_1042, 3
  br i1 %789, label %true102, label %merge143.false103_crit_edge

merge143.false103_crit_edge:                      ; preds = %merge143
  %_rtP_724.pre = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  br label %false103

merge144:                                         ; preds = %true104, %false105
  %790 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_738, i64 0, i32 81
  %_rtP__web_psb_Gain_h = load double, double* %790, align 1
  %tmp189 = fmul double %_rtP__web_psb_Gain_h, %rtb_Sum1_747
  %791 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_749, i64 0, i32 10
  store double %tmp189, double* %791, align 1
  %S_761 = load i8*, i8** %S_, align 8
  call void @vm_ssCallAccelRunBlock(i8* %S_761, i32 12, i32 111, i32 104)
  br label %merge145

merge145:                                         ; preds = %merge146, %merge144
  %i_1007 = phi i32 [ %tmp257, %merge146 ], [ 0, %merge144 ]
  store i32 %i_1007, i32* %i_, align 4
  %792 = icmp slt i32 %i_1007, 12
  br i1 %792, label %true106, label %false107

merge146:                                         ; preds = %false113, %true114, %true112
  %rtb_Sum1_1004 = phi double [ %_rtP__Saturation_UpperSat, %true112 ], [ %_rtP__Saturation_LowerSat, %true114 ], [ %_rtB__SFunction_el, %false113 ]
  %793 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_994, i64 0, i32 43
  %_rtB__DataTypeConversion1 = load double, double* %793, align 1
  %tmp256 = fmul double %rtb_Sum1_1004, %_rtB__DataTypeConversion1
  %794 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_994, i64 0, i32 12, i64 %507
  store double %tmp256, double* %794, align 1
  %tmp257 = add i32 %i_1007, 1
  br label %merge145

merge147:                                         ; preds = %true116, %true100
  %i_0_1066 = phi i32 [ %tmp273, %true116 ], [ 0, %true100 ]
  store i32 %i_0_1066, i32* %i_0_, align 4
  %795 = icmp slt i32 %i_0_1066, 3
  br i1 %795, label %true116, label %false117

merge149:                                         ; preds = %true120, %true7
  %i_0_1136 = phi i32 [ %tmp292, %true120 ], [ 0, %true7 ]
  store i32 %i_0_1136, i32* %i_0_, align 4
  %796 = icmp slt i32 %i_0_1136, 3
  br i1 %796, label %true120, label %false121
}

declare double @vm_ssGetTStart(i8*)

declare double @vm_ssGetTaskTime(i8*, i32 signext)

declare double @muDoubleScalarHypot(double, double)

define double @look1_pbinlxpw(double %u0, double* %bp0, double* %table, i32* %prevIndex, i32 zeroext %maxIndex) {
look1_pbinlxpw_entry:
  %u0_ = alloca double, align 8
  store double %u0, double* %u0_, align 8
  %bp0_ = alloca double*, align 8
  store double* %bp0, double** %bp0_, align 8
  %table_ = alloca double*, align 8
  store double* %table, double** %table_, align 8
  %prevIndex_ = alloca i32*, align 8
  store i32* %prevIndex, i32** %prevIndex_, align 8
  %maxIndex_ = alloca i32, align 4
  store i32 %maxIndex, i32* %maxIndex_, align 4
  %frac_ = alloca double, align 8
  %yL_0d0_ = alloca double, align 8
  %iRght_ = alloca i32, align 4
  %iLeft_ = alloca i32, align 4
  %bpIdx_ = alloca i32, align 4
  %found_ = alloca i32, align 4
  %y_ = alloca double, align 8
  %bp0__el = load double, double* %bp0, align 1
  %0 = fcmp ugt double %u0, %bp0__el
  br i1 %0, label %false, label %true

true:                                             ; preds = %look1_pbinlxpw_entry
  store i32 0, i32* %bpIdx_, align 4
  %tmp17 = fsub double %u0, %bp0__el
  %1 = getelementptr inbounds double, double* %bp0, i64 1
  %bp0__el61 = load double, double* %1, align 1
  %tmp18 = fsub double %bp0__el61, %bp0__el
  %tmp19 = fdiv double %tmp17, %tmp18
  br label %merge12

false:                                            ; preds = %look1_pbinlxpw_entry
  %2 = sext i32 %maxIndex to i64
  %3 = getelementptr inbounds double, double* %bp0, i64 %2
  %bp0__el18 = load double, double* %3, align 1
  %4 = fcmp olt double %u0, %bp0__el18
  br i1 %4, label %true1, label %false2

true1:                                            ; preds = %false
  %prevIndex__el = load i32, i32* %prevIndex, align 1
  store i32 %prevIndex__el, i32* %bpIdx_, align 4
  store i32 0, i32* %iLeft_, align 4
  store i32 %maxIndex, i32* %iRght_, align 4
  store i32 0, i32* %found_, align 4
  br label %merge

false2:                                           ; preds = %false
  %tmp0 = add i32 %maxIndex, -1
  store i32 %tmp0, i32* %bpIdx_, align 4
  %5 = sext i32 %tmp0 to i64
  %6 = getelementptr inbounds double, double* %bp0, i64 %5
  %bp0__el23 = load double, double* %6, align 1
  %tmp2 = fsub double %u0, %bp0__el23
  %tmp4 = fsub double %bp0__el18, %bp0__el23
  %tmp5 = fdiv double %tmp2, %tmp4
  br label %merge12

true3:                                            ; preds = %merge
  %7 = sext i32 %bpIdx_54 to i64
  %8 = getelementptr inbounds double, double* %bp0_44, i64 %7
  %bp0__el46 = load double, double* %8, align 1
  %9 = fcmp olt double %u0_43, %bp0__el46
  br i1 %9, label %true5, label %false6

false4:                                           ; preds = %merge
  %10 = sext i32 %bpIdx_54 to i64
  %11 = getelementptr inbounds double, double* %bp0_44, i64 %10
  %bp0__el36 = load double, double* %11, align 1
  %tmp6 = fsub double %u0_43, %bp0__el36
  %tmp7 = add i32 %bpIdx_54, 1
  %12 = sext i32 %tmp7 to i64
  %13 = getelementptr inbounds double, double* %bp0_44, i64 %12
  %bp0__el39 = load double, double* %13, align 1
  %tmp8 = fsub double %bp0__el39, %bp0__el36
  %tmp9 = fdiv double %tmp6, %tmp8
  br label %merge12

true5:                                            ; preds = %true3
  %tmp14 = add i32 %bpIdx_54, -1
  store i32 %tmp14, i32* %iRght_, align 4
  %tmp16 = add i32 %tmp14, %iLeft_56
  %14 = lshr i32 %tmp16, 1
  store i32 %14, i32* %bpIdx_, align 4
  br label %merge11

false6:                                           ; preds = %true3
  %tmp10 = add i32 %bpIdx_54, 1
  %15 = sext i32 %tmp10 to i64
  %16 = getelementptr inbounds double, double* %bp0, i64 %15
  %bp0__el50 = load double, double* %16, align 1
  %17 = fcmp olt double %u0, %bp0__el50
  br i1 %17, label %true7, label %false8

true7:                                            ; preds = %false6
  store i32 1, i32* %found_, align 4
  br label %merge11

false8:                                           ; preds = %false6
  store i32 %tmp10, i32* %iLeft_, align 4
  %tmp13 = add i32 %tmp10, %iRght_53
  %18 = lshr i32 %tmp13, 1
  store i32 %18, i32* %bpIdx_, align 4
  br label %merge11

merge:                                            ; preds = %merge11, %true1
  %iLeft_56 = phi i32 [ %iLeft_5697, %merge11 ], [ 0, %true1 ]
  %iRght_53 = phi i32 [ %iRght_5395, %merge11 ], [ %maxIndex, %true1 ]
  %bpIdx_54 = phi i32 [ %bpIdx_4992, %merge11 ], [ %prevIndex__el, %true1 ]
  %bp0_44 = phi double* [ %bp0_4490, %merge11 ], [ %bp0, %true1 ]
  %u0_43 = phi double [ %u0_4388, %merge11 ], [ %u0, %true1 ]
  %found_32 = phi i32 [ %found_3276, %merge11 ], [ 0, %true1 ]
  %19 = icmp eq i32 %found_32, 0
  br i1 %19, label %true3, label %false4

merge11:                                          ; preds = %false8, %true7, %true5
  %iLeft_5697 = phi i32 [ %iLeft_56, %true5 ], [ %iLeft_56, %true7 ], [ %tmp10, %false8 ]
  %iRght_5395 = phi i32 [ %tmp14, %true5 ], [ %iRght_53, %true7 ], [ %iRght_53, %false8 ]
  %bpIdx_4992 = phi i32 [ %14, %true5 ], [ %bpIdx_54, %true7 ], [ %18, %false8 ]
  %bp0_4490 = phi double* [ %bp0_44, %true5 ], [ %bp0, %true7 ], [ %bp0, %false8 ]
  %u0_4388 = phi double [ %u0_43, %true5 ], [ %u0, %true7 ], [ %u0, %false8 ]
  %found_3276 = phi i32 [ 0, %true5 ], [ 1, %true7 ], [ 0, %false8 ]
  br label %merge

merge12:                                          ; preds = %false2, %false4, %true
  %bpIdx_69 = phi i32 [ 0, %true ], [ %bpIdx_54, %false4 ], [ %tmp0, %false2 ]
  %storemerge75 = phi double [ %tmp19, %true ], [ %tmp9, %false4 ], [ %tmp5, %false2 ]
  store double %storemerge75, double* %frac_, align 8
  store i32 %bpIdx_69, i32* %prevIndex, align 1
  %20 = sext i32 %bpIdx_69 to i64
  %21 = getelementptr inbounds double, double* %table, i64 %20
  %table__el = load double, double* %21, align 1
  store double %table__el, double* %yL_0d0_, align 8
  %tmp20 = add i32 %bpIdx_69, 1
  %22 = sext i32 %tmp20 to i64
  %23 = getelementptr inbounds double, double* %table, i64 %22
  %table__el70 = load double, double* %23, align 1
  %tmp21 = fsub double %table__el70, %table__el
  %tmp22 = fmul double %tmp21, %storemerge75
  %tmp23 = fadd double %tmp22, %table__el
  store double %tmp23, double* %y_, align 8
  ret double %tmp23
}

declare void @vm_ssSetBlockStateForSolverChangedAtMajorStep(i8*)

declare void @muDoubleScalarSinCos(double, double*, double*)

declare double @muDoubleScalarSign(double)

declare signext i32 @vm_ssIsSpecialSampleHit(i8*, i32 signext, i32 signext, i32 signext)

declare double @rt_Lookup(double*, i32 signext, double, double*)

define void @SystemInitialize(i8* %S) {
SystemInitialize_entry:
  %S_ = alloca i8*, align 8
  store i8* %S, i8** %S_, align 8
  %tseed_ = alloca i32, align 4
  %i_ = alloca i32, align 4
  %tmp_ = alloca double, align 8
  %_rtB_ = alloca %B_inu_im_1wnd_3lvl_r2021b_T.66*, align 8
  %_rtP_ = alloca %P_inu_im_1wnd_3lvl_r2021b_T.68*, align 8
  %_rtDW_ = alloca %DW_inu_im_1wnd_3lvl_r2021b_T.67*, align 8
  %0 = call i8* @vm_ssGetRootDWork(i8* %S)
  %1 = bitcast %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_ to i8**
  store i8* %0, i8** %1, align 8
  %2 = call i8* @vm_ssGetModelRtp(i8* %S)
  %3 = bitcast %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_ to i8**
  store i8* %2, i8** %3, align 8
  %4 = call i8* @vm__ssGetModelBlockIO(i8* %S)
  %5 = bitcast %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_ to i8**
  store i8* %4, i8** %5, align 8
  %_rtP_37 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %6 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_37, i64 0, i32 43, i64 0
  %_rtP__fluxes_InitialCondition_el = load double, double* %6, align 1
  %7 = bitcast i8* %0 to %DW_inu_im_1wnd_3lvl_r2021b_T.67*
  %8 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %7, i64 0, i32 0, i64 0
  store double %_rtP__fluxes_InitialCondition_el, double* %8, align 1
  %_rtP_39 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %9 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_39, i64 0, i32 45, i64 0
  %_rtP__fluxes_InitialCondition_f_el = load double, double* %9, align 1
  %10 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %7, i64 0, i32 1, i64 0
  store double %_rtP__fluxes_InitialCondition_f_el, double* %10, align 1
  %11 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_39, i64 0, i32 43, i64 1
  %_rtP__fluxes_InitialCondition_el42 = load double, double* %11, align 1
  %12 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %7, i64 0, i32 0, i64 1
  store double %_rtP__fluxes_InitialCondition_el42, double* %12, align 1
  %13 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_39, i64 0, i32 45, i64 1
  %_rtP__fluxes_InitialCondition_f_el45 = load double, double* %13, align 1
  %14 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %7, i64 0, i32 1, i64 1
  store double %_rtP__fluxes_InitialCondition_f_el45, double* %14, align 1
  %15 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_39, i64 0, i32 43, i64 2
  %_rtP__fluxes_InitialCondition_el48 = load double, double* %15, align 1
  %16 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %7, i64 0, i32 0, i64 2
  store double %_rtP__fluxes_InitialCondition_el48, double* %16, align 1
  %17 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_39, i64 0, i32 45, i64 2
  %_rtP__fluxes_InitialCondition_f_el51 = load double, double* %17, align 1
  %18 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %7, i64 0, i32 1, i64 2
  store double %_rtP__fluxes_InitialCondition_f_el51, double* %18, align 1
  %19 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_39, i64 0, i32 43, i64 3
  %_rtP__fluxes_InitialCondition_el54 = load double, double* %19, align 1
  %20 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %7, i64 0, i32 0, i64 3
  store double %_rtP__fluxes_InitialCondition_el54, double* %20, align 1
  %21 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_39, i64 0, i32 45, i64 3
  %_rtP__fluxes_InitialCondition_f_el57 = load double, double* %21, align 1
  %22 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %7, i64 0, i32 1, i64 3
  store double %_rtP__fluxes_InitialCondition_f_el57, double* %22, align 1
  %23 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_39, i64 0, i32 48
  %_rtP__Rotoranglethetam_IC = load double, double* %23, align 1
  %24 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %7, i64 0, i32 2
  store double %_rtP__Rotoranglethetam_IC, double* %24, align 1
  %25 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_39, i64 0, i32 49
  %_rtP__wm_delay_InitialCondition = load double, double* %25, align 1
  %26 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %7, i64 0, i32 3
  store double %_rtP__wm_delay_InitialCondition, double* %26, align 1
  %27 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_39, i64 0, i32 51
  %_rtP__wm_predict_InitialCondition = load double, double* %27, align 1
  %28 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %7, i64 0, i32 4
  store double %_rtP__wm_predict_InitialCondition, double* %28, align 1
  call void @vm_ssCallAccelRunBlock(i8* %S, i32 12, i32 29, i32 102)
  %_rtP_66 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %29 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_66, i64 0, i32 62
  %_rtP__voltages_InitialCondition = load double, double* %29, align 1
  %30 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %7, i64 0, i32 6, i64 0
  store double %_rtP__voltages_InitialCondition, double* %30, align 1
  %_rtP__voltages_InitialCondition69 = load double, double* %29, align 1
  %31 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %7, i64 0, i32 6, i64 1
  store double %_rtP__voltages_InitialCondition69, double* %31, align 1
  %_rtP__voltages_InitialCondition72 = load double, double* %29, align 1
  %32 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %7, i64 0, i32 6, i64 2
  store double %_rtP__voltages_InitialCondition72, double* %32, align 1
  %_rtP__voltages_InitialCondition75 = load double, double* %29, align 1
  %33 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %7, i64 0, i32 6, i64 3
  store double %_rtP__voltages_InitialCondition75, double* %33, align 1
  %34 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_66, i64 0, i32 68
  %_rtP__DiscreteTimeIntegrator_IC = load double, double* %34, align 1
  %35 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %7, i64 0, i32 7
  store double %_rtP__DiscreteTimeIntegrator_IC, double* %35, align 1
  %36 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_66, i64 0, i32 73
  %_rtP__Delay_x_InitialCondition = load double, double* %36, align 1
  %37 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %7, i64 0, i32 8
  store double %_rtP__Delay_x_InitialCondition, double* %37, align 1
  %38 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_66, i64 0, i32 80
  %_rtP__Rotorspeedwm_IC = load double, double* %38, align 1
  %39 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %7, i64 0, i32 9
  store double %_rtP__Rotorspeedwm_IC, double* %39, align 1
  %40 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_66, i64 0, i32 92
  %_rtP__RateTransition_InitialCondition = load double, double* %40, align 1
  %41 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %7, i64 0, i32 16, i64 0
  store double %_rtP__RateTransition_InitialCondition, double* %41, align 1
  %_rtP__RateTransition_InitialCondition86 = load double, double* %40, align 1
  %42 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %7, i64 0, i32 16, i64 1
  store double %_rtP__RateTransition_InitialCondition86, double* %42, align 1
  %_rtP__RateTransition_InitialCondition89 = load double, double* %40, align 1
  %43 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %7, i64 0, i32 16, i64 2
  store double %_rtP__RateTransition_InitialCondition89, double* %43, align 1
  %44 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_66, i64 0, i32 118
  %_rtP__Delay_x_InitialCondition_b = load double, double* %44, align 1
  %_rtDW_92 = load %DW_inu_im_1wnd_3lvl_r2021b_T.67*, %DW_inu_im_1wnd_3lvl_r2021b_T.67** %_rtDW_, align 8
  %45 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_92, i64 0, i32 12
  store double %_rtP__Delay_x_InitialCondition_b, double* %45, align 1
  %46 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_66, i64 0, i32 122
  %_rtP__Delay_x_InitialCondition_c = load double, double* %46, align 1
  %47 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_92, i64 0, i32 13
  store double %_rtP__Delay_x_InitialCondition_c, double* %47, align 1
  %48 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_66, i64 0, i32 131
  %_rtP__Delay_x_InitialCondition_g = load double, double* %48, align 1
  %49 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_92, i64 0, i32 14
  store double %_rtP__Delay_x_InitialCondition_g, double* %49, align 1
  %50 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_66, i64 0, i32 95
  %_rtP__Delay_x_InitialCondition_i = load double, double* %50, align 1
  %51 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_92, i64 0, i32 11, i64 0
  store double %_rtP__Delay_x_InitialCondition_i, double* %51, align 1
  %52 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_66, i64 0, i32 139, i64 0
  %_rtP__WhiteNoise_Seed_el = load double, double* %52, align 1
  %53 = call double @muDoubleScalarFloor(double %_rtP__WhiteNoise_Seed_el)
  store double %53, double* %tmp_, align 8
  %54 = call i8 @muDoubleScalarIsNaN(double %53)
  %55 = call i8 @muDoubleScalarIsInf(double %53)
  %56 = or i8 %55, %54
  %57 = and i8 %56, 1
  %.not = icmp eq i8 %57, 0
  br i1 %.not, label %false, label %merge

false:                                            ; preds = %SystemInitialize_entry
  %58 = call double @muDoubleScalarRem(double %53, double 0x41F0000000000000)
  br label %merge

true3:                                            ; preds = %merge
  store i32 1144108930, i32* %tseed_, align 4
  br label %merge26

false4:                                           ; preds = %merge
  %59 = icmp ugt i32 %tmp5, 2147483646
  br i1 %59, label %true5, label %merge26

true5:                                            ; preds = %false4
  store i32 2147483646, i32* %tseed_, align 4
  br label %merge26

false8:                                           ; preds = %merge26
  %60 = call double @muDoubleScalarRem(double %90, double 0x41F0000000000000)
  br label %merge27

true11:                                           ; preds = %merge27
  store i32 1144108930, i32* %tseed_, align 4
  br label %merge29

false12:                                          ; preds = %merge27
  %61 = icmp ugt i32 %tmp13, 2147483646
  br i1 %61, label %true13, label %merge29

true13:                                           ; preds = %false12
  store i32 2147483646, i32* %tseed_, align 4
  br label %merge29

false16:                                          ; preds = %merge29
  %62 = call double @muDoubleScalarRem(double %110, double 0x41F0000000000000)
  br label %merge30

true19:                                           ; preds = %merge30
  store i32 1144108930, i32* %tseed_, align 4
  br label %merge32

false20:                                          ; preds = %merge30
  %63 = icmp ugt i32 %tmp21, 2147483646
  br i1 %63, label %true21, label %merge32

true21:                                           ; preds = %false20
  store i32 2147483646, i32* %tseed_, align 4
  br label %merge32

true23:                                           ; preds = %merge33
  %64 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_241, i64 0, i32 0
  %_rtP__Linv_Y0 = load double, double* %64, align 1
  %65 = sext i32 %i_289 to i64
  %66 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_256, i64 0, i32 93, i64 %65
  store double %_rtP__Linv_Y0, double* %66, align 1
  %67 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_241, i64 0, i32 1
  %_rtP__RLinv_Y0 = load double, double* %67, align 1
  %68 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_256, i64 0, i32 94, i64 %65
  store double %_rtP__RLinv_Y0, double* %68, align 1
  %69 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_241, i64 0, i32 28
  %_rtP__W_Y0 = load double, double* %69, align 1
  %70 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_256, i64 0, i32 66, i64 %65
  store double %_rtP__W_Y0, double* %70, align 1
  %71 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_241, i64 0, i32 34
  %_rtP__W_Y0_h = load double, double* %71, align 1
  %72 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_256, i64 0, i32 60, i64 %65
  store double %_rtP__W_Y0_h, double* %72, align 1
  %73 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_241, i64 0, i32 39
  %_rtP__W_Y0_b = load double, double* %73, align 1
  %74 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_256, i64 0, i32 55, i64 %65
  store double %_rtP__W_Y0_b, double* %74, align 1
  %tmp24 = add i32 %i_289, 1
  br label %merge33

false24:                                          ; preds = %merge33
  ret void

merge:                                            ; preds = %SystemInitialize_entry, %false
  %tmp_105 = phi double [ %58, %false ], [ 0.000000e+00, %SystemInitialize_entry ]
  store double %tmp_105, double* %tmp_, align 8
  %75 = fcmp olt double %tmp_105, 0.000000e+00
  %tmp0 = fneg double %tmp_105
  %76 = fptoui double %tmp0 to i32
  %tmp1 = sub i32 0, %76
  %77 = fptoui double %tmp_105 to i32
  %storemerge297 = select i1 %75, i32 %tmp1, i32 %77
  store i32 %storemerge297, i32* %tseed_, align 4
  %78 = lshr i32 %storemerge297, 16
  store i32 %78, i32* %i_, align 4
  %79 = and i32 %storemerge297, 32768
  %tmp3 = add i32 %79, %storemerge297
  %80 = shl i32 %tmp3, 16
  %tmp4 = or i32 %80, %79
  %tmp5 = add i32 %tmp4, %78
  store i32 %tmp5, i32* %tseed_, align 4
  %81 = icmp eq i32 %tmp5, 0
  br i1 %81, label %true3, label %false4

merge26:                                          ; preds = %false4, %true5, %true3
  %tseed_115 = phi i32 [ 1144108930, %true3 ], [ 2147483646, %true5 ], [ %tmp5, %false4 ]
  %82 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_92, i64 0, i32 51, i64 0
  store i32 %tseed_115, i32* %82, align 1
  %83 = call double @inu_im_1wnd_3lvl_r2021b_rt_nrand_Upu32_Yd_f_pw_snf(i32* nonnull %82)
  %_rtP_118 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %84 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_118, i64 0, i32 138
  %_rtP__WhiteNoise_StdDev = load double, double* %84, align 1
  %tmp6 = fmul double %83, %_rtP__WhiteNoise_StdDev
  %85 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_118, i64 0, i32 137
  %_rtP__WhiteNoise_Mean = load double, double* %85, align 1
  %tmp7 = fadd double %tmp6, %_rtP__WhiteNoise_Mean
  %86 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_92, i64 0, i32 17, i64 0
  store double %tmp7, double* %86, align 1
  %87 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_118, i64 0, i32 95
  %_rtP__Delay_x_InitialCondition_i122 = load double, double* %87, align 1
  %88 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_92, i64 0, i32 11, i64 1
  store double %_rtP__Delay_x_InitialCondition_i122, double* %88, align 1
  %89 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_118, i64 0, i32 139, i64 1
  %_rtP__WhiteNoise_Seed_el125 = load double, double* %89, align 1
  %90 = call double @muDoubleScalarFloor(double %_rtP__WhiteNoise_Seed_el125)
  store double %90, double* %tmp_, align 8
  %91 = call i8 @muDoubleScalarIsNaN(double %90)
  %92 = call i8 @muDoubleScalarIsInf(double %90)
  %93 = or i8 %92, %91
  %94 = and i8 %93, 1
  %.not291 = icmp eq i8 %94, 0
  br i1 %.not291, label %false8, label %merge27

merge27:                                          ; preds = %merge26, %false8
  %tmp_131 = phi double [ %60, %false8 ], [ 0.000000e+00, %merge26 ]
  store double %tmp_131, double* %tmp_, align 8
  %95 = fcmp olt double %tmp_131, 0.000000e+00
  %tmp8 = fneg double %tmp_131
  %96 = fptoui double %tmp8 to i32
  %tmp9 = sub i32 0, %96
  %97 = fptoui double %tmp_131 to i32
  %storemerge295 = select i1 %95, i32 %tmp9, i32 %97
  store i32 %storemerge295, i32* %tseed_, align 4
  %98 = lshr i32 %storemerge295, 16
  store i32 %98, i32* %i_, align 4
  %99 = and i32 %storemerge295, 32768
  %tmp11 = add i32 %99, %storemerge295
  %100 = shl i32 %tmp11, 16
  %tmp12 = or i32 %100, %99
  %tmp13 = add i32 %tmp12, %98
  store i32 %tmp13, i32* %tseed_, align 4
  %101 = icmp eq i32 %tmp13, 0
  br i1 %101, label %true11, label %false12

merge29:                                          ; preds = %false12, %true13, %true11
  %tseed_141 = phi i32 [ 1144108930, %true11 ], [ 2147483646, %true13 ], [ %tmp13, %false12 ]
  %102 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_92, i64 0, i32 51, i64 1
  store i32 %tseed_141, i32* %102, align 1
  %103 = call double @inu_im_1wnd_3lvl_r2021b_rt_nrand_Upu32_Yd_f_pw_snf(i32* nonnull %102)
  %_rtP_144 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %104 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_144, i64 0, i32 138
  %_rtP__WhiteNoise_StdDev145 = load double, double* %104, align 1
  %tmp14 = fmul double %103, %_rtP__WhiteNoise_StdDev145
  %105 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_144, i64 0, i32 137
  %_rtP__WhiteNoise_Mean147 = load double, double* %105, align 1
  %tmp15 = fadd double %tmp14, %_rtP__WhiteNoise_Mean147
  %106 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_92, i64 0, i32 17, i64 1
  store double %tmp15, double* %106, align 1
  %107 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_144, i64 0, i32 95
  %_rtP__Delay_x_InitialCondition_i150 = load double, double* %107, align 1
  %108 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_92, i64 0, i32 11, i64 2
  store double %_rtP__Delay_x_InitialCondition_i150, double* %108, align 1
  %109 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_144, i64 0, i32 139, i64 2
  %_rtP__WhiteNoise_Seed_el153 = load double, double* %109, align 1
  %110 = call double @muDoubleScalarFloor(double %_rtP__WhiteNoise_Seed_el153)
  store double %110, double* %tmp_, align 8
  %111 = call i8 @muDoubleScalarIsNaN(double %110)
  %112 = call i8 @muDoubleScalarIsInf(double %110)
  %113 = or i8 %112, %111
  %114 = and i8 %113, 1
  %.not292 = icmp eq i8 %114, 0
  br i1 %.not292, label %false16, label %merge30

merge30:                                          ; preds = %merge29, %false16
  %tmp_159 = phi double [ %62, %false16 ], [ 0.000000e+00, %merge29 ]
  store double %tmp_159, double* %tmp_, align 8
  %115 = fcmp olt double %tmp_159, 0.000000e+00
  %tmp16 = fneg double %tmp_159
  %116 = fptoui double %tmp16 to i32
  %tmp17 = sub i32 0, %116
  %117 = fptoui double %tmp_159 to i32
  %storemerge293 = select i1 %115, i32 %tmp17, i32 %117
  store i32 %storemerge293, i32* %tseed_, align 4
  %118 = lshr i32 %storemerge293, 16
  store i32 %118, i32* %i_, align 4
  %119 = and i32 %storemerge293, 32768
  %tmp19 = add i32 %119, %storemerge293
  %120 = shl i32 %tmp19, 16
  %tmp20 = or i32 %120, %119
  %tmp21 = add i32 %tmp20, %118
  store i32 %tmp21, i32* %tseed_, align 4
  %121 = icmp eq i32 %tmp21, 0
  br i1 %121, label %true19, label %false20

merge32:                                          ; preds = %false20, %true21, %true19
  %tseed_169 = phi i32 [ 1144108930, %true19 ], [ 2147483646, %true21 ], [ %tmp21, %false20 ]
  %122 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_92, i64 0, i32 51, i64 2
  store i32 %tseed_169, i32* %122, align 1
  %123 = call double @inu_im_1wnd_3lvl_r2021b_rt_nrand_Upu32_Yd_f_pw_snf(i32* nonnull %122)
  %_rtP_172 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %124 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_172, i64 0, i32 138
  %_rtP__WhiteNoise_StdDev173 = load double, double* %124, align 1
  %tmp22 = fmul double %123, %_rtP__WhiteNoise_StdDev173
  %125 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_172, i64 0, i32 137
  %_rtP__WhiteNoise_Mean175 = load double, double* %125, align 1
  %tmp23 = fadd double %tmp22, %_rtP__WhiteNoise_Mean175
  %126 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_92, i64 0, i32 17, i64 2
  store double %tmp23, double* %126, align 1
  %127 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_172, i64 0, i32 3
  %_rtP__Delay_InitialCondition = load double, double* %127, align 1
  %128 = getelementptr inbounds %DW_inu_im_1wnd_3lvl_r2021b_T.67, %DW_inu_im_1wnd_3lvl_r2021b_T.67* %_rtDW_92, i64 0, i32 15
  store double %_rtP__Delay_InitialCondition, double* %128, align 1
  %129 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_172, i64 0, i32 2
  %_rtP__Lm_Y0 = load double, double* %129, align 1
  %_rtB_180 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %130 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_180, i64 0, i32 92
  store double %_rtP__Lm_Y0, double* %130, align 1
  %131 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_172, i64 0, i32 15
  %_rtP__vqrvdr_Y0 = load double, double* %131, align 1
  %132 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_180, i64 0, i32 90
  store double %_rtP__vqrvdr_Y0, double* %132, align 1
  %_rtP__vqrvdr_Y0184 = load double, double* %131, align 1
  %133 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_180, i64 0, i32 88
  store double %_rtP__vqrvdr_Y0184, double* %133, align 1
  %134 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_172, i64 0, i32 16
  %_rtP__vqsvds_Y0 = load double, double* %134, align 1
  %135 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_180, i64 0, i32 91
  store double %_rtP__vqsvds_Y0, double* %135, align 1
  %_rtP__vqsvds_Y0189 = load double, double* %134, align 1
  %136 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_180, i64 0, i32 89
  store double %_rtP__vqsvds_Y0189, double* %136, align 1
  %137 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_172, i64 0, i32 17
  %_rtP__vqrvdr_Y0_p = load double, double* %137, align 1
  %138 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_180, i64 0, i32 86
  store double %_rtP__vqrvdr_Y0_p, double* %138, align 1
  %_rtP__vqrvdr_Y0_p194 = load double, double* %137, align 1
  %139 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_180, i64 0, i32 84
  store double %_rtP__vqrvdr_Y0_p194, double* %139, align 1
  %140 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_172, i64 0, i32 18
  %_rtP__vqsvds_Y0_b = load double, double* %140, align 1
  %141 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_180, i64 0, i32 87
  store double %_rtP__vqsvds_Y0_b, double* %141, align 1
  %_rtP__vqsvds_Y0_b199 = load double, double* %140, align 1
  %142 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_180, i64 0, i32 85
  store double %_rtP__vqsvds_Y0_b199, double* %142, align 1
  %143 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_172, i64 0, i32 19
  %_rtP__vqrvdr_Y0_f = load double, double* %143, align 1
  %144 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_180, i64 0, i32 82
  store double %_rtP__vqrvdr_Y0_f, double* %144, align 1
  %_rtP__vqrvdr_Y0_f204 = load double, double* %143, align 1
  %145 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_180, i64 0, i32 80
  store double %_rtP__vqrvdr_Y0_f204, double* %145, align 1
  %146 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_172, i64 0, i32 20
  %_rtP__vqsvds_Y0_c = load double, double* %146, align 1
  %147 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_180, i64 0, i32 83
  store double %_rtP__vqsvds_Y0_c, double* %147, align 1
  %_rtP__vqsvds_Y0_c209 = load double, double* %146, align 1
  %148 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_180, i64 0, i32 81
  store double %_rtP__vqsvds_Y0_c209, double* %148, align 1
  %149 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_172, i64 0, i32 21
  %_rtP__irairb_Y0 = load double, double* %149, align 1
  %150 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_180, i64 0, i32 76
  store double %_rtP__irairb_Y0, double* %150, align 1
  %_rtP__irairb_Y0214 = load double, double* %149, align 1
  %151 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_180, i64 0, i32 77
  store double %_rtP__irairb_Y0214, double* %151, align 1
  %152 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_172, i64 0, i32 22
  %_rtP__isaisb_Y0 = load double, double* %152, align 1
  %153 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_180, i64 0, i32 78
  store double %_rtP__isaisb_Y0, double* %153, align 1
  %_rtP__isaisb_Y0219 = load double, double* %152, align 1
  %154 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_180, i64 0, i32 79
  store double %_rtP__isaisb_Y0219, double* %154, align 1
  %155 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_172, i64 0, i32 23
  %_rtP__irairb_Y0_o = load double, double* %155, align 1
  %156 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_180, i64 0, i32 72
  store double %_rtP__irairb_Y0_o, double* %156, align 1
  %_rtP__irairb_Y0_o224 = load double, double* %155, align 1
  %157 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_180, i64 0, i32 73
  store double %_rtP__irairb_Y0_o224, double* %157, align 1
  %158 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_172, i64 0, i32 24
  %_rtP__isaisb_Y0_p = load double, double* %158, align 1
  %159 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_180, i64 0, i32 74
  store double %_rtP__isaisb_Y0_p, double* %159, align 1
  %_rtP__isaisb_Y0_p229 = load double, double* %158, align 1
  %160 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_180, i64 0, i32 75
  store double %_rtP__isaisb_Y0_p229, double* %160, align 1
  %161 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_172, i64 0, i32 25
  %_rtP__irairb_Y0_h = load double, double* %161, align 1
  %162 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_180, i64 0, i32 68
  store double %_rtP__irairb_Y0_h, double* %162, align 1
  %_rtP__irairb_Y0_h234 = load double, double* %161, align 1
  %163 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_180, i64 0, i32 69
  store double %_rtP__irairb_Y0_h234, double* %163, align 1
  %164 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_172, i64 0, i32 26
  %_rtP__isaisb_Y0_i = load double, double* %164, align 1
  %165 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_180, i64 0, i32 70
  store double %_rtP__isaisb_Y0_i, double* %165, align 1
  %_rtP__isaisb_Y0_i239 = load double, double* %164, align 1
  %166 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_180, i64 0, i32 71
  store double %_rtP__isaisb_Y0_i239, double* %166, align 1
  %_rtP_241 = load %P_inu_im_1wnd_3lvl_r2021b_T.68*, %P_inu_im_1wnd_3lvl_r2021b_T.68** %_rtP_, align 8
  %167 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_241, i64 0, i32 27
  %_rtP__sinbetacosbetasinthcosth_Y0 = load double, double* %167, align 1
  %168 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_180, i64 0, i32 64
  store double %_rtP__sinbetacosbetasinthcosth_Y0, double* %168, align 1
  %_rtP__sinbetacosbetasinthcosth_Y0244 = load double, double* %167, align 1
  %169 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_180, i64 0, i32 65
  store double %_rtP__sinbetacosbetasinthcosth_Y0244, double* %169, align 1
  %_rtP__sinbetacosbetasinthcosth_Y0247 = load double, double* %167, align 1
  %170 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_180, i64 0, i32 62
  store double %_rtP__sinbetacosbetasinthcosth_Y0247, double* %170, align 1
  %_rtP__sinbetacosbetasinthcosth_Y0250 = load double, double* %167, align 1
  %171 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_180, i64 0, i32 63
  store double %_rtP__sinbetacosbetasinthcosth_Y0250, double* %171, align 1
  %172 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_241, i64 0, i32 33
  %_rtP__sinthrcosthr_Y0 = load double, double* %172, align 1
  %173 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_180, i64 0, i32 58
  store double %_rtP__sinthrcosthr_Y0, double* %173, align 1
  %_rtP__sinthrcosthr_Y0255 = load double, double* %172, align 1
  %_rtB_256 = load %B_inu_im_1wnd_3lvl_r2021b_T.66*, %B_inu_im_1wnd_3lvl_r2021b_T.66** %_rtB_, align 8
  %174 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_256, i64 0, i32 59
  store double %_rtP__sinthrcosthr_Y0255, double* %174, align 1
  %_rtP__sinthrcosthr_Y0258 = load double, double* %172, align 1
  %175 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_256, i64 0, i32 57, i64 0
  store double %_rtP__sinthrcosthr_Y0258, double* %175, align 1
  %_rtP__sinthrcosthr_Y0261 = load double, double* %172, align 1
  %176 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_256, i64 0, i32 57, i64 1
  store double %_rtP__sinthrcosthr_Y0261, double* %176, align 1
  %177 = getelementptr inbounds %P_inu_im_1wnd_3lvl_r2021b_T.68, %P_inu_im_1wnd_3lvl_r2021b_T.68* %_rtP_241, i64 0, i32 38
  %_rtP__sinthrcosthr_Y0_n = load double, double* %177, align 1
  %178 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_256, i64 0, i32 53
  store double %_rtP__sinthrcosthr_Y0_n, double* %178, align 1
  %_rtP__sinthrcosthr_Y0_n266 = load double, double* %177, align 1
  %179 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_256, i64 0, i32 54
  store double %_rtP__sinthrcosthr_Y0_n266, double* %179, align 1
  %_rtP__sinthrcosthr_Y0_n269 = load double, double* %177, align 1
  %180 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_256, i64 0, i32 52, i64 0
  store double %_rtP__sinthrcosthr_Y0_n269, double* %180, align 1
  %_rtP__sinthrcosthr_Y0_n272 = load double, double* %177, align 1
  %181 = getelementptr inbounds %B_inu_im_1wnd_3lvl_r2021b_T.66, %B_inu_im_1wnd_3lvl_r2021b_T.66* %_rtB_256, i64 0, i32 52, i64 1
  store double %_rtP__sinthrcosthr_Y0_n272, double* %181, align 1
  br label %merge33

merge33:                                          ; preds = %true23, %merge32
  %i_289 = phi i32 [ %tmp24, %true23 ], [ 0, %merge32 ]
  store i32 %i_289, i32* %i_, align 4
  %182 = icmp slt i32 %i_289, 16
  br i1 %182, label %true23, label %false24
}

declare double @muDoubleScalarFloor(double)

declare zeroext i8 @muDoubleScalarIsNaN(double)

declare zeroext i8 @muDoubleScalarIsInf(double)

declare double @muDoubleScalarRem(double, double)

define zeroext i32 @binsearch_u32d_prevIdx(double %u, double* %bp, i32 zeroext %startIndex, i32 zeroext %maxIndex) {
binsearch_u32d_prevIdx_entry:
  %u_ = alloca double, align 8
  store double %u, double* %u_, align 8
  %bp_ = alloca double*, align 8
  store double* %bp, double** %bp_, align 8
  %startIndex_ = alloca i32, align 4
  store i32 %startIndex, i32* %startIndex_, align 4
  %maxIndex_ = alloca i32, align 4
  store i32 %maxIndex, i32* %maxIndex_, align 4
  %iRght_ = alloca i32, align 4
  %iLeft_ = alloca i32, align 4
  %found_ = alloca i32, align 4
  %bpIndex_ = alloca i32, align 4
  store i32 %startIndex, i32* %bpIndex_, align 4
  store i32 0, i32* %iLeft_, align 4
  store i32 %maxIndex, i32* %iRght_, align 4
  store i32 0, i32* %found_, align 4
  br label %merge

true:                                             ; preds = %merge
  %0 = sext i32 %bpIndex_20 to i64
  %1 = getelementptr inbounds double, double* %bp_11, i64 %0
  %bp__el = load double, double* %1, align 1
  %2 = fcmp olt double %u_10, %bp__el
  br i1 %2, label %true1, label %false2

false:                                            ; preds = %merge
  ret i32 %bpIndex_20

true1:                                            ; preds = %true
  %tmp4 = add i32 %bpIndex_20, -1
  store i32 %tmp4, i32* %iRght_, align 4
  %tmp6 = add i32 %tmp4, %iLeft_22
  %3 = lshr i32 %tmp6, 1
  store i32 %3, i32* %bpIndex_, align 4
  br label %merge6

false2:                                           ; preds = %true
  %tmp0 = add i32 %bpIndex_20, 1
  %4 = sext i32 %tmp0 to i64
  %5 = getelementptr inbounds double, double* %bp, i64 %4
  %bp__el16 = load double, double* %5, align 1
  %6 = fcmp olt double %u, %bp__el16
  br i1 %6, label %true3, label %false4

true3:                                            ; preds = %false2
  store i32 1, i32* %found_, align 4
  br label %merge6

false4:                                           ; preds = %false2
  store i32 %tmp0, i32* %iLeft_, align 4
  %tmp3 = add i32 %tmp0, %iRght_19
  %7 = lshr i32 %tmp3, 1
  store i32 %7, i32* %bpIndex_, align 4
  br label %merge6

merge:                                            ; preds = %merge6, %binsearch_u32d_prevIdx_entry
  %iLeft_22 = phi i32 [ %iLeft_2239, %merge6 ], [ 0, %binsearch_u32d_prevIdx_entry ]
  %iRght_19 = phi i32 [ %iRght_1937, %merge6 ], [ %maxIndex, %binsearch_u32d_prevIdx_entry ]
  %bpIndex_20 = phi i32 [ %bpIndex_1534, %merge6 ], [ %startIndex, %binsearch_u32d_prevIdx_entry ]
  %bp_11 = phi double* [ %bp_1132, %merge6 ], [ %bp, %binsearch_u32d_prevIdx_entry ]
  %u_10 = phi double [ %u_1030, %merge6 ], [ %u, %binsearch_u32d_prevIdx_entry ]
  %found_9 = phi i32 [ %found_924, %merge6 ], [ 0, %binsearch_u32d_prevIdx_entry ]
  %8 = icmp eq i32 %found_9, 0
  br i1 %8, label %true, label %false

merge6:                                           ; preds = %false4, %true3, %true1
  %iLeft_2239 = phi i32 [ %iLeft_22, %true1 ], [ %iLeft_22, %true3 ], [ %tmp0, %false4 ]
  %iRght_1937 = phi i32 [ %tmp4, %true1 ], [ %iRght_19, %true3 ], [ %iRght_19, %false4 ]
  %bpIndex_1534 = phi i32 [ %3, %true1 ], [ %bpIndex_20, %true3 ], [ %7, %false4 ]
  %bp_1132 = phi double* [ %bp_11, %true1 ], [ %bp, %true3 ], [ %bp, %false4 ]
  %u_1030 = phi double [ %u_10, %true1 ], [ %u, %true3 ], [ %u, %false4 ]
  %found_924 = phi i32 [ 0, %true1 ], [ 1, %true3 ], [ 0, %false4 ]
  br label %merge
}

define double @intrp1d_l_pw(i32 zeroext %bpIndex, double %frac, double* %table) {
intrp1d_l_pw_entry:
  %bpIndex_ = alloca i32, align 4
  store i32 %bpIndex, i32* %bpIndex_, align 4
  %frac_ = alloca double, align 8
  store double %frac, double* %frac_, align 8
  %table_ = alloca double*, align 8
  store double* %table, double** %table_, align 8
  %yL_0d0_ = alloca double, align 8
  %y_ = alloca double, align 8
  %0 = sext i32 %bpIndex to i64
  %1 = getelementptr inbounds double, double* %table, i64 %0
  %table__el = load double, double* %1, align 1
  store double %table__el, double* %yL_0d0_, align 8
  %tmp0 = add i32 %bpIndex, 1
  %2 = sext i32 %tmp0 to i64
  %3 = getelementptr inbounds double, double* %table, i64 %2
  %table__el5 = load double, double* %3, align 1
  %tmp1 = fsub double %table__el5, %table__el
  %tmp2 = fmul double %tmp1, %frac
  %tmp3 = fadd double %tmp2, %table__el
  store double %tmp3, double* %y_, align 8
  ret double %tmp3
}

define zeroext i32 @plook_binxp(double %u, double* %bp, i32 zeroext %maxIndex, double* %fraction, i32* %prevIndex) {
plook_binxp_entry:
  %u_ = alloca double, align 8
  store double %u, double* %u_, align 8
  %bp_ = alloca double*, align 8
  store double* %bp, double** %bp_, align 8
  %maxIndex_ = alloca i32, align 4
  store i32 %maxIndex, i32* %maxIndex_, align 4
  %fraction_ = alloca double*, align 8
  store double* %fraction, double** %fraction_, align 8
  %prevIndex_ = alloca i32*, align 8
  store i32* %prevIndex, i32** %prevIndex_, align 8
  %bpIndex_ = alloca i32, align 4
  %bp__el = load double, double* %bp, align 1
  %0 = fcmp ugt double %u, %bp__el
  br i1 %0, label %false, label %true

true:                                             ; preds = %plook_binxp_entry
  store i32 0, i32* %bpIndex_, align 4
  %tmp10 = fsub double %u, %bp__el
  %1 = getelementptr inbounds double, double* %bp, i64 1
  %bp__el42 = load double, double* %1, align 1
  %tmp11 = fsub double %bp__el42, %bp__el
  %tmp12 = fdiv double %tmp10, %tmp11
  store double %tmp12, double* %fraction, align 1
  br label %merge3

false:                                            ; preds = %plook_binxp_entry
  %2 = sext i32 %maxIndex to i64
  %3 = getelementptr inbounds double, double* %bp, i64 %2
  %bp__el9 = load double, double* %3, align 1
  %4 = fcmp olt double %u, %bp__el9
  br i1 %4, label %true1, label %false2

true1:                                            ; preds = %false
  %prevIndex_25 = load i32, i32* %prevIndex, align 1
  %5 = call i32 @binsearch_u32d_prevIdx(double %u, double* %bp, i32 %prevIndex_25, i32 %maxIndex)
  store i32 %5, i32* %bpIndex_, align 4
  %6 = sext i32 %5 to i64
  %7 = getelementptr inbounds double, double* %bp, i64 %6
  %bp__el30 = load double, double* %7, align 1
  %tmp6 = fsub double %u, %bp__el30
  %tmp7 = add i32 %5, 1
  %8 = sext i32 %tmp7 to i64
  %9 = getelementptr inbounds double, double* %bp, i64 %8
  %bp__el33 = load double, double* %9, align 1
  %tmp8 = fsub double %bp__el33, %bp__el30
  %tmp9 = fdiv double %tmp6, %tmp8
  store double %tmp9, double* %fraction, align 1
  br label %merge3

false2:                                           ; preds = %false
  %tmp0 = add i32 %maxIndex, -1
  store i32 %tmp0, i32* %bpIndex_, align 4
  %10 = sext i32 %tmp0 to i64
  %11 = getelementptr inbounds double, double* %bp, i64 %10
  %bp__el14 = load double, double* %11, align 1
  %tmp2 = fsub double %u, %bp__el14
  %tmp4 = fsub double %bp__el9, %bp__el14
  %tmp5 = fdiv double %tmp2, %tmp4
  store double %tmp5, double* %fraction, align 1
  br label %merge3

merge3:                                           ; preds = %false2, %true1, %true
  %bpIndex_48 = phi i32 [ 0, %true ], [ %5, %true1 ], [ %tmp0, %false2 ]
  store i32 %bpIndex_48, i32* %prevIndex, align 1
  ret i32 %bpIndex_48
}

