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

; 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_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_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_time_struct = type { i16, i8, i8, i8, i8, i8 }
%struct.png_color_8_struct = type { i8, i8, i8, i8, i8 }
%struct.png_color_16_struct = type { i8, i16, i16, i16, i16 }
%struct.png_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_unknown_chunk_t = type { [5 x i8], ptr, i64, i8 }
%struct.png_sPLT_struct = type { ptr, i8, ptr, i32 }
%struct.png_text_struct = type { i32, ptr, ptr, i64, i64, ptr, ptr }

@.str.2 = external hidden unnamed_addr constant [43 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @png_write_info_before_PLTE(ptr noalias noundef, ptr noalias noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @write_unknown_chunks(ptr noalias noundef, ptr noalias noundef, i32 noundef) #0

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

11:                                               ; preds = %2
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  %13 = icmp eq ptr %12, null
  br i1 %13, label %14, label %15

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

15:                                               ; preds = %11
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_write_info_before_PLTE(ptr noundef %16, ptr noundef %17)
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.png_info_def, ptr %18, i32 0, i32 2
  %20 = load i32, ptr %19, align 8, !tbaa !9
  %21 = and i32 %20, 8
  %22 = icmp ne i32 %21, 0
  br i1 %22, label %23, label %32

23:                                               ; preds = %15
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.png_info_def, ptr %25, i32 0, i32 4
  %27 = load ptr, ptr %26, align 8, !tbaa !20
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.png_info_def, ptr %28, i32 0, i32 5
  %30 = load i16, ptr %29, align 8, !tbaa !21
  %31 = zext i16 %30 to i32
  call void @png_write_PLTE(ptr noundef %24, ptr noundef %27, i32 noundef %31)
  br label %41

32:                                               ; preds = %15
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.png_info_def, ptr %33, i32 0, i32 8
  %35 = load i8, ptr %34, align 1, !tbaa !22
  %36 = zext i8 %35 to i32
  %37 = icmp eq i32 %36, 3
  br i1 %37, label %38, label %40

38:                                               ; preds = %32
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  call void @png_error(ptr noundef %39, ptr noundef @.str.2) #5
  unreachable

40:                                               ; preds = %32
  br label %41

41:                                               ; preds = %40, %23
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.png_info_def, ptr %42, i32 0, i32 2
  %44 = load i32, ptr %43, align 8, !tbaa !9
  %45 = and i32 %44, 16
  %46 = icmp ne i32 %45, 0
  br i1 %46, label %47, label %108

47:                                               ; preds = %41
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.png_struct_def, ptr %48, i32 0, i32 17
  %50 = load i32, ptr %49, align 4, !tbaa !23
  %51 = and i32 %50, 524288
  %52 = icmp ne i32 %51, 0
  br i1 %52, label %53, label %93

53:                                               ; preds = %47
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.png_info_def, ptr %54, i32 0, i32 8
  %56 = load i8, ptr %55, align 1, !tbaa !22
  %57 = zext i8 %56 to i32
  %58 = icmp eq i32 %57, 3
  br i1 %58, label %59, label %93

59:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.png_info_def, ptr %60, i32 0, i32 6
  %62 = load i16, ptr %61, align 2, !tbaa !27
  %63 = zext i16 %62 to i32
  store i32 %63, ptr %8, align 4, !tbaa !28
  %64 = load i32, ptr %8, align 4, !tbaa !28
  %65 = icmp sgt i32 %64, 256
  br i1 %65, label %66, label %67

66:                                               ; preds = %59
  store i32 256, ptr %8, align 4, !tbaa !28
  br label %67

67:                                               ; preds = %66, %59
  store i32 0, ptr %7, align 4, !tbaa !28
  br label %68

68:                                               ; preds = %89, %67
  %69 = load i32, ptr %7, align 4, !tbaa !28
  %70 = load i32, ptr %8, align 4, !tbaa !28
  %71 = icmp slt i32 %69, %70
  br i1 %71, label %72, label %92

72:                                               ; preds = %68
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.png_info_def, ptr %73, i32 0, i32 25
  %75 = load ptr, ptr %74, align 8, !tbaa !29
  %76 = load i32, ptr %7, align 4, !tbaa !28
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds i8, ptr %75, i64 %77
  %79 = load i8, ptr %78, align 1, !tbaa !30
  %80 = zext i8 %79 to i32
  %81 = sub nsw i32 255, %80
  %82 = trunc i32 %81 to i8
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.png_info_def, ptr %83, i32 0, i32 25
  %85 = load ptr, ptr %84, align 8, !tbaa !29
  %86 = load i32, ptr %7, align 4, !tbaa !28
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds i8, ptr %85, i64 %87
  store i8 %82, ptr %88, align 1, !tbaa !30
  br label %89

89:                                               ; preds = %72
  %90 = load i32, ptr %7, align 4, !tbaa !28
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %7, align 4, !tbaa !28
  br label %68, !llvm.loop !31

92:                                               ; preds = %68
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %93

93:                                               ; preds = %92, %53, %47
  %94 = load ptr, ptr %3, align 8, !tbaa !5
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.png_info_def, ptr %95, i32 0, i32 25
  %97 = load ptr, ptr %96, align 8, !tbaa !29
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.png_info_def, ptr %98, i32 0, i32 26
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.png_info_def, ptr %100, i32 0, i32 6
  %102 = load i16, ptr %101, align 2, !tbaa !27
  %103 = zext i16 %102 to i32
  %104 = load ptr, ptr %4, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.png_info_def, ptr %104, i32 0, i32 8
  %106 = load i8, ptr %105, align 1, !tbaa !22
  %107 = zext i8 %106 to i32
  call void @png_write_tRNS(ptr noundef %94, ptr noundef %97, ptr noundef %99, i32 noundef %103, i32 noundef %107)
  br label %108

108:                                              ; preds = %93, %41
  %109 = load ptr, ptr %4, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.png_info_def, ptr %109, i32 0, i32 2
  %111 = load i32, ptr %110, align 8, !tbaa !9
  %112 = and i32 %111, 32
  %113 = icmp ne i32 %112, 0
  br i1 %113, label %114, label %122

114:                                              ; preds = %108
  %115 = load ptr, ptr %3, align 8, !tbaa !5
  %116 = load ptr, ptr %4, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.png_info_def, ptr %116, i32 0, i32 27
  %118 = load ptr, ptr %4, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.png_info_def, ptr %118, i32 0, i32 8
  %120 = load i8, ptr %119, align 1, !tbaa !22
  %121 = zext i8 %120 to i32
  call void @png_write_bKGD(ptr noundef %115, ptr noundef %117, i32 noundef %121)
  br label %122

122:                                              ; preds = %114, %108
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.png_info_def, ptr %123, i32 0, i32 2
  %125 = load i32, ptr %124, align 8, !tbaa !9
  %126 = and i32 %125, 65536
  %127 = icmp ne i32 %126, 0
  br i1 %127, label %128, label %136

128:                                              ; preds = %122
  %129 = load ptr, ptr %3, align 8, !tbaa !5
  %130 = load ptr, ptr %4, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.png_info_def, ptr %130, i32 0, i32 35
  %132 = load ptr, ptr %131, align 8, !tbaa !33
  %133 = load ptr, ptr %4, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.png_info_def, ptr %133, i32 0, i32 34
  %135 = load i32, ptr %134, align 4, !tbaa !34
  call void @png_write_eXIf(ptr noundef %129, ptr noundef %132, i32 noundef %135)
  br label %136

136:                                              ; preds = %128, %122
  %137 = load ptr, ptr %4, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.png_info_def, ptr %137, i32 0, i32 2
  %139 = load i32, ptr %138, align 8, !tbaa !9
  %140 = and i32 %139, 64
  %141 = icmp ne i32 %140, 0
  br i1 %141, label %142, label %151

142:                                              ; preds = %136
  %143 = load ptr, ptr %3, align 8, !tbaa !5
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.png_info_def, ptr %144, i32 0, i32 37
  %146 = load ptr, ptr %145, align 8, !tbaa !35
  %147 = load ptr, ptr %4, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.png_info_def, ptr %147, i32 0, i32 5
  %149 = load i16, ptr %148, align 8, !tbaa !21
  %150 = zext i16 %149 to i32
  call void @png_write_hIST(ptr noundef %143, ptr noundef %146, i32 noundef %150)
  br label %151

151:                                              ; preds = %142, %136
  %152 = load ptr, ptr %4, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.png_info_def, ptr %152, i32 0, i32 2
  %154 = load i32, ptr %153, align 8, !tbaa !9
  %155 = and i32 %154, 256
  %156 = icmp ne i32 %155, 0
  br i1 %156, label %157, label %169

157:                                              ; preds = %151
  %158 = load ptr, ptr %3, align 8, !tbaa !5
  %159 = load ptr, ptr %4, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.png_info_def, ptr %159, i32 0, i32 28
  %161 = load i32, ptr %160, align 4, !tbaa !36
  %162 = load ptr, ptr %4, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.png_info_def, ptr %162, i32 0, i32 29
  %164 = load i32, ptr %163, align 8, !tbaa !37
  %165 = load ptr, ptr %4, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.png_info_def, ptr %165, i32 0, i32 30
  %167 = load i8, ptr %166, align 4, !tbaa !38
  %168 = zext i8 %167 to i32
  call void @png_write_oFFs(ptr noundef %158, i32 noundef %161, i32 noundef %164, i32 noundef %168)
  br label %169

169:                                              ; preds = %157, %151
  %170 = load ptr, ptr %4, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.png_info_def, ptr %170, i32 0, i32 2
  %172 = load i32, ptr %171, align 8, !tbaa !9
  %173 = and i32 %172, 1024
  %174 = icmp ne i32 %173, 0
  br i1 %174, label %175, label %200

175:                                              ; preds = %169
  %176 = load ptr, ptr %3, align 8, !tbaa !5
  %177 = load ptr, ptr %4, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.png_info_def, ptr %177, i32 0, i32 38
  %179 = load ptr, ptr %178, align 8, !tbaa !39
  %180 = load ptr, ptr %4, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.png_info_def, ptr %180, i32 0, i32 39
  %182 = load i32, ptr %181, align 8, !tbaa !40
  %183 = load ptr, ptr %4, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.png_info_def, ptr %183, i32 0, i32 40
  %185 = load i32, ptr %184, align 4, !tbaa !41
  %186 = load ptr, ptr %4, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.png_info_def, ptr %186, i32 0, i32 43
  %188 = load i8, ptr %187, align 8, !tbaa !42
  %189 = zext i8 %188 to i32
  %190 = load ptr, ptr %4, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.png_info_def, ptr %190, i32 0, i32 44
  %192 = load i8, ptr %191, align 1, !tbaa !43
  %193 = zext i8 %192 to i32
  %194 = load ptr, ptr %4, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.png_info_def, ptr %194, i32 0, i32 41
  %196 = load ptr, ptr %195, align 8, !tbaa !44
  %197 = load ptr, ptr %4, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.png_info_def, ptr %197, i32 0, i32 42
  %199 = load ptr, ptr %198, align 8, !tbaa !45
  call void @png_write_pCAL(ptr noundef %176, ptr noundef %179, i32 noundef %182, i32 noundef %185, i32 noundef %189, i32 noundef %193, ptr noundef %196, ptr noundef %199)
  br label %200

200:                                              ; preds = %175, %169
  %201 = load ptr, ptr %4, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.png_info_def, ptr %201, i32 0, i32 2
  %203 = load i32, ptr %202, align 8, !tbaa !9
  %204 = and i32 %203, 16384
  %205 = icmp ne i32 %204, 0
  br i1 %205, label %206, label %218

206:                                              ; preds = %200
  %207 = load ptr, ptr %3, align 8, !tbaa !5
  %208 = load ptr, ptr %4, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.png_info_def, ptr %208, i32 0, i32 50
  %210 = load i8, ptr %209, align 4, !tbaa !46
  %211 = zext i8 %210 to i32
  %212 = load ptr, ptr %4, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.png_info_def, ptr %212, i32 0, i32 51
  %214 = load ptr, ptr %213, align 8, !tbaa !47
  %215 = load ptr, ptr %4, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.png_info_def, ptr %215, i32 0, i32 52
  %217 = load ptr, ptr %216, align 8, !tbaa !48
  call void @png_write_sCAL_s(ptr noundef %207, i32 noundef %211, ptr noundef %214, ptr noundef %217)
  br label %218

218:                                              ; preds = %206, %200
  %219 = load ptr, ptr %4, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.png_info_def, ptr %219, i32 0, i32 2
  %221 = load i32, ptr %220, align 8, !tbaa !9
  %222 = and i32 %221, 128
  %223 = icmp ne i32 %222, 0
  br i1 %223, label %224, label %236

224:                                              ; preds = %218
  %225 = load ptr, ptr %3, align 8, !tbaa !5
  %226 = load ptr, ptr %4, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.png_info_def, ptr %226, i32 0, i32 31
  %228 = load i32, ptr %227, align 8, !tbaa !49
  %229 = load ptr, ptr %4, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.png_info_def, ptr %229, i32 0, i32 32
  %231 = load i32, ptr %230, align 4, !tbaa !50
  %232 = load ptr, ptr %4, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.png_info_def, ptr %232, i32 0, i32 33
  %234 = load i8, ptr %233, align 8, !tbaa !51
  %235 = zext i8 %234 to i32
  call void @png_write_pHYs(ptr noundef %225, i32 noundef %228, i32 noundef %231, i32 noundef %235)
  br label %236

236:                                              ; preds = %224, %218
  %237 = load ptr, ptr %4, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.png_info_def, ptr %237, i32 0, i32 2
  %239 = load i32, ptr %238, align 8, !tbaa !9
  %240 = and i32 %239, 512
  %241 = icmp ne i32 %240, 0
  br i1 %241, label %242, label %250

242:                                              ; preds = %236
  %243 = load ptr, ptr %3, align 8, !tbaa !5
  %244 = load ptr, ptr %4, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.png_info_def, ptr %244, i32 0, i32 23
  call void @png_write_tIME(ptr noundef %243, ptr noundef %245)
  %246 = load ptr, ptr %3, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.png_struct_def, ptr %246, i32 0, i32 15
  %248 = load i32, ptr %247, align 4, !tbaa !52
  %249 = or i32 %248, 512
  store i32 %249, ptr %247, align 4, !tbaa !52
  br label %250

250:                                              ; preds = %242, %236
  %251 = load ptr, ptr %4, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.png_info_def, ptr %251, i32 0, i32 2
  %253 = load i32, ptr %252, align 8, !tbaa !9
  %254 = and i32 %253, 8192
  %255 = icmp ne i32 %254, 0
  br i1 %255, label %256, label %275

256:                                              ; preds = %250
  store i32 0, ptr %5, align 4, !tbaa !28
  br label %257

257:                                              ; preds = %271, %256
  %258 = load i32, ptr %5, align 4, !tbaa !28
  %259 = load ptr, ptr %4, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.png_info_def, ptr %259, i32 0, i32 49
  %261 = load i32, ptr %260, align 8, !tbaa !53
  %262 = icmp slt i32 %258, %261
  br i1 %262, label %263, label %274

263:                                              ; preds = %257
  %264 = load ptr, ptr %3, align 8, !tbaa !5
  %265 = load ptr, ptr %4, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.png_info_def, ptr %265, i32 0, i32 48
  %267 = load ptr, ptr %266, align 8, !tbaa !54
  %268 = load i32, ptr %5, align 4, !tbaa !28
  %269 = sext i32 %268 to i64
  %270 = getelementptr inbounds %struct.png_sPLT_struct, ptr %267, i64 %269
  call void @png_write_sPLT(ptr noundef %264, ptr noundef %270)
  br label %271

271:                                              ; preds = %263
  %272 = load i32, ptr %5, align 4, !tbaa !28
  %273 = add nsw i32 %272, 1
  store i32 %273, ptr %5, align 4, !tbaa !28
  br label %257, !llvm.loop !55

274:                                              ; preds = %257
  br label %275

275:                                              ; preds = %274, %250
  store i32 0, ptr %5, align 4, !tbaa !28
  br label %276

276:                                              ; preds = %441, %275
  %277 = load i32, ptr %5, align 4, !tbaa !28
  %278 = load ptr, ptr %4, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct.png_info_def, ptr %278, i32 0, i32 20
  %280 = load i32, ptr %279, align 4, !tbaa !56
  %281 = icmp slt i32 %277, %280
  br i1 %281, label %282, label %444

282:                                              ; preds = %276
  %283 = load ptr, ptr %4, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct.png_info_def, ptr %283, i32 0, i32 22
  %285 = load ptr, ptr %284, align 8, !tbaa !57
  %286 = load i32, ptr %5, align 4, !tbaa !28
  %287 = sext i32 %286 to i64
  %288 = getelementptr inbounds %struct.png_text_struct, ptr %285, i64 %287
  %289 = getelementptr inbounds %struct.png_text_struct, ptr %288, i32 0, i32 0
  %290 = load i32, ptr %289, align 8, !tbaa !58
  %291 = icmp sgt i32 %290, 0
  br i1 %291, label %292, label %360

292:                                              ; preds = %282
  %293 = load ptr, ptr %3, align 8, !tbaa !5
  %294 = load ptr, ptr %4, align 8, !tbaa !5
  %295 = getelementptr inbounds %struct.png_info_def, ptr %294, i32 0, i32 22
  %296 = load ptr, ptr %295, align 8, !tbaa !57
  %297 = load i32, ptr %5, align 4, !tbaa !28
  %298 = sext i32 %297 to i64
  %299 = getelementptr inbounds %struct.png_text_struct, ptr %296, i64 %298
  %300 = getelementptr inbounds %struct.png_text_struct, ptr %299, i32 0, i32 0
  %301 = load i32, ptr %300, align 8, !tbaa !58
  %302 = load ptr, ptr %4, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.png_info_def, ptr %302, i32 0, i32 22
  %304 = load ptr, ptr %303, align 8, !tbaa !57
  %305 = load i32, ptr %5, align 4, !tbaa !28
  %306 = sext i32 %305 to i64
  %307 = getelementptr inbounds %struct.png_text_struct, ptr %304, i64 %306
  %308 = getelementptr inbounds %struct.png_text_struct, ptr %307, i32 0, i32 1
  %309 = load ptr, ptr %308, align 8, !tbaa !60
  %310 = load ptr, ptr %4, align 8, !tbaa !5
  %311 = getelementptr inbounds %struct.png_info_def, ptr %310, i32 0, i32 22
  %312 = load ptr, ptr %311, align 8, !tbaa !57
  %313 = load i32, ptr %5, align 4, !tbaa !28
  %314 = sext i32 %313 to i64
  %315 = getelementptr inbounds %struct.png_text_struct, ptr %312, i64 %314
  %316 = getelementptr inbounds %struct.png_text_struct, ptr %315, i32 0, i32 5
  %317 = load ptr, ptr %316, align 8, !tbaa !61
  %318 = load ptr, ptr %4, align 8, !tbaa !5
  %319 = getelementptr inbounds %struct.png_info_def, ptr %318, i32 0, i32 22
  %320 = load ptr, ptr %319, align 8, !tbaa !57
  %321 = load i32, ptr %5, align 4, !tbaa !28
  %322 = sext i32 %321 to i64
  %323 = getelementptr inbounds %struct.png_text_struct, ptr %320, i64 %322
  %324 = getelementptr inbounds %struct.png_text_struct, ptr %323, i32 0, i32 6
  %325 = load ptr, ptr %324, align 8, !tbaa !62
  %326 = load ptr, ptr %4, align 8, !tbaa !5
  %327 = getelementptr inbounds %struct.png_info_def, ptr %326, i32 0, i32 22
  %328 = load ptr, ptr %327, align 8, !tbaa !57
  %329 = load i32, ptr %5, align 4, !tbaa !28
  %330 = sext i32 %329 to i64
  %331 = getelementptr inbounds %struct.png_text_struct, ptr %328, i64 %330
  %332 = getelementptr inbounds %struct.png_text_struct, ptr %331, i32 0, i32 2
  %333 = load ptr, ptr %332, align 8, !tbaa !63
  call void @png_write_iTXt(ptr noundef %293, i32 noundef %301, ptr noundef %309, ptr noundef %317, ptr noundef %325, ptr noundef %333)
  %334 = load ptr, ptr %4, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct.png_info_def, ptr %334, i32 0, i32 22
  %336 = load ptr, ptr %335, align 8, !tbaa !57
  %337 = load i32, ptr %5, align 4, !tbaa !28
  %338 = sext i32 %337 to i64
  %339 = getelementptr inbounds %struct.png_text_struct, ptr %336, i64 %338
  %340 = getelementptr inbounds %struct.png_text_struct, ptr %339, i32 0, i32 0
  %341 = load i32, ptr %340, align 8, !tbaa !58
  %342 = icmp eq i32 %341, -1
  br i1 %342, label %343, label %351

343:                                              ; preds = %292
  %344 = load ptr, ptr %4, align 8, !tbaa !5
  %345 = getelementptr inbounds %struct.png_info_def, ptr %344, i32 0, i32 22
  %346 = load ptr, ptr %345, align 8, !tbaa !57
  %347 = load i32, ptr %5, align 4, !tbaa !28
  %348 = sext i32 %347 to i64
  %349 = getelementptr inbounds %struct.png_text_struct, ptr %346, i64 %348
  %350 = getelementptr inbounds %struct.png_text_struct, ptr %349, i32 0, i32 0
  store i32 -3, ptr %350, align 8, !tbaa !58
  br label %359

351:                                              ; preds = %292
  %352 = load ptr, ptr %4, align 8, !tbaa !5
  %353 = getelementptr inbounds %struct.png_info_def, ptr %352, i32 0, i32 22
  %354 = load ptr, ptr %353, align 8, !tbaa !57
  %355 = load i32, ptr %5, align 4, !tbaa !28
  %356 = sext i32 %355 to i64
  %357 = getelementptr inbounds %struct.png_text_struct, ptr %354, i64 %356
  %358 = getelementptr inbounds %struct.png_text_struct, ptr %357, i32 0, i32 0
  store i32 -2, ptr %358, align 8, !tbaa !58
  br label %359

359:                                              ; preds = %351, %343
  br label %440

360:                                              ; preds = %282
  %361 = load ptr, ptr %4, align 8, !tbaa !5
  %362 = getelementptr inbounds %struct.png_info_def, ptr %361, i32 0, i32 22
  %363 = load ptr, ptr %362, align 8, !tbaa !57
  %364 = load i32, ptr %5, align 4, !tbaa !28
  %365 = sext i32 %364 to i64
  %366 = getelementptr inbounds %struct.png_text_struct, ptr %363, i64 %365
  %367 = getelementptr inbounds %struct.png_text_struct, ptr %366, i32 0, i32 0
  %368 = load i32, ptr %367, align 8, !tbaa !58
  %369 = icmp eq i32 %368, 0
  br i1 %369, label %370, label %403

370:                                              ; preds = %360
  %371 = load ptr, ptr %3, align 8, !tbaa !5
  %372 = load ptr, ptr %4, align 8, !tbaa !5
  %373 = getelementptr inbounds %struct.png_info_def, ptr %372, i32 0, i32 22
  %374 = load ptr, ptr %373, align 8, !tbaa !57
  %375 = load i32, ptr %5, align 4, !tbaa !28
  %376 = sext i32 %375 to i64
  %377 = getelementptr inbounds %struct.png_text_struct, ptr %374, i64 %376
  %378 = getelementptr inbounds %struct.png_text_struct, ptr %377, i32 0, i32 1
  %379 = load ptr, ptr %378, align 8, !tbaa !60
  %380 = load ptr, ptr %4, align 8, !tbaa !5
  %381 = getelementptr inbounds %struct.png_info_def, ptr %380, i32 0, i32 22
  %382 = load ptr, ptr %381, align 8, !tbaa !57
  %383 = load i32, ptr %5, align 4, !tbaa !28
  %384 = sext i32 %383 to i64
  %385 = getelementptr inbounds %struct.png_text_struct, ptr %382, i64 %384
  %386 = getelementptr inbounds %struct.png_text_struct, ptr %385, i32 0, i32 2
  %387 = load ptr, ptr %386, align 8, !tbaa !63
  %388 = load ptr, ptr %4, align 8, !tbaa !5
  %389 = getelementptr inbounds %struct.png_info_def, ptr %388, i32 0, i32 22
  %390 = load ptr, ptr %389, align 8, !tbaa !57
  %391 = load i32, ptr %5, align 4, !tbaa !28
  %392 = sext i32 %391 to i64
  %393 = getelementptr inbounds %struct.png_text_struct, ptr %390, i64 %392
  %394 = getelementptr inbounds %struct.png_text_struct, ptr %393, i32 0, i32 0
  %395 = load i32, ptr %394, align 8, !tbaa !58
  call void @png_write_zTXt(ptr noundef %371, ptr noundef %379, ptr noundef %387, i32 noundef %395)
  %396 = load ptr, ptr %4, align 8, !tbaa !5
  %397 = getelementptr inbounds %struct.png_info_def, ptr %396, i32 0, i32 22
  %398 = load ptr, ptr %397, align 8, !tbaa !57
  %399 = load i32, ptr %5, align 4, !tbaa !28
  %400 = sext i32 %399 to i64
  %401 = getelementptr inbounds %struct.png_text_struct, ptr %398, i64 %400
  %402 = getelementptr inbounds %struct.png_text_struct, ptr %401, i32 0, i32 0
  store i32 -2, ptr %402, align 8, !tbaa !58
  br label %439

403:                                              ; preds = %360
  %404 = load ptr, ptr %4, align 8, !tbaa !5
  %405 = getelementptr inbounds %struct.png_info_def, ptr %404, i32 0, i32 22
  %406 = load ptr, ptr %405, align 8, !tbaa !57
  %407 = load i32, ptr %5, align 4, !tbaa !28
  %408 = sext i32 %407 to i64
  %409 = getelementptr inbounds %struct.png_text_struct, ptr %406, i64 %408
  %410 = getelementptr inbounds %struct.png_text_struct, ptr %409, i32 0, i32 0
  %411 = load i32, ptr %410, align 8, !tbaa !58
  %412 = icmp eq i32 %411, -1
  br i1 %412, label %413, label %438

413:                                              ; preds = %403
  %414 = load ptr, ptr %3, align 8, !tbaa !5
  %415 = load ptr, ptr %4, align 8, !tbaa !5
  %416 = getelementptr inbounds %struct.png_info_def, ptr %415, i32 0, i32 22
  %417 = load ptr, ptr %416, align 8, !tbaa !57
  %418 = load i32, ptr %5, align 4, !tbaa !28
  %419 = sext i32 %418 to i64
  %420 = getelementptr inbounds %struct.png_text_struct, ptr %417, i64 %419
  %421 = getelementptr inbounds %struct.png_text_struct, ptr %420, i32 0, i32 1
  %422 = load ptr, ptr %421, align 8, !tbaa !60
  %423 = load ptr, ptr %4, align 8, !tbaa !5
  %424 = getelementptr inbounds %struct.png_info_def, ptr %423, i32 0, i32 22
  %425 = load ptr, ptr %424, align 8, !tbaa !57
  %426 = load i32, ptr %5, align 4, !tbaa !28
  %427 = sext i32 %426 to i64
  %428 = getelementptr inbounds %struct.png_text_struct, ptr %425, i64 %427
  %429 = getelementptr inbounds %struct.png_text_struct, ptr %428, i32 0, i32 2
  %430 = load ptr, ptr %429, align 8, !tbaa !63
  call void @png_write_tEXt(ptr noundef %414, ptr noundef %422, ptr noundef %430, i64 noundef 0)
  %431 = load ptr, ptr %4, align 8, !tbaa !5
  %432 = getelementptr inbounds %struct.png_info_def, ptr %431, i32 0, i32 22
  %433 = load ptr, ptr %432, align 8, !tbaa !57
  %434 = load i32, ptr %5, align 4, !tbaa !28
  %435 = sext i32 %434 to i64
  %436 = getelementptr inbounds %struct.png_text_struct, ptr %433, i64 %435
  %437 = getelementptr inbounds %struct.png_text_struct, ptr %436, i32 0, i32 0
  store i32 -3, ptr %437, align 8, !tbaa !58
  br label %438

438:                                              ; preds = %413, %403
  br label %439

439:                                              ; preds = %438, %370
  br label %440

440:                                              ; preds = %439, %359
  br label %441

441:                                              ; preds = %440
  %442 = load i32, ptr %5, align 4, !tbaa !28
  %443 = add nsw i32 %442, 1
  store i32 %443, ptr %5, align 4, !tbaa !28
  br label %276, !llvm.loop !64

444:                                              ; preds = %276
  %445 = load ptr, ptr %3, align 8, !tbaa !5
  %446 = load ptr, ptr %4, align 8, !tbaa !5
  call void @write_unknown_chunks(ptr noundef %445, ptr noundef %446, i32 noundef 2)
  store i32 0, ptr %6, align 4
  br label %447

447:                                              ; preds = %444, %14
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  %448 = load i32, ptr %6, align 4
  switch i32 %448, label %450 [
    i32 0, label %449
    i32 1, label %449
  ]

449:                                              ; preds = %447, %447
  ret void

450:                                              ; preds = %447
  unreachable
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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, !11, i64 8}
!10 = !{!"png_info_def", !11, i64 0, !11, i64 4, !11, i64 8, !12, i64 16, !6, i64 24, !13, i64 32, !13, 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, !14, i64 52, !6, i64 128, !6, i64 136, !11, i64 144, !11, i64 148, !11, i64 152, !6, i64 160, !17, i64 168, !18, i64 176, !6, i64 184, !19, i64 192, !19, i64 202, !11, i64 212, !11, i64 216, !7, i64 220, !11, i64 224, !11, i64 228, !7, i64 232, !11, i64 236, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !11, i64 272, !11, i64 276, !6, i64 280, !6, i64 288, !7, i64 296, !7, i64 297, !11, i64 300, !6, i64 304, !11, i64 312, !6, i64 320, !11, i64 328, !7, i64 332, !6, i64 336, !6, i64 344, !6, i64 352}
!11 = !{!"int", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!"short", !7, i64 0}
!14 = !{!"png_colorspace", !11, i64 0, !15, i64 4, !16, i64 36, !13, i64 72, !13, i64 74}
!15 = !{!"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}
!16 = !{!"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}
!17 = !{!"png_time_struct", !13, i64 0, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !7, i64 6}
!18 = !{!"png_color_8_struct", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4}
!19 = !{!"png_color_16_struct", !7, i64 0, !13, i64 2, !13, i64 4, !13, i64 6, !13, i64 8}
!20 = !{!10, !6, i64 24}
!21 = !{!10, !13, i64 32}
!22 = !{!10, !7, i64 37}
!23 = !{!24, !11, i64 308}
!24 = !{!"png_struct_def", !7, i64 0, !6, i64 200, !6, i64 208, !12, 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, !11, i64 300, !11, i64 304, !11, i64 308, !11, i64 312, !25, i64 320, !6, 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, !12, i64 520, !11, i64 528, !11, i64 532, !11, i64 536, !6, i64 544, !6, i64 552, !6, i64 560, !6, i64 568, !12, i64 576, !11, i64 584, !11, i64 588, !6, 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, !19, i64 636, !19, i64 646, !6, i64 656, !11, i64 664, !11, i64 668, !11, i64 672, !11, i64 676, !6, i64 680, !6, i64 688, !6, i64 696, !6, i64 704, !6, i64 712, !6, i64 720, !18, i64 728, !18, i64 733, !6, i64 744, !19, 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, !11, i64 840, !11, i64 844, !12, i64 848, !12, i64 856, !12, i64 864, !12, i64 872, !11, i64 880, !11, i64 884, !6, i64 888, !6, i64 896, !11, i64 904, !7, i64 908, !11, i64 940, !6, i64 944, !6, i64 952, !11, i64 960, !11, i64 964, !6, i64 968, !7, i64 976, !7, i64 977, !13, i64 978, !13, i64 980, !11, 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, !11, i64 1052, !11, i64 1056, !11, i64 1060, !12, i64 1064, !26, i64 1072, !12, i64 1104, !6, i64 1112, !12, i64 1120, !11, i64 1128, !11, i64 1132, !6, i64 1136, !7, i64 1144, !14, i64 1176}
!25 = !{!"z_stream_s", !6, i64 0, !11, i64 8, !12, i64 16, !6, i64 24, !11, i64 32, !12, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !11, i64 88, !12, i64 96, !12, i64 104}
!26 = !{!"png_unknown_chunk_t", !7, i64 0, !6, i64 8, !12, i64 16, !7, i64 24}
!27 = !{!10, !13, i64 34}
!28 = !{!11, !11, i64 0}
!29 = !{!10, !6, i64 184}
!30 = !{!7, !7, i64 0}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = !{!10, !6, i64 240}
!34 = !{!10, !11, i64 236}
!35 = !{!10, !6, i64 256}
!36 = !{!10, !11, i64 212}
!37 = !{!10, !11, i64 216}
!38 = !{!10, !7, i64 220}
!39 = !{!10, !6, i64 264}
!40 = !{!10, !11, i64 272}
!41 = !{!10, !11, i64 276}
!42 = !{!10, !7, i64 296}
!43 = !{!10, !7, i64 297}
!44 = !{!10, !6, i64 280}
!45 = !{!10, !6, i64 288}
!46 = !{!10, !7, i64 332}
!47 = !{!10, !6, i64 336}
!48 = !{!10, !6, i64 344}
!49 = !{!10, !11, i64 224}
!50 = !{!10, !11, i64 228}
!51 = !{!10, !7, i64 232}
!52 = !{!24, !11, i64 300}
!53 = !{!10, !11, i64 328}
!54 = !{!10, !6, i64 320}
!55 = distinct !{!55, !32}
!56 = !{!10, !11, i64 148}
!57 = !{!10, !6, i64 160}
!58 = !{!59, !11, i64 0}
!59 = !{!"png_text_struct", !11, i64 0, !6, i64 8, !6, i64 16, !12, i64 24, !12, i64 32, !6, i64 40, !6, i64 48}
!60 = !{!59, !6, i64 8}
!61 = !{!59, !6, i64 40}
!62 = !{!59, !6, i64 48}
!63 = !{!59, !6, i64 16}
!64 = distinct !{!64, !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_sPLT_struct = type { ptr, i8, ptr, i32 }
%struct.png_text_struct = type { i32, ptr, ptr, i64, i64, ptr, ptr }

@.str.2 = external hidden unnamed_addr constant [43 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @png_write_info_before_PLTE(ptr noalias noundef, ptr noalias noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @write_unknown_chunks(ptr noalias noundef, ptr noalias noundef, i32 noundef) local_unnamed_addr #0

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

5:                                                ; preds = %2
  tail call void @png_write_info_before_PLTE(ptr noundef nonnull %0, ptr noundef nonnull %1)
  %6 = getelementptr inbounds i8, ptr %1, i64 8
  %7 = load i32, ptr %6, align 8, !tbaa !5
  %8 = and i32 %7, 8
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %15, label %9

9:                                                ; preds = %5
  %10 = getelementptr inbounds i8, ptr %1, i64 24
  %11 = load ptr, ptr %10, align 8, !tbaa !19
  %12 = getelementptr inbounds i8, ptr %1, i64 32
  %13 = load i16, ptr %12, align 8, !tbaa !20
  %14 = zext i16 %13 to i32
  tail call void @png_write_PLTE(ptr noundef nonnull %0, ptr noundef %11, i32 noundef %14) #4
  %.pre = load i32, ptr %6, align 8, !tbaa !5
  br label %20

15:                                               ; preds = %5
  %16 = getelementptr inbounds i8, ptr %1, i64 37
  %17 = load i8, ptr %16, align 1, !tbaa !21
  %18 = icmp eq i8 %17, 3
  br i1 %18, label %19, label %20

19:                                               ; preds = %15
  tail call void @png_error(ptr noundef nonnull %0, ptr noundef nonnull @.str.2) #5
  unreachable

20:                                               ; preds = %15, %9
  %21 = phi i32 [ %7, %15 ], [ %.pre, %9 ]
  %22 = and i32 %21, 16
  %.not123 = icmp eq i32 %22, 0
  br i1 %.not123, label %67, label %23

23:                                               ; preds = %20
  %24 = getelementptr inbounds i8, ptr %0, i64 308
  %25 = load i32, ptr %24, align 4, !tbaa !22
  %26 = and i32 %25, 524288
  %.not124 = icmp eq i32 %26, 0
  br i1 %.not124, label %.loopexit134, label %27

27:                                               ; preds = %23
  %28 = getelementptr inbounds i8, ptr %1, i64 37
  %29 = load i8, ptr %28, align 1, !tbaa !21
  %30 = icmp eq i8 %29, 3
  br i1 %30, label %31, label %.loopexit134

31:                                               ; preds = %27
  %32 = getelementptr inbounds i8, ptr %1, i64 34
  %33 = load i16, ptr %32, align 2, !tbaa !26
  %.not140 = icmp eq i16 %33, 0
  br i1 %.not140, label %.loopexit134, label %.lr.ph

.lr.ph:                                           ; preds = %31
  %34 = tail call i16 @llvm.umin.i16(i16 %33, i16 256)
  %35 = getelementptr inbounds i8, ptr %1, i64 184
  %wide.trip.count = zext nneg i16 %34 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %36 = icmp ult i16 %33, 4
  br i1 %36, label %.loopexit134.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %wide.trip.count, 508
  br label %37

37:                                               ; preds = %37, %.lr.ph.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.new ], [ %indvars.iv.next.3, %37 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %37 ]
  %38 = load ptr, ptr %35, align 8, !tbaa !27
  %39 = getelementptr inbounds i8, ptr %38, i64 %indvars.iv
  %40 = load i8, ptr %39, align 1, !tbaa !28
  %41 = xor i8 %40, -1
  store i8 %41, ptr %39, align 1, !tbaa !28
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %42 = load ptr, ptr %35, align 8, !tbaa !27
  %43 = getelementptr inbounds i8, ptr %42, i64 %indvars.iv.next
  %44 = load i8, ptr %43, align 1, !tbaa !28
  %45 = xor i8 %44, -1
  store i8 %45, ptr %43, align 1, !tbaa !28
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %46 = load ptr, ptr %35, align 8, !tbaa !27
  %47 = getelementptr inbounds i8, ptr %46, i64 %indvars.iv.next.1
  %48 = load i8, ptr %47, align 1, !tbaa !28
  %49 = xor i8 %48, -1
  store i8 %49, ptr %47, align 1, !tbaa !28
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %50 = load ptr, ptr %35, align 8, !tbaa !27
  %51 = getelementptr inbounds i8, ptr %50, i64 %indvars.iv.next.2
  %52 = load i8, ptr %51, align 1, !tbaa !28
  %53 = xor i8 %52, -1
  store i8 %53, ptr %51, align 1, !tbaa !28
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.loopexit134.loopexit.unr-lcssa, label %37, !llvm.loop !29

.loopexit134.loopexit.unr-lcssa:                  ; preds = %37, %.lr.ph
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next.3, %37 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.loopexit134, label %.epil.preheader

.epil.preheader:                                  ; preds = %.loopexit134.loopexit.unr-lcssa, %.epil.preheader
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.epil.preheader ], [ %indvars.iv.unr, %.loopexit134.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.loopexit134.loopexit.unr-lcssa ]
  %54 = load ptr, ptr %35, align 8, !tbaa !27
  %55 = getelementptr inbounds i8, ptr %54, i64 %indvars.iv.epil
  %56 = load i8, ptr %55, align 1, !tbaa !28
  %57 = xor i8 %56, -1
  store i8 %57, ptr %55, align 1, !tbaa !28
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.loopexit134, label %.epil.preheader, !llvm.loop !31

.loopexit134:                                     ; preds = %.loopexit134.loopexit.unr-lcssa, %.epil.preheader, %31, %27, %23
  %58 = getelementptr inbounds i8, ptr %1, i64 184
  %59 = load ptr, ptr %58, align 8, !tbaa !27
  %60 = getelementptr inbounds i8, ptr %1, i64 192
  %61 = getelementptr inbounds i8, ptr %1, i64 34
  %62 = load i16, ptr %61, align 2, !tbaa !26
  %63 = zext i16 %62 to i32
  %64 = getelementptr inbounds i8, ptr %1, i64 37
  %65 = load i8, ptr %64, align 1, !tbaa !21
  %66 = zext i8 %65 to i32
  tail call void @png_write_tRNS(ptr noundef %0, ptr noundef %59, ptr noundef nonnull %60, i32 noundef %63, i32 noundef %66) #4
  %.pre148 = load i32, ptr %6, align 8, !tbaa !5
  br label %67

67:                                               ; preds = %.loopexit134, %20
  %68 = phi i32 [ %.pre148, %.loopexit134 ], [ %21, %20 ]
  %69 = and i32 %68, 32
  %.not125 = icmp eq i32 %69, 0
  br i1 %.not125, label %75, label %70

70:                                               ; preds = %67
  %71 = getelementptr inbounds i8, ptr %1, i64 202
  %72 = getelementptr inbounds i8, ptr %1, i64 37
  %73 = load i8, ptr %72, align 1, !tbaa !21
  %74 = zext i8 %73 to i32
  tail call void @png_write_bKGD(ptr noundef %0, ptr noundef nonnull %71, i32 noundef %74) #4
  %.pre149 = load i32, ptr %6, align 8, !tbaa !5
  br label %75

75:                                               ; preds = %70, %67
  %76 = phi i32 [ %.pre149, %70 ], [ %68, %67 ]
  %77 = and i32 %76, 65536
  %.not126 = icmp eq i32 %77, 0
  br i1 %.not126, label %83, label %78

78:                                               ; preds = %75
  %79 = getelementptr inbounds i8, ptr %1, i64 240
  %80 = load ptr, ptr %79, align 8, !tbaa !33
  %81 = getelementptr inbounds i8, ptr %1, i64 236
  %82 = load i32, ptr %81, align 4, !tbaa !34
  tail call void @png_write_eXIf(ptr noundef %0, ptr noundef %80, i32 noundef %82) #4
  %.pre150 = load i32, ptr %6, align 8, !tbaa !5
  br label %83

83:                                               ; preds = %78, %75
  %84 = phi i32 [ %.pre150, %78 ], [ %76, %75 ]
  %85 = and i32 %84, 64
  %.not127 = icmp eq i32 %85, 0
  br i1 %.not127, label %92, label %86

86:                                               ; preds = %83
  %87 = getelementptr inbounds i8, ptr %1, i64 256
  %88 = load ptr, ptr %87, align 8, !tbaa !35
  %89 = getelementptr inbounds i8, ptr %1, i64 32
  %90 = load i16, ptr %89, align 8, !tbaa !20
  %91 = zext i16 %90 to i32
  tail call void @png_write_hIST(ptr noundef %0, ptr noundef %88, i32 noundef %91) #4
  %.pre151 = load i32, ptr %6, align 8, !tbaa !5
  br label %92

92:                                               ; preds = %86, %83
  %93 = phi i32 [ %.pre151, %86 ], [ %84, %83 ]
  %94 = and i32 %93, 256
  %.not128 = icmp eq i32 %94, 0
  br i1 %.not128, label %103, label %95

95:                                               ; preds = %92
  %96 = getelementptr inbounds i8, ptr %1, i64 212
  %97 = load i32, ptr %96, align 4, !tbaa !36
  %98 = getelementptr inbounds i8, ptr %1, i64 216
  %99 = load i32, ptr %98, align 8, !tbaa !37
  %100 = getelementptr inbounds i8, ptr %1, i64 220
  %101 = load i8, ptr %100, align 4, !tbaa !38
  %102 = zext i8 %101 to i32
  tail call void @png_write_oFFs(ptr noundef %0, i32 noundef %97, i32 noundef %99, i32 noundef %102) #4
  %.pre152 = load i32, ptr %6, align 8, !tbaa !5
  br label %103

103:                                              ; preds = %95, %92
  %104 = phi i32 [ %.pre152, %95 ], [ %93, %92 ]
  %105 = and i32 %104, 1024
  %.not129 = icmp eq i32 %105, 0
  br i1 %.not129, label %123, label %106

106:                                              ; preds = %103
  %107 = getelementptr inbounds i8, ptr %1, i64 264
  %108 = load ptr, ptr %107, align 8, !tbaa !39
  %109 = getelementptr inbounds i8, ptr %1, i64 272
  %110 = load i32, ptr %109, align 8, !tbaa !40
  %111 = getelementptr inbounds i8, ptr %1, i64 276
  %112 = load i32, ptr %111, align 4, !tbaa !41
  %113 = getelementptr inbounds i8, ptr %1, i64 296
  %114 = load i8, ptr %113, align 8, !tbaa !42
  %115 = zext i8 %114 to i32
  %116 = getelementptr inbounds i8, ptr %1, i64 297
  %117 = load i8, ptr %116, align 1, !tbaa !43
  %118 = zext i8 %117 to i32
  %119 = getelementptr inbounds i8, ptr %1, i64 280
  %120 = load ptr, ptr %119, align 8, !tbaa !44
  %121 = getelementptr inbounds i8, ptr %1, i64 288
  %122 = load ptr, ptr %121, align 8, !tbaa !45
  tail call void @png_write_pCAL(ptr noundef %0, ptr noundef %108, i32 noundef %110, i32 noundef %112, i32 noundef %115, i32 noundef %118, ptr noundef %120, ptr noundef %122) #4
  %.pre153 = load i32, ptr %6, align 8, !tbaa !5
  br label %123

123:                                              ; preds = %106, %103
  %124 = phi i32 [ %.pre153, %106 ], [ %104, %103 ]
  %125 = and i32 %124, 16384
  %.not130 = icmp eq i32 %125, 0
  br i1 %.not130, label %134, label %126

126:                                              ; preds = %123
  %127 = getelementptr inbounds i8, ptr %1, i64 332
  %128 = load i8, ptr %127, align 4, !tbaa !46
  %129 = zext i8 %128 to i32
  %130 = getelementptr inbounds i8, ptr %1, i64 336
  %131 = load ptr, ptr %130, align 8, !tbaa !47
  %132 = getelementptr inbounds i8, ptr %1, i64 344
  %133 = load ptr, ptr %132, align 8, !tbaa !48
  tail call void @png_write_sCAL_s(ptr noundef %0, i32 noundef %129, ptr noundef %131, ptr noundef %133) #4
  %.pre154 = load i32, ptr %6, align 8, !tbaa !5
  br label %134

134:                                              ; preds = %126, %123
  %135 = phi i32 [ %.pre154, %126 ], [ %124, %123 ]
  %136 = and i32 %135, 128
  %.not131 = icmp eq i32 %136, 0
  br i1 %.not131, label %145, label %137

137:                                              ; preds = %134
  %138 = getelementptr inbounds i8, ptr %1, i64 224
  %139 = load i32, ptr %138, align 8, !tbaa !49
  %140 = getelementptr inbounds i8, ptr %1, i64 228
  %141 = load i32, ptr %140, align 4, !tbaa !50
  %142 = getelementptr inbounds i8, ptr %1, i64 232
  %143 = load i8, ptr %142, align 8, !tbaa !51
  %144 = zext i8 %143 to i32
  tail call void @png_write_pHYs(ptr noundef %0, i32 noundef %139, i32 noundef %141, i32 noundef %144) #4
  %.pre155 = load i32, ptr %6, align 8, !tbaa !5
  br label %145

145:                                              ; preds = %137, %134
  %146 = phi i32 [ %.pre155, %137 ], [ %135, %134 ]
  %147 = and i32 %146, 512
  %.not132 = icmp eq i32 %147, 0
  br i1 %.not132, label %153, label %148

148:                                              ; preds = %145
  %149 = getelementptr inbounds i8, ptr %1, i64 168
  tail call void @png_write_tIME(ptr noundef %0, ptr noundef nonnull %149) #4
  %150 = getelementptr inbounds i8, ptr %0, i64 300
  %151 = load i32, ptr %150, align 4, !tbaa !52
  %152 = or i32 %151, 512
  store i32 %152, ptr %150, align 4, !tbaa !52
  %.pre156 = load i32, ptr %6, align 8, !tbaa !5
  br label %153

153:                                              ; preds = %148, %145
  %154 = phi i32 [ %.pre156, %148 ], [ %146, %145 ]
  %155 = and i32 %154, 8192
  %.not133 = icmp eq i32 %155, 0
  br i1 %.not133, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %153
  %156 = getelementptr inbounds i8, ptr %1, i64 328
  %157 = load i32, ptr %156, align 8, !tbaa !53
  %158 = icmp sgt i32 %157, 0
  br i1 %158, label %.lr.ph137, label %.loopexit

.lr.ph137:                                        ; preds = %.preheader
  %159 = getelementptr inbounds i8, ptr %1, i64 320
  br label %160

160:                                              ; preds = %.lr.ph137, %160
  %indvars.iv142 = phi i64 [ 0, %.lr.ph137 ], [ %indvars.iv.next143, %160 ]
  %161 = load ptr, ptr %159, align 8, !tbaa !54
  %162 = getelementptr inbounds %struct.png_sPLT_struct, ptr %161, i64 %indvars.iv142
  tail call void @png_write_sPLT(ptr noundef %0, ptr noundef %162) #4
  %indvars.iv.next143 = add nuw nsw i64 %indvars.iv142, 1
  %163 = load i32, ptr %156, align 8, !tbaa !53
  %164 = sext i32 %163 to i64
  %165 = icmp slt i64 %indvars.iv.next143, %164
  br i1 %165, label %160, label %.loopexit, !llvm.loop !55

.loopexit:                                        ; preds = %160, %.preheader, %153
  %166 = getelementptr inbounds i8, ptr %1, i64 148
  %167 = load i32, ptr %166, align 4, !tbaa !56
  %168 = icmp sgt i32 %167, 0
  br i1 %168, label %.lr.ph139, label %._crit_edge

.lr.ph139:                                        ; preds = %.loopexit
  %169 = getelementptr inbounds i8, ptr %1, i64 160
  %.pre157 = load ptr, ptr %169, align 8, !tbaa !57
  br label %170

170:                                              ; preds = %.lr.ph139, %205
  %171 = phi ptr [ %.pre157, %.lr.ph139 ], [ %206, %205 ]
  %indvars.iv145 = phi i64 [ 0, %.lr.ph139 ], [ %indvars.iv.next146, %205 ]
  %172 = getelementptr inbounds %struct.png_text_struct, ptr %171, i64 %indvars.iv145
  %173 = load i32, ptr %172, align 8, !tbaa !58
  %174 = icmp sgt i32 %173, 0
  br i1 %174, label %175, label %190

175:                                              ; preds = %170
  %176 = getelementptr inbounds i8, ptr %172, i64 8
  %177 = load ptr, ptr %176, align 8, !tbaa !60
  %178 = getelementptr inbounds i8, ptr %172, i64 40
  %179 = load ptr, ptr %178, align 8, !tbaa !61
  %180 = getelementptr inbounds i8, ptr %172, i64 48
  %181 = load ptr, ptr %180, align 8, !tbaa !62
  %182 = getelementptr inbounds i8, ptr %172, i64 16
  %183 = load ptr, ptr %182, align 8, !tbaa !63
  tail call void @png_write_iTXt(ptr noundef %0, i32 noundef %173, ptr noundef %177, ptr noundef %179, ptr noundef %181, ptr noundef %183) #4
  %184 = load ptr, ptr %169, align 8, !tbaa !57
  %185 = getelementptr inbounds %struct.png_text_struct, ptr %184, i64 %indvars.iv145
  %186 = load i32, ptr %185, align 8, !tbaa !58
  %187 = icmp eq i32 %186, -1
  br i1 %187, label %188, label %189

188:                                              ; preds = %175
  store i32 -3, ptr %185, align 8, !tbaa !58
  br label %205

189:                                              ; preds = %175
  store i32 -2, ptr %185, align 8, !tbaa !58
  br label %205

190:                                              ; preds = %170
  switch i32 %173, label %205 [
    i32 0, label %191
    i32 -1, label %198
  ]

191:                                              ; preds = %190
  %192 = getelementptr inbounds i8, ptr %172, i64 8
  %193 = load ptr, ptr %192, align 8, !tbaa !60
  %194 = getelementptr inbounds i8, ptr %172, i64 16
  %195 = load ptr, ptr %194, align 8, !tbaa !63
  tail call void @png_write_zTXt(ptr noundef %0, ptr noundef %193, ptr noundef %195, i32 noundef 0) #4
  %196 = load ptr, ptr %169, align 8, !tbaa !57
  %197 = getelementptr inbounds %struct.png_text_struct, ptr %196, i64 %indvars.iv145
  store i32 -2, ptr %197, align 8, !tbaa !58
  br label %205

198:                                              ; preds = %190
  %199 = getelementptr inbounds i8, ptr %172, i64 8
  %200 = load ptr, ptr %199, align 8, !tbaa !60
  %201 = getelementptr inbounds i8, ptr %172, i64 16
  %202 = load ptr, ptr %201, align 8, !tbaa !63
  tail call void @png_write_tEXt(ptr noundef %0, ptr noundef %200, ptr noundef %202, i64 noundef 0) #4
  %203 = load ptr, ptr %169, align 8, !tbaa !57
  %204 = getelementptr inbounds %struct.png_text_struct, ptr %203, i64 %indvars.iv145
  store i32 -3, ptr %204, align 8, !tbaa !58
  br label %205

205:                                              ; preds = %190, %189, %188, %198, %191
  %206 = phi ptr [ %171, %190 ], [ %184, %189 ], [ %184, %188 ], [ %203, %198 ], [ %196, %191 ]
  %indvars.iv.next146 = add nuw nsw i64 %indvars.iv145, 1
  %207 = load i32, ptr %166, align 4, !tbaa !56
  %208 = sext i32 %207 to i64
  %209 = icmp slt i64 %indvars.iv.next146, %208
  br i1 %209, label %170, label %._crit_edge, !llvm.loop !64

._crit_edge:                                      ; preds = %205, %.loopexit
  tail call void @write_unknown_chunks(ptr noundef %0, ptr noundef nonnull %1, i32 noundef 2)
  br label %210

210:                                              ; preds = %2, %._crit_edge
  ret void
}

declare void @png_write_PLTE(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

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

declare void @png_write_tRNS(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

declare void @png_write_bKGD(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

declare void @png_write_eXIf(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

declare void @png_write_hIST(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

declare void @png_write_oFFs(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

declare void @png_write_pCAL(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @png_write_sCAL_s(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @png_write_pHYs(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

declare void @png_write_tIME(ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @png_write_sPLT(ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @png_write_iTXt(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @png_write_zTXt(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

declare void @png_write_tEXt(ptr noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1

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

attributes #0 = { 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 #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !7, i64 8}
!6 = !{!"png_info_def", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !11, i64 24, !12, i64 32, !12, i64 34, !8, i64 36, !8, i64 37, !8, i64 38, !8, i64 39, !8, i64 40, !8, i64 41, !8, i64 42, !8, i64 43, !8, i64 44, !13, i64 52, !11, i64 128, !11, i64 136, !7, i64 144, !7, i64 148, !7, i64 152, !11, i64 160, !16, i64 168, !17, i64 176, !11, i64 184, !18, i64 192, !18, i64 202, !7, i64 212, !7, i64 216, !8, i64 220, !7, i64 224, !7, i64 228, !8, i64 232, !7, i64 236, !11, i64 240, !11, i64 248, !11, i64 256, !11, i64 264, !7, i64 272, !7, i64 276, !11, i64 280, !11, i64 288, !8, i64 296, !8, i64 297, !7, i64 300, !11, i64 304, !7, i64 312, !11, i64 320, !7, i64 328, !8, i64 332, !11, i64 336, !11, i64 344, !11, i64 352}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"short", !8, i64 0}
!13 = !{!"png_colorspace", !7, i64 0, !14, i64 4, !15, i64 36, !12, i64 72, !12, i64 74}
!14 = !{!"png_xy", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28}
!15 = !{!"png_XYZ", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32}
!16 = !{!"png_time_struct", !12, i64 0, !8, i64 2, !8, i64 3, !8, i64 4, !8, i64 5, !8, i64 6}
!17 = !{!"png_color_8_struct", !8, i64 0, !8, i64 1, !8, i64 2, !8, i64 3, !8, i64 4}
!18 = !{!"png_color_16_struct", !8, i64 0, !12, i64 2, !12, i64 4, !12, i64 6, !12, i64 8}
!19 = !{!6, !11, i64 24}
!20 = !{!6, !12, i64 32}
!21 = !{!6, !8, i64 37}
!22 = !{!23, !7, i64 308}
!23 = !{!"png_struct_def", !8, i64 0, !11, i64 200, !11, i64 208, !10, 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, !8, i64 296, !8, i64 297, !7, i64 300, !7, i64 304, !7, i64 308, !7, i64 312, !24, i64 320, !11, i64 432, !7, i64 440, !7, i64 444, !7, i64 448, !7, i64 452, !7, i64 456, !7, i64 460, !7, i64 464, !7, i64 468, !7, i64 472, !7, i64 476, !7, i64 480, !7, i64 484, !7, i64 488, !7, i64 492, !7, i64 496, !7, i64 500, !7, i64 504, !7, i64 508, !7, i64 512, !7, i64 516, !10, i64 520, !7, i64 528, !7, i64 532, !7, i64 536, !11, i64 544, !11, i64 552, !11, i64 560, !11, i64 568, !10, i64 576, !7, i64 584, !7, i64 588, !11, i64 592, !12, i64 600, !7, i64 604, !12, i64 608, !8, i64 610, !8, i64 611, !8, i64 612, !8, i64 613, !8, i64 614, !8, i64 615, !8, i64 616, !8, i64 617, !8, i64 618, !8, i64 619, !8, i64 620, !8, i64 621, !8, i64 622, !8, i64 623, !8, i64 624, !12, i64 626, !8, i64 628, !7, i64 632, !18, i64 636, !18, i64 646, !11, i64 656, !7, i64 664, !7, i64 668, !7, i64 672, !7, i64 676, !11, i64 680, !11, i64 688, !11, i64 696, !11, i64 704, !11, i64 712, !11, i64 720, !17, i64 728, !17, i64 733, !11, i64 744, !18, 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, !7, i64 840, !7, i64 844, !10, i64 848, !10, i64 856, !10, i64 864, !10, i64 872, !7, i64 880, !7, i64 884, !11, i64 888, !11, i64 896, !7, i64 904, !8, i64 908, !7, i64 940, !11, i64 944, !11, i64 952, !7, i64 960, !7, i64 964, !11, i64 968, !8, i64 976, !8, i64 977, !12, i64 978, !12, i64 980, !7, i64 984, !8, i64 988, !11, i64 992, !11, i64 1000, !11, i64 1008, !11, i64 1016, !11, i64 1024, !11, i64 1032, !11, i64 1040, !8, i64 1048, !7, i64 1052, !7, i64 1056, !7, i64 1060, !10, i64 1064, !25, i64 1072, !10, i64 1104, !11, i64 1112, !10, i64 1120, !7, i64 1128, !7, i64 1132, !11, i64 1136, !8, i64 1144, !13, i64 1176}
!24 = !{!"z_stream_s", !11, i64 0, !7, i64 8, !10, i64 16, !11, i64 24, !7, i64 32, !10, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !7, i64 88, !10, i64 96, !10, i64 104}
!25 = !{!"png_unknown_chunk_t", !8, i64 0, !11, i64 8, !10, i64 16, !8, i64 24}
!26 = !{!6, !12, i64 34}
!27 = !{!6, !11, i64 184}
!28 = !{!8, !8, i64 0}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.unroll.disable"}
!33 = !{!6, !11, i64 240}
!34 = !{!6, !7, i64 236}
!35 = !{!6, !11, i64 256}
!36 = !{!6, !7, i64 212}
!37 = !{!6, !7, i64 216}
!38 = !{!6, !8, i64 220}
!39 = !{!6, !11, i64 264}
!40 = !{!6, !7, i64 272}
!41 = !{!6, !7, i64 276}
!42 = !{!6, !8, i64 296}
!43 = !{!6, !8, i64 297}
!44 = !{!6, !11, i64 280}
!45 = !{!6, !11, i64 288}
!46 = !{!6, !8, i64 332}
!47 = !{!6, !11, i64 336}
!48 = !{!6, !11, i64 344}
!49 = !{!6, !7, i64 224}
!50 = !{!6, !7, i64 228}
!51 = !{!6, !8, i64 232}
!52 = !{!23, !7, i64 300}
!53 = !{!6, !7, i64 328}
!54 = !{!6, !11, i64 320}
!55 = distinct !{!55, !30}
!56 = !{!6, !7, i64 148}
!57 = !{!6, !11, i64 160}
!58 = !{!59, !7, i64 0}
!59 = !{!"png_text_struct", !7, i64 0, !11, i64 8, !11, i64 16, !10, i64 24, !10, i64 32, !11, i64 40, !11, i64 48}
!60 = !{!59, !11, i64 8}
!61 = !{!59, !11, i64 40}
!62 = !{!59, !11, i64 48}
!63 = !{!59, !11, i64 16}
!64 = distinct !{!64, !30}


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