; LLVM IR from corentinartaud/graphics :: ThirdParty/FreeImage-3170/Source/LibPNG (pngrutil)

; 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, ptr, ptr, i64, i32, i32, ptr, i16, i32, i16, 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, i8, i8, ptr, ptr, ptr, ptr, ptr, i8, [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 }
%struct.png_info_def = type { i32, i32, i32, i64, ptr, i16, i16, i8, i8, i8, i8, i8, i8, i8, i8, [8 x i8], %struct.png_colorspace, ptr, ptr, i32, i32, i32, ptr, %struct.png_time_struct, %struct.png_color_8_struct, ptr, %struct.png_color_16_struct, %struct.png_color_16_struct, i32, i32, i8, i32, i32, i8, ptr, ptr, i32, i32, ptr, ptr, i8, i8, i32, ptr, i32, ptr, i32, i8, ptr, ptr, ptr }
%struct.png_time_struct = type { i16, i8, i8, i8, i8, i8 }

@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [12 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @png_crc_read(ptr noalias noundef, ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @png_crc_finish(ptr noalias noundef, i32 noundef) #1

declare void @png_chunk_warning(ptr noundef, ptr noundef) #2

; Function Attrs: noreturn
declare void @png_chunk_error(ptr noundef, ptr noundef) #3

declare void @png_chunk_benign_error(ptr noundef, ptr noundef) #2

declare void @png_colorspace_sync(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @png_handle_iCCP(ptr noalias noundef %0, ptr noalias noundef %1, i32 noundef %2) #1 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca [81 x i8], align 16
  %13 = alloca [132 x i8], align 16
  %14 = alloca [1024 x i8], align 16
  %15 = alloca i64, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store ptr null, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !9
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.png_struct_def, ptr %19, i32 0, i32 15
  %21 = load i32, ptr %20, align 4, !tbaa !11
  %22 = and i32 %21, 1
  %23 = icmp eq i32 %22, 0
  br i1 %23, label %24, label %26

24:                                               ; preds = %3
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_chunk_error(ptr noundef %25, ptr noundef @.str.6) #6
  unreachable

26:                                               ; preds = %3
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.png_struct_def, ptr %27, i32 0, i32 15
  %29 = load i32, ptr %28, align 4, !tbaa !11
  %30 = and i32 %29, 6
  %31 = icmp ne i32 %30, 0
  br i1 %31, label %32, label %37

32:                                               ; preds = %26
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = load i32, ptr %6, align 4, !tbaa !9
  %35 = call i32 @png_crc_finish(ptr noundef %33, i32 noundef %34)
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_chunk_benign_error(ptr noundef %36, ptr noundef @.str.4)
  store i32 1, ptr %9, align 4
  br label %425

37:                                               ; preds = %26
  br label %38

38:                                               ; preds = %37
  %39 = load i32, ptr %6, align 4, !tbaa !9
  %40 = icmp ult i32 %39, 9
  br i1 %40, label %41, label %46

41:                                               ; preds = %38
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = load i32, ptr %6, align 4, !tbaa !9
  %44 = call i32 @png_crc_finish(ptr noundef %42, i32 noundef %43)
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_chunk_benign_error(ptr noundef %45, ptr noundef @.str.14)
  store i32 1, ptr %9, align 4
  br label %425

46:                                               ; preds = %38
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.png_struct_def, ptr %47, i32 0, i32 152
  %49 = getelementptr inbounds %struct.png_colorspace, ptr %48, i32 0, i32 4
  %50 = load i16, ptr %49, align 2, !tbaa !22
  %51 = zext i16 %50 to i32
  %52 = and i32 %51, 32768
  %53 = icmp ne i32 %52, 0
  br i1 %53, label %54, label %58

54:                                               ; preds = %46
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = load i32, ptr %6, align 4, !tbaa !9
  %57 = call i32 @png_crc_finish(ptr noundef %55, i32 noundef %56)
  store i32 1, ptr %9, align 4
  br label %425

58:                                               ; preds = %46
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.png_struct_def, ptr %59, i32 0, i32 152
  %61 = getelementptr inbounds %struct.png_colorspace, ptr %60, i32 0, i32 4
  %62 = load i16, ptr %61, align 2, !tbaa !22
  %63 = zext i16 %62 to i32
  %64 = and i32 %63, 4
  %65 = icmp eq i32 %64, 0
  br i1 %65, label %66, label %401

66:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 81, ptr %12) #5
  store i32 81, ptr %10, align 4, !tbaa !9
  %67 = load i32, ptr %10, align 4, !tbaa !9
  %68 = load i32, ptr %6, align 4, !tbaa !9
  %69 = icmp ugt i32 %67, %68
  br i1 %69, label %70, label %72

70:                                               ; preds = %66
  %71 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %71, ptr %10, align 4, !tbaa !9
  br label %72

72:                                               ; preds = %70, %66
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = getelementptr inbounds [81 x i8], ptr %12, i64 0, i64 0
  %75 = load i32, ptr %10, align 4, !tbaa !9
  call void @png_crc_read(ptr noundef %73, ptr noundef %74, i32 noundef %75)
  %76 = load i32, ptr %10, align 4, !tbaa !9
  %77 = load i32, ptr %6, align 4, !tbaa !9
  %78 = sub i32 %77, %76
  store i32 %78, ptr %6, align 4, !tbaa !9
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %79

79:                                               ; preds = %95, %72
  %80 = load i32, ptr %11, align 4, !tbaa !9
  %81 = icmp ult i32 %80, 80
  br i1 %81, label %82, label %93

82:                                               ; preds = %79
  %83 = load i32, ptr %11, align 4, !tbaa !9
  %84 = load i32, ptr %10, align 4, !tbaa !9
  %85 = icmp ult i32 %83, %84
  br i1 %85, label %86, label %93

86:                                               ; preds = %82
  %87 = load i32, ptr %11, align 4, !tbaa !9
  %88 = zext i32 %87 to i64
  %89 = getelementptr inbounds [81 x i8], ptr %12, i64 0, i64 %88
  %90 = load i8, ptr %89, align 1, !tbaa !23
  %91 = sext i8 %90 to i32
  %92 = icmp ne i32 %91, 0
  br label %93

93:                                               ; preds = %86, %82, %79
  %94 = phi i1 [ false, %82 ], [ false, %79 ], [ %92, %86 ]
  br i1 %94, label %95, label %98

95:                                               ; preds = %93
  %96 = load i32, ptr %11, align 4, !tbaa !9
  %97 = add i32 %96, 1
  store i32 %97, ptr %11, align 4, !tbaa !9
  br label %79, !llvm.loop !24

98:                                               ; preds = %93
  %99 = load i32, ptr %11, align 4, !tbaa !9
  %100 = icmp uge i32 %99, 1
  br i1 %100, label %101, label %396

101:                                              ; preds = %98
  %102 = load i32, ptr %11, align 4, !tbaa !9
  %103 = icmp ule i32 %102, 79
  br i1 %103, label %104, label %396

104:                                              ; preds = %101
  %105 = load i32, ptr %11, align 4, !tbaa !9
  %106 = add i32 %105, 1
  %107 = load i32, ptr %10, align 4, !tbaa !9
  %108 = icmp ult i32 %106, %107
  br i1 %108, label %109, label %394

109:                                              ; preds = %104
  %110 = load i32, ptr %11, align 4, !tbaa !9
  %111 = add i32 %110, 1
  %112 = zext i32 %111 to i64
  %113 = getelementptr inbounds [81 x i8], ptr %12, i64 0, i64 %112
  %114 = load i8, ptr %113, align 1, !tbaa !23
  %115 = sext i8 %114 to i32
  %116 = icmp eq i32 %115, 0
  br i1 %116, label %117, label %394

117:                                              ; preds = %109
  %118 = load i32, ptr %11, align 4, !tbaa !9
  %119 = add i32 %118, 2
  %120 = load i32, ptr %10, align 4, !tbaa !9
  %121 = sub i32 %120, %119
  store i32 %121, ptr %10, align 4, !tbaa !9
  %122 = load ptr, ptr %4, align 8, !tbaa !5
  %123 = call i32 @png_inflate_claim(ptr noundef %122, i32 noundef 1766015824)
  %124 = icmp eq i32 %123, 0
  br i1 %124, label %125, label %388

125:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 132, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 1024, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  store i64 132, ptr %15, align 8, !tbaa !26
  %126 = getelementptr inbounds [81 x i8], ptr %12, i64 0, i64 0
  %127 = load i32, ptr %11, align 4, !tbaa !9
  %128 = add i32 %127, 2
  %129 = zext i32 %128 to i64
  %130 = getelementptr inbounds i8, ptr %126, i64 %129
  %131 = load ptr, ptr %4, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.png_struct_def, ptr %131, i32 0, i32 19
  %133 = getelementptr inbounds %struct.z_stream_s, ptr %132, i32 0, i32 0
  store ptr %130, ptr %133, align 8, !tbaa !27
  %134 = load i32, ptr %10, align 4, !tbaa !9
  %135 = load ptr, ptr %4, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.png_struct_def, ptr %135, i32 0, i32 19
  %137 = getelementptr inbounds %struct.z_stream_s, ptr %136, i32 0, i32 1
  store i32 %134, ptr %137, align 8, !tbaa !28
  %138 = load ptr, ptr %4, align 8, !tbaa !5
  %139 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
  %140 = getelementptr inbounds [132 x i8], ptr %13, i64 0, i64 0
  %141 = call i32 @png_inflate_read(ptr noundef %138, ptr noundef %139, i32 noundef 1024, ptr noundef %6, ptr noundef %140, ptr noundef %15, i32 noundef 0)
  %142 = load i64, ptr %15, align 8, !tbaa !26
  %143 = icmp eq i64 %142, 0
  br i1 %143, label %144, label %377

144:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %145 = getelementptr inbounds [132 x i8], ptr %13, i64 0, i64 0
  %146 = load i8, ptr %145, align 16, !tbaa !23
  %147 = zext i8 %146 to i32
  %148 = shl i32 %147, 24
  %149 = getelementptr inbounds [132 x i8], ptr %13, i64 0, i64 0
  %150 = getelementptr inbounds i8, ptr %149, i64 1
  %151 = load i8, ptr %150, align 1, !tbaa !23
  %152 = zext i8 %151 to i32
  %153 = shl i32 %152, 16
  %154 = add i32 %148, %153
  %155 = getelementptr inbounds [132 x i8], ptr %13, i64 0, i64 0
  %156 = getelementptr inbounds i8, ptr %155, i64 2
  %157 = load i8, ptr %156, align 1, !tbaa !23
  %158 = zext i8 %157 to i32
  %159 = shl i32 %158, 8
  %160 = add i32 %154, %159
  %161 = getelementptr inbounds [132 x i8], ptr %13, i64 0, i64 0
  %162 = getelementptr inbounds i8, ptr %161, i64 3
  %163 = load i8, ptr %162, align 1, !tbaa !23
  %164 = zext i8 %163 to i32
  %165 = add i32 %160, %164
  store i32 %165, ptr %16, align 4, !tbaa !9
  %166 = load ptr, ptr %4, align 8, !tbaa !5
  %167 = load ptr, ptr %4, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.png_struct_def, ptr %167, i32 0, i32 152
  %169 = getelementptr inbounds [81 x i8], ptr %12, i64 0, i64 0
  %170 = load i32, ptr %16, align 4, !tbaa !9
  %171 = call i32 @png_icc_check_length(ptr noundef %166, ptr noundef %168, ptr noundef %169, i32 noundef %170)
  %172 = icmp ne i32 %171, 0
  br i1 %172, label %173, label %373

173:                                              ; preds = %144
  %174 = load ptr, ptr %4, align 8, !tbaa !5
  %175 = load ptr, ptr %4, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.png_struct_def, ptr %175, i32 0, i32 152
  %177 = getelementptr inbounds [81 x i8], ptr %12, i64 0, i64 0
  %178 = load i32, ptr %16, align 4, !tbaa !9
  %179 = getelementptr inbounds [132 x i8], ptr %13, i64 0, i64 0
  %180 = load ptr, ptr %4, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.png_struct_def, ptr %180, i32 0, i32 63
  %182 = load i8, ptr %181, align 1, !tbaa !29
  %183 = zext i8 %182 to i32
  %184 = call i32 @png_icc_check_header(ptr noundef %174, ptr noundef %176, ptr noundef %177, i32 noundef %178, ptr noundef %179, i32 noundef %183)
  %185 = icmp ne i32 %184, 0
  br i1 %185, label %186, label %372

186:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %187 = getelementptr inbounds [132 x i8], ptr %13, i64 0, i64 0
  %188 = getelementptr inbounds i8, ptr %187, i64 128
  %189 = load i8, ptr %188, align 1, !tbaa !23
  %190 = zext i8 %189 to i32
  %191 = shl i32 %190, 24
  %192 = getelementptr inbounds [132 x i8], ptr %13, i64 0, i64 0
  %193 = getelementptr inbounds i8, ptr %192, i64 128
  %194 = getelementptr inbounds i8, ptr %193, i64 1
  %195 = load i8, ptr %194, align 1, !tbaa !23
  %196 = zext i8 %195 to i32
  %197 = shl i32 %196, 16
  %198 = add i32 %191, %197
  %199 = getelementptr inbounds [132 x i8], ptr %13, i64 0, i64 0
  %200 = getelementptr inbounds i8, ptr %199, i64 128
  %201 = getelementptr inbounds i8, ptr %200, i64 2
  %202 = load i8, ptr %201, align 1, !tbaa !23
  %203 = zext i8 %202 to i32
  %204 = shl i32 %203, 8
  %205 = add i32 %198, %204
  %206 = getelementptr inbounds [132 x i8], ptr %13, i64 0, i64 0
  %207 = getelementptr inbounds i8, ptr %206, i64 128
  %208 = getelementptr inbounds i8, ptr %207, i64 3
  %209 = load i8, ptr %208, align 1, !tbaa !23
  %210 = zext i8 %209 to i32
  %211 = add i32 %205, %210
  store i32 %211, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %212 = load ptr, ptr %4, align 8, !tbaa !5
  %213 = load i32, ptr %16, align 4, !tbaa !9
  %214 = zext i32 %213 to i64
  %215 = call ptr @png_read_buffer(ptr noundef %212, i64 noundef %214, i32 noundef 2)
  store ptr %215, ptr %18, align 8, !tbaa !5
  %216 = load ptr, ptr %18, align 8, !tbaa !5
  %217 = icmp ne ptr %216, null
  br i1 %217, label %218, label %367

218:                                              ; preds = %186
  %219 = load ptr, ptr %18, align 8, !tbaa !5
  %220 = getelementptr inbounds [132 x i8], ptr %13, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %219, ptr align 16 %220, i64 132, i1 false)
  %221 = load i32, ptr %17, align 4, !tbaa !9
  %222 = mul i32 12, %221
  %223 = zext i32 %222 to i64
  store i64 %223, ptr %15, align 8, !tbaa !26
  %224 = load ptr, ptr %4, align 8, !tbaa !5
  %225 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
  %226 = load ptr, ptr %18, align 8, !tbaa !5
  %227 = getelementptr inbounds i8, ptr %226, i64 132
  %228 = call i32 @png_inflate_read(ptr noundef %224, ptr noundef %225, i32 noundef 1024, ptr noundef %6, ptr noundef %227, ptr noundef %15, i32 noundef 0)
  %229 = load i64, ptr %15, align 8, !tbaa !26
  %230 = icmp eq i64 %229, 0
  br i1 %230, label %231, label %361

231:                                              ; preds = %218
  %232 = load ptr, ptr %4, align 8, !tbaa !5
  %233 = load ptr, ptr %4, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.png_struct_def, ptr %233, i32 0, i32 152
  %235 = getelementptr inbounds [81 x i8], ptr %12, i64 0, i64 0
  %236 = load i32, ptr %16, align 4, !tbaa !9
  %237 = load ptr, ptr %18, align 8, !tbaa !5
  %238 = call i32 @png_icc_check_tag_table(ptr noundef %232, ptr noundef %234, ptr noundef %235, i32 noundef %236, ptr noundef %237)
  %239 = icmp ne i32 %238, 0
  br i1 %239, label %240, label %360

240:                                              ; preds = %231
  %241 = load i32, ptr %16, align 4, !tbaa !9
  %242 = zext i32 %241 to i64
  %243 = sub i64 %242, 132
  %244 = load i32, ptr %17, align 4, !tbaa !9
  %245 = mul i32 12, %244
  %246 = zext i32 %245 to i64
  %247 = sub i64 %243, %246
  store i64 %247, ptr %15, align 8, !tbaa !26
  %248 = load ptr, ptr %4, align 8, !tbaa !5
  %249 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
  %250 = load ptr, ptr %18, align 8, !tbaa !5
  %251 = getelementptr inbounds i8, ptr %250, i64 132
  %252 = load i32, ptr %17, align 4, !tbaa !9
  %253 = mul i32 12, %252
  %254 = zext i32 %253 to i64
  %255 = getelementptr inbounds i8, ptr %251, i64 %254
  %256 = call i32 @png_inflate_read(ptr noundef %248, ptr noundef %249, i32 noundef 1024, ptr noundef %6, ptr noundef %255, ptr noundef %15, i32 noundef 1)
  %257 = load i32, ptr %6, align 4, !tbaa !9
  %258 = icmp ugt i32 %257, 0
  br i1 %258, label %259, label %266

259:                                              ; preds = %240
  %260 = load ptr, ptr %4, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.png_struct_def, ptr %260, i32 0, i32 16
  %262 = load i32, ptr %261, align 8, !tbaa !30
  %263 = and i32 %262, 1048576
  %264 = icmp ne i32 %263, 0
  br i1 %264, label %266, label %265

265:                                              ; preds = %259
  store ptr @.str.15, ptr %7, align 8, !tbaa !5
  br label %359

266:                                              ; preds = %259, %240
  %267 = load i64, ptr %15, align 8, !tbaa !26
  %268 = icmp eq i64 %267, 0
  br i1 %268, label %269, label %348

269:                                              ; preds = %266
  %270 = load i32, ptr %6, align 4, !tbaa !9
  %271 = icmp ugt i32 %270, 0
  br i1 %271, label %272, label %274

272:                                              ; preds = %269
  %273 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_chunk_warning(ptr noundef %273, ptr noundef @.str.15)
  br label %274

274:                                              ; preds = %272, %269
  %275 = load ptr, ptr %4, align 8, !tbaa !5
  %276 = load i32, ptr %6, align 4, !tbaa !9
  %277 = call i32 @png_crc_finish(ptr noundef %275, i32 noundef %276)
  store i32 1, ptr %8, align 4, !tbaa !9
  %278 = load ptr, ptr %4, align 8, !tbaa !5
  %279 = load ptr, ptr %4, align 8, !tbaa !5
  %280 = getelementptr inbounds %struct.png_struct_def, ptr %279, i32 0, i32 152
  %281 = load ptr, ptr %18, align 8, !tbaa !5
  %282 = load ptr, ptr %4, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.png_struct_def, ptr %282, i32 0, i32 19
  %284 = getelementptr inbounds %struct.z_stream_s, ptr %283, i32 0, i32 12
  %285 = load i64, ptr %284, align 8, !tbaa !31
  call void @png_icc_set_sRGB(ptr noundef %278, ptr noundef %280, ptr noundef %281, i64 noundef %285)
  %286 = load ptr, ptr %5, align 8, !tbaa !5
  %287 = icmp ne ptr %286, null
  br i1 %287, label %288, label %335

288:                                              ; preds = %274
  %289 = load ptr, ptr %4, align 8, !tbaa !5
  %290 = load ptr, ptr %5, align 8, !tbaa !5
  call void @png_free_data(ptr noundef %289, ptr noundef %290, i32 noundef 16, i32 noundef 0)
  %291 = load ptr, ptr %4, align 8, !tbaa !5
  %292 = load i32, ptr %11, align 4, !tbaa !9
  %293 = add i32 %292, 1
  %294 = zext i32 %293 to i64
  %295 = call noalias ptr @png_malloc_base(ptr noundef %291, i64 noundef %294)
  %296 = load ptr, ptr %5, align 8, !tbaa !5
  %297 = getelementptr inbounds %struct.png_info_def, ptr %296, i32 0, i32 17
  store ptr %295, ptr %297, align 8, !tbaa !32
  %298 = load ptr, ptr %5, align 8, !tbaa !5
  %299 = getelementptr inbounds %struct.png_info_def, ptr %298, i32 0, i32 17
  %300 = load ptr, ptr %299, align 8, !tbaa !32
  %301 = icmp ne ptr %300, null
  br i1 %301, label %302, label %326

302:                                              ; preds = %288
  %303 = load ptr, ptr %5, align 8, !tbaa !5
  %304 = getelementptr inbounds %struct.png_info_def, ptr %303, i32 0, i32 17
  %305 = load ptr, ptr %304, align 8, !tbaa !32
  %306 = getelementptr inbounds [81 x i8], ptr %12, i64 0, i64 0
  %307 = load i32, ptr %11, align 4, !tbaa !9
  %308 = add i32 %307, 1
  %309 = zext i32 %308 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %305, ptr align 16 %306, i64 %309, i1 false)
  %310 = load i32, ptr %16, align 4, !tbaa !9
  %311 = load ptr, ptr %5, align 8, !tbaa !5
  %312 = getelementptr inbounds %struct.png_info_def, ptr %311, i32 0, i32 19
  store i32 %310, ptr %312, align 8, !tbaa !35
  %313 = load ptr, ptr %18, align 8, !tbaa !5
  %314 = load ptr, ptr %5, align 8, !tbaa !5
  %315 = getelementptr inbounds %struct.png_info_def, ptr %314, i32 0, i32 18
  store ptr %313, ptr %315, align 8, !tbaa !36
  %316 = load ptr, ptr %4, align 8, !tbaa !5
  %317 = getelementptr inbounds %struct.png_struct_def, ptr %316, i32 0, i32 146
  store ptr null, ptr %317, align 8, !tbaa !37
  %318 = load ptr, ptr %5, align 8, !tbaa !5
  %319 = getelementptr inbounds %struct.png_info_def, ptr %318, i32 0, i32 42
  %320 = load i32, ptr %319, align 4, !tbaa !38
  %321 = or i32 %320, 16
  store i32 %321, ptr %319, align 4, !tbaa !38
  %322 = load ptr, ptr %5, align 8, !tbaa !5
  %323 = getelementptr inbounds %struct.png_info_def, ptr %322, i32 0, i32 2
  %324 = load i32, ptr %323, align 8, !tbaa !39
  %325 = or i32 %324, 4096
  store i32 %325, ptr %323, align 8, !tbaa !39
  br label %334

326:                                              ; preds = %288
  %327 = load ptr, ptr %4, align 8, !tbaa !5
  %328 = getelementptr inbounds %struct.png_struct_def, ptr %327, i32 0, i32 152
  %329 = getelementptr inbounds %struct.png_colorspace, ptr %328, i32 0, i32 4
  %330 = load i16, ptr %329, align 2, !tbaa !22
  %331 = zext i16 %330 to i32
  %332 = or i32 %331, 32768
  %333 = trunc i32 %332 to i16
  store i16 %333, ptr %329, align 2, !tbaa !22
  store ptr @.str.16, ptr %7, align 8, !tbaa !5
  br label %334

334:                                              ; preds = %326, %302
  br label %335

335:                                              ; preds = %334, %274
  %336 = load ptr, ptr %5, align 8, !tbaa !5
  %337 = icmp ne ptr %336, null
  br i1 %337, label %338, label %341

338:                                              ; preds = %335
  %339 = load ptr, ptr %4, align 8, !tbaa !5
  %340 = load ptr, ptr %5, align 8, !tbaa !5
  call void @png_colorspace_sync(ptr noundef %339, ptr noundef %340)
  br label %341

341:                                              ; preds = %338, %335
  %342 = load ptr, ptr %7, align 8, !tbaa !5
  %343 = icmp eq ptr %342, null
  br i1 %343, label %344, label %347

344:                                              ; preds = %341
  %345 = load ptr, ptr %4, align 8, !tbaa !5
  %346 = getelementptr inbounds %struct.png_struct_def, ptr %345, i32 0, i32 18
  store i32 0, ptr %346, align 8, !tbaa !40
  store i32 1, ptr %9, align 4
  br label %369

347:                                              ; preds = %341
  br label %358

348:                                              ; preds = %266
  %349 = load i64, ptr %15, align 8, !tbaa !26
  %350 = icmp ugt i64 %349, 0
  br i1 %350, label %351, label %352

351:                                              ; preds = %348
  store ptr @.str.17, ptr %7, align 8, !tbaa !5
  br label %357

352:                                              ; preds = %348
  %353 = load ptr, ptr %4, align 8, !tbaa !5
  %354 = getelementptr inbounds %struct.png_struct_def, ptr %353, i32 0, i32 19
  %355 = getelementptr inbounds %struct.z_stream_s, ptr %354, i32 0, i32 6
  %356 = load ptr, ptr %355, align 8, !tbaa !41
  store ptr %356, ptr %7, align 8, !tbaa !5
  br label %357

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

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

359:                                              ; preds = %358, %265
  br label %360

360:                                              ; preds = %359, %231
  br label %366

361:                                              ; preds = %218
  %362 = load ptr, ptr %4, align 8, !tbaa !5
  %363 = getelementptr inbounds %struct.png_struct_def, ptr %362, i32 0, i32 19
  %364 = getelementptr inbounds %struct.z_stream_s, ptr %363, i32 0, i32 6
  %365 = load ptr, ptr %364, align 8, !tbaa !41
  store ptr %365, ptr %7, align 8, !tbaa !5
  br label %366

366:                                              ; preds = %361, %360
  br label %368

367:                                              ; preds = %186
  store ptr @.str.16, ptr %7, align 8, !tbaa !5
  br label %368

368:                                              ; preds = %367, %366
  store i32 0, ptr %9, align 4
  br label %369

369:                                              ; preds = %368, %344
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  %370 = load i32, ptr %9, align 4
  switch i32 %370, label %374 [
    i32 0, label %371
  ]

371:                                              ; preds = %369
  br label %372

372:                                              ; preds = %371, %173
  br label %373

373:                                              ; preds = %372, %144
  store i32 0, ptr %9, align 4
  br label %374

374:                                              ; preds = %373, %369
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  %375 = load i32, ptr %9, align 4
  switch i32 %375, label %385 [
    i32 0, label %376
  ]

376:                                              ; preds = %374
  br label %382

377:                                              ; preds = %125
  %378 = load ptr, ptr %4, align 8, !tbaa !5
  %379 = getelementptr inbounds %struct.png_struct_def, ptr %378, i32 0, i32 19
  %380 = getelementptr inbounds %struct.z_stream_s, ptr %379, i32 0, i32 6
  %381 = load ptr, ptr %380, align 8, !tbaa !41
  store ptr %381, ptr %7, align 8, !tbaa !5
  br label %382

382:                                              ; preds = %377, %376
  %383 = load ptr, ptr %4, align 8, !tbaa !5
  %384 = getelementptr inbounds %struct.png_struct_def, ptr %383, i32 0, i32 18
  store i32 0, ptr %384, align 8, !tbaa !40
  store i32 0, ptr %9, align 4
  br label %385

385:                                              ; preds = %382, %374
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 1024, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 132, ptr %13) #5
  %386 = load i32, ptr %9, align 4
  switch i32 %386, label %398 [
    i32 0, label %387
  ]

387:                                              ; preds = %385
  br label %393

388:                                              ; preds = %117
  %389 = load ptr, ptr %4, align 8, !tbaa !5
  %390 = getelementptr inbounds %struct.png_struct_def, ptr %389, i32 0, i32 19
  %391 = getelementptr inbounds %struct.z_stream_s, ptr %390, i32 0, i32 6
  %392 = load ptr, ptr %391, align 8, !tbaa !41
  store ptr %392, ptr %7, align 8, !tbaa !5
  br label %393

393:                                              ; preds = %388, %387
  br label %395

394:                                              ; preds = %109, %104
  store ptr @.str.18, ptr %7, align 8, !tbaa !5
  br label %395

395:                                              ; preds = %394, %393
  br label %397

396:                                              ; preds = %101, %98
  store ptr @.str.19, ptr %7, align 8, !tbaa !5
  br label %397

397:                                              ; preds = %396, %395
  store i32 0, ptr %9, align 4
  br label %398

398:                                              ; preds = %397, %385
  call void @llvm.lifetime.end.p0(i64 81, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  %399 = load i32, ptr %9, align 4
  switch i32 %399, label %425 [
    i32 0, label %400
  ]

400:                                              ; preds = %398
  br label %402

401:                                              ; preds = %58
  store ptr @.str.13, ptr %7, align 8, !tbaa !5
  br label %402

402:                                              ; preds = %401, %400
  %403 = load i32, ptr %8, align 4, !tbaa !9
  %404 = icmp eq i32 %403, 0
  br i1 %404, label %405, label %409

405:                                              ; preds = %402
  %406 = load ptr, ptr %4, align 8, !tbaa !5
  %407 = load i32, ptr %6, align 4, !tbaa !9
  %408 = call i32 @png_crc_finish(ptr noundef %406, i32 noundef %407)
  br label %409

409:                                              ; preds = %405, %402
  %410 = load ptr, ptr %4, align 8, !tbaa !5
  %411 = getelementptr inbounds %struct.png_struct_def, ptr %410, i32 0, i32 152
  %412 = getelementptr inbounds %struct.png_colorspace, ptr %411, i32 0, i32 4
  %413 = load i16, ptr %412, align 2, !tbaa !22
  %414 = zext i16 %413 to i32
  %415 = or i32 %414, 32768
  %416 = trunc i32 %415 to i16
  store i16 %416, ptr %412, align 2, !tbaa !22
  %417 = load ptr, ptr %4, align 8, !tbaa !5
  %418 = load ptr, ptr %5, align 8, !tbaa !5
  call void @png_colorspace_sync(ptr noundef %417, ptr noundef %418)
  %419 = load ptr, ptr %7, align 8, !tbaa !5
  %420 = icmp ne ptr %419, null
  br i1 %420, label %421, label %424

421:                                              ; preds = %409
  %422 = load ptr, ptr %4, align 8, !tbaa !5
  %423 = load ptr, ptr %7, align 8, !tbaa !5
  call void @png_chunk_benign_error(ptr noundef %422, ptr noundef %423)
  br label %424

424:                                              ; preds = %421, %409
  store i32 0, ptr %9, align 4
  br label %425

425:                                              ; preds = %424, %398, %54, %41, %32
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  %426 = load i32, ptr %9, align 4
  switch i32 %426, label %428 [
    i32 0, label %427
    i32 1, label %427
  ]

427:                                              ; preds = %425, %425
  ret void

428:                                              ; preds = %425
  unreachable
}

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

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

declare i32 @png_icc_check_length(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #2

declare i32 @png_icc_check_header(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #2

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

declare i32 @png_icc_check_tag_table(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

declare void @png_icc_set_sRGB(ptr noundef, ptr noundef, ptr noundef, i64 noundef) #2

declare void @png_free_data(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #2

declare noalias ptr @png_malloc_base(ptr noundef, i64 noundef) #2

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

!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 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 300}
!12 = !{!"png_struct_def", !7, i64 0, !6, i64 200, !6, i64 208, !13, 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, !10, i64 300, !10, i64 304, !10, i64 308, !10, i64 312, !14, i64 320, !6, i64 432, !10, i64 440, !10, i64 444, !10, i64 448, !10, i64 452, !10, i64 456, !10, i64 460, !10, i64 464, !10, i64 468, !10, i64 472, !10, i64 476, !10, i64 480, !10, i64 484, !10, i64 488, !10, i64 492, !10, i64 496, !10, i64 500, !10, i64 504, !10, i64 508, !10, i64 512, !10, i64 516, !13, i64 520, !10, i64 528, !10, i64 532, !10, i64 536, !6, i64 544, !6, i64 552, !6, i64 560, !6, i64 568, !6, i64 576, !6, i64 584, !13, i64 592, !10, i64 600, !10, i64 604, !6, i64 608, !15, i64 616, !10, i64 620, !15, i64 624, !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, !7, i64 637, !7, i64 638, !7, i64 639, !15, i64 640, !7, i64 642, !10, i64 644, !16, i64 648, !16, i64 658, !6, i64 672, !10, i64 680, !10, i64 684, !10, i64 688, !10, i64 692, !6, i64 696, !6, i64 704, !6, i64 712, !6, i64 720, !6, i64 728, !6, i64 736, !17, i64 744, !17, i64 749, !6, i64 760, !16, i64 768, !6, i64 784, !6, i64 792, !6, i64 800, !6, i64 808, !6, i64 816, !6, i64 824, !6, i64 832, !6, i64 840, !6, i64 848, !10, i64 856, !10, i64 860, !13, i64 864, !13, i64 872, !13, i64 880, !13, i64 888, !10, i64 896, !10, i64 900, !6, i64 904, !6, i64 912, !7, i64 920, !7, i64 921, !6, i64 928, !6, i64 936, !6, i64 944, !6, i64 952, !6, i64 960, !7, i64 968, !7, i64 969, !10, i64 1000, !6, i64 1008, !6, i64 1016, !10, i64 1024, !10, i64 1028, !6, i64 1032, !7, i64 1040, !7, i64 1041, !15, i64 1042, !15, i64 1044, !10, i64 1048, !7, i64 1052, !6, i64 1056, !6, i64 1064, !6, i64 1072, !6, i64 1080, !6, i64 1088, !6, i64 1096, !6, i64 1104, !7, i64 1112, !10, i64 1116, !10, i64 1120, !10, i64 1124, !13, i64 1128, !18, i64 1136, !13, i64 1168, !6, i64 1176, !13, i64 1184, !10, i64 1192, !10, i64 1196, !6, i64 1200, !7, i64 1208, !19, i64 1240}
!13 = !{!"long", !7, i64 0}
!14 = !{!"z_stream_s", !6, i64 0, !10, i64 8, !13, i64 16, !6, i64 24, !10, i64 32, !13, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !10, i64 88, !13, i64 96, !13, i64 104}
!15 = !{!"short", !7, i64 0}
!16 = !{!"png_color_16_struct", !7, i64 0, !15, i64 2, !15, i64 4, !15, i64 6, !15, 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, !6, i64 8, !13, i64 16, !7, i64 24}
!19 = !{!"png_colorspace", !10, i64 0, !20, i64 4, !21, i64 36, !15, i64 72, !15, i64 74}
!20 = !{!"png_xy", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!21 = !{!"png_XYZ", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32}
!22 = !{!12, !15, i64 1314}
!23 = !{!7, !7, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!13, !13, i64 0}
!27 = !{!12, !6, i64 320}
!28 = !{!12, !10, i64 328}
!29 = !{!12, !7, i64 631}
!30 = !{!12, !10, i64 304}
!31 = !{!12, !13, i64 416}
!32 = !{!33, !6, i64 128}
!33 = !{!"png_info_def", !10, i64 0, !10, i64 4, !10, i64 8, !13, i64 16, !6, i64 24, !15, i64 32, !15, i64 34, !7, i64 36, !7, i64 37, !7, i64 38, !7, i64 39, !7, i64 40, !7, i64 41, !7, i64 42, !7, i64 43, !7, i64 44, !19, i64 52, !6, i64 128, !6, i64 136, !10, i64 144, !10, i64 148, !10, i64 152, !6, i64 160, !34, i64 168, !17, i64 176, !6, i64 184, !16, i64 192, !16, i64 202, !10, i64 212, !10, i64 216, !7, i64 220, !10, i64 224, !10, i64 228, !7, i64 232, !6, i64 240, !6, i64 248, !10, i64 256, !10, i64 260, !6, i64 264, !6, i64 272, !7, i64 280, !7, i64 281, !10, i64 284, !6, i64 288, !10, i64 296, !6, i64 304, !10, i64 312, !7, i64 316, !6, i64 320, !6, i64 328, !6, i64 336}
!34 = !{!"png_time_struct", !15, i64 0, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !7, i64 6}
!35 = !{!33, !10, i64 144}
!36 = !{!33, !6, i64 136}
!37 = !{!12, !6, i64 1176}
!38 = !{!33, !10, i64 284}
!39 = !{!33, !10, i64 8}
!40 = !{!12, !10, i64 312}
!41 = !{!12, !6, i64 368}


; 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.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [12 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @png_crc_read(ptr noalias noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @png_crc_finish(ptr noalias noundef, i32 noundef) local_unnamed_addr #1

declare void @png_chunk_warning(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: noreturn
declare void @png_chunk_error(ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @png_chunk_benign_error(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @png_colorspace_sync(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @png_handle_iCCP(ptr noalias noundef %0, ptr noalias noundef %1, i32 noundef %2) local_unnamed_addr #1 {
  %4 = alloca i32, align 4
  %5 = alloca [81 x i8], align 16
  %6 = alloca [132 x i8], align 16
  %7 = alloca [1024 x i8], align 16
  %8 = alloca i64, align 8
  store i32 %2, ptr %4, align 4, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 300
  %10 = load i32, ptr %9, align 4, !tbaa !9
  %11 = and i32 %10, 1
  %12 = icmp eq i32 %11, 0
  br i1 %12, label %13, label %14

13:                                               ; preds = %3
  tail call void @png_chunk_error(ptr noundef nonnull %0, ptr noundef nonnull @.str.6) #6
  unreachable

14:                                               ; preds = %3
  %15 = and i32 %10, 6
  %.not = icmp eq i32 %15, 0
  br i1 %.not, label %18, label %16

16:                                               ; preds = %14
  %17 = tail call i32 @png_crc_finish(ptr noundef nonnull %0, i32 noundef %2)
  tail call void @png_chunk_benign_error(ptr noundef nonnull %0, ptr noundef nonnull @.str.4) #7
  br label %168

18:                                               ; preds = %14
  %19 = icmp ult i32 %2, 9
  br i1 %19, label %20, label %22

20:                                               ; preds = %18
  %21 = tail call i32 @png_crc_finish(ptr noundef nonnull %0, i32 noundef %2)
  tail call void @png_chunk_benign_error(ptr noundef nonnull %0, ptr noundef nonnull @.str.14) #7
  br label %168

22:                                               ; preds = %18
  %23 = getelementptr inbounds i8, ptr %0, i64 1240
  %24 = getelementptr inbounds i8, ptr %0, i64 1314
  %25 = load i16, ptr %24, align 2, !tbaa !21
  %.not127 = icmp sgt i16 %25, -1
  br i1 %.not127, label %28, label %26

26:                                               ; preds = %22
  %27 = tail call i32 @png_crc_finish(ptr noundef nonnull %0, i32 noundef %2)
  br label %168

28:                                               ; preds = %22
  %29 = and i16 %25, 4
  %30 = icmp eq i16 %29, 0
  br i1 %30, label %31, label %.thread167

31:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 81, ptr nonnull %5) #7
  %spec.select = tail call i32 @llvm.umin.i32(i32 %2, i32 81)
  call void @png_crc_read(ptr noundef nonnull %0, ptr noundef nonnull %5, i32 noundef %spec.select)
  %32 = sub i32 %2, %spec.select
  store i32 %32, ptr %4, align 4, !tbaa !5
  %invariant.umin = call i32 @llvm.umin.i32(i32 %2, i32 80)
  %wide.trip.count = zext nneg i32 %invariant.umin to i64
  br label %33

33:                                               ; preds = %31, %36
  %indvars.iv = phi i64 [ 0, %31 ], [ %indvars.iv.next, %36 ]
  %34 = getelementptr inbounds [81 x i8], ptr %5, i64 0, i64 %indvars.iv
  %35 = load i8, ptr %34, align 1, !tbaa !22
  %.not128 = icmp eq i8 %35, 0
  br i1 %.not128, label %.critedge.split.loop.exit181, label %36

36:                                               ; preds = %33
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.critedge, label %33, !llvm.loop !23

.critedge.split.loop.exit181:                     ; preds = %33
  %37 = trunc nuw nsw i64 %indvars.iv to i32
  br label %.critedge

.critedge:                                        ; preds = %36, %.critedge.split.loop.exit181
  %.0117.lcssa = phi i32 [ %37, %.critedge.split.loop.exit181 ], [ %invariant.umin, %36 ]
  %38 = add nsw i32 %.0117.lcssa, -1
  %or.cond = icmp ult i32 %38, 79
  br i1 %or.cond, label %39, label %.thread158

39:                                               ; preds = %.critedge
  %40 = add nuw nsw i32 %.0117.lcssa, 1
  %41 = icmp ult i32 %40, %spec.select
  br i1 %41, label %42, label %.thread158

42:                                               ; preds = %39
  %43 = zext nneg i32 %40 to i64
  %44 = getelementptr inbounds [81 x i8], ptr %5, i64 0, i64 %43
  %45 = load i8, ptr %44, align 1, !tbaa !22
  %46 = icmp eq i8 %45, 0
  br i1 %46, label %47, label %.thread158

47:                                               ; preds = %42
  %48 = call i32 @png_inflate_claim(ptr noundef %0, i32 noundef 1766015824)
  %49 = icmp eq i32 %48, 0
  br i1 %49, label %50, label %153

50:                                               ; preds = %47
  %51 = add nuw nsw i32 %.0117.lcssa, 2
  %52 = sub nsw i32 %spec.select, %51
  call void @llvm.lifetime.start.p0(i64 132, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  store i64 132, ptr %8, align 8, !tbaa !25
  %53 = zext nneg i32 %51 to i64
  %54 = getelementptr inbounds i8, ptr %5, i64 %53
  %55 = getelementptr inbounds i8, ptr %0, i64 320
  store ptr %54, ptr %55, align 8, !tbaa !26
  %56 = getelementptr inbounds i8, ptr %0, i64 328
  store i32 %52, ptr %56, align 8, !tbaa !27
  %57 = call i32 @png_inflate_read(ptr noundef %0, ptr noundef nonnull %7, i32 noundef 1024, ptr noundef nonnull %4, ptr noundef nonnull %6, ptr noundef nonnull %8, i32 noundef 0)
  %58 = load i64, ptr %8, align 8, !tbaa !25
  %59 = icmp eq i64 %58, 0
  br i1 %59, label %60, label %.thread172

60:                                               ; preds = %50
  %61 = load i8, ptr %6, align 16, !tbaa !22
  %62 = zext i8 %61 to i32
  %63 = shl nuw i32 %62, 24
  %64 = getelementptr inbounds i8, ptr %6, i64 1
  %65 = load i8, ptr %64, align 1, !tbaa !22
  %66 = zext i8 %65 to i32
  %67 = shl nuw nsw i32 %66, 16
  %68 = or disjoint i32 %67, %63
  %69 = getelementptr inbounds i8, ptr %6, i64 2
  %70 = load i8, ptr %69, align 2, !tbaa !22
  %71 = zext i8 %70 to i32
  %72 = shl nuw nsw i32 %71, 8
  %73 = or disjoint i32 %68, %72
  %74 = getelementptr inbounds i8, ptr %6, i64 3
  %75 = load i8, ptr %74, align 1, !tbaa !22
  %76 = zext i8 %75 to i32
  %77 = or disjoint i32 %73, %76
  %78 = call i32 @png_icc_check_length(ptr noundef nonnull %0, ptr noundef nonnull %23, ptr noundef nonnull %5, i32 noundef %77) #7
  %.not129 = icmp eq i32 %78, 0
  br i1 %.not129, label %.thread176, label %79

79:                                               ; preds = %60
  %80 = getelementptr inbounds i8, ptr %0, i64 631
  %81 = load i8, ptr %80, align 1, !tbaa !28
  %82 = zext i8 %81 to i32
  %83 = call i32 @png_icc_check_header(ptr noundef nonnull %0, ptr noundef nonnull %23, ptr noundef nonnull %5, i32 noundef %77, ptr noundef nonnull %6, i32 noundef %82) #7
  %.not130 = icmp eq i32 %83, 0
  br i1 %.not130, label %.thread176, label %84

84:                                               ; preds = %79
  %85 = getelementptr inbounds i8, ptr %6, i64 128
  %86 = load i8, ptr %85, align 16, !tbaa !22
  %87 = getelementptr inbounds i8, ptr %6, i64 129
  %88 = load i8, ptr %87, align 1, !tbaa !22
  %89 = getelementptr inbounds i8, ptr %6, i64 130
  %90 = load i8, ptr %89, align 2, !tbaa !22
  %91 = getelementptr inbounds i8, ptr %6, i64 131
  %92 = load i8, ptr %91, align 1, !tbaa !22
  %93 = zext i32 %77 to i64
  %94 = call ptr @png_read_buffer(ptr noundef nonnull %0, i64 noundef %93, i32 noundef 2)
  %.not131 = icmp eq ptr %94, null
  br i1 %.not131, label %.thread176, label %95

95:                                               ; preds = %84
  %96 = zext i8 %86 to i64
  %97 = shl nuw nsw i64 %96, 24
  %98 = zext i8 %88 to i64
  %99 = shl nuw nsw i64 %98, 16
  %100 = or disjoint i64 %99, %97
  %101 = zext i8 %90 to i64
  %102 = shl nuw nsw i64 %101, 8
  %103 = or disjoint i64 %100, %102
  %104 = zext i8 %92 to i64
  %105 = or disjoint i64 %103, %104
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(132) %94, ptr noundef nonnull align 16 dereferenceable(132) %6, i64 132, i1 false)
  %106 = mul nuw nsw i64 %105, 12
  %107 = and i64 %106, 4294967292
  store i64 %107, ptr %8, align 8, !tbaa !25
  %108 = getelementptr inbounds i8, ptr %94, i64 132
  %109 = call i32 @png_inflate_read(ptr noundef nonnull %0, ptr noundef nonnull %7, i32 noundef 1024, ptr noundef nonnull %4, ptr noundef nonnull %108, ptr noundef nonnull %8, i32 noundef 0)
  %110 = load i64, ptr %8, align 8, !tbaa !25
  %111 = icmp eq i64 %110, 0
  br i1 %111, label %112, label %147

112:                                              ; preds = %95
  %113 = call i32 @png_icc_check_tag_table(ptr noundef nonnull %0, ptr noundef nonnull %23, ptr noundef nonnull %5, i32 noundef %77, ptr noundef nonnull %94) #7
  %.not132 = icmp eq i32 %113, 0
  br i1 %.not132, label %.thread176, label %114

114:                                              ; preds = %112
  %115 = add nsw i64 %93, -132
  %116 = sub nsw i64 %115, %107
  store i64 %116, ptr %8, align 8, !tbaa !25
  %117 = getelementptr inbounds i8, ptr %108, i64 %107
  %118 = call i32 @png_inflate_read(ptr noundef nonnull %0, ptr noundef nonnull %7, i32 noundef 1024, ptr noundef nonnull %4, ptr noundef nonnull %117, ptr noundef nonnull %8, i32 noundef 1)
  %119 = load i32, ptr %4, align 4, !tbaa !5
  %.not133 = icmp eq i32 %119, 0
  br i1 %.not133, label %124, label %120

120:                                              ; preds = %114
  %121 = getelementptr inbounds i8, ptr %0, i64 304
  %122 = load i32, ptr %121, align 8, !tbaa !29
  %123 = and i32 %122, 1048576
  %.not134 = icmp eq i32 %123, 0
  br i1 %.not134, label %.thread176, label %.thread

124:                                              ; preds = %114
  %125 = load i64, ptr %8, align 8, !tbaa !25
  %126 = icmp eq i64 %125, 0
  br i1 %126, label %130, label %.thread176

.thread:                                          ; preds = %120
  %127 = load i64, ptr %8, align 8, !tbaa !25
  %128 = icmp eq i64 %127, 0
  br i1 %128, label %129, label %.thread176

129:                                              ; preds = %.thread
  call void @png_chunk_warning(ptr noundef nonnull %0, ptr noundef nonnull @.str.15) #7
  %.pre = load i32, ptr %4, align 4, !tbaa !5
  br label %130

130:                                              ; preds = %124, %129
  %131 = phi i32 [ 0, %124 ], [ %.pre, %129 ]
  %132 = call i32 @png_crc_finish(ptr noundef nonnull %0, i32 noundef %131)
  %133 = getelementptr inbounds i8, ptr %0, i64 416
  %134 = load i64, ptr %133, align 8, !tbaa !30
  call void @png_icc_set_sRGB(ptr noundef nonnull %0, ptr noundef nonnull %23, ptr noundef nonnull %94, i64 noundef %134) #7
  %.not136 = icmp eq ptr %1, null
  br i1 %.not136, label %.thread147, label %135

135:                                              ; preds = %130
  call void @png_free_data(ptr noundef nonnull %0, ptr noundef nonnull %1, i32 noundef 16, i32 noundef 0) #7
  %136 = call noalias ptr @png_malloc_base(ptr noundef nonnull %0, i64 noundef %43) #7
  %137 = getelementptr inbounds i8, ptr %1, i64 128
  store ptr %136, ptr %137, align 8, !tbaa !31
  %.not137 = icmp eq ptr %136, null
  br i1 %.not137, label %158, label %.thread149

.thread149:                                       ; preds = %135
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(1) %136, ptr noundef nonnull align 16 dereferenceable(1) %5, i64 %43, i1 false)
  %138 = getelementptr inbounds i8, ptr %1, i64 144
  store i32 %77, ptr %138, align 8, !tbaa !34
  %139 = getelementptr inbounds i8, ptr %1, i64 136
  store ptr %94, ptr %139, align 8, !tbaa !35
  %140 = getelementptr inbounds i8, ptr %0, i64 1176
  store ptr null, ptr %140, align 8, !tbaa !36
  %141 = getelementptr inbounds i8, ptr %1, i64 284
  %142 = load i32, ptr %141, align 4, !tbaa !37
  %143 = or i32 %142, 16
  store i32 %143, ptr %141, align 4, !tbaa !37
  %144 = getelementptr inbounds i8, ptr %1, i64 8
  %145 = load i32, ptr %144, align 8, !tbaa !38
  %146 = or i32 %145, 4096
  store i32 %146, ptr %144, align 8, !tbaa !38
  call void @png_colorspace_sync(ptr noundef nonnull %0, ptr noundef nonnull %1) #7
  br label %.thread147

147:                                              ; preds = %95
  %148 = getelementptr inbounds i8, ptr %0, i64 368
  %149 = load ptr, ptr %148, align 8, !tbaa !39
  br label %.thread176

.thread172:                                       ; preds = %50
  %150 = getelementptr inbounds i8, ptr %0, i64 368
  %151 = load ptr, ptr %150, align 8, !tbaa !39
  %152 = getelementptr inbounds i8, ptr %0, i64 312
  store i32 0, ptr %152, align 8, !tbaa !40
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 132, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 81, ptr nonnull %5) #7
  br label %.thread167

153:                                              ; preds = %47
  %154 = getelementptr inbounds i8, ptr %0, i64 368
  %155 = load ptr, ptr %154, align 8, !tbaa !39
  br label %.thread158

.thread158:                                       ; preds = %.critedge, %39, %42, %153
  %.8.ph = phi ptr [ @.str.19, %.critedge ], [ @.str.18, %39 ], [ @.str.18, %42 ], [ %155, %153 ]
  call void @llvm.lifetime.end.p0(i64 81, ptr nonnull %5) #7
  br label %.thread167

.thread147:                                       ; preds = %130, %.thread149
  %156 = getelementptr inbounds i8, ptr %0, i64 312
  store i32 0, ptr %156, align 8, !tbaa !40
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 132, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 81, ptr nonnull %5) #7
  br label %168

.thread176:                                       ; preds = %.thread, %84, %124, %120, %147, %112, %60, %79
  %.4.ph.ph = phi ptr [ null, %79 ], [ null, %60 ], [ null, %112 ], [ %149, %147 ], [ @.str.15, %120 ], [ @.str.17, %124 ], [ @.str.16, %84 ], [ @.str.17, %.thread ]
  %157 = getelementptr inbounds i8, ptr %0, i64 312
  store i32 0, ptr %157, align 8, !tbaa !40
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 132, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 81, ptr nonnull %5) #7
  br label %.thread167

158:                                              ; preds = %135
  %159 = load i16, ptr %24, align 2, !tbaa !21
  %160 = or i16 %159, -32768
  store i16 %160, ptr %24, align 2, !tbaa !21
  call void @png_colorspace_sync(ptr noundef nonnull %0, ptr noundef nonnull %1) #7
  %161 = getelementptr inbounds i8, ptr %0, i64 312
  store i32 0, ptr %161, align 8, !tbaa !40
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 132, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 81, ptr nonnull %5) #7
  br label %164

.thread167:                                       ; preds = %.thread158, %28, %.thread176, %.thread172
  %.9171 = phi ptr [ %151, %.thread172 ], [ %.4.ph.ph, %.thread176 ], [ %.8.ph, %.thread158 ], [ @.str.13, %28 ]
  %162 = load i32, ptr %4, align 4, !tbaa !5
  %163 = call i32 @png_crc_finish(ptr noundef %0, i32 noundef %162)
  br label %164

164:                                              ; preds = %158, %.thread167
  %.9170 = phi ptr [ %.9171, %.thread167 ], [ @.str.16, %158 ]
  %165 = load i16, ptr %24, align 2, !tbaa !21
  %166 = or i16 %165, -32768
  store i16 %166, ptr %24, align 2, !tbaa !21
  call void @png_colorspace_sync(ptr noundef %0, ptr noundef %1) #7
  %.not138 = icmp eq ptr %.9170, null
  br i1 %.not138, label %168, label %167

167:                                              ; preds = %164
  call void @png_chunk_benign_error(ptr noundef nonnull %0, ptr noundef nonnull %.9170) #7
  br label %168

168:                                              ; preds = %.thread147, %164, %167, %26, %20, %16
  ret void
}

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

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

declare i32 @png_icc_check_length(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

declare i32 @png_icc_check_header(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

declare i32 @png_icc_check_tag_table(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

declare void @png_icc_set_sRGB(ptr noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

declare void @png_free_data(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

declare noalias ptr @png_malloc_base(ptr noundef, i64 noundef) local_unnamed_addr #2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { noreturn nounwind }
attributes #7 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 300}
!10 = !{!"png_struct_def", !7, i64 0, !11, i64 200, !11, i64 208, !12, i64 216, !11, i64 224, !11, i64 232, !11, i64 240, !11, i64 248, !11, i64 256, !11, i64 264, !11, i64 272, !11, i64 280, !11, i64 288, !7, i64 296, !7, i64 297, !6, i64 300, !6, i64 304, !6, i64 308, !6, i64 312, !13, i64 320, !11, i64 432, !6, i64 440, !6, i64 444, !6, i64 448, !6, i64 452, !6, i64 456, !6, i64 460, !6, i64 464, !6, i64 468, !6, i64 472, !6, i64 476, !6, i64 480, !6, i64 484, !6, i64 488, !6, i64 492, !6, i64 496, !6, i64 500, !6, i64 504, !6, i64 508, !6, i64 512, !6, i64 516, !12, i64 520, !6, i64 528, !6, i64 532, !6, i64 536, !11, i64 544, !11, i64 552, !11, i64 560, !11, i64 568, !11, i64 576, !11, i64 584, !12, i64 592, !6, i64 600, !6, i64 604, !11, i64 608, !14, i64 616, !6, i64 620, !14, i64 624, !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, !7, i64 637, !7, i64 638, !7, i64 639, !14, i64 640, !7, i64 642, !6, i64 644, !15, i64 648, !15, i64 658, !11, i64 672, !6, i64 680, !6, i64 684, !6, i64 688, !6, i64 692, !11, i64 696, !11, i64 704, !11, i64 712, !11, i64 720, !11, i64 728, !11, i64 736, !16, i64 744, !16, i64 749, !11, i64 760, !15, i64 768, !11, i64 784, !11, i64 792, !11, i64 800, !11, i64 808, !11, i64 816, !11, i64 824, !11, i64 832, !11, i64 840, !11, i64 848, !6, i64 856, !6, i64 860, !12, i64 864, !12, i64 872, !12, i64 880, !12, i64 888, !6, i64 896, !6, i64 900, !11, i64 904, !11, i64 912, !7, i64 920, !7, i64 921, !11, i64 928, !11, i64 936, !11, i64 944, !11, i64 952, !11, i64 960, !7, i64 968, !7, i64 969, !6, i64 1000, !11, i64 1008, !11, i64 1016, !6, i64 1024, !6, i64 1028, !11, i64 1032, !7, i64 1040, !7, i64 1041, !14, i64 1042, !14, i64 1044, !6, i64 1048, !7, i64 1052, !11, i64 1056, !11, i64 1064, !11, i64 1072, !11, i64 1080, !11, i64 1088, !11, i64 1096, !11, i64 1104, !7, i64 1112, !6, i64 1116, !6, i64 1120, !6, i64 1124, !12, i64 1128, !17, i64 1136, !12, i64 1168, !11, i64 1176, !12, i64 1184, !6, i64 1192, !6, i64 1196, !11, i64 1200, !7, i64 1208, !18, i64 1240}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!"z_stream_s", !11, i64 0, !6, i64 8, !12, i64 16, !11, i64 24, !6, i64 32, !12, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !6, i64 88, !12, i64 96, !12, 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, !11, i64 8, !12, i64 16, !7, i64 24}
!18 = !{!"png_colorspace", !6, i64 0, !19, i64 4, !20, i64 36, !14, i64 72, !14, i64 74}
!19 = !{!"png_xy", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28}
!20 = !{!"png_XYZ", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32}
!21 = !{!10, !14, i64 1314}
!22 = !{!7, !7, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!12, !12, i64 0}
!26 = !{!10, !11, i64 320}
!27 = !{!10, !6, i64 328}
!28 = !{!10, !7, i64 631}
!29 = !{!10, !6, i64 304}
!30 = !{!10, !12, i64 416}
!31 = !{!32, !11, i64 128}
!32 = !{!"png_info_def", !6, i64 0, !6, i64 4, !6, i64 8, !12, i64 16, !11, i64 24, !14, i64 32, !14, i64 34, !7, i64 36, !7, i64 37, !7, i64 38, !7, i64 39, !7, i64 40, !7, i64 41, !7, i64 42, !7, i64 43, !7, i64 44, !18, i64 52, !11, i64 128, !11, i64 136, !6, i64 144, !6, i64 148, !6, i64 152, !11, i64 160, !33, i64 168, !16, i64 176, !11, i64 184, !15, i64 192, !15, i64 202, !6, i64 212, !6, i64 216, !7, i64 220, !6, i64 224, !6, i64 228, !7, i64 232, !11, i64 240, !11, i64 248, !6, i64 256, !6, i64 260, !11, i64 264, !11, i64 272, !7, i64 280, !7, i64 281, !6, i64 284, !11, i64 288, !6, i64 296, !11, i64 304, !6, i64 312, !7, i64 316, !11, i64 320, !11, i64 328, !11, i64 336}
!33 = !{!"png_time_struct", !14, i64 0, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !7, i64 6}
!34 = !{!32, !6, i64 144}
!35 = !{!32, !11, i64 136}
!36 = !{!10, !11, i64 1176}
!37 = !{!32, !6, i64 284}
!38 = !{!32, !6, i64 8}
!39 = !{!10, !11, i64 368}
!40 = !{!10, !6, i64 312}


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