; LLVM IR from lesialin/ImageSignalProcessing_C :: src/isp_awb.ll (Z12isp_awb_gainPt)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.isp_config_t = type <{ i32, i32, i16, [6 x i8], %"class.std::__cxx11::basic_string", %struct.blc_cfg_t, i16, [6 x i8], %"class.std::__cxx11::basic_string", %struct.awb_gain_t, [12 x float], %"class.std::__cxx11::basic_string", float, [12 x float], %struct.nlm_cfg_t, i8, %struct.bnf_cfg_t, [15 x i16], %struct.eeh_cfg_t, %struct.fcs_cfg_t, %struct.hsc_cfg_t, %struct.bcc_cfg_t, [4 x i8] }>
%struct.blc_cfg_t = type { i16, i16, i16, i16, float, float }
%struct.awb_gain_t = type { float, float, float, float }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%struct.nlm_cfg_t = type { i8, i8, i8 }
%struct.bnf_cfg_t = type { [25 x i16], [4 x i16], [3 x i16] }
%struct.eeh_cfg_t = type { i16, i16, i16, i16, i16, i16 }
%struct.fcs_cfg_t = type { i8, i8 }
%struct.hsc_cfg_t = type { i8, float }
%struct.bcc_cfg_t = type { i8, float }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@g_isp_config = external global %struct.isp_config_t, align 8
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.1 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [12 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z12isp_awb_gainPt(ptr noundef %0) #0 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i16, align 2
  %4 = alloca i16, align 2
  %5 = alloca i16, align 2
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i8, align 1
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i16, align 2
  %16 = alloca i32, align 4
  %17 = alloca i16, align 2
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 2, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 2, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #5
  %18 = load i32, ptr @g_isp_config, align 8, !tbaa !9
  %19 = trunc i32 %18 to i16
  store i16 %19, ptr %4, align 2, !tbaa !25
  %20 = load i32, ptr getelementptr inbounds (%struct.isp_config_t, ptr @g_isp_config, i32 0, i32 1), align 4, !tbaa !26
  %21 = trunc i32 %20 to i16
  store i16 %21, ptr %3, align 2, !tbaa !25
  %22 = load i16, ptr getelementptr inbounds (%struct.isp_config_t, ptr @g_isp_config, i32 0, i32 2), align 8, !tbaa !27
  %23 = zext i16 %22 to i32
  %24 = shl i32 1, %23
  %25 = sub nsw i32 %24, 1
  %26 = trunc i32 %25 to i16
  store i16 %26, ptr %5, align 2, !tbaa !25
  %27 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) getelementptr inbounds (%struct.isp_config_t, ptr @g_isp_config, i32 0, i32 4))
          to label %28 unwind label %51

28:                                               ; preds = %1
  %29 = load float, ptr getelementptr inbounds (%struct.isp_config_t, ptr @g_isp_config, i32 0, i32 9), align 8, !tbaa !28
  %30 = fmul float %29, 6.400000e+01
  %31 = fptoui float %30 to i8
  store i8 %31, ptr %8, align 1, !tbaa !29
  %32 = load float, ptr getelementptr inbounds (%struct.awb_gain_t, ptr getelementptr inbounds (%struct.isp_config_t, ptr @g_isp_config, i32 0, i32 9), i32 0, i32 1), align 4, !tbaa !30
  %33 = fmul float %32, 6.400000e+01
  %34 = fptoui float %33 to i8
  store i8 %34, ptr %9, align 1, !tbaa !29
  %35 = load float, ptr getelementptr inbounds (%struct.awb_gain_t, ptr getelementptr inbounds (%struct.isp_config_t, ptr @g_isp_config, i32 0, i32 9), i32 0, i32 2), align 8, !tbaa !31
  %36 = fmul float %35, 6.400000e+01
  %37 = fptoui float %36 to i8
  store i8 %37, ptr %10, align 1, !tbaa !29
  %38 = load float, ptr getelementptr inbounds (%struct.awb_gain_t, ptr getelementptr inbounds (%struct.isp_config_t, ptr @g_isp_config, i32 0, i32 9), i32 0, i32 3), align 4, !tbaa !32
  %39 = fmul float %38, 6.400000e+01
  %40 = fptoui float %39 to i8
  store i8 %40, ptr %11, align 1, !tbaa !29
  %41 = call noundef i32 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef @.str) #5
  %42 = icmp eq i32 %41, 0
  br i1 %42, label %43, label %196

43:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 2, ptr %15) #5
  store i16 0, ptr %15, align 2, !tbaa !25
  br label %44

44:                                               ; preds = %190, %43
  %45 = load i16, ptr %15, align 2, !tbaa !25
  %46 = zext i16 %45 to i32
  %47 = load i16, ptr %3, align 2, !tbaa !25
  %48 = zext i16 %47 to i32
  %49 = icmp slt i32 %46, %48
  br i1 %49, label %55, label %50

50:                                               ; preds = %44
  store i32 2, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %15) #5
  br label %195

51:                                               ; preds = %210, %208, %206, %204, %202, %200, %198, %196, %1
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %13, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %14, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %3) #5
  br label %214

55:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 2, ptr %17) #5
  store i16 0, ptr %17, align 2, !tbaa !25
  br label %56

56:                                               ; preds = %184, %55
  %57 = load i16, ptr %17, align 2, !tbaa !25
  %58 = zext i16 %57 to i32
  %59 = load i16, ptr %4, align 2, !tbaa !25
  %60 = zext i16 %59 to i32
  %61 = icmp slt i32 %58, %60
  br i1 %61, label %63, label %62

62:                                               ; preds = %56
  store i32 5, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %17) #5
  br label %189

63:                                               ; preds = %56
  %64 = load i16, ptr %15, align 2, !tbaa !25
  %65 = zext i16 %64 to i32
  %66 = load i16, ptr %4, align 2, !tbaa !25
  %67 = zext i16 %66 to i32
  %68 = mul nsw i32 %65, %67
  %69 = load i16, ptr %17, align 2, !tbaa !25
  %70 = zext i16 %69 to i32
  %71 = add nsw i32 %68, %70
  store i32 %71, ptr %6, align 4, !tbaa !33
  %72 = load i8, ptr %8, align 1, !tbaa !29
  %73 = zext i8 %72 to i32
  %74 = load ptr, ptr %2, align 8, !tbaa !5
  %75 = load i32, ptr %6, align 4, !tbaa !33
  %76 = zext i32 %75 to i64
  %77 = getelementptr inbounds i16, ptr %74, i64 %76
  %78 = load i16, ptr %77, align 2, !tbaa !25
  %79 = zext i16 %78 to i32
  %80 = mul nsw i32 %73, %79
  %81 = ashr i32 %80, 6
  store i32 %81, ptr %7, align 4, !tbaa !33
  %82 = load i32, ptr %7, align 4, !tbaa !33
  %83 = load i16, ptr %5, align 2, !tbaa !25
  %84 = zext i16 %83 to i32
  %85 = icmp ugt i32 %82, %84
  br i1 %85, label %86, label %89

86:                                               ; preds = %63
  %87 = load i16, ptr %5, align 2, !tbaa !25
  %88 = zext i16 %87 to i32
  br label %91

89:                                               ; preds = %63
  %90 = load i32, ptr %7, align 4, !tbaa !33
  br label %91

91:                                               ; preds = %89, %86
  %92 = phi i32 [ %88, %86 ], [ %90, %89 ]
  %93 = trunc i32 %92 to i16
  %94 = load ptr, ptr %2, align 8, !tbaa !5
  %95 = load i32, ptr %6, align 4, !tbaa !33
  %96 = zext i32 %95 to i64
  %97 = getelementptr inbounds i16, ptr %94, i64 %96
  store i16 %93, ptr %97, align 2, !tbaa !25
  %98 = load i32, ptr %6, align 4, !tbaa !33
  %99 = add i32 %98, 1
  store i32 %99, ptr %6, align 4, !tbaa !33
  %100 = load i8, ptr %9, align 1, !tbaa !29
  %101 = zext i8 %100 to i32
  %102 = load ptr, ptr %2, align 8, !tbaa !5
  %103 = load i32, ptr %6, align 4, !tbaa !33
  %104 = zext i32 %103 to i64
  %105 = getelementptr inbounds i16, ptr %102, i64 %104
  %106 = load i16, ptr %105, align 2, !tbaa !25
  %107 = zext i16 %106 to i32
  %108 = mul nsw i32 %101, %107
  %109 = ashr i32 %108, 6
  store i32 %109, ptr %7, align 4, !tbaa !33
  %110 = load i32, ptr %7, align 4, !tbaa !33
  %111 = load i16, ptr %5, align 2, !tbaa !25
  %112 = zext i16 %111 to i32
  %113 = icmp ugt i32 %110, %112
  br i1 %113, label %114, label %117

114:                                              ; preds = %91
  %115 = load i16, ptr %5, align 2, !tbaa !25
  %116 = zext i16 %115 to i32
  br label %119

117:                                              ; preds = %91
  %118 = load i32, ptr %7, align 4, !tbaa !33
  br label %119

119:                                              ; preds = %117, %114
  %120 = phi i32 [ %116, %114 ], [ %118, %117 ]
  %121 = trunc i32 %120 to i16
  %122 = load ptr, ptr %2, align 8, !tbaa !5
  %123 = load i32, ptr %6, align 4, !tbaa !33
  %124 = zext i32 %123 to i64
  %125 = getelementptr inbounds i16, ptr %122, i64 %124
  store i16 %121, ptr %125, align 2, !tbaa !25
  %126 = load i16, ptr %4, align 2, !tbaa !25
  %127 = zext i16 %126 to i32
  %128 = load i32, ptr %6, align 4, !tbaa !33
  %129 = add i32 %128, %127
  store i32 %129, ptr %6, align 4, !tbaa !33
  %130 = load i8, ptr %11, align 1, !tbaa !29
  %131 = zext i8 %130 to i32
  %132 = load ptr, ptr %2, align 8, !tbaa !5
  %133 = load i32, ptr %6, align 4, !tbaa !33
  %134 = zext i32 %133 to i64
  %135 = getelementptr inbounds i16, ptr %132, i64 %134
  %136 = load i16, ptr %135, align 2, !tbaa !25
  %137 = zext i16 %136 to i32
  %138 = mul nsw i32 %131, %137
  %139 = ashr i32 %138, 6
  store i32 %139, ptr %7, align 4, !tbaa !33
  %140 = load i32, ptr %7, align 4, !tbaa !33
  %141 = load i16, ptr %5, align 2, !tbaa !25
  %142 = zext i16 %141 to i32
  %143 = icmp ugt i32 %140, %142
  br i1 %143, label %144, label %147

144:                                              ; preds = %119
  %145 = load i16, ptr %5, align 2, !tbaa !25
  %146 = zext i16 %145 to i32
  br label %149

147:                                              ; preds = %119
  %148 = load i32, ptr %7, align 4, !tbaa !33
  br label %149

149:                                              ; preds = %147, %144
  %150 = phi i32 [ %146, %144 ], [ %148, %147 ]
  %151 = trunc i32 %150 to i16
  %152 = load ptr, ptr %2, align 8, !tbaa !5
  %153 = load i32, ptr %6, align 4, !tbaa !33
  %154 = zext i32 %153 to i64
  %155 = getelementptr inbounds i16, ptr %152, i64 %154
  store i16 %151, ptr %155, align 2, !tbaa !25
  %156 = load i32, ptr %6, align 4, !tbaa !33
  %157 = sub i32 %156, 1
  store i32 %157, ptr %6, align 4, !tbaa !33
  %158 = load i8, ptr %10, align 1, !tbaa !29
  %159 = zext i8 %158 to i32
  %160 = load ptr, ptr %2, align 8, !tbaa !5
  %161 = load i32, ptr %6, align 4, !tbaa !33
  %162 = zext i32 %161 to i64
  %163 = getelementptr inbounds i16, ptr %160, i64 %162
  %164 = load i16, ptr %163, align 2, !tbaa !25
  %165 = zext i16 %164 to i32
  %166 = mul nsw i32 %159, %165
  %167 = ashr i32 %166, 6
  store i32 %167, ptr %7, align 4, !tbaa !33
  %168 = load i32, ptr %7, align 4, !tbaa !33
  %169 = load i16, ptr %5, align 2, !tbaa !25
  %170 = zext i16 %169 to i32
  %171 = icmp ugt i32 %168, %170
  br i1 %171, label %172, label %175

172:                                              ; preds = %149
  %173 = load i16, ptr %5, align 2, !tbaa !25
  %174 = zext i16 %173 to i32
  br label %177

175:                                              ; preds = %149
  %176 = load i32, ptr %7, align 4, !tbaa !33
  br label %177

177:                                              ; preds = %175, %172
  %178 = phi i32 [ %174, %172 ], [ %176, %175 ]
  %179 = trunc i32 %178 to i16
  %180 = load ptr, ptr %2, align 8, !tbaa !5
  %181 = load i32, ptr %6, align 4, !tbaa !33
  %182 = zext i32 %181 to i64
  %183 = getelementptr inbounds i16, ptr %180, i64 %182
  store i16 %179, ptr %183, align 2, !tbaa !25
  br label %184

184:                                              ; preds = %177
  %185 = load i16, ptr %17, align 2, !tbaa !25
  %186 = zext i16 %185 to i32
  %187 = add nsw i32 %186, 2
  %188 = trunc i32 %187 to i16
  store i16 %188, ptr %17, align 2, !tbaa !25
  br label %56, !llvm.loop !34

189:                                              ; preds = %62
  br label %190

190:                                              ; preds = %189
  %191 = load i16, ptr %15, align 2, !tbaa !25
  %192 = zext i16 %191 to i32
  %193 = add nsw i32 %192, 2
  %194 = trunc i32 %193 to i16
  store i16 %194, ptr %15, align 2, !tbaa !25
  br label %44, !llvm.loop !36

195:                                              ; preds = %50
  br label %213

196:                                              ; preds = %28
  %197 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
          to label %198 unwind label %51

198:                                              ; preds = %196
  %199 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %197, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %200 unwind label %51

200:                                              ; preds = %198
  %201 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
          to label %202 unwind label %51

202:                                              ; preds = %200
  %203 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %201, ptr noundef nonnull align 8 dereferenceable(32) getelementptr inbounds (%struct.isp_config_t, ptr @g_isp_config, i32 0, i32 4))
          to label %204 unwind label %51

204:                                              ; preds = %202
  %205 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %203, ptr noundef @.str.3)
          to label %206 unwind label %51

206:                                              ; preds = %204
  %207 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %205, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %208 unwind label %51

208:                                              ; preds = %206
  %209 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
          to label %210 unwind label %51

210:                                              ; preds = %208
  %211 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %209, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %212 unwind label %51

212:                                              ; preds = %210
  br label %213

213:                                              ; preds = %212, %195
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %3) #5
  ret void

214:                                              ; preds = %51
  %215 = load ptr, ptr %13, align 8
  %216 = load i32, ptr %14, align 4
  %217 = insertvalue { ptr, i32 } poison, ptr %215, 0
  %218 = insertvalue { ptr, i32 } %217, i32 %216, 1
  resume { ptr, i32 } %218
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare noundef i32 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #3

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #4

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTS12isp_config_t", !11, i64 0, !11, i64 4, !12, i64 8, !13, i64 16, !16, i64 48, !12, i64 64, !13, i64 72, !18, i64 104, !7, i64 120, !13, i64 168, !17, i64 200, !7, i64 204, !19, i64 252, !20, i64 256, !7, i64 320, !21, i64 350, !22, i64 362, !23, i64 364, !24, i64 372}
!11 = !{!"int", !7, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !14, i64 0, !15, i64 8, !7, i64 16}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!"_ZTS9blc_cfg_t", !12, i64 0, !12, i64 2, !12, i64 4, !12, i64 6, !17, i64 8, !17, i64 12}
!17 = !{!"float", !7, i64 0}
!18 = !{!"_ZTS10awb_gain_t", !17, i64 0, !17, i64 4, !17, i64 8, !17, i64 12}
!19 = !{!"_ZTS9nlm_cfg_t", !7, i64 0, !7, i64 1, !7, i64 2}
!20 = !{!"_ZTS9bnf_cfg_t", !7, i64 0, !7, i64 50, !7, i64 58}
!21 = !{!"_ZTS9eeh_cfg_t", !12, i64 0, !12, i64 2, !12, i64 4, !12, i64 6, !12, i64 8, !12, i64 10}
!22 = !{!"_ZTS9fcs_cfg_t", !7, i64 0, !7, i64 1}
!23 = !{!"_ZTS9hsc_cfg_t", !7, i64 0, !17, i64 4}
!24 = !{!"_ZTS9bcc_cfg_t", !7, i64 0, !17, i64 4}
!25 = !{!12, !12, i64 0}
!26 = !{!10, !11, i64 4}
!27 = !{!10, !12, i64 8}
!28 = !{!10, !17, i64 104}
!29 = !{!7, !7, i64 0}
!30 = !{!10, !17, i64 108}
!31 = !{!10, !17, i64 112}
!32 = !{!10, !17, i64 116}
!33 = !{!11, !11, i64 0}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}
!36 = distinct !{!36, !35}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.isp_config_t = type <{ i32, i32, i16, [6 x i8], %"class.std::__cxx11::basic_string", %struct.blc_cfg_t, i16, [6 x i8], %"class.std::__cxx11::basic_string", %struct.awb_gain_t, [12 x float], %"class.std::__cxx11::basic_string", float, [12 x float], %struct.nlm_cfg_t, i8, %struct.bnf_cfg_t, [15 x i16], %struct.eeh_cfg_t, %struct.fcs_cfg_t, %struct.hsc_cfg_t, %struct.bcc_cfg_t, [4 x i8] }>
%struct.blc_cfg_t = type { i16, i16, i16, i16, float, float }
%struct.awb_gain_t = type { float, float, float, float }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%struct.nlm_cfg_t = type { i8, i8, i8 }
%struct.bnf_cfg_t = type { [25 x i16], [4 x i16], [3 x i16] }
%struct.eeh_cfg_t = type { i16, i16, i16, i16, i16, i16 }
%struct.fcs_cfg_t = type { i8, i8 }
%struct.hsc_cfg_t = type { i8, float }
%struct.bcc_cfg_t = type { i8, float }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@g_isp_config = external global %struct.isp_config_t, align 8
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.1 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [12 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z12isp_awb_gainPt(ptr nocapture noundef %0) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::__cxx11::basic_string", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  %3 = load i32, ptr @g_isp_config, align 8, !tbaa !5
  %4 = load i32, ptr getelementptr inbounds (i8, ptr @g_isp_config, i64 4), align 4, !tbaa !24
  %5 = load i16, ptr getelementptr inbounds (i8, ptr @g_isp_config, i64 8), align 8, !tbaa !25
  %6 = zext nneg i16 %5 to i32
  %notmask = shl nsw i32 -1, %6
  %7 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(32) getelementptr inbounds (i8, ptr @g_isp_config, i64 16))
          to label %8 unwind label %77

8:                                                ; preds = %1
  %9 = load float, ptr getelementptr inbounds (i8, ptr @g_isp_config, i64 104), align 8, !tbaa !26
  %10 = fmul float %9, 6.400000e+01
  %11 = fptoui float %10 to i8
  %12 = load float, ptr getelementptr inbounds (i8, ptr @g_isp_config, i64 108), align 4, !tbaa !27
  %13 = fmul float %12, 6.400000e+01
  %14 = fptoui float %13 to i8
  %15 = load float, ptr getelementptr inbounds (i8, ptr @g_isp_config, i64 112), align 8, !tbaa !28
  %16 = fmul float %15, 6.400000e+01
  %17 = fptoui float %16 to i8
  %18 = load float, ptr getelementptr inbounds (i8, ptr @g_isp_config, i64 116), align 4, !tbaa !29
  %19 = fmul float %18, 6.400000e+01
  %20 = fptoui float %19 to i8
  %21 = call noundef i32 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull @.str) #6
  %22 = icmp eq i32 %21, 0
  br i1 %22, label %.preheader54, label %79

.preheader54:                                     ; preds = %8
  %23 = and i32 %4, 65535
  %.not = icmp eq i32 %23, 0
  br i1 %.not, label %.loopexit, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %.preheader54
  %24 = and i32 %3, 65535
  %.not55 = icmp eq i32 %24, 0
  %25 = zext i8 %11 to i32
  %26 = and i32 %notmask, 65535
  %27 = xor i32 %26, 65535
  %28 = zext i8 %14 to i32
  %29 = zext i8 %20 to i32
  %30 = zext i8 %17 to i32
  br i1 %.not55, label %.loopexit, label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.lr.ph, %._crit_edge.us
  %31 = phi i32 [ %75, %._crit_edge.us ], [ 0, %.preheader.lr.ph ]
  %32 = mul nuw nsw i32 %31, %24
  br label %33

33:                                               ; preds = %.preheader.us, %33
  %34 = phi i32 [ 0, %.preheader.us ], [ %72, %33 ]
  %35 = add nuw nsw i32 %34, %32
  %36 = zext nneg i32 %35 to i64
  %37 = getelementptr inbounds i16, ptr %0, i64 %36
  %38 = load i16, ptr %37, align 2, !tbaa !30
  %39 = zext i16 %38 to i32
  %40 = mul nuw nsw i32 %39, %25
  %41 = lshr i32 %40, 6
  %42 = call i32 @llvm.umin.i32(i32 %41, i32 %27)
  %43 = trunc nuw i32 %42 to i16
  store i16 %43, ptr %37, align 2, !tbaa !30
  %44 = add nuw i32 %35, 1
  %45 = zext i32 %44 to i64
  %46 = getelementptr inbounds i16, ptr %0, i64 %45
  %47 = load i16, ptr %46, align 2, !tbaa !30
  %48 = zext i16 %47 to i32
  %49 = mul nuw nsw i32 %48, %28
  %50 = lshr i32 %49, 6
  %51 = call i32 @llvm.umin.i32(i32 %50, i32 %27)
  %52 = trunc nuw i32 %51 to i16
  store i16 %52, ptr %46, align 2, !tbaa !30
  %53 = add nuw i32 %44, %24
  %54 = zext i32 %53 to i64
  %55 = getelementptr inbounds i16, ptr %0, i64 %54
  %56 = load i16, ptr %55, align 2, !tbaa !30
  %57 = zext i16 %56 to i32
  %58 = mul nuw nsw i32 %57, %29
  %59 = lshr i32 %58, 6
  %60 = call i32 @llvm.umin.i32(i32 %59, i32 %27)
  %61 = trunc nuw i32 %60 to i16
  store i16 %61, ptr %55, align 2, !tbaa !30
  %62 = add nuw i32 %35, %24
  %63 = zext i32 %62 to i64
  %64 = getelementptr inbounds i16, ptr %0, i64 %63
  %65 = load i16, ptr %64, align 2, !tbaa !30
  %66 = zext i16 %65 to i32
  %67 = mul nuw nsw i32 %66, %30
  %68 = lshr i32 %67, 6
  %69 = call i32 @llvm.umin.i32(i32 %68, i32 %27)
  %70 = trunc nuw i32 %69 to i16
  store i16 %70, ptr %64, align 2, !tbaa !30
  %71 = add nuw nsw i32 %34, 2
  %72 = and i32 %71, 65535
  %73 = icmp ult i32 %72, %24
  br i1 %73, label %33, label %._crit_edge.us, !llvm.loop !31

._crit_edge.us:                                   ; preds = %33
  %74 = add nuw nsw i32 %31, 2
  %75 = and i32 %74, 65535
  %76 = icmp ult i32 %75, %23
  br i1 %76, label %.preheader.us, label %.loopexit, !llvm.loop !33

77:                                               ; preds = %93, %91, %89, %87, %85, %83, %81, %79, %1
  %78 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #6
  resume { ptr, i32 } %78

79:                                               ; preds = %8
  %80 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.1)
          to label %81 unwind label %77

81:                                               ; preds = %79
  %82 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %80, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %83 unwind label %77

83:                                               ; preds = %81
  %84 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.2)
          to label %85 unwind label %77

85:                                               ; preds = %83
  %86 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %84, ptr noundef nonnull align 8 dereferenceable(32) getelementptr inbounds (i8, ptr @g_isp_config, i64 16))
          to label %87 unwind label %77

87:                                               ; preds = %85
  %88 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %86, ptr noundef nonnull @.str.3)
          to label %89 unwind label %77

89:                                               ; preds = %87
  %90 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %88, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %91 unwind label %77

91:                                               ; preds = %89
  %92 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.4)
          to label %93 unwind label %77

93:                                               ; preds = %91
  %94 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %92, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.loopexit unwind label %77

.loopexit:                                        ; preds = %._crit_edge.us, %.preheader.lr.ph, %.preheader54, %93
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #6
  ret void
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare noundef i32 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umin.i32(i32, i32) #5

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTS12isp_config_t", !7, i64 0, !7, i64 4, !10, i64 8, !11, i64 16, !15, i64 48, !10, i64 64, !11, i64 72, !17, i64 104, !8, i64 120, !11, i64 168, !16, i64 200, !8, i64 204, !18, i64 252, !19, i64 256, !8, i64 320, !20, i64 350, !21, i64 362, !22, i64 364, !23, i64 372}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"short", !8, i64 0}
!11 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !12, i64 0, !14, i64 8, !8, i64 16}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !13, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!"long", !8, i64 0}
!15 = !{!"_ZTS9blc_cfg_t", !10, i64 0, !10, i64 2, !10, i64 4, !10, i64 6, !16, i64 8, !16, i64 12}
!16 = !{!"float", !8, i64 0}
!17 = !{!"_ZTS10awb_gain_t", !16, i64 0, !16, i64 4, !16, i64 8, !16, i64 12}
!18 = !{!"_ZTS9nlm_cfg_t", !8, i64 0, !8, i64 1, !8, i64 2}
!19 = !{!"_ZTS9bnf_cfg_t", !8, i64 0, !8, i64 50, !8, i64 58}
!20 = !{!"_ZTS9eeh_cfg_t", !10, i64 0, !10, i64 2, !10, i64 4, !10, i64 6, !10, i64 8, !10, i64 10}
!21 = !{!"_ZTS9fcs_cfg_t", !8, i64 0, !8, i64 1}
!22 = !{!"_ZTS9hsc_cfg_t", !8, i64 0, !16, i64 4}
!23 = !{!"_ZTS9bcc_cfg_t", !8, i64 0, !16, i64 4}
!24 = !{!6, !7, i64 4}
!25 = !{!6, !10, i64 8}
!26 = !{!6, !16, i64 104}
!27 = !{!6, !16, i64 108}
!28 = !{!6, !16, i64 112}
!29 = !{!6, !16, i64 116}
!30 = !{!10, !10, i64 0}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = distinct !{!33, !32}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass