; LLVM IR from corentinartaud/graphics :: ThirdParty/FreeImage-3170/Source/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, 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, ptr, ptr, i64, i32, i32, ptr, i16, i32, i16, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i16, i8, i32, %struct.png_color_16_struct, %struct.png_color_16_struct, ptr, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, %struct.png_color_8_struct, %struct.png_color_8_struct, ptr, %struct.png_color_16_struct, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i64, i64, i64, i64, i32, i32, ptr, ptr, i8, i8, ptr, ptr, ptr, ptr, ptr, i8, [29 x i8], i32, ptr, ptr, i32, i32, ptr, i8, i8, i16, i16, i32, i8, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i32, i32, i32, i64, %struct.png_unknown_chunk_t, i64, ptr, i64, i32, i32, ptr, [4 x ptr], %struct.png_colorspace }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.z_stream_s = type { ptr, i32, i64, ptr, i32, i64, ptr, ptr, ptr, ptr, ptr, i32, i64, i64 }
%struct.png_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
  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
  %8 = load ptr, ptr %3, align 8, !tbaa !5
  %9 = icmp eq ptr %8, null
  br i1 %9, label %13, label %10

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

13:                                               ; preds = %10, %2
  store i32 1, ptr %6, align 4
  br label %429

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

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

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

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

41:                                               ; preds = %31
  br label %42

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

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

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

60:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !27
  br label %61

61:                                               ; preds = %85, %60
  %62 = load i32, ptr %7, align 4, !tbaa !27
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.png_info_def, ptr %63, i32 0, i32 6
  %65 = load i16, ptr %64, align 2, !tbaa !28
  %66 = zext i16 %65 to i32
  %67 = icmp slt i32 %62, %66
  br i1 %67, label %68, label %88

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

85:                                               ; preds = %68
  %86 = load i32, ptr %7, align 4, !tbaa !27
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %7, align 4, !tbaa !27
  br label %61, !llvm.loop !31

88:                                               ; preds = %61
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %89

89:                                               ; preds = %88, %54, %48
  %90 = load ptr, ptr %3, align 8, !tbaa !5
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.png_info_def, ptr %91, i32 0, i32 25
  %93 = load ptr, ptr %92, align 8, !tbaa !29
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.png_info_def, ptr %94, i32 0, i32 26
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.png_info_def, ptr %96, i32 0, i32 6
  %98 = load i16, ptr %97, align 2, !tbaa !28
  %99 = zext i16 %98 to i32
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.png_info_def, ptr %100, i32 0, i32 8
  %102 = load i8, ptr %101, align 1, !tbaa !22
  %103 = zext i8 %102 to i32
  call void @png_write_tRNS(ptr noundef %90, ptr noundef %93, ptr noundef %95, i32 noundef %99, i32 noundef %103)
  br label %104

104:                                              ; preds = %89, %42
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.png_info_def, ptr %105, i32 0, i32 2
  %107 = load i32, ptr %106, align 8, !tbaa !9
  %108 = and i32 %107, 32
  %109 = icmp ne i32 %108, 0
  br i1 %109, label %110, label %118

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

118:                                              ; preds = %110, %104
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.png_info_def, ptr %119, i32 0, i32 2
  %121 = load i32, ptr %120, align 8, !tbaa !9
  %122 = and i32 %121, 64
  %123 = icmp ne i32 %122, 0
  br i1 %123, label %124, label %133

124:                                              ; preds = %118
  %125 = load ptr, ptr %3, align 8, !tbaa !5
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.png_info_def, ptr %126, i32 0, i32 34
  %128 = load ptr, ptr %127, align 8, !tbaa !33
  %129 = load ptr, ptr %4, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.png_info_def, ptr %129, i32 0, i32 5
  %131 = load i16, ptr %130, align 8, !tbaa !21
  %132 = zext i16 %131 to i32
  call void @png_write_hIST(ptr noundef %125, ptr noundef %128, i32 noundef %132)
  br label %133

133:                                              ; preds = %124, %118
  %134 = load ptr, ptr %4, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.png_info_def, ptr %134, i32 0, i32 2
  %136 = load i32, ptr %135, align 8, !tbaa !9
  %137 = and i32 %136, 256
  %138 = icmp ne i32 %137, 0
  br i1 %138, label %139, label %151

139:                                              ; preds = %133
  %140 = load ptr, ptr %3, align 8, !tbaa !5
  %141 = load ptr, ptr %4, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.png_info_def, ptr %141, i32 0, i32 28
  %143 = load i32, ptr %142, align 4, !tbaa !34
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.png_info_def, ptr %144, i32 0, i32 29
  %146 = load i32, 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 30
  %149 = load i8, ptr %148, align 4, !tbaa !36
  %150 = zext i8 %149 to i32
  call void @png_write_oFFs(ptr noundef %140, i32 noundef %143, i32 noundef %146, i32 noundef %150)
  br label %151

151:                                              ; preds = %139, %133
  %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, 1024
  %156 = icmp ne i32 %155, 0
  br i1 %156, label %157, label %182

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 35
  %161 = load ptr, ptr %160, align 8, !tbaa !37
  %162 = load ptr, ptr %4, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.png_info_def, ptr %162, i32 0, i32 36
  %164 = load i32, ptr %163, align 8, !tbaa !38
  %165 = load ptr, ptr %4, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.png_info_def, ptr %165, i32 0, i32 37
  %167 = load i32, ptr %166, align 4, !tbaa !39
  %168 = load ptr, ptr %4, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.png_info_def, ptr %168, i32 0, i32 40
  %170 = load i8, ptr %169, align 8, !tbaa !40
  %171 = zext i8 %170 to i32
  %172 = load ptr, ptr %4, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.png_info_def, ptr %172, i32 0, i32 41
  %174 = load i8, ptr %173, align 1, !tbaa !41
  %175 = zext i8 %174 to i32
  %176 = load ptr, ptr %4, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.png_info_def, ptr %176, i32 0, i32 38
  %178 = load ptr, ptr %177, align 8, !tbaa !42
  %179 = load ptr, ptr %4, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.png_info_def, ptr %179, i32 0, i32 39
  %181 = load ptr, ptr %180, align 8, !tbaa !43
  call void @png_write_pCAL(ptr noundef %158, ptr noundef %161, i32 noundef %164, i32 noundef %167, i32 noundef %171, i32 noundef %175, ptr noundef %178, ptr noundef %181)
  br label %182

182:                                              ; preds = %157, %151
  %183 = load ptr, ptr %4, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.png_info_def, ptr %183, i32 0, i32 2
  %185 = load i32, ptr %184, align 8, !tbaa !9
  %186 = and i32 %185, 16384
  %187 = icmp ne i32 %186, 0
  br i1 %187, label %188, label %200

188:                                              ; preds = %182
  %189 = load ptr, ptr %3, align 8, !tbaa !5
  %190 = load ptr, ptr %4, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.png_info_def, ptr %190, i32 0, i32 47
  %192 = load i8, ptr %191, align 4, !tbaa !44
  %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 48
  %196 = load ptr, ptr %195, align 8, !tbaa !45
  %197 = load ptr, ptr %4, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.png_info_def, ptr %197, i32 0, i32 49
  %199 = load ptr, ptr %198, align 8, !tbaa !46
  call void @png_write_sCAL_s(ptr noundef %189, i32 noundef %193, ptr noundef %196, ptr noundef %199)
  br label %200

200:                                              ; preds = %188, %182
  %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, 128
  %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 31
  %210 = load i32, ptr %209, align 8, !tbaa !47
  %211 = load ptr, ptr %4, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.png_info_def, ptr %211, i32 0, i32 32
  %213 = load i32, ptr %212, align 4, !tbaa !48
  %214 = load ptr, ptr %4, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.png_info_def, ptr %214, i32 0, i32 33
  %216 = load i8, ptr %215, align 8, !tbaa !49
  %217 = zext i8 %216 to i32
  call void @png_write_pHYs(ptr noundef %207, i32 noundef %210, i32 noundef %213, i32 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, 512
  %223 = icmp ne i32 %222, 0
  br i1 %223, label %224, label %232

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 23
  call void @png_write_tIME(ptr noundef %225, ptr noundef %227)
  %228 = load ptr, ptr %3, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.png_struct_def, ptr %228, i32 0, i32 15
  %230 = load i32, ptr %229, align 4, !tbaa !50
  %231 = or i32 %230, 512
  store i32 %231, ptr %229, align 4, !tbaa !50
  br label %232

232:                                              ; preds = %224, %218
  %233 = load ptr, ptr %4, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.png_info_def, ptr %233, i32 0, i32 2
  %235 = load i32, ptr %234, align 8, !tbaa !9
  %236 = and i32 %235, 8192
  %237 = icmp ne i32 %236, 0
  br i1 %237, label %238, label %257

238:                                              ; preds = %232
  store i32 0, ptr %5, align 4, !tbaa !27
  br label %239

239:                                              ; preds = %253, %238
  %240 = load i32, ptr %5, align 4, !tbaa !27
  %241 = load ptr, ptr %4, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.png_info_def, ptr %241, i32 0, i32 46
  %243 = load i32, ptr %242, align 8, !tbaa !51
  %244 = icmp slt i32 %240, %243
  br i1 %244, label %245, label %256

245:                                              ; preds = %239
  %246 = load ptr, ptr %3, align 8, !tbaa !5
  %247 = load ptr, ptr %4, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.png_info_def, ptr %247, i32 0, i32 45
  %249 = load ptr, ptr %248, align 8, !tbaa !52
  %250 = load i32, ptr %5, align 4, !tbaa !27
  %251 = sext i32 %250 to i64
  %252 = getelementptr inbounds %struct.png_sPLT_struct, ptr %249, i64 %251
  call void @png_write_sPLT(ptr noundef %246, ptr noundef %252)
  br label %253

253:                                              ; preds = %245
  %254 = load i32, ptr %5, align 4, !tbaa !27
  %255 = add nsw i32 %254, 1
  store i32 %255, ptr %5, align 4, !tbaa !27
  br label %239, !llvm.loop !53

256:                                              ; preds = %239
  br label %257

257:                                              ; preds = %256, %232
  store i32 0, ptr %5, align 4, !tbaa !27
  br label %258

258:                                              ; preds = %423, %257
  %259 = load i32, ptr %5, align 4, !tbaa !27
  %260 = load ptr, ptr %4, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.png_info_def, ptr %260, i32 0, i32 20
  %262 = load i32, ptr %261, align 4, !tbaa !54
  %263 = icmp slt i32 %259, %262
  br i1 %263, label %264, label %426

264:                                              ; preds = %258
  %265 = load ptr, ptr %4, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.png_info_def, ptr %265, i32 0, i32 22
  %267 = load ptr, ptr %266, align 8, !tbaa !55
  %268 = load i32, ptr %5, align 4, !tbaa !27
  %269 = sext i32 %268 to i64
  %270 = getelementptr inbounds %struct.png_text_struct, ptr %267, i64 %269
  %271 = getelementptr inbounds %struct.png_text_struct, ptr %270, i32 0, i32 0
  %272 = load i32, ptr %271, align 8, !tbaa !56
  %273 = icmp sgt i32 %272, 0
  br i1 %273, label %274, label %342

274:                                              ; preds = %264
  %275 = load ptr, ptr %3, align 8, !tbaa !5
  %276 = load ptr, ptr %4, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct.png_info_def, ptr %276, i32 0, i32 22
  %278 = load ptr, ptr %277, align 8, !tbaa !55
  %279 = load i32, ptr %5, align 4, !tbaa !27
  %280 = sext i32 %279 to i64
  %281 = getelementptr inbounds %struct.png_text_struct, ptr %278, i64 %280
  %282 = getelementptr inbounds %struct.png_text_struct, ptr %281, i32 0, i32 0
  %283 = load i32, ptr %282, align 8, !tbaa !56
  %284 = load ptr, ptr %4, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.png_info_def, ptr %284, i32 0, i32 22
  %286 = load ptr, ptr %285, align 8, !tbaa !55
  %287 = load i32, ptr %5, align 4, !tbaa !27
  %288 = sext i32 %287 to i64
  %289 = getelementptr inbounds %struct.png_text_struct, ptr %286, i64 %288
  %290 = getelementptr inbounds %struct.png_text_struct, ptr %289, i32 0, i32 1
  %291 = load ptr, ptr %290, align 8, !tbaa !58
  %292 = load ptr, ptr %4, align 8, !tbaa !5
  %293 = getelementptr inbounds %struct.png_info_def, ptr %292, i32 0, i32 22
  %294 = load ptr, ptr %293, align 8, !tbaa !55
  %295 = load i32, ptr %5, align 4, !tbaa !27
  %296 = sext i32 %295 to i64
  %297 = getelementptr inbounds %struct.png_text_struct, ptr %294, i64 %296
  %298 = getelementptr inbounds %struct.png_text_struct, ptr %297, i32 0, i32 5
  %299 = load ptr, ptr %298, align 8, !tbaa !59
  %300 = load ptr, ptr %4, align 8, !tbaa !5
  %301 = getelementptr inbounds %struct.png_info_def, ptr %300, i32 0, i32 22
  %302 = load ptr, ptr %301, align 8, !tbaa !55
  %303 = load i32, ptr %5, align 4, !tbaa !27
  %304 = sext i32 %303 to i64
  %305 = getelementptr inbounds %struct.png_text_struct, ptr %302, i64 %304
  %306 = getelementptr inbounds %struct.png_text_struct, ptr %305, i32 0, i32 6
  %307 = load ptr, ptr %306, align 8, !tbaa !60
  %308 = load ptr, ptr %4, align 8, !tbaa !5
  %309 = getelementptr inbounds %struct.png_info_def, ptr %308, i32 0, i32 22
  %310 = load ptr, ptr %309, align 8, !tbaa !55
  %311 = load i32, ptr %5, align 4, !tbaa !27
  %312 = sext i32 %311 to i64
  %313 = getelementptr inbounds %struct.png_text_struct, ptr %310, i64 %312
  %314 = getelementptr inbounds %struct.png_text_struct, ptr %313, i32 0, i32 2
  %315 = load ptr, ptr %314, align 8, !tbaa !61
  call void @png_write_iTXt(ptr noundef %275, i32 noundef %283, ptr noundef %291, ptr noundef %299, ptr noundef %307, ptr noundef %315)
  %316 = load ptr, ptr %4, align 8, !tbaa !5
  %317 = getelementptr inbounds %struct.png_info_def, ptr %316, i32 0, i32 22
  %318 = load ptr, ptr %317, align 8, !tbaa !55
  %319 = load i32, ptr %5, align 4, !tbaa !27
  %320 = sext i32 %319 to i64
  %321 = getelementptr inbounds %struct.png_text_struct, ptr %318, i64 %320
  %322 = getelementptr inbounds %struct.png_text_struct, ptr %321, i32 0, i32 0
  %323 = load i32, ptr %322, align 8, !tbaa !56
  %324 = icmp eq i32 %323, -1
  br i1 %324, label %325, label %333

325:                                              ; preds = %274
  %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 !55
  %329 = load i32, ptr %5, align 4, !tbaa !27
  %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 0
  store i32 -3, ptr %332, align 8, !tbaa !56
  br label %341

333:                                              ; preds = %274
  %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 !55
  %337 = load i32, ptr %5, align 4, !tbaa !27
  %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
  store i32 -2, ptr %340, align 8, !tbaa !56
  br label %341

341:                                              ; preds = %333, %325
  br label %422

342:                                              ; preds = %264
  %343 = load ptr, ptr %4, align 8, !tbaa !5
  %344 = getelementptr inbounds %struct.png_info_def, ptr %343, i32 0, i32 22
  %345 = load ptr, ptr %344, align 8, !tbaa !55
  %346 = load i32, ptr %5, align 4, !tbaa !27
  %347 = sext i32 %346 to i64
  %348 = getelementptr inbounds %struct.png_text_struct, ptr %345, i64 %347
  %349 = getelementptr inbounds %struct.png_text_struct, ptr %348, i32 0, i32 0
  %350 = load i32, ptr %349, align 8, !tbaa !56
  %351 = icmp eq i32 %350, 0
  br i1 %351, label %352, label %385

352:                                              ; preds = %342
  %353 = load ptr, ptr %3, align 8, !tbaa !5
  %354 = load ptr, ptr %4, align 8, !tbaa !5
  %355 = getelementptr inbounds %struct.png_info_def, ptr %354, i32 0, i32 22
  %356 = load ptr, ptr %355, align 8, !tbaa !55
  %357 = load i32, ptr %5, align 4, !tbaa !27
  %358 = sext i32 %357 to i64
  %359 = getelementptr inbounds %struct.png_text_struct, ptr %356, i64 %358
  %360 = getelementptr inbounds %struct.png_text_struct, ptr %359, i32 0, i32 1
  %361 = load ptr, ptr %360, align 8, !tbaa !58
  %362 = load ptr, ptr %4, align 8, !tbaa !5
  %363 = getelementptr inbounds %struct.png_info_def, ptr %362, i32 0, i32 22
  %364 = load ptr, ptr %363, align 8, !tbaa !55
  %365 = load i32, ptr %5, align 4, !tbaa !27
  %366 = sext i32 %365 to i64
  %367 = getelementptr inbounds %struct.png_text_struct, ptr %364, i64 %366
  %368 = getelementptr inbounds %struct.png_text_struct, ptr %367, i32 0, i32 2
  %369 = load ptr, ptr %368, align 8, !tbaa !61
  %370 = load ptr, ptr %4, align 8, !tbaa !5
  %371 = getelementptr inbounds %struct.png_info_def, ptr %370, i32 0, i32 22
  %372 = load ptr, ptr %371, align 8, !tbaa !55
  %373 = load i32, ptr %5, align 4, !tbaa !27
  %374 = sext i32 %373 to i64
  %375 = getelementptr inbounds %struct.png_text_struct, ptr %372, i64 %374
  %376 = getelementptr inbounds %struct.png_text_struct, ptr %375, i32 0, i32 0
  %377 = load i32, ptr %376, align 8, !tbaa !56
  call void @png_write_zTXt(ptr noundef %353, ptr noundef %361, ptr noundef %369, i32 noundef %377)
  %378 = load ptr, ptr %4, align 8, !tbaa !5
  %379 = getelementptr inbounds %struct.png_info_def, ptr %378, i32 0, i32 22
  %380 = load ptr, ptr %379, align 8, !tbaa !55
  %381 = load i32, ptr %5, align 4, !tbaa !27
  %382 = sext i32 %381 to i64
  %383 = getelementptr inbounds %struct.png_text_struct, ptr %380, i64 %382
  %384 = getelementptr inbounds %struct.png_text_struct, ptr %383, i32 0, i32 0
  store i32 -2, ptr %384, align 8, !tbaa !56
  br label %421

385:                                              ; preds = %342
  %386 = load ptr, ptr %4, align 8, !tbaa !5
  %387 = getelementptr inbounds %struct.png_info_def, ptr %386, i32 0, i32 22
  %388 = load ptr, ptr %387, align 8, !tbaa !55
  %389 = load i32, ptr %5, align 4, !tbaa !27
  %390 = sext i32 %389 to i64
  %391 = getelementptr inbounds %struct.png_text_struct, ptr %388, i64 %390
  %392 = getelementptr inbounds %struct.png_text_struct, ptr %391, i32 0, i32 0
  %393 = load i32, ptr %392, align 8, !tbaa !56
  %394 = icmp eq i32 %393, -1
  br i1 %394, label %395, label %420

395:                                              ; preds = %385
  %396 = load ptr, ptr %3, align 8, !tbaa !5
  %397 = load ptr, ptr %4, align 8, !tbaa !5
  %398 = getelementptr inbounds %struct.png_info_def, ptr %397, i32 0, i32 22
  %399 = load ptr, ptr %398, align 8, !tbaa !55
  %400 = load i32, ptr %5, align 4, !tbaa !27
  %401 = sext i32 %400 to i64
  %402 = getelementptr inbounds %struct.png_text_struct, ptr %399, i64 %401
  %403 = getelementptr inbounds %struct.png_text_struct, ptr %402, i32 0, i32 1
  %404 = load ptr, ptr %403, align 8, !tbaa !58
  %405 = load ptr, ptr %4, align 8, !tbaa !5
  %406 = getelementptr inbounds %struct.png_info_def, ptr %405, i32 0, i32 22
  %407 = load ptr, ptr %406, align 8, !tbaa !55
  %408 = load i32, ptr %5, align 4, !tbaa !27
  %409 = sext i32 %408 to i64
  %410 = getelementptr inbounds %struct.png_text_struct, ptr %407, i64 %409
  %411 = getelementptr inbounds %struct.png_text_struct, ptr %410, i32 0, i32 2
  %412 = load ptr, ptr %411, align 8, !tbaa !61
  call void @png_write_tEXt(ptr noundef %396, ptr noundef %404, ptr noundef %412, i64 noundef 0)
  %413 = load ptr, ptr %4, align 8, !tbaa !5
  %414 = getelementptr inbounds %struct.png_info_def, ptr %413, i32 0, i32 22
  %415 = load ptr, ptr %414, align 8, !tbaa !55
  %416 = load i32, ptr %5, align 4, !tbaa !27
  %417 = sext i32 %416 to i64
  %418 = getelementptr inbounds %struct.png_text_struct, ptr %415, i64 %417
  %419 = getelementptr inbounds %struct.png_text_struct, ptr %418, i32 0, i32 0
  store i32 -3, ptr %419, align 8, !tbaa !56
  br label %420

420:                                              ; preds = %395, %385
  br label %421

421:                                              ; preds = %420, %352
  br label %422

422:                                              ; preds = %421, %341
  br label %423

423:                                              ; preds = %422
  %424 = load i32, ptr %5, align 4, !tbaa !27
  %425 = add nsw i32 %424, 1
  store i32 %425, ptr %5, align 4, !tbaa !27
  br label %258, !llvm.loop !62

426:                                              ; preds = %258
  %427 = load ptr, ptr %3, align 8, !tbaa !5
  %428 = load ptr, ptr %4, align 8, !tbaa !5
  call void @write_unknown_chunks(ptr noundef %427, ptr noundef %428, i32 noundef 2)
  store i32 0, ptr %6, align 4
  br label %429

429:                                              ; preds = %426, %13
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  %430 = load i32, ptr %6, align 4
  switch i32 %430, label %432 [
    i32 0, label %431
    i32 1, label %431
  ]

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

432:                                              ; preds = %429
  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_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, !6, i64 240, !6, i64 248, !11, i64 256, !11, i64 260, !6, i64 264, !6, i64 272, !7, i64 280, !7, i64 281, !11, i64 284, !6, i64 288, !11, i64 296, !6, i64 304, !11, i64 312, !7, i64 316, !6, i64 320, !6, i64 328, !6, i64 336}
!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, !6, i64 576, !6, i64 584, !12, i64 592, !11, i64 600, !11, i64 604, !6, i64 608, !13, i64 616, !11, i64 620, !13, i64 624, !7, i64 626, !7, i64 627, !7, i64 628, !7, i64 629, !7, i64 630, !7, i64 631, !7, i64 632, !7, i64 633, !7, i64 634, !7, i64 635, !7, i64 636, !7, i64 637, !7, i64 638, !7, i64 639, !13, i64 640, !7, i64 642, !11, i64 644, !19, i64 648, !19, i64 658, !6, i64 672, !11, i64 680, !11, i64 684, !11, i64 688, !11, i64 692, !6, i64 696, !6, i64 704, !6, i64 712, !6, i64 720, !6, i64 728, !6, i64 736, !18, i64 744, !18, i64 749, !6, i64 760, !19, i64 768, !6, i64 784, !6, i64 792, !6, i64 800, !6, i64 808, !6, i64 816, !6, i64 824, !6, i64 832, !6, i64 840, !6, i64 848, !11, i64 856, !11, i64 860, !12, i64 864, !12, i64 872, !12, i64 880, !12, i64 888, !11, i64 896, !11, i64 900, !6, i64 904, !6, i64 912, !7, i64 920, !7, i64 921, !6, i64 928, !6, i64 936, !6, i64 944, !6, i64 952, !6, i64 960, !7, i64 968, !7, i64 969, !11, i64 1000, !6, i64 1008, !6, i64 1016, !11, i64 1024, !11, i64 1028, !6, i64 1032, !7, i64 1040, !7, i64 1041, !13, i64 1042, !13, i64 1044, !11, i64 1048, !7, i64 1052, !6, i64 1056, !6, i64 1064, !6, i64 1072, !6, i64 1080, !6, i64 1088, !6, i64 1096, !6, i64 1104, !7, i64 1112, !11, i64 1116, !11, i64 1120, !11, i64 1124, !12, i64 1128, !26, i64 1136, !12, i64 1168, !6, i64 1176, !12, i64 1184, !11, i64 1192, !11, i64 1196, !6, i64 1200, !7, i64 1208, !14, i64 1240}
!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 = !{!11, !11, i64 0}
!28 = !{!10, !13, i64 34}
!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 212}
!35 = !{!10, !11, i64 216}
!36 = !{!10, !7, i64 220}
!37 = !{!10, !6, i64 248}
!38 = !{!10, !11, i64 256}
!39 = !{!10, !11, i64 260}
!40 = !{!10, !7, i64 280}
!41 = !{!10, !7, i64 281}
!42 = !{!10, !6, i64 264}
!43 = !{!10, !6, i64 272}
!44 = !{!10, !7, i64 316}
!45 = !{!10, !6, i64 320}
!46 = !{!10, !6, i64 328}
!47 = !{!10, !11, i64 224}
!48 = !{!10, !11, i64 228}
!49 = !{!10, !7, i64 232}
!50 = !{!24, !11, i64 300}
!51 = !{!10, !11, i64 312}
!52 = !{!10, !6, i64 304}
!53 = distinct !{!53, !32}
!54 = !{!10, !11, i64 148}
!55 = !{!10, !6, i64 160}
!56 = !{!57, !11, i64 0}
!57 = !{!"png_text_struct", !11, i64 0, !6, i64 8, !6, i64 16, !12, i64 24, !12, i64 32, !6, i64 40, !6, i64 48}
!58 = !{!57, !6, i64 8}
!59 = !{!57, !6, i64 40}
!60 = !{!57, !6, i64 48}
!61 = !{!57, !6, i64 16}
!62 = distinct !{!62, !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 %186, 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) #3
  %.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) #4
  unreachable

20:                                               ; preds = %15, %9
  %21 = phi i32 [ %7, %15 ], [ %.pre, %9 ]
  %22 = and i32 %21, 16
  %.not117 = icmp eq i32 %22, 0
  br i1 %.not117, label %51, 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
  %.not118 = icmp eq i32 %26, 0
  br i1 %.not118, label %.loopexit128, 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 %.preheader127, label %.loopexit128

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

.lr.ph:                                           ; preds = %.preheader127
  %33 = getelementptr inbounds i8, ptr %1, i64 184
  br label %34

34:                                               ; preds = %.lr.ph, %34
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %34 ]
  %35 = load ptr, ptr %33, align 8, !tbaa !27
  %36 = getelementptr inbounds i8, ptr %35, i64 %indvars.iv
  %37 = load i8, ptr %36, align 1, !tbaa !28
  %38 = xor i8 %37, -1
  store i8 %38, ptr %36, align 1, !tbaa !28
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %39 = load i16, ptr %31, align 2, !tbaa !26
  %40 = zext i16 %39 to i64
  %41 = icmp ult i64 %indvars.iv.next, %40
  br i1 %41, label %34, label %.loopexit128, !llvm.loop !29

.loopexit128:                                     ; preds = %34, %.preheader127, %27, %23
  %42 = getelementptr inbounds i8, ptr %1, i64 184
  %43 = load ptr, ptr %42, align 8, !tbaa !27
  %44 = getelementptr inbounds i8, ptr %1, i64 192
  %45 = getelementptr inbounds i8, ptr %1, i64 34
  %46 = load i16, ptr %45, align 2, !tbaa !26
  %47 = zext i16 %46 to i32
  %48 = getelementptr inbounds i8, ptr %1, i64 37
  %49 = load i8, ptr %48, align 1, !tbaa !21
  %50 = zext i8 %49 to i32
  tail call void @png_write_tRNS(ptr noundef %0, ptr noundef %43, ptr noundef nonnull %44, i32 noundef %47, i32 noundef %50) #3
  %.pre142 = load i32, ptr %6, align 8, !tbaa !5
  br label %51

51:                                               ; preds = %.loopexit128, %20
  %52 = phi i32 [ %.pre142, %.loopexit128 ], [ %21, %20 ]
  %53 = and i32 %52, 32
  %.not119 = icmp eq i32 %53, 0
  br i1 %.not119, label %59, label %54

54:                                               ; preds = %51
  %55 = getelementptr inbounds i8, ptr %1, i64 202
  %56 = getelementptr inbounds i8, ptr %1, i64 37
  %57 = load i8, ptr %56, align 1, !tbaa !21
  %58 = zext i8 %57 to i32
  tail call void @png_write_bKGD(ptr noundef %0, ptr noundef nonnull %55, i32 noundef %58) #3
  %.pre143 = load i32, ptr %6, align 8, !tbaa !5
  br label %59

59:                                               ; preds = %54, %51
  %60 = phi i32 [ %.pre143, %54 ], [ %52, %51 ]
  %61 = and i32 %60, 64
  %.not120 = icmp eq i32 %61, 0
  br i1 %.not120, label %68, label %62

62:                                               ; preds = %59
  %63 = getelementptr inbounds i8, ptr %1, i64 240
  %64 = load ptr, ptr %63, align 8, !tbaa !31
  %65 = getelementptr inbounds i8, ptr %1, i64 32
  %66 = load i16, ptr %65, align 8, !tbaa !20
  %67 = zext i16 %66 to i32
  tail call void @png_write_hIST(ptr noundef %0, ptr noundef %64, i32 noundef %67) #3
  %.pre144 = load i32, ptr %6, align 8, !tbaa !5
  br label %68

68:                                               ; preds = %62, %59
  %69 = phi i32 [ %.pre144, %62 ], [ %60, %59 ]
  %70 = and i32 %69, 256
  %.not121 = icmp eq i32 %70, 0
  br i1 %.not121, label %79, label %71

71:                                               ; preds = %68
  %72 = getelementptr inbounds i8, ptr %1, i64 212
  %73 = load i32, ptr %72, align 4, !tbaa !32
  %74 = getelementptr inbounds i8, ptr %1, i64 216
  %75 = load i32, ptr %74, align 8, !tbaa !33
  %76 = getelementptr inbounds i8, ptr %1, i64 220
  %77 = load i8, ptr %76, align 4, !tbaa !34
  %78 = zext i8 %77 to i32
  tail call void @png_write_oFFs(ptr noundef %0, i32 noundef %73, i32 noundef %75, i32 noundef %78) #3
  %.pre145 = load i32, ptr %6, align 8, !tbaa !5
  br label %79

79:                                               ; preds = %71, %68
  %80 = phi i32 [ %.pre145, %71 ], [ %69, %68 ]
  %81 = and i32 %80, 1024
  %.not122 = icmp eq i32 %81, 0
  br i1 %.not122, label %99, label %82

82:                                               ; preds = %79
  %83 = getelementptr inbounds i8, ptr %1, i64 248
  %84 = load ptr, ptr %83, align 8, !tbaa !35
  %85 = getelementptr inbounds i8, ptr %1, i64 256
  %86 = load i32, ptr %85, align 8, !tbaa !36
  %87 = getelementptr inbounds i8, ptr %1, i64 260
  %88 = load i32, ptr %87, align 4, !tbaa !37
  %89 = getelementptr inbounds i8, ptr %1, i64 280
  %90 = load i8, ptr %89, align 8, !tbaa !38
  %91 = zext i8 %90 to i32
  %92 = getelementptr inbounds i8, ptr %1, i64 281
  %93 = load i8, ptr %92, align 1, !tbaa !39
  %94 = zext i8 %93 to i32
  %95 = getelementptr inbounds i8, ptr %1, i64 264
  %96 = load ptr, ptr %95, align 8, !tbaa !40
  %97 = getelementptr inbounds i8, ptr %1, i64 272
  %98 = load ptr, ptr %97, align 8, !tbaa !41
  tail call void @png_write_pCAL(ptr noundef %0, ptr noundef %84, i32 noundef %86, i32 noundef %88, i32 noundef %91, i32 noundef %94, ptr noundef %96, ptr noundef %98) #3
  %.pre146 = load i32, ptr %6, align 8, !tbaa !5
  br label %99

99:                                               ; preds = %82, %79
  %100 = phi i32 [ %.pre146, %82 ], [ %80, %79 ]
  %101 = and i32 %100, 16384
  %.not123 = icmp eq i32 %101, 0
  br i1 %.not123, label %110, label %102

102:                                              ; preds = %99
  %103 = getelementptr inbounds i8, ptr %1, i64 316
  %104 = load i8, ptr %103, align 4, !tbaa !42
  %105 = zext i8 %104 to i32
  %106 = getelementptr inbounds i8, ptr %1, i64 320
  %107 = load ptr, ptr %106, align 8, !tbaa !43
  %108 = getelementptr inbounds i8, ptr %1, i64 328
  %109 = load ptr, ptr %108, align 8, !tbaa !44
  tail call void @png_write_sCAL_s(ptr noundef %0, i32 noundef %105, ptr noundef %107, ptr noundef %109) #3
  %.pre147 = load i32, ptr %6, align 8, !tbaa !5
  br label %110

110:                                              ; preds = %102, %99
  %111 = phi i32 [ %.pre147, %102 ], [ %100, %99 ]
  %112 = and i32 %111, 128
  %.not124 = icmp eq i32 %112, 0
  br i1 %.not124, label %121, label %113

113:                                              ; preds = %110
  %114 = getelementptr inbounds i8, ptr %1, i64 224
  %115 = load i32, ptr %114, align 8, !tbaa !45
  %116 = getelementptr inbounds i8, ptr %1, i64 228
  %117 = load i32, ptr %116, align 4, !tbaa !46
  %118 = getelementptr inbounds i8, ptr %1, i64 232
  %119 = load i8, ptr %118, align 8, !tbaa !47
  %120 = zext i8 %119 to i32
  tail call void @png_write_pHYs(ptr noundef %0, i32 noundef %115, i32 noundef %117, i32 noundef %120) #3
  %.pre148 = load i32, ptr %6, align 8, !tbaa !5
  br label %121

121:                                              ; preds = %113, %110
  %122 = phi i32 [ %.pre148, %113 ], [ %111, %110 ]
  %123 = and i32 %122, 512
  %.not125 = icmp eq i32 %123, 0
  br i1 %.not125, label %129, label %124

124:                                              ; preds = %121
  %125 = getelementptr inbounds i8, ptr %1, i64 168
  tail call void @png_write_tIME(ptr noundef %0, ptr noundef nonnull %125) #3
  %126 = getelementptr inbounds i8, ptr %0, i64 300
  %127 = load i32, ptr %126, align 4, !tbaa !48
  %128 = or i32 %127, 512
  store i32 %128, ptr %126, align 4, !tbaa !48
  %.pre149 = load i32, ptr %6, align 8, !tbaa !5
  br label %129

129:                                              ; preds = %124, %121
  %130 = phi i32 [ %.pre149, %124 ], [ %122, %121 ]
  %131 = and i32 %130, 8192
  %.not126 = icmp eq i32 %131, 0
  br i1 %.not126, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %129
  %132 = getelementptr inbounds i8, ptr %1, i64 312
  %133 = load i32, ptr %132, align 8, !tbaa !49
  %134 = icmp sgt i32 %133, 0
  br i1 %134, label %.lr.ph131, label %.loopexit

.lr.ph131:                                        ; preds = %.preheader
  %135 = getelementptr inbounds i8, ptr %1, i64 304
  br label %136

136:                                              ; preds = %.lr.ph131, %136
  %indvars.iv136 = phi i64 [ 0, %.lr.ph131 ], [ %indvars.iv.next137, %136 ]
  %137 = load ptr, ptr %135, align 8, !tbaa !50
  %138 = getelementptr inbounds %struct.png_sPLT_struct, ptr %137, i64 %indvars.iv136
  tail call void @png_write_sPLT(ptr noundef %0, ptr noundef %138) #3
  %indvars.iv.next137 = add nuw nsw i64 %indvars.iv136, 1
  %139 = load i32, ptr %132, align 8, !tbaa !49
  %140 = sext i32 %139 to i64
  %141 = icmp slt i64 %indvars.iv.next137, %140
  br i1 %141, label %136, label %.loopexit, !llvm.loop !51

.loopexit:                                        ; preds = %136, %.preheader, %129
  %142 = getelementptr inbounds i8, ptr %1, i64 148
  %143 = load i32, ptr %142, align 4, !tbaa !52
  %144 = icmp sgt i32 %143, 0
  br i1 %144, label %.lr.ph133, label %._crit_edge

.lr.ph133:                                        ; preds = %.loopexit
  %145 = getelementptr inbounds i8, ptr %1, i64 160
  %.pre150 = load ptr, ptr %145, align 8, !tbaa !53
  br label %146

146:                                              ; preds = %.lr.ph133, %181
  %147 = phi ptr [ %.pre150, %.lr.ph133 ], [ %182, %181 ]
  %indvars.iv139 = phi i64 [ 0, %.lr.ph133 ], [ %indvars.iv.next140, %181 ]
  %148 = getelementptr inbounds %struct.png_text_struct, ptr %147, i64 %indvars.iv139
  %149 = load i32, ptr %148, align 8, !tbaa !54
  %150 = icmp sgt i32 %149, 0
  br i1 %150, label %151, label %166

151:                                              ; preds = %146
  %152 = getelementptr inbounds i8, ptr %148, i64 8
  %153 = load ptr, ptr %152, align 8, !tbaa !56
  %154 = getelementptr inbounds i8, ptr %148, i64 40
  %155 = load ptr, ptr %154, align 8, !tbaa !57
  %156 = getelementptr inbounds i8, ptr %148, i64 48
  %157 = load ptr, ptr %156, align 8, !tbaa !58
  %158 = getelementptr inbounds i8, ptr %148, i64 16
  %159 = load ptr, ptr %158, align 8, !tbaa !59
  tail call void @png_write_iTXt(ptr noundef %0, i32 noundef %149, ptr noundef %153, ptr noundef %155, ptr noundef %157, ptr noundef %159) #3
  %160 = load ptr, ptr %145, align 8, !tbaa !53
  %161 = getelementptr inbounds %struct.png_text_struct, ptr %160, i64 %indvars.iv139
  %162 = load i32, ptr %161, align 8, !tbaa !54
  %163 = icmp eq i32 %162, -1
  br i1 %163, label %164, label %165

164:                                              ; preds = %151
  store i32 -3, ptr %161, align 8, !tbaa !54
  br label %181

165:                                              ; preds = %151
  store i32 -2, ptr %161, align 8, !tbaa !54
  br label %181

166:                                              ; preds = %146
  switch i32 %149, label %181 [
    i32 0, label %167
    i32 -1, label %174
  ]

167:                                              ; preds = %166
  %168 = getelementptr inbounds i8, ptr %148, i64 8
  %169 = load ptr, ptr %168, align 8, !tbaa !56
  %170 = getelementptr inbounds i8, ptr %148, i64 16
  %171 = load ptr, ptr %170, align 8, !tbaa !59
  tail call void @png_write_zTXt(ptr noundef %0, ptr noundef %169, ptr noundef %171, i32 noundef 0) #3
  %172 = load ptr, ptr %145, align 8, !tbaa !53
  %173 = getelementptr inbounds %struct.png_text_struct, ptr %172, i64 %indvars.iv139
  store i32 -2, ptr %173, align 8, !tbaa !54
  br label %181

174:                                              ; preds = %166
  %175 = getelementptr inbounds i8, ptr %148, i64 8
  %176 = load ptr, ptr %175, align 8, !tbaa !56
  %177 = getelementptr inbounds i8, ptr %148, i64 16
  %178 = load ptr, ptr %177, align 8, !tbaa !59
  tail call void @png_write_tEXt(ptr noundef %0, ptr noundef %176, ptr noundef %178, i64 noundef 0) #3
  %179 = load ptr, ptr %145, align 8, !tbaa !53
  %180 = getelementptr inbounds %struct.png_text_struct, ptr %179, i64 %indvars.iv139
  store i32 -3, ptr %180, align 8, !tbaa !54
  br label %181

181:                                              ; preds = %166, %165, %164, %174, %167
  %182 = phi ptr [ %147, %166 ], [ %160, %165 ], [ %160, %164 ], [ %179, %174 ], [ %172, %167 ]
  %indvars.iv.next140 = add nuw nsw i64 %indvars.iv139, 1
  %183 = load i32, ptr %142, align 4, !tbaa !52
  %184 = sext i32 %183 to i64
  %185 = icmp slt i64 %indvars.iv.next140, %184
  br i1 %185, label %146, label %._crit_edge, !llvm.loop !60

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

186:                                              ; 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_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

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 = { nounwind }
attributes #4 = { 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, !11, i64 240, !11, i64 248, !7, i64 256, !7, i64 260, !11, i64 264, !11, i64 272, !8, i64 280, !8, i64 281, !7, i64 284, !11, i64 288, !7, i64 296, !11, i64 304, !7, i64 312, !8, i64 316, !11, i64 320, !11, i64 328, !11, i64 336}
!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, !11, i64 576, !11, i64 584, !10, i64 592, !7, i64 600, !7, i64 604, !11, i64 608, !12, i64 616, !7, i64 620, !12, i64 624, !8, i64 626, !8, i64 627, !8, i64 628, !8, i64 629, !8, i64 630, !8, i64 631, !8, i64 632, !8, i64 633, !8, i64 634, !8, i64 635, !8, i64 636, !8, i64 637, !8, i64 638, !8, i64 639, !12, i64 640, !8, i64 642, !7, i64 644, !18, i64 648, !18, i64 658, !11, i64 672, !7, i64 680, !7, i64 684, !7, i64 688, !7, i64 692, !11, i64 696, !11, i64 704, !11, i64 712, !11, i64 720, !11, i64 728, !11, i64 736, !17, i64 744, !17, i64 749, !11, i64 760, !18, i64 768, !11, i64 784, !11, i64 792, !11, i64 800, !11, i64 808, !11, i64 816, !11, i64 824, !11, i64 832, !11, i64 840, !11, i64 848, !7, i64 856, !7, i64 860, !10, i64 864, !10, i64 872, !10, i64 880, !10, i64 888, !7, i64 896, !7, i64 900, !11, i64 904, !11, i64 912, !8, i64 920, !8, i64 921, !11, i64 928, !11, i64 936, !11, i64 944, !11, i64 952, !11, i64 960, !8, i64 968, !8, i64 969, !7, i64 1000, !11, i64 1008, !11, i64 1016, !7, i64 1024, !7, i64 1028, !11, i64 1032, !8, i64 1040, !8, i64 1041, !12, i64 1042, !12, i64 1044, !7, i64 1048, !8, i64 1052, !11, i64 1056, !11, i64 1064, !11, i64 1072, !11, i64 1080, !11, i64 1088, !11, i64 1096, !11, i64 1104, !8, i64 1112, !7, i64 1116, !7, i64 1120, !7, i64 1124, !10, i64 1128, !25, i64 1136, !10, i64 1168, !11, i64 1176, !10, i64 1184, !7, i64 1192, !7, i64 1196, !11, i64 1200, !8, i64 1208, !13, i64 1240}
!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 = !{!6, !11, i64 240}
!32 = !{!6, !7, i64 212}
!33 = !{!6, !7, i64 216}
!34 = !{!6, !8, i64 220}
!35 = !{!6, !11, i64 248}
!36 = !{!6, !7, i64 256}
!37 = !{!6, !7, i64 260}
!38 = !{!6, !8, i64 280}
!39 = !{!6, !8, i64 281}
!40 = !{!6, !11, i64 264}
!41 = !{!6, !11, i64 272}
!42 = !{!6, !8, i64 316}
!43 = !{!6, !11, i64 320}
!44 = !{!6, !11, i64 328}
!45 = !{!6, !7, i64 224}
!46 = !{!6, !7, i64 228}
!47 = !{!6, !8, i64 232}
!48 = !{!23, !7, i64 300}
!49 = !{!6, !7, i64 312}
!50 = !{!6, !11, i64 304}
!51 = distinct !{!51, !30}
!52 = !{!6, !7, i64 148}
!53 = !{!6, !11, i64 160}
!54 = !{!55, !7, i64 0}
!55 = !{!"png_text_struct", !7, i64 0, !11, i64 8, !11, i64 16, !10, i64 24, !10, i64 32, !11, i64 40, !11, i64 48}
!56 = !{!55, !11, i64 8}
!57 = !{!55, !11, i64 40}
!58 = !{!55, !11, i64 48}
!59 = !{!55, !11, i64 16}
!60 = distinct !{!60, !30}


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