; LLVM IR from rdguez-mariano/fast_imas_IPOL :: io_png/libs/png (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, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i8, i64, i64, i64, %struct.z_stream_s, ptr, i64, i32, i32, i32, i32, i32, i64, i64, i64, i64, i64, i64, i64, i64, ptr, ptr, ptr, ptr, ptr, ptr, %struct.png_row_info_struct, i64, i64, ptr, i16, i16, [5 x i8], i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i16, i8, float, %struct.png_color_16_struct, %struct.png_color_16_struct, ptr, i64, i64, i32, float, float, 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, i64, i64, i64, i64, i64, i64, i32, i32, i64, i64, ptr, ptr, ptr, ptr, ptr, i8, i8, ptr, ptr, ptr, ptr, ptr, ptr, i64, ptr, ptr, i32, ptr, i8, i16, i16, i16, i64, i64, i8, i8, i64, i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i64, i64, %struct.png_unknown_chunk_t, i64, i64, ptr }
%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_row_info_struct = type { i64, i64, i8, i8, i8, i8 }
%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 }

@png_IDAT = external global [5 x i8], align 1
@png_IHDR = external global [5 x i8], align 1
@png_IEND = external global [5 x i8], align 1
@png_PLTE = external global [5 x i8], align 1
@png_bKGD = external global [5 x i8], align 1
@png_cHRM = external global [5 x i8], align 1
@png_gAMA = external global [5 x i8], align 1
@png_hIST = external global [5 x i8], align 1
@png_oFFs = external global [5 x i8], align 1
@png_pCAL = external global [5 x i8], align 1
@png_sCAL = external global [5 x i8], align 1
@png_pHYs = external global [5 x i8], align 1
@png_sBIT = external global [5 x i8], align 1
@png_sRGB = external global [5 x i8], align 1
@png_iCCP = external global [5 x i8], align 1
@png_sPLT = external global [5 x i8], align 1
@png_tEXt = external global [5 x i8], align 1
@png_tIME = external global [5 x i8], align 1
@png_tRNS = external global [5 x i8], align 1
@png_zTXt = external global [5 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [22 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

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

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

declare i64 @png_read_chunk_header(ptr noundef) #1

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @png_read_end(ptr noundef %0, ptr noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %7 = load ptr, ptr %3, align 8, !tbaa !5
  %8 = icmp eq ptr %7, null
  br i1 %8, label %9, label %10

9:                                                ; preds = %2
  br label %255

10:                                               ; preds = %2
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  %12 = call i32 @png_crc_finish(ptr noundef %11, i64 noundef 0)
  br label %13

13:                                               ; preds = %248, %10
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = call i64 @png_read_chunk_header(ptr noundef %14)
  store i64 %15, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.png_struct_def, ptr %16, i32 0, i32 43
  %18 = getelementptr inbounds [5 x i8], ptr %17, i64 0, i64 0
  store ptr %18, ptr %6, align 8, !tbaa !5
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = call i32 @memcmp(ptr noundef %19, ptr noundef @png_IHDR, i64 noundef 4) #5
  %21 = icmp ne i32 %20, 0
  br i1 %21, label %26, label %22

22:                                               ; preds = %13
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = load i64, ptr %5, align 8, !tbaa !9
  call void @png_handle_IHDR(ptr noundef %23, ptr noundef %24, i64 noundef %25)
  br label %247

26:                                               ; preds = %13
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = call i32 @memcmp(ptr noundef %27, ptr noundef @png_IEND, i64 noundef 4) #5
  %29 = icmp ne i32 %28, 0
  br i1 %29, label %34, label %30

30:                                               ; preds = %26
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = load i64, ptr %5, align 8, !tbaa !9
  call void @png_handle_IEND(ptr noundef %31, ptr noundef %32, i64 noundef %33)
  br label %246

34:                                               ; preds = %26
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = call i32 @png_handle_as_unknown(ptr noundef %35, ptr noundef %36)
  %38 = icmp ne i32 %37, 0
  br i1 %38, label %39, label %68

39:                                               ; preds = %34
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = call i32 @memcmp(ptr noundef %40, ptr noundef @png_IDAT, i64 noundef 4) #5
  %42 = icmp ne i32 %41, 0
  br i1 %42, label %55, label %43

43:                                               ; preds = %39
  %44 = load i64, ptr %5, align 8, !tbaa !9
  %45 = icmp ugt i64 %44, 0
  br i1 %45, label %52, label %46

46:                                               ; preds = %43
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.png_struct_def, ptr %47, i32 0, i32 12
  %49 = load i64, ptr %48, align 8, !tbaa !11
  %50 = and i64 %49, 8192
  %51 = icmp ne i64 %50, 0
  br i1 %51, label %52, label %54

52:                                               ; preds = %46, %43
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  call void @png_error(ptr noundef %53, ptr noundef @.str.22)
  br label %54

54:                                               ; preds = %52, %46
  br label %55

55:                                               ; preds = %54, %39
  %56 = load ptr, ptr %3, align 8, !tbaa !5
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = load i64, ptr %5, align 8, !tbaa !9
  call void @png_handle_unknown(ptr noundef %56, ptr noundef %57, i64 noundef %58)
  %59 = load ptr, ptr %6, align 8, !tbaa !5
  %60 = call i32 @memcmp(ptr noundef %59, ptr noundef @png_PLTE, i64 noundef 4) #5
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %67, label %62

62:                                               ; preds = %55
  %63 = load ptr, ptr %3, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.png_struct_def, ptr %63, i32 0, i32 12
  %65 = load i64, ptr %64, align 8, !tbaa !11
  %66 = or i64 %65, 2
  store i64 %66, ptr %64, align 8, !tbaa !11
  br label %67

67:                                               ; preds = %62, %55
  br label %245

68:                                               ; preds = %34
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = call i32 @memcmp(ptr noundef %69, ptr noundef @png_IDAT, i64 noundef 4) #5
  %71 = icmp ne i32 %70, 0
  br i1 %71, label %87, label %72

72:                                               ; preds = %68
  %73 = load i64, ptr %5, align 8, !tbaa !9
  %74 = icmp ugt i64 %73, 0
  br i1 %74, label %81, label %75

75:                                               ; preds = %72
  %76 = load ptr, ptr %3, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.png_struct_def, ptr %76, i32 0, i32 12
  %78 = load i64, ptr %77, align 8, !tbaa !11
  %79 = and i64 %78, 8192
  %80 = icmp ne i64 %79, 0
  br i1 %80, label %81, label %83

81:                                               ; preds = %75, %72
  %82 = load ptr, ptr %3, align 8, !tbaa !5
  call void @png_error(ptr noundef %82, ptr noundef @.str.22)
  br label %83

83:                                               ; preds = %81, %75
  %84 = load ptr, ptr %3, align 8, !tbaa !5
  %85 = load i64, ptr %5, align 8, !tbaa !9
  %86 = call i32 @png_crc_finish(ptr noundef %84, i64 noundef %85)
  br label %244

87:                                               ; preds = %68
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  %89 = call i32 @memcmp(ptr noundef %88, ptr noundef @png_PLTE, i64 noundef 4) #5
  %90 = icmp ne i32 %89, 0
  br i1 %90, label %95, label %91

91:                                               ; preds = %87
  %92 = load ptr, ptr %3, align 8, !tbaa !5
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = load i64, ptr %5, align 8, !tbaa !9
  call void @png_handle_PLTE(ptr noundef %92, ptr noundef %93, i64 noundef %94)
  br label %243

95:                                               ; preds = %87
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  %97 = call i32 @memcmp(ptr noundef %96, ptr noundef @png_bKGD, i64 noundef 4) #5
  %98 = icmp ne i32 %97, 0
  br i1 %98, label %103, label %99

99:                                               ; preds = %95
  %100 = load ptr, ptr %3, align 8, !tbaa !5
  %101 = load ptr, ptr %4, align 8, !tbaa !5
  %102 = load i64, ptr %5, align 8, !tbaa !9
  call void @png_handle_bKGD(ptr noundef %100, ptr noundef %101, i64 noundef %102)
  br label %242

103:                                              ; preds = %95
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = call i32 @memcmp(ptr noundef %104, ptr noundef @png_cHRM, i64 noundef 4) #5
  %106 = icmp ne i32 %105, 0
  br i1 %106, label %111, label %107

107:                                              ; preds = %103
  %108 = load ptr, ptr %3, align 8, !tbaa !5
  %109 = load ptr, ptr %4, align 8, !tbaa !5
  %110 = load i64, ptr %5, align 8, !tbaa !9
  call void @png_handle_cHRM(ptr noundef %108, ptr noundef %109, i64 noundef %110)
  br label %241

111:                                              ; preds = %103
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  %113 = call i32 @memcmp(ptr noundef %112, ptr noundef @png_gAMA, i64 noundef 4) #5
  %114 = icmp ne i32 %113, 0
  br i1 %114, label %119, label %115

115:                                              ; preds = %111
  %116 = load ptr, ptr %3, align 8, !tbaa !5
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  %118 = load i64, ptr %5, align 8, !tbaa !9
  call void @png_handle_gAMA(ptr noundef %116, ptr noundef %117, i64 noundef %118)
  br label %240

119:                                              ; preds = %111
  %120 = load ptr, ptr %6, align 8, !tbaa !5
  %121 = call i32 @memcmp(ptr noundef %120, ptr noundef @png_hIST, i64 noundef 4) #5
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %127, label %123

123:                                              ; preds = %119
  %124 = load ptr, ptr %3, align 8, !tbaa !5
  %125 = load ptr, ptr %4, align 8, !tbaa !5
  %126 = load i64, ptr %5, align 8, !tbaa !9
  call void @png_handle_hIST(ptr noundef %124, ptr noundef %125, i64 noundef %126)
  br label %239

127:                                              ; preds = %119
  %128 = load ptr, ptr %6, align 8, !tbaa !5
  %129 = call i32 @memcmp(ptr noundef %128, ptr noundef @png_oFFs, i64 noundef 4) #5
  %130 = icmp ne i32 %129, 0
  br i1 %130, label %135, label %131

131:                                              ; preds = %127
  %132 = load ptr, ptr %3, align 8, !tbaa !5
  %133 = load ptr, ptr %4, align 8, !tbaa !5
  %134 = load i64, ptr %5, align 8, !tbaa !9
  call void @png_handle_oFFs(ptr noundef %132, ptr noundef %133, i64 noundef %134)
  br label %238

135:                                              ; preds = %127
  %136 = load ptr, ptr %6, align 8, !tbaa !5
  %137 = call i32 @memcmp(ptr noundef %136, ptr noundef @png_pCAL, i64 noundef 4) #5
  %138 = icmp ne i32 %137, 0
  br i1 %138, label %143, label %139

139:                                              ; preds = %135
  %140 = load ptr, ptr %3, align 8, !tbaa !5
  %141 = load ptr, ptr %4, align 8, !tbaa !5
  %142 = load i64, ptr %5, align 8, !tbaa !9
  call void @png_handle_pCAL(ptr noundef %140, ptr noundef %141, i64 noundef %142)
  br label %237

143:                                              ; preds = %135
  %144 = load ptr, ptr %6, align 8, !tbaa !5
  %145 = call i32 @memcmp(ptr noundef %144, ptr noundef @png_sCAL, i64 noundef 4) #5
  %146 = icmp ne i32 %145, 0
  br i1 %146, label %151, label %147

147:                                              ; preds = %143
  %148 = load ptr, ptr %3, align 8, !tbaa !5
  %149 = load ptr, ptr %4, align 8, !tbaa !5
  %150 = load i64, ptr %5, align 8, !tbaa !9
  call void @png_handle_sCAL(ptr noundef %148, ptr noundef %149, i64 noundef %150)
  br label %236

151:                                              ; preds = %143
  %152 = load ptr, ptr %6, align 8, !tbaa !5
  %153 = call i32 @memcmp(ptr noundef %152, ptr noundef @png_pHYs, i64 noundef 4) #5
  %154 = icmp ne i32 %153, 0
  br i1 %154, label %159, label %155

155:                                              ; preds = %151
  %156 = load ptr, ptr %3, align 8, !tbaa !5
  %157 = load ptr, ptr %4, align 8, !tbaa !5
  %158 = load i64, ptr %5, align 8, !tbaa !9
  call void @png_handle_pHYs(ptr noundef %156, ptr noundef %157, i64 noundef %158)
  br label %235

159:                                              ; preds = %151
  %160 = load ptr, ptr %6, align 8, !tbaa !5
  %161 = call i32 @memcmp(ptr noundef %160, ptr noundef @png_sBIT, i64 noundef 4) #5
  %162 = icmp ne i32 %161, 0
  br i1 %162, label %167, label %163

163:                                              ; preds = %159
  %164 = load ptr, ptr %3, align 8, !tbaa !5
  %165 = load ptr, ptr %4, align 8, !tbaa !5
  %166 = load i64, ptr %5, align 8, !tbaa !9
  call void @png_handle_sBIT(ptr noundef %164, ptr noundef %165, i64 noundef %166)
  br label %234

167:                                              ; preds = %159
  %168 = load ptr, ptr %6, align 8, !tbaa !5
  %169 = call i32 @memcmp(ptr noundef %168, ptr noundef @png_sRGB, i64 noundef 4) #5
  %170 = icmp ne i32 %169, 0
  br i1 %170, label %175, label %171

171:                                              ; preds = %167
  %172 = load ptr, ptr %3, align 8, !tbaa !5
  %173 = load ptr, ptr %4, align 8, !tbaa !5
  %174 = load i64, ptr %5, align 8, !tbaa !9
  call void @png_handle_sRGB(ptr noundef %172, ptr noundef %173, i64 noundef %174)
  br label %233

175:                                              ; preds = %167
  %176 = load ptr, ptr %6, align 8, !tbaa !5
  %177 = call i32 @memcmp(ptr noundef %176, ptr noundef @png_iCCP, i64 noundef 4) #5
  %178 = icmp ne i32 %177, 0
  br i1 %178, label %183, label %179

179:                                              ; preds = %175
  %180 = load ptr, ptr %3, align 8, !tbaa !5
  %181 = load ptr, ptr %4, align 8, !tbaa !5
  %182 = load i64, ptr %5, align 8, !tbaa !9
  call void @png_handle_iCCP(ptr noundef %180, ptr noundef %181, i64 noundef %182)
  br label %232

183:                                              ; preds = %175
  %184 = load ptr, ptr %6, align 8, !tbaa !5
  %185 = call i32 @memcmp(ptr noundef %184, ptr noundef @png_sPLT, i64 noundef 4) #5
  %186 = icmp ne i32 %185, 0
  br i1 %186, label %191, label %187

187:                                              ; preds = %183
  %188 = load ptr, ptr %3, align 8, !tbaa !5
  %189 = load ptr, ptr %4, align 8, !tbaa !5
  %190 = load i64, ptr %5, align 8, !tbaa !9
  call void @png_handle_sPLT(ptr noundef %188, ptr noundef %189, i64 noundef %190)
  br label %231

191:                                              ; preds = %183
  %192 = load ptr, ptr %6, align 8, !tbaa !5
  %193 = call i32 @memcmp(ptr noundef %192, ptr noundef @png_tEXt, i64 noundef 4) #5
  %194 = icmp ne i32 %193, 0
  br i1 %194, label %199, label %195

195:                                              ; preds = %191
  %196 = load ptr, ptr %3, align 8, !tbaa !5
  %197 = load ptr, ptr %4, align 8, !tbaa !5
  %198 = load i64, ptr %5, align 8, !tbaa !9
  call void @png_handle_tEXt(ptr noundef %196, ptr noundef %197, i64 noundef %198)
  br label %230

199:                                              ; preds = %191
  %200 = load ptr, ptr %6, align 8, !tbaa !5
  %201 = call i32 @memcmp(ptr noundef %200, ptr noundef @png_tIME, i64 noundef 4) #5
  %202 = icmp ne i32 %201, 0
  br i1 %202, label %207, label %203

203:                                              ; preds = %199
  %204 = load ptr, ptr %3, align 8, !tbaa !5
  %205 = load ptr, ptr %4, align 8, !tbaa !5
  %206 = load i64, ptr %5, align 8, !tbaa !9
  call void @png_handle_tIME(ptr noundef %204, ptr noundef %205, i64 noundef %206)
  br label %229

207:                                              ; preds = %199
  %208 = load ptr, ptr %6, align 8, !tbaa !5
  %209 = call i32 @memcmp(ptr noundef %208, ptr noundef @png_tRNS, i64 noundef 4) #5
  %210 = icmp ne i32 %209, 0
  br i1 %210, label %215, label %211

211:                                              ; preds = %207
  %212 = load ptr, ptr %3, align 8, !tbaa !5
  %213 = load ptr, ptr %4, align 8, !tbaa !5
  %214 = load i64, ptr %5, align 8, !tbaa !9
  call void @png_handle_tRNS(ptr noundef %212, ptr noundef %213, i64 noundef %214)
  br label %228

215:                                              ; preds = %207
  %216 = load ptr, ptr %6, align 8, !tbaa !5
  %217 = call i32 @memcmp(ptr noundef %216, ptr noundef @png_zTXt, i64 noundef 4) #5
  %218 = icmp ne i32 %217, 0
  br i1 %218, label %223, label %219

219:                                              ; preds = %215
  %220 = load ptr, ptr %3, align 8, !tbaa !5
  %221 = load ptr, ptr %4, align 8, !tbaa !5
  %222 = load i64, ptr %5, align 8, !tbaa !9
  call void @png_handle_zTXt(ptr noundef %220, ptr noundef %221, i64 noundef %222)
  br label %227

223:                                              ; preds = %215
  %224 = load ptr, ptr %3, align 8, !tbaa !5
  %225 = load ptr, ptr %4, align 8, !tbaa !5
  %226 = load i64, ptr %5, align 8, !tbaa !9
  call void @png_handle_unknown(ptr noundef %224, ptr noundef %225, i64 noundef %226)
  br label %227

227:                                              ; preds = %223, %219
  br label %228

228:                                              ; preds = %227, %211
  br label %229

229:                                              ; preds = %228, %203
  br label %230

230:                                              ; preds = %229, %195
  br label %231

231:                                              ; preds = %230, %187
  br label %232

232:                                              ; preds = %231, %179
  br label %233

233:                                              ; preds = %232, %171
  br label %234

234:                                              ; preds = %233, %163
  br label %235

235:                                              ; preds = %234, %155
  br label %236

236:                                              ; preds = %235, %147
  br label %237

237:                                              ; preds = %236, %139
  br label %238

238:                                              ; preds = %237, %131
  br label %239

239:                                              ; preds = %238, %123
  br label %240

240:                                              ; preds = %239, %115
  br label %241

241:                                              ; preds = %240, %107
  br label %242

242:                                              ; preds = %241, %99
  br label %243

243:                                              ; preds = %242, %91
  br label %244

244:                                              ; preds = %243, %83
  br label %245

245:                                              ; preds = %244, %67
  br label %246

246:                                              ; preds = %245, %30
  br label %247

247:                                              ; preds = %246, %22
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  br label %248

248:                                              ; preds = %247
  %249 = load ptr, ptr %3, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.png_struct_def, ptr %249, i32 0, i32 12
  %251 = load i64, ptr %250, align 8, !tbaa !11
  %252 = and i64 %251, 16
  %253 = icmp ne i64 %252, 0
  %254 = xor i1 %253, true
  br i1 %254, label %13, label %255, !llvm.loop !21

255:                                              ; preds = %248, %9
  ret void
}

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 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 = { 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 #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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 280}
!12 = !{!"png_struct_def", !7, i64 0, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !7, i64 272, !7, i64 273, !10, i64 280, !10, i64 288, !10, i64 296, !13, i64 304, !6, i64 416, !10, i64 424, !14, i64 432, !14, i64 436, !14, i64 440, !14, i64 444, !14, i64 448, !10, i64 456, !10, i64 464, !10, i64 472, !10, i64 480, !10, i64 488, !10, i64 496, !10, i64 504, !10, i64 512, !6, i64 520, !6, i64 528, !6, i64 536, !6, i64 544, !6, i64 552, !6, i64 560, !15, i64 568, !10, i64 592, !10, i64 600, !6, i64 608, !16, i64 616, !16, i64 618, !7, i64 620, !7, i64 625, !7, i64 626, !7, i64 627, !7, i64 628, !7, i64 629, !7, i64 630, !7, i64 631, !7, i64 632, !7, i64 633, !7, i64 634, !7, i64 635, !7, i64 636, !16, i64 638, !7, i64 640, !17, i64 644, !18, i64 648, !18, i64 658, !6, i64 672, !10, i64 680, !10, i64 688, !14, i64 696, !17, i64 700, !17, i64 704, !6, i64 712, !6, i64 720, !6, i64 728, !6, i64 736, !6, i64 744, !6, i64 752, !19, i64 760, !19, i64 765, !6, i64 776, !18, i64 784, !6, i64 800, !6, i64 808, !6, i64 816, !6, i64 824, !6, i64 832, !6, i64 840, !6, i64 848, !6, i64 856, !6, i64 864, !10, i64 872, !10, i64 880, !10, i64 888, !10, i64 896, !10, i64 904, !10, i64 912, !14, i64 920, !14, i64 924, !10, i64 928, !10, i64 936, !6, i64 944, !6, i64 952, !6, i64 960, !6, i64 968, !6, i64 976, !7, i64 984, !7, i64 985, !6, i64 992, !6, i64 1000, !6, i64 1008, !6, i64 1016, !6, i64 1024, !6, i64 1032, !10, i64 1040, !6, i64 1048, !6, i64 1056, !14, i64 1064, !6, i64 1072, !7, i64 1080, !16, i64 1082, !16, i64 1084, !16, i64 1086, !10, i64 1088, !10, i64 1096, !7, i64 1104, !7, i64 1105, !10, i64 1112, !10, i64 1120, !6, i64 1128, !6, i64 1136, !6, i64 1144, !6, i64 1152, !6, i64 1160, !6, i64 1168, !6, i64 1176, !7, i64 1184, !10, i64 1192, !10, i64 1200, !20, i64 1208, !10, i64 1240, !10, i64 1248, !6, i64 1256}
!13 = !{!"z_stream_s", !6, i64 0, !14, i64 8, !10, i64 16, !6, i64 24, !14, i64 32, !10, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !14, i64 88, !10, i64 96, !10, i64 104}
!14 = !{!"int", !7, i64 0}
!15 = !{!"png_row_info_struct", !10, i64 0, !10, i64 8, !7, i64 16, !7, i64 17, !7, i64 18, !7, i64 19}
!16 = !{!"short", !7, i64 0}
!17 = !{!"float", !7, i64 0}
!18 = !{!"png_color_16_struct", !7, i64 0, !16, i64 2, !16, i64 4, !16, i64 6, !16, i64 8}
!19 = !{!"png_color_8_struct", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4}
!20 = !{!"png_unknown_chunk_t", !7, i64 0, !6, i64 8, !10, i64 16, !7, i64 24}
!21 = distinct !{!21, !22}
!22 = !{!"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"

@png_IDAT = external global [5 x i8], align 1
@png_IHDR = external global [5 x i8], align 1
@png_IEND = external global [5 x i8], align 1
@png_PLTE = external global [5 x i8], align 1
@png_bKGD = external global [5 x i8], align 1
@png_cHRM = external global [5 x i8], align 1
@png_gAMA = external global [5 x i8], align 1
@png_hIST = external global [5 x i8], align 1
@png_oFFs = external global [5 x i8], align 1
@png_pCAL = external global [5 x i8], align 1
@png_sCAL = external global [5 x i8], align 1
@png_pHYs = external global [5 x i8], align 1
@png_sBIT = external global [5 x i8], align 1
@png_sRGB = external global [5 x i8], align 1
@png_iCCP = external global [5 x i8], align 1
@png_sPLT = external global [5 x i8], align 1
@png_tEXt = external global [5 x i8], align 1
@png_tIME = external global [5 x i8], align 1
@png_tRNS = external global [5 x i8], align 1
@png_zTXt = external global [5 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [22 x i8], align 1

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

declare i64 @png_read_chunk_header(ptr noundef) local_unnamed_addr #0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @png_read_end(ptr noundef %0, ptr 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_crc_finish(ptr noundef nonnull %0, i64 noundef 0) #3
  %6 = getelementptr inbounds i8, ptr %0, i64 620
  %7 = getelementptr inbounds i8, ptr %0, i64 280
  br label %8

8:                                                ; preds = %68, %4
  %9 = tail call i64 @png_read_chunk_header(ptr noundef nonnull %0) #3
  %bcmp = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %6, ptr noundef nonnull dereferenceable(4) @png_IHDR, i64 4)
  %.not = icmp eq i32 %bcmp, 0
  br i1 %.not, label %10, label %11

10:                                               ; preds = %8
  tail call void @png_handle_IHDR(ptr noundef nonnull %0, ptr noundef %1, i64 noundef %9) #3
  br label %68

11:                                               ; preds = %8
  %bcmp100 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %6, ptr noundef nonnull dereferenceable(4) @png_IEND, i64 4)
  %.not101 = icmp eq i32 %bcmp100, 0
  br i1 %.not101, label %12, label %13

12:                                               ; preds = %11
  tail call void @png_handle_IEND(ptr noundef %0, ptr noundef %1, i64 noundef %9) #3
  br label %68

13:                                               ; preds = %11
  %14 = tail call i32 @png_handle_as_unknown(ptr noundef %0, ptr noundef nonnull %6) #3
  %.not102 = icmp eq i32 %14, 0
  %bcmp103 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %6, ptr noundef nonnull dereferenceable(4) @png_IDAT, i64 4)
  %.not104 = icmp eq i32 %bcmp103, 0
  br i1 %.not102, label %25, label %15

15:                                               ; preds = %13
  br i1 %.not104, label %16, label %21

16:                                               ; preds = %15
  %.not143 = icmp eq i64 %9, 0
  br i1 %.not143, label %17, label %20

17:                                               ; preds = %16
  %18 = load i64, ptr %7, align 8, !tbaa !5
  %19 = and i64 %18, 8192
  %.not144 = icmp eq i64 %19, 0
  br i1 %.not144, label %21, label %20

20:                                               ; preds = %17, %16
  tail call void @png_error(ptr noundef %0, ptr noundef nonnull @.str.22) #3
  br label %21

21:                                               ; preds = %17, %20, %15
  tail call void @png_handle_unknown(ptr noundef %0, ptr noundef %1, i64 noundef %9) #3
  %bcmp145 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %6, ptr noundef nonnull dereferenceable(4) @png_PLTE, i64 4)
  %.not146 = icmp eq i32 %bcmp145, 0
  br i1 %.not146, label %22, label %68

22:                                               ; preds = %21
  %23 = load i64, ptr %7, align 8, !tbaa !5
  %24 = or i64 %23, 2
  store i64 %24, ptr %7, align 8, !tbaa !5
  br label %68

25:                                               ; preds = %13
  br i1 %.not104, label %26, label %33

26:                                               ; preds = %25
  %.not105 = icmp eq i64 %9, 0
  br i1 %.not105, label %27, label %30

27:                                               ; preds = %26
  %28 = load i64, ptr %7, align 8, !tbaa !5
  %29 = and i64 %28, 8192
  %.not106 = icmp eq i64 %29, 0
  br i1 %.not106, label %31, label %30

30:                                               ; preds = %27, %26
  tail call void @png_error(ptr noundef %0, ptr noundef nonnull @.str.22) #3
  br label %31

31:                                               ; preds = %30, %27
  %32 = tail call i32 @png_crc_finish(ptr noundef %0, i64 noundef %9) #3
  br label %68

33:                                               ; preds = %25
  %bcmp107 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %6, ptr noundef nonnull dereferenceable(4) @png_PLTE, i64 4)
  %.not108 = icmp eq i32 %bcmp107, 0
  br i1 %.not108, label %34, label %35

34:                                               ; preds = %33
  tail call void @png_handle_PLTE(ptr noundef %0, ptr noundef %1, i64 noundef %9) #3
  br label %68

35:                                               ; preds = %33
  %bcmp109 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %6, ptr noundef nonnull dereferenceable(4) @png_bKGD, i64 4)
  %.not110 = icmp eq i32 %bcmp109, 0
  br i1 %.not110, label %36, label %37

36:                                               ; preds = %35
  tail call void @png_handle_bKGD(ptr noundef %0, ptr noundef %1, i64 noundef %9) #3
  br label %68

37:                                               ; preds = %35
  %bcmp111 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %6, ptr noundef nonnull dereferenceable(4) @png_cHRM, i64 4)
  %.not112 = icmp eq i32 %bcmp111, 0
  br i1 %.not112, label %38, label %39

38:                                               ; preds = %37
  tail call void @png_handle_cHRM(ptr noundef %0, ptr noundef %1, i64 noundef %9) #3
  br label %68

39:                                               ; preds = %37
  %bcmp113 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %6, ptr noundef nonnull dereferenceable(4) @png_gAMA, i64 4)
  %.not114 = icmp eq i32 %bcmp113, 0
  br i1 %.not114, label %40, label %41

40:                                               ; preds = %39
  tail call void @png_handle_gAMA(ptr noundef %0, ptr noundef %1, i64 noundef %9) #3
  br label %68

41:                                               ; preds = %39
  %bcmp115 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %6, ptr noundef nonnull dereferenceable(4) @png_hIST, i64 4)
  %.not116 = icmp eq i32 %bcmp115, 0
  br i1 %.not116, label %42, label %43

42:                                               ; preds = %41
  tail call void @png_handle_hIST(ptr noundef %0, ptr noundef %1, i64 noundef %9) #3
  br label %68

43:                                               ; preds = %41
  %bcmp117 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %6, ptr noundef nonnull dereferenceable(4) @png_oFFs, i64 4)
  %.not118 = icmp eq i32 %bcmp117, 0
  br i1 %.not118, label %44, label %45

44:                                               ; preds = %43
  tail call void @png_handle_oFFs(ptr noundef %0, ptr noundef %1, i64 noundef %9) #3
  br label %68

45:                                               ; preds = %43
  %bcmp119 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %6, ptr noundef nonnull dereferenceable(4) @png_pCAL, i64 4)
  %.not120 = icmp eq i32 %bcmp119, 0
  br i1 %.not120, label %46, label %47

46:                                               ; preds = %45
  tail call void @png_handle_pCAL(ptr noundef %0, ptr noundef %1, i64 noundef %9) #3
  br label %68

47:                                               ; preds = %45
  %bcmp121 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %6, ptr noundef nonnull dereferenceable(4) @png_sCAL, i64 4)
  %.not122 = icmp eq i32 %bcmp121, 0
  br i1 %.not122, label %48, label %49

48:                                               ; preds = %47
  tail call void @png_handle_sCAL(ptr noundef %0, ptr noundef %1, i64 noundef %9) #3
  br label %68

49:                                               ; preds = %47
  %bcmp123 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %6, ptr noundef nonnull dereferenceable(4) @png_pHYs, i64 4)
  %.not124 = icmp eq i32 %bcmp123, 0
  br i1 %.not124, label %50, label %51

50:                                               ; preds = %49
  tail call void @png_handle_pHYs(ptr noundef %0, ptr noundef %1, i64 noundef %9) #3
  br label %68

51:                                               ; preds = %49
  %bcmp125 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %6, ptr noundef nonnull dereferenceable(4) @png_sBIT, i64 4)
  %.not126 = icmp eq i32 %bcmp125, 0
  br i1 %.not126, label %52, label %53

52:                                               ; preds = %51
  tail call void @png_handle_sBIT(ptr noundef %0, ptr noundef %1, i64 noundef %9) #3
  br label %68

53:                                               ; preds = %51
  %bcmp127 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %6, ptr noundef nonnull dereferenceable(4) @png_sRGB, i64 4)
  %.not128 = icmp eq i32 %bcmp127, 0
  br i1 %.not128, label %54, label %55

54:                                               ; preds = %53
  tail call void @png_handle_sRGB(ptr noundef %0, ptr noundef %1, i64 noundef %9) #3
  br label %68

55:                                               ; preds = %53
  %bcmp129 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %6, ptr noundef nonnull dereferenceable(4) @png_iCCP, i64 4)
  %.not130 = icmp eq i32 %bcmp129, 0
  br i1 %.not130, label %56, label %57

56:                                               ; preds = %55
  tail call void @png_handle_iCCP(ptr noundef %0, ptr noundef %1, i64 noundef %9) #3
  br label %68

57:                                               ; preds = %55
  %bcmp131 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %6, ptr noundef nonnull dereferenceable(4) @png_sPLT, i64 4)
  %.not132 = icmp eq i32 %bcmp131, 0
  br i1 %.not132, label %58, label %59

58:                                               ; preds = %57
  tail call void @png_handle_sPLT(ptr noundef %0, ptr noundef %1, i64 noundef %9) #3
  br label %68

59:                                               ; preds = %57
  %bcmp133 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %6, ptr noundef nonnull dereferenceable(4) @png_tEXt, i64 4)
  %.not134 = icmp eq i32 %bcmp133, 0
  br i1 %.not134, label %60, label %61

60:                                               ; preds = %59
  tail call void @png_handle_tEXt(ptr noundef %0, ptr noundef %1, i64 noundef %9) #3
  br label %68

61:                                               ; preds = %59
  %bcmp135 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %6, ptr noundef nonnull dereferenceable(4) @png_tIME, i64 4)
  %.not136 = icmp eq i32 %bcmp135, 0
  br i1 %.not136, label %62, label %63

62:                                               ; preds = %61
  tail call void @png_handle_tIME(ptr noundef %0, ptr noundef %1, i64 noundef %9) #3
  br label %68

63:                                               ; preds = %61
  %bcmp137 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %6, ptr noundef nonnull dereferenceable(4) @png_tRNS, i64 4)
  %.not138 = icmp eq i32 %bcmp137, 0
  br i1 %.not138, label %64, label %65

64:                                               ; preds = %63
  tail call void @png_handle_tRNS(ptr noundef %0, ptr noundef %1, i64 noundef %9) #3
  br label %68

65:                                               ; preds = %63
  %bcmp139 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %6, ptr noundef nonnull dereferenceable(4) @png_zTXt, i64 4)
  %.not140 = icmp eq i32 %bcmp139, 0
  br i1 %.not140, label %66, label %67

66:                                               ; preds = %65
  tail call void @png_handle_zTXt(ptr noundef %0, ptr noundef %1, i64 noundef %9) #3
  br label %68

67:                                               ; preds = %65
  tail call void @png_handle_unknown(ptr noundef %0, ptr noundef %1, i64 noundef %9) #3
  br label %68

68:                                               ; preds = %12, %31, %36, %40, %44, %48, %52, %56, %60, %64, %67, %66, %62, %58, %54, %50, %46, %42, %38, %34, %21, %22, %10
  %69 = load i64, ptr %7, align 8, !tbaa !5
  %70 = and i64 %69, 16
  %.not147 = icmp eq i64 %70, 0
  br i1 %.not147, label %8, label %.loopexit, !llvm.loop !19

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

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

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 = { nofree nounwind willreturn memory(argmem: read) }
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, !10, i64 280}
!6 = !{!"png_struct_def", !7, i64 0, !9, i64 200, !9, i64 208, !9, i64 216, !9, i64 224, !9, i64 232, !9, i64 240, !9, i64 248, !9, i64 256, !9, i64 264, !7, i64 272, !7, i64 273, !10, i64 280, !10, i64 288, !10, i64 296, !11, i64 304, !9, i64 416, !10, i64 424, !12, i64 432, !12, i64 436, !12, i64 440, !12, i64 444, !12, i64 448, !10, i64 456, !10, i64 464, !10, i64 472, !10, i64 480, !10, i64 488, !10, i64 496, !10, i64 504, !10, i64 512, !9, i64 520, !9, i64 528, !9, i64 536, !9, i64 544, !9, i64 552, !9, i64 560, !13, i64 568, !10, i64 592, !10, i64 600, !9, i64 608, !14, i64 616, !14, i64 618, !7, i64 620, !7, i64 625, !7, i64 626, !7, i64 627, !7, i64 628, !7, i64 629, !7, i64 630, !7, i64 631, !7, i64 632, !7, i64 633, !7, i64 634, !7, i64 635, !7, i64 636, !14, i64 638, !7, i64 640, !15, i64 644, !16, i64 648, !16, i64 658, !9, i64 672, !10, i64 680, !10, i64 688, !12, i64 696, !15, i64 700, !15, i64 704, !9, i64 712, !9, i64 720, !9, i64 728, !9, i64 736, !9, i64 744, !9, i64 752, !17, i64 760, !17, i64 765, !9, i64 776, !16, i64 784, !9, i64 800, !9, i64 808, !9, i64 816, !9, i64 824, !9, i64 832, !9, i64 840, !9, i64 848, !9, i64 856, !9, i64 864, !10, i64 872, !10, i64 880, !10, i64 888, !10, i64 896, !10, i64 904, !10, i64 912, !12, i64 920, !12, i64 924, !10, i64 928, !10, i64 936, !9, i64 944, !9, i64 952, !9, i64 960, !9, i64 968, !9, i64 976, !7, i64 984, !7, i64 985, !9, i64 992, !9, i64 1000, !9, i64 1008, !9, i64 1016, !9, i64 1024, !9, i64 1032, !10, i64 1040, !9, i64 1048, !9, i64 1056, !12, i64 1064, !9, i64 1072, !7, i64 1080, !14, i64 1082, !14, i64 1084, !14, i64 1086, !10, i64 1088, !10, i64 1096, !7, i64 1104, !7, i64 1105, !10, i64 1112, !10, i64 1120, !9, i64 1128, !9, i64 1136, !9, i64 1144, !9, i64 1152, !9, i64 1160, !9, i64 1168, !9, i64 1176, !7, i64 1184, !10, i64 1192, !10, i64 1200, !18, i64 1208, !10, i64 1240, !10, i64 1248, !9, i64 1256}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"any pointer", !7, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!"z_stream_s", !9, i64 0, !12, i64 8, !10, i64 16, !9, i64 24, !12, i64 32, !10, i64 40, !9, i64 48, !9, i64 56, !9, i64 64, !9, i64 72, !9, i64 80, !12, i64 88, !10, i64 96, !10, i64 104}
!12 = !{!"int", !7, i64 0}
!13 = !{!"png_row_info_struct", !10, i64 0, !10, i64 8, !7, i64 16, !7, i64 17, !7, i64 18, !7, i64 19}
!14 = !{!"short", !7, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = !{!"png_color_16_struct", !7, i64 0, !14, i64 2, !14, i64 4, !14, i64 6, !14, i64 8}
!17 = !{!"png_color_8_struct", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4}
!18 = !{!"png_unknown_chunk_t", !7, i64 0, !9, i64 8, !10, i64 16, !7, i64 24}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}


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