; LLVM IR from drohmer/cgp :: library/third_party/src/lodepng/lodepng.ll (Z14lodepng_encodePPhPmPKhjjP12LodePNGState)

; 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, 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 }

@LODEPNG_VERSION_STRING = external dso_local global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [8 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 @_ZL14lodepng_mallocm(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 @_ZL12lodepng_freePv(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_convertPhPKhPK16LodePNGColorModeS4_jj(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 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 dso_local noundef i32 @_Z25lodepng_auto_choose_colorP16LodePNGColorModePKhjjPKS_(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr 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
  %27 = load ptr, ptr %13, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.LodePNGState, ptr %27, i32 0, i32 4
  %29 = getelementptr inbounds %struct.LodePNGInfo, ptr %28, i32 0, i32 3
  %30 = getelementptr inbounds %struct.LodePNGColorMode, ptr %29, i32 0, i32 0
  %31 = load i32, ptr %30, align 8, !tbaa !24
  %32 = icmp eq i32 %31, 3
  br i1 %32, label %39, label %33

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

39:                                               ; preds = %33, %6
  %40 = load ptr, ptr %13, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.LodePNGState, ptr %40, i32 0, i32 4
  %42 = getelementptr inbounds %struct.LodePNGInfo, ptr %41, i32 0, i32 3
  %43 = getelementptr inbounds %struct.LodePNGColorMode, ptr %42, i32 0, i32 3
  %44 = load i64, ptr %43, align 8, !tbaa !26
  %45 = icmp eq i64 %44, 0
  br i1 %45, label %53, label %46

46:                                               ; preds = %39
  %47 = load ptr, ptr %13, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.LodePNGState, ptr %47, i32 0, i32 4
  %49 = getelementptr inbounds %struct.LodePNGInfo, ptr %48, i32 0, i32 3
  %50 = getelementptr inbounds %struct.LodePNGColorMode, ptr %49, i32 0, i32 3
  %51 = load i64, ptr %50, align 8, !tbaa !26
  %52 = icmp ugt i64 %51, 256
  br i1 %52, label %53, label %56

53:                                               ; preds = %46, %39
  %54 = load ptr, ptr %13, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.LodePNGState, ptr %54, i32 0, i32 5
  store i32 68, ptr %55, align 8, !tbaa !13
  store i32 68, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %554

56:                                               ; preds = %46, %33
  %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 0
  %60 = getelementptr inbounds %struct.LodePNGCompressSettings, ptr %59, i32 0, i32 0
  %61 = load i32, ptr %60, align 8, !tbaa !27
  %62 = icmp ugt i32 %61, 2
  br i1 %62, label %63, label %66

63:                                               ; preds = %56
  %64 = load ptr, ptr %13, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.LodePNGState, ptr %64, i32 0, i32 5
  store i32 61, ptr %65, align 8, !tbaa !13
  store i32 61, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %554

66:                                               ; preds = %56
  %67 = load ptr, ptr %13, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.LodePNGState, ptr %67, i32 0, i32 4
  %69 = getelementptr inbounds %struct.LodePNGInfo, ptr %68, i32 0, i32 2
  %70 = load i32, ptr %69, align 8, !tbaa !28
  %71 = icmp ugt i32 %70, 1
  br i1 %71, label %72, label %75

72:                                               ; preds = %66
  %73 = load ptr, ptr %13, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.LodePNGState, ptr %73, i32 0, i32 5
  store i32 71, ptr %74, align 8, !tbaa !13
  store i32 71, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %554

75:                                               ; preds = %66
  %76 = load ptr, ptr %13, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.LodePNGState, ptr %76, i32 0, i32 4
  %78 = getelementptr inbounds %struct.LodePNGInfo, ptr %77, i32 0, i32 3
  %79 = getelementptr inbounds %struct.LodePNGColorMode, ptr %78, i32 0, i32 0
  %80 = load i32, ptr %79, align 8, !tbaa !24
  %81 = load ptr, ptr %13, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.LodePNGState, ptr %81, i32 0, i32 4
  %83 = getelementptr inbounds %struct.LodePNGInfo, ptr %82, i32 0, i32 3
  %84 = getelementptr inbounds %struct.LodePNGColorMode, ptr %83, i32 0, i32 1
  %85 = load i32, ptr %84, align 4, !tbaa !29
  %86 = call noundef i32 @_ZL18checkColorValidity16LodePNGColorTypej(i32 noundef %80, i32 noundef %85)
  %87 = load ptr, ptr %13, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.LodePNGState, ptr %87, i32 0, i32 5
  store i32 %86, ptr %88, align 8, !tbaa !13
  %89 = load ptr, ptr %13, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.LodePNGState, ptr %89, i32 0, i32 5
  %91 = load i32, ptr %90, align 8, !tbaa !13
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %93, label %97

93:                                               ; preds = %75
  %94 = load ptr, ptr %13, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.LodePNGState, ptr %94, i32 0, i32 5
  %96 = load i32, ptr %95, align 8, !tbaa !13
  store i32 %96, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %554

97:                                               ; preds = %75
  %98 = load ptr, ptr %13, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.LodePNGState, ptr %98, i32 0, i32 3
  %100 = getelementptr inbounds %struct.LodePNGColorMode, ptr %99, i32 0, i32 0
  %101 = load i32, ptr %100, align 8, !tbaa !30
  %102 = load ptr, ptr %13, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.LodePNGState, ptr %102, i32 0, i32 3
  %104 = getelementptr inbounds %struct.LodePNGColorMode, ptr %103, i32 0, i32 1
  %105 = load i32, ptr %104, align 4, !tbaa !31
  %106 = call noundef i32 @_ZL18checkColorValidity16LodePNGColorTypej(i32 noundef %101, i32 noundef %105)
  %107 = load ptr, ptr %13, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.LodePNGState, ptr %107, i32 0, i32 5
  store i32 %106, ptr %108, align 8, !tbaa !13
  %109 = load ptr, ptr %13, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.LodePNGState, ptr %109, i32 0, i32 5
  %111 = load i32, ptr %110, align 8, !tbaa !13
  %112 = icmp ne i32 %111, 0
  br i1 %112, label %113, label %117

113:                                              ; preds = %97
  %114 = load ptr, ptr %13, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.LodePNGState, ptr %114, i32 0, i32 5
  %116 = load i32, ptr %115, align 8, !tbaa !13
  store i32 %116, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %554

117:                                              ; preds = %97
  call void @_Z17lodepng_info_initP11LodePNGInfo(ptr noundef %14)
  %118 = load ptr, ptr %13, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.LodePNGState, ptr %118, i32 0, i32 4
  %120 = call noundef i32 @_Z17lodepng_info_copyP11LodePNGInfoPKS_(ptr noundef %14, ptr noundef %119)
  %121 = load ptr, ptr %13, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.LodePNGState, ptr %121, i32 0, i32 2
  %123 = getelementptr inbounds %struct.LodePNGEncoderSettings, ptr %122, i32 0, i32 1
  %124 = load i32, ptr %123, align 8, !tbaa !32
  %125 = icmp ne i32 %124, 0
  br i1 %125, label %126, label %136

126:                                              ; preds = %117
  %127 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %128 = load ptr, ptr %10, align 8, !tbaa !5
  %129 = load i32, ptr %11, align 4, !tbaa !9
  %130 = load i32, ptr %12, align 4, !tbaa !9
  %131 = load ptr, ptr %13, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.LodePNGState, ptr %131, i32 0, i32 3
  %133 = call noundef i32 @_Z25lodepng_auto_choose_colorP16LodePNGColorModePKhjjPKS_(ptr noundef %127, ptr noundef %128, i32 noundef %129, i32 noundef %130, ptr noundef %132)
  %134 = load ptr, ptr %13, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.LodePNGState, ptr %134, i32 0, i32 5
  store i32 %133, ptr %135, align 8, !tbaa !13
  br label %136

136:                                              ; preds = %126, %117
  %137 = load ptr, ptr %13, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.LodePNGState, ptr %137, i32 0, i32 5
  %139 = load i32, ptr %138, align 8, !tbaa !13
  %140 = icmp ne i32 %139, 0
  br i1 %140, label %207, label %141

141:                                              ; preds = %136
  %142 = load ptr, ptr %13, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.LodePNGState, ptr %142, i32 0, i32 3
  %144 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %145 = call noundef i32 @_ZL24lodepng_color_mode_equalPK16LodePNGColorModeS1_(ptr noundef %143, ptr noundef %144)
  %146 = icmp ne i32 %145, 0
  br i1 %146, label %199, label %147

147:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %148 = load i32, ptr %11, align 4, !tbaa !9
  %149 = zext i32 %148 to i64
  %150 = load i32, ptr %12, align 4, !tbaa !9
  %151 = zext i32 %150 to i64
  %152 = mul i64 %149, %151
  %153 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %154 = call noundef i32 @_Z15lodepng_get_bppPK16LodePNGColorMode(ptr noundef %153)
  %155 = zext i32 %154 to i64
  %156 = mul i64 %152, %155
  %157 = add i64 %156, 7
  %158 = udiv i64 %157, 8
  store i64 %158, ptr %20, align 8, !tbaa !11
  %159 = load i64, ptr %20, align 8, !tbaa !11
  %160 = call noundef ptr @_ZL14lodepng_mallocm(i64 noundef %159)
  store ptr %160, ptr %19, align 8, !tbaa !5
  %161 = load ptr, ptr %19, align 8, !tbaa !5
  %162 = icmp ne ptr %161, null
  br i1 %162, label %169, label %163

163:                                              ; preds = %147
  %164 = load i64, ptr %20, align 8, !tbaa !11
  %165 = icmp ne i64 %164, 0
  br i1 %165, label %166, label %169

166:                                              ; preds = %163
  %167 = load ptr, ptr %13, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.LodePNGState, ptr %167, i32 0, i32 5
  store i32 83, ptr %168, align 8, !tbaa !13
  br label %169

169:                                              ; preds = %166, %163, %147
  %170 = load ptr, ptr %13, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.LodePNGState, ptr %170, i32 0, i32 5
  %172 = load i32, ptr %171, align 8, !tbaa !13
  %173 = icmp ne i32 %172, 0
  br i1 %173, label %185, label %174

174:                                              ; preds = %169
  %175 = load ptr, ptr %19, align 8, !tbaa !5
  %176 = load ptr, ptr %10, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %178 = load ptr, ptr %13, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.LodePNGState, ptr %178, i32 0, i32 3
  %180 = load i32, ptr %11, align 4, !tbaa !9
  %181 = load i32, ptr %12, align 4, !tbaa !9
  %182 = call noundef i32 @_Z15lodepng_convertPhPKhPK16LodePNGColorModeS4_jj(ptr noundef %175, ptr noundef %176, ptr noundef %177, ptr noundef %179, i32 noundef %180, i32 noundef %181)
  %183 = load ptr, ptr %13, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.LodePNGState, ptr %183, i32 0, i32 5
  store i32 %182, ptr %184, align 8, !tbaa !13
  br label %185

185:                                              ; preds = %174, %169
  %186 = load ptr, ptr %13, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.LodePNGState, ptr %186, i32 0, i32 5
  %188 = load i32, ptr %187, align 8, !tbaa !13
  %189 = icmp ne i32 %188, 0
  br i1 %189, label %197, label %190

190:                                              ; preds = %185
  %191 = load ptr, ptr %19, align 8, !tbaa !5
  %192 = load i32, ptr %11, align 4, !tbaa !9
  %193 = load i32, ptr %12, align 4, !tbaa !9
  %194 = load ptr, ptr %13, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.LodePNGState, ptr %194, i32 0, i32 2
  %196 = call noundef i32 @_ZL19preProcessScanlinesPPhPmPKhjjPK11LodePNGInfoPK22LodePNGEncoderSettings(ptr noundef %16, ptr noundef %17, ptr noundef %191, i32 noundef %192, i32 noundef %193, ptr noundef %14, ptr noundef %195)
  br label %197

197:                                              ; preds = %190, %185
  %198 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZL12lodepng_freePv(ptr noundef %198)
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  br label %206

199:                                              ; preds = %141
  %200 = load ptr, ptr %10, 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, %197
  br label %207

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

208:                                              ; preds = %207
  %209 = load ptr, ptr %13, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.LodePNGState, ptr %209, i32 0, i32 5
  %211 = load i32, ptr %210, align 8, !tbaa !13
  %212 = icmp ne i32 %211, 0
  %213 = xor i1 %212, true
  br i1 %213, label %214, label %543

214:                                              ; preds = %208
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  call void @_ZL14writeSignatureP8ucvector(ptr noundef %15)
  %215 = load i32, ptr %11, align 4, !tbaa !9
  %216 = load i32, ptr %12, align 4, !tbaa !9
  %217 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %218 = getelementptr inbounds %struct.LodePNGColorMode, ptr %217, i32 0, i32 0
  %219 = load i32, ptr %218, align 8, !tbaa !33
  %220 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %221 = getelementptr inbounds %struct.LodePNGColorMode, ptr %220, i32 0, i32 1
  %222 = load i32, ptr %221, align 4, !tbaa !34
  %223 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 2
  %224 = load i32, ptr %223, align 8, !tbaa !35
  %225 = call noundef i32 @_ZL13addChunk_IHDRP8ucvectorjj16LodePNGColorTypejj(ptr noundef %15, i32 noundef %215, i32 noundef %216, i32 noundef %219, i32 noundef %222, i32 noundef %224)
  %226 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 22
  %227 = getelementptr inbounds [3 x ptr], ptr %226, i64 0, i64 0
  %228 = load ptr, ptr %227, align 8, !tbaa !5
  %229 = icmp ne ptr %228, null
  br i1 %229, label %230, label %246

230:                                              ; preds = %214
  %231 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 22
  %232 = getelementptr inbounds [3 x ptr], ptr %231, i64 0, i64 0
  %233 = load ptr, ptr %232, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 23
  %235 = getelementptr inbounds [3 x i64], ptr %234, i64 0, i64 0
  %236 = load i64, ptr %235, align 8, !tbaa !11
  %237 = call noundef i32 @_ZL16addUnknownChunksP8ucvectorPhm(ptr noundef %15, ptr noundef %233, i64 noundef %236)
  %238 = load ptr, ptr %13, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.LodePNGState, ptr %238, i32 0, i32 5
  store i32 %237, ptr %239, align 8, !tbaa !13
  %240 = load ptr, ptr %13, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.LodePNGState, ptr %240, i32 0, i32 5
  %242 = load i32, ptr %241, align 8, !tbaa !13
  %243 = icmp ne i32 %242, 0
  br i1 %243, label %244, label %245

244:                                              ; preds = %230
  store i32 3, ptr %18, align 4
  br label %542

245:                                              ; preds = %230
  br label %246

246:                                              ; preds = %245, %214
  %247 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %248 = getelementptr inbounds %struct.LodePNGColorMode, ptr %247, i32 0, i32 0
  %249 = load i32, ptr %248, align 8, !tbaa !33
  %250 = icmp eq i32 %249, 3
  br i1 %250, label %251, label %254

251:                                              ; preds = %246
  %252 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %253 = call noundef i32 @_ZL13addChunk_PLTEP8ucvectorPK16LodePNGColorMode(ptr noundef %15, ptr noundef %252)
  br label %254

254:                                              ; preds = %251, %246
  %255 = load ptr, ptr %13, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.LodePNGState, ptr %255, i32 0, i32 2
  %257 = getelementptr inbounds %struct.LodePNGEncoderSettings, ptr %256, i32 0, i32 5
  %258 = load i32, ptr %257, align 8, !tbaa !25
  %259 = icmp ne i32 %258, 0
  br i1 %259, label %260, label %273

260:                                              ; preds = %254
  %261 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %262 = getelementptr inbounds %struct.LodePNGColorMode, ptr %261, i32 0, i32 0
  %263 = load i32, ptr %262, align 8, !tbaa !33
  %264 = icmp eq i32 %263, 2
  br i1 %264, label %270, label %265

265:                                              ; preds = %260
  %266 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %267 = getelementptr inbounds %struct.LodePNGColorMode, ptr %266, i32 0, i32 0
  %268 = load i32, ptr %267, align 8, !tbaa !33
  %269 = icmp eq i32 %268, 6
  br i1 %269, label %270, label %273

270:                                              ; preds = %265, %260
  %271 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %272 = call noundef i32 @_ZL13addChunk_PLTEP8ucvectorPK16LodePNGColorMode(ptr noundef %15, ptr noundef %271)
  br label %273

273:                                              ; preds = %270, %265, %254
  %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 !33
  %277 = icmp eq i32 %276, 3
  br i1 %277, label %278, label %290

278:                                              ; preds = %273
  %279 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %280 = getelementptr inbounds %struct.LodePNGColorMode, ptr %279, i32 0, i32 2
  %281 = load ptr, ptr %280, align 8, !tbaa !36
  %282 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %283 = getelementptr inbounds %struct.LodePNGColorMode, ptr %282, i32 0, i32 3
  %284 = load i64, ptr %283, align 8, !tbaa !37
  %285 = call noundef i32 @_ZL22getPaletteTranslucencyPKhm(ptr noundef %281, i64 noundef %284)
  %286 = icmp ne i32 %285, 0
  br i1 %286, label %287, label %290

287:                                              ; preds = %278
  %288 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %289 = call noundef i32 @_ZL13addChunk_tRNSP8ucvectorPK16LodePNGColorMode(ptr noundef %15, ptr noundef %288)
  br label %290

290:                                              ; preds = %287, %278, %273
  %291 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %292 = getelementptr inbounds %struct.LodePNGColorMode, ptr %291, i32 0, i32 0
  %293 = load i32, ptr %292, align 8, !tbaa !33
  %294 = icmp eq i32 %293, 0
  br i1 %294, label %300, label %295

295:                                              ; preds = %290
  %296 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %297 = getelementptr inbounds %struct.LodePNGColorMode, ptr %296, i32 0, i32 0
  %298 = load i32, ptr %297, align 8, !tbaa !33
  %299 = icmp eq i32 %298, 2
  br i1 %299, label %300, label %308

300:                                              ; preds = %295, %290
  %301 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %302 = getelementptr inbounds %struct.LodePNGColorMode, ptr %301, i32 0, i32 4
  %303 = load i32, ptr %302, align 8, !tbaa !38
  %304 = icmp ne i32 %303, 0
  br i1 %304, label %305, label %308

305:                                              ; preds = %300
  %306 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 3
  %307 = call noundef i32 @_ZL13addChunk_tRNSP8ucvectorPK16LodePNGColorMode(ptr noundef %15, ptr noundef %306)
  br label %308

308:                                              ; preds = %305, %300, %295
  %309 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 4
  %310 = load i32, ptr %309, align 8, !tbaa !39
  %311 = icmp ne i32 %310, 0
  br i1 %311, label %312, label %314

312:                                              ; preds = %308
  %313 = call noundef i32 @_ZL13addChunk_bKGDP8ucvectorPK11LodePNGInfo(ptr noundef %15, ptr noundef %14)
  br label %314

314:                                              ; preds = %312, %308
  %315 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 18
  %316 = load i32, ptr %315, align 4, !tbaa !40
  %317 = icmp ne i32 %316, 0
  br i1 %317, label %318, label %320

318:                                              ; preds = %314
  %319 = call noundef i32 @_ZL13addChunk_pHYsP8ucvectorPK11LodePNGInfo(ptr noundef %15, ptr noundef %14)
  br label %320

320:                                              ; preds = %318, %314
  %321 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 22
  %322 = getelementptr inbounds [3 x ptr], ptr %321, i64 0, i64 1
  %323 = load ptr, ptr %322, align 8, !tbaa !5
  %324 = icmp ne ptr %323, null
  br i1 %324, label %325, label %341

325:                                              ; preds = %320
  %326 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 22
  %327 = getelementptr inbounds [3 x ptr], ptr %326, i64 0, i64 1
  %328 = load ptr, ptr %327, align 8, !tbaa !5
  %329 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 23
  %330 = getelementptr inbounds [3 x i64], ptr %329, i64 0, i64 1
  %331 = load i64, ptr %330, align 8, !tbaa !11
  %332 = call noundef i32 @_ZL16addUnknownChunksP8ucvectorPhm(ptr noundef %15, ptr noundef %328, i64 noundef %331)
  %333 = load ptr, ptr %13, align 8, !tbaa !5
  %334 = getelementptr inbounds %struct.LodePNGState, ptr %333, i32 0, i32 5
  store i32 %332, ptr %334, align 8, !tbaa !13
  %335 = load ptr, ptr %13, align 8, !tbaa !5
  %336 = getelementptr inbounds %struct.LodePNGState, ptr %335, i32 0, i32 5
  %337 = load i32, ptr %336, align 8, !tbaa !13
  %338 = icmp ne i32 %337, 0
  br i1 %338, label %339, label %340

339:                                              ; preds = %325
  store i32 3, ptr %18, align 4
  br label %542

340:                                              ; preds = %325
  br label %341

341:                                              ; preds = %340, %320
  %342 = load ptr, ptr %16, align 8, !tbaa !5
  %343 = load i64, ptr %17, align 8, !tbaa !11
  %344 = load ptr, ptr %13, align 8, !tbaa !5
  %345 = getelementptr inbounds %struct.LodePNGState, ptr %344, i32 0, i32 2
  %346 = getelementptr inbounds %struct.LodePNGEncoderSettings, ptr %345, i32 0, i32 0
  %347 = call noundef i32 @_ZL13addChunk_IDATP8ucvectorPKhmP23LodePNGCompressSettings(ptr noundef %15, ptr noundef %342, i64 noundef %343, ptr noundef %346)
  %348 = load ptr, ptr %13, align 8, !tbaa !5
  %349 = getelementptr inbounds %struct.LodePNGState, ptr %348, i32 0, i32 5
  store i32 %347, ptr %349, align 8, !tbaa !13
  %350 = load ptr, ptr %13, align 8, !tbaa !5
  %351 = getelementptr inbounds %struct.LodePNGState, ptr %350, i32 0, i32 5
  %352 = load i32, ptr %351, align 8, !tbaa !13
  %353 = icmp ne i32 %352, 0
  br i1 %353, label %354, label %355

354:                                              ; preds = %341
  store i32 3, ptr %18, align 4
  br label %542

355:                                              ; preds = %341
  %356 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 16
  %357 = load i32, ptr %356, align 8, !tbaa !41
  %358 = icmp ne i32 %357, 0
  br i1 %358, label %359, label %362

359:                                              ; preds = %355
  %360 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 17
  %361 = call noundef i32 @_ZL13addChunk_tIMEP8ucvectorPK11LodePNGTime(ptr noundef %15, ptr noundef %360)
  br label %362

362:                                              ; preds = %359, %355
  store i64 0, ptr %21, align 8, !tbaa !11
  br label %363

363:                                              ; preds = %424, %362
  %364 = load i64, ptr %21, align 8, !tbaa !11
  %365 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 8
  %366 = load i64, ptr %365, align 8, !tbaa !42
  %367 = icmp ne i64 %364, %366
  br i1 %367, label %368, label %427

368:                                              ; preds = %363
  %369 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 9
  %370 = load ptr, ptr %369, align 8, !tbaa !43
  %371 = load i64, ptr %21, align 8, !tbaa !11
  %372 = getelementptr inbounds ptr, ptr %370, i64 %371
  %373 = load ptr, ptr %372, align 8, !tbaa !5
  %374 = call i64 @strlen(ptr noundef %373) #5
  %375 = icmp ugt i64 %374, 79
  br i1 %375, label %376, label %379

376:                                              ; preds = %368
  %377 = load ptr, ptr %13, align 8, !tbaa !5
  %378 = getelementptr inbounds %struct.LodePNGState, ptr %377, i32 0, i32 5
  store i32 66, ptr %378, align 8, !tbaa !13
  br label %427

379:                                              ; preds = %368
  %380 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 9
  %381 = load ptr, ptr %380, align 8, !tbaa !43
  %382 = load i64, ptr %21, align 8, !tbaa !11
  %383 = getelementptr inbounds ptr, ptr %381, i64 %382
  %384 = load ptr, ptr %383, align 8, !tbaa !5
  %385 = call i64 @strlen(ptr noundef %384) #5
  %386 = icmp ult i64 %385, 1
  br i1 %386, label %387, label %390

387:                                              ; preds = %379
  %388 = load ptr, ptr %13, align 8, !tbaa !5
  %389 = getelementptr inbounds %struct.LodePNGState, ptr %388, i32 0, i32 5
  store i32 67, ptr %389, align 8, !tbaa !13
  br label %427

390:                                              ; preds = %379
  %391 = load ptr, ptr %13, align 8, !tbaa !5
  %392 = getelementptr inbounds %struct.LodePNGState, ptr %391, i32 0, i32 2
  %393 = getelementptr inbounds %struct.LodePNGEncoderSettings, ptr %392, i32 0, i32 7
  %394 = load i32, ptr %393, align 8, !tbaa !44
  %395 = icmp ne i32 %394, 0
  br i1 %395, label %396, label %411

396:                                              ; preds = %390
  %397 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 9
  %398 = load ptr, ptr %397, align 8, !tbaa !43
  %399 = load i64, ptr %21, align 8, !tbaa !11
  %400 = getelementptr inbounds ptr, ptr %398, i64 %399
  %401 = load ptr, ptr %400, align 8, !tbaa !5
  %402 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 10
  %403 = load ptr, ptr %402, align 8, !tbaa !45
  %404 = load i64, ptr %21, align 8, !tbaa !11
  %405 = getelementptr inbounds ptr, ptr %403, i64 %404
  %406 = load ptr, ptr %405, align 8, !tbaa !5
  %407 = load ptr, ptr %13, align 8, !tbaa !5
  %408 = getelementptr inbounds %struct.LodePNGState, ptr %407, i32 0, i32 2
  %409 = getelementptr inbounds %struct.LodePNGEncoderSettings, ptr %408, i32 0, i32 0
  %410 = call noundef i32 @_ZL13addChunk_zTXtP8ucvectorPKcS2_P23LodePNGCompressSettings(ptr noundef %15, ptr noundef %401, ptr noundef %406, ptr noundef %409)
  br label %423

411:                                              ; preds = %390
  %412 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 9
  %413 = load ptr, ptr %412, align 8, !tbaa !43
  %414 = load i64, ptr %21, align 8, !tbaa !11
  %415 = getelementptr inbounds ptr, ptr %413, i64 %414
  %416 = load ptr, ptr %415, align 8, !tbaa !5
  %417 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 10
  %418 = load ptr, ptr %417, align 8, !tbaa !45
  %419 = load i64, ptr %21, align 8, !tbaa !11
  %420 = getelementptr inbounds ptr, ptr %418, i64 %419
  %421 = load ptr, ptr %420, align 8, !tbaa !5
  %422 = call noundef i32 @_ZL13addChunk_tEXtP8ucvectorPKcS2_(ptr noundef %15, ptr noundef %416, ptr noundef %421)
  br label %423

423:                                              ; preds = %411, %396
  br label %424

424:                                              ; preds = %423
  %425 = load i64, ptr %21, align 8, !tbaa !11
  %426 = add i64 %425, 1
  store i64 %426, ptr %21, align 8, !tbaa !11
  br label %363, !llvm.loop !46

427:                                              ; preds = %387, %376, %363
  %428 = load ptr, ptr %13, align 8, !tbaa !5
  %429 = getelementptr inbounds %struct.LodePNGState, ptr %428, i32 0, i32 2
  %430 = getelementptr inbounds %struct.LodePNGEncoderSettings, ptr %429, i32 0, i32 6
  %431 = load i32, ptr %430, align 4, !tbaa !48
  %432 = icmp ne i32 %431, 0
  br i1 %432, label %433, label %459

433:                                              ; preds = %427
  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 %434

434:                                              ; preds = %449, %433
  %435 = load i64, ptr %21, align 8, !tbaa !11
  %436 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 8
  %437 = load i64, ptr %436, align 8, !tbaa !42
  %438 = icmp ne i64 %435, %437
  br i1 %438, label %439, label %452

439:                                              ; preds = %434
  %440 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 9
  %441 = load ptr, ptr %440, align 8, !tbaa !43
  %442 = load i64, ptr %21, align 8, !tbaa !11
  %443 = getelementptr inbounds ptr, ptr %441, i64 %442
  %444 = load ptr, ptr %443, align 8, !tbaa !5
  %445 = call i32 @strcmp(ptr noundef %444, ptr noundef @.str.3) #5
  %446 = icmp ne i32 %445, 0
  br i1 %446, label %448, label %447

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

448:                                              ; preds = %439
  br label %449

449:                                              ; preds = %448
  %450 = load i64, ptr %21, align 8, !tbaa !11
  %451 = add i64 %450, 1
  store i64 %451, ptr %21, align 8, !tbaa !11
  br label %434, !llvm.loop !49

452:                                              ; preds = %447, %434
  %453 = load i32, ptr %22, align 4, !tbaa !9
  %454 = icmp eq i32 %453, 0
  br i1 %454, label %455, label %458

455:                                              ; preds = %452
  %456 = load ptr, ptr @LODEPNG_VERSION_STRING, align 8, !tbaa !5
  %457 = call noundef i32 @_ZL13addChunk_tEXtP8ucvectorPKcS2_(ptr noundef %15, ptr noundef @.str.3, ptr noundef %456)
  br label %458

458:                                              ; preds = %455, %452
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  br label %459

459:                                              ; preds = %458, %427
  store i64 0, ptr %21, align 8, !tbaa !11
  br label %460

460:                                              ; preds = %516, %459
  %461 = load i64, ptr %21, align 8, !tbaa !11
  %462 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 11
  %463 = load i64, ptr %462, align 8, !tbaa !50
  %464 = icmp ne i64 %461, %463
  br i1 %464, label %465, label %519

465:                                              ; preds = %460
  %466 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 12
  %467 = load ptr, ptr %466, align 8, !tbaa !51
  %468 = load i64, ptr %21, align 8, !tbaa !11
  %469 = getelementptr inbounds ptr, ptr %467, i64 %468
  %470 = load ptr, ptr %469, align 8, !tbaa !5
  %471 = call i64 @strlen(ptr noundef %470) #5
  %472 = icmp ugt i64 %471, 79
  br i1 %472, label %473, label %476

473:                                              ; preds = %465
  %474 = load ptr, ptr %13, align 8, !tbaa !5
  %475 = getelementptr inbounds %struct.LodePNGState, ptr %474, i32 0, i32 5
  store i32 66, ptr %475, align 8, !tbaa !13
  br label %519

476:                                              ; preds = %465
  %477 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 12
  %478 = load ptr, ptr %477, align 8, !tbaa !51
  %479 = load i64, ptr %21, align 8, !tbaa !11
  %480 = getelementptr inbounds ptr, ptr %478, i64 %479
  %481 = load ptr, ptr %480, align 8, !tbaa !5
  %482 = call i64 @strlen(ptr noundef %481) #5
  %483 = icmp ult i64 %482, 1
  br i1 %483, label %484, label %487

484:                                              ; preds = %476
  %485 = load ptr, ptr %13, align 8, !tbaa !5
  %486 = getelementptr inbounds %struct.LodePNGState, ptr %485, i32 0, i32 5
  store i32 67, ptr %486, align 8, !tbaa !13
  br label %519

487:                                              ; preds = %476
  %488 = load ptr, ptr %13, align 8, !tbaa !5
  %489 = getelementptr inbounds %struct.LodePNGState, ptr %488, i32 0, i32 2
  %490 = getelementptr inbounds %struct.LodePNGEncoderSettings, ptr %489, i32 0, i32 7
  %491 = load i32, ptr %490, align 8, !tbaa !44
  %492 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 12
  %493 = load ptr, ptr %492, align 8, !tbaa !51
  %494 = load i64, ptr %21, align 8, !tbaa !11
  %495 = getelementptr inbounds ptr, ptr %493, i64 %494
  %496 = load ptr, ptr %495, align 8, !tbaa !5
  %497 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 13
  %498 = load ptr, ptr %497, align 8, !tbaa !52
  %499 = load i64, ptr %21, align 8, !tbaa !11
  %500 = getelementptr inbounds ptr, ptr %498, i64 %499
  %501 = load ptr, ptr %500, align 8, !tbaa !5
  %502 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 14
  %503 = load ptr, ptr %502, align 8, !tbaa !53
  %504 = load i64, ptr %21, align 8, !tbaa !11
  %505 = getelementptr inbounds ptr, ptr %503, i64 %504
  %506 = load ptr, ptr %505, align 8, !tbaa !5
  %507 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 15
  %508 = load ptr, ptr %507, align 8, !tbaa !54
  %509 = load i64, ptr %21, align 8, !tbaa !11
  %510 = getelementptr inbounds ptr, ptr %508, i64 %509
  %511 = load ptr, ptr %510, align 8, !tbaa !5
  %512 = load ptr, ptr %13, align 8, !tbaa !5
  %513 = getelementptr inbounds %struct.LodePNGState, ptr %512, i32 0, i32 2
  %514 = getelementptr inbounds %struct.LodePNGEncoderSettings, ptr %513, i32 0, i32 0
  %515 = call noundef i32 @_ZL13addChunk_iTXtP8ucvectorjPKcS2_S2_S2_P23LodePNGCompressSettings(ptr noundef %15, i32 noundef %491, ptr noundef %496, ptr noundef %501, ptr noundef %506, ptr noundef %511, ptr noundef %514)
  br label %516

516:                                              ; preds = %487
  %517 = load i64, ptr %21, align 8, !tbaa !11
  %518 = add i64 %517, 1
  store i64 %518, ptr %21, align 8, !tbaa !11
  br label %460, !llvm.loop !55

519:                                              ; preds = %484, %473, %460
  %520 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 22
  %521 = getelementptr inbounds [3 x ptr], ptr %520, i64 0, i64 2
  %522 = load ptr, ptr %521, align 8, !tbaa !5
  %523 = icmp ne ptr %522, null
  br i1 %523, label %524, label %540

524:                                              ; preds = %519
  %525 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 22
  %526 = getelementptr inbounds [3 x ptr], ptr %525, i64 0, i64 2
  %527 = load ptr, ptr %526, align 8, !tbaa !5
  %528 = getelementptr inbounds %struct.LodePNGInfo, ptr %14, i32 0, i32 23
  %529 = getelementptr inbounds [3 x i64], ptr %528, i64 0, i64 2
  %530 = load i64, ptr %529, align 8, !tbaa !11
  %531 = call noundef i32 @_ZL16addUnknownChunksP8ucvectorPhm(ptr noundef %15, ptr noundef %527, i64 noundef %530)
  %532 = load ptr, ptr %13, align 8, !tbaa !5
  %533 = getelementptr inbounds %struct.LodePNGState, ptr %532, i32 0, i32 5
  store i32 %531, ptr %533, align 8, !tbaa !13
  %534 = load ptr, ptr %13, align 8, !tbaa !5
  %535 = getelementptr inbounds %struct.LodePNGState, ptr %534, i32 0, i32 5
  %536 = load i32, ptr %535, align 8, !tbaa !13
  %537 = icmp ne i32 %536, 0
  br i1 %537, label %538, label %539

538:                                              ; preds = %524
  store i32 3, ptr %18, align 4
  br label %542

539:                                              ; preds = %524
  br label %540

540:                                              ; preds = %539, %519
  %541 = call noundef i32 @_ZL13addChunk_IENDP8ucvector(ptr noundef %15)
  store i32 3, ptr %18, align 4
  br label %542

542:                                              ; preds = %540, %538, %354, %339, %244
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  br label %543

543:                                              ; preds = %542, %208
  call void @_Z20lodepng_info_cleanupP11LodePNGInfo(ptr noundef %14)
  %544 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZL12lodepng_freePv(ptr noundef %544)
  %545 = getelementptr inbounds %struct.ucvector, ptr %15, i32 0, i32 0
  %546 = load ptr, ptr %545, align 8, !tbaa !56
  %547 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %546, ptr %547, align 8, !tbaa !5
  %548 = getelementptr inbounds %struct.ucvector, ptr %15, i32 0, i32 1
  %549 = load i64, ptr %548, align 8, !tbaa !58
  %550 = load ptr, ptr %9, align 8, !tbaa !5
  store i64 %549, ptr %550, align 8, !tbaa !11
  %551 = load ptr, ptr %13, align 8, !tbaa !5
  %552 = getelementptr inbounds %struct.LodePNGState, ptr %551, i32 0, i32 5
  %553 = load i32, ptr %552, align 8, !tbaa !13
  store i32 %553, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %554

554:                                              ; preds = %543, %113, %93, %72, %63, %53
  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
  %555 = load i32, ptr %7, align 4
  ret i32 %555
}

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

@LODEPNG_VERSION_STRING = external dso_local local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [8 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 @_ZL14lodepng_mallocm(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 @_ZL12lodepng_freePv(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_convertPhPKhPK16LodePNGColorModeS4_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 @_ZL24lodepng_color_mode_equalPK16LodePNGColorModeS1_(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z25lodepng_auto_choose_colorP16LodePNGColorModePKhjjPKS_(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr 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 424
  store i32 0, ptr %11, align 8, !tbaa !11
  %12 = getelementptr inbounds i8, ptr %5, i64 192
  %13 = getelementptr inbounds i8, ptr %5, i64 208
  %14 = load i32, ptr %13, align 8, !tbaa !23
  %15 = icmp eq i32 %14, 3
  br i1 %15, label %19, label %16

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

19:                                               ; preds = %16, %6
  %20 = getelementptr inbounds i8, ptr %5, i64 224
  %21 = load i64, ptr %20, align 8, !tbaa !25
  %22 = add i64 %21, -257
  %or.cond148 = icmp ult i64 %22, -256
  br i1 %or.cond148, label %23, label %24

23:                                               ; preds = %19
  store i32 68, ptr %11, align 8, !tbaa !11
  br label %237

24:                                               ; preds = %19, %16
  %25 = getelementptr inbounds i8, ptr %5, i64 64
  %26 = load i32, ptr %25, align 8, !tbaa !26
  %27 = icmp ugt i32 %26, 2
  br i1 %27, label %28, label %29

28:                                               ; preds = %24
  store i32 61, ptr %11, align 8, !tbaa !11
  br label %237

29:                                               ; preds = %24
  %30 = getelementptr inbounds i8, ptr %5, i64 200
  %31 = load i32, ptr %30, align 8, !tbaa !27
  %32 = icmp ugt i32 %31, 1
  br i1 %32, label %33, label %34

33:                                               ; preds = %29
  store i32 71, ptr %11, align 8, !tbaa !11
  br label %237

34:                                               ; preds = %29
  %35 = getelementptr inbounds i8, ptr %5, i64 212
  %36 = load i32, ptr %35, align 4, !tbaa !28
  %37 = tail call noundef i32 @_ZL18checkColorValidity16LodePNGColorTypej(i32 noundef %14, i32 noundef %36)
  store i32 %37, ptr %11, align 8, !tbaa !11
  %.not122 = icmp eq i32 %37, 0
  br i1 %.not122, label %38, label %237

38:                                               ; preds = %34
  %39 = getelementptr inbounds i8, ptr %5, i64 152
  %40 = load i32, ptr %39, align 8, !tbaa !29
  %41 = getelementptr inbounds i8, ptr %5, i64 156
  %42 = load i32, ptr %41, align 4, !tbaa !30
  %43 = tail call noundef i32 @_ZL18checkColorValidity16LodePNGColorTypej(i32 noundef %40, i32 noundef %42)
  store i32 %43, ptr %11, align 8, !tbaa !11
  %.not123 = icmp eq i32 %43, 0
  br i1 %.not123, label %44, label %237

44:                                               ; preds = %38
  call void @_Z17lodepng_info_initP11LodePNGInfo(ptr noundef nonnull %7)
  %45 = call noundef i32 @_Z17lodepng_info_copyP11LodePNGInfoPKS_(ptr noundef nonnull %7, ptr noundef nonnull %12)
  %46 = getelementptr inbounds i8, ptr %5, i64 112
  %47 = load i32, ptr %46, align 8, !tbaa !31
  %.not124 = icmp eq i32 %47, 0
  br i1 %.not124, label %thread-pre-split, label %48

48:                                               ; preds = %44
  %49 = getelementptr inbounds i8, ptr %7, i64 16
  %50 = call noundef i32 @_Z25lodepng_auto_choose_colorP16LodePNGColorModePKhjjPKS_(ptr noundef nonnull %49, ptr noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef nonnull %39)
  store i32 %50, ptr %11, align 8, !tbaa !11
  br label %51

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

51:                                               ; preds = %thread-pre-split, %48
  %52 = phi i32 [ %.pr, %thread-pre-split ], [ %50, %48 ]
  %.not125 = icmp eq i32 %52, 0
  br i1 %.not125, label %53, label %75

53:                                               ; preds = %51
  %54 = getelementptr inbounds i8, ptr %7, i64 16
  %55 = call noundef i32 @_ZL24lodepng_color_mode_equalPK16LodePNGColorModeS1_(ptr noundef nonnull %39, ptr noundef nonnull %54)
  %.not126 = icmp eq i32 %55, 0
  br i1 %.not126, label %56, label %73

56:                                               ; preds = %53
  %57 = zext i32 %3 to i64
  %58 = zext i32 %4 to i64
  %59 = mul nuw i64 %58, %57
  %60 = call noundef i32 @_Z15lodepng_get_bppPK16LodePNGColorMode(ptr noundef nonnull %54)
  %61 = zext i32 %60 to i64
  %62 = mul i64 %59, %61
  %63 = add i64 %62, 7
  %64 = lshr i64 %63, 3
  %65 = call noundef ptr @_ZL14lodepng_mallocm(i64 noundef %64)
  %66 = icmp eq ptr %65, null
  %67 = icmp ugt i64 %63, 7
  %or.cond = and i1 %66, %67
  br i1 %or.cond, label %.thread, label %68

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

68:                                               ; preds = %56
  %.pr150 = load i32, ptr %11, align 8, !tbaa !11
  %.not127 = icmp eq i32 %.pr150, 0
  br i1 %.not127, label %69, label %.thread152

69:                                               ; preds = %68
  %70 = call noundef i32 @_Z15lodepng_convertPhPKhPK16LodePNGColorModeS4_jj(ptr noundef %65, ptr noundef %2, ptr noundef nonnull %54, ptr noundef nonnull %39, i32 noundef %3, i32 noundef %4)
  store i32 %70, ptr %11, align 8, !tbaa !11
  %.not128 = icmp eq i32 %70, 0
  br i1 %.not128, label %71, label %.thread152

71:                                               ; preds = %69
  %72 = call noundef i32 @_ZL19preProcessScanlinesPPhPmPKhjjPK11LodePNGInfoPK22LodePNGEncoderSettings(ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef %65, i32 noundef %3, i32 noundef %4, ptr noundef nonnull %7, ptr noundef nonnull %25)
  br label %.thread152

.thread152:                                       ; preds = %68, %.thread, %71, %69
  call void @_ZL12lodepng_freePv(ptr noundef %65)
  br label %75

73:                                               ; preds = %53
  %74 = 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 %25)
  br label %75

75:                                               ; preds = %.thread152, %73, %51
  call void @_ZL13ucvector_initP8ucvector(ptr noundef nonnull %8)
  %76 = load i32, ptr %11, align 8, !tbaa !11
  %.not129 = icmp eq i32 %76, 0
  br i1 %.not129, label %77, label %231

77:                                               ; preds = %75
  call void @_ZL14writeSignatureP8ucvector(ptr noundef nonnull %8)
  %78 = getelementptr inbounds i8, ptr %7, i64 16
  %79 = load i32, ptr %78, align 8, !tbaa !32
  %80 = getelementptr inbounds i8, ptr %7, i64 20
  %81 = load i32, ptr %80, align 4, !tbaa !33
  %82 = getelementptr inbounds i8, ptr %7, i64 8
  %83 = load i32, ptr %82, align 8, !tbaa !34
  %84 = call noundef i32 @_ZL13addChunk_IHDRP8ucvectorjj16LodePNGColorTypejj(ptr noundef nonnull %8, i32 noundef %3, i32 noundef %4, i32 noundef %79, i32 noundef %81, i32 noundef %83)
  %85 = getelementptr inbounds i8, ptr %7, i64 184
  %86 = load ptr, ptr %85, align 8, !tbaa !5
  %.not130 = icmp eq ptr %86, null
  br i1 %.not130, label %91, label %87

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

91:                                               ; preds = %87, %77
  %92 = load i32, ptr %78, align 8
  %93 = icmp eq i32 %92, 3
  br i1 %93, label %94, label %96

94:                                               ; preds = %91
  %95 = call noundef i32 @_ZL13addChunk_PLTEP8ucvectorPK16LodePNGColorMode(ptr noundef nonnull %8, ptr noundef nonnull %78)
  %.pr155.pre171.pre = load i32, ptr %78, align 8
  br label %96

96:                                               ; preds = %94, %91
  %.pr155.pre171 = phi i32 [ %.pr155.pre171.pre, %94 ], [ %92, %91 ]
  %97 = getelementptr inbounds i8, ptr %5, i64 136
  %98 = load i32, ptr %97, align 8, !tbaa !24
  %.not132 = icmp ne i32 %98, 0
  %99 = and i32 %.pr155.pre171, -5
  %or.cond5 = icmp eq i32 %99, 2
  %or.cond179 = select i1 %.not132, i1 %or.cond5, i1 false
  br i1 %or.cond179, label %100, label %thread-pre-split154

100:                                              ; preds = %96
  %101 = call noundef i32 @_ZL13addChunk_PLTEP8ucvectorPK16LodePNGColorMode(ptr noundef nonnull %8, ptr noundef nonnull %78)
  %.pr155.pre = load i32, ptr %78, align 8, !tbaa !32
  br label %thread-pre-split154

thread-pre-split154:                              ; preds = %100, %96
  %102 = phi i32 [ %.pr155.pre171, %96 ], [ %.pr155.pre, %100 ]
  %103 = icmp eq i32 %102, 3
  br i1 %103, label %104, label %112

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

110:                                              ; preds = %104
  %111 = call noundef i32 @_ZL13addChunk_tRNSP8ucvectorPK16LodePNGColorMode(ptr noundef nonnull %8, ptr noundef nonnull %78)
  br label %112

112:                                              ; preds = %110, %104, %thread-pre-split154
  %113 = load i32, ptr %78, align 8
  %114 = and i32 %113, -3
  %or.cond9 = icmp eq i32 %114, 0
  %115 = getelementptr inbounds i8, ptr %7, i64 40
  %116 = load i32, ptr %115, align 8
  %117 = icmp ne i32 %116, 0
  %or.cond13 = select i1 %or.cond9, i1 %117, i1 false
  br i1 %or.cond13, label %118, label %120

118:                                              ; preds = %112
  %119 = call noundef i32 @_ZL13addChunk_tRNSP8ucvectorPK16LodePNGColorMode(ptr noundef nonnull %8, ptr noundef nonnull %78)
  br label %120

120:                                              ; preds = %112, %118
  %121 = getelementptr inbounds i8, ptr %7, i64 56
  %122 = load i32, ptr %121, align 8, !tbaa !37
  %.not134 = icmp eq i32 %122, 0
  br i1 %.not134, label %125, label %123

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

125:                                              ; preds = %123, %120
  %126 = getelementptr inbounds i8, ptr %7, i64 164
  %127 = load i32, ptr %126, align 4, !tbaa !38
  %.not135 = icmp eq i32 %127, 0
  br i1 %.not135, label %130, label %128

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

130:                                              ; preds = %128, %125
  %131 = getelementptr inbounds i8, ptr %7, i64 192
  %132 = load ptr, ptr %131, align 8, !tbaa !5
  %.not136 = icmp eq ptr %132, null
  br i1 %.not136, label %137, label %133

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

137:                                              ; preds = %133, %130
  %138 = load ptr, ptr %9, align 8, !tbaa !5
  %139 = load i64, ptr %10, align 8, !tbaa !9
  %140 = call noundef i32 @_ZL13addChunk_IDATP8ucvectorPKhmP23LodePNGCompressSettings(ptr noundef nonnull %8, ptr noundef %138, i64 noundef %139, ptr noundef nonnull %25)
  store i32 %140, ptr %11, align 8, !tbaa !11
  %.not138 = icmp eq i32 %140, 0
  br i1 %.not138, label %141, label %231

141:                                              ; preds = %137
  %142 = getelementptr inbounds i8, ptr %7, i64 136
  %143 = load i32, ptr %142, align 8, !tbaa !39
  %.not139 = icmp eq i32 %143, 0
  br i1 %.not139, label %147, label %144

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

147:                                              ; preds = %144, %141
  %148 = getelementptr inbounds i8, ptr %7, i64 72
  %149 = load i64, ptr %148, align 8, !tbaa !40
  %.not140160 = icmp eq i64 %149, 0
  br i1 %.not140160, label %.loopexit157.thread, label %.lr.ph

.lr.ph:                                           ; preds = %147
  %150 = getelementptr inbounds i8, ptr %7, i64 80
  %151 = getelementptr inbounds i8, ptr %5, i64 144
  %152 = getelementptr inbounds i8, ptr %7, i64 88
  %153 = load ptr, ptr %150, align 8, !tbaa !41
  %154 = load ptr, ptr %153, align 8, !tbaa !5
  %155 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %154) #5
  %156 = icmp ugt i64 %155, 79
  br i1 %156, label %.loopexit157.sink.split, label %.lr.ph184

157:                                              ; preds = %176
  %158 = load ptr, ptr %150, align 8, !tbaa !41
  %159 = getelementptr inbounds ptr, ptr %158, i64 %177
  %160 = load ptr, ptr %159, align 8, !tbaa !5
  %161 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %160) #5
  %162 = icmp ugt i64 %161, 79
  br i1 %162, label %.loopexit157.sink.split, label %.lr.ph184, !llvm.loop !42

.lr.ph184:                                        ; preds = %.lr.ph, %157
  %163 = phi i64 [ %161, %157 ], [ %155, %.lr.ph ]
  %164 = phi ptr [ %160, %157 ], [ %154, %.lr.ph ]
  %.0112161183 = phi i64 [ %177, %157 ], [ 0, %.lr.ph ]
  %165 = phi i64 [ %178, %157 ], [ %149, %.lr.ph ]
  %166 = icmp eq i64 %163, 0
  br i1 %166, label %.loopexit157.sink.split, label %167

167:                                              ; preds = %.lr.ph184
  %168 = load i32, ptr %151, align 8, !tbaa !44
  %.not141 = icmp eq i32 %168, 0
  %169 = load ptr, ptr %152, align 8, !tbaa !45
  %170 = getelementptr inbounds ptr, ptr %169, i64 %.0112161183
  %171 = load ptr, ptr %170, align 8, !tbaa !5
  br i1 %.not141, label %174, label %172

172:                                              ; preds = %167
  %173 = call noundef i32 @_ZL13addChunk_zTXtP8ucvectorPKcS2_P23LodePNGCompressSettings(ptr noundef nonnull %8, ptr noundef %164, ptr noundef %171, ptr noundef nonnull %25)
  br label %176

174:                                              ; preds = %167
  %175 = call noundef i32 @_ZL13addChunk_tEXtP8ucvectorPKcS2_(ptr noundef nonnull %8, ptr noundef %164, ptr noundef %171)
  br label %176

176:                                              ; preds = %172, %174
  %177 = add i64 %.0112161183, 1
  %178 = load i64, ptr %148, align 8, !tbaa !40
  %.not140 = icmp eq i64 %177, %178
  br i1 %.not140, label %.loopexit157, label %157, !llvm.loop !42

.loopexit157.sink.split:                          ; preds = %157, %.lr.ph184, %.lr.ph
  %.lcssa = phi i64 [ %149, %.lr.ph ], [ %178, %157 ], [ %165, %.lr.ph184 ]
  %.sink = phi i32 [ 66, %.lr.ph ], [ 66, %157 ], [ 67, %.lr.ph184 ]
  store i32 %.sink, ptr %11, align 8, !tbaa !11
  br label %.loopexit157

.loopexit157:                                     ; preds = %176, %.loopexit157.sink.split
  %179 = phi i64 [ %.lcssa, %.loopexit157.sink.split ], [ %177, %176 ]
  %180 = getelementptr inbounds i8, ptr %5, i64 140
  %181 = load i32, ptr %180, align 4, !tbaa !46
  %.not142 = icmp eq i32 %181, 0
  br i1 %.not142, label %.loopexit156, label %.preheader

.loopexit157.thread:                              ; preds = %147
  %182 = getelementptr inbounds i8, ptr %5, i64 140
  %183 = load i32, ptr %182, align 4, !tbaa !46
  %.not142174 = icmp eq i32 %183, 0
  br i1 %.not142174, label %.loopexit156, label %.critedge

.preheader:                                       ; preds = %.loopexit157
  %.not143162 = icmp eq i64 %179, 0
  br i1 %.not143162, label %.critedge, label %.lr.ph164

.lr.ph164:                                        ; preds = %.preheader
  %184 = getelementptr inbounds i8, ptr %7, i64 80
  %185 = load ptr, ptr %184, align 8, !tbaa !41
  br label %188

186:                                              ; preds = %188
  %187 = add nuw i64 %.1163, 1
  %.not143 = icmp eq i64 %187, %179
  br i1 %.not143, label %.critedge, label %188, !llvm.loop !47

188:                                              ; preds = %.lr.ph164, %186
  %.1163 = phi i64 [ 0, %.lr.ph164 ], [ %187, %186 ]
  %189 = getelementptr inbounds ptr, ptr %185, i64 %.1163
  %190 = load ptr, ptr %189, align 8, !tbaa !5
  %191 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %190, ptr noundef nonnull dereferenceable(1) @.str.3) #5
  %.not144 = icmp eq i32 %191, 0
  br i1 %.not144, label %.loopexit156, label %186

.critedge:                                        ; preds = %186, %.loopexit157.thread, %.preheader
  %192 = load ptr, ptr @LODEPNG_VERSION_STRING, align 8, !tbaa !5
  %193 = call noundef i32 @_ZL13addChunk_tEXtP8ucvectorPKcS2_(ptr noundef nonnull %8, ptr noundef nonnull @.str.3, ptr noundef %192)
  br label %.loopexit156

.loopexit156:                                     ; preds = %188, %.loopexit157.thread, %.critedge, %.loopexit157
  %194 = getelementptr inbounds i8, ptr %7, i64 96
  %195 = load i64, ptr %194, align 8, !tbaa !48
  %.not145165 = icmp eq i64 %195, 0
  br i1 %.not145165, label %.loopexit, label %.lr.ph167

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

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

207:                                              ; preds = %201
  %208 = icmp eq i64 %205, 0
  br i1 %208, label %.loopexit.sink.split, label %209

209:                                              ; preds = %207
  %210 = load i32, ptr %197, align 8, !tbaa !44
  %211 = load ptr, ptr %198, align 8, !tbaa !50
  %212 = getelementptr inbounds ptr, ptr %211, i64 %.2166
  %213 = load ptr, ptr %212, align 8, !tbaa !5
  %214 = load ptr, ptr %199, align 8, !tbaa !51
  %215 = getelementptr inbounds ptr, ptr %214, i64 %.2166
  %216 = load ptr, ptr %215, align 8, !tbaa !5
  %217 = load ptr, ptr %200, align 8, !tbaa !52
  %218 = getelementptr inbounds ptr, ptr %217, i64 %.2166
  %219 = load ptr, ptr %218, align 8, !tbaa !5
  %220 = call noundef i32 @_ZL13addChunk_iTXtP8ucvectorjPKcS2_S2_S2_P23LodePNGCompressSettings(ptr noundef nonnull %8, i32 noundef %210, ptr noundef %204, ptr noundef %213, ptr noundef %216, ptr noundef %219, ptr noundef nonnull %25)
  %221 = add i64 %.2166, 1
  %222 = load i64, ptr %194, align 8, !tbaa !48
  %.not145 = icmp eq i64 %221, %222
  br i1 %.not145, label %.loopexit, label %201, !llvm.loop !53

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

.loopexit:                                        ; preds = %209, %.loopexit.sink.split, %.loopexit156
  %223 = getelementptr inbounds i8, ptr %7, i64 200
  %224 = load ptr, ptr %223, align 8, !tbaa !5
  %.not146 = icmp eq ptr %224, null
  br i1 %.not146, label %229, label %225

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

229:                                              ; preds = %225, %.loopexit
  %230 = call noundef i32 @_ZL13addChunk_IENDP8ucvector(ptr noundef nonnull %8)
  br label %231

231:                                              ; preds = %229, %87, %133, %137, %225, %75
  call void @_Z20lodepng_info_cleanupP11LodePNGInfo(ptr noundef nonnull %7)
  %232 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZL12lodepng_freePv(ptr noundef %232)
  %233 = load ptr, ptr %8, align 8, !tbaa !54
  store ptr %233, ptr %0, align 8, !tbaa !5
  %234 = getelementptr inbounds i8, ptr %8, i64 8
  %235 = load i64, ptr %234, align 8, !tbaa !56
  store i64 %235, ptr %1, align 8, !tbaa !9
  %236 = load i32, ptr %11, align 8, !tbaa !11
  br label %237

237:                                              ; preds = %38, %34, %231, %33, %28, %23
  %.0113 = phi i32 [ 68, %23 ], [ 61, %28 ], [ 71, %33 ], [ %236, %231 ], [ %37, %34 ], [ %43, %38 ]
  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 %.0113
}

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