; LLVM IR from CubbyFlow/RenderFlow :: Extensions/FlowEditor/sample_utils (file_png)

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

%struct.LodePNGInfo = type { i32, i32, i32, %struct.LodePNGColorMode, i32, i32, i32, i32, i64, ptr, ptr, i64, ptr, ptr, ptr, ptr, i32, %struct.LodePNGTime, i32, i32, i32, i32, [3 x ptr], [3 x i64] }
%struct.LodePNGColorMode = type { i32, i32, ptr, i64, i32, i32, i32, i32 }
%struct.LodePNGTime = type { i32, i32, i32, i32, i32, i32 }
%struct.ucvector = type { ptr, i64, i64 }
%struct.LodePNGState = type <{ ptr, %struct.LodePNGDecoderSettings, %struct.LodePNGEncoderSettings, %struct.LodePNGColorMode, %struct.LodePNGInfo, i32, [4 x i8] }>
%struct.LodePNGDecoderSettings = type { %struct.LodePNGDecompressSettings, i32, i32, i32, i32 }
%struct.LodePNGDecompressSettings = type { i32, ptr, ptr, ptr }
%struct.LodePNGEncoderSettings = type { %struct.LodePNGCompressSettings, i32, i32, i32, ptr, i32, i32, i32 }
%struct.LodePNGCompressSettings = type { i32, i32, i32, i32, i32, i32, ptr, ptr, ptr }

@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [9 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: mustprogress nounwind uwtable
declare hidden noundef ptr @_ZL8mymallocm(i64 noundef) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL6myfreePv(ptr noundef) #1

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z15lodepng_get_bppPK16LodePNGColorMode(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z17lodepng_info_initP11LodePNGInfo(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z20lodepng_info_cleanupP11LodePNGInfo(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z17lodepng_info_copyP11LodePNGInfoPKS_(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z15lodepng_convertPhPKhP16LodePNGColorModeS3_jj(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL18checkColorValidity16LodePNGColorTypej(i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z14lodepng_encodePPhPmPKhjjP12LodePNGState(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5) #3 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca %struct.LodePNGInfo, align 8
  %15 = alloca %struct.ucvector, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i64, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store i32 %3, ptr %11, align 4, !tbaa !9
  store i32 %4, ptr %12, align 4, !tbaa !9
  store ptr %5, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 232, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  store ptr null, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  store i64 0, ptr %17, align 8, !tbaa !11
  %23 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr null, ptr %23, align 8, !tbaa !5
  %24 = load ptr, ptr %9, align 8, !tbaa !5
  store i64 0, ptr %24, align 8, !tbaa !11
  %25 = load ptr, ptr %13, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.LodePNGState, ptr %25, i32 0, i32 5
  store i32 0, ptr %26, align 8, !tbaa !13
  call void @_Z17lodepng_info_initP11LodePNGInfo(ptr noundef %14)
  %27 = load ptr, ptr %13, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.LodePNGState, ptr %27, i32 0, i32 4
  %29 = call noundef i32 @_Z17lodepng_info_copyP11LodePNGInfoPKS_(ptr noundef %14, ptr noundef %28)
  %30 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %31 = getelementptr inbounds %struct.LodePNGColorMode, ptr %30, i32 0, i32 0
  %32 = load i32, ptr %31, align 8, !tbaa !25
  %33 = icmp eq i32 %32, 3
  br i1 %33, label %40, label %34

34:                                               ; preds = %6
  %35 = load ptr, ptr %13, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.LodePNGState, ptr %35, i32 0, i32 2
  %37 = getelementptr inbounds %struct.LodePNGEncoderSettings, ptr %36, i32 0, i32 5
  %38 = load i32, ptr %37, align 8, !tbaa !26
  %39 = icmp ne i32 %38, 0
  br i1 %39, label %40, label %56

40:                                               ; preds = %34, %6
  %41 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %42 = getelementptr inbounds %struct.LodePNGColorMode, ptr %41, i32 0, i32 3
  %43 = load i64, ptr %42, align 8, !tbaa !27
  %44 = icmp eq i64 %43, 0
  br i1 %44, label %50, label %45

45:                                               ; preds = %40
  %46 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %47 = getelementptr inbounds %struct.LodePNGColorMode, ptr %46, i32 0, i32 3
  %48 = load i64, ptr %47, align 8, !tbaa !27
  %49 = icmp ugt i64 %48, 256
  br i1 %49, label %50, label %56

50:                                               ; preds = %45, %40
  %51 = load ptr, ptr %13, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.LodePNGState, ptr %51, i32 0, i32 5
  store i32 68, ptr %52, align 8, !tbaa !13
  %53 = load ptr, ptr %13, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.LodePNGState, ptr %53, i32 0, i32 5
  %55 = load i32, ptr %54, align 8, !tbaa !13
  store i32 %55, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %561

56:                                               ; preds = %45, %34
  %57 = load ptr, ptr %13, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.LodePNGState, ptr %57, i32 0, i32 2
  %59 = getelementptr inbounds %struct.LodePNGEncoderSettings, ptr %58, i32 0, i32 1
  %60 = load i32, ptr %59, align 8, !tbaa !28
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %62, label %76

62:                                               ; preds = %56
  %63 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %64 = load ptr, ptr %10, align 8, !tbaa !5
  %65 = load i32, ptr %11, align 4, !tbaa !9
  %66 = load i32, ptr %12, align 4, !tbaa !9
  %67 = load ptr, ptr %13, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.LodePNGState, ptr %67, i32 0, i32 3
  %69 = load ptr, ptr %13, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.LodePNGState, ptr %69, i32 0, i32 2
  %71 = getelementptr inbounds %struct.LodePNGEncoderSettings, ptr %70, i32 0, i32 1
  %72 = load i32, ptr %71, align 8, !tbaa !28
  %73 = call noundef i32 @_ZL17doAutoChooseColorP16LodePNGColorModePKhjjS0_18LodePNGAutoConvert(ptr noundef %63, ptr noundef %64, i32 noundef %65, i32 noundef %66, ptr noundef %68, i32 noundef %72)
  %74 = load ptr, ptr %13, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.LodePNGState, ptr %74, i32 0, i32 5
  store i32 %73, ptr %75, align 8, !tbaa !13
  br label %76

76:                                               ; preds = %62, %56
  %77 = load ptr, ptr %13, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.LodePNGState, ptr %77, i32 0, i32 5
  %79 = load i32, ptr %78, align 8, !tbaa !13
  %80 = icmp ne i32 %79, 0
  br i1 %80, label %81, label %85

81:                                               ; preds = %76
  %82 = load ptr, ptr %13, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.LodePNGState, ptr %82, i32 0, i32 5
  %84 = load i32, ptr %83, align 8, !tbaa !13
  store i32 %84, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %561

85:                                               ; preds = %76
  %86 = load ptr, ptr %13, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.LodePNGState, ptr %86, i32 0, i32 2
  %88 = getelementptr inbounds %struct.LodePNGEncoderSettings, ptr %87, i32 0, i32 0
  %89 = getelementptr inbounds %struct.LodePNGCompressSettings, ptr %88, i32 0, i32 2
  %90 = load i32, ptr %89, align 8, !tbaa !29
  %91 = icmp ugt i32 %90, 32768
  br i1 %91, label %92, label %95

92:                                               ; preds = %85
  %93 = load ptr, ptr %13, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.LodePNGState, ptr %93, i32 0, i32 5
  store i32 60, ptr %94, align 8, !tbaa !13
  store i32 60, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %561

95:                                               ; preds = %85
  %96 = load ptr, ptr %13, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.LodePNGState, ptr %96, i32 0, i32 2
  %98 = getelementptr inbounds %struct.LodePNGEncoderSettings, ptr %97, i32 0, i32 0
  %99 = getelementptr inbounds %struct.LodePNGCompressSettings, ptr %98, i32 0, i32 0
  %100 = load i32, ptr %99, align 8, !tbaa !30
  %101 = icmp ugt i32 %100, 2
  br i1 %101, label %102, label %105

102:                                              ; preds = %95
  %103 = load ptr, ptr %13, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.LodePNGState, ptr %103, i32 0, i32 5
  store i32 61, ptr %104, align 8, !tbaa !13
  store i32 61, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %561

105:                                              ; preds = %95
  %106 = load ptr, ptr %13, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.LodePNGState, ptr %106, i32 0, i32 4
  %108 = getelementptr inbounds %struct.LodePNGInfo, ptr %107, i32 0, i32 2
  %109 = load i32, ptr %108, align 8, !tbaa !31
  %110 = icmp ugt i32 %109, 1
  br i1 %110, label %111, label %114

111:                                              ; preds = %105
  %112 = load ptr, ptr %13, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.LodePNGState, ptr %112, i32 0, i32 5
  store i32 71, ptr %113, align 8, !tbaa !13
  store i32 71, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %561

114:                                              ; preds = %105
  %115 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %116 = getelementptr inbounds %struct.LodePNGColorMode, ptr %115, i32 0, i32 0
  %117 = load i32, ptr %116, align 8, !tbaa !25
  %118 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %119 = getelementptr inbounds %struct.LodePNGColorMode, ptr %118, i32 0, i32 1
  %120 = load i32, ptr %119, align 4, !tbaa !32
  %121 = call noundef i32 @_ZL18checkColorValidity16LodePNGColorTypej(i32 noundef %117, i32 noundef %120)
  %122 = load ptr, ptr %13, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.LodePNGState, ptr %122, i32 0, i32 5
  store i32 %121, ptr %123, align 8, !tbaa !13
  %124 = load ptr, ptr %13, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.LodePNGState, ptr %124, i32 0, i32 5
  %126 = load i32, ptr %125, align 8, !tbaa !13
  %127 = icmp ne i32 %126, 0
  br i1 %127, label %128, label %132

128:                                              ; preds = %114
  %129 = load ptr, ptr %13, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.LodePNGState, ptr %129, i32 0, i32 5
  %131 = load i32, ptr %130, align 8, !tbaa !13
  store i32 %131, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %561

132:                                              ; preds = %114
  %133 = load ptr, ptr %13, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.LodePNGState, ptr %133, i32 0, i32 3
  %135 = getelementptr inbounds %struct.LodePNGColorMode, ptr %134, i32 0, i32 0
  %136 = load i32, ptr %135, align 8, !tbaa !33
  %137 = load ptr, ptr %13, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.LodePNGState, ptr %137, i32 0, i32 3
  %139 = getelementptr inbounds %struct.LodePNGColorMode, ptr %138, i32 0, i32 1
  %140 = load i32, ptr %139, align 4, !tbaa !34
  %141 = call noundef i32 @_ZL18checkColorValidity16LodePNGColorTypej(i32 noundef %136, i32 noundef %140)
  %142 = load ptr, ptr %13, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.LodePNGState, ptr %142, i32 0, i32 5
  store i32 %141, ptr %143, align 8, !tbaa !13
  %144 = load ptr, ptr %13, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.LodePNGState, ptr %144, i32 0, i32 5
  %146 = load i32, ptr %145, align 8, !tbaa !13
  %147 = icmp ne i32 %146, 0
  br i1 %147, label %148, label %152

148:                                              ; preds = %132
  %149 = load ptr, ptr %13, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.LodePNGState, ptr %149, i32 0, i32 5
  %151 = load i32, ptr %150, align 8, !tbaa !13
  store i32 %151, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %561

152:                                              ; preds = %132
  %153 = load ptr, ptr %13, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.LodePNGState, ptr %153, i32 0, i32 3
  %155 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %156 = call noundef i32 @_ZL24lodepng_color_mode_equalPK16LodePNGColorModeS1_(ptr noundef %154, ptr noundef %155)
  %157 = icmp ne i32 %156, 0
  br i1 %157, label %208, label %158

158:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %159 = load i32, ptr %11, align 4, !tbaa !9
  %160 = load i32, ptr %12, align 4, !tbaa !9
  %161 = mul i32 %159, %160
  %162 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %163 = call noundef i32 @_Z15lodepng_get_bppPK16LodePNGColorMode(ptr noundef %162)
  %164 = mul i32 %161, %163
  %165 = add i32 %164, 7
  %166 = udiv i32 %165, 8
  %167 = zext i32 %166 to i64
  store i64 %167, ptr %20, align 8, !tbaa !11
  %168 = load i64, ptr %20, align 8, !tbaa !11
  %169 = call noundef ptr @_ZL8mymallocm(i64 noundef %168)
  store ptr %169, ptr %19, align 8, !tbaa !5
  %170 = load ptr, ptr %19, align 8, !tbaa !5
  %171 = icmp ne ptr %170, null
  br i1 %171, label %178, label %172

172:                                              ; preds = %158
  %173 = load i64, ptr %20, align 8, !tbaa !11
  %174 = icmp ne i64 %173, 0
  br i1 %174, label %175, label %178

175:                                              ; preds = %172
  %176 = load ptr, ptr %13, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.LodePNGState, ptr %176, i32 0, i32 5
  store i32 83, ptr %177, align 8, !tbaa !13
  br label %178

178:                                              ; preds = %175, %172, %158
  %179 = load ptr, ptr %13, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.LodePNGState, ptr %179, i32 0, i32 5
  %181 = load i32, ptr %180, align 8, !tbaa !13
  %182 = icmp ne i32 %181, 0
  br i1 %182, label %194, label %183

183:                                              ; preds = %178
  %184 = load ptr, ptr %19, align 8, !tbaa !5
  %185 = load ptr, ptr %10, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %187 = load ptr, ptr %13, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.LodePNGState, ptr %187, i32 0, i32 3
  %189 = load i32, ptr %11, align 4, !tbaa !9
  %190 = load i32, ptr %12, align 4, !tbaa !9
  %191 = call noundef i32 @_Z15lodepng_convertPhPKhP16LodePNGColorModeS3_jj(ptr noundef %184, ptr noundef %185, ptr noundef %186, ptr noundef %188, i32 noundef %189, i32 noundef %190)
  %192 = load ptr, ptr %13, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.LodePNGState, ptr %192, i32 0, i32 5
  store i32 %191, ptr %193, align 8, !tbaa !13
  br label %194

194:                                              ; preds = %183, %178
  %195 = load ptr, ptr %13, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.LodePNGState, ptr %195, i32 0, i32 5
  %197 = load i32, ptr %196, align 8, !tbaa !13
  %198 = icmp ne i32 %197, 0
  br i1 %198, label %206, label %199

199:                                              ; preds = %194
  %200 = load ptr, ptr %19, align 8, !tbaa !5
  %201 = load i32, ptr %11, align 4, !tbaa !9
  %202 = load i32, ptr %12, align 4, !tbaa !9
  %203 = load ptr, ptr %13, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.LodePNGState, ptr %203, i32 0, i32 2
  %205 = call noundef i32 @_ZL19preProcessScanlinesPPhPmPKhjjPK11LodePNGInfoPK22LodePNGEncoderSettings(ptr noundef %16, ptr noundef %17, ptr noundef %200, i32 noundef %201, i32 noundef %202, ptr noundef %14, ptr noundef %204)
  br label %206

206:                                              ; preds = %199, %194
  %207 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZL6myfreePv(ptr noundef %207)
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  br label %215

208:                                              ; preds = %152
  %209 = load ptr, ptr %10, align 8, !tbaa !5
  %210 = load i32, ptr %11, align 4, !tbaa !9
  %211 = load i32, ptr %12, align 4, !tbaa !9
  %212 = load ptr, ptr %13, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.LodePNGState, ptr %212, i32 0, i32 2
  %214 = call noundef i32 @_ZL19preProcessScanlinesPPhPmPKhjjPK11LodePNGInfoPK22LodePNGEncoderSettings(ptr noundef %16, ptr noundef %17, ptr noundef %209, i32 noundef %210, i32 noundef %211, ptr noundef %14, ptr noundef %213)
  br label %215

215:                                              ; preds = %208, %206
  call void @_ZL13ucvector_initP8ucvector(ptr noundef %15)
  br label %216

216:                                              ; preds = %215
  %217 = load ptr, ptr %13, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.LodePNGState, ptr %217, i32 0, i32 5
  %219 = load i32, ptr %218, align 8, !tbaa !13
  %220 = icmp ne i32 %219, 0
  %221 = xor i1 %220, true
  br i1 %221, label %222, label %550

222:                                              ; preds = %216
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  call void @_ZL14writeSignatureP8ucvector(ptr noundef %15)
  %223 = load i32, ptr %11, align 4, !tbaa !9
  %224 = load i32, ptr %12, align 4, !tbaa !9
  %225 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %226 = getelementptr inbounds %struct.LodePNGColorMode, ptr %225, i32 0, i32 0
  %227 = load i32, ptr %226, align 8, !tbaa !25
  %228 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %229 = getelementptr inbounds %struct.LodePNGColorMode, ptr %228, i32 0, i32 1
  %230 = load i32, ptr %229, align 4, !tbaa !32
  %231 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 2
  %232 = load i32, ptr %231, align 8, !tbaa !35
  %233 = call noundef i32 @_ZL13addChunk_IHDRP8ucvectorjj16LodePNGColorTypejj(ptr noundef %15, i32 noundef %223, i32 noundef %224, i32 noundef %227, i32 noundef %230, i32 noundef %232)
  %234 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 22
  %235 = getelementptr inbounds [3 x ptr], ptr %234, i64 0, i64 0
  %236 = load ptr, ptr %235, align 8, !tbaa !5
  %237 = icmp ne ptr %236, null
  br i1 %237, label %238, label %254

238:                                              ; preds = %222
  %239 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 22
  %240 = getelementptr inbounds [3 x ptr], ptr %239, i64 0, i64 0
  %241 = load ptr, ptr %240, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 23
  %243 = getelementptr inbounds [3 x i64], ptr %242, i64 0, i64 0
  %244 = load i64, ptr %243, align 8, !tbaa !11
  %245 = call noundef i32 @_ZL16addUnknownChunksP8ucvectorPhm(ptr noundef %15, ptr noundef %241, i64 noundef %244)
  %246 = load ptr, ptr %13, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.LodePNGState, ptr %246, i32 0, i32 5
  store i32 %245, ptr %247, align 8, !tbaa !13
  %248 = load ptr, ptr %13, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.LodePNGState, ptr %248, i32 0, i32 5
  %250 = load i32, ptr %249, align 8, !tbaa !13
  %251 = icmp ne i32 %250, 0
  br i1 %251, label %252, label %253

252:                                              ; preds = %238
  store i32 3, ptr %18, align 4
  br label %549

253:                                              ; preds = %238
  br label %254

254:                                              ; preds = %253, %222
  %255 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %256 = getelementptr inbounds %struct.LodePNGColorMode, ptr %255, i32 0, i32 0
  %257 = load i32, ptr %256, align 8, !tbaa !25
  %258 = icmp eq i32 %257, 3
  br i1 %258, label %259, label %262

259:                                              ; preds = %254
  %260 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %261 = call noundef i32 @_ZL13addChunk_PLTEP8ucvectorPK16LodePNGColorMode(ptr noundef %15, ptr noundef %260)
  br label %262

262:                                              ; preds = %259, %254
  %263 = load ptr, ptr %13, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.LodePNGState, ptr %263, i32 0, i32 2
  %265 = getelementptr inbounds %struct.LodePNGEncoderSettings, ptr %264, i32 0, i32 5
  %266 = load i32, ptr %265, align 8, !tbaa !26
  %267 = icmp ne i32 %266, 0
  br i1 %267, label %268, label %281

268:                                              ; preds = %262
  %269 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %270 = getelementptr inbounds %struct.LodePNGColorMode, ptr %269, i32 0, i32 0
  %271 = load i32, ptr %270, align 8, !tbaa !25
  %272 = icmp eq i32 %271, 2
  br i1 %272, label %278, label %273

273:                                              ; preds = %268
  %274 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %275 = getelementptr inbounds %struct.LodePNGColorMode, ptr %274, i32 0, i32 0
  %276 = load i32, ptr %275, align 8, !tbaa !25
  %277 = icmp eq i32 %276, 6
  br i1 %277, label %278, label %281

278:                                              ; preds = %273, %268
  %279 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %280 = call noundef i32 @_ZL13addChunk_PLTEP8ucvectorPK16LodePNGColorMode(ptr noundef %15, ptr noundef %279)
  br label %281

281:                                              ; preds = %278, %273, %262
  %282 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %283 = getelementptr inbounds %struct.LodePNGColorMode, ptr %282, i32 0, i32 0
  %284 = load i32, ptr %283, align 8, !tbaa !25
  %285 = icmp eq i32 %284, 3
  br i1 %285, label %286, label %298

286:                                              ; preds = %281
  %287 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %288 = getelementptr inbounds %struct.LodePNGColorMode, ptr %287, i32 0, i32 2
  %289 = load ptr, ptr %288, align 8, !tbaa !36
  %290 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %291 = getelementptr inbounds %struct.LodePNGColorMode, ptr %290, i32 0, i32 3
  %292 = load i64, ptr %291, align 8, !tbaa !27
  %293 = call noundef i32 @_ZL22getPaletteTranslucencyPKhm(ptr noundef %289, i64 noundef %292)
  %294 = icmp ne i32 %293, 0
  br i1 %294, label %295, label %298

295:                                              ; preds = %286
  %296 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %297 = call noundef i32 @_ZL13addChunk_tRNSP8ucvectorPK16LodePNGColorMode(ptr noundef %15, ptr noundef %296)
  br label %298

298:                                              ; preds = %295, %286, %281
  %299 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %300 = getelementptr inbounds %struct.LodePNGColorMode, ptr %299, i32 0, i32 0
  %301 = load i32, ptr %300, align 8, !tbaa !25
  %302 = icmp eq i32 %301, 0
  br i1 %302, label %308, label %303

303:                                              ; preds = %298
  %304 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %305 = getelementptr inbounds %struct.LodePNGColorMode, ptr %304, i32 0, i32 0
  %306 = load i32, ptr %305, align 8, !tbaa !25
  %307 = icmp eq i32 %306, 2
  br i1 %307, label %308, label %316

308:                                              ; preds = %303, %298
  %309 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %310 = getelementptr inbounds %struct.LodePNGColorMode, ptr %309, i32 0, i32 4
  %311 = load i32, ptr %310, align 8, !tbaa !37
  %312 = icmp ne i32 %311, 0
  br i1 %312, label %313, label %316

313:                                              ; preds = %308
  %314 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %315 = call noundef i32 @_ZL13addChunk_tRNSP8ucvectorPK16LodePNGColorMode(ptr noundef %15, ptr noundef %314)
  br label %316

316:                                              ; preds = %313, %308, %303
  %317 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 4
  %318 = load i32, ptr %317, align 8, !tbaa !38
  %319 = icmp ne i32 %318, 0
  br i1 %319, label %320, label %322

320:                                              ; preds = %316
  %321 = call noundef i32 @_ZL13addChunk_bKGDP8ucvectorPK11LodePNGInfo(ptr noundef %15, ptr noundef %14)
  br label %322

322:                                              ; preds = %320, %316
  %323 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 18
  %324 = load i32, ptr %323, align 4, !tbaa !39
  %325 = icmp ne i32 %324, 0
  br i1 %325, label %326, label %328

326:                                              ; preds = %322
  %327 = call noundef i32 @_ZL13addChunk_pHYsP8ucvectorPK11LodePNGInfo(ptr noundef %15, ptr noundef %14)
  br label %328

328:                                              ; preds = %326, %322
  %329 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 22
  %330 = getelementptr inbounds [3 x ptr], ptr %329, i64 0, i64 1
  %331 = load ptr, ptr %330, align 8, !tbaa !5
  %332 = icmp ne ptr %331, null
  br i1 %332, label %333, label %349

333:                                              ; preds = %328
  %334 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 22
  %335 = getelementptr inbounds [3 x ptr], ptr %334, i64 0, i64 1
  %336 = load ptr, ptr %335, align 8, !tbaa !5
  %337 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 23
  %338 = getelementptr inbounds [3 x i64], ptr %337, i64 0, i64 1
  %339 = load i64, ptr %338, align 8, !tbaa !11
  %340 = call noundef i32 @_ZL16addUnknownChunksP8ucvectorPhm(ptr noundef %15, ptr noundef %336, i64 noundef %339)
  %341 = load ptr, ptr %13, align 8, !tbaa !5
  %342 = getelementptr inbounds %struct.LodePNGState, ptr %341, i32 0, i32 5
  store i32 %340, ptr %342, align 8, !tbaa !13
  %343 = load ptr, ptr %13, align 8, !tbaa !5
  %344 = getelementptr inbounds %struct.LodePNGState, ptr %343, i32 0, i32 5
  %345 = load i32, ptr %344, align 8, !tbaa !13
  %346 = icmp ne i32 %345, 0
  br i1 %346, label %347, label %348

347:                                              ; preds = %333
  store i32 3, ptr %18, align 4
  br label %549

348:                                              ; preds = %333
  br label %349

349:                                              ; preds = %348, %328
  %350 = load ptr, ptr %16, align 8, !tbaa !5
  %351 = load i64, ptr %17, align 8, !tbaa !11
  %352 = load ptr, ptr %13, align 8, !tbaa !5
  %353 = getelementptr inbounds %struct.LodePNGState, ptr %352, i32 0, i32 2
  %354 = getelementptr inbounds %struct.LodePNGEncoderSettings, ptr %353, i32 0, i32 0
  %355 = call noundef i32 @_ZL13addChunk_IDATP8ucvectorPKhmP23LodePNGCompressSettings(ptr noundef %15, ptr noundef %350, i64 noundef %351, ptr noundef %354)
  %356 = load ptr, ptr %13, align 8, !tbaa !5
  %357 = getelementptr inbounds %struct.LodePNGState, ptr %356, i32 0, i32 5
  store i32 %355, ptr %357, align 8, !tbaa !13
  %358 = load ptr, ptr %13, align 8, !tbaa !5
  %359 = getelementptr inbounds %struct.LodePNGState, ptr %358, i32 0, i32 5
  %360 = load i32, ptr %359, align 8, !tbaa !13
  %361 = icmp ne i32 %360, 0
  br i1 %361, label %362, label %363

362:                                              ; preds = %349
  store i32 3, ptr %18, align 4
  br label %549

363:                                              ; preds = %349
  %364 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 16
  %365 = load i32, ptr %364, align 8, !tbaa !40
  %366 = icmp ne i32 %365, 0
  br i1 %366, label %367, label %370

367:                                              ; preds = %363
  %368 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 17
  %369 = call noundef i32 @_ZL13addChunk_tIMEP8ucvectorPK11LodePNGTime(ptr noundef %15, ptr noundef %368)
  br label %370

370:                                              ; preds = %367, %363
  store i64 0, ptr %21, align 8, !tbaa !11
  br label %371

371:                                              ; preds = %432, %370
  %372 = load i64, ptr %21, align 8, !tbaa !11
  %373 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 8
  %374 = load i64, ptr %373, align 8, !tbaa !41
  %375 = icmp ult i64 %372, %374
  br i1 %375, label %376, label %435

376:                                              ; preds = %371
  %377 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 9
  %378 = load ptr, ptr %377, align 8, !tbaa !42
  %379 = load i64, ptr %21, align 8, !tbaa !11
  %380 = getelementptr inbounds ptr, ptr %378, i64 %379
  %381 = load ptr, ptr %380, align 8, !tbaa !5
  %382 = call i64 @strlen(ptr noundef %381) #5
  %383 = icmp ugt i64 %382, 79
  br i1 %383, label %384, label %387

384:                                              ; preds = %376
  %385 = load ptr, ptr %13, align 8, !tbaa !5
  %386 = getelementptr inbounds %struct.LodePNGState, ptr %385, i32 0, i32 5
  store i32 66, ptr %386, align 8, !tbaa !13
  br label %435

387:                                              ; preds = %376
  %388 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 9
  %389 = load ptr, ptr %388, align 8, !tbaa !42
  %390 = load i64, ptr %21, align 8, !tbaa !11
  %391 = getelementptr inbounds ptr, ptr %389, i64 %390
  %392 = load ptr, ptr %391, align 8, !tbaa !5
  %393 = call i64 @strlen(ptr noundef %392) #5
  %394 = icmp ult i64 %393, 1
  br i1 %394, label %395, label %398

395:                                              ; preds = %387
  %396 = load ptr, ptr %13, align 8, !tbaa !5
  %397 = getelementptr inbounds %struct.LodePNGState, ptr %396, i32 0, i32 5
  store i32 67, ptr %397, align 8, !tbaa !13
  br label %435

398:                                              ; preds = %387
  %399 = load ptr, ptr %13, align 8, !tbaa !5
  %400 = getelementptr inbounds %struct.LodePNGState, ptr %399, i32 0, i32 2
  %401 = getelementptr inbounds %struct.LodePNGEncoderSettings, ptr %400, i32 0, i32 7
  %402 = load i32, ptr %401, align 8, !tbaa !43
  %403 = icmp ne i32 %402, 0
  br i1 %403, label %404, label %419

404:                                              ; preds = %398
  %405 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 9
  %406 = load ptr, ptr %405, align 8, !tbaa !42
  %407 = load i64, ptr %21, align 8, !tbaa !11
  %408 = getelementptr inbounds ptr, ptr %406, i64 %407
  %409 = load ptr, ptr %408, align 8, !tbaa !5
  %410 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 10
  %411 = load ptr, ptr %410, align 8, !tbaa !44
  %412 = load i64, ptr %21, align 8, !tbaa !11
  %413 = getelementptr inbounds ptr, ptr %411, i64 %412
  %414 = load ptr, ptr %413, align 8, !tbaa !5
  %415 = load ptr, ptr %13, align 8, !tbaa !5
  %416 = getelementptr inbounds %struct.LodePNGState, ptr %415, i32 0, i32 2
  %417 = getelementptr inbounds %struct.LodePNGEncoderSettings, ptr %416, i32 0, i32 0
  %418 = call noundef i32 @_ZL13addChunk_zTXtP8ucvectorPKcS2_P23LodePNGCompressSettings(ptr noundef %15, ptr noundef %409, ptr noundef %414, ptr noundef %417)
  br label %431

419:                                              ; preds = %398
  %420 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 9
  %421 = load ptr, ptr %420, align 8, !tbaa !42
  %422 = load i64, ptr %21, align 8, !tbaa !11
  %423 = getelementptr inbounds ptr, ptr %421, i64 %422
  %424 = load ptr, ptr %423, align 8, !tbaa !5
  %425 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 10
  %426 = load ptr, ptr %425, align 8, !tbaa !44
  %427 = load i64, ptr %21, align 8, !tbaa !11
  %428 = getelementptr inbounds ptr, ptr %426, i64 %427
  %429 = load ptr, ptr %428, align 8, !tbaa !5
  %430 = call noundef i32 @_ZL13addChunk_tEXtP8ucvectorPKcS2_(ptr noundef %15, ptr noundef %424, ptr noundef %429)
  br label %431

431:                                              ; preds = %419, %404
  br label %432

432:                                              ; preds = %431
  %433 = load i64, ptr %21, align 8, !tbaa !11
  %434 = add i64 %433, 1
  store i64 %434, ptr %21, align 8, !tbaa !11
  br label %371, !llvm.loop !45

435:                                              ; preds = %395, %384, %371
  %436 = load ptr, ptr %13, align 8, !tbaa !5
  %437 = getelementptr inbounds %struct.LodePNGState, ptr %436, i32 0, i32 2
  %438 = getelementptr inbounds %struct.LodePNGEncoderSettings, ptr %437, i32 0, i32 6
  %439 = load i32, ptr %438, align 4, !tbaa !47
  %440 = icmp ne i32 %439, 0
  br i1 %440, label %441, label %466

441:                                              ; preds = %435
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  store i32 0, ptr %22, align 4, !tbaa !9
  store i64 0, ptr %21, align 8, !tbaa !11
  br label %442

442:                                              ; preds = %457, %441
  %443 = load i64, ptr %21, align 8, !tbaa !11
  %444 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 8
  %445 = load i64, ptr %444, align 8, !tbaa !41
  %446 = icmp ult i64 %443, %445
  br i1 %446, label %447, label %460

447:                                              ; preds = %442
  %448 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 9
  %449 = load ptr, ptr %448, align 8, !tbaa !42
  %450 = load i64, ptr %21, align 8, !tbaa !11
  %451 = getelementptr inbounds ptr, ptr %449, i64 %450
  %452 = load ptr, ptr %451, align 8, !tbaa !5
  %453 = call i32 @strcmp(ptr noundef %452, ptr noundef @.str.2) #5
  %454 = icmp ne i32 %453, 0
  br i1 %454, label %456, label %455

455:                                              ; preds = %447
  store i32 1, ptr %22, align 4, !tbaa !9
  br label %460

456:                                              ; preds = %447
  br label %457

457:                                              ; preds = %456
  %458 = load i64, ptr %21, align 8, !tbaa !11
  %459 = add i64 %458, 1
  store i64 %459, ptr %21, align 8, !tbaa !11
  br label %442, !llvm.loop !48

460:                                              ; preds = %455, %442
  %461 = load i32, ptr %22, align 4, !tbaa !9
  %462 = icmp eq i32 %461, 0
  br i1 %462, label %463, label %465

463:                                              ; preds = %460
  %464 = call noundef i32 @_ZL13addChunk_tEXtP8ucvectorPKcS2_(ptr noundef %15, ptr noundef @.str.2, ptr noundef @.str.3)
  br label %465

465:                                              ; preds = %463, %460
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  br label %466

466:                                              ; preds = %465, %435
  store i64 0, ptr %21, align 8, !tbaa !11
  br label %467

467:                                              ; preds = %523, %466
  %468 = load i64, ptr %21, align 8, !tbaa !11
  %469 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 11
  %470 = load i64, ptr %469, align 8, !tbaa !49
  %471 = icmp ult i64 %468, %470
  br i1 %471, label %472, label %526

472:                                              ; preds = %467
  %473 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 12
  %474 = load ptr, ptr %473, align 8, !tbaa !50
  %475 = load i64, ptr %21, align 8, !tbaa !11
  %476 = getelementptr inbounds ptr, ptr %474, i64 %475
  %477 = load ptr, ptr %476, align 8, !tbaa !5
  %478 = call i64 @strlen(ptr noundef %477) #5
  %479 = icmp ugt i64 %478, 79
  br i1 %479, label %480, label %483

480:                                              ; preds = %472
  %481 = load ptr, ptr %13, align 8, !tbaa !5
  %482 = getelementptr inbounds %struct.LodePNGState, ptr %481, i32 0, i32 5
  store i32 66, ptr %482, align 8, !tbaa !13
  br label %526

483:                                              ; preds = %472
  %484 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 12
  %485 = load ptr, ptr %484, align 8, !tbaa !50
  %486 = load i64, ptr %21, align 8, !tbaa !11
  %487 = getelementptr inbounds ptr, ptr %485, i64 %486
  %488 = load ptr, ptr %487, align 8, !tbaa !5
  %489 = call i64 @strlen(ptr noundef %488) #5
  %490 = icmp ult i64 %489, 1
  br i1 %490, label %491, label %494

491:                                              ; preds = %483
  %492 = load ptr, ptr %13, align 8, !tbaa !5
  %493 = getelementptr inbounds %struct.LodePNGState, ptr %492, i32 0, i32 5
  store i32 67, ptr %493, align 8, !tbaa !13
  br label %526

494:                                              ; preds = %483
  %495 = load ptr, ptr %13, align 8, !tbaa !5
  %496 = getelementptr inbounds %struct.LodePNGState, ptr %495, i32 0, i32 2
  %497 = getelementptr inbounds %struct.LodePNGEncoderSettings, ptr %496, i32 0, i32 7
  %498 = load i32, ptr %497, align 8, !tbaa !43
  %499 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 12
  %500 = load ptr, ptr %499, align 8, !tbaa !50
  %501 = load i64, ptr %21, align 8, !tbaa !11
  %502 = getelementptr inbounds ptr, ptr %500, i64 %501
  %503 = load ptr, ptr %502, align 8, !tbaa !5
  %504 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 13
  %505 = load ptr, ptr %504, align 8, !tbaa !51
  %506 = load i64, ptr %21, align 8, !tbaa !11
  %507 = getelementptr inbounds ptr, ptr %505, i64 %506
  %508 = load ptr, ptr %507, align 8, !tbaa !5
  %509 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 14
  %510 = load ptr, ptr %509, align 8, !tbaa !52
  %511 = load i64, ptr %21, align 8, !tbaa !11
  %512 = getelementptr inbounds ptr, ptr %510, i64 %511
  %513 = load ptr, ptr %512, align 8, !tbaa !5
  %514 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 15
  %515 = load ptr, ptr %514, align 8, !tbaa !53
  %516 = load i64, ptr %21, align 8, !tbaa !11
  %517 = getelementptr inbounds ptr, ptr %515, i64 %516
  %518 = load ptr, ptr %517, align 8, !tbaa !5
  %519 = load ptr, ptr %13, align 8, !tbaa !5
  %520 = getelementptr inbounds %struct.LodePNGState, ptr %519, i32 0, i32 2
  %521 = getelementptr inbounds %struct.LodePNGEncoderSettings, ptr %520, i32 0, i32 0
  %522 = call noundef i32 @_ZL13addChunk_iTXtP8ucvectorjPKcS2_S2_S2_P23LodePNGCompressSettings(ptr noundef %15, i32 noundef %498, ptr noundef %503, ptr noundef %508, ptr noundef %513, ptr noundef %518, ptr noundef %521)
  br label %523

523:                                              ; preds = %494
  %524 = load i64, ptr %21, align 8, !tbaa !11
  %525 = add i64 %524, 1
  store i64 %525, ptr %21, align 8, !tbaa !11
  br label %467, !llvm.loop !54

526:                                              ; preds = %491, %480, %467
  %527 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 22
  %528 = getelementptr inbounds [3 x ptr], ptr %527, i64 0, i64 2
  %529 = load ptr, ptr %528, align 8, !tbaa !5
  %530 = icmp ne ptr %529, null
  br i1 %530, label %531, label %547

531:                                              ; preds = %526
  %532 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 22
  %533 = getelementptr inbounds [3 x ptr], ptr %532, i64 0, i64 2
  %534 = load ptr, ptr %533, align 8, !tbaa !5
  %535 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 23
  %536 = getelementptr inbounds [3 x i64], ptr %535, i64 0, i64 2
  %537 = load i64, ptr %536, align 8, !tbaa !11
  %538 = call noundef i32 @_ZL16addUnknownChunksP8ucvectorPhm(ptr noundef %15, ptr noundef %534, i64 noundef %537)
  %539 = load ptr, ptr %13, align 8, !tbaa !5
  %540 = getelementptr inbounds %struct.LodePNGState, ptr %539, i32 0, i32 5
  store i32 %538, ptr %540, align 8, !tbaa !13
  %541 = load ptr, ptr %13, align 8, !tbaa !5
  %542 = getelementptr inbounds %struct.LodePNGState, ptr %541, i32 0, i32 5
  %543 = load i32, ptr %542, align 8, !tbaa !13
  %544 = icmp ne i32 %543, 0
  br i1 %544, label %545, label %546

545:                                              ; preds = %531
  store i32 3, ptr %18, align 4
  br label %549

546:                                              ; preds = %531
  br label %547

547:                                              ; preds = %546, %526
  %548 = call noundef i32 @_ZL13addChunk_IENDP8ucvector(ptr noundef %15)
  store i32 3, ptr %18, align 4
  br label %549

549:                                              ; preds = %547, %545, %362, %347, %252
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  br label %550

550:                                              ; preds = %549, %216
  call void @_Z20lodepng_info_cleanupP11LodePNGInfo(ptr noundef %14)
  %551 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZL6myfreePv(ptr noundef %551)
  %552 = getelementptr inbounds %struct.ucvector, ptr %15, i32 0, i32 0
  %553 = load ptr, ptr %552, align 8, !tbaa !55
  %554 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %553, ptr %554, align 8, !tbaa !5
  %555 = getelementptr inbounds %struct.ucvector, ptr %15, i32 0, i32 1
  %556 = load i64, ptr %555, align 8, !tbaa !57
  %557 = load ptr, ptr %9, align 8, !tbaa !5
  store i64 %556, ptr %557, align 8, !tbaa !11
  %558 = load ptr, ptr %13, align 8, !tbaa !5
  %559 = getelementptr inbounds %struct.LodePNGState, ptr %558, i32 0, i32 5
  %560 = load i32, ptr %559, align 8, !tbaa !13
  store i32 %560, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %561

561:                                              ; preds = %550, %148, %128, %111, %102, %92, %81, %50
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 232, ptr %14) #4
  %562 = load i32, ptr %7, align 4
  ret i32 %562
}

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL17doAutoChooseColorP16LodePNGColorModePKhjjS0_18LodePNGAutoConvert(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL24lodepng_color_mode_equalPK16LodePNGColorModeS1_(ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL19preProcessScanlinesPPhPmPKhjjPK11LodePNGInfoPK22LodePNGEncoderSettings(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL13ucvector_initP8ucvector(ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL14writeSignatureP8ucvector(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13addChunk_IHDRP8ucvectorjj16LodePNGColorTypejj(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL16addUnknownChunksP8ucvectorPhm(ptr noundef, ptr noundef, i64 noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13addChunk_PLTEP8ucvectorPK16LodePNGColorMode(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL22getPaletteTranslucencyPKhm(ptr noundef, i64 noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13addChunk_tRNSP8ucvectorPK16LodePNGColorMode(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13addChunk_bKGDP8ucvectorPK11LodePNGInfo(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13addChunk_pHYsP8ucvectorPK11LodePNGInfo(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13addChunk_IDATP8ucvectorPKhmP23LodePNGCompressSettings(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13addChunk_tIMEP8ucvectorPK11LodePNGTime(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13addChunk_zTXtP8ucvectorPKcS2_P23LodePNGCompressSettings(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13addChunk_tEXtP8ucvectorPKcS2_(ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13addChunk_iTXtP8ucvectorjPKcS2_S2_S2_P23LodePNGCompressSettings(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13addChunk_IENDP8ucvector(ptr noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nounwind willreturn memory(read) "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 = { 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 = { nounwind }
attributes #5 = { nounwind willreturn memory(read) }

!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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !10, i64 416}
!14 = !{!"_ZTS12LodePNGState", !15, i64 8, !17, i64 56, !21, i64 144, !23, i64 184, !10, i64 416}
!15 = !{!"_ZTS22LodePNGDecoderSettings", !16, i64 0, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44}
!16 = !{!"_ZTS25LodePNGDecompressSettings", !10, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!17 = !{!"_ZTS22LodePNGEncoderSettings", !18, i64 0, !19, i64 48, !10, i64 52, !20, i64 56, !6, i64 64, !10, i64 72, !10, i64 76, !10, i64 80}
!18 = !{!"_ZTS23LodePNGCompressSettings", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !6, i64 24, !6, i64 32, !6, i64 40}
!19 = !{!"_ZTS18LodePNGAutoConvert", !7, i64 0}
!20 = !{!"_ZTS21LodePNGFilterStrategy", !7, i64 0}
!21 = !{!"_ZTS16LodePNGColorMode", !22, i64 0, !10, i64 4, !6, i64 8, !12, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36}
!22 = !{!"_ZTS16LodePNGColorType", !7, i64 0}
!23 = !{!"_ZTS11LodePNGInfo", !10, i64 0, !10, i64 4, !10, i64 8, !21, i64 16, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !12, i64 72, !6, i64 80, !6, i64 88, !12, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !10, i64 136, !24, i64 140, !10, i64 164, !10, i64 168, !10, i64 172, !10, i64 176, !7, i64 184, !7, i64 208}
!24 = !{!"_ZTS11LodePNGTime", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20}
!25 = !{!23, !22, i64 16}
!26 = !{!14, !10, i64 128}
!27 = !{!23, !12, i64 32}
!28 = !{!14, !19, i64 104}
!29 = !{!14, !10, i64 64}
!30 = !{!14, !10, i64 56}
!31 = !{!14, !10, i64 192}
!32 = !{!23, !10, i64 20}
!33 = !{!14, !22, i64 144}
!34 = !{!14, !10, i64 148}
!35 = !{!23, !10, i64 8}
!36 = !{!23, !6, i64 24}
!37 = !{!23, !10, i64 40}
!38 = !{!23, !10, i64 56}
!39 = !{!23, !10, i64 164}
!40 = !{!23, !10, i64 136}
!41 = !{!23, !12, i64 72}
!42 = !{!23, !6, i64 80}
!43 = !{!14, !10, i64 136}
!44 = !{!23, !6, i64 88}
!45 = distinct !{!45, !46}
!46 = !{!"llvm.loop.mustprogress"}
!47 = !{!14, !10, i64 132}
!48 = distinct !{!48, !46}
!49 = !{!23, !12, i64 96}
!50 = !{!23, !6, i64 104}
!51 = !{!23, !6, i64 112}
!52 = !{!23, !6, i64 120}
!53 = !{!23, !6, i64 128}
!54 = distinct !{!54, !46}
!55 = !{!56, !6, i64 0}
!56 = !{!"_ZTS8ucvector", !6, i64 0, !12, i64 8, !12, i64 16}
!57 = !{!56, !12, i64 8}


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

%struct.LodePNGInfo = type { i32, i32, i32, %struct.LodePNGColorMode, i32, i32, i32, i32, i64, ptr, ptr, i64, ptr, ptr, ptr, ptr, i32, %struct.LodePNGTime, i32, i32, i32, i32, [3 x ptr], [3 x i64] }
%struct.LodePNGColorMode = type { i32, i32, ptr, i64, i32, i32, i32, i32 }
%struct.LodePNGTime = type { i32, i32, i32, i32, i32, i32 }
%struct.ucvector = type { ptr, i64, i64 }

@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [9 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 nounwind uwtable
declare hidden noundef ptr @_ZL8mymallocm(i64 noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL6myfreePv(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z15lodepng_get_bppPK16LodePNGColorMode(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z17lodepng_info_initP11LodePNGInfo(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z20lodepng_info_cleanupP11LodePNGInfo(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z17lodepng_info_copyP11LodePNGInfoPKS_(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z15lodepng_convertPhPKhP16LodePNGColorModeS3_jj(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL18checkColorValidity16LodePNGColorTypej(i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z14lodepng_encodePPhPmPKhjjP12LodePNGState(ptr nocapture noundef writeonly %0, ptr nocapture noundef writeonly %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5) local_unnamed_addr #3 {
  %7 = alloca %struct.LodePNGInfo, align 8
  %8 = alloca %struct.ucvector, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 232, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  store ptr null, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  store i64 0, ptr %10, align 8, !tbaa !9
  store ptr null, ptr %0, align 8, !tbaa !5
  store i64 0, ptr %1, align 8, !tbaa !9
  %11 = getelementptr inbounds i8, ptr %5, i64 416
  store i32 0, ptr %11, align 8, !tbaa !11
  call void @_Z17lodepng_info_initP11LodePNGInfo(ptr noundef nonnull %7)
  %12 = getelementptr inbounds i8, ptr %5, i64 184
  %13 = call noundef i32 @_Z17lodepng_info_copyP11LodePNGInfoPKS_(ptr noundef nonnull %7, ptr noundef nonnull %12)
  %14 = getelementptr inbounds i8, ptr %7, i64 16
  %15 = load i32, ptr %14, align 8, !tbaa !24
  %16 = icmp eq i32 %15, 3
  br i1 %16, label %20, label %17

17:                                               ; preds = %6
  %18 = getelementptr inbounds i8, ptr %5, i64 128
  %19 = load i32, ptr %18, align 8, !tbaa !25
  %.not = icmp eq i32 %19, 0
  br i1 %.not, label %25, label %20

20:                                               ; preds = %17, %6
  %21 = getelementptr inbounds i8, ptr %7, i64 32
  %22 = load i64, ptr %21, align 8
  %23 = add i64 %22, -257
  %or.cond = icmp ult i64 %23, -256
  br i1 %or.cond, label %24, label %25

24:                                               ; preds = %20
  store i32 68, ptr %11, align 8, !tbaa !11
  br label %239

25:                                               ; preds = %20, %17
  %26 = getelementptr inbounds i8, ptr %5, i64 56
  %27 = getelementptr inbounds i8, ptr %5, i64 104
  %28 = load i32, ptr %27, align 8, !tbaa !26
  %.not127 = icmp eq i32 %28, 0
  br i1 %.not127, label %thread-pre-split, label %29

29:                                               ; preds = %25
  %30 = getelementptr inbounds i8, ptr %5, i64 144
  %31 = call noundef i32 @_ZL17doAutoChooseColorP16LodePNGColorModePKhjjS0_18LodePNGAutoConvert(ptr noundef nonnull %14, ptr noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef nonnull %30, i32 noundef %28)
  store i32 %31, ptr %11, align 8, !tbaa !11
  br label %32

thread-pre-split:                                 ; preds = %25
  %.pr = load i32, ptr %11, align 8, !tbaa !11
  br label %32

32:                                               ; preds = %thread-pre-split, %29
  %33 = phi i32 [ %.pr, %thread-pre-split ], [ %31, %29 ]
  %.not128 = icmp eq i32 %33, 0
  br i1 %.not128, label %34, label %239

34:                                               ; preds = %32
  %35 = getelementptr inbounds i8, ptr %5, i64 64
  %36 = load i32, ptr %35, align 8, !tbaa !27
  %37 = icmp ugt i32 %36, 32768
  br i1 %37, label %38, label %39

38:                                               ; preds = %34
  store i32 60, ptr %11, align 8, !tbaa !11
  br label %239

39:                                               ; preds = %34
  %40 = load i32, ptr %26, align 8, !tbaa !28
  %41 = icmp ugt i32 %40, 2
  br i1 %41, label %42, label %43

42:                                               ; preds = %39
  store i32 61, ptr %11, align 8, !tbaa !11
  br label %239

43:                                               ; preds = %39
  %44 = getelementptr inbounds i8, ptr %5, i64 192
  %45 = load i32, ptr %44, align 8, !tbaa !29
  %46 = icmp ugt i32 %45, 1
  br i1 %46, label %47, label %48

47:                                               ; preds = %43
  store i32 71, ptr %11, align 8, !tbaa !11
  br label %239

48:                                               ; preds = %43
  %49 = load i32, ptr %14, align 8, !tbaa !24
  %50 = getelementptr inbounds i8, ptr %7, i64 20
  %51 = load i32, ptr %50, align 4, !tbaa !30
  %52 = call noundef i32 @_ZL18checkColorValidity16LodePNGColorTypej(i32 noundef %49, i32 noundef %51)
  store i32 %52, ptr %11, align 8, !tbaa !11
  %.not129 = icmp eq i32 %52, 0
  br i1 %.not129, label %53, label %239

53:                                               ; preds = %48
  %54 = getelementptr inbounds i8, ptr %5, i64 144
  %55 = load i32, ptr %54, align 8, !tbaa !31
  %56 = getelementptr inbounds i8, ptr %5, i64 148
  %57 = load i32, ptr %56, align 4, !tbaa !32
  %58 = call noundef i32 @_ZL18checkColorValidity16LodePNGColorTypej(i32 noundef %55, i32 noundef %57)
  store i32 %58, ptr %11, align 8, !tbaa !11
  %.not130 = icmp eq i32 %58, 0
  br i1 %.not130, label %59, label %239

59:                                               ; preds = %53
  %60 = call noundef i32 @_ZL24lodepng_color_mode_equalPK16LodePNGColorModeS1_(ptr noundef nonnull %54, ptr noundef nonnull %14)
  %.not131 = icmp eq i32 %60, 0
  br i1 %.not131, label %61, label %76

61:                                               ; preds = %59
  %62 = mul i32 %4, %3
  %63 = call noundef i32 @_Z15lodepng_get_bppPK16LodePNGColorMode(ptr noundef nonnull %14)
  %64 = mul i32 %62, %63
  %65 = add i32 %64, 7
  %66 = lshr i32 %65, 3
  %67 = zext nneg i32 %66 to i64
  %68 = call noundef ptr @_ZL8mymallocm(i64 noundef %67)
  %69 = icmp eq ptr %68, null
  %70 = icmp ugt i32 %65, 7
  %or.cond5 = and i1 %69, %70
  br i1 %or.cond5, label %.thread, label %71

.thread:                                          ; preds = %61
  store i32 83, ptr %11, align 8, !tbaa !11
  br label %.thread154

71:                                               ; preds = %61
  %.pr152 = load i32, ptr %11, align 8, !tbaa !11
  %.not132 = icmp eq i32 %.pr152, 0
  br i1 %.not132, label %72, label %.thread154

72:                                               ; preds = %71
  %73 = call noundef i32 @_Z15lodepng_convertPhPKhP16LodePNGColorModeS3_jj(ptr noundef %68, ptr noundef %2, ptr noundef nonnull %14, ptr noundef nonnull %54, i32 noundef %3, i32 noundef %4)
  store i32 %73, ptr %11, align 8, !tbaa !11
  %.not133 = icmp eq i32 %73, 0
  br i1 %.not133, label %74, label %.thread154

74:                                               ; preds = %72
  %75 = call noundef i32 @_ZL19preProcessScanlinesPPhPmPKhjjPK11LodePNGInfoPK22LodePNGEncoderSettings(ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef %68, i32 noundef %3, i32 noundef %4, ptr noundef nonnull %7, ptr noundef nonnull %26)
  br label %.thread154

.thread154:                                       ; preds = %71, %.thread, %74, %72
  call void @_ZL6myfreePv(ptr noundef %68)
  br label %78

76:                                               ; preds = %59
  %77 = call noundef i32 @_ZL19preProcessScanlinesPPhPmPKhjjPK11LodePNGInfoPK22LodePNGEncoderSettings(ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef nonnull %7, ptr noundef nonnull %26)
  br label %78

78:                                               ; preds = %76, %.thread154
  call void @_ZL13ucvector_initP8ucvector(ptr noundef nonnull %8)
  %79 = load i32, ptr %11, align 8, !tbaa !11
  %.not134 = icmp eq i32 %79, 0
  br i1 %.not134, label %80, label %233

80:                                               ; preds = %78
  call void @_ZL14writeSignatureP8ucvector(ptr noundef nonnull %8)
  %81 = load i32, ptr %14, align 8, !tbaa !24
  %82 = load i32, ptr %50, align 4, !tbaa !30
  %83 = getelementptr inbounds i8, ptr %7, i64 8
  %84 = load i32, ptr %83, align 8, !tbaa !33
  %85 = call noundef i32 @_ZL13addChunk_IHDRP8ucvectorjj16LodePNGColorTypejj(ptr noundef nonnull %8, i32 noundef %3, i32 noundef %4, i32 noundef %81, i32 noundef %82, i32 noundef %84)
  %86 = getelementptr inbounds i8, ptr %7, i64 184
  %87 = load ptr, ptr %86, align 8, !tbaa !5
  %.not135 = icmp eq ptr %87, null
  br i1 %.not135, label %92, label %88

88:                                               ; preds = %80
  %89 = getelementptr inbounds i8, ptr %7, i64 208
  %90 = load i64, ptr %89, align 8, !tbaa !9
  %91 = call noundef i32 @_ZL16addUnknownChunksP8ucvectorPhm(ptr noundef nonnull %8, ptr noundef nonnull %87, i64 noundef %90)
  store i32 %91, ptr %11, align 8, !tbaa !11
  %.not136 = icmp eq i32 %91, 0
  br i1 %.not136, label %92, label %233

92:                                               ; preds = %88, %80
  %93 = load i32, ptr %14, align 8
  %94 = icmp eq i32 %93, 3
  br i1 %94, label %95, label %97

95:                                               ; preds = %92
  %96 = call noundef i32 @_ZL13addChunk_PLTEP8ucvectorPK16LodePNGColorMode(ptr noundef nonnull %8, ptr noundef nonnull %14)
  %.pr157.pre173.pre = load i32, ptr %14, align 8
  br label %97

97:                                               ; preds = %95, %92
  %.pr157.pre173 = phi i32 [ %.pr157.pre173.pre, %95 ], [ %93, %92 ]
  %98 = getelementptr inbounds i8, ptr %5, i64 128
  %99 = load i32, ptr %98, align 8, !tbaa !25
  %.not137 = icmp ne i32 %99, 0
  %100 = and i32 %.pr157.pre173, -5
  %or.cond9 = icmp eq i32 %100, 2
  %or.cond181 = select i1 %.not137, i1 %or.cond9, i1 false
  br i1 %or.cond181, label %101, label %thread-pre-split156

101:                                              ; preds = %97
  %102 = call noundef i32 @_ZL13addChunk_PLTEP8ucvectorPK16LodePNGColorMode(ptr noundef nonnull %8, ptr noundef nonnull %14)
  %.pr157.pre = load i32, ptr %14, align 8, !tbaa !24
  br label %thread-pre-split156

thread-pre-split156:                              ; preds = %101, %97
  %103 = phi i32 [ %.pr157.pre173, %97 ], [ %.pr157.pre, %101 ]
  %104 = icmp eq i32 %103, 3
  br i1 %104, label %105, label %113

105:                                              ; preds = %thread-pre-split156
  %106 = getelementptr inbounds i8, ptr %7, i64 24
  %107 = load ptr, ptr %106, align 8, !tbaa !34
  %108 = getelementptr inbounds i8, ptr %7, i64 32
  %109 = load i64, ptr %108, align 8, !tbaa !35
  %110 = call noundef i32 @_ZL22getPaletteTranslucencyPKhm(ptr noundef %107, i64 noundef %109)
  %.not138 = icmp eq i32 %110, 0
  br i1 %.not138, label %113, label %111

111:                                              ; preds = %105
  %112 = call noundef i32 @_ZL13addChunk_tRNSP8ucvectorPK16LodePNGColorMode(ptr noundef nonnull %8, ptr noundef nonnull %14)
  br label %113

113:                                              ; preds = %111, %105, %thread-pre-split156
  %114 = load i32, ptr %14, align 8
  %115 = and i32 %114, -3
  %or.cond13 = icmp eq i32 %115, 0
  %116 = getelementptr inbounds i8, ptr %7, i64 40
  %117 = load i32, ptr %116, align 8
  %118 = icmp ne i32 %117, 0
  %or.cond17 = select i1 %or.cond13, i1 %118, i1 false
  br i1 %or.cond17, label %119, label %121

119:                                              ; preds = %113
  %120 = call noundef i32 @_ZL13addChunk_tRNSP8ucvectorPK16LodePNGColorMode(ptr noundef nonnull %8, ptr noundef nonnull %14)
  br label %121

121:                                              ; preds = %113, %119
  %122 = getelementptr inbounds i8, ptr %7, i64 56
  %123 = load i32, ptr %122, align 8, !tbaa !36
  %.not139 = icmp eq i32 %123, 0
  br i1 %.not139, label %126, label %124

124:                                              ; preds = %121
  %125 = call noundef i32 @_ZL13addChunk_bKGDP8ucvectorPK11LodePNGInfo(ptr noundef nonnull %8, ptr noundef nonnull %7)
  br label %126

126:                                              ; preds = %124, %121
  %127 = getelementptr inbounds i8, ptr %7, i64 164
  %128 = load i32, ptr %127, align 4, !tbaa !37
  %.not140 = icmp eq i32 %128, 0
  br i1 %.not140, label %131, label %129

129:                                              ; preds = %126
  %130 = call noundef i32 @_ZL13addChunk_pHYsP8ucvectorPK11LodePNGInfo(ptr noundef nonnull %8, ptr noundef nonnull %7)
  br label %131

131:                                              ; preds = %129, %126
  %132 = getelementptr inbounds i8, ptr %7, i64 192
  %133 = load ptr, ptr %132, align 8, !tbaa !5
  %.not141 = icmp eq ptr %133, null
  br i1 %.not141, label %138, label %134

134:                                              ; preds = %131
  %135 = getelementptr inbounds i8, ptr %7, i64 216
  %136 = load i64, ptr %135, align 8, !tbaa !9
  %137 = call noundef i32 @_ZL16addUnknownChunksP8ucvectorPhm(ptr noundef nonnull %8, ptr noundef nonnull %133, i64 noundef %136)
  store i32 %137, ptr %11, align 8, !tbaa !11
  %.not142 = icmp eq i32 %137, 0
  br i1 %.not142, label %138, label %233

138:                                              ; preds = %134, %131
  %139 = load ptr, ptr %9, align 8, !tbaa !5
  %140 = load i64, ptr %10, align 8, !tbaa !9
  %141 = call noundef i32 @_ZL13addChunk_IDATP8ucvectorPKhmP23LodePNGCompressSettings(ptr noundef nonnull %8, ptr noundef %139, i64 noundef %140, ptr noundef nonnull %26)
  store i32 %141, ptr %11, align 8, !tbaa !11
  %.not143 = icmp eq i32 %141, 0
  br i1 %.not143, label %142, label %233

142:                                              ; preds = %138
  %143 = getelementptr inbounds i8, ptr %7, i64 136
  %144 = load i32, ptr %143, align 8, !tbaa !38
  %.not144 = icmp eq i32 %144, 0
  br i1 %.not144, label %148, label %145

145:                                              ; preds = %142
  %146 = getelementptr inbounds i8, ptr %7, i64 140
  %147 = call noundef i32 @_ZL13addChunk_tIMEP8ucvectorPK11LodePNGTime(ptr noundef nonnull %8, ptr noundef nonnull %146)
  br label %148

148:                                              ; preds = %145, %142
  %149 = getelementptr inbounds i8, ptr %7, i64 72
  %150 = load i64, ptr %149, align 8, !tbaa !39
  %.not168 = icmp eq i64 %150, 0
  br i1 %.not168, label %.loopexit159.thread, label %.lr.ph

.lr.ph:                                           ; preds = %148
  %151 = getelementptr inbounds i8, ptr %7, i64 80
  %152 = getelementptr inbounds i8, ptr %5, i64 136
  %153 = getelementptr inbounds i8, ptr %7, i64 88
  %154 = load ptr, ptr %151, align 8, !tbaa !40
  %155 = load ptr, ptr %154, align 8, !tbaa !5
  %156 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %155) #5
  %157 = icmp ugt i64 %156, 79
  br i1 %157, label %.loopexit159.sink.split, label %.lr.ph186

158:                                              ; preds = %177
  %159 = load ptr, ptr %151, align 8, !tbaa !40
  %160 = getelementptr inbounds ptr, ptr %159, i64 %178
  %161 = load ptr, ptr %160, align 8, !tbaa !5
  %162 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %161) #5
  %163 = icmp ugt i64 %162, 79
  br i1 %163, label %.loopexit159.sink.split, label %.lr.ph186, !llvm.loop !41

.lr.ph186:                                        ; preds = %.lr.ph, %158
  %164 = phi i64 [ %162, %158 ], [ %156, %.lr.ph ]
  %165 = phi ptr [ %161, %158 ], [ %155, %.lr.ph ]
  %.0116162185 = phi i64 [ %178, %158 ], [ 0, %.lr.ph ]
  %166 = phi i64 [ %179, %158 ], [ %150, %.lr.ph ]
  %167 = icmp eq i64 %164, 0
  br i1 %167, label %.loopexit159.sink.split, label %168

168:                                              ; preds = %.lr.ph186
  %169 = load i32, ptr %152, align 8, !tbaa !43
  %.not145 = icmp eq i32 %169, 0
  %170 = load ptr, ptr %153, align 8, !tbaa !44
  %171 = getelementptr inbounds ptr, ptr %170, i64 %.0116162185
  %172 = load ptr, ptr %171, align 8, !tbaa !5
  br i1 %.not145, label %175, label %173

173:                                              ; preds = %168
  %174 = call noundef i32 @_ZL13addChunk_zTXtP8ucvectorPKcS2_P23LodePNGCompressSettings(ptr noundef nonnull %8, ptr noundef %165, ptr noundef %172, ptr noundef nonnull %26)
  br label %177

175:                                              ; preds = %168
  %176 = call noundef i32 @_ZL13addChunk_tEXtP8ucvectorPKcS2_(ptr noundef nonnull %8, ptr noundef %165, ptr noundef %172)
  br label %177

177:                                              ; preds = %173, %175
  %178 = add nuw i64 %.0116162185, 1
  %179 = load i64, ptr %149, align 8, !tbaa !39
  %180 = icmp ult i64 %178, %179
  br i1 %180, label %158, label %.loopexit159, !llvm.loop !41

.loopexit159.sink.split:                          ; preds = %158, %.lr.ph186, %.lr.ph
  %.lcssa = phi i64 [ %150, %.lr.ph ], [ %179, %158 ], [ %166, %.lr.ph186 ]
  %.sink = phi i32 [ 66, %.lr.ph ], [ 66, %158 ], [ 67, %.lr.ph186 ]
  store i32 %.sink, ptr %11, align 8, !tbaa !11
  br label %.loopexit159

.loopexit159:                                     ; preds = %177, %.loopexit159.sink.split
  %181 = phi i64 [ %.lcssa, %.loopexit159.sink.split ], [ %179, %177 ]
  %182 = getelementptr inbounds i8, ptr %5, i64 132
  %183 = load i32, ptr %182, align 4, !tbaa !45
  %.not146 = icmp eq i32 %183, 0
  br i1 %.not146, label %.loopexit158, label %.preheader

.loopexit159.thread:                              ; preds = %148
  %184 = getelementptr inbounds i8, ptr %5, i64 132
  %185 = load i32, ptr %184, align 4, !tbaa !45
  %.not146176 = icmp eq i32 %185, 0
  br i1 %.not146176, label %.loopexit158, label %.critedge

.preheader:                                       ; preds = %.loopexit159
  %.not148163.not = icmp eq i64 %181, 0
  br i1 %.not148163.not, label %.critedge, label %.lr.ph165

.lr.ph165:                                        ; preds = %.preheader
  %186 = getelementptr inbounds i8, ptr %7, i64 80
  %187 = load ptr, ptr %186, align 8, !tbaa !40
  br label %190

188:                                              ; preds = %190
  %189 = add nuw i64 %.1164, 1
  %exitcond.not = icmp eq i64 %189, %181
  br i1 %exitcond.not, label %.critedge, label %190, !llvm.loop !46

190:                                              ; preds = %.lr.ph165, %188
  %.1164 = phi i64 [ 0, %.lr.ph165 ], [ %189, %188 ]
  %191 = getelementptr inbounds ptr, ptr %187, i64 %.1164
  %192 = load ptr, ptr %191, align 8, !tbaa !5
  %193 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %192, ptr noundef nonnull dereferenceable(1) @.str.2) #5
  %.not147 = icmp eq i32 %193, 0
  br i1 %.not147, label %.loopexit158, label %188

.critedge:                                        ; preds = %188, %.loopexit159.thread, %.preheader
  %194 = call noundef i32 @_ZL13addChunk_tEXtP8ucvectorPKcS2_(ptr noundef nonnull %8, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3)
  br label %.loopexit158

.loopexit158:                                     ; preds = %190, %.loopexit159.thread, %.critedge, %.loopexit159
  %195 = getelementptr inbounds i8, ptr %7, i64 96
  %196 = load i64, ptr %195, align 8, !tbaa !47
  %.not169 = icmp eq i64 %196, 0
  br i1 %.not169, label %.loopexit, label %.lr.ph167

.lr.ph167:                                        ; preds = %.loopexit158
  %197 = getelementptr inbounds i8, ptr %7, i64 104
  %198 = getelementptr inbounds i8, ptr %5, i64 136
  %199 = getelementptr inbounds i8, ptr %7, i64 112
  %200 = getelementptr inbounds i8, ptr %7, i64 120
  %201 = getelementptr inbounds i8, ptr %7, i64 128
  br label %202

202:                                              ; preds = %.lr.ph167, %210
  %.2166 = phi i64 [ 0, %.lr.ph167 ], [ %222, %210 ]
  %203 = load ptr, ptr %197, align 8, !tbaa !48
  %204 = getelementptr inbounds ptr, ptr %203, i64 %.2166
  %205 = load ptr, ptr %204, align 8, !tbaa !5
  %206 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %205) #5
  %207 = icmp ugt i64 %206, 79
  br i1 %207, label %.loopexit.sink.split, label %208

208:                                              ; preds = %202
  %209 = icmp eq i64 %206, 0
  br i1 %209, label %.loopexit.sink.split, label %210

210:                                              ; preds = %208
  %211 = load i32, ptr %198, align 8, !tbaa !43
  %212 = load ptr, ptr %199, align 8, !tbaa !49
  %213 = getelementptr inbounds ptr, ptr %212, i64 %.2166
  %214 = load ptr, ptr %213, align 8, !tbaa !5
  %215 = load ptr, ptr %200, align 8, !tbaa !50
  %216 = getelementptr inbounds ptr, ptr %215, i64 %.2166
  %217 = load ptr, ptr %216, align 8, !tbaa !5
  %218 = load ptr, ptr %201, align 8, !tbaa !51
  %219 = getelementptr inbounds ptr, ptr %218, i64 %.2166
  %220 = load ptr, ptr %219, align 8, !tbaa !5
  %221 = call noundef i32 @_ZL13addChunk_iTXtP8ucvectorjPKcS2_S2_S2_P23LodePNGCompressSettings(ptr noundef nonnull %8, i32 noundef %211, ptr noundef %205, ptr noundef %214, ptr noundef %217, ptr noundef %220, ptr noundef nonnull %26)
  %222 = add nuw i64 %.2166, 1
  %223 = load i64, ptr %195, align 8, !tbaa !47
  %224 = icmp ult i64 %222, %223
  br i1 %224, label %202, label %.loopexit, !llvm.loop !52

.loopexit.sink.split:                             ; preds = %208, %202
  %.sink182 = phi i32 [ 66, %202 ], [ 67, %208 ]
  store i32 %.sink182, ptr %11, align 8, !tbaa !11
  br label %.loopexit

.loopexit:                                        ; preds = %210, %.loopexit.sink.split, %.loopexit158
  %225 = getelementptr inbounds i8, ptr %7, i64 200
  %226 = load ptr, ptr %225, align 8, !tbaa !5
  %.not149 = icmp eq ptr %226, null
  br i1 %.not149, label %231, label %227

227:                                              ; preds = %.loopexit
  %228 = getelementptr inbounds i8, ptr %7, i64 224
  %229 = load i64, ptr %228, align 8, !tbaa !9
  %230 = call noundef i32 @_ZL16addUnknownChunksP8ucvectorPhm(ptr noundef nonnull %8, ptr noundef nonnull %226, i64 noundef %229)
  store i32 %230, ptr %11, align 8, !tbaa !11
  %.not150 = icmp eq i32 %230, 0
  br i1 %.not150, label %231, label %233

231:                                              ; preds = %227, %.loopexit
  %232 = call noundef i32 @_ZL13addChunk_IENDP8ucvector(ptr noundef nonnull %8)
  br label %233

233:                                              ; preds = %231, %88, %134, %138, %227, %78
  call void @_Z20lodepng_info_cleanupP11LodePNGInfo(ptr noundef nonnull %7)
  %234 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZL6myfreePv(ptr noundef %234)
  %235 = load ptr, ptr %8, align 8, !tbaa !53
  store ptr %235, ptr %0, align 8, !tbaa !5
  %236 = getelementptr inbounds i8, ptr %8, i64 8
  %237 = load i64, ptr %236, align 8, !tbaa !55
  store i64 %237, ptr %1, align 8, !tbaa !9
  %238 = load i32, ptr %11, align 8, !tbaa !11
  br label %239

239:                                              ; preds = %53, %48, %32, %233, %47, %42, %38, %24
  %.0117 = phi i32 [ 68, %24 ], [ 60, %38 ], [ 61, %42 ], [ 71, %47 ], [ %238, %233 ], [ %33, %32 ], [ %52, %48 ], [ %58, %53 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 232, ptr nonnull %7) #4
  ret i32 %.0117
}

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL17doAutoChooseColorP16LodePNGColorModePKhjjS0_18LodePNGAutoConvert(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL24lodepng_color_mode_equalPK16LodePNGColorModeS1_(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL19preProcessScanlinesPPhPmPKhjjPK11LodePNGInfoPK22LodePNGEncoderSettings(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL13ucvector_initP8ucvector(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL14writeSignatureP8ucvector(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13addChunk_IHDRP8ucvectorjj16LodePNGColorTypejj(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL16addUnknownChunksP8ucvectorPhm(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13addChunk_PLTEP8ucvectorPK16LodePNGColorMode(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL22getPaletteTranslucencyPKhm(ptr noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13addChunk_tRNSP8ucvectorPK16LodePNGColorMode(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13addChunk_bKGDP8ucvectorPK11LodePNGInfo(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13addChunk_pHYsP8ucvectorPK11LodePNGInfo(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13addChunk_IDATP8ucvectorPKhmP23LodePNGCompressSettings(ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13addChunk_tIMEP8ucvectorPK11LodePNGTime(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13addChunk_zTXtP8ucvectorPKcS2_P23LodePNGCompressSettings(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13addChunk_tEXtP8ucvectorPKcS2_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13addChunk_iTXtP8ucvectorjPKcS2_S2_S2_P23LodePNGCompressSettings(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL13addChunk_IENDP8ucvector(ptr noundef) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 = { 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 = { nounwind }
attributes #5 = { nounwind willreturn memory(read) }

!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 = !{!"long", !7, i64 0}
!11 = !{!12, !15, i64 416}
!12 = !{!"_ZTS12LodePNGState", !13, i64 8, !16, i64 56, !20, i64 144, !22, i64 184, !15, i64 416}
!13 = !{!"_ZTS22LodePNGDecoderSettings", !14, i64 0, !15, i64 32, !15, i64 36, !15, i64 40, !15, i64 44}
!14 = !{!"_ZTS25LodePNGDecompressSettings", !15, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTS22LodePNGEncoderSettings", !17, i64 0, !18, i64 48, !15, i64 52, !19, i64 56, !6, i64 64, !15, i64 72, !15, i64 76, !15, i64 80}
!17 = !{!"_ZTS23LodePNGCompressSettings", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12, !15, i64 16, !15, i64 20, !6, i64 24, !6, i64 32, !6, i64 40}
!18 = !{!"_ZTS18LodePNGAutoConvert", !7, i64 0}
!19 = !{!"_ZTS21LodePNGFilterStrategy", !7, i64 0}
!20 = !{!"_ZTS16LodePNGColorMode", !21, i64 0, !15, i64 4, !6, i64 8, !10, i64 16, !15, i64 24, !15, i64 28, !15, i64 32, !15, i64 36}
!21 = !{!"_ZTS16LodePNGColorType", !7, i64 0}
!22 = !{!"_ZTS11LodePNGInfo", !15, i64 0, !15, i64 4, !15, i64 8, !20, i64 16, !15, i64 56, !15, i64 60, !15, i64 64, !15, i64 68, !10, i64 72, !6, i64 80, !6, i64 88, !10, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !15, i64 136, !23, i64 140, !15, i64 164, !15, i64 168, !15, i64 172, !15, i64 176, !7, i64 184, !7, i64 208}
!23 = !{!"_ZTS11LodePNGTime", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12, !15, i64 16, !15, i64 20}
!24 = !{!22, !21, i64 16}
!25 = !{!12, !15, i64 128}
!26 = !{!12, !18, i64 104}
!27 = !{!12, !15, i64 64}
!28 = !{!12, !15, i64 56}
!29 = !{!12, !15, i64 192}
!30 = !{!22, !15, i64 20}
!31 = !{!12, !21, i64 144}
!32 = !{!12, !15, i64 148}
!33 = !{!22, !15, i64 8}
!34 = !{!22, !6, i64 24}
!35 = !{!22, !10, i64 32}
!36 = !{!22, !15, i64 56}
!37 = !{!22, !15, i64 164}
!38 = !{!22, !15, i64 136}
!39 = !{!22, !10, i64 72}
!40 = !{!22, !6, i64 80}
!41 = distinct !{!41, !42}
!42 = !{!"llvm.loop.mustprogress"}
!43 = !{!12, !15, i64 136}
!44 = !{!22, !6, i64 88}
!45 = !{!12, !15, i64 132}
!46 = distinct !{!46, !42}
!47 = !{!22, !10, i64 96}
!48 = !{!22, !6, i64 104}
!49 = !{!22, !6, i64 112}
!50 = !{!22, !6, i64 120}
!51 = !{!22, !6, i64 128}
!52 = distinct !{!52, !42}
!53 = !{!54, !6, i64 0}
!54 = !{!"_ZTS8ucvector", !6, i64 0, !10, i64 8, !10, i64 16}
!55 = !{!54, !10, i64 8}


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