; LLVM IR from Try/Tempest :: Engine/thirdparty/libpng (pngread)

; 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.png_struct_def = type { [1 x %struct.__jmp_buf_tag], ptr, ptr, i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i8, i32, i32, i32, i32, %struct.z_stream_s, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, ptr, ptr, ptr, ptr, i64, i32, i32, ptr, i16, i32, i16, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i16, i8, i32, %struct.png_color_16_struct, %struct.png_color_16_struct, ptr, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, %struct.png_color_8_struct, %struct.png_color_8_struct, ptr, %struct.png_color_16_struct, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i64, i64, i64, i64, i32, i32, ptr, ptr, i32, [29 x i8], i32, ptr, ptr, i32, i32, ptr, i8, i8, i16, i16, i32, i8, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i32, i32, i32, i64, %struct.png_unknown_chunk_t, i64, ptr, i64, i32, i32, ptr, [4 x ptr], %struct.png_colorspace }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.z_stream_s = type { ptr, i32, i64, ptr, i32, i64, ptr, ptr, ptr, ptr, ptr, i32, i64, i64 }
%struct.png_color_8_struct = type { i8, i8, i8, i8, i8 }
%struct.png_color_16_struct = type { i8, i16, i16, i16, i16 }
%struct.png_unknown_chunk_t = type { [5 x i8], ptr, i64, i8 }
%struct.png_colorspace = type { i32, %struct.png_xy, %struct.png_XYZ, i16, i16 }
%struct.png_xy = type { i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.png_XYZ = type { i32, i32, i32, i32, i32, i32, i32, i32, i32 }

@.str.10 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [23 x i8], align 1

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

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

declare i32 @png_read_chunk_header(ptr noundef) #1

declare void @png_handle_IHDR(ptr noundef, ptr noundef, i32 noundef) #1

declare void @png_handle_IEND(ptr noundef, ptr noundef, i32 noundef) #1

declare i32 @png_chunk_unknown_handling(ptr noundef, i32 noundef) #1

declare void @png_handle_unknown(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1

declare void @png_handle_PLTE(ptr noundef, ptr noundef, i32 noundef) #1

declare void @png_handle_bKGD(ptr noundef, ptr noundef, i32 noundef) #1

declare void @png_handle_cHRM(ptr noundef, ptr noundef, i32 noundef) #1

declare void @png_handle_eXIf(ptr noundef, ptr noundef, i32 noundef) #1

declare void @png_handle_gAMA(ptr noundef, ptr noundef, i32 noundef) #1

declare void @png_handle_hIST(ptr noundef, ptr noundef, i32 noundef) #1

declare void @png_handle_oFFs(ptr noundef, ptr noundef, i32 noundef) #1

declare void @png_handle_pCAL(ptr noundef, ptr noundef, i32 noundef) #1

declare void @png_handle_sCAL(ptr noundef, ptr noundef, i32 noundef) #1

declare void @png_handle_pHYs(ptr noundef, ptr noundef, i32 noundef) #1

declare void @png_handle_sBIT(ptr noundef, ptr noundef, i32 noundef) #1

declare void @png_handle_sRGB(ptr noundef, ptr noundef, i32 noundef) #1

declare void @png_handle_iCCP(ptr noundef, ptr noundef, i32 noundef) #1

declare void @png_handle_sPLT(ptr noundef, ptr noundef, i32 noundef) #1

declare void @png_handle_tEXt(ptr noundef, ptr noundef, i32 noundef) #1

declare void @png_handle_tIME(ptr noundef, ptr noundef, i32 noundef) #1

declare void @png_handle_tRNS(ptr noundef, ptr noundef, i32 noundef) #1

declare void @png_handle_zTXt(ptr noundef, ptr noundef, i32 noundef) #1

declare void @png_handle_iTXt(ptr noundef, ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @png_read_end(ptr noalias noundef %0, ptr noalias noundef %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  %9 = load ptr, ptr %3, align 8, !tbaa !5
  %10 = icmp eq ptr %9, null
  br i1 %10, label %11, label %12

11:                                               ; preds = %2
  store i32 1, ptr %6, align 4
  br label %301

12:                                               ; preds = %2
  %13 = load ptr, ptr %3, align 8, !tbaa !5
  %14 = call i32 @png_chunk_unknown_handling(ptr noundef %13, i32 noundef 1229209940)
  %15 = icmp eq i32 %14, 0
  br i1 %15, label %16, label %18

16:                                               ; preds = %12
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  call void @png_read_finish_IDAT(ptr noundef %17)
  br label %18

18:                                               ; preds = %16, %12
  %19 = load ptr, ptr %3, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.png_struct_def, ptr %19, i32 0, i32 61
  %21 = load i8, ptr %20, align 1, !tbaa !9
  %22 = zext i8 %21 to i32
  %23 = icmp eq i32 %22, 3
  br i1 %23, label %24, label %35

24:                                               ; preds = %18
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.png_struct_def, ptr %25, i32 0, i32 54
  %27 = load i32, ptr %26, align 4, !tbaa !21
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.png_struct_def, ptr %28, i32 0, i32 53
  %30 = load i16, ptr %29, align 8, !tbaa !22
  %31 = zext i16 %30 to i32
  %32 = icmp sgt i32 %27, %31
  br i1 %32, label %33, label %35

33:                                               ; preds = %24
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  call void @png_benign_error(ptr noundef %34, ptr noundef @.str.10)
  br label %35

35:                                               ; preds = %33, %24, %18
  br label %36

36:                                               ; preds = %294, %35
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = call i32 @png_read_chunk_header(ptr noundef %37)
  store i32 %38, ptr %7, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.png_struct_def, ptr %39, i32 0, i32 44
  %41 = load i32, ptr %40, align 8, !tbaa !24
  store i32 %41, ptr %8, align 4, !tbaa !23
  %42 = load i32, ptr %8, align 4, !tbaa !23
  %43 = icmp ne i32 %42, 1229209940
  br i1 %43, label %44, label %49

44:                                               ; preds = %36
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.png_struct_def, ptr %45, i32 0, i32 15
  %47 = load i32, ptr %46, align 4, !tbaa !25
  %48 = or i32 %47, 8192
  store i32 %48, ptr %46, align 4, !tbaa !25
  br label %49

49:                                               ; preds = %44, %36
  %50 = load i32, ptr %8, align 4, !tbaa !23
  %51 = icmp eq i32 %50, 1229278788
  br i1 %51, label %52, label %56

52:                                               ; preds = %49
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = load i32, ptr %7, align 4, !tbaa !23
  call void @png_handle_IEND(ptr noundef %53, ptr noundef %54, i32 noundef %55)
  br label %293

56:                                               ; preds = %49
  %57 = load i32, ptr %8, align 4, !tbaa !23
  %58 = icmp eq i32 %57, 1229472850
  br i1 %58, label %59, label %63

59:                                               ; preds = %56
  %60 = load ptr, ptr %3, align 8, !tbaa !5
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = load i32, ptr %7, align 4, !tbaa !23
  call void @png_handle_IHDR(ptr noundef %60, ptr noundef %61, i32 noundef %62)
  br label %292

63:                                               ; preds = %56
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  %65 = icmp eq ptr %64, null
  br i1 %65, label %66, label %70

66:                                               ; preds = %63
  %67 = load ptr, ptr %3, align 8, !tbaa !5
  %68 = load i32, ptr %7, align 4, !tbaa !23
  %69 = call i32 @png_crc_finish(ptr noundef %67, i32 noundef %68)
  br label %291

70:                                               ; preds = %63
  %71 = load ptr, ptr %3, align 8, !tbaa !5
  %72 = load i32, ptr %8, align 4, !tbaa !23
  %73 = call i32 @png_chunk_unknown_handling(ptr noundef %71, i32 noundef %72)
  store i32 %73, ptr %5, align 4, !tbaa !23
  %74 = icmp ne i32 %73, 0
  br i1 %74, label %75, label %109

75:                                               ; preds = %70
  %76 = load i32, ptr %8, align 4, !tbaa !23
  %77 = icmp eq i32 %76, 1229209940
  br i1 %77, label %78, label %96

78:                                               ; preds = %75
  %79 = load i32, ptr %7, align 4, !tbaa !23
  %80 = icmp ugt i32 %79, 0
  br i1 %80, label %81, label %87

81:                                               ; preds = %78
  %82 = load ptr, ptr %3, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.png_struct_def, ptr %82, i32 0, i32 16
  %84 = load i32, ptr %83, align 8, !tbaa !26
  %85 = and i32 %84, 8
  %86 = icmp ne i32 %85, 0
  br i1 %86, label %87, label %93

87:                                               ; preds = %81, %78
  %88 = load ptr, ptr %3, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.png_struct_def, ptr %88, i32 0, i32 15
  %90 = load i32, ptr %89, align 4, !tbaa !25
  %91 = and i32 %90, 8192
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %93, label %95

93:                                               ; preds = %87, %81
  %94 = load ptr, ptr %3, align 8, !tbaa !5
  call void @png_benign_error(ptr noundef %94, ptr noundef @.str.11)
  br label %95

95:                                               ; preds = %93, %87
  br label %96

96:                                               ; preds = %95, %75
  %97 = load ptr, ptr %3, align 8, !tbaa !5
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = load i32, ptr %7, align 4, !tbaa !23
  %100 = load i32, ptr %5, align 4, !tbaa !23
  call void @png_handle_unknown(ptr noundef %97, ptr noundef %98, i32 noundef %99, i32 noundef %100)
  %101 = load i32, ptr %8, align 4, !tbaa !23
  %102 = icmp eq i32 %101, 1347179589
  br i1 %102, label %103, label %108

103:                                              ; preds = %96
  %104 = load ptr, ptr %3, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.png_struct_def, ptr %104, i32 0, i32 15
  %106 = load i32, ptr %105, align 4, !tbaa !25
  %107 = or i32 %106, 2
  store i32 %107, ptr %105, align 4, !tbaa !25
  br label %108

108:                                              ; preds = %103, %96
  br label %290

109:                                              ; preds = %70
  %110 = load i32, ptr %8, align 4, !tbaa !23
  %111 = icmp eq i32 %110, 1229209940
  br i1 %111, label %112, label %133

112:                                              ; preds = %109
  %113 = load i32, ptr %7, align 4, !tbaa !23
  %114 = icmp ugt i32 %113, 0
  br i1 %114, label %115, label %121

115:                                              ; preds = %112
  %116 = load ptr, ptr %3, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.png_struct_def, ptr %116, i32 0, i32 16
  %118 = load i32, ptr %117, align 8, !tbaa !26
  %119 = and i32 %118, 8
  %120 = icmp ne i32 %119, 0
  br i1 %120, label %121, label %127

121:                                              ; preds = %115, %112
  %122 = load ptr, ptr %3, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.png_struct_def, ptr %122, i32 0, i32 15
  %124 = load i32, ptr %123, align 4, !tbaa !25
  %125 = and i32 %124, 8192
  %126 = icmp ne i32 %125, 0
  br i1 %126, label %127, label %129

127:                                              ; preds = %121, %115
  %128 = load ptr, ptr %3, align 8, !tbaa !5
  call void @png_benign_error(ptr noundef %128, ptr noundef @.str.12)
  br label %129

129:                                              ; preds = %127, %121
  %130 = load ptr, ptr %3, align 8, !tbaa !5
  %131 = load i32, ptr %7, align 4, !tbaa !23
  %132 = call i32 @png_crc_finish(ptr noundef %130, i32 noundef %131)
  br label %289

133:                                              ; preds = %109
  %134 = load i32, ptr %8, align 4, !tbaa !23
  %135 = icmp eq i32 %134, 1347179589
  br i1 %135, label %136, label %140

136:                                              ; preds = %133
  %137 = load ptr, ptr %3, align 8, !tbaa !5
  %138 = load ptr, ptr %4, align 8, !tbaa !5
  %139 = load i32, ptr %7, align 4, !tbaa !23
  call void @png_handle_PLTE(ptr noundef %137, ptr noundef %138, i32 noundef %139)
  br label %288

140:                                              ; preds = %133
  %141 = load i32, ptr %8, align 4, !tbaa !23
  %142 = icmp eq i32 %141, 1649100612
  br i1 %142, label %143, label %147

143:                                              ; preds = %140
  %144 = load ptr, ptr %3, align 8, !tbaa !5
  %145 = load ptr, ptr %4, align 8, !tbaa !5
  %146 = load i32, ptr %7, align 4, !tbaa !23
  call void @png_handle_bKGD(ptr noundef %144, ptr noundef %145, i32 noundef %146)
  br label %287

147:                                              ; preds = %140
  %148 = load i32, ptr %8, align 4, !tbaa !23
  %149 = icmp eq i32 %148, 1665684045
  br i1 %149, label %150, label %154

150:                                              ; preds = %147
  %151 = load ptr, ptr %3, align 8, !tbaa !5
  %152 = load ptr, ptr %4, align 8, !tbaa !5
  %153 = load i32, ptr %7, align 4, !tbaa !23
  call void @png_handle_cHRM(ptr noundef %151, ptr noundef %152, i32 noundef %153)
  br label %286

154:                                              ; preds = %147
  %155 = load i32, ptr %8, align 4, !tbaa !23
  %156 = icmp eq i32 %155, 1700284774
  br i1 %156, label %157, label %161

157:                                              ; preds = %154
  %158 = load ptr, ptr %3, align 8, !tbaa !5
  %159 = load ptr, ptr %4, align 8, !tbaa !5
  %160 = load i32, ptr %7, align 4, !tbaa !23
  call void @png_handle_eXIf(ptr noundef %158, ptr noundef %159, i32 noundef %160)
  br label %285

161:                                              ; preds = %154
  %162 = load i32, ptr %8, align 4, !tbaa !23
  %163 = icmp eq i32 %162, 1732332865
  br i1 %163, label %164, label %168

164:                                              ; preds = %161
  %165 = load ptr, ptr %3, align 8, !tbaa !5
  %166 = load ptr, ptr %4, align 8, !tbaa !5
  %167 = load i32, ptr %7, align 4, !tbaa !23
  call void @png_handle_gAMA(ptr noundef %165, ptr noundef %166, i32 noundef %167)
  br label %284

168:                                              ; preds = %161
  %169 = load i32, ptr %8, align 4, !tbaa !23
  %170 = icmp eq i32 %169, 1749635924
  br i1 %170, label %171, label %175

171:                                              ; preds = %168
  %172 = load ptr, ptr %3, align 8, !tbaa !5
  %173 = load ptr, ptr %4, align 8, !tbaa !5
  %174 = load i32, ptr %7, align 4, !tbaa !23
  call void @png_handle_hIST(ptr noundef %172, ptr noundef %173, i32 noundef %174)
  br label %283

175:                                              ; preds = %168
  %176 = load i32, ptr %8, align 4, !tbaa !23
  %177 = icmp eq i32 %176, 1866876531
  br i1 %177, label %178, label %182

178:                                              ; preds = %175
  %179 = load ptr, ptr %3, align 8, !tbaa !5
  %180 = load ptr, ptr %4, align 8, !tbaa !5
  %181 = load i32, ptr %7, align 4, !tbaa !23
  call void @png_handle_oFFs(ptr noundef %179, ptr noundef %180, i32 noundef %181)
  br label %282

182:                                              ; preds = %175
  %183 = load i32, ptr %8, align 4, !tbaa !23
  %184 = icmp eq i32 %183, 1883455820
  br i1 %184, label %185, label %189

185:                                              ; preds = %182
  %186 = load ptr, ptr %3, align 8, !tbaa !5
  %187 = load ptr, ptr %4, align 8, !tbaa !5
  %188 = load i32, ptr %7, align 4, !tbaa !23
  call void @png_handle_pCAL(ptr noundef %186, ptr noundef %187, i32 noundef %188)
  br label %281

189:                                              ; preds = %182
  %190 = load i32, ptr %8, align 4, !tbaa !23
  %191 = icmp eq i32 %190, 1933787468
  br i1 %191, label %192, label %196

192:                                              ; preds = %189
  %193 = load ptr, ptr %3, align 8, !tbaa !5
  %194 = load ptr, ptr %4, align 8, !tbaa !5
  %195 = load i32, ptr %7, align 4, !tbaa !23
  call void @png_handle_sCAL(ptr noundef %193, ptr noundef %194, i32 noundef %195)
  br label %280

196:                                              ; preds = %189
  %197 = load i32, ptr %8, align 4, !tbaa !23
  %198 = icmp eq i32 %197, 1883789683
  br i1 %198, label %199, label %203

199:                                              ; preds = %196
  %200 = load ptr, ptr %3, align 8, !tbaa !5
  %201 = load ptr, ptr %4, align 8, !tbaa !5
  %202 = load i32, ptr %7, align 4, !tbaa !23
  call void @png_handle_pHYs(ptr noundef %200, ptr noundef %201, i32 noundef %202)
  br label %279

203:                                              ; preds = %196
  %204 = load i32, ptr %8, align 4, !tbaa !23
  %205 = icmp eq i32 %204, 1933723988
  br i1 %205, label %206, label %210

206:                                              ; preds = %203
  %207 = load ptr, ptr %3, align 8, !tbaa !5
  %208 = load ptr, ptr %4, align 8, !tbaa !5
  %209 = load i32, ptr %7, align 4, !tbaa !23
  call void @png_handle_sBIT(ptr noundef %207, ptr noundef %208, i32 noundef %209)
  br label %278

210:                                              ; preds = %203
  %211 = load i32, ptr %8, align 4, !tbaa !23
  %212 = icmp eq i32 %211, 1934772034
  br i1 %212, label %213, label %217

213:                                              ; preds = %210
  %214 = load ptr, ptr %3, align 8, !tbaa !5
  %215 = load ptr, ptr %4, align 8, !tbaa !5
  %216 = load i32, ptr %7, align 4, !tbaa !23
  call void @png_handle_sRGB(ptr noundef %214, ptr noundef %215, i32 noundef %216)
  br label %277

217:                                              ; preds = %210
  %218 = load i32, ptr %8, align 4, !tbaa !23
  %219 = icmp eq i32 %218, 1766015824
  br i1 %219, label %220, label %224

220:                                              ; preds = %217
  %221 = load ptr, ptr %3, align 8, !tbaa !5
  %222 = load ptr, ptr %4, align 8, !tbaa !5
  %223 = load i32, ptr %7, align 4, !tbaa !23
  call void @png_handle_iCCP(ptr noundef %221, ptr noundef %222, i32 noundef %223)
  br label %276

224:                                              ; preds = %217
  %225 = load i32, ptr %8, align 4, !tbaa !23
  %226 = icmp eq i32 %225, 1934642260
  br i1 %226, label %227, label %231

227:                                              ; preds = %224
  %228 = load ptr, ptr %3, align 8, !tbaa !5
  %229 = load ptr, ptr %4, align 8, !tbaa !5
  %230 = load i32, ptr %7, align 4, !tbaa !23
  call void @png_handle_sPLT(ptr noundef %228, ptr noundef %229, i32 noundef %230)
  br label %275

231:                                              ; preds = %224
  %232 = load i32, ptr %8, align 4, !tbaa !23
  %233 = icmp eq i32 %232, 1950701684
  br i1 %233, label %234, label %238

234:                                              ; preds = %231
  %235 = load ptr, ptr %3, align 8, !tbaa !5
  %236 = load ptr, ptr %4, align 8, !tbaa !5
  %237 = load i32, ptr %7, align 4, !tbaa !23
  call void @png_handle_tEXt(ptr noundef %235, ptr noundef %236, i32 noundef %237)
  br label %274

238:                                              ; preds = %231
  %239 = load i32, ptr %8, align 4, !tbaa !23
  %240 = icmp eq i32 %239, 1950960965
  br i1 %240, label %241, label %245

241:                                              ; preds = %238
  %242 = load ptr, ptr %3, align 8, !tbaa !5
  %243 = load ptr, ptr %4, align 8, !tbaa !5
  %244 = load i32, ptr %7, align 4, !tbaa !23
  call void @png_handle_tIME(ptr noundef %242, ptr noundef %243, i32 noundef %244)
  br label %273

245:                                              ; preds = %238
  %246 = load i32, ptr %8, align 4, !tbaa !23
  %247 = icmp eq i32 %246, 1951551059
  br i1 %247, label %248, label %252

248:                                              ; preds = %245
  %249 = load ptr, ptr %3, align 8, !tbaa !5
  %250 = load ptr, ptr %4, align 8, !tbaa !5
  %251 = load i32, ptr %7, align 4, !tbaa !23
  call void @png_handle_tRNS(ptr noundef %249, ptr noundef %250, i32 noundef %251)
  br label %272

252:                                              ; preds = %245
  %253 = load i32, ptr %8, align 4, !tbaa !23
  %254 = icmp eq i32 %253, 2052348020
  br i1 %254, label %255, label %259

255:                                              ; preds = %252
  %256 = load ptr, ptr %3, align 8, !tbaa !5
  %257 = load ptr, ptr %4, align 8, !tbaa !5
  %258 = load i32, ptr %7, align 4, !tbaa !23
  call void @png_handle_zTXt(ptr noundef %256, ptr noundef %257, i32 noundef %258)
  br label %271

259:                                              ; preds = %252
  %260 = load i32, ptr %8, align 4, !tbaa !23
  %261 = icmp eq i32 %260, 1767135348
  br i1 %261, label %262, label %266

262:                                              ; preds = %259
  %263 = load ptr, ptr %3, align 8, !tbaa !5
  %264 = load ptr, ptr %4, align 8, !tbaa !5
  %265 = load i32, ptr %7, align 4, !tbaa !23
  call void @png_handle_iTXt(ptr noundef %263, ptr noundef %264, i32 noundef %265)
  br label %270

266:                                              ; preds = %259
  %267 = load ptr, ptr %3, align 8, !tbaa !5
  %268 = load ptr, ptr %4, align 8, !tbaa !5
  %269 = load i32, ptr %7, align 4, !tbaa !23
  call void @png_handle_unknown(ptr noundef %267, ptr noundef %268, i32 noundef %269, i32 noundef 0)
  br label %270

270:                                              ; preds = %266, %262
  br label %271

271:                                              ; preds = %270, %255
  br label %272

272:                                              ; preds = %271, %248
  br label %273

273:                                              ; preds = %272, %241
  br label %274

274:                                              ; preds = %273, %234
  br label %275

275:                                              ; preds = %274, %227
  br label %276

276:                                              ; preds = %275, %220
  br label %277

277:                                              ; preds = %276, %213
  br label %278

278:                                              ; preds = %277, %206
  br label %279

279:                                              ; preds = %278, %199
  br label %280

280:                                              ; preds = %279, %192
  br label %281

281:                                              ; preds = %280, %185
  br label %282

282:                                              ; preds = %281, %178
  br label %283

283:                                              ; preds = %282, %171
  br label %284

284:                                              ; preds = %283, %164
  br label %285

285:                                              ; preds = %284, %157
  br label %286

286:                                              ; preds = %285, %150
  br label %287

287:                                              ; preds = %286, %143
  br label %288

288:                                              ; preds = %287, %136
  br label %289

289:                                              ; preds = %288, %129
  br label %290

290:                                              ; preds = %289, %108
  br label %291

291:                                              ; preds = %290, %66
  br label %292

292:                                              ; preds = %291, %59
  br label %293

293:                                              ; preds = %292, %52
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  br label %294

294:                                              ; preds = %293
  %295 = load ptr, ptr %3, align 8, !tbaa !5
  %296 = getelementptr inbounds %struct.png_struct_def, ptr %295, i32 0, i32 15
  %297 = load i32, ptr %296, align 4, !tbaa !25
  %298 = and i32 %297, 16
  %299 = icmp eq i32 %298, 0
  br i1 %299, label %36, label %300, !llvm.loop !27

300:                                              ; preds = %294
  store i32 0, ptr %6, align 4
  br label %301

301:                                              ; preds = %300, %11
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  %302 = load i32, ptr %6, align 4
  switch i32 %302, label %304 [
    i32 0, label %303
    i32 1, label %303
  ]

303:                                              ; preds = %301, %301
  ret void

304:                                              ; preds = %301
  unreachable
}

declare void @png_read_finish_IDAT(ptr noundef) #1

declare void @png_benign_error(ptr noundef, ptr noundef) #1

declare i32 @png_crc_finish(ptr noundef, i32 noundef) #1

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

!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/C++ TBAA"}
!9 = !{!10, !7, i64 615}
!10 = !{!"png_struct_def", !7, i64 0, !6, i64 200, !6, i64 208, !11, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !7, i64 296, !7, i64 297, !12, i64 300, !12, i64 304, !12, i64 308, !12, i64 312, !13, i64 320, !6, i64 432, !12, i64 440, !12, i64 444, !12, i64 448, !12, i64 452, !12, i64 456, !12, i64 460, !12, i64 464, !12, i64 468, !12, i64 472, !12, i64 476, !12, i64 480, !12, i64 484, !12, i64 488, !12, i64 492, !12, i64 496, !12, i64 500, !12, i64 504, !12, i64 508, !12, i64 512, !12, i64 516, !11, i64 520, !12, i64 528, !12, i64 532, !12, i64 536, !6, i64 544, !6, i64 552, !6, i64 560, !6, i64 568, !11, i64 576, !12, i64 584, !12, i64 588, !6, i64 592, !14, i64 600, !12, i64 604, !14, i64 608, !7, i64 610, !7, i64 611, !7, i64 612, !7, i64 613, !7, i64 614, !7, i64 615, !7, i64 616, !7, i64 617, !7, i64 618, !7, i64 619, !7, i64 620, !7, i64 621, !7, i64 622, !7, i64 623, !7, i64 624, !14, i64 626, !7, i64 628, !12, i64 632, !15, i64 636, !15, i64 646, !6, i64 656, !12, i64 664, !12, i64 668, !12, i64 672, !12, i64 676, !6, i64 680, !6, i64 688, !6, i64 696, !6, i64 704, !6, i64 712, !6, i64 720, !16, i64 728, !16, i64 733, !6, i64 744, !15, i64 752, !6, i64 768, !6, i64 776, !6, i64 784, !6, i64 792, !6, i64 800, !6, i64 808, !6, i64 816, !6, i64 824, !6, i64 832, !12, i64 840, !12, i64 844, !11, i64 848, !11, i64 856, !11, i64 864, !11, i64 872, !12, i64 880, !12, i64 884, !6, i64 888, !6, i64 896, !12, i64 904, !7, i64 908, !12, i64 940, !6, i64 944, !6, i64 952, !12, i64 960, !12, i64 964, !6, i64 968, !7, i64 976, !7, i64 977, !14, i64 978, !14, i64 980, !12, i64 984, !7, i64 988, !6, i64 992, !6, i64 1000, !6, i64 1008, !6, i64 1016, !6, i64 1024, !6, i64 1032, !6, i64 1040, !7, i64 1048, !12, i64 1052, !12, i64 1056, !12, i64 1060, !11, i64 1064, !17, i64 1072, !11, i64 1104, !6, i64 1112, !11, i64 1120, !12, i64 1128, !12, i64 1132, !6, i64 1136, !7, i64 1144, !18, i64 1176}
!11 = !{!"long", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"z_stream_s", !6, i64 0, !12, i64 8, !11, i64 16, !6, i64 24, !12, i64 32, !11, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !12, i64 88, !11, i64 96, !11, i64 104}
!14 = !{!"short", !7, i64 0}
!15 = !{!"png_color_16_struct", !7, i64 0, !14, i64 2, !14, i64 4, !14, i64 6, !14, i64 8}
!16 = !{!"png_color_8_struct", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4}
!17 = !{!"png_unknown_chunk_t", !7, i64 0, !6, i64 8, !11, i64 16, !7, i64 24}
!18 = !{!"png_colorspace", !12, i64 0, !19, i64 4, !20, i64 36, !14, i64 72, !14, i64 74}
!19 = !{!"png_xy", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28}
!20 = !{!"png_XYZ", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32}
!21 = !{!10, !12, i64 604}
!22 = !{!10, !14, i64 600}
!23 = !{!12, !12, i64 0}
!24 = !{!10, !12, i64 536}
!25 = !{!10, !12, i64 300}
!26 = !{!10, !12, i64 304}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}


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

@.str.10 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [23 x i8], align 1

declare i32 @png_read_chunk_header(ptr noundef) local_unnamed_addr #0

declare void @png_handle_IHDR(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

declare void @png_handle_IEND(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

declare i32 @png_chunk_unknown_handling(ptr noundef, i32 noundef) local_unnamed_addr #0

declare void @png_handle_unknown(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

declare void @png_handle_PLTE(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

declare void @png_handle_bKGD(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

declare void @png_handle_cHRM(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

declare void @png_handle_eXIf(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

declare void @png_handle_gAMA(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

declare void @png_handle_hIST(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

declare void @png_handle_oFFs(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

declare void @png_handle_pCAL(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

declare void @png_handle_sCAL(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

declare void @png_handle_pHYs(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

declare void @png_handle_sBIT(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

declare void @png_handle_sRGB(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

declare void @png_handle_iCCP(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

declare void @png_handle_sPLT(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

declare void @png_handle_tEXt(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

declare void @png_handle_tIME(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

declare void @png_handle_tRNS(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

declare void @png_handle_zTXt(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

declare void @png_handle_iTXt(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @png_read_end(ptr noalias noundef %0, ptr noalias noundef %1) local_unnamed_addr #1 {
  %3 = icmp eq ptr %0, null
  br i1 %3, label %.loopexit, label %4

4:                                                ; preds = %2
  %5 = tail call i32 @png_chunk_unknown_handling(ptr noundef nonnull %0, i32 noundef 1229209940) #2
  %6 = icmp eq i32 %5, 0
  br i1 %6, label %7, label %8

7:                                                ; preds = %4
  tail call void @png_read_finish_IDAT(ptr noundef nonnull %0) #2
  br label %8

8:                                                ; preds = %7, %4
  %9 = getelementptr inbounds i8, ptr %0, i64 615
  %10 = load i8, ptr %9, align 1, !tbaa !5
  %11 = icmp eq i8 %10, 3
  br i1 %11, label %12, label %20

12:                                               ; preds = %8
  %13 = getelementptr inbounds i8, ptr %0, i64 604
  %14 = load i32, ptr %13, align 4, !tbaa !20
  %15 = getelementptr inbounds i8, ptr %0, i64 600
  %16 = load i16, ptr %15, align 8, !tbaa !21
  %17 = zext i16 %16 to i32
  %18 = icmp sgt i32 %14, %17
  br i1 %18, label %19, label %20

19:                                               ; preds = %12
  tail call void @png_benign_error(ptr noundef nonnull %0, ptr noundef nonnull @.str.10) #2
  br label %20

20:                                               ; preds = %19, %12, %8
  %21 = getelementptr inbounds i8, ptr %0, i64 536
  %22 = getelementptr inbounds i8, ptr %0, i64 300
  %23 = icmp eq ptr %1, null
  %24 = getelementptr inbounds i8, ptr %0, i64 304
  br i1 %23, label %.split.us, label %.split

.split.us:                                        ; preds = %20, %34
  %25 = tail call i32 @png_read_chunk_header(ptr noundef nonnull %0) #2
  %26 = load i32, ptr %21, align 8, !tbaa !22
  %cond.us = icmp eq i32 %26, 1229209940
  br i1 %cond.us, label %32, label %27

27:                                               ; preds = %.split.us
  %28 = load i32, ptr %22, align 4, !tbaa !23
  %29 = or i32 %28, 8192
  store i32 %29, ptr %22, align 4, !tbaa !23
  switch i32 %26, label %32 [
    i32 1229278788, label %31
    i32 1229472850, label %30
  ]

30:                                               ; preds = %27
  tail call void @png_handle_IHDR(ptr noundef nonnull %0, ptr noundef null, i32 noundef %25) #2
  br label %34

31:                                               ; preds = %27
  tail call void @png_handle_IEND(ptr noundef nonnull %0, ptr noundef null, i32 noundef %25) #2
  br label %34

32:                                               ; preds = %27, %.split.us
  %33 = tail call i32 @png_crc_finish(ptr noundef nonnull %0, i32 noundef %25) #2
  br label %34

34:                                               ; preds = %32, %31, %30
  %35 = load i32, ptr %22, align 4, !tbaa !23
  %36 = and i32 %35, 16
  %37 = icmp eq i32 %36, 0
  br i1 %37, label %.split.us, label %.loopexit, !llvm.loop !24

.split:                                           ; preds = %20, %92
  %38 = tail call i32 @png_read_chunk_header(ptr noundef nonnull %0) #2
  %39 = load i32, ptr %21, align 8, !tbaa !22
  %cond = icmp eq i32 %39, 1229209940
  br i1 %cond, label %45, label %40

40:                                               ; preds = %.split
  %41 = load i32, ptr %22, align 4, !tbaa !23
  %42 = or i32 %41, 8192
  store i32 %42, ptr %22, align 4, !tbaa !23
  switch i32 %39, label %.thread132 [
    i32 1229278788, label %43
    i32 1229472850, label %44
  ]

43:                                               ; preds = %40
  tail call void @png_handle_IEND(ptr noundef nonnull %0, ptr noundef %1, i32 noundef %38) #2
  br label %92

44:                                               ; preds = %40
  tail call void @png_handle_IHDR(ptr noundef nonnull %0, ptr noundef %1, i32 noundef %38) #2
  br label %92

45:                                               ; preds = %.split
  %46 = tail call i32 @png_chunk_unknown_handling(ptr noundef nonnull %0, i32 noundef %39) #2
  %.not124 = icmp eq i32 %46, 0
  br i1 %.not124, label %61, label %48

.thread132:                                       ; preds = %40
  %47 = tail call i32 @png_chunk_unknown_handling(ptr noundef nonnull %0, i32 noundef %39) #2
  %.not124133 = icmp eq i32 %47, 0
  br i1 %.not124133, label %61, label %56

48:                                               ; preds = %45
  %.not128 = icmp eq i32 %38, 0
  br i1 %.not128, label %52, label %49

49:                                               ; preds = %48
  %50 = load i32, ptr %24, align 8, !tbaa !26
  %51 = and i32 %50, 8
  %.not129 = icmp eq i32 %51, 0
  br i1 %.not129, label %55, label %52

52:                                               ; preds = %49, %48
  %53 = load i32, ptr %22, align 4, !tbaa !23
  %54 = and i32 %53, 8192
  %.not130 = icmp eq i32 %54, 0
  br i1 %.not130, label %.thread, label %55

55:                                               ; preds = %52, %49
  tail call void @png_benign_error(ptr noundef nonnull %0, ptr noundef nonnull @.str.11) #2
  br label %.thread

.thread:                                          ; preds = %52, %55
  tail call void @png_handle_unknown(ptr noundef nonnull %0, ptr noundef nonnull %1, i32 noundef %38, i32 noundef %46) #2
  br label %92

56:                                               ; preds = %.thread132
  tail call void @png_handle_unknown(ptr noundef nonnull %0, ptr noundef nonnull %1, i32 noundef %38, i32 noundef %47) #2
  %57 = icmp eq i32 %39, 1347179589
  br i1 %57, label %58, label %92

58:                                               ; preds = %56
  %59 = load i32, ptr %22, align 4, !tbaa !23
  %60 = or i32 %59, 2
  store i32 %60, ptr %22, align 4, !tbaa !23
  br label %92

61:                                               ; preds = %.thread132, %45
  switch i32 %39, label %91 [
    i32 1229209940, label %62
    i32 1347179589, label %72
    i32 1649100612, label %73
    i32 1665684045, label %74
    i32 1700284774, label %75
    i32 1732332865, label %76
    i32 1749635924, label %77
    i32 1866876531, label %78
    i32 1883455820, label %79
    i32 1933787468, label %80
    i32 1883789683, label %81
    i32 1933723988, label %82
    i32 1934772034, label %83
    i32 1766015824, label %84
    i32 1934642260, label %85
    i32 1950701684, label %86
    i32 1950960965, label %87
    i32 1951551059, label %88
    i32 2052348020, label %89
    i32 1767135348, label %90
  ]

62:                                               ; preds = %61
  %.not125 = icmp eq i32 %38, 0
  br i1 %.not125, label %66, label %63

63:                                               ; preds = %62
  %64 = load i32, ptr %24, align 8, !tbaa !26
  %65 = and i32 %64, 8
  %.not126 = icmp eq i32 %65, 0
  br i1 %.not126, label %69, label %66

66:                                               ; preds = %63, %62
  %67 = load i32, ptr %22, align 4, !tbaa !23
  %68 = and i32 %67, 8192
  %.not127 = icmp eq i32 %68, 0
  br i1 %.not127, label %70, label %69

69:                                               ; preds = %66, %63
  tail call void @png_benign_error(ptr noundef nonnull %0, ptr noundef nonnull @.str.12) #2
  br label %70

70:                                               ; preds = %69, %66
  %71 = tail call i32 @png_crc_finish(ptr noundef nonnull %0, i32 noundef %38) #2
  br label %92

72:                                               ; preds = %61
  tail call void @png_handle_PLTE(ptr noundef nonnull %0, ptr noundef nonnull %1, i32 noundef %38) #2
  br label %92

73:                                               ; preds = %61
  tail call void @png_handle_bKGD(ptr noundef nonnull %0, ptr noundef nonnull %1, i32 noundef %38) #2
  br label %92

74:                                               ; preds = %61
  tail call void @png_handle_cHRM(ptr noundef nonnull %0, ptr noundef nonnull %1, i32 noundef %38) #2
  br label %92

75:                                               ; preds = %61
  tail call void @png_handle_eXIf(ptr noundef nonnull %0, ptr noundef nonnull %1, i32 noundef %38) #2
  br label %92

76:                                               ; preds = %61
  tail call void @png_handle_gAMA(ptr noundef nonnull %0, ptr noundef nonnull %1, i32 noundef %38) #2
  br label %92

77:                                               ; preds = %61
  tail call void @png_handle_hIST(ptr noundef nonnull %0, ptr noundef nonnull %1, i32 noundef %38) #2
  br label %92

78:                                               ; preds = %61
  tail call void @png_handle_oFFs(ptr noundef nonnull %0, ptr noundef nonnull %1, i32 noundef %38) #2
  br label %92

79:                                               ; preds = %61
  tail call void @png_handle_pCAL(ptr noundef nonnull %0, ptr noundef nonnull %1, i32 noundef %38) #2
  br label %92

80:                                               ; preds = %61
  tail call void @png_handle_sCAL(ptr noundef nonnull %0, ptr noundef nonnull %1, i32 noundef %38) #2
  br label %92

81:                                               ; preds = %61
  tail call void @png_handle_pHYs(ptr noundef nonnull %0, ptr noundef nonnull %1, i32 noundef %38) #2
  br label %92

82:                                               ; preds = %61
  tail call void @png_handle_sBIT(ptr noundef nonnull %0, ptr noundef nonnull %1, i32 noundef %38) #2
  br label %92

83:                                               ; preds = %61
  tail call void @png_handle_sRGB(ptr noundef nonnull %0, ptr noundef nonnull %1, i32 noundef %38) #2
  br label %92

84:                                               ; preds = %61
  tail call void @png_handle_iCCP(ptr noundef nonnull %0, ptr noundef nonnull %1, i32 noundef %38) #2
  br label %92

85:                                               ; preds = %61
  tail call void @png_handle_sPLT(ptr noundef nonnull %0, ptr noundef nonnull %1, i32 noundef %38) #2
  br label %92

86:                                               ; preds = %61
  tail call void @png_handle_tEXt(ptr noundef nonnull %0, ptr noundef nonnull %1, i32 noundef %38) #2
  br label %92

87:                                               ; preds = %61
  tail call void @png_handle_tIME(ptr noundef nonnull %0, ptr noundef nonnull %1, i32 noundef %38) #2
  br label %92

88:                                               ; preds = %61
  tail call void @png_handle_tRNS(ptr noundef nonnull %0, ptr noundef nonnull %1, i32 noundef %38) #2
  br label %92

89:                                               ; preds = %61
  tail call void @png_handle_zTXt(ptr noundef nonnull %0, ptr noundef nonnull %1, i32 noundef %38) #2
  br label %92

90:                                               ; preds = %61
  tail call void @png_handle_iTXt(ptr noundef nonnull %0, ptr noundef nonnull %1, i32 noundef %38) #2
  br label %92

91:                                               ; preds = %61
  tail call void @png_handle_unknown(ptr noundef nonnull %0, ptr noundef nonnull %1, i32 noundef %38, i32 noundef 0) #2
  br label %92

92:                                               ; preds = %.thread, %44, %58, %56, %72, %74, %76, %78, %80, %82, %84, %86, %88, %90, %91, %89, %87, %85, %83, %81, %79, %77, %75, %73, %70, %43
  %93 = load i32, ptr %22, align 4, !tbaa !23
  %94 = and i32 %93, 16
  %95 = icmp eq i32 %94, 0
  br i1 %95, label %.split, label %.loopexit, !llvm.loop !24

.loopexit:                                        ; preds = %92, %34, %2
  ret void
}

declare void @png_read_finish_IDAT(ptr noundef) local_unnamed_addr #0

declare void @png_benign_error(ptr noundef, ptr noundef) local_unnamed_addr #0

declare i32 @png_crc_finish(ptr noundef, i32 noundef) local_unnamed_addr #0

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 615}
!6 = !{!"png_struct_def", !7, i64 0, !9, i64 200, !9, i64 208, !10, i64 216, !9, i64 224, !9, i64 232, !9, i64 240, !9, i64 248, !9, i64 256, !9, i64 264, !9, i64 272, !9, i64 280, !9, i64 288, !7, i64 296, !7, i64 297, !11, i64 300, !11, i64 304, !11, i64 308, !11, i64 312, !12, i64 320, !9, i64 432, !11, i64 440, !11, i64 444, !11, i64 448, !11, i64 452, !11, i64 456, !11, i64 460, !11, i64 464, !11, i64 468, !11, i64 472, !11, i64 476, !11, i64 480, !11, i64 484, !11, i64 488, !11, i64 492, !11, i64 496, !11, i64 500, !11, i64 504, !11, i64 508, !11, i64 512, !11, i64 516, !10, i64 520, !11, i64 528, !11, i64 532, !11, i64 536, !9, i64 544, !9, i64 552, !9, i64 560, !9, i64 568, !10, i64 576, !11, i64 584, !11, i64 588, !9, i64 592, !13, i64 600, !11, i64 604, !13, i64 608, !7, i64 610, !7, i64 611, !7, i64 612, !7, i64 613, !7, i64 614, !7, i64 615, !7, i64 616, !7, i64 617, !7, i64 618, !7, i64 619, !7, i64 620, !7, i64 621, !7, i64 622, !7, i64 623, !7, i64 624, !13, i64 626, !7, i64 628, !11, i64 632, !14, i64 636, !14, i64 646, !9, i64 656, !11, i64 664, !11, i64 668, !11, i64 672, !11, i64 676, !9, i64 680, !9, i64 688, !9, i64 696, !9, i64 704, !9, i64 712, !9, i64 720, !15, i64 728, !15, i64 733, !9, i64 744, !14, i64 752, !9, i64 768, !9, i64 776, !9, i64 784, !9, i64 792, !9, i64 800, !9, i64 808, !9, i64 816, !9, i64 824, !9, i64 832, !11, i64 840, !11, i64 844, !10, i64 848, !10, i64 856, !10, i64 864, !10, i64 872, !11, i64 880, !11, i64 884, !9, i64 888, !9, i64 896, !11, i64 904, !7, i64 908, !11, i64 940, !9, i64 944, !9, i64 952, !11, i64 960, !11, i64 964, !9, i64 968, !7, i64 976, !7, i64 977, !13, i64 978, !13, i64 980, !11, i64 984, !7, i64 988, !9, i64 992, !9, i64 1000, !9, i64 1008, !9, i64 1016, !9, i64 1024, !9, i64 1032, !9, i64 1040, !7, i64 1048, !11, i64 1052, !11, i64 1056, !11, i64 1060, !10, i64 1064, !16, i64 1072, !10, i64 1104, !9, i64 1112, !10, i64 1120, !11, i64 1128, !11, i64 1132, !9, i64 1136, !7, i64 1144, !17, i64 1176}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"any pointer", !7, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!"z_stream_s", !9, i64 0, !11, i64 8, !10, i64 16, !9, i64 24, !11, i64 32, !10, i64 40, !9, i64 48, !9, i64 56, !9, i64 64, !9, i64 72, !9, i64 80, !11, i64 88, !10, i64 96, !10, i64 104}
!13 = !{!"short", !7, i64 0}
!14 = !{!"png_color_16_struct", !7, i64 0, !13, i64 2, !13, i64 4, !13, i64 6, !13, i64 8}
!15 = !{!"png_color_8_struct", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4}
!16 = !{!"png_unknown_chunk_t", !7, i64 0, !9, i64 8, !10, i64 16, !7, i64 24}
!17 = !{!"png_colorspace", !11, i64 0, !18, i64 4, !19, i64 36, !13, i64 72, !13, i64 74}
!18 = !{!"png_xy", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28}
!19 = !{!"png_XYZ", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32}
!20 = !{!6, !11, i64 604}
!21 = !{!6, !13, i64 600}
!22 = !{!6, !11, i64 536}
!23 = !{!6, !11, i64 300}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!6, !11, i64 304}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass