; LLVM IR from facebookresearch/habitat-sim :: src/deps/basis-universal/encoder (basisu_enc)

; 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"

%"class.std::vector.6" = type { %"struct.std::_Vector_base.7" }
%"struct.std::_Vector_base.7" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.basisu::color_rgba" = type { %union.anon }
%union.anon = type { [4 x i8] }

@.str.4 = external hidden unnamed_addr constant [110 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [30 x i8], align 1
@__PRETTY_FUNCTION__._ZN6basisu14image_resampleERKNS_5imageERS0_bPKcfbjj = external hidden unnamed_addr constant [105 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [21 x i8], align 1

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu5imageclEjj(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef) #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6basisu5image9get_widthEv(ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6basisu5image10get_heightEv(ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 1 dereferenceable(4) ptr @_ZNK6basisu5imageclEjj(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNK6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4), i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN6basisu14linear_to_srgbEf(float noundef) #4

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN6basisu14srgb_to_linearEf(float noundef) #4

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6basisu14image_resampleERKNS_5imageERS0_bPKcfbjj(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, i1 noundef zeroext %2, ptr noundef %3, float noundef %4, i1 noundef zeroext %5, i32 noundef %6, i32 noundef %7) #4 personality ptr @__gxx_personality_v0 {
  %9 = alloca i1, align 1
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i8, align 1
  %13 = alloca ptr, align 8
  %14 = alloca float, align 4
  %15 = alloca i8, align 1
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca [256 x float], align 16
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca [8192 x i8], align 16
  %28 = alloca i32, align 4
  %29 = alloca [4 x %"class.std::vector.6"], align 16
  %30 = alloca [4 x ptr], align 16
  %31 = alloca ptr, align 8
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca ptr, align 8
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  %45 = alloca ptr, align 8
  %46 = alloca i8, align 1
  %47 = alloca ptr, align 8
  %48 = alloca i32, align 4
  %49 = alloca i32, align 4
  %50 = alloca i32, align 4
  %51 = alloca i32, align 4
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  %52 = zext i1 %2 to i8
  store i8 %52, ptr %12, align 1, !tbaa !9
  store ptr %3, ptr %13, align 8, !tbaa !5
  store float %4, ptr %14, align 4, !tbaa !11
  %53 = zext i1 %5 to i8
  store i8 %53, ptr %15, align 1, !tbaa !9
  store i32 %6, ptr %16, align 4, !tbaa !13
  store i32 %7, ptr %17, align 4, !tbaa !13
  %54 = load i32, ptr %16, align 4, !tbaa !13
  %55 = load i32, ptr %17, align 4, !tbaa !13
  %56 = add i32 %54, %55
  %57 = icmp ule i32 %56, 4
  br i1 %57, label %58, label %59

58:                                               ; preds = %8
  br label %61

59:                                               ; preds = %8
  call void @__assert_fail(ptr noundef @.str.17, ptr noundef @.str.4, i32 noundef 641, ptr noundef @__PRETTY_FUNCTION__._ZN6basisu14image_resampleERKNS_5imageERS0_bPKcfbjj) #11
  unreachable

60:                                               ; No predecessors!
  br label %61

61:                                               ; preds = %60, %58
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #12
  store i32 4, ptr %18, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #12
  %62 = load ptr, ptr %10, align 8, !tbaa !5
  %63 = call noundef i32 @_ZNK6basisu5image9get_widthEv(ptr noundef nonnull align 8 dereferenceable(32) %62)
  store i32 %63, ptr %19, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #12
  %64 = load ptr, ptr %10, align 8, !tbaa !5
  %65 = call noundef i32 @_ZNK6basisu5image10get_heightEv(ptr noundef nonnull align 8 dereferenceable(32) %64)
  store i32 %65, ptr %20, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #12
  %66 = load ptr, ptr %11, align 8, !tbaa !5
  %67 = call noundef i32 @_ZNK6basisu5image9get_widthEv(ptr noundef nonnull align 8 dereferenceable(32) %66)
  store i32 %67, ptr %21, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #12
  %68 = load ptr, ptr %11, align 8, !tbaa !5
  %69 = call noundef i32 @_ZNK6basisu5image10get_heightEv(ptr noundef nonnull align 8 dereferenceable(32) %68)
  store i32 %69, ptr %22, align 4, !tbaa !13
  %70 = load i32, ptr %19, align 4, !tbaa !13
  %71 = load i32, ptr %20, align 4, !tbaa !13
  %72 = call noundef i32 @_ZN6basisu7maximumIjEET_S1_S1_(i32 noundef %70, i32 noundef %71)
  %73 = icmp ugt i32 %72, 16384
  br i1 %73, label %74, label %76

74:                                               ; preds = %61
  %75 = call i32 (ptr, ...) @printf(ptr noundef @.str.18)
  store i1 false, ptr %9, align 1
  store i32 1, ptr %23, align 4
  br label %530

76:                                               ; preds = %61
  %77 = load i32, ptr %19, align 4, !tbaa !13
  %78 = icmp ne i32 %77, 0
  br i1 %78, label %79, label %88

79:                                               ; preds = %76
  %80 = load i32, ptr %20, align 4, !tbaa !13
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %82, label %88

82:                                               ; preds = %79
  %83 = load i32, ptr %21, align 4, !tbaa !13
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %85, label %88

85:                                               ; preds = %82
  %86 = load i32, ptr %22, align 4, !tbaa !13
  %87 = icmp ne i32 %86, 0
  br i1 %87, label %89, label %88

88:                                               ; preds = %85, %82, %79, %76
  store i1 false, ptr %9, align 1
  store i32 1, ptr %23, align 4
  br label %530

89:                                               ; preds = %85
  %90 = load i32, ptr %17, align 4, !tbaa !13
  %91 = icmp ult i32 %90, 1
  br i1 %91, label %95, label %92

92:                                               ; preds = %89
  %93 = load i32, ptr %17, align 4, !tbaa !13
  %94 = icmp ugt i32 %93, 4
  br i1 %94, label %95, label %96

95:                                               ; preds = %92, %89
  store i1 false, ptr %9, align 1
  store i32 1, ptr %23, align 4
  br label %530

96:                                               ; preds = %92
  %97 = load i32, ptr %21, align 4, !tbaa !13
  %98 = load i32, ptr %22, align 4, !tbaa !13
  %99 = call noundef i32 @_ZN6basisu7minimumIjEET_S1_S1_(i32 noundef %97, i32 noundef %98)
  %100 = icmp ult i32 %99, 1
  br i1 %100, label %106, label %101

101:                                              ; preds = %96
  %102 = load i32, ptr %21, align 4, !tbaa !13
  %103 = load i32, ptr %22, align 4, !tbaa !13
  %104 = call noundef i32 @_ZN6basisu7maximumIjEET_S1_S1_(i32 noundef %102, i32 noundef %103)
  %105 = icmp ugt i32 %104, 16384
  br i1 %105, label %106, label %108

106:                                              ; preds = %101, %96
  %107 = call i32 (ptr, ...) @printf(ptr noundef @.str.18)
  store i1 false, ptr %9, align 1
  store i32 1, ptr %23, align 4
  br label %530

108:                                              ; preds = %101
  %109 = load i32, ptr %19, align 4, !tbaa !13
  %110 = load i32, ptr %21, align 4, !tbaa !13
  %111 = icmp eq i32 %109, %110
  br i1 %111, label %112, label %120

112:                                              ; preds = %108
  %113 = load i32, ptr %20, align 4, !tbaa !13
  %114 = load i32, ptr %22, align 4, !tbaa !13
  %115 = icmp eq i32 %113, %114
  br i1 %115, label %116, label %120

116:                                              ; preds = %112
  %117 = load ptr, ptr %10, align 8, !tbaa !5
  %118 = load ptr, ptr %11, align 8, !tbaa !5
  %119 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN6basisu5imageaSERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %118, ptr noundef nonnull align 8 dereferenceable(32) %117)
  store i1 true, ptr %9, align 1
  store i32 1, ptr %23, align 4
  br label %530

120:                                              ; preds = %112, %108
  call void @llvm.lifetime.start.p0(i64 1024, ptr %24) #12
  %121 = load i8, ptr %12, align 1, !tbaa !9, !range !15, !noundef !16
  %122 = trunc i8 %121 to i1
  br i1 %122, label %123, label %140

123:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #12
  store i32 0, ptr %25, align 4, !tbaa !13
  br label %124

124:                                              ; preds = %136, %123
  %125 = load i32, ptr %25, align 4, !tbaa !13
  %126 = icmp slt i32 %125, 256
  br i1 %126, label %128, label %127

127:                                              ; preds = %124
  store i32 2, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #12
  br label %139

128:                                              ; preds = %124
  %129 = load i32, ptr %25, align 4, !tbaa !13
  %130 = sitofp i32 %129 to float
  %131 = fmul float %130, 0x3F70101020000000
  %132 = call noundef float @_ZN6basisu14srgb_to_linearEf(float noundef %131)
  %133 = load i32, ptr %25, align 4, !tbaa !13
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [256 x float], ptr %24, i64 0, i64 %134
  store float %132, ptr %135, align 4, !tbaa !11
  br label %136

136:                                              ; preds = %128
  %137 = load i32, ptr %25, align 4, !tbaa !13
  %138 = add nsw i32 %137, 1
  store i32 %138, ptr %25, align 4, !tbaa !13
  br label %124, !llvm.loop !17

139:                                              ; preds = %127
  br label %140

140:                                              ; preds = %139, %120
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #12
  store i32 8192, ptr %26, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8192, ptr %27) #12
  %141 = load i8, ptr %12, align 1, !tbaa !9, !range !15, !noundef !16
  %142 = trunc i8 %141 to i1
  br i1 %142, label %143, label %164

143:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #12
  store i32 0, ptr %28, align 4, !tbaa !13
  br label %144

144:                                              ; preds = %160, %143
  %145 = load i32, ptr %28, align 4, !tbaa !13
  %146 = icmp slt i32 %145, 8192
  br i1 %146, label %148, label %147

147:                                              ; preds = %144
  store i32 5, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #12
  br label %163

148:                                              ; preds = %144
  %149 = load i32, ptr %28, align 4, !tbaa !13
  %150 = sitofp i32 %149 to float
  %151 = fmul float %150, 0x3F20008000000000
  %152 = call noundef float @_ZN6basisu14linear_to_srgbEf(float noundef %151)
  %153 = call float @llvm.fmuladd.f32(float 2.550000e+02, float %152, float 5.000000e-01)
  %154 = fptosi float %153 to i32
  %155 = call noundef i32 @_ZN6basisu5clampIiEET_S1_S1_S1_(i32 noundef %154, i32 noundef 0, i32 noundef 255)
  %156 = trunc i32 %155 to i8
  %157 = load i32, ptr %28, align 4, !tbaa !13
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [8192 x i8], ptr %27, i64 0, i64 %158
  store i8 %156, ptr %159, align 1, !tbaa !19
  br label %160

160:                                              ; preds = %148
  %161 = load i32, ptr %28, align 4, !tbaa !13
  %162 = add nsw i32 %161, 1
  store i32 %162, ptr %28, align 4, !tbaa !13
  br label %144, !llvm.loop !20

163:                                              ; preds = %147
  br label %164

164:                                              ; preds = %163, %140
  call void @llvm.lifetime.start.p0(i64 96, ptr %29) #12
  %165 = getelementptr inbounds [4 x %"class.std::vector.6"], ptr %29, i32 0, i32 0
  %166 = getelementptr inbounds %"class.std::vector.6", ptr %165, i64 4
  br label %167

167:                                              ; preds = %167, %164
  %168 = phi ptr [ %165, %164 ], [ %169, %167 ]
  call void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %168) #12
  %169 = getelementptr inbounds %"class.std::vector.6", ptr %168, i64 1
  %170 = icmp eq ptr %169, %166
  br i1 %170, label %171, label %167

171:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 32, ptr %30) #12
  %172 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 120) #13
          to label %173 unwind label %196

173:                                              ; preds = %171
  %174 = load i32, ptr %19, align 4, !tbaa !13
  %175 = load i32, ptr %20, align 4, !tbaa !13
  %176 = load i32, ptr %21, align 4, !tbaa !13
  %177 = load i32, ptr %22, align 4, !tbaa !13
  %178 = load i8, ptr %15, align 1, !tbaa !9, !range !15, !noundef !16
  %179 = trunc i8 %178 to i1
  %180 = zext i1 %179 to i64
  %181 = select i1 %179, i32 0, i32 2
  %182 = load ptr, ptr %13, align 8, !tbaa !5
  %183 = load float, ptr %14, align 4, !tbaa !11
  %184 = load float, ptr %14, align 4, !tbaa !11
  invoke void @_ZN6basisu9ResamplerC1EiiiiNS0_11Boundary_OpEffPKcPNS0_12Contrib_ListES5_ffff(ptr noundef nonnull align 8 dereferenceable(116) %172, i32 noundef %174, i32 noundef %175, i32 noundef %176, i32 noundef %177, i32 noundef %181, float noundef 0.000000e+00, float noundef 1.000000e+00, ptr noundef %182, ptr noundef null, ptr noundef null, float noundef %183, float noundef %184, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %185 unwind label %200

185:                                              ; preds = %173
  %186 = getelementptr inbounds [4 x ptr], ptr %30, i64 0, i64 0
  store ptr %172, ptr %186, align 16, !tbaa !5
  %187 = getelementptr inbounds [4 x %"class.std::vector.6"], ptr %29, i64 0, i64 0
  %188 = load i32, ptr %19, align 4, !tbaa !13
  %189 = zext i32 %188 to i64
  invoke void @_ZNSt6vectorIfSaIfEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %187, i64 noundef %189)
          to label %190 unwind label %196

190:                                              ; preds = %185
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #12
  store i32 1, ptr %33, align 4, !tbaa !13
  br label %191

191:                                              ; preds = %236, %190
  %192 = load i32, ptr %33, align 4, !tbaa !13
  %193 = load i32, ptr %17, align 4, !tbaa !13
  %194 = icmp ult i32 %192, %193
  br i1 %194, label %204, label %195

195:                                              ; preds = %191
  store i32 8, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #12
  br label %248

196:                                              ; preds = %185, %171
  %197 = landingpad { ptr, i32 }
          cleanup
  %198 = extractvalue { ptr, i32 } %197, 0
  store ptr %198, ptr %31, align 8
  %199 = extractvalue { ptr, i32 } %197, 1
  store i32 %199, ptr %32, align 4
  br label %517

200:                                              ; preds = %173
  %201 = landingpad { ptr, i32 }
          cleanup
  %202 = extractvalue { ptr, i32 } %201, 0
  store ptr %202, ptr %31, align 8
  %203 = extractvalue { ptr, i32 } %201, 1
  store i32 %203, ptr %32, align 4
  call void @_ZdlPvm(ptr noundef %172, i64 noundef 120) #14
  br label %517

204:                                              ; preds = %191
  %205 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 120) #13
          to label %206 unwind label %239

206:                                              ; preds = %204
  %207 = load i32, ptr %19, align 4, !tbaa !13
  %208 = load i32, ptr %20, align 4, !tbaa !13
  %209 = load i32, ptr %21, align 4, !tbaa !13
  %210 = load i32, ptr %22, align 4, !tbaa !13
  %211 = load i8, ptr %15, align 1, !tbaa !9, !range !15, !noundef !16
  %212 = trunc i8 %211 to i1
  %213 = zext i1 %212 to i64
  %214 = select i1 %212, i32 0, i32 2
  %215 = load ptr, ptr %13, align 8, !tbaa !5
  %216 = getelementptr inbounds [4 x ptr], ptr %30, i64 0, i64 0
  %217 = load ptr, ptr %216, align 16, !tbaa !5
  %218 = invoke noundef ptr @_ZNK6basisu9Resampler11get_clist_xEv(ptr noundef nonnull align 8 dereferenceable(116) %217)
          to label %219 unwind label %243

219:                                              ; preds = %206
  %220 = getelementptr inbounds [4 x ptr], ptr %30, i64 0, i64 0
  %221 = load ptr, ptr %220, align 16, !tbaa !5
  %222 = invoke noundef ptr @_ZNK6basisu9Resampler11get_clist_yEv(ptr noundef nonnull align 8 dereferenceable(116) %221)
          to label %223 unwind label %243

223:                                              ; preds = %219
  %224 = load float, ptr %14, align 4, !tbaa !11
  %225 = load float, ptr %14, align 4, !tbaa !11
  invoke void @_ZN6basisu9ResamplerC1EiiiiNS0_11Boundary_OpEffPKcPNS0_12Contrib_ListES5_ffff(ptr noundef nonnull align 8 dereferenceable(116) %205, i32 noundef %207, i32 noundef %208, i32 noundef %209, i32 noundef %210, i32 noundef %214, float noundef 0.000000e+00, float noundef 1.000000e+00, ptr noundef %215, ptr noundef %218, ptr noundef %222, float noundef %224, float noundef %225, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %226 unwind label %243

226:                                              ; preds = %223
  %227 = load i32, ptr %33, align 4, !tbaa !13
  %228 = zext i32 %227 to i64
  %229 = getelementptr inbounds [4 x ptr], ptr %30, i64 0, i64 %228
  store ptr %205, ptr %229, align 8, !tbaa !5
  %230 = load i32, ptr %33, align 4, !tbaa !13
  %231 = zext i32 %230 to i64
  %232 = getelementptr inbounds [4 x %"class.std::vector.6"], ptr %29, i64 0, i64 %231
  %233 = load i32, ptr %19, align 4, !tbaa !13
  %234 = zext i32 %233 to i64
  invoke void @_ZNSt6vectorIfSaIfEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %232, i64 noundef %234)
          to label %235 unwind label %239

235:                                              ; preds = %226
  br label %236

236:                                              ; preds = %235
  %237 = load i32, ptr %33, align 4, !tbaa !13
  %238 = add i32 %237, 1
  store i32 %238, ptr %33, align 4, !tbaa !13
  br label %191, !llvm.loop !21

239:                                              ; preds = %226, %204
  %240 = landingpad { ptr, i32 }
          cleanup
  %241 = extractvalue { ptr, i32 } %240, 0
  store ptr %241, ptr %31, align 8
  %242 = extractvalue { ptr, i32 } %240, 1
  store i32 %242, ptr %32, align 4
  br label %247

243:                                              ; preds = %223, %219, %206
  %244 = landingpad { ptr, i32 }
          cleanup
  %245 = extractvalue { ptr, i32 } %244, 0
  store ptr %245, ptr %31, align 8
  %246 = extractvalue { ptr, i32 } %244, 1
  store i32 %246, ptr %32, align 4
  call void @_ZdlPvm(ptr noundef %205, i64 noundef 120) #14
  br label %247

247:                                              ; preds = %243, %239
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #12
  br label %517

248:                                              ; preds = %195
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #12
  store i32 0, ptr %34, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #12
  store i32 0, ptr %35, align 4, !tbaa !13
  br label %249

249:                                              ; preds = %490, %248
  %250 = load i32, ptr %35, align 4, !tbaa !13
  %251 = load i32, ptr %20, align 4, !tbaa !13
  %252 = icmp ult i32 %250, %251
  br i1 %252, label %254, label %253

253:                                              ; preds = %249
  store i32 11, ptr %23, align 4
  br label %494

254:                                              ; preds = %249
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #12
  %255 = load ptr, ptr %10, align 8, !tbaa !5
  %256 = load i32, ptr %35, align 4, !tbaa !13
  %257 = invoke noundef nonnull align 1 dereferenceable(4) ptr @_ZNK6basisu5imageclEjj(ptr noundef nonnull align 8 dereferenceable(32) %255, i32 noundef 0, i32 noundef %256)
          to label %258 unwind label %264

258:                                              ; preds = %254
  store ptr %257, ptr %36, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #12
  store i32 0, ptr %37, align 4, !tbaa !13
  br label %259

259:                                              ; preds = %321, %258
  %260 = load i32, ptr %37, align 4, !tbaa !13
  %261 = load i32, ptr %19, align 4, !tbaa !13
  %262 = icmp ult i32 %260, %261
  br i1 %262, label %268, label %263

263:                                              ; preds = %259
  store i32 14, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #12
  br label %324

264:                                              ; preds = %254
  %265 = landingpad { ptr, i32 }
          cleanup
  %266 = extractvalue { ptr, i32 } %265, 0
  store ptr %266, ptr %31, align 8
  %267 = extractvalue { ptr, i32 } %265, 1
  store i32 %267, ptr %32, align 4
  br label %493

268:                                              ; preds = %259
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #12
  store i32 0, ptr %38, align 4, !tbaa !13
  br label %269

269:                                              ; preds = %315, %268
  %270 = load i32, ptr %38, align 4, !tbaa !13
  %271 = load i32, ptr %17, align 4, !tbaa !13
  %272 = icmp ult i32 %270, %271
  br i1 %272, label %274, label %273

273:                                              ; preds = %269
  store i32 17, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #12
  br label %318

274:                                              ; preds = %269
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #12
  %275 = load i32, ptr %16, align 4, !tbaa !13
  %276 = load i32, ptr %38, align 4, !tbaa !13
  %277 = add i32 %275, %276
  store i32 %277, ptr %39, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #12
  %278 = load ptr, ptr %36, align 8, !tbaa !5
  %279 = load i32, ptr %39, align 4, !tbaa !13
  %280 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNK6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %278, i32 noundef %279)
          to label %281 unwind label %299

281:                                              ; preds = %274
  %282 = load i8, ptr %280, align 1, !tbaa !19
  %283 = zext i8 %282 to i32
  store i32 %283, ptr %40, align 4, !tbaa !13
  %284 = load i8, ptr %12, align 1, !tbaa !9, !range !15, !noundef !16
  %285 = trunc i8 %284 to i1
  br i1 %285, label %286, label %289

286:                                              ; preds = %281
  %287 = load i32, ptr %39, align 4, !tbaa !13
  %288 = icmp eq i32 %287, 3
  br i1 %288, label %289, label %303

289:                                              ; preds = %286, %281
  %290 = load i32, ptr %40, align 4, !tbaa !13
  %291 = uitofp i32 %290 to float
  %292 = fmul float %291, 0x3F70101020000000
  %293 = load i32, ptr %38, align 4, !tbaa !13
  %294 = zext i32 %293 to i64
  %295 = getelementptr inbounds [4 x %"class.std::vector.6"], ptr %29, i64 0, i64 %294
  %296 = load i32, ptr %37, align 4, !tbaa !13
  %297 = zext i32 %296 to i64
  %298 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %295, i64 noundef %297) #12
  store float %292, ptr %298, align 4, !tbaa !11
  br label %314

299:                                              ; preds = %274
  %300 = landingpad { ptr, i32 }
          cleanup
  %301 = extractvalue { ptr, i32 } %300, 0
  store ptr %301, ptr %31, align 8
  %302 = extractvalue { ptr, i32 } %300, 1
  store i32 %302, ptr %32, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #12
  br label %493

303:                                              ; preds = %286
  %304 = load i32, ptr %40, align 4, !tbaa !13
  %305 = zext i32 %304 to i64
  %306 = getelementptr inbounds [256 x float], ptr %24, i64 0, i64 %305
  %307 = load float, ptr %306, align 4, !tbaa !11
  %308 = load i32, ptr %38, align 4, !tbaa !13
  %309 = zext i32 %308 to i64
  %310 = getelementptr inbounds [4 x %"class.std::vector.6"], ptr %29, i64 0, i64 %309
  %311 = load i32, ptr %37, align 4, !tbaa !13
  %312 = zext i32 %311 to i64
  %313 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %310, i64 noundef %312) #12
  store float %307, ptr %313, align 4, !tbaa !11
  br label %314

314:                                              ; preds = %303, %289
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #12
  br label %315

315:                                              ; preds = %314
  %316 = load i32, ptr %38, align 4, !tbaa !13
  %317 = add i32 %316, 1
  store i32 %317, ptr %38, align 4, !tbaa !13
  br label %269, !llvm.loop !22

318:                                              ; preds = %273
  %319 = load ptr, ptr %36, align 8, !tbaa !5
  %320 = getelementptr inbounds %"class.basisu::color_rgba", ptr %319, i32 1
  store ptr %320, ptr %36, align 8, !tbaa !5
  br label %321

321:                                              ; preds = %318
  %322 = load i32, ptr %37, align 4, !tbaa !13
  %323 = add i32 %322, 1
  store i32 %323, ptr %37, align 4, !tbaa !13
  br label %259, !llvm.loop !23

324:                                              ; preds = %263
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #12
  store i32 0, ptr %41, align 4, !tbaa !13
  br label %325

325:                                              ; preds = %364, %324
  %326 = load i32, ptr %41, align 4, !tbaa !13
  %327 = load i32, ptr %17, align 4, !tbaa !13
  %328 = icmp ult i32 %326, %327
  br i1 %328, label %330, label %329

329:                                              ; preds = %325
  store i32 20, ptr %23, align 4
  br label %367

330:                                              ; preds = %325
  %331 = load i32, ptr %41, align 4, !tbaa !13
  %332 = zext i32 %331 to i64
  %333 = getelementptr inbounds [4 x ptr], ptr %30, i64 0, i64 %332
  %334 = load ptr, ptr %333, align 8, !tbaa !5
  %335 = load i32, ptr %41, align 4, !tbaa !13
  %336 = zext i32 %335 to i64
  %337 = getelementptr inbounds [4 x %"class.std::vector.6"], ptr %29, i64 0, i64 %336
  %338 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %337, i64 noundef 0) #12
  %339 = invoke noundef zeroext i1 @_ZN6basisu9Resampler8put_lineEPKf(ptr noundef nonnull align 8 dereferenceable(116) %334, ptr noundef %338)
          to label %340 unwind label %347

340:                                              ; preds = %330
  br i1 %339, label %363, label %341

341:                                              ; preds = %340
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #12
  store i32 0, ptr %42, align 4, !tbaa !13
  br label %342

342:                                              ; preds = %359, %341
  %343 = load i32, ptr %42, align 4, !tbaa !13
  %344 = load i32, ptr %17, align 4, !tbaa !13
  %345 = icmp ult i32 %343, %344
  br i1 %345, label %351, label %346

346:                                              ; preds = %342
  store i32 23, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #12
  br label %362

347:                                              ; preds = %330
  %348 = landingpad { ptr, i32 }
          cleanup
  %349 = extractvalue { ptr, i32 } %348, 0
  store ptr %349, ptr %31, align 8
  %350 = extractvalue { ptr, i32 } %348, 1
  store i32 %350, ptr %32, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #12
  br label %493

351:                                              ; preds = %342
  %352 = load i32, ptr %42, align 4, !tbaa !13
  %353 = zext i32 %352 to i64
  %354 = getelementptr inbounds [4 x ptr], ptr %30, i64 0, i64 %353
  %355 = load ptr, ptr %354, align 8, !tbaa !5
  %356 = icmp eq ptr %355, null
  br i1 %356, label %358, label %357

357:                                              ; preds = %351
  call void @_ZN6basisu9ResamplerD1Ev(ptr noundef nonnull align 8 dereferenceable(116) %355) #12
  call void @_ZdlPvm(ptr noundef %355, i64 noundef 120) #14
  br label %358

358:                                              ; preds = %357, %351
  br label %359

359:                                              ; preds = %358
  %360 = load i32, ptr %42, align 4, !tbaa !13
  %361 = add i32 %360, 1
  store i32 %361, ptr %42, align 4, !tbaa !13
  br label %342, !llvm.loop !24

362:                                              ; preds = %346
  store i1 false, ptr %9, align 1
  store i32 1, ptr %23, align 4
  br label %367

363:                                              ; preds = %340
  br label %364

364:                                              ; preds = %363
  %365 = load i32, ptr %41, align 4, !tbaa !13
  %366 = add i32 %365, 1
  store i32 %366, ptr %41, align 4, !tbaa !13
  br label %325, !llvm.loop !25

367:                                              ; preds = %362, %329
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #12
  %368 = load i32, ptr %23, align 4
  switch i32 %368, label %487 [
    i32 20, label %369
  ]

369:                                              ; preds = %367
  br label %370

370:                                              ; preds = %485, %369
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #12
  store i32 0, ptr %43, align 4, !tbaa !13
  br label %371

371:                                              ; preds = %470, %370
  %372 = load i32, ptr %43, align 4, !tbaa !13
  %373 = load i32, ptr %17, align 4, !tbaa !13
  %374 = icmp ult i32 %372, %373
  br i1 %374, label %375, label %475

375:                                              ; preds = %371
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #12
  %376 = load i32, ptr %16, align 4, !tbaa !13
  %377 = load i32, ptr %43, align 4, !tbaa !13
  %378 = add i32 %376, %377
  store i32 %378, ptr %44, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #12
  %379 = load i32, ptr %43, align 4, !tbaa !13
  %380 = zext i32 %379 to i64
  %381 = getelementptr inbounds [4 x ptr], ptr %30, i64 0, i64 %380
  %382 = load ptr, ptr %381, align 8, !tbaa !5
  %383 = invoke noundef ptr @_ZN6basisu9Resampler8get_lineEv(ptr noundef nonnull align 8 dereferenceable(116) %382)
          to label %384 unwind label %388

384:                                              ; preds = %375
  store ptr %383, ptr %45, align 8, !tbaa !5
  %385 = load ptr, ptr %45, align 8, !tbaa !5
  %386 = icmp ne ptr %385, null
  br i1 %386, label %392, label %387

387:                                              ; preds = %384
  store i32 28, ptr %23, align 4
  br label %467

388:                                              ; preds = %375
  %389 = landingpad { ptr, i32 }
          cleanup
  %390 = extractvalue { ptr, i32 } %389, 0
  store ptr %390, ptr %31, align 8
  %391 = extractvalue { ptr, i32 } %389, 1
  store i32 %391, ptr %32, align 4
  br label %474

392:                                              ; preds = %384
  call void @llvm.lifetime.start.p0(i64 1, ptr %46) #12
  %393 = load i8, ptr %12, align 1, !tbaa !9, !range !15, !noundef !16
  %394 = trunc i8 %393 to i1
  br i1 %394, label %395, label %398

395:                                              ; preds = %392
  %396 = load i32, ptr %44, align 4, !tbaa !13
  %397 = icmp eq i32 %396, 3
  br label %398

398:                                              ; preds = %395, %392
  %399 = phi i1 [ true, %392 ], [ %397, %395 ]
  %400 = zext i1 %399 to i8
  store i8 %400, ptr %46, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #12
  %401 = load ptr, ptr %11, align 8, !tbaa !5
  %402 = load i32, ptr %34, align 4, !tbaa !13
  %403 = invoke noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu5imageclEjj(ptr noundef nonnull align 8 dereferenceable(32) %401, i32 noundef 0, i32 noundef %402)
          to label %404 unwind label %410

404:                                              ; preds = %398
  store ptr %403, ptr %47, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #12
  store i32 0, ptr %48, align 4, !tbaa !13
  br label %405

405:                                              ; preds = %462, %404
  %406 = load i32, ptr %48, align 4, !tbaa !13
  %407 = load i32, ptr %21, align 4, !tbaa !13
  %408 = icmp ult i32 %406, %407
  br i1 %408, label %414, label %409

409:                                              ; preds = %405
  store i32 31, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #12
  br label %466

410:                                              ; preds = %398
  %411 = landingpad { ptr, i32 }
          cleanup
  %412 = extractvalue { ptr, i32 } %411, 0
  store ptr %412, ptr %31, align 8
  %413 = extractvalue { ptr, i32 } %411, 1
  store i32 %413, ptr %32, align 4
  br label %473

414:                                              ; preds = %405
  %415 = load i8, ptr %46, align 1, !tbaa !9, !range !15, !noundef !16
  %416 = trunc i8 %415 to i1
  br i1 %416, label %417, label %437

417:                                              ; preds = %414
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #12
  %418 = load ptr, ptr %45, align 8, !tbaa !5
  %419 = load i32, ptr %48, align 4, !tbaa !13
  %420 = zext i32 %419 to i64
  %421 = getelementptr inbounds float, ptr %418, i64 %420
  %422 = load float, ptr %421, align 4, !tbaa !11
  %423 = call float @llvm.fmuladd.f32(float 2.550000e+02, float %422, float 5.000000e-01)
  %424 = fptosi float %423 to i32
  store i32 %424, ptr %49, align 4, !tbaa !13
  %425 = load i32, ptr %49, align 4, !tbaa !13
  %426 = invoke noundef i32 @_ZN6basisu5clampIiEET_S1_S1_S1_(i32 noundef %425, i32 noundef 0, i32 noundef 255)
          to label %427 unwind label %433

427:                                              ; preds = %417
  %428 = trunc i32 %426 to i8
  %429 = load ptr, ptr %47, align 8, !tbaa !5
  %430 = load i32, ptr %44, align 4, !tbaa !13
  %431 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %429, i32 noundef %430)
          to label %432 unwind label %433

432:                                              ; preds = %427
  store i8 %428, ptr %431, align 1, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #12
  br label %459

433:                                              ; preds = %427, %417
  %434 = landingpad { ptr, i32 }
          cleanup
  %435 = extractvalue { ptr, i32 } %434, 0
  store ptr %435, ptr %31, align 8
  %436 = extractvalue { ptr, i32 } %434, 1
  store i32 %436, ptr %32, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #12
  br label %465

437:                                              ; preds = %414
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #12
  %438 = load ptr, ptr %45, align 8, !tbaa !5
  %439 = load i32, ptr %48, align 4, !tbaa !13
  %440 = zext i32 %439 to i64
  %441 = getelementptr inbounds float, ptr %438, i64 %440
  %442 = load float, ptr %441, align 4, !tbaa !11
  %443 = call float @llvm.fmuladd.f32(float 8.191000e+03, float %442, float 5.000000e-01)
  %444 = fptosi float %443 to i32
  store i32 %444, ptr %50, align 4, !tbaa !13
  %445 = load i32, ptr %50, align 4, !tbaa !13
  %446 = invoke noundef i32 @_ZN6basisu5clampIiEET_S1_S1_S1_(i32 noundef %445, i32 noundef 0, i32 noundef 8191)
          to label %447 unwind label %455

447:                                              ; preds = %437
  %448 = sext i32 %446 to i64
  %449 = getelementptr inbounds [8192 x i8], ptr %27, i64 0, i64 %448
  %450 = load i8, ptr %449, align 1, !tbaa !19
  %451 = load ptr, ptr %47, align 8, !tbaa !5
  %452 = load i32, ptr %44, align 4, !tbaa !13
  %453 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %451, i32 noundef %452)
          to label %454 unwind label %455

454:                                              ; preds = %447
  store i8 %450, ptr %453, align 1, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #12
  br label %459

455:                                              ; preds = %447, %437
  %456 = landingpad { ptr, i32 }
          cleanup
  %457 = extractvalue { ptr, i32 } %456, 0
  store ptr %457, ptr %31, align 8
  %458 = extractvalue { ptr, i32 } %456, 1
  store i32 %458, ptr %32, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #12
  br label %465

459:                                              ; preds = %454, %432
  %460 = load ptr, ptr %47, align 8, !tbaa !5
  %461 = getelementptr inbounds %"class.basisu::color_rgba", ptr %460, i32 1
  store ptr %461, ptr %47, align 8, !tbaa !5
  br label %462

462:                                              ; preds = %459
  %463 = load i32, ptr %48, align 4, !tbaa !13
  %464 = add i32 %463, 1
  store i32 %464, ptr %48, align 4, !tbaa !13
  br label %405, !llvm.loop !26

465:                                              ; preds = %455, %433
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #12
  br label %473

466:                                              ; preds = %409
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %46) #12
  store i32 0, ptr %23, align 4
  br label %467

467:                                              ; preds = %466, %387
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #12
  %468 = load i32, ptr %23, align 4
  switch i32 %468, label %537 [
    i32 0, label %469
    i32 28, label %475
  ]

469:                                              ; preds = %467
  br label %470

470:                                              ; preds = %469
  %471 = load i32, ptr %43, align 4, !tbaa !13
  %472 = add i32 %471, 1
  store i32 %472, ptr %43, align 4, !tbaa !13
  br label %371, !llvm.loop !27

473:                                              ; preds = %465, %410
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %46) #12
  br label %474

474:                                              ; preds = %473, %388
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #12
  br label %493

475:                                              ; preds = %467, %371
  %476 = load i32, ptr %43, align 4, !tbaa !13
  %477 = load i32, ptr %17, align 4, !tbaa !13
  %478 = icmp ult i32 %476, %477
  br i1 %478, label %479, label %480

479:                                              ; preds = %475
  store i32 26, ptr %23, align 4
  br label %483

480:                                              ; preds = %475
  %481 = load i32, ptr %34, align 4, !tbaa !13
  %482 = add i32 %481, 1
  store i32 %482, ptr %34, align 4, !tbaa !13
  store i32 0, ptr %23, align 4
  br label %483

483:                                              ; preds = %480, %479
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #12
  %484 = load i32, ptr %23, align 4
  switch i32 %484, label %537 [
    i32 0, label %485
    i32 26, label %486
  ]

485:                                              ; preds = %483
  br label %370, !llvm.loop !28

486:                                              ; preds = %483
  store i32 0, ptr %23, align 4
  br label %487

487:                                              ; preds = %486, %367
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #12
  %488 = load i32, ptr %23, align 4
  switch i32 %488, label %494 [
    i32 0, label %489
  ]

489:                                              ; preds = %487
  br label %490

490:                                              ; preds = %489
  %491 = load i32, ptr %35, align 4, !tbaa !13
  %492 = add i32 %491, 1
  store i32 %492, ptr %35, align 4, !tbaa !13
  br label %249, !llvm.loop !29

493:                                              ; preds = %474, %347, %299, %264
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #12
  br label %517

494:                                              ; preds = %487, %253
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #12
  %495 = load i32, ptr %23, align 4
  switch i32 %495, label %514 [
    i32 11, label %496
  ]

496:                                              ; preds = %494
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #12
  store i32 0, ptr %51, align 4, !tbaa !13
  br label %497

497:                                              ; preds = %510, %496
  %498 = load i32, ptr %51, align 4, !tbaa !13
  %499 = load i32, ptr %17, align 4, !tbaa !13
  %500 = icmp ult i32 %498, %499
  br i1 %500, label %502, label %501

501:                                              ; preds = %497
  store i32 34, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #12
  br label %513

502:                                              ; preds = %497
  %503 = load i32, ptr %51, align 4, !tbaa !13
  %504 = zext i32 %503 to i64
  %505 = getelementptr inbounds [4 x ptr], ptr %30, i64 0, i64 %504
  %506 = load ptr, ptr %505, align 8, !tbaa !5
  %507 = icmp eq ptr %506, null
  br i1 %507, label %509, label %508

508:                                              ; preds = %502
  call void @_ZN6basisu9ResamplerD1Ev(ptr noundef nonnull align 8 dereferenceable(116) %506) #12
  call void @_ZdlPvm(ptr noundef %506, i64 noundef 120) #14
  br label %509

509:                                              ; preds = %508, %502
  br label %510

510:                                              ; preds = %509
  %511 = load i32, ptr %51, align 4, !tbaa !13
  %512 = add i32 %511, 1
  store i32 %512, ptr %51, align 4, !tbaa !13
  br label %497, !llvm.loop !30

513:                                              ; preds = %501
  store i1 true, ptr %9, align 1
  store i32 1, ptr %23, align 4
  br label %514

514:                                              ; preds = %513, %494
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr %30) #12
  %515 = getelementptr inbounds [4 x %"class.std::vector.6"], ptr %29, i32 0, i32 0
  %516 = getelementptr inbounds %"class.std::vector.6", ptr %515, i64 4
  br label %520

517:                                              ; preds = %493, %247, %200, %196
  call void @llvm.lifetime.end.p0(i64 32, ptr %30) #12
  %518 = getelementptr inbounds [4 x %"class.std::vector.6"], ptr %29, i32 0, i32 0
  %519 = getelementptr inbounds %"class.std::vector.6", ptr %518, i64 4
  br label %525

520:                                              ; preds = %520, %514
  %521 = phi ptr [ %516, %514 ], [ %522, %520 ]
  %522 = getelementptr inbounds %"class.std::vector.6", ptr %521, i64 -1
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %522) #12
  %523 = icmp eq ptr %522, %515
  br i1 %523, label %524, label %520

524:                                              ; preds = %520
  call void @llvm.lifetime.end.p0(i64 96, ptr %29) #12
  call void @llvm.lifetime.end.p0(i64 8192, ptr %27) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #12
  call void @llvm.lifetime.end.p0(i64 1024, ptr %24) #12
  br label %530

525:                                              ; preds = %525, %517
  %526 = phi ptr [ %519, %517 ], [ %527, %525 ]
  %527 = getelementptr inbounds %"class.std::vector.6", ptr %526, i64 -1
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %527) #12
  %528 = icmp eq ptr %527, %518
  br i1 %528, label %529, label %525

529:                                              ; preds = %525
  call void @llvm.lifetime.end.p0(i64 96, ptr %29) #12
  call void @llvm.lifetime.end.p0(i64 8192, ptr %27) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #12
  call void @llvm.lifetime.end.p0(i64 1024, ptr %24) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #12
  br label %532

530:                                              ; preds = %524, %116, %106, %95, %88, %74
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #12
  %531 = load i1, ptr %9, align 1
  ret i1 %531

532:                                              ; preds = %529
  %533 = load ptr, ptr %31, align 8
  %534 = load i32, ptr %32, align 4
  %535 = insertvalue { ptr, i32 } poison, ptr %533, 0
  %536 = insertvalue { ptr, i32 } %535, i32 %534, 1
  resume { ptr, i32 } %536

537:                                              ; preds = %483, %467
  unreachable
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN6basisu7maximumIjEET_S1_S1_(i32 noundef, i32 noundef) #2

declare i32 @printf(ptr noundef, ...) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN6basisu7minimumIjEET_S1_S1_(i32 noundef, i32 noundef) #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN6basisu5clampIiEET_S1_S1_S1_(i32 noundef, i32 noundef, i32 noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #7 align 2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #8

declare void @_ZN6basisu9ResamplerC1EiiiiNS0_11Boundary_OpEffPKcPNS0_12Contrib_ListES5_ffff(ptr noundef nonnull align 8 dereferenceable(116), i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, float noundef, float noundef, ptr noundef, ptr noundef, ptr noundef, float noundef, float noundef, float noundef, float noundef) unnamed_addr #6

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #9

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK6basisu9Resampler11get_clist_xEv(ptr noundef nonnull align 8 dereferenceable(116)) #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK6basisu9Resampler11get_clist_yEv(ptr noundef nonnull align 8 dereferenceable(116)) #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #7 align 2

declare noundef zeroext i1 @_ZN6basisu9Resampler8put_lineEPKf(ptr noundef nonnull align 8 dereferenceable(116), ptr noundef) #6

; Function Attrs: nounwind
declare void @_ZN6basisu9ResamplerD1Ev(ptr noundef nonnull align 8 dereferenceable(116)) unnamed_addr #10

declare noundef ptr @_ZN6basisu9Resampler8get_lineEv(ptr noundef nonnull align 8 dereferenceable(116)) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4), i32 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #7 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn 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 #2 = { inlinehint 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 = { 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 #4 = { 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 = { "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 #7 = { 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 #8 = { nobuiltin allocsize(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 #9 = { nobuiltin 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 #10 = { 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 #11 = { noreturn nounwind }
attributes #12 = { nounwind }
attributes #13 = { builtin allocsize(0) }
attributes #14 = { builtin 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, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!7, !7, i64 0}
!20 = distinct !{!20, !18}
!21 = distinct !{!21, !18}
!22 = distinct !{!22, !18}
!23 = distinct !{!23, !18}
!24 = distinct !{!24, !18}
!25 = distinct !{!25, !18}
!26 = distinct !{!26, !18}
!27 = distinct !{!27, !18}
!28 = distinct !{!28, !18}
!29 = distinct !{!29, !18}
!30 = distinct !{!30, !18}


; 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"

%"class.std::vector.6" = type { %"struct.std::_Vector_base.7" }
%"struct.std::_Vector_base.7" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.4 = external hidden unnamed_addr constant [110 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [30 x i8], align 1
@__PRETTY_FUNCTION__._ZN6basisu14image_resampleERKNS_5imageERS0_bPKcfbjj = external hidden unnamed_addr constant [105 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [21 x i8], align 1

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu5imageclEjj(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef) local_unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6basisu5image9get_widthEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6basisu5image10get_heightEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 1 dereferenceable(4) ptr @_ZNK6basisu5imageclEjj(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNK6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4), i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN6basisu14linear_to_srgbEf(float noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN6basisu14srgb_to_linearEf(float noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6basisu14image_resampleERKNS_5imageERS0_bPKcfbjj(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, i1 noundef zeroext %2, ptr noundef %3, float noundef %4, i1 noundef zeroext %5, i32 noundef %6, i32 noundef %7) local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %9 = alloca [256 x float], align 16
  %10 = alloca [8192 x i8], align 16
  %11 = alloca [4 x %"class.std::vector.6"], align 16
  %12 = alloca [4 x ptr], align 16
  %13 = add i32 %7, %6
  %14 = icmp ult i32 %13, 5
  br i1 %14, label %16, label %15

15:                                               ; preds = %8
  tail call void @__assert_fail(ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.4, i32 noundef 641, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6basisu14image_resampleERKNS_5imageERS0_bPKcfbjj) #13
  unreachable

16:                                               ; preds = %8
  %17 = tail call noundef i32 @_ZNK6basisu5image9get_widthEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %18 = tail call noundef i32 @_ZNK6basisu5image10get_heightEv(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %19 = tail call noundef i32 @_ZNK6basisu5image9get_widthEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
  %20 = tail call noundef i32 @_ZNK6basisu5image10get_heightEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
  %21 = tail call noundef i32 @_ZN6basisu7maximumIjEET_S1_S1_(i32 noundef %17, i32 noundef %18)
  %22 = icmp ugt i32 %21, 16384
  br i1 %22, label %23, label %25

23:                                               ; preds = %16
  %24 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18)
  br label %185

25:                                               ; preds = %16
  %26 = icmp eq i32 %17, 0
  %27 = icmp eq i32 %18, 0
  %or.cond.not212 = or i1 %26, %27
  %28 = icmp eq i32 %19, 0
  %or.cond5.not209 = or i1 %or.cond.not212, %28
  %29 = icmp eq i32 %20, 0
  %or.cond7.not207 = or i1 %or.cond5.not209, %29
  %30 = add i32 %7, -5
  %or.cond9 = icmp ult i32 %30, -4
  %or.cond200 = or i1 %or.cond9, %or.cond7.not207
  br i1 %or.cond200, label %185, label %31

31:                                               ; preds = %25
  %32 = tail call noundef i32 @_ZN6basisu7minimumIjEET_S1_S1_(i32 noundef %19, i32 noundef %20)
  %33 = icmp eq i32 %32, 0
  br i1 %33, label %37, label %34

34:                                               ; preds = %31
  %35 = tail call noundef i32 @_ZN6basisu7maximumIjEET_S1_S1_(i32 noundef %19, i32 noundef %20)
  %36 = icmp ugt i32 %35, 16384
  br i1 %36, label %37, label %39

37:                                               ; preds = %34, %31
  %38 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18)
  br label %185

39:                                               ; preds = %34
  %40 = icmp eq i32 %17, %19
  %41 = icmp eq i32 %18, %20
  %or.cond191 = and i1 %40, %41
  br i1 %or.cond191, label %42, label %44

42:                                               ; preds = %39
  %43 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZN6basisu5imageaSERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(32) %0)
  br label %185

44:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %9) #14
  br i1 %2, label %.preheader222, label %.critedge

.preheader222:                                    ; preds = %44, %.preheader222
  %indvars.iv = phi i64 [ %indvars.iv.next, %.preheader222 ], [ 0, %44 ]
  %45 = trunc nuw nsw i64 %indvars.iv to i32
  %46 = uitofp nneg i32 %45 to float
  %47 = fmul float %46, 0x3F70101020000000
  %48 = tail call noundef float @_ZN6basisu14srgb_to_linearEf(float noundef %47)
  %49 = getelementptr inbounds [256 x float], ptr %9, i64 0, i64 %indvars.iv
  store float %48, ptr %49, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 256
  br i1 %exitcond.not, label %.preheader220.preheader, label %.preheader222, !llvm.loop !9

.preheader220.preheader:                          ; preds = %.preheader222
  call void @llvm.lifetime.start.p0(i64 8192, ptr nonnull %10) #14
  br label %.preheader220

.preheader220:                                    ; preds = %.preheader220.preheader, %.preheader220
  %indvars.iv328 = phi i64 [ 0, %.preheader220.preheader ], [ %indvars.iv.next329, %.preheader220 ]
  %50 = trunc nuw nsw i64 %indvars.iv328 to i32
  %51 = uitofp nneg i32 %50 to float
  %52 = fmul float %51, 0x3F20008000000000
  %53 = tail call noundef float @_ZN6basisu14linear_to_srgbEf(float noundef %52)
  %54 = tail call float @llvm.fmuladd.f32(float %53, float 2.550000e+02, float 5.000000e-01)
  %55 = fptosi float %54 to i32
  %56 = tail call noundef i32 @_ZN6basisu5clampIiEET_S1_S1_S1_(i32 noundef %55, i32 noundef 0, i32 noundef 255)
  %57 = trunc i32 %56 to i8
  %58 = getelementptr inbounds [8192 x i8], ptr %10, i64 0, i64 %indvars.iv328
  store i8 %57, ptr %58, align 1, !tbaa !11
  %indvars.iv.next329 = add nuw nsw i64 %indvars.iv328, 1
  %exitcond331.not = icmp eq i64 %indvars.iv.next329, 8192
  br i1 %exitcond331.not, label %.loopexit221, label %.preheader220, !llvm.loop !12

.critedge:                                        ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8192, ptr nonnull %10) #14
  br label %.loopexit221

.loopexit221:                                     ; preds = %.preheader220, %.critedge
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %11) #14
  call void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #14
  %.ptr.1 = getelementptr inbounds i8, ptr %11, i64 24
  call void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1) #14
  %.ptr.2 = getelementptr inbounds i8, ptr %11, i64 48
  call void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2) #14
  %.ptr.3 = getelementptr inbounds i8, ptr %11, i64 72
  call void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.3) #14
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #14
  %59 = invoke noalias noundef nonnull dereferenceable(120) ptr @_Znwm(i64 noundef 120) #15
          to label %60 unwind label %66

60:                                               ; preds = %.loopexit221
  %61 = select i1 %5, i32 0, i32 2
  invoke void @_ZN6basisu9ResamplerC1EiiiiNS0_11Boundary_OpEffPKcPNS0_12Contrib_ListES5_ffff(ptr noundef nonnull align 8 dereferenceable(116) %59, i32 noundef %17, i32 noundef %18, i32 noundef %19, i32 noundef %20, i32 noundef %61, float noundef 0.000000e+00, float noundef 1.000000e+00, ptr noundef %3, ptr noundef null, ptr noundef null, float noundef %4, float noundef %4, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %62 unwind label %68

62:                                               ; preds = %60
  store ptr %59, ptr %12, align 16, !tbaa !13
  %63 = zext i32 %17 to i64
  invoke void @_ZNSt6vectorIfSaIfEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %63)
          to label %.preheader219 unwind label %66

.preheader219:                                    ; preds = %62
  %64 = icmp ugt i32 %7, 1
  br i1 %64, label %.lr.ph.preheader, label %.lr.ph294

.lr.ph.preheader:                                 ; preds = %.preheader219
  %wide.trip.count = zext nneg i32 %7 to i64
  br label %.lr.ph

.lr.ph294:                                        ; preds = %77, %.preheader219
  %.not298 = icmp ne i32 %7, 0
  %.not181.not243.not = icmp ne i32 %7, 0
  %65 = zext nneg i32 %7 to i64
  %wide.trip.count368 = zext i32 %19 to i64
  %wide.trip.count378 = zext i32 %19 to i64
  %wide.trip.count383 = zext i32 %19 to i64
  br label %84

66:                                               ; preds = %62, %.loopexit221
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %.split.us

68:                                               ; preds = %60
  %69 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %59, i64 noundef 120) #16
  br label %.split.us

.lr.ph:                                           ; preds = %.lr.ph.preheader, %77
  %indvars.iv332 = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next333, %77 ]
  %70 = invoke noalias noundef nonnull dereferenceable(120) ptr @_Znwm(i64 noundef 120) #15
          to label %71 unwind label %78

71:                                               ; preds = %.lr.ph
  %72 = call noundef ptr @_ZNK6basisu9Resampler11get_clist_xEv(ptr noundef nonnull align 8 dereferenceable(116) %59)
  %73 = call noundef ptr @_ZNK6basisu9Resampler11get_clist_yEv(ptr noundef nonnull align 8 dereferenceable(116) %59)
  invoke void @_ZN6basisu9ResamplerC1EiiiiNS0_11Boundary_OpEffPKcPNS0_12Contrib_ListES5_ffff(ptr noundef nonnull align 8 dereferenceable(116) %70, i32 noundef %17, i32 noundef %18, i32 noundef %19, i32 noundef %20, i32 noundef %61, float noundef 0.000000e+00, float noundef 1.000000e+00, ptr noundef %3, ptr noundef %72, ptr noundef %73, float noundef %4, float noundef %4, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %74 unwind label %80

74:                                               ; preds = %71
  %75 = getelementptr inbounds [4 x ptr], ptr %12, i64 0, i64 %indvars.iv332
  store ptr %70, ptr %75, align 8, !tbaa !13
  %76 = getelementptr inbounds [4 x %"class.std::vector.6"], ptr %11, i64 0, i64 %indvars.iv332
  invoke void @_ZNSt6vectorIfSaIfEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %76, i64 noundef %63)
          to label %77 unwind label %78

77:                                               ; preds = %74
  %indvars.iv.next333 = add nuw nsw i64 %indvars.iv332, 1
  %exitcond335.not = icmp eq i64 %indvars.iv.next333, %wide.trip.count
  br i1 %exitcond335.not, label %.lr.ph294, label %.lr.ph, !llvm.loop !15

78:                                               ; preds = %74, %.lr.ph
  %79 = landingpad { ptr, i32 }
          cleanup
  br label %.split.us

80:                                               ; preds = %71
  %81 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %70, i64 noundef 120) #16
  br label %.split.us

82:                                               ; preds = %.thread203
  %83 = add nuw i32 %.0164292, 1
  %.not186 = icmp uge i32 %83, %18
  %exitcond395 = icmp eq i32 %83, %18
  br i1 %exitcond395, label %.lr.ph297.preheader, label %84, !llvm.loop !16

.lr.ph297.preheader:                              ; preds = %82
  %wide.trip.count399 = zext nneg i32 %7 to i64
  br label %.lr.ph297

84:                                               ; preds = %.lr.ph294, %82
  %.not186293 = phi i1 [ false, %.lr.ph294 ], [ %.not186, %82 ]
  %.0164292 = phi i32 [ 0, %.lr.ph294 ], [ %83, %82 ]
  %.0165291 = phi i32 [ 0, %.lr.ph294 ], [ %.3168, %82 ]
  %85 = invoke noundef nonnull align 1 dereferenceable(4) ptr @_ZNK6basisu5imageclEjj(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef 0, i32 noundef %.0164292)
          to label %.preheader.lr.ph unwind label %112

.preheader.lr.ph:                                 ; preds = %84
  call void @llvm.assume(i1 %.not298)
  br i1 %2, label %.preheader.us.us, label %.preheader.us

.preheader.us.us:                                 ; preds = %.preheader.lr.ph, %._crit_edge.split.us241.us
  %indvars.iv351 = phi i64 [ %indvars.iv.next352, %._crit_edge.split.us241.us ], [ 0, %.preheader.lr.ph ]
  %.0163237.us.us = phi ptr [ %101, %._crit_edge.split.us241.us ], [ %85, %.preheader.lr.ph ]
  br label %86

86:                                               ; preds = %.preheader.us.us, %98
  %indvars.iv346 = phi i64 [ 0, %.preheader.us.us ], [ %indvars.iv.next347, %98 ]
  %87 = trunc nuw nsw i64 %indvars.iv346 to i32
  %88 = add i32 %87, %6
  %89 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.0163237.us.us, i32 noundef %88)
  %90 = load i8, ptr %89, align 1, !tbaa !11
  %.not301 = icmp eq i32 %88, 3
  br i1 %.not301, label %91, label %94

91:                                               ; preds = %86
  %92 = uitofp i8 %90 to float
  %93 = fmul float %92, 0x3F70101020000000
  br label %98

94:                                               ; preds = %86
  %95 = zext i8 %90 to i64
  %96 = getelementptr inbounds [256 x float], ptr %9, i64 0, i64 %95
  %97 = load float, ptr %96, align 4, !tbaa !5
  br label %98

98:                                               ; preds = %94, %91
  %.sink = phi float [ %97, %94 ], [ %93, %91 ]
  %99 = getelementptr inbounds [4 x %"class.std::vector.6"], ptr %11, i64 0, i64 %indvars.iv346
  %100 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %99, i64 noundef %indvars.iv351) #14
  store float %.sink, ptr %100, align 4, !tbaa !5
  %indvars.iv.next347 = add nuw nsw i64 %indvars.iv346, 1
  %exitcond350.not = icmp eq i64 %indvars.iv.next347, %65
  br i1 %exitcond350.not, label %._crit_edge.split.us241.us, label %86, !llvm.loop !17

._crit_edge.split.us241.us:                       ; preds = %98
  %101 = getelementptr inbounds i8, ptr %.0163237.us.us, i64 4
  %indvars.iv.next352 = add nuw nsw i64 %indvars.iv351, 1
  %exitcond355.not = icmp eq i64 %indvars.iv.next352, %63
  br i1 %exitcond355.not, label %.preheader215, label %.preheader.us.us, !llvm.loop !18

.preheader.us:                                    ; preds = %.preheader.lr.ph, %._crit_edge.split.us.us
  %indvars.iv341 = phi i64 [ %indvars.iv.next342, %._crit_edge.split.us.us ], [ 0, %.preheader.lr.ph ]
  %.0163237.us = phi ptr [ %111, %._crit_edge.split.us.us ], [ %85, %.preheader.lr.ph ]
  br label %102

102:                                              ; preds = %102, %.preheader.us
  %indvars.iv336 = phi i64 [ %indvars.iv.next337, %102 ], [ 0, %.preheader.us ]
  %103 = trunc nuw nsw i64 %indvars.iv336 to i32
  %104 = add i32 %103, %6
  %105 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.0163237.us, i32 noundef %104)
  %106 = load i8, ptr %105, align 1, !tbaa !11
  %107 = uitofp i8 %106 to float
  %108 = fmul float %107, 0x3F70101020000000
  %109 = getelementptr inbounds [4 x %"class.std::vector.6"], ptr %11, i64 0, i64 %indvars.iv336
  %110 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %109, i64 noundef %indvars.iv341) #14
  store float %108, ptr %110, align 4, !tbaa !5
  %indvars.iv.next337 = add nuw nsw i64 %indvars.iv336, 1
  %exitcond340.not = icmp eq i64 %indvars.iv.next337, %65
  br i1 %exitcond340.not, label %._crit_edge.split.us.us, label %102, !llvm.loop !17

._crit_edge.split.us.us:                          ; preds = %102
  %111 = getelementptr inbounds i8, ptr %.0163237.us, i64 4
  %indvars.iv.next342 = add nuw nsw i64 %indvars.iv341, 1
  %exitcond345.not = icmp eq i64 %indvars.iv.next342, %63
  br i1 %exitcond345.not, label %.preheader215, label %.preheader.us, !llvm.loop !18

.preheader215:                                    ; preds = %._crit_edge.split.us.us, %._crit_edge.split.us241.us
  call void @llvm.assume(i1 %.not181.not243.not)
  br label %.lr.ph246

112:                                              ; preds = %84
  %113 = landingpad { ptr, i32 }
          cleanup
  br label %.split.us

114:                                              ; preds = %167
  %indvars.iv.next357 = add nuw nsw i64 %indvars.iv356, 1
  %.not181.not = icmp ult i64 %indvars.iv.next357, %65
  %exitcond359.not = icmp eq i64 %indvars.iv.next357, %65
  br i1 %exitcond359.not, label %.critedge193.preheader, label %.lr.ph246, !llvm.loop !19

.critedge193.preheader:                           ; preds = %114
  br i1 %2, label %.critedge193.us.us.us, label %.critedge193.us.us

.critedge193.us.us.us:                            ; preds = %.critedge193.preheader, %._crit_edge252.split.us.us.us.split.us284
  %.1166.us.us.us = phi i32 [ %141, %._crit_edge252.split.us.us.us.split.us284 ], [ %.0165291, %.critedge193.preheader ]
  br label %115

115:                                              ; preds = %.critedge193.us.us.us, %._crit_edge.us.us.us.us
  %indvars.iv385 = phi i64 [ 0, %.critedge193.us.us.us ], [ %indvars.iv.next386, %._crit_edge.us.us.us.us ]
  %116 = trunc nuw nsw i64 %indvars.iv385 to i32
  %117 = add i32 %116, %6
  %118 = getelementptr inbounds [4 x ptr], ptr %12, i64 0, i64 %indvars.iv385
  %119 = load ptr, ptr %118, align 8, !tbaa !13
  %120 = invoke noundef ptr @_ZN6basisu9Resampler8get_lineEv(ptr noundef nonnull align 8 dereferenceable(116) %119)
          to label %121 unwind label %.split.us.split.us.split.us.split.split.us

121:                                              ; preds = %115
  %.not183.us.us.us.us279 = icmp eq ptr %120, null
  br i1 %.not183.us.us.us.us279, label %.thread203, label %.lr.ph249.us.us.us.us280

.lr.ph249.us.us.us.us280:                         ; preds = %121
  %.not302 = icmp eq i32 %117, 3
  %122 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu5imageclEjj(ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef 0, i32 noundef %.1166.us.us.us)
  br i1 %.not302, label %.lr.ph249.split.us256.us.us.us, label %.lr.ph249.split.us.us.us.us.us

.lr.ph249.split.us256.us.us.us:                   ; preds = %.lr.ph249.us.us.us.us280, %.lr.ph249.split.us256.us.us.us
  %indvars.iv380 = phi i64 [ %indvars.iv.next381, %.lr.ph249.split.us256.us.us.us ], [ 0, %.lr.ph249.us.us.us.us280 ]
  %.0148247.us254.us.us.us282 = phi ptr [ %130, %.lr.ph249.split.us256.us.us.us ], [ %122, %.lr.ph249.us.us.us.us280 ]
  %123 = getelementptr inbounds float, ptr %120, i64 %indvars.iv380
  %124 = load float, ptr %123, align 4, !tbaa !5
  %125 = call float @llvm.fmuladd.f32(float %124, float 2.550000e+02, float 5.000000e-01)
  %126 = fptosi float %125 to i32
  %127 = call noundef i32 @_ZN6basisu5clampIiEET_S1_S1_S1_(i32 noundef %126, i32 noundef 0, i32 noundef 255)
  %128 = trunc i32 %127 to i8
  %129 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.0148247.us254.us.us.us282, i32 noundef 3)
  store i8 %128, ptr %129, align 1, !tbaa !11
  %130 = getelementptr inbounds i8, ptr %.0148247.us254.us.us.us282, i64 4
  %indvars.iv.next381 = add nuw nsw i64 %indvars.iv380, 1
  %exitcond384.not = icmp eq i64 %indvars.iv.next381, %wide.trip.count383
  br i1 %exitcond384.not, label %._crit_edge.us.us.us.us, label %.lr.ph249.split.us256.us.us.us, !llvm.loop !20

._crit_edge.us.us.us.us:                          ; preds = %.lr.ph249.split.us.us.us.us.us, %.lr.ph249.split.us256.us.us.us
  %indvars.iv.next386 = add nuw nsw i64 %indvars.iv385, 1
  %exitcond389.not = icmp eq i64 %indvars.iv.next386, %65
  br i1 %exitcond389.not, label %._crit_edge252.split.us.us.us.split.us284, label %115, !llvm.loop !21

.lr.ph249.split.us.us.us.us.us:                   ; preds = %.lr.ph249.us.us.us.us280, %.lr.ph249.split.us.us.us.us.us
  %indvars.iv375 = phi i64 [ %indvars.iv.next376, %.lr.ph249.split.us.us.us.us.us ], [ 0, %.lr.ph249.us.us.us.us280 ]
  %.0148247.us.us.us.us.us = phi ptr [ %140, %.lr.ph249.split.us.us.us.us.us ], [ %122, %.lr.ph249.us.us.us.us280 ]
  %131 = getelementptr inbounds float, ptr %120, i64 %indvars.iv375
  %132 = load float, ptr %131, align 4, !tbaa !5
  %133 = call float @llvm.fmuladd.f32(float %132, float 8.191000e+03, float 5.000000e-01)
  %134 = fptosi float %133 to i32
  %135 = call noundef i32 @_ZN6basisu5clampIiEET_S1_S1_S1_(i32 noundef %134, i32 noundef 0, i32 noundef 8191)
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [8192 x i8], ptr %10, i64 0, i64 %136
  %138 = load i8, ptr %137, align 1, !tbaa !11
  %139 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.0148247.us.us.us.us.us, i32 noundef %117)
  store i8 %138, ptr %139, align 1, !tbaa !11
  %140 = getelementptr inbounds i8, ptr %.0148247.us.us.us.us.us, i64 4
  %indvars.iv.next376 = add nuw nsw i64 %indvars.iv375, 1
  %exitcond379.not = icmp eq i64 %indvars.iv.next376, %wide.trip.count378
  br i1 %exitcond379.not, label %._crit_edge.us.us.us.us, label %.lr.ph249.split.us.us.us.us.us, !llvm.loop !20

._crit_edge252.split.us.us.us.split.us284:        ; preds = %._crit_edge.us.us.us.us
  %141 = add i32 %.1166.us.us.us, 1
  br label %.critedge193.us.us.us

.split.us.split.us.split.us.split.split.us:       ; preds = %115
  %142 = landingpad { ptr, i32 }
          cleanup
  br label %.split.us

.critedge193.us.us:                               ; preds = %.critedge193.preheader, %._crit_edge252.split.us.us.us.split.us
  %.1166.us.us = phi i32 [ %161, %._crit_edge252.split.us.us.us.split.us ], [ %.0165291, %.critedge193.preheader ]
  br label %143

143:                                              ; preds = %._crit_edge.split.us255.us.us.us, %.critedge193.us.us
  %indvars.iv370 = phi i64 [ %indvars.iv.next371, %._crit_edge.split.us255.us.us.us ], [ 0, %.critedge193.us.us ]
  %144 = trunc nuw nsw i64 %indvars.iv370 to i32
  %145 = add i32 %144, %6
  %146 = getelementptr inbounds [4 x ptr], ptr %12, i64 0, i64 %indvars.iv370
  %147 = load ptr, ptr %146, align 8, !tbaa !13
  %148 = invoke noundef ptr @_ZN6basisu9Resampler8get_lineEv(ptr noundef nonnull align 8 dereferenceable(116) %147)
          to label %149 unwind label %.split.us.split.us.split.us.split.us

149:                                              ; preds = %143
  %.not183.us.us.us.us = icmp eq ptr %148, null
  br i1 %.not183.us.us.us.us, label %.thread203, label %.lr.ph249.us.us.us.us

.lr.ph249.us.us.us.us:                            ; preds = %149
  %150 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZN6basisu5imageclEjj(ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef 0, i32 noundef %.1166.us.us)
  br label %151

151:                                              ; preds = %.lr.ph249.us.us.us.us, %151
  %indvars.iv365 = phi i64 [ 0, %.lr.ph249.us.us.us.us ], [ %indvars.iv.next366, %151 ]
  %.0148247.us254.us.us.us = phi ptr [ %150, %.lr.ph249.us.us.us.us ], [ %159, %151 ]
  %152 = getelementptr inbounds float, ptr %148, i64 %indvars.iv365
  %153 = load float, ptr %152, align 4, !tbaa !5
  %154 = call float @llvm.fmuladd.f32(float %153, float 2.550000e+02, float 5.000000e-01)
  %155 = fptosi float %154 to i32
  %156 = call noundef i32 @_ZN6basisu5clampIiEET_S1_S1_S1_(i32 noundef %155, i32 noundef 0, i32 noundef 255)
  %157 = trunc i32 %156 to i8
  %158 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %.0148247.us254.us.us.us, i32 noundef %145)
  store i8 %157, ptr %158, align 1, !tbaa !11
  %159 = getelementptr inbounds i8, ptr %.0148247.us254.us.us.us, i64 4
  %indvars.iv.next366 = add nuw nsw i64 %indvars.iv365, 1
  %exitcond369.not = icmp eq i64 %indvars.iv.next366, %wide.trip.count368
  br i1 %exitcond369.not, label %._crit_edge.split.us255.us.us.us, label %151, !llvm.loop !20

._crit_edge.split.us255.us.us.us:                 ; preds = %151
  %indvars.iv.next371 = add nuw nsw i64 %indvars.iv370, 1
  %exitcond374.not = icmp eq i64 %indvars.iv.next371, %65
  br i1 %exitcond374.not, label %._crit_edge252.split.us.us.us.split.us, label %143, !llvm.loop !21

.split.us.split.us.split.us.split.us:             ; preds = %143
  %160 = landingpad { ptr, i32 }
          cleanup
  br label %.split.us

._crit_edge252.split.us.us.us.split.us:           ; preds = %._crit_edge.split.us255.us.us.us
  %161 = add i32 %.1166.us.us, 1
  br label %.critedge193.us.us

.lr.ph246:                                        ; preds = %.preheader215, %114
  %indvars.iv356 = phi i64 [ %indvars.iv.next357, %114 ], [ 0, %.preheader215 ]
  %.not181.not245 = phi i1 [ %.not181.not, %114 ], [ true, %.preheader215 ]
  %162 = getelementptr inbounds [4 x ptr], ptr %12, i64 0, i64 %indvars.iv356
  %163 = load ptr, ptr %162, align 8, !tbaa !13
  %164 = getelementptr inbounds [4 x %"class.std::vector.6"], ptr %11, i64 0, i64 %indvars.iv356
  %165 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %164, i64 noundef 0) #14
  %166 = invoke noundef zeroext i1 @_ZN6basisu9Resampler8put_lineEPKf(ptr noundef nonnull align 8 dereferenceable(116) %163, ptr noundef nonnull %165)
          to label %167 unwind label %168

167:                                              ; preds = %.lr.ph246
  br i1 %166, label %114, label %.preheader213

168:                                              ; preds = %.lr.ph246
  %169 = landingpad { ptr, i32 }
          cleanup
  br label %.split.us

.preheader213:                                    ; preds = %167, %174
  %indvars.iv360 = phi i64 [ %indvars.iv.next361, %174 ], [ 0, %167 ]
  %170 = getelementptr inbounds [4 x ptr], ptr %12, i64 0, i64 %indvars.iv360
  %171 = load ptr, ptr %170, align 8, !tbaa !13
  %172 = icmp eq ptr %171, null
  br i1 %172, label %174, label %173

173:                                              ; preds = %.preheader213
  call void @_ZN6basisu9ResamplerD1Ev(ptr noundef nonnull align 8 dereferenceable(116) %171) #14
  call void @_ZdlPvm(ptr noundef nonnull %171, i64 noundef 120) #16
  br label %174

174:                                              ; preds = %.preheader213, %173
  %indvars.iv.next361 = add nuw nsw i64 %indvars.iv360, 1
  %exitcond364.not = icmp eq i64 %indvars.iv.next361, %65
  br i1 %exitcond364.not, label %.thread203, label %.preheader213, !llvm.loop !22

.thread203:                                       ; preds = %174, %149, %121
  %.not181.not225 = phi i1 [ %.not181.not, %121 ], [ %.not181.not, %149 ], [ %.not181.not245, %174 ]
  %.3168 = phi i32 [ %.1166.us.us.us, %121 ], [ %.1166.us.us, %149 ], [ %.0165291, %174 ]
  br i1 %.not181.not225, label %.loopexit, label %82

.lr.ph297:                                        ; preds = %.lr.ph297.preheader, %.critedge199
  %indvars.iv396 = phi i64 [ 0, %.lr.ph297.preheader ], [ %indvars.iv.next397, %.critedge199 ]
  %175 = getelementptr inbounds [4 x ptr], ptr %12, i64 0, i64 %indvars.iv396
  %176 = load ptr, ptr %175, align 8, !tbaa !13
  %177 = icmp eq ptr %176, null
  br i1 %177, label %.critedge199, label %178

178:                                              ; preds = %.lr.ph297
  call void @_ZN6basisu9ResamplerD1Ev(ptr noundef nonnull align 8 dereferenceable(116) %176) #14
  call void @_ZdlPvm(ptr noundef nonnull %176, i64 noundef 120) #16
  br label %.critedge199

.critedge199:                                     ; preds = %.lr.ph297, %178
  %indvars.iv.next397 = add nuw nsw i64 %indvars.iv396, 1
  %exitcond400.not = icmp eq i64 %indvars.iv.next397, %wide.trip.count399
  br i1 %exitcond400.not, label %.loopexit, label %.lr.ph297, !llvm.loop !23

.loopexit:                                        ; preds = %.thread203, %.critedge199
  %.not186231 = phi i1 [ %.not186, %.critedge199 ], [ %.not186293, %.thread203 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #14
  %179 = getelementptr inbounds i8, ptr %11, i64 72
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %179) #14
  %180 = getelementptr inbounds i8, ptr %11, i64 48
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %180) #14
  %181 = getelementptr inbounds i8, ptr %11, i64 24
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %181) #14
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #14
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %11) #14
  call void @llvm.lifetime.end.p0(i64 8192, ptr nonnull %10) #14
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %9) #14
  br label %185

.split.us:                                        ; preds = %.split.us.split.us.split.us.split.us, %.split.us.split.us.split.us.split.split.us, %112, %168, %78, %80, %68, %66
  %.pn188.pn = phi { ptr, i32 } [ %67, %66 ], [ %69, %68 ], [ %79, %78 ], [ %81, %80 ], [ %169, %168 ], [ %113, %112 ], [ %142, %.split.us.split.us.split.us.split.split.us ], [ %160, %.split.us.split.us.split.us.split.us ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #14
  %182 = getelementptr inbounds i8, ptr %11, i64 72
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %182) #14
  %183 = getelementptr inbounds i8, ptr %11, i64 48
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %183) #14
  %184 = getelementptr inbounds i8, ptr %11, i64 24
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %184) #14
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #14
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %11) #14
  call void @llvm.lifetime.end.p0(i64 8192, ptr nonnull %10) #14
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %9) #14
  resume { ptr, i32 } %.pn188.pn

185:                                              ; preds = %25, %.loopexit, %42, %37, %23
  %.4 = phi i1 [ false, %23 ], [ false, %37 ], [ true, %42 ], [ %.not186231, %.loopexit ], [ false, %25 ]
  ret i1 %.4
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN6basisu7maximumIjEET_S1_S1_(i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN6basisu7minimumIjEET_S1_S1_(i32 noundef, i32 noundef) local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN6basisu5clampIiEET_S1_S1_S1_(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #7 align 2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #8

declare void @_ZN6basisu9ResamplerC1EiiiiNS0_11Boundary_OpEffPKcPNS0_12Contrib_ListES5_ffff(ptr noundef nonnull align 8 dereferenceable(116), i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, float noundef, float noundef, ptr noundef, ptr noundef, ptr noundef, float noundef, float noundef, float noundef, float noundef) unnamed_addr #9

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #10

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK6basisu9Resampler11get_clist_xEv(ptr noundef nonnull align 8 dereferenceable(116)) local_unnamed_addr #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK6basisu9Resampler11get_clist_yEv(ptr noundef nonnull align 8 dereferenceable(116)) local_unnamed_addr #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #7 align 2

declare noundef zeroext i1 @_ZN6basisu9Resampler8put_lineEPKf(ptr noundef nonnull align 8 dereferenceable(116), ptr noundef) local_unnamed_addr #9

; Function Attrs: nounwind
declare void @_ZN6basisu9ResamplerD1Ev(ptr noundef nonnull align 8 dereferenceable(116)) unnamed_addr #11

declare noundef ptr @_ZN6basisu9Resampler8get_lineEv(ptr noundef nonnull align 8 dereferenceable(116)) local_unnamed_addr #9

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4), i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #7 align 2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write)
declare void @llvm.assume(i1 noundef) #12

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn 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 #2 = { inlinehint 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 = { 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 #4 = { 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nofree 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 #7 = { 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 #8 = { nobuiltin allocsize(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 #9 = { "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 #10 = { nobuiltin 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 #11 = { 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 #12 = { nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) }
attributes #13 = { noreturn nounwind }
attributes #14 = { nounwind }
attributes #15 = { builtin allocsize(0) }
attributes #16 = { builtin 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !10}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !7, i64 0}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass