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

@.str.7 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [21 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

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

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

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

declare i32 @png_set_text_2(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #3

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

; Function Attrs: nounwind uwtable
define dso_local void @png_handle_iTXt(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 ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %15 = alloca %struct.png_text_struct, 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) #4
  store ptr null, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.png_struct_def, ptr %16, i32 0, i32 134
  %18 = load i32, ptr %17, align 4, !tbaa !11
  %19 = icmp ne i32 %18, 0
  br i1 %19, label %20, label %41

20:                                               ; preds = %3
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.png_struct_def, ptr %21, i32 0, i32 134
  %23 = load i32, ptr %22, align 4, !tbaa !11
  %24 = icmp eq i32 %23, 1
  br i1 %24, label %25, label %29

25:                                               ; preds = %20
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = load i32, ptr %6, align 4, !tbaa !9
  %28 = call i32 @png_crc_finish(ptr noundef %26, i32 noundef %27)
  store i32 1, ptr %10, align 4
  br label %285

29:                                               ; preds = %20
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.png_struct_def, ptr %30, i32 0, i32 134
  %32 = load i32, ptr %31, align 4, !tbaa !11
  %33 = add i32 %32, -1
  store i32 %33, ptr %31, align 4, !tbaa !11
  %34 = icmp eq i32 %33, 1
  br i1 %34, label %35, label %40

35:                                               ; preds = %29
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = load i32, ptr %6, align 4, !tbaa !9
  %38 = call i32 @png_crc_finish(ptr noundef %36, i32 noundef %37)
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_chunk_benign_error(ptr noundef %39, ptr noundef @.str.38)
  store i32 1, ptr %10, align 4
  br label %285

40:                                               ; preds = %29
  br label %41

41:                                               ; preds = %40, %3
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.png_struct_def, ptr %42, i32 0, i32 15
  %44 = load i32, ptr %43, align 4, !tbaa !22
  %45 = and i32 %44, 1
  %46 = icmp eq i32 %45, 0
  br i1 %46, label %47, label %49

47:                                               ; preds = %41
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_chunk_error(ptr noundef %48, ptr noundef @.str.7) #5
  unreachable

49:                                               ; preds = %41
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.png_struct_def, ptr %50, i32 0, i32 15
  %52 = load i32, ptr %51, align 4, !tbaa !22
  %53 = and i32 %52, 4
  %54 = icmp ne i32 %53, 0
  br i1 %54, label %55, label %60

55:                                               ; preds = %49
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.png_struct_def, ptr %56, i32 0, i32 15
  %58 = load i32, ptr %57, align 4, !tbaa !22
  %59 = or i32 %58, 8
  store i32 %59, ptr %57, align 4, !tbaa !22
  br label %60

60:                                               ; preds = %55, %49
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = load i32, ptr %6, align 4, !tbaa !9
  %63 = add i32 %62, 1
  %64 = zext i32 %63 to i64
  %65 = call ptr @png_read_buffer(ptr noundef %61, i64 noundef %64, i32 noundef 1)
  store ptr %65, ptr %8, align 8, !tbaa !5
  %66 = load ptr, ptr %8, align 8, !tbaa !5
  %67 = icmp eq ptr %66, null
  br i1 %67, label %68, label %73

68:                                               ; preds = %60
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = load i32, ptr %6, align 4, !tbaa !9
  %71 = call i32 @png_crc_finish(ptr noundef %69, i32 noundef %70)
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_chunk_benign_error(ptr noundef %72, ptr noundef @.str.17)
  store i32 1, ptr %10, align 4
  br label %285

73:                                               ; preds = %60
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  %76 = load i32, ptr %6, align 4, !tbaa !9
  call void @png_crc_read(ptr noundef %74, ptr noundef %75, i32 noundef %76)
  %77 = load ptr, ptr %4, align 8, !tbaa !5
  %78 = call i32 @png_crc_finish(ptr noundef %77, i32 noundef 0)
  %79 = icmp ne i32 %78, 0
  br i1 %79, label %80, label %81

80:                                               ; preds = %73
  store i32 1, ptr %10, align 4
  br label %285

81:                                               ; preds = %73
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %82

82:                                               ; preds = %97, %81
  %83 = load i32, ptr %9, align 4, !tbaa !9
  %84 = load i32, ptr %6, align 4, !tbaa !9
  %85 = icmp ult i32 %83, %84
  br i1 %85, label %86, label %94

86:                                               ; preds = %82
  %87 = load ptr, ptr %8, align 8, !tbaa !5
  %88 = load i32, ptr %9, align 4, !tbaa !9
  %89 = zext i32 %88 to i64
  %90 = getelementptr inbounds i8, ptr %87, i64 %89
  %91 = load i8, ptr %90, align 1, !tbaa !23
  %92 = zext i8 %91 to i32
  %93 = icmp ne i32 %92, 0
  br label %94

94:                                               ; preds = %86, %82
  %95 = phi i1 [ false, %82 ], [ %93, %86 ]
  br i1 %95, label %96, label %100

96:                                               ; preds = %94
  br label %97

97:                                               ; preds = %96
  %98 = load i32, ptr %9, align 4, !tbaa !9
  %99 = add i32 %98, 1
  store i32 %99, ptr %9, align 4, !tbaa !9
  br label %82, !llvm.loop !24

100:                                              ; preds = %94
  %101 = load i32, ptr %9, align 4, !tbaa !9
  %102 = icmp ugt i32 %101, 79
  br i1 %102, label %106, label %103

103:                                              ; preds = %100
  %104 = load i32, ptr %9, align 4, !tbaa !9
  %105 = icmp ult i32 %104, 1
  br i1 %105, label %106, label %107

106:                                              ; preds = %103, %100
  store ptr @.str.19, ptr %7, align 8, !tbaa !5
  br label %278

107:                                              ; preds = %103
  %108 = load i32, ptr %9, align 4, !tbaa !9
  %109 = add i32 %108, 5
  %110 = load i32, ptr %6, align 4, !tbaa !9
  %111 = icmp ugt i32 %109, %110
  br i1 %111, label %112, label %113

112:                                              ; preds = %107
  store ptr @.str.40, ptr %7, align 8, !tbaa !5
  br label %277

113:                                              ; preds = %107
  %114 = load ptr, ptr %8, align 8, !tbaa !5
  %115 = load i32, ptr %9, align 4, !tbaa !9
  %116 = add i32 %115, 1
  %117 = zext i32 %116 to i64
  %118 = getelementptr inbounds i8, ptr %114, i64 %117
  %119 = load i8, ptr %118, align 1, !tbaa !23
  %120 = zext i8 %119 to i32
  %121 = icmp eq i32 %120, 0
  br i1 %121, label %140, label %122

122:                                              ; preds = %113
  %123 = load ptr, ptr %8, align 8, !tbaa !5
  %124 = load i32, ptr %9, align 4, !tbaa !9
  %125 = add i32 %124, 1
  %126 = zext i32 %125 to i64
  %127 = getelementptr inbounds i8, ptr %123, i64 %126
  %128 = load i8, ptr %127, align 1, !tbaa !23
  %129 = zext i8 %128 to i32
  %130 = icmp eq i32 %129, 1
  br i1 %130, label %131, label %275

131:                                              ; preds = %122
  %132 = load ptr, ptr %8, align 8, !tbaa !5
  %133 = load i32, ptr %9, align 4, !tbaa !9
  %134 = add i32 %133, 2
  %135 = zext i32 %134 to i64
  %136 = getelementptr inbounds i8, ptr %132, i64 %135
  %137 = load i8, ptr %136, align 1, !tbaa !23
  %138 = zext i8 %137 to i32
  %139 = icmp eq i32 %138, 0
  br i1 %139, label %140, label %275

140:                                              ; preds = %131, %113
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %141 = load ptr, ptr %8, align 8, !tbaa !5
  %142 = load i32, ptr %9, align 4, !tbaa !9
  %143 = add i32 %142, 1
  %144 = zext i32 %143 to i64
  %145 = getelementptr inbounds i8, ptr %141, i64 %144
  %146 = load i8, ptr %145, align 1, !tbaa !23
  %147 = zext i8 %146 to i32
  %148 = icmp ne i32 %147, 0
  %149 = zext i1 %148 to i32
  store i32 %149, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  store i64 0, ptr %14, align 8, !tbaa !26
  %150 = load i32, ptr %9, align 4, !tbaa !9
  %151 = add i32 %150, 3
  store i32 %151, ptr %9, align 4, !tbaa !9
  %152 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %152, ptr %12, align 4, !tbaa !9
  br label %153

153:                                              ; preds = %168, %140
  %154 = load i32, ptr %9, align 4, !tbaa !9
  %155 = load i32, ptr %6, align 4, !tbaa !9
  %156 = icmp ult i32 %154, %155
  br i1 %156, label %157, label %165

157:                                              ; preds = %153
  %158 = load ptr, ptr %8, align 8, !tbaa !5
  %159 = load i32, ptr %9, align 4, !tbaa !9
  %160 = zext i32 %159 to i64
  %161 = getelementptr inbounds i8, ptr %158, i64 %160
  %162 = load i8, ptr %161, align 1, !tbaa !23
  %163 = zext i8 %162 to i32
  %164 = icmp ne i32 %163, 0
  br label %165

165:                                              ; preds = %157, %153
  %166 = phi i1 [ false, %153 ], [ %164, %157 ]
  br i1 %166, label %167, label %171

167:                                              ; preds = %165
  br label %168

168:                                              ; preds = %167
  %169 = load i32, ptr %9, align 4, !tbaa !9
  %170 = add i32 %169, 1
  store i32 %170, ptr %9, align 4, !tbaa !9
  br label %153, !llvm.loop !27

171:                                              ; preds = %165
  %172 = load i32, ptr %9, align 4, !tbaa !9
  %173 = add i32 %172, 1
  store i32 %173, ptr %9, align 4, !tbaa !9
  store i32 %173, ptr %13, align 4, !tbaa !9
  br label %174

174:                                              ; preds = %189, %171
  %175 = load i32, ptr %9, align 4, !tbaa !9
  %176 = load i32, ptr %6, align 4, !tbaa !9
  %177 = icmp ult i32 %175, %176
  br i1 %177, label %178, label %186

178:                                              ; preds = %174
  %179 = load ptr, ptr %8, align 8, !tbaa !5
  %180 = load i32, ptr %9, align 4, !tbaa !9
  %181 = zext i32 %180 to i64
  %182 = getelementptr inbounds i8, ptr %179, i64 %181
  %183 = load i8, ptr %182, align 1, !tbaa !23
  %184 = zext i8 %183 to i32
  %185 = icmp ne i32 %184, 0
  br label %186

186:                                              ; preds = %178, %174
  %187 = phi i1 [ false, %174 ], [ %185, %178 ]
  br i1 %187, label %188, label %192

188:                                              ; preds = %186
  br label %189

189:                                              ; preds = %188
  %190 = load i32, ptr %9, align 4, !tbaa !9
  %191 = add i32 %190, 1
  store i32 %191, ptr %9, align 4, !tbaa !9
  br label %174, !llvm.loop !28

192:                                              ; preds = %186
  %193 = load i32, ptr %9, align 4, !tbaa !9
  %194 = add i32 %193, 1
  store i32 %194, ptr %9, align 4, !tbaa !9
  %195 = load i32, ptr %11, align 4, !tbaa !9
  %196 = icmp eq i32 %195, 0
  br i1 %196, label %197, label %206

197:                                              ; preds = %192
  %198 = load i32, ptr %9, align 4, !tbaa !9
  %199 = load i32, ptr %6, align 4, !tbaa !9
  %200 = icmp ule i32 %198, %199
  br i1 %200, label %201, label %206

201:                                              ; preds = %197
  %202 = load i32, ptr %6, align 4, !tbaa !9
  %203 = load i32, ptr %9, align 4, !tbaa !9
  %204 = sub i32 %202, %203
  %205 = zext i32 %204 to i64
  store i64 %205, ptr %14, align 8, !tbaa !26
  br label %231

206:                                              ; preds = %197, %192
  %207 = load i32, ptr %11, align 4, !tbaa !9
  %208 = icmp ne i32 %207, 0
  br i1 %208, label %209, label %229

209:                                              ; preds = %206
  %210 = load i32, ptr %9, align 4, !tbaa !9
  %211 = load i32, ptr %6, align 4, !tbaa !9
  %212 = icmp ult i32 %210, %211
  br i1 %212, label %213, label %229

213:                                              ; preds = %209
  store i64 -1, ptr %14, align 8, !tbaa !26
  %214 = load ptr, ptr %4, align 8, !tbaa !5
  %215 = load i32, ptr %6, align 4, !tbaa !9
  %216 = load i32, ptr %9, align 4, !tbaa !9
  %217 = call i32 @png_decompress_chunk(ptr noundef %214, i32 noundef %215, i32 noundef %216, ptr noundef %14, i32 noundef 1)
  %218 = icmp eq i32 %217, 1
  br i1 %218, label %219, label %223

219:                                              ; preds = %213
  %220 = load ptr, ptr %4, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.png_struct_def, ptr %220, i32 0, i32 138
  %222 = load ptr, ptr %221, align 8, !tbaa !29
  store ptr %222, ptr %8, align 8, !tbaa !5
  br label %228

223:                                              ; preds = %213
  %224 = load ptr, ptr %4, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.png_struct_def, ptr %224, i32 0, i32 19
  %226 = getelementptr inbounds %struct.z_stream_s, ptr %225, i32 0, i32 6
  %227 = load ptr, ptr %226, align 8, !tbaa !30
  store ptr %227, ptr %7, align 8, !tbaa !5
  br label %228

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

229:                                              ; preds = %209, %206
  store ptr @.str.40, ptr %7, align 8, !tbaa !5
  br label %230

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

231:                                              ; preds = %230, %201
  %232 = load ptr, ptr %7, align 8, !tbaa !5
  %233 = icmp eq ptr %232, null
  br i1 %233, label %234, label %274

234:                                              ; preds = %231
  call void @llvm.lifetime.start.p0(i64 56, ptr %15) #4
  %235 = load ptr, ptr %8, align 8, !tbaa !5
  %236 = load i64, ptr %14, align 8, !tbaa !26
  %237 = load i32, ptr %9, align 4, !tbaa !9
  %238 = zext i32 %237 to i64
  %239 = add i64 %236, %238
  %240 = getelementptr inbounds i8, ptr %235, i64 %239
  store i8 0, ptr %240, align 1, !tbaa !23
  %241 = load i32, ptr %11, align 4, !tbaa !9
  %242 = icmp eq i32 %241, 0
  br i1 %242, label %243, label %245

243:                                              ; preds = %234
  %244 = getelementptr inbounds %struct.png_text_struct, ptr %15, i32 0, i32 0
  store i32 1, ptr %244, align 8, !tbaa !31
  br label %247

245:                                              ; preds = %234
  %246 = getelementptr inbounds %struct.png_text_struct, ptr %15, i32 0, i32 0
  store i32 2, ptr %246, align 8, !tbaa !31
  br label %247

247:                                              ; preds = %245, %243
  %248 = load ptr, ptr %8, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.png_text_struct, ptr %15, i32 0, i32 1
  store ptr %248, ptr %249, align 8, !tbaa !33
  %250 = load ptr, ptr %8, align 8, !tbaa !5
  %251 = load i32, ptr %12, align 4, !tbaa !9
  %252 = zext i32 %251 to i64
  %253 = getelementptr inbounds i8, ptr %250, i64 %252
  %254 = getelementptr inbounds %struct.png_text_struct, ptr %15, i32 0, i32 5
  store ptr %253, ptr %254, align 8, !tbaa !34
  %255 = load ptr, ptr %8, align 8, !tbaa !5
  %256 = load i32, ptr %13, align 4, !tbaa !9
  %257 = zext i32 %256 to i64
  %258 = getelementptr inbounds i8, ptr %255, i64 %257
  %259 = getelementptr inbounds %struct.png_text_struct, ptr %15, i32 0, i32 6
  store ptr %258, ptr %259, align 8, !tbaa !35
  %260 = load ptr, ptr %8, align 8, !tbaa !5
  %261 = load i32, ptr %9, align 4, !tbaa !9
  %262 = zext i32 %261 to i64
  %263 = getelementptr inbounds i8, ptr %260, i64 %262
  %264 = getelementptr inbounds %struct.png_text_struct, ptr %15, i32 0, i32 2
  store ptr %263, ptr %264, align 8, !tbaa !36
  %265 = getelementptr inbounds %struct.png_text_struct, ptr %15, i32 0, i32 3
  store i64 0, ptr %265, align 8, !tbaa !37
  %266 = load i64, ptr %14, align 8, !tbaa !26
  %267 = getelementptr inbounds %struct.png_text_struct, ptr %15, i32 0, i32 4
  store i64 %266, ptr %267, align 8, !tbaa !38
  %268 = load ptr, ptr %4, align 8, !tbaa !5
  %269 = load ptr, ptr %5, align 8, !tbaa !5
  %270 = call i32 @png_set_text_2(ptr noundef %268, ptr noundef %269, ptr noundef %15, i32 noundef 1)
  %271 = icmp ne i32 %270, 0
  br i1 %271, label %272, label %273

272:                                              ; preds = %247
  store ptr @.str.43, ptr %7, align 8, !tbaa !5
  br label %273

273:                                              ; preds = %272, %247
  call void @llvm.lifetime.end.p0(i64 56, ptr %15) #4
  br label %274

274:                                              ; preds = %273, %231
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %276

275:                                              ; preds = %131, %122
  store ptr @.str.44, ptr %7, align 8, !tbaa !5
  br label %276

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

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

278:                                              ; preds = %277, %106
  %279 = load ptr, ptr %7, align 8, !tbaa !5
  %280 = icmp ne ptr %279, null
  br i1 %280, label %281, label %284

281:                                              ; preds = %278
  %282 = load ptr, ptr %4, align 8, !tbaa !5
  %283 = load ptr, ptr %7, align 8, !tbaa !5
  call void @png_chunk_benign_error(ptr noundef %282, ptr noundef %283)
  br label %284

284:                                              ; preds = %281, %278
  store i32 0, ptr %10, align 4
  br label %285

285:                                              ; preds = %284, %80, %68, %35, %25
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  %286 = load i32, ptr %10, align 4
  switch i32 %286, label %288 [
    i32 0, label %287
    i32 1, label %287
  ]

287:                                              ; preds = %285, %285
  ret void

288:                                              ; preds = %285
  unreachable
}

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 = { 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { 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 1060}
!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, !10, i64 300}
!23 = !{!7, !7, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!13, !13, i64 0}
!27 = distinct !{!27, !25}
!28 = distinct !{!28, !25}
!29 = !{!12, !6, i64 1112}
!30 = !{!12, !6, i64 368}
!31 = !{!32, !10, i64 0}
!32 = !{!"png_text_struct", !10, i64 0, !6, i64 8, !6, i64 16, !13, i64 24, !13, i64 32, !6, i64 40, !6, i64 48}
!33 = !{!32, !6, i64 8}
!34 = !{!32, !6, i64 40}
!35 = !{!32, !6, i64 48}
!36 = !{!32, !6, i64 16}
!37 = !{!32, !13, i64 24}
!38 = !{!32, !13, i64 32}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.png_text_struct = type { i32, ptr, ptr, i64, i64, ptr, ptr }

@.str.7 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [21 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

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

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

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

declare i32 @png_set_text_2(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

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

; Function Attrs: nounwind uwtable
define dso_local void @png_handle_iTXt(ptr noalias noundef %0, ptr noalias noundef %1, i32 noundef %2) local_unnamed_addr #1 {
  %4 = alloca i64, align 8
  %5 = alloca %struct.png_text_struct, align 8
  %6 = getelementptr inbounds i8, ptr %0, i64 1060
  %7 = load i32, ptr %6, align 4, !tbaa !5
  switch i32 %7, label %10 [
    i32 0, label %15
    i32 1, label %8
  ]

8:                                                ; preds = %3
  %9 = tail call i32 @png_crc_finish(ptr noundef nonnull %0, i32 noundef %2)
  br label %100

10:                                               ; preds = %3
  %11 = add i32 %7, -1
  store i32 %11, ptr %6, align 4, !tbaa !5
  %12 = icmp eq i32 %11, 1
  br i1 %12, label %13, label %15

13:                                               ; preds = %10
  %14 = 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.38) #4
  br label %100

15:                                               ; preds = %3, %10
  %16 = getelementptr inbounds i8, ptr %0, i64 300
  %17 = load i32, ptr %16, align 4, !tbaa !20
  %18 = and i32 %17, 1
  %19 = icmp eq i32 %18, 0
  br i1 %19, label %20, label %21

20:                                               ; preds = %15
  tail call void @png_chunk_error(ptr noundef nonnull %0, ptr noundef nonnull @.str.7) #5
  unreachable

21:                                               ; preds = %15
  %22 = and i32 %17, 4
  %.not96 = icmp eq i32 %22, 0
  br i1 %.not96, label %25, label %23

23:                                               ; preds = %21
  %24 = or i32 %17, 8
  store i32 %24, ptr %16, align 4, !tbaa !20
  br label %25

25:                                               ; preds = %23, %21
  %26 = add i32 %2, 1
  %27 = zext i32 %26 to i64
  %28 = tail call ptr @png_read_buffer(ptr noundef nonnull %0, i64 noundef %27, i32 noundef 1)
  %29 = icmp eq ptr %28, null
  br i1 %29, label %30, label %32

30:                                               ; preds = %25
  %31 = 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.17) #4
  br label %100

32:                                               ; preds = %25
  tail call void @png_crc_read(ptr noundef nonnull %0, ptr noundef nonnull %28, i32 noundef %2)
  %33 = tail call i32 @png_crc_finish(ptr noundef nonnull %0, i32 noundef 0)
  %.not97 = icmp eq i32 %33, 0
  br i1 %.not97, label %.preheader, label %100

.preheader:                                       ; preds = %32
  %.not = icmp eq i32 %2, 0
  br i1 %.not, label %.thread115, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.preheader
  %wide.trip.count = zext i32 %2 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %36
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %36 ]
  %34 = getelementptr inbounds i8, ptr %28, i64 %indvars.iv
  %35 = load i8, ptr %34, align 1, !tbaa !21
  %.not98 = icmp eq i8 %35, 0
  br i1 %.not98, label %.critedge.split.loop.exit, label %36

36:                                               ; preds = %.lr.ph
  %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 %.lr.ph, !llvm.loop !22

.critedge.split.loop.exit:                        ; preds = %.lr.ph
  %37 = trunc nuw i64 %indvars.iv to i32
  br label %.critedge

.critedge:                                        ; preds = %36, %.critedge.split.loop.exit
  %.087.lcssa = phi i32 [ %37, %.critedge.split.loop.exit ], [ %2, %36 ]
  %38 = add i32 %.087.lcssa, -80
  %or.cond = icmp ult i32 %38, -79
  br i1 %or.cond, label %.thread115, label %39

39:                                               ; preds = %.critedge
  %40 = add nuw nsw i32 %.087.lcssa, 5
  %41 = icmp ugt i32 %40, %2
  br i1 %41, label %.thread115, label %42

42:                                               ; preds = %39
  %43 = zext nneg i32 %.087.lcssa to i64
  %44 = getelementptr inbounds i8, ptr %28, i64 %43
  %45 = getelementptr inbounds i8, ptr %44, i64 1
  %46 = load i8, ptr %45, align 1, !tbaa !21
  switch i8 %46, label %.thread115 [
    i8 0, label %51
    i8 1, label %47
  ]

47:                                               ; preds = %42
  %48 = getelementptr inbounds i8, ptr %44, i64 2
  %49 = load i8, ptr %48, align 1, !tbaa !21
  %50 = icmp eq i8 %49, 0
  br i1 %50, label %51, label %.thread115

51:                                               ; preds = %42, %47
  %.not101 = icmp ne i8 %46, 0
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  %52 = add nuw nsw i32 %.087.lcssa, 3
  %53 = icmp ult i32 %52, %2
  br i1 %53, label %.lr.ph127.preheader, label %.critedge3

.lr.ph127.preheader:                              ; preds = %51
  %54 = zext nneg i32 %52 to i64
  br label %.lr.ph127

.lr.ph127:                                        ; preds = %.lr.ph127.preheader, %57
  %indvars.iv137 = phi i64 [ %54, %.lr.ph127.preheader ], [ %indvars.iv.next138, %57 ]
  %55 = getelementptr inbounds i8, ptr %28, i64 %indvars.iv137
  %56 = load i8, ptr %55, align 1, !tbaa !21
  %.not99 = icmp eq i8 %56, 0
  br i1 %.not99, label %.critedge3.loopexit.split.loop.exit150, label %57

57:                                               ; preds = %.lr.ph127
  %indvars.iv.next138 = add nuw nsw i64 %indvars.iv137, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next138 to i32
  %exitcond140.not = icmp eq i32 %lftr.wideiv, %2
  br i1 %exitcond140.not, label %.critedge3, label %.lr.ph127, !llvm.loop !24

.critedge3.loopexit.split.loop.exit150:           ; preds = %.lr.ph127
  %58 = trunc nuw i64 %indvars.iv137 to i32
  br label %.critedge3

.critedge3:                                       ; preds = %57, %.critedge3.loopexit.split.loop.exit150, %51
  %.188.lcssa = phi i32 [ %52, %51 ], [ %58, %.critedge3.loopexit.split.loop.exit150 ], [ %2, %57 ]
  %59 = add i32 %.188.lcssa, 1
  %60 = icmp ult i32 %59, %2
  br i1 %60, label %.lr.ph132.preheader, label %.critedge5

.lr.ph132.preheader:                              ; preds = %.critedge3
  %61 = zext i32 %59 to i64
  br label %.lr.ph132

.lr.ph132:                                        ; preds = %.lr.ph132.preheader, %64
  %indvars.iv141 = phi i64 [ %61, %.lr.ph132.preheader ], [ %indvars.iv.next142, %64 ]
  %62 = getelementptr inbounds i8, ptr %28, i64 %indvars.iv141
  %63 = load i8, ptr %62, align 1, !tbaa !21
  %.not100 = icmp eq i8 %63, 0
  br i1 %.not100, label %.critedge5.loopexit.split.loop.exit152, label %64

64:                                               ; preds = %.lr.ph132
  %indvars.iv.next142 = add nuw nsw i64 %indvars.iv141, 1
  %lftr.wideiv144 = trunc i64 %indvars.iv.next142 to i32
  %exitcond145.not = icmp eq i32 %lftr.wideiv144, %2
  br i1 %exitcond145.not, label %.critedge5, label %.lr.ph132, !llvm.loop !25

.critedge5.loopexit.split.loop.exit152:           ; preds = %.lr.ph132
  %65 = trunc nuw i64 %indvars.iv141 to i32
  br label %.critedge5

.critedge5:                                       ; preds = %64, %.critedge5.loopexit.split.loop.exit152, %.critedge3
  %.289.lcssa = phi i32 [ %59, %.critedge3 ], [ %65, %.critedge5.loopexit.split.loop.exit152 ], [ %2, %64 ]
  %66 = add i32 %.289.lcssa, 1
  %.not102 = icmp ugt i32 %66, %2
  %or.cond105 = or i1 %.not101, %.not102
  br i1 %or.cond105, label %70, label %67

67:                                               ; preds = %.critedge5
  %68 = sub i32 %2, %66
  %69 = zext i32 %68 to i64
  store i64 %69, ptr %4, align 8, !tbaa !26
  br label %.thread

70:                                               ; preds = %.critedge5
  %71 = icmp ult i32 %66, %2
  %or.cond107 = and i1 %.not101, %71
  br i1 %or.cond107, label %72, label %.thread120

72:                                               ; preds = %70
  store i64 -1, ptr %4, align 8, !tbaa !26
  %73 = call i32 @png_decompress_chunk(ptr noundef %0, i32 noundef %2, i32 noundef %66, ptr noundef nonnull %4, i32 noundef 1)
  %74 = icmp eq i32 %73, 1
  br i1 %74, label %75, label %78

75:                                               ; preds = %72
  %76 = getelementptr inbounds i8, ptr %0, i64 1112
  %77 = load ptr, ptr %76, align 8, !tbaa !27
  br label %.thread

78:                                               ; preds = %72
  %79 = getelementptr inbounds i8, ptr %0, i64 368
  %80 = load ptr, ptr %79, align 8, !tbaa !28
  %81 = icmp eq ptr %80, null
  br i1 %81, label %.thread, label %.thread120

.thread:                                          ; preds = %75, %67, %78
  %.086110 = phi ptr [ %28, %78 ], [ %77, %75 ], [ %28, %67 ]
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %5) #4
  %82 = load i64, ptr %4, align 8, !tbaa !26
  %83 = zext i32 %66 to i64
  %84 = add i64 %82, %83
  %85 = getelementptr inbounds i8, ptr %.086110, i64 %84
  store i8 0, ptr %85, align 1, !tbaa !21
  %. = select i1 %.not101, i32 2, i32 1
  store i32 %., ptr %5, align 8, !tbaa !29
  %86 = getelementptr inbounds i8, ptr %5, i64 8
  store ptr %.086110, ptr %86, align 8, !tbaa !31
  %87 = zext nneg i32 %52 to i64
  %88 = getelementptr inbounds i8, ptr %.086110, i64 %87
  %89 = getelementptr inbounds i8, ptr %5, i64 40
  store ptr %88, ptr %89, align 8, !tbaa !32
  %90 = zext i32 %59 to i64
  %91 = getelementptr inbounds i8, ptr %.086110, i64 %90
  %92 = getelementptr inbounds i8, ptr %5, i64 48
  store ptr %91, ptr %92, align 8, !tbaa !33
  %93 = getelementptr inbounds i8, ptr %.086110, i64 %83
  %94 = getelementptr inbounds i8, ptr %5, i64 16
  store ptr %93, ptr %94, align 8, !tbaa !34
  %95 = getelementptr inbounds i8, ptr %5, i64 24
  store i64 0, ptr %95, align 8, !tbaa !35
  %96 = load i64, ptr %4, align 8, !tbaa !26
  %97 = getelementptr inbounds i8, ptr %5, i64 32
  store i64 %96, ptr %97, align 8, !tbaa !36
  %98 = call i32 @png_set_text_2(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %5, i32 noundef 1) #4
  %.not103 = icmp eq i32 %98, 0
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %5) #4
  br i1 %.not103, label %99, label %.thread120

.thread120:                                       ; preds = %.thread, %78, %70
  %.2.ph = phi ptr [ %80, %78 ], [ @.str.43, %.thread ], [ @.str.40, %70 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  br label %.thread115

99:                                               ; preds = %.thread
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  br label %100

.thread115:                                       ; preds = %.preheader, %47, %42, %39, %.critedge, %.thread120
  %.3118 = phi ptr [ %.2.ph, %.thread120 ], [ @.str.44, %47 ], [ @.str.44, %42 ], [ @.str.40, %39 ], [ @.str.19, %.critedge ], [ @.str.19, %.preheader ]
  call void @png_chunk_benign_error(ptr noundef %0, ptr noundef nonnull %.3118) #4
  br label %100

100:                                              ; preds = %99, %.thread115, %32, %30, %13, %8
  ret void
}

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


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