; LLVM IR from Try/Tempest :: Engine/thirdparty/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, i64, i32, i32, ptr, i16, i32, i16, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i16, i8, i32, %struct.png_color_16_struct, %struct.png_color_16_struct, ptr, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, %struct.png_color_8_struct, %struct.png_color_8_struct, ptr, %struct.png_color_16_struct, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i64, i64, i64, i64, i32, i32, ptr, ptr, i32, [29 x i8], i32, ptr, ptr, i32, i32, ptr, i8, i8, i16, i16, i32, i8, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i32, i32, i32, i64, %struct.png_unknown_chunk_t, i64, ptr, i64, i32, i32, ptr, [4 x ptr], %struct.png_colorspace }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.z_stream_s = type { ptr, i32, i64, ptr, i32, i64, ptr, ptr, ptr, ptr, ptr, i32, i64, i64 }
%struct.png_color_8_struct = type { i8, i8, i8, i8, i8 }
%struct.png_color_16_struct = type { i8, i16, i16, i16, i16 }
%struct.png_unknown_chunk_t = type { [5 x i8], ptr, i64, i8 }
%struct.png_colorspace = type { i32, %struct.png_xy, %struct.png_XYZ, i16, i16 }
%struct.png_xy = type { i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.png_XYZ = type { i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%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, i32, ptr, ptr, 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.5 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [14 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) #6
  store ptr null, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  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.7) #7
  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.5)
  store i32 1, ptr %9, align 4
  br label %431

37:                                               ; preds = %26
  br label %38

38:                                               ; preds = %37
  %39 = load i32, ptr %6, align 4, !tbaa !9
  %40 = icmp ult i32 %39, 14
  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.15)
  store i32 1, ptr %9, align 4
  br label %431

46:                                               ; preds = %38
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.png_struct_def, ptr %47, i32 0, i32 144
  %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 %431

58:                                               ; preds = %46
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.png_struct_def, ptr %59, i32 0, i32 144
  %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 %407

66:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 81, ptr %12) #6
  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
  %79 = load i32, ptr %6, align 4, !tbaa !9
  %80 = icmp ult i32 %79, 11
  br i1 %80, label %81, label %86

81:                                               ; preds = %72
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = load i32, ptr %6, align 4, !tbaa !9
  %84 = call i32 @png_crc_finish(ptr noundef %82, i32 noundef %83)
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_chunk_benign_error(ptr noundef %85, ptr noundef @.str.15)
  store i32 1, ptr %9, align 4
  br label %404

86:                                               ; preds = %72
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %87

87:                                               ; preds = %103, %86
  %88 = load i32, ptr %11, align 4, !tbaa !9
  %89 = icmp ult i32 %88, 80
  br i1 %89, label %90, label %101

90:                                               ; preds = %87
  %91 = load i32, ptr %11, align 4, !tbaa !9
  %92 = load i32, ptr %10, align 4, !tbaa !9
  %93 = icmp ult i32 %91, %92
  br i1 %93, label %94, label %101

94:                                               ; preds = %90
  %95 = load i32, ptr %11, align 4, !tbaa !9
  %96 = zext i32 %95 to i64
  %97 = getelementptr inbounds [81 x i8], ptr %12, i64 0, i64 %96
  %98 = load i8, ptr %97, align 1, !tbaa !23
  %99 = sext i8 %98 to i32
  %100 = icmp ne i32 %99, 0
  br label %101

101:                                              ; preds = %94, %90, %87
  %102 = phi i1 [ false, %90 ], [ false, %87 ], [ %100, %94 ]
  br i1 %102, label %103, label %106

103:                                              ; preds = %101
  %104 = load i32, ptr %11, align 4, !tbaa !9
  %105 = add i32 %104, 1
  store i32 %105, ptr %11, align 4, !tbaa !9
  br label %87, !llvm.loop !24

106:                                              ; preds = %101
  %107 = load i32, ptr %11, align 4, !tbaa !9
  %108 = icmp uge i32 %107, 1
  br i1 %108, label %109, label %402

109:                                              ; preds = %106
  %110 = load i32, ptr %11, align 4, !tbaa !9
  %111 = icmp ule i32 %110, 79
  br i1 %111, label %112, label %402

112:                                              ; preds = %109
  %113 = load i32, ptr %11, align 4, !tbaa !9
  %114 = add i32 %113, 1
  %115 = load i32, ptr %10, align 4, !tbaa !9
  %116 = icmp ult i32 %114, %115
  br i1 %116, label %117, label %400

117:                                              ; preds = %112
  %118 = load i32, ptr %11, align 4, !tbaa !9
  %119 = add i32 %118, 1
  %120 = zext i32 %119 to i64
  %121 = getelementptr inbounds [81 x i8], ptr %12, i64 0, i64 %120
  %122 = load i8, ptr %121, align 1, !tbaa !23
  %123 = sext i8 %122 to i32
  %124 = icmp eq i32 %123, 0
  br i1 %124, label %125, label %400

125:                                              ; preds = %117
  %126 = load i32, ptr %11, align 4, !tbaa !9
  %127 = add i32 %126, 2
  %128 = load i32, ptr %10, align 4, !tbaa !9
  %129 = sub i32 %128, %127
  store i32 %129, ptr %10, align 4, !tbaa !9
  %130 = load ptr, ptr %4, align 8, !tbaa !5
  %131 = call i32 @png_inflate_claim(ptr noundef %130, i32 noundef 1766015824)
  %132 = icmp eq i32 %131, 0
  br i1 %132, label %133, label %394

133:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 132, ptr %13) #6
  call void @llvm.memset.p0.i64(ptr align 16 %13, i8 0, i64 132, i1 false)
  call void @llvm.lifetime.start.p0(i64 1024, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  store i64 132, ptr %15, align 8, !tbaa !26
  %134 = getelementptr inbounds [81 x i8], ptr %12, i64 0, i64 0
  %135 = load i32, ptr %11, align 4, !tbaa !9
  %136 = add i32 %135, 2
  %137 = zext i32 %136 to i64
  %138 = getelementptr inbounds i8, ptr %134, i64 %137
  %139 = load ptr, ptr %4, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.png_struct_def, ptr %139, i32 0, i32 19
  %141 = getelementptr inbounds %struct.z_stream_s, ptr %140, i32 0, i32 0
  store ptr %138, ptr %141, align 8, !tbaa !27
  %142 = load i32, ptr %10, align 4, !tbaa !9
  %143 = load ptr, ptr %4, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.png_struct_def, ptr %143, i32 0, i32 19
  %145 = getelementptr inbounds %struct.z_stream_s, ptr %144, i32 0, i32 1
  store i32 %142, ptr %145, align 8, !tbaa !28
  %146 = load ptr, ptr %4, align 8, !tbaa !5
  %147 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
  %148 = getelementptr inbounds [132 x i8], ptr %13, i64 0, i64 0
  %149 = call i32 @png_inflate_read(ptr noundef %146, ptr noundef %147, i32 noundef 1024, ptr noundef %6, ptr noundef %148, ptr noundef %15, i32 noundef 0)
  %150 = load i64, ptr %15, align 8, !tbaa !26
  %151 = icmp eq i64 %150, 0
  br i1 %151, label %152, label %383

152:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %153 = getelementptr inbounds [132 x i8], ptr %13, i64 0, i64 0
  %154 = load i8, ptr %153, align 16, !tbaa !23
  %155 = zext i8 %154 to i32
  %156 = shl i32 %155, 24
  %157 = getelementptr inbounds [132 x i8], ptr %13, i64 0, i64 0
  %158 = getelementptr inbounds i8, ptr %157, i64 1
  %159 = load i8, ptr %158, align 1, !tbaa !23
  %160 = zext i8 %159 to i32
  %161 = shl i32 %160, 16
  %162 = add i32 %156, %161
  %163 = getelementptr inbounds [132 x i8], ptr %13, i64 0, i64 0
  %164 = getelementptr inbounds i8, ptr %163, i64 2
  %165 = load i8, ptr %164, align 1, !tbaa !23
  %166 = zext i8 %165 to i32
  %167 = shl i32 %166, 8
  %168 = add i32 %162, %167
  %169 = getelementptr inbounds [132 x i8], ptr %13, i64 0, i64 0
  %170 = getelementptr inbounds i8, ptr %169, i64 3
  %171 = load i8, ptr %170, align 1, !tbaa !23
  %172 = zext i8 %171 to i32
  %173 = add i32 %168, %172
  store i32 %173, ptr %16, align 4, !tbaa !9
  %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 144
  %177 = getelementptr inbounds [81 x i8], ptr %12, i64 0, i64 0
  %178 = load i32, ptr %16, align 4, !tbaa !9
  %179 = call i32 @png_icc_check_length(ptr noundef %174, ptr noundef %176, ptr noundef %177, i32 noundef %178)
  %180 = icmp ne i32 %179, 0
  br i1 %180, label %181, label %379

181:                                              ; preds = %152
  %182 = load ptr, ptr %4, align 8, !tbaa !5
  %183 = load ptr, ptr %4, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.png_struct_def, ptr %183, i32 0, i32 144
  %185 = getelementptr inbounds [81 x i8], ptr %12, i64 0, i64 0
  %186 = load i32, ptr %16, align 4, !tbaa !9
  %187 = getelementptr inbounds [132 x i8], ptr %13, i64 0, i64 0
  %188 = load ptr, ptr %4, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.png_struct_def, ptr %188, i32 0, i32 61
  %190 = load i8, ptr %189, align 1, !tbaa !29
  %191 = zext i8 %190 to i32
  %192 = call i32 @png_icc_check_header(ptr noundef %182, ptr noundef %184, ptr noundef %185, i32 noundef %186, ptr noundef %187, i32 noundef %191)
  %193 = icmp ne i32 %192, 0
  br i1 %193, label %194, label %378

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

226:                                              ; preds = %194
  %227 = load ptr, ptr %18, align 8, !tbaa !5
  %228 = getelementptr inbounds [132 x i8], ptr %13, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %227, ptr align 16 %228, i64 132, i1 false)
  %229 = load i32, ptr %17, align 4, !tbaa !9
  %230 = mul i32 12, %229
  %231 = zext i32 %230 to i64
  store i64 %231, ptr %15, align 8, !tbaa !26
  %232 = load ptr, ptr %4, align 8, !tbaa !5
  %233 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
  %234 = load ptr, ptr %18, align 8, !tbaa !5
  %235 = getelementptr inbounds i8, ptr %234, i64 132
  %236 = call i32 @png_inflate_read(ptr noundef %232, ptr noundef %233, i32 noundef 1024, ptr noundef %6, ptr noundef %235, ptr noundef %15, i32 noundef 0)
  %237 = load i64, ptr %15, align 8, !tbaa !26
  %238 = icmp eq i64 %237, 0
  br i1 %238, label %239, label %367

239:                                              ; preds = %226
  %240 = load ptr, ptr %4, align 8, !tbaa !5
  %241 = load ptr, ptr %4, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.png_struct_def, ptr %241, i32 0, i32 144
  %243 = getelementptr inbounds [81 x i8], ptr %12, i64 0, i64 0
  %244 = load i32, ptr %16, align 4, !tbaa !9
  %245 = load ptr, ptr %18, align 8, !tbaa !5
  %246 = call i32 @png_icc_check_tag_table(ptr noundef %240, ptr noundef %242, ptr noundef %243, i32 noundef %244, ptr noundef %245)
  %247 = icmp ne i32 %246, 0
  br i1 %247, label %248, label %366

248:                                              ; preds = %239
  %249 = load i32, ptr %16, align 4, !tbaa !9
  %250 = zext i32 %249 to i64
  %251 = sub i64 %250, 132
  %252 = load i32, ptr %17, align 4, !tbaa !9
  %253 = mul i32 12, %252
  %254 = zext i32 %253 to i64
  %255 = sub i64 %251, %254
  store i64 %255, ptr %15, align 8, !tbaa !26
  %256 = load ptr, ptr %4, align 8, !tbaa !5
  %257 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
  %258 = load ptr, ptr %18, align 8, !tbaa !5
  %259 = getelementptr inbounds i8, ptr %258, i64 132
  %260 = load i32, ptr %17, align 4, !tbaa !9
  %261 = mul i32 12, %260
  %262 = zext i32 %261 to i64
  %263 = getelementptr inbounds i8, ptr %259, i64 %262
  %264 = call i32 @png_inflate_read(ptr noundef %256, ptr noundef %257, i32 noundef 1024, ptr noundef %6, ptr noundef %263, ptr noundef %15, i32 noundef 1)
  %265 = load i32, ptr %6, align 4, !tbaa !9
  %266 = icmp ugt i32 %265, 0
  br i1 %266, label %267, label %274

267:                                              ; preds = %248
  %268 = load ptr, ptr %4, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.png_struct_def, ptr %268, i32 0, i32 16
  %270 = load i32, ptr %269, align 8, !tbaa !30
  %271 = and i32 %270, 1048576
  %272 = icmp ne i32 %271, 0
  br i1 %272, label %274, label %273

273:                                              ; preds = %267
  store ptr @.str.16, ptr %7, align 8, !tbaa !5
  br label %357

274:                                              ; preds = %267, %248
  %275 = load i64, ptr %15, align 8, !tbaa !26
  %276 = icmp eq i64 %275, 0
  br i1 %276, label %277, label %356

277:                                              ; preds = %274
  %278 = load i32, ptr %6, align 4, !tbaa !9
  %279 = icmp ugt i32 %278, 0
  br i1 %279, label %280, label %282

280:                                              ; preds = %277
  %281 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_chunk_warning(ptr noundef %281, ptr noundef @.str.16)
  br label %282

282:                                              ; preds = %280, %277
  %283 = load ptr, ptr %4, align 8, !tbaa !5
  %284 = load i32, ptr %6, align 4, !tbaa !9
  %285 = call i32 @png_crc_finish(ptr noundef %283, i32 noundef %284)
  store i32 1, ptr %8, align 4, !tbaa !9
  %286 = load ptr, ptr %4, align 8, !tbaa !5
  %287 = load ptr, ptr %4, align 8, !tbaa !5
  %288 = getelementptr inbounds %struct.png_struct_def, ptr %287, i32 0, i32 144
  %289 = load ptr, ptr %18, align 8, !tbaa !5
  %290 = load ptr, ptr %4, align 8, !tbaa !5
  %291 = getelementptr inbounds %struct.png_struct_def, ptr %290, i32 0, i32 19
  %292 = getelementptr inbounds %struct.z_stream_s, ptr %291, i32 0, i32 12
  %293 = load i64, ptr %292, align 8, !tbaa !31
  call void @png_icc_set_sRGB(ptr noundef %286, ptr noundef %288, ptr noundef %289, i64 noundef %293)
  %294 = load ptr, ptr %5, align 8, !tbaa !5
  %295 = icmp ne ptr %294, null
  br i1 %295, label %296, label %343

296:                                              ; preds = %282
  %297 = load ptr, ptr %4, align 8, !tbaa !5
  %298 = load ptr, ptr %5, align 8, !tbaa !5
  call void @png_free_data(ptr noundef %297, ptr noundef %298, i32 noundef 16, i32 noundef 0)
  %299 = load ptr, ptr %4, align 8, !tbaa !5
  %300 = load i32, ptr %11, align 4, !tbaa !9
  %301 = add i32 %300, 1
  %302 = zext i32 %301 to i64
  %303 = call noalias ptr @png_malloc_base(ptr noundef %299, i64 noundef %302)
  %304 = load ptr, ptr %5, align 8, !tbaa !5
  %305 = getelementptr inbounds %struct.png_info_def, ptr %304, i32 0, i32 17
  store ptr %303, ptr %305, align 8, !tbaa !32
  %306 = load ptr, ptr %5, align 8, !tbaa !5
  %307 = getelementptr inbounds %struct.png_info_def, ptr %306, i32 0, i32 17
  %308 = load ptr, ptr %307, align 8, !tbaa !32
  %309 = icmp ne ptr %308, null
  br i1 %309, label %310, label %334

310:                                              ; preds = %296
  %311 = load ptr, ptr %5, align 8, !tbaa !5
  %312 = getelementptr inbounds %struct.png_info_def, ptr %311, i32 0, i32 17
  %313 = load ptr, ptr %312, align 8, !tbaa !32
  %314 = getelementptr inbounds [81 x i8], ptr %12, i64 0, i64 0
  %315 = load i32, ptr %11, align 4, !tbaa !9
  %316 = add i32 %315, 1
  %317 = zext i32 %316 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %313, ptr align 16 %314, i64 %317, i1 false)
  %318 = load i32, ptr %16, align 4, !tbaa !9
  %319 = load ptr, ptr %5, align 8, !tbaa !5
  %320 = getelementptr inbounds %struct.png_info_def, ptr %319, i32 0, i32 19
  store i32 %318, ptr %320, align 8, !tbaa !35
  %321 = load ptr, ptr %18, align 8, !tbaa !5
  %322 = load ptr, ptr %5, align 8, !tbaa !5
  %323 = getelementptr inbounds %struct.png_info_def, ptr %322, i32 0, i32 18
  store ptr %321, ptr %323, align 8, !tbaa !36
  %324 = load ptr, ptr %4, align 8, !tbaa !5
  %325 = getelementptr inbounds %struct.png_struct_def, ptr %324, i32 0, i32 138
  store ptr null, ptr %325, align 8, !tbaa !37
  %326 = load ptr, ptr %5, align 8, !tbaa !5
  %327 = getelementptr inbounds %struct.png_info_def, ptr %326, i32 0, i32 45
  %328 = load i32, ptr %327, align 4, !tbaa !38
  %329 = or i32 %328, 16
  store i32 %329, ptr %327, align 4, !tbaa !38
  %330 = load ptr, ptr %5, align 8, !tbaa !5
  %331 = getelementptr inbounds %struct.png_info_def, ptr %330, i32 0, i32 2
  %332 = load i32, ptr %331, align 8, !tbaa !39
  %333 = or i32 %332, 4096
  store i32 %333, ptr %331, align 8, !tbaa !39
  br label %342

334:                                              ; preds = %296
  %335 = load ptr, ptr %4, align 8, !tbaa !5
  %336 = getelementptr inbounds %struct.png_struct_def, ptr %335, i32 0, i32 144
  %337 = getelementptr inbounds %struct.png_colorspace, ptr %336, i32 0, i32 4
  %338 = load i16, ptr %337, align 2, !tbaa !22
  %339 = zext i16 %338 to i32
  %340 = or i32 %339, 32768
  %341 = trunc i32 %340 to i16
  store i16 %341, ptr %337, align 2, !tbaa !22
  store ptr @.str.17, ptr %7, align 8, !tbaa !5
  br label %342

342:                                              ; preds = %334, %310
  br label %343

343:                                              ; preds = %342, %282
  %344 = load ptr, ptr %5, align 8, !tbaa !5
  %345 = icmp ne ptr %344, null
  br i1 %345, label %346, label %349

346:                                              ; preds = %343
  %347 = load ptr, ptr %4, align 8, !tbaa !5
  %348 = load ptr, ptr %5, align 8, !tbaa !5
  call void @png_colorspace_sync(ptr noundef %347, ptr noundef %348)
  br label %349

349:                                              ; preds = %346, %343
  %350 = load ptr, ptr %7, align 8, !tbaa !5
  %351 = icmp eq ptr %350, null
  br i1 %351, label %352, label %355

352:                                              ; preds = %349
  %353 = load ptr, ptr %4, align 8, !tbaa !5
  %354 = getelementptr inbounds %struct.png_struct_def, ptr %353, i32 0, i32 18
  store i32 0, ptr %354, align 8, !tbaa !40
  store i32 1, ptr %9, align 4
  br label %375

355:                                              ; preds = %349
  br label %356

356:                                              ; preds = %355, %274
  br label %357

357:                                              ; preds = %356, %273
  %358 = load ptr, ptr %7, align 8, !tbaa !5
  %359 = icmp eq ptr %358, null
  br i1 %359, label %360, label %365

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

365:                                              ; preds = %360, %357
  br label %366

366:                                              ; preds = %365, %239
  br label %372

367:                                              ; preds = %226
  %368 = load ptr, ptr %4, align 8, !tbaa !5
  %369 = getelementptr inbounds %struct.png_struct_def, ptr %368, i32 0, i32 19
  %370 = getelementptr inbounds %struct.z_stream_s, ptr %369, i32 0, i32 6
  %371 = load ptr, ptr %370, align 8, !tbaa !41
  store ptr %371, ptr %7, align 8, !tbaa !5
  br label %372

372:                                              ; preds = %367, %366
  br label %374

373:                                              ; preds = %194
  store ptr @.str.17, ptr %7, align 8, !tbaa !5
  br label %374

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

375:                                              ; preds = %374, %352
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  %376 = load i32, ptr %9, align 4
  switch i32 %376, label %380 [
    i32 0, label %377
  ]

377:                                              ; preds = %375
  br label %378

378:                                              ; preds = %377, %181
  br label %379

379:                                              ; preds = %378, %152
  store i32 0, ptr %9, align 4
  br label %380

380:                                              ; preds = %379, %375
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  %381 = load i32, ptr %9, align 4
  switch i32 %381, label %391 [
    i32 0, label %382
  ]

382:                                              ; preds = %380
  br label %388

383:                                              ; preds = %133
  %384 = load ptr, ptr %4, align 8, !tbaa !5
  %385 = getelementptr inbounds %struct.png_struct_def, ptr %384, i32 0, i32 19
  %386 = getelementptr inbounds %struct.z_stream_s, ptr %385, i32 0, i32 6
  %387 = load ptr, ptr %386, align 8, !tbaa !41
  store ptr %387, ptr %7, align 8, !tbaa !5
  br label %388

388:                                              ; preds = %383, %382
  %389 = load ptr, ptr %4, align 8, !tbaa !5
  %390 = getelementptr inbounds %struct.png_struct_def, ptr %389, i32 0, i32 18
  store i32 0, ptr %390, align 8, !tbaa !40
  store i32 0, ptr %9, align 4
  br label %391

391:                                              ; preds = %388, %380
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 1024, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 132, ptr %13) #6
  %392 = load i32, ptr %9, align 4
  switch i32 %392, label %404 [
    i32 0, label %393
  ]

393:                                              ; preds = %391
  br label %399

394:                                              ; preds = %125
  %395 = load ptr, ptr %4, align 8, !tbaa !5
  %396 = getelementptr inbounds %struct.png_struct_def, ptr %395, i32 0, i32 19
  %397 = getelementptr inbounds %struct.z_stream_s, ptr %396, i32 0, i32 6
  %398 = load ptr, ptr %397, align 8, !tbaa !41
  store ptr %398, ptr %7, align 8, !tbaa !5
  br label %399

399:                                              ; preds = %394, %393
  br label %401

400:                                              ; preds = %117, %112
  store ptr @.str.18, ptr %7, align 8, !tbaa !5
  br label %401

401:                                              ; preds = %400, %399
  br label %403

402:                                              ; preds = %109, %106
  store ptr @.str.19, ptr %7, align 8, !tbaa !5
  br label %403

403:                                              ; preds = %402, %401
  store i32 0, ptr %9, align 4
  br label %404

404:                                              ; preds = %403, %391, %81
  call void @llvm.lifetime.end.p0(i64 81, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  %405 = load i32, ptr %9, align 4
  switch i32 %405, label %431 [
    i32 0, label %406
  ]

406:                                              ; preds = %404
  br label %408

407:                                              ; preds = %58
  store ptr @.str.14, ptr %7, align 8, !tbaa !5
  br label %408

408:                                              ; preds = %407, %406
  %409 = load i32, ptr %8, align 4, !tbaa !9
  %410 = icmp eq i32 %409, 0
  br i1 %410, label %411, label %415

411:                                              ; preds = %408
  %412 = load ptr, ptr %4, align 8, !tbaa !5
  %413 = load i32, ptr %6, align 4, !tbaa !9
  %414 = call i32 @png_crc_finish(ptr noundef %412, i32 noundef %413)
  br label %415

415:                                              ; preds = %411, %408
  %416 = load ptr, ptr %4, align 8, !tbaa !5
  %417 = getelementptr inbounds %struct.png_struct_def, ptr %416, i32 0, i32 144
  %418 = getelementptr inbounds %struct.png_colorspace, ptr %417, i32 0, i32 4
  %419 = load i16, ptr %418, align 2, !tbaa !22
  %420 = zext i16 %419 to i32
  %421 = or i32 %420, 32768
  %422 = trunc i32 %421 to i16
  store i16 %422, ptr %418, align 2, !tbaa !22
  %423 = load ptr, ptr %4, align 8, !tbaa !5
  %424 = load ptr, ptr %5, align 8, !tbaa !5
  call void @png_colorspace_sync(ptr noundef %423, ptr noundef %424)
  %425 = load ptr, ptr %7, align 8, !tbaa !5
  %426 = icmp ne ptr %425, null
  br i1 %426, label %427, label %430

427:                                              ; preds = %415
  %428 = load ptr, ptr %4, align 8, !tbaa !5
  %429 = load ptr, ptr %7, align 8, !tbaa !5
  call void @png_chunk_benign_error(ptr noundef %428, ptr noundef %429)
  br label %430

430:                                              ; preds = %427, %415
  store i32 0, ptr %9, align 4
  br label %431

431:                                              ; preds = %430, %404, %54, %41, %32
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  %432 = load i32, ptr %9, align 4
  switch i32 %432, label %434 [
    i32 0, label %433
    i32 1, label %433
  ]

433:                                              ; preds = %431, %431
  ret void

434:                                              ; preds = %431
  unreachable
}

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

; 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) #5

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: write) }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind }
attributes #7 = { 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, !13, i64 576, !10, i64 584, !10, i64 588, !6, i64 592, !15, i64 600, !10, i64 604, !15, i64 608, !7, i64 610, !7, i64 611, !7, i64 612, !7, i64 613, !7, i64 614, !7, i64 615, !7, i64 616, !7, i64 617, !7, i64 618, !7, i64 619, !7, i64 620, !7, i64 621, !7, i64 622, !7, i64 623, !7, i64 624, !15, i64 626, !7, i64 628, !10, i64 632, !16, i64 636, !16, i64 646, !6, i64 656, !10, i64 664, !10, i64 668, !10, i64 672, !10, i64 676, !6, i64 680, !6, i64 688, !6, i64 696, !6, i64 704, !6, i64 712, !6, i64 720, !17, i64 728, !17, i64 733, !6, i64 744, !16, i64 752, !6, i64 768, !6, i64 776, !6, i64 784, !6, i64 792, !6, i64 800, !6, i64 808, !6, i64 816, !6, i64 824, !6, i64 832, !10, i64 840, !10, i64 844, !13, i64 848, !13, i64 856, !13, i64 864, !13, i64 872, !10, i64 880, !10, i64 884, !6, i64 888, !6, i64 896, !10, i64 904, !7, i64 908, !10, i64 940, !6, i64 944, !6, i64 952, !10, i64 960, !10, i64 964, !6, i64 968, !7, i64 976, !7, i64 977, !15, i64 978, !15, i64 980, !10, i64 984, !7, i64 988, !6, i64 992, !6, i64 1000, !6, i64 1008, !6, i64 1016, !6, i64 1024, !6, i64 1032, !6, i64 1040, !7, i64 1048, !10, i64 1052, !10, i64 1056, !10, i64 1060, !13, i64 1064, !18, i64 1072, !13, i64 1104, !6, i64 1112, !13, i64 1120, !10, i64 1128, !10, i64 1132, !6, i64 1136, !7, i64 1144, !19, i64 1176}
!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 1250}
!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 615}
!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, !10, i64 236, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !10, i64 272, !10, i64 276, !6, i64 280, !6, i64 288, !7, i64 296, !7, i64 297, !10, i64 300, !6, i64 304, !10, i64 312, !6, i64 320, !10, i64 328, !7, i64 332, !6, i64 336, !6, i64 344, !6, i64 352}
!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 1112}
!38 = !{!33, !10, i64 300}
!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.5 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [14 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.7) #7
  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.5) #8
  br label %169

18:                                               ; preds = %14
  %19 = icmp ult i32 %2, 14
  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.15) #8
  br label %169

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

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

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

31:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 81, ptr nonnull %5) #8
  %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
  %33 = icmp ult i32 %32, 11
  br i1 %33, label %.thread172, label %.preheader

.preheader:                                       ; preds = %31
  %invariant.umin = call i32 @llvm.umin.i32(i32 %2, i32 80)
  %wide.trip.count = zext nneg i32 %invariant.umin to i64
  br label %35

.thread172:                                       ; preds = %31
  %34 = call i32 @png_crc_finish(ptr noundef nonnull %0, i32 noundef %32)
  call void @png_chunk_benign_error(ptr noundef nonnull %0, ptr noundef nonnull @.str.15) #8
  call void @llvm.lifetime.end.p0(i64 81, ptr nonnull %5) #8
  br label %169

35:                                               ; preds = %.preheader, %38
  %indvars.iv = phi i64 [ 0, %.preheader ], [ %indvars.iv.next, %38 ]
  %36 = getelementptr inbounds [81 x i8], ptr %5, i64 0, i64 %indvars.iv
  %37 = load i8, ptr %36, align 1, !tbaa !22
  %.not133 = icmp eq i8 %37, 0
  br i1 %.not133, label %.critedge.split.loop.exit195, label %38

38:                                               ; preds = %35
  %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 %35, !llvm.loop !23

.critedge.split.loop.exit195:                     ; preds = %35
  %39 = trunc nuw nsw i64 %indvars.iv to i32
  br label %.critedge

.critedge:                                        ; preds = %38, %.critedge.split.loop.exit195
  %.0121.lcssa = phi i32 [ %39, %.critedge.split.loop.exit195 ], [ %invariant.umin, %38 ]
  %40 = add nsw i32 %.0121.lcssa, -1
  %or.cond = icmp ult i32 %40, 79
  br i1 %or.cond, label %41, label %.thread168

41:                                               ; preds = %.critedge
  %42 = add nuw nsw i32 %.0121.lcssa, 1
  %43 = icmp ult i32 %42, %spec.select
  br i1 %43, label %44, label %.thread168

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

49:                                               ; preds = %44
  %50 = call i32 @png_inflate_claim(ptr noundef %0, i32 noundef 1766015824)
  %51 = icmp eq i32 %50, 0
  br i1 %51, label %52, label %152

52:                                               ; preds = %49
  %53 = add nuw nsw i32 %.0121.lcssa, 2
  %54 = sub nsw i32 %spec.select, %53
  call void @llvm.lifetime.start.p0(i64 132, ptr nonnull %6) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(132) %6, i8 0, i64 132, i1 false)
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  store i64 132, ptr %8, align 8, !tbaa !25
  %55 = zext nneg i32 %53 to i64
  %56 = getelementptr inbounds i8, ptr %5, i64 %55
  %57 = getelementptr inbounds i8, ptr %0, i64 320
  store ptr %56, ptr %57, align 8, !tbaa !26
  %58 = getelementptr inbounds i8, ptr %0, i64 328
  store i32 %54, ptr %58, align 8, !tbaa !27
  %59 = 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)
  %60 = load i64, ptr %8, align 8, !tbaa !25
  %61 = icmp eq i64 %60, 0
  br i1 %61, label %62, label %.thread186

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

81:                                               ; preds = %62
  %82 = getelementptr inbounds i8, ptr %0, i64 615
  %83 = load i8, ptr %82, align 1, !tbaa !28
  %84 = zext i8 %83 to i32
  %85 = call i32 @png_icc_check_header(ptr noundef nonnull %0, ptr noundef nonnull %23, ptr noundef nonnull %5, i32 noundef %79, ptr noundef nonnull %6, i32 noundef %84) #8
  %.not135 = icmp eq i32 %85, 0
  br i1 %.not135, label %.thread190, label %86

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

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

114:                                              ; preds = %97
  %115 = call i32 @png_icc_check_tag_table(ptr noundef nonnull %0, ptr noundef nonnull %23, ptr noundef nonnull %5, i32 noundef %79, ptr noundef nonnull %96) #8
  %.not137 = icmp eq i32 %115, 0
  br i1 %.not137, label %.thread190, label %116

116:                                              ; preds = %114
  %117 = add nsw i64 %95, -132
  %118 = sub nsw i64 %117, %109
  store i64 %118, ptr %8, align 8, !tbaa !25
  %119 = getelementptr inbounds i8, ptr %110, i64 %109
  %120 = call i32 @png_inflate_read(ptr noundef nonnull %0, ptr noundef nonnull %7, i32 noundef 1024, ptr noundef nonnull %4, ptr noundef nonnull %119, ptr noundef nonnull %8, i32 noundef 1)
  %121 = load i32, ptr %4, align 4, !tbaa !5
  %.not138 = icmp eq i32 %121, 0
  br i1 %.not138, label %126, label %122

122:                                              ; preds = %116
  %123 = getelementptr inbounds i8, ptr %0, i64 304
  %124 = load i32, ptr %123, align 8, !tbaa !29
  %125 = and i32 %124, 1048576
  %.not139 = icmp eq i32 %125, 0
  br i1 %.not139, label %.thread190, label %.thread

126:                                              ; preds = %116
  %127 = load i64, ptr %8, align 8, !tbaa !25
  %128 = icmp eq i64 %127, 0
  br i1 %128, label %132, label %.thread190.sink.split

.thread:                                          ; preds = %122
  %129 = load i64, ptr %8, align 8, !tbaa !25
  %130 = icmp eq i64 %129, 0
  br i1 %130, label %131, label %.thread190.sink.split

131:                                              ; preds = %.thread
  call void @png_chunk_warning(ptr noundef nonnull %0, ptr noundef nonnull @.str.16) #8
  %.pre = load i32, ptr %4, align 4, !tbaa !5
  br label %132

132:                                              ; preds = %126, %131
  %133 = phi i32 [ 0, %126 ], [ %.pre, %131 ]
  %134 = call i32 @png_crc_finish(ptr noundef nonnull %0, i32 noundef %133)
  %135 = getelementptr inbounds i8, ptr %0, i64 416
  %136 = load i64, ptr %135, align 8, !tbaa !30
  call void @png_icc_set_sRGB(ptr noundef nonnull %0, ptr noundef nonnull %23, ptr noundef nonnull %96, i64 noundef %136) #8
  %.not141 = icmp eq ptr %1, null
  br i1 %.not141, label %.thread152, label %137

137:                                              ; preds = %132
  call void @png_free_data(ptr noundef nonnull %0, ptr noundef nonnull %1, i32 noundef 16, i32 noundef 0) #8
  %138 = call noalias ptr @png_malloc_base(ptr noundef nonnull %0, i64 noundef %45) #8
  %139 = getelementptr inbounds i8, ptr %1, i64 128
  store ptr %138, ptr %139, align 8, !tbaa !31
  %.not142 = icmp eq ptr %138, null
  br i1 %.not142, label %159, label %.thread154

.thread154:                                       ; preds = %137
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(1) %138, ptr noundef nonnull align 16 dereferenceable(1) %5, i64 %45, i1 false)
  %140 = getelementptr inbounds i8, ptr %1, i64 144
  store i32 %79, ptr %140, align 8, !tbaa !34
  %141 = getelementptr inbounds i8, ptr %1, i64 136
  store ptr %96, ptr %141, align 8, !tbaa !35
  %142 = getelementptr inbounds i8, ptr %0, i64 1112
  store ptr null, ptr %142, align 8, !tbaa !36
  %143 = getelementptr inbounds i8, ptr %1, i64 300
  %144 = load i32, ptr %143, align 4, !tbaa !37
  %145 = or i32 %144, 16
  store i32 %145, ptr %143, align 4, !tbaa !37
  %146 = getelementptr inbounds i8, ptr %1, i64 8
  %147 = load i32, ptr %146, align 8, !tbaa !38
  %148 = or i32 %147, 4096
  store i32 %148, ptr %146, align 8, !tbaa !38
  call void @png_colorspace_sync(ptr noundef nonnull %0, ptr noundef nonnull %1) #8
  br label %.thread152

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

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

.thread168:                                       ; preds = %.critedge, %41, %44, %152
  %.9.ph = phi ptr [ @.str.19, %.critedge ], [ @.str.18, %41 ], [ @.str.18, %44 ], [ %154, %152 ]
  call void @llvm.lifetime.end.p0(i64 81, ptr nonnull %5) #8
  br label %.thread181

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

.thread190.sink.split:                            ; preds = %97, %.thread, %126
  %156 = getelementptr inbounds i8, ptr %0, i64 368
  %157 = load ptr, ptr %156, align 8, !tbaa !39
  br label %.thread190

.thread190:                                       ; preds = %.thread190.sink.split, %122, %86, %114, %62, %81
  %.5.ph.ph = phi ptr [ null, %81 ], [ null, %62 ], [ null, %114 ], [ @.str.17, %86 ], [ @.str.16, %122 ], [ %157, %.thread190.sink.split ]
  %158 = getelementptr inbounds i8, ptr %0, i64 312
  store i32 0, ptr %158, align 8, !tbaa !40
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 132, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 81, ptr nonnull %5) #8
  br label %.thread181

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

.thread181:                                       ; preds = %.thread168, %28, %.thread190, %.thread186
  %.10185 = phi ptr [ %150, %.thread186 ], [ %.5.ph.ph, %.thread190 ], [ %.9.ph, %.thread168 ], [ @.str.14, %28 ]
  %163 = load i32, ptr %4, align 4, !tbaa !5
  %164 = call i32 @png_crc_finish(ptr noundef %0, i32 noundef %163)
  br label %165

165:                                              ; preds = %159, %.thread181
  %.10184 = phi ptr [ %.10185, %.thread181 ], [ @.str.17, %159 ]
  %166 = load i16, ptr %24, align 2, !tbaa !21
  %167 = or i16 %166, -32768
  store i16 %167, ptr %24, align 2, !tbaa !21
  call void @png_colorspace_sync(ptr noundef %0, ptr noundef %1) #8
  %.not143 = icmp eq ptr %.10184, null
  br i1 %.not143, label %169, label %168

168:                                              ; preds = %165
  call void @png_chunk_benign_error(ptr noundef nonnull %0, ptr noundef nonnull %.10184) #8
  br label %169

169:                                              ; preds = %.thread152, %.thread172, %165, %168, %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: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

; 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) #5

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) #6

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: write) }
attributes #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { noreturn nounwind }
attributes #8 = { 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, !12, i64 576, !6, i64 584, !6, i64 588, !11, i64 592, !14, i64 600, !6, i64 604, !14, i64 608, !7, i64 610, !7, i64 611, !7, i64 612, !7, i64 613, !7, i64 614, !7, i64 615, !7, i64 616, !7, i64 617, !7, i64 618, !7, i64 619, !7, i64 620, !7, i64 621, !7, i64 622, !7, i64 623, !7, i64 624, !14, i64 626, !7, i64 628, !6, i64 632, !15, i64 636, !15, i64 646, !11, i64 656, !6, i64 664, !6, i64 668, !6, i64 672, !6, i64 676, !11, i64 680, !11, i64 688, !11, i64 696, !11, i64 704, !11, i64 712, !11, i64 720, !16, i64 728, !16, i64 733, !11, i64 744, !15, i64 752, !11, i64 768, !11, i64 776, !11, i64 784, !11, i64 792, !11, i64 800, !11, i64 808, !11, i64 816, !11, i64 824, !11, i64 832, !6, i64 840, !6, i64 844, !12, i64 848, !12, i64 856, !12, i64 864, !12, i64 872, !6, i64 880, !6, i64 884, !11, i64 888, !11, i64 896, !6, i64 904, !7, i64 908, !6, i64 940, !11, i64 944, !11, i64 952, !6, i64 960, !6, i64 964, !11, i64 968, !7, i64 976, !7, i64 977, !14, i64 978, !14, i64 980, !6, i64 984, !7, i64 988, !11, i64 992, !11, i64 1000, !11, i64 1008, !11, i64 1016, !11, i64 1024, !11, i64 1032, !11, i64 1040, !7, i64 1048, !6, i64 1052, !6, i64 1056, !6, i64 1060, !12, i64 1064, !17, i64 1072, !12, i64 1104, !11, i64 1112, !12, i64 1120, !6, i64 1128, !6, i64 1132, !11, i64 1136, !7, i64 1144, !18, i64 1176}
!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 1250}
!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 615}
!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, !6, i64 236, !11, i64 240, !11, i64 248, !11, i64 256, !11, i64 264, !6, i64 272, !6, i64 276, !11, i64 280, !11, i64 288, !7, i64 296, !7, i64 297, !6, i64 300, !11, i64 304, !6, i64 312, !11, i64 320, !6, i64 328, !7, i64 332, !11, i64 336, !11, i64 344, !11, i64 352}
!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 1112}
!37 = !{!32, !6, i64 300}
!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