; LLVM IR from rdguez-mariano/fast_imas_IPOL :: io_png/libs/png (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_struct = type { i64, i64, i64, i64, ptr, i16, i16, i8, i8, i8, i8, i8, i8, i8, i8, [8 x i8], float, i8, i32, i32, ptr, %struct.png_time_struct, %struct.png_color_8_struct, ptr, %struct.png_color_16_struct, %struct.png_color_16_struct, i64, i64, i8, i64, i64, i8, ptr, float, float, float, float, float, float, float, float, ptr, i64, i64, ptr, ptr, i8, i8, i64, ptr, i64, ptr, ptr, i64, i8, ptr, i64, i8, double, double, ptr, ptr, ptr, i64, i64, i64, i64, i64, i64, i64, i64, i64 }
%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, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i8, i64, i64, i64, %struct.z_stream_s, ptr, i64, i32, i32, i32, i32, i32, i64, i64, i64, i64, i64, i64, i64, i64, ptr, ptr, ptr, ptr, ptr, ptr, %struct.png_row_info_struct, i64, i64, ptr, i16, i16, [5 x i8], i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i16, i8, float, %struct.png_color_16_struct, %struct.png_color_16_struct, ptr, i64, i64, i32, float, float, 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, i64, i64, i64, i64, i64, i64, i32, i32, i64, i64, ptr, ptr, ptr, ptr, ptr, i8, i8, ptr, ptr, ptr, ptr, ptr, ptr, i64, ptr, ptr, i32, ptr, i8, i16, i16, i16, i64, i64, i8, i8, i64, i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i64, i64, %struct.png_unknown_chunk_t, i64, i64, ptr }
%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_row_info_struct = type { i64, i64, i8, i8, i8, i8 }
%struct.png_unknown_chunk_t = type { [5 x i8], ptr, i64, i8 }
%struct.png_sPLT_struct = type { ptr, i8, ptr, i64 }
%struct.png_text_struct = type { i32, ptr, ptr, i64 }

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

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

declare void @png_warning(ptr noundef, ptr noundef) #1

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

declare i32 @png_handle_as_unknown(ptr noundef, ptr noundef) #1

declare void @png_write_chunk(ptr noundef, ptr noundef, ptr noundef, i64 noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local void @png_write_info(ptr noundef %0, ptr 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 ptr, align 8
  %9 = 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) #3
  %10 = load ptr, ptr %3, align 8, !tbaa !5
  %11 = icmp eq ptr %10, null
  br i1 %11, label %15, label %12

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

15:                                               ; preds = %12, %2
  store i32 1, ptr %6, align 4
  br label %449

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

24:                                               ; preds = %16
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.png_info_struct, ptr %26, i32 0, i32 4
  %28 = load ptr, ptr %27, align 8, !tbaa !19
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.png_info_struct, ptr %29, i32 0, i32 5
  %31 = load i16, ptr %30, align 8, !tbaa !20
  %32 = zext i16 %31 to i64
  call void @png_write_PLTE(ptr noundef %25, ptr noundef %28, i64 noundef %32)
  br label %42

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

39:                                               ; preds = %33
  %40 = load ptr, ptr %3, align 8, !tbaa !5
  call void @png_error(ptr noundef %40, ptr noundef @.str.2)
  br label %41

41:                                               ; preds = %39, %33
  br label %42

42:                                               ; preds = %41, %24
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.png_info_struct, ptr %43, i32 0, i32 2
  %45 = load i64, ptr %44, align 8, !tbaa !9
  %46 = and i64 %45, 16
  %47 = icmp ne i64 %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 14
  %51 = load i64, ptr %50, align 8, !tbaa !22
  %52 = and i64 %51, 524288
  %53 = icmp ne i64 %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_struct, ptr %55, i32 0, i32 8
  %57 = load i8, ptr %56, align 1, !tbaa !21
  %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) #3
  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_struct, 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_struct, ptr %69, i32 0, i32 23
  %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_struct, ptr %79, i32 0, i32 23
  %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) #3
  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_struct, ptr %91, i32 0, i32 23
  %93 = load ptr, ptr %92, align 8, !tbaa !29
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.png_info_struct, ptr %94, i32 0, i32 24
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.png_info_struct, 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_struct, ptr %100, i32 0, i32 8
  %102 = load i8, ptr %101, align 1, !tbaa !21
  %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_struct, ptr %105, i32 0, i32 2
  %107 = load i64, ptr %106, align 8, !tbaa !9
  %108 = and i64 %107, 32
  %109 = icmp ne i64 %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_struct, ptr %112, i32 0, i32 25
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.png_info_struct, ptr %114, i32 0, i32 8
  %116 = load i8, ptr %115, align 1, !tbaa !21
  %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_struct, ptr %119, i32 0, i32 2
  %121 = load i64, ptr %120, align 8, !tbaa !9
  %122 = and i64 %121, 64
  %123 = icmp ne i64 %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_struct, ptr %126, i32 0, i32 32
  %128 = load ptr, ptr %127, align 8, !tbaa !33
  %129 = load ptr, ptr %4, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.png_info_struct, ptr %129, i32 0, i32 5
  %131 = load i16, ptr %130, align 8, !tbaa !20
  %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_struct, ptr %134, i32 0, i32 2
  %136 = load i64, ptr %135, align 8, !tbaa !9
  %137 = and i64 %136, 256
  %138 = icmp ne i64 %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_struct, ptr %141, i32 0, i32 26
  %143 = load i64, ptr %142, align 8, !tbaa !34
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.png_info_struct, ptr %144, i32 0, i32 27
  %146 = load i64, ptr %145, align 8, !tbaa !35
  %147 = load ptr, ptr %4, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.png_info_struct, ptr %147, i32 0, i32 28
  %149 = load i8, ptr %148, align 8, !tbaa !36
  %150 = zext i8 %149 to i32
  call void @png_write_oFFs(ptr noundef %140, i64 noundef %143, i64 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_struct, ptr %152, i32 0, i32 2
  %154 = load i64, ptr %153, align 8, !tbaa !9
  %155 = and i64 %154, 1024
  %156 = icmp ne i64 %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_struct, ptr %159, i32 0, i32 41
  %161 = load ptr, ptr %160, align 8, !tbaa !37
  %162 = load ptr, ptr %4, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.png_info_struct, ptr %162, i32 0, i32 42
  %164 = load i64, ptr %163, align 8, !tbaa !38
  %165 = load ptr, ptr %4, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.png_info_struct, ptr %165, i32 0, i32 43
  %167 = load i64, ptr %166, align 8, !tbaa !39
  %168 = load ptr, ptr %4, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.png_info_struct, ptr %168, i32 0, i32 46
  %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_struct, ptr %172, i32 0, i32 47
  %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_struct, ptr %176, i32 0, i32 44
  %178 = load ptr, ptr %177, align 8, !tbaa !42
  %179 = load ptr, ptr %4, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.png_info_struct, ptr %179, i32 0, i32 45
  %181 = load ptr, ptr %180, align 8, !tbaa !43
  call void @png_write_pCAL(ptr noundef %158, ptr noundef %161, i64 noundef %164, i64 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_struct, ptr %183, i32 0, i32 2
  %185 = load i64, ptr %184, align 8, !tbaa !9
  %186 = and i64 %185, 16384
  %187 = icmp ne i64 %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_struct, ptr %190, i32 0, i32 57
  %192 = load i8, ptr %191, align 8, !tbaa !44
  %193 = zext i8 %192 to i32
  %194 = load ptr, ptr %4, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.png_info_struct, ptr %194, i32 0, i32 58
  %196 = load double, ptr %195, align 8, !tbaa !45
  %197 = load ptr, ptr %4, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.png_info_struct, ptr %197, i32 0, i32 59
  %199 = load double, ptr %198, align 8, !tbaa !46
  call void @png_write_sCAL(ptr noundef %189, i32 noundef %193, double noundef %196, double noundef %199)
  br label %200

200:                                              ; preds = %188, %182
  %201 = load ptr, ptr %4, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.png_info_struct, ptr %201, i32 0, i32 2
  %203 = load i64, ptr %202, align 8, !tbaa !9
  %204 = and i64 %203, 128
  %205 = icmp ne i64 %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_struct, ptr %208, i32 0, i32 29
  %210 = load i64, ptr %209, align 8, !tbaa !47
  %211 = load ptr, ptr %4, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.png_info_struct, ptr %211, i32 0, i32 30
  %213 = load i64, ptr %212, align 8, !tbaa !48
  %214 = load ptr, ptr %4, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.png_info_struct, ptr %214, i32 0, i32 31
  %216 = load i8, ptr %215, align 8, !tbaa !49
  %217 = zext i8 %216 to i32
  call void @png_write_pHYs(ptr noundef %207, i64 noundef %210, i64 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_struct, ptr %219, i32 0, i32 2
  %221 = load i64, ptr %220, align 8, !tbaa !9
  %222 = and i64 %221, 512
  %223 = icmp ne i64 %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_struct, ptr %226, i32 0, i32 21
  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 12
  %230 = load i64, ptr %229, align 8, !tbaa !50
  %231 = or i64 %230, 512
  store i64 %231, ptr %229, align 8, !tbaa !50
  br label %232

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

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

239:                                              ; preds = %254, %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_struct, ptr %241, i32 0, i32 56
  %243 = load i64, ptr %242, align 8, !tbaa !51
  %244 = trunc i64 %243 to i32
  %245 = icmp slt i32 %240, %244
  br i1 %245, label %246, label %257

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

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

257:                                              ; preds = %239
  br label %258

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

259:                                              ; preds = %365, %258
  %260 = load i32, ptr %5, align 4, !tbaa !27
  %261 = load ptr, ptr %4, align 8, !tbaa !5
  %262 = getelementptr inbounds %struct.png_info_struct, ptr %261, i32 0, i32 18
  %263 = load i32, ptr %262, align 4, !tbaa !54
  %264 = icmp slt i32 %260, %263
  br i1 %264, label %265, label %368

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

275:                                              ; preds = %265
  %276 = load ptr, ptr %3, align 8, !tbaa !5
  call void @png_warning(ptr noundef %276, ptr noundef @.str.3)
  %277 = load ptr, ptr %4, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct.png_info_struct, ptr %277, i32 0, i32 20
  %279 = load ptr, ptr %278, align 8, !tbaa !55
  %280 = load i32, ptr %5, align 4, !tbaa !27
  %281 = sext i32 %280 to i64
  %282 = getelementptr inbounds %struct.png_text_struct, ptr %279, i64 %281
  %283 = getelementptr inbounds %struct.png_text_struct, ptr %282, i32 0, i32 0
  store i32 -3, ptr %283, align 8, !tbaa !56
  br label %364

284:                                              ; preds = %265
  %285 = load ptr, ptr %4, align 8, !tbaa !5
  %286 = getelementptr inbounds %struct.png_info_struct, ptr %285, i32 0, i32 20
  %287 = load ptr, ptr %286, align 8, !tbaa !55
  %288 = load i32, ptr %5, align 4, !tbaa !27
  %289 = sext i32 %288 to i64
  %290 = getelementptr inbounds %struct.png_text_struct, ptr %287, i64 %289
  %291 = getelementptr inbounds %struct.png_text_struct, ptr %290, i32 0, i32 0
  %292 = load i32, ptr %291, align 8, !tbaa !56
  %293 = icmp eq i32 %292, 0
  br i1 %293, label %294, label %327

294:                                              ; preds = %284
  %295 = load ptr, ptr %3, align 8, !tbaa !5
  %296 = load ptr, ptr %4, align 8, !tbaa !5
  %297 = getelementptr inbounds %struct.png_info_struct, ptr %296, i32 0, i32 20
  %298 = load ptr, ptr %297, align 8, !tbaa !55
  %299 = load i32, ptr %5, align 4, !tbaa !27
  %300 = sext i32 %299 to i64
  %301 = getelementptr inbounds %struct.png_text_struct, ptr %298, i64 %300
  %302 = getelementptr inbounds %struct.png_text_struct, ptr %301, i32 0, i32 1
  %303 = load ptr, ptr %302, align 8, !tbaa !58
  %304 = load ptr, ptr %4, align 8, !tbaa !5
  %305 = getelementptr inbounds %struct.png_info_struct, ptr %304, i32 0, i32 20
  %306 = load ptr, ptr %305, align 8, !tbaa !55
  %307 = load i32, ptr %5, align 4, !tbaa !27
  %308 = sext i32 %307 to i64
  %309 = getelementptr inbounds %struct.png_text_struct, ptr %306, i64 %308
  %310 = getelementptr inbounds %struct.png_text_struct, ptr %309, i32 0, i32 2
  %311 = load ptr, ptr %310, align 8, !tbaa !59
  %312 = load ptr, ptr %4, align 8, !tbaa !5
  %313 = getelementptr inbounds %struct.png_info_struct, ptr %312, i32 0, i32 20
  %314 = load ptr, ptr %313, align 8, !tbaa !55
  %315 = load i32, ptr %5, align 4, !tbaa !27
  %316 = sext i32 %315 to i64
  %317 = getelementptr inbounds %struct.png_text_struct, ptr %314, i64 %316
  %318 = getelementptr inbounds %struct.png_text_struct, ptr %317, i32 0, i32 0
  %319 = load i32, ptr %318, align 8, !tbaa !56
  call void @png_write_zTXt(ptr noundef %295, ptr noundef %303, ptr noundef %311, i64 noundef 0, i32 noundef %319)
  %320 = load ptr, ptr %4, align 8, !tbaa !5
  %321 = getelementptr inbounds %struct.png_info_struct, ptr %320, i32 0, i32 20
  %322 = load ptr, ptr %321, align 8, !tbaa !55
  %323 = load i32, ptr %5, align 4, !tbaa !27
  %324 = sext i32 %323 to i64
  %325 = getelementptr inbounds %struct.png_text_struct, ptr %322, i64 %324
  %326 = getelementptr inbounds %struct.png_text_struct, ptr %325, i32 0, i32 0
  store i32 -2, ptr %326, align 8, !tbaa !56
  br label %363

327:                                              ; preds = %284
  %328 = load ptr, ptr %4, align 8, !tbaa !5
  %329 = getelementptr inbounds %struct.png_info_struct, ptr %328, i32 0, i32 20
  %330 = load ptr, ptr %329, align 8, !tbaa !55
  %331 = load i32, ptr %5, align 4, !tbaa !27
  %332 = sext i32 %331 to i64
  %333 = getelementptr inbounds %struct.png_text_struct, ptr %330, i64 %332
  %334 = getelementptr inbounds %struct.png_text_struct, ptr %333, i32 0, i32 0
  %335 = load i32, ptr %334, align 8, !tbaa !56
  %336 = icmp eq i32 %335, -1
  br i1 %336, label %337, label %362

337:                                              ; preds = %327
  %338 = load ptr, ptr %3, align 8, !tbaa !5
  %339 = load ptr, ptr %4, align 8, !tbaa !5
  %340 = getelementptr inbounds %struct.png_info_struct, ptr %339, i32 0, i32 20
  %341 = load ptr, ptr %340, align 8, !tbaa !55
  %342 = load i32, ptr %5, align 4, !tbaa !27
  %343 = sext i32 %342 to i64
  %344 = getelementptr inbounds %struct.png_text_struct, ptr %341, i64 %343
  %345 = getelementptr inbounds %struct.png_text_struct, ptr %344, i32 0, i32 1
  %346 = load ptr, ptr %345, align 8, !tbaa !58
  %347 = load ptr, ptr %4, align 8, !tbaa !5
  %348 = getelementptr inbounds %struct.png_info_struct, ptr %347, i32 0, i32 20
  %349 = load ptr, ptr %348, align 8, !tbaa !55
  %350 = load i32, ptr %5, align 4, !tbaa !27
  %351 = sext i32 %350 to i64
  %352 = getelementptr inbounds %struct.png_text_struct, ptr %349, i64 %351
  %353 = getelementptr inbounds %struct.png_text_struct, ptr %352, i32 0, i32 2
  %354 = load ptr, ptr %353, align 8, !tbaa !59
  call void @png_write_tEXt(ptr noundef %338, ptr noundef %346, ptr noundef %354, i64 noundef 0)
  %355 = load ptr, ptr %4, align 8, !tbaa !5
  %356 = getelementptr inbounds %struct.png_info_struct, ptr %355, i32 0, i32 20
  %357 = load ptr, ptr %356, align 8, !tbaa !55
  %358 = load i32, ptr %5, align 4, !tbaa !27
  %359 = sext i32 %358 to i64
  %360 = getelementptr inbounds %struct.png_text_struct, ptr %357, i64 %359
  %361 = getelementptr inbounds %struct.png_text_struct, ptr %360, i32 0, i32 0
  store i32 -3, ptr %361, align 8, !tbaa !56
  br label %362

362:                                              ; preds = %337, %327
  br label %363

363:                                              ; preds = %362, %294
  br label %364

364:                                              ; preds = %363, %275
  br label %365

365:                                              ; preds = %364
  %366 = load i32, ptr %5, align 4, !tbaa !27
  %367 = add nsw i32 %366, 1
  store i32 %367, ptr %5, align 4, !tbaa !27
  br label %259, !llvm.loop !60

368:                                              ; preds = %259
  %369 = load ptr, ptr %4, align 8, !tbaa !5
  %370 = getelementptr inbounds %struct.png_info_struct, ptr %369, i32 0, i32 50
  %371 = load i64, ptr %370, align 8, !tbaa !61
  %372 = icmp ne i64 %371, 0
  br i1 %372, label %373, label %448

373:                                              ; preds = %368
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %374 = load ptr, ptr %4, align 8, !tbaa !5
  %375 = getelementptr inbounds %struct.png_info_struct, ptr %374, i32 0, i32 49
  %376 = load ptr, ptr %375, align 8, !tbaa !62
  store ptr %376, ptr %8, align 8, !tbaa !5
  br label %377

377:                                              ; preds = %444, %373
  %378 = load ptr, ptr %8, align 8, !tbaa !5
  %379 = load ptr, ptr %4, align 8, !tbaa !5
  %380 = getelementptr inbounds %struct.png_info_struct, ptr %379, i32 0, i32 49
  %381 = load ptr, ptr %380, align 8, !tbaa !62
  %382 = load ptr, ptr %4, align 8, !tbaa !5
  %383 = getelementptr inbounds %struct.png_info_struct, ptr %382, i32 0, i32 50
  %384 = load i64, ptr %383, align 8, !tbaa !61
  %385 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %381, i64 %384
  %386 = icmp ult ptr %378, %385
  br i1 %386, label %387, label %447

387:                                              ; preds = %377
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  %388 = load ptr, ptr %3, align 8, !tbaa !5
  %389 = load ptr, ptr %8, align 8, !tbaa !5
  %390 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %389, i32 0, i32 0
  %391 = getelementptr inbounds [5 x i8], ptr %390, i64 0, i64 0
  %392 = call i32 @png_handle_as_unknown(ptr noundef %388, ptr noundef %391)
  store i32 %392, ptr %9, align 4, !tbaa !27
  %393 = load i32, ptr %9, align 4, !tbaa !27
  %394 = icmp ne i32 %393, 1
  br i1 %394, label %395, label %443

395:                                              ; preds = %387
  %396 = load ptr, ptr %8, align 8, !tbaa !5
  %397 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %396, i32 0, i32 3
  %398 = load i8, ptr %397, align 8, !tbaa !63
  %399 = zext i8 %398 to i32
  %400 = icmp ne i32 %399, 0
  br i1 %400, label %401, label %443

401:                                              ; preds = %395
  %402 = load ptr, ptr %8, align 8, !tbaa !5
  %403 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %402, i32 0, i32 3
  %404 = load i8, ptr %403, align 8, !tbaa !63
  %405 = zext i8 %404 to i32
  %406 = and i32 %405, 2
  %407 = icmp ne i32 %406, 0
  br i1 %407, label %408, label %443

408:                                              ; preds = %401
  %409 = load ptr, ptr %8, align 8, !tbaa !5
  %410 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %409, i32 0, i32 3
  %411 = load i8, ptr %410, align 8, !tbaa !63
  %412 = zext i8 %411 to i32
  %413 = and i32 %412, 4
  %414 = icmp ne i32 %413, 0
  br i1 %414, label %443, label %415

415:                                              ; preds = %408
  %416 = load ptr, ptr %8, align 8, !tbaa !5
  %417 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %416, i32 0, i32 0
  %418 = getelementptr inbounds [5 x i8], ptr %417, i64 0, i64 3
  %419 = load i8, ptr %418, align 1, !tbaa !30
  %420 = zext i8 %419 to i32
  %421 = and i32 %420, 32
  %422 = icmp ne i32 %421, 0
  br i1 %422, label %432, label %423

423:                                              ; preds = %415
  %424 = load i32, ptr %9, align 4, !tbaa !27
  %425 = icmp eq i32 %424, 3
  br i1 %425, label %432, label %426

426:                                              ; preds = %423
  %427 = load ptr, ptr %3, align 8, !tbaa !5
  %428 = getelementptr inbounds %struct.png_struct_def, ptr %427, i32 0, i32 13
  %429 = load i64, ptr %428, align 8, !tbaa !64
  %430 = and i64 %429, 65536
  %431 = icmp ne i64 %430, 0
  br i1 %431, label %432, label %443

432:                                              ; preds = %426, %423, %415
  %433 = load ptr, ptr %3, align 8, !tbaa !5
  %434 = load ptr, ptr %8, align 8, !tbaa !5
  %435 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %434, i32 0, i32 0
  %436 = getelementptr inbounds [5 x i8], ptr %435, i64 0, i64 0
  %437 = load ptr, ptr %8, align 8, !tbaa !5
  %438 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %437, i32 0, i32 1
  %439 = load ptr, ptr %438, align 8, !tbaa !65
  %440 = load ptr, ptr %8, align 8, !tbaa !5
  %441 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %440, i32 0, i32 2
  %442 = load i64, ptr %441, align 8, !tbaa !66
  call void @png_write_chunk(ptr noundef %433, ptr noundef %436, ptr noundef %439, i64 noundef %442)
  br label %443

443:                                              ; preds = %432, %426, %408, %401, %395, %387
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  br label %444

444:                                              ; preds = %443
  %445 = load ptr, ptr %8, align 8, !tbaa !5
  %446 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %445, i32 1
  store ptr %446, ptr %8, align 8, !tbaa !5
  br label %377, !llvm.loop !67

447:                                              ; preds = %377
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  br label %448

448:                                              ; preds = %447, %368
  store i32 0, ptr %6, align 4
  br label %449

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

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

452:                                              ; preds = %449
  unreachable
}

declare void @png_write_PLTE(ptr noundef, ptr noundef, i64 noundef) #1

declare void @png_error(ptr noundef, ptr noundef) #1

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

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

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

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

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

declare void @png_write_sCAL(ptr noundef, i32 noundef, double noundef, double noundef) #1

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

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

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

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

declare void @png_write_tEXt(ptr noundef, ptr noundef, ptr noundef, i64 noundef) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 16}
!10 = !{!"png_info_struct", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !6, i64 32, !12, i64 40, !12, i64 42, !7, i64 44, !7, i64 45, !7, i64 46, !7, i64 47, !7, i64 48, !7, i64 49, !7, i64 50, !7, i64 51, !7, i64 52, !13, i64 60, !7, i64 64, !14, i64 68, !14, i64 72, !6, i64 80, !15, i64 88, !16, i64 96, !6, i64 104, !17, i64 112, !17, i64 122, !11, i64 136, !11, i64 144, !7, i64 152, !11, i64 160, !11, i64 168, !7, i64 176, !6, i64 184, !13, i64 192, !13, i64 196, !13, i64 200, !13, i64 204, !13, i64 208, !13, i64 212, !13, i64 216, !13, i64 220, !6, i64 224, !11, i64 232, !11, i64 240, !6, i64 248, !6, i64 256, !7, i64 264, !7, i64 265, !11, i64 272, !6, i64 280, !11, i64 288, !6, i64 296, !6, i64 304, !11, i64 312, !7, i64 320, !6, i64 328, !11, i64 336, !7, i64 344, !18, i64 352, !18, i64 360, !6, i64 368, !6, i64 376, !6, i64 384, !11, i64 392, !11, i64 400, !11, i64 408, !11, i64 416, !11, i64 424, !11, i64 432, !11, i64 440, !11, i64 448, !11, i64 456}
!11 = !{!"long", !7, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = !{!"float", !7, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!"png_time_struct", !12, i64 0, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !7, i64 6}
!16 = !{!"png_color_8_struct", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4}
!17 = !{!"png_color_16_struct", !7, i64 0, !12, i64 2, !12, i64 4, !12, i64 6, !12, i64 8}
!18 = !{!"double", !7, i64 0}
!19 = !{!10, !6, i64 32}
!20 = !{!10, !12, i64 40}
!21 = !{!10, !7, i64 45}
!22 = !{!23, !11, i64 296}
!23 = !{!"png_struct_def", !7, i64 0, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !7, i64 272, !7, i64 273, !11, i64 280, !11, i64 288, !11, i64 296, !24, i64 304, !6, i64 416, !11, i64 424, !14, i64 432, !14, i64 436, !14, i64 440, !14, i64 444, !14, i64 448, !11, i64 456, !11, i64 464, !11, i64 472, !11, i64 480, !11, i64 488, !11, i64 496, !11, i64 504, !11, i64 512, !6, i64 520, !6, i64 528, !6, i64 536, !6, i64 544, !6, i64 552, !6, i64 560, !25, i64 568, !11, i64 592, !11, i64 600, !6, i64 608, !12, i64 616, !12, i64 618, !7, i64 620, !7, i64 625, !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, !12, i64 638, !7, i64 640, !13, i64 644, !17, i64 648, !17, i64 658, !6, i64 672, !11, i64 680, !11, i64 688, !14, i64 696, !13, i64 700, !13, i64 704, !6, i64 712, !6, i64 720, !6, i64 728, !6, i64 736, !6, i64 744, !6, i64 752, !16, i64 760, !16, i64 765, !6, i64 776, !17, i64 784, !6, i64 800, !6, i64 808, !6, i64 816, !6, i64 824, !6, i64 832, !6, i64 840, !6, i64 848, !6, i64 856, !6, i64 864, !11, i64 872, !11, i64 880, !11, i64 888, !11, i64 896, !11, i64 904, !11, i64 912, !14, i64 920, !14, i64 924, !11, i64 928, !11, i64 936, !6, i64 944, !6, i64 952, !6, i64 960, !6, i64 968, !6, i64 976, !7, i64 984, !7, i64 985, !6, i64 992, !6, i64 1000, !6, i64 1008, !6, i64 1016, !6, i64 1024, !6, i64 1032, !11, i64 1040, !6, i64 1048, !6, i64 1056, !14, i64 1064, !6, i64 1072, !7, i64 1080, !12, i64 1082, !12, i64 1084, !12, i64 1086, !11, i64 1088, !11, i64 1096, !7, i64 1104, !7, i64 1105, !11, i64 1112, !11, i64 1120, !6, i64 1128, !6, i64 1136, !6, i64 1144, !6, i64 1152, !6, i64 1160, !6, i64 1168, !6, i64 1176, !7, i64 1184, !11, i64 1192, !11, i64 1200, !26, i64 1208, !11, i64 1240, !11, i64 1248, !6, i64 1256}
!24 = !{!"z_stream_s", !6, i64 0, !14, i64 8, !11, i64 16, !6, i64 24, !14, i64 32, !11, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !14, i64 88, !11, i64 96, !11, i64 104}
!25 = !{!"png_row_info_struct", !11, i64 0, !11, i64 8, !7, i64 16, !7, i64 17, !7, i64 18, !7, i64 19}
!26 = !{!"png_unknown_chunk_t", !7, i64 0, !6, i64 8, !11, i64 16, !7, i64 24}
!27 = !{!14, !14, i64 0}
!28 = !{!10, !12, i64 42}
!29 = !{!10, !6, i64 104}
!30 = !{!7, !7, i64 0}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = !{!10, !6, i64 184}
!34 = !{!10, !11, i64 136}
!35 = !{!10, !11, i64 144}
!36 = !{!10, !7, i64 152}
!37 = !{!10, !6, i64 224}
!38 = !{!10, !11, i64 232}
!39 = !{!10, !11, i64 240}
!40 = !{!10, !7, i64 264}
!41 = !{!10, !7, i64 265}
!42 = !{!10, !6, i64 248}
!43 = !{!10, !6, i64 256}
!44 = !{!10, !7, i64 344}
!45 = !{!10, !18, i64 352}
!46 = !{!10, !18, i64 360}
!47 = !{!10, !11, i64 160}
!48 = !{!10, !11, i64 168}
!49 = !{!10, !7, i64 176}
!50 = !{!23, !11, i64 280}
!51 = !{!10, !11, i64 336}
!52 = !{!10, !6, i64 328}
!53 = distinct !{!53, !32}
!54 = !{!10, !14, i64 68}
!55 = !{!10, !6, i64 80}
!56 = !{!57, !14, i64 0}
!57 = !{!"png_text_struct", !14, i64 0, !6, i64 8, !6, i64 16, !11, i64 24}
!58 = !{!57, !6, i64 8}
!59 = !{!57, !6, i64 16}
!60 = distinct !{!60, !32}
!61 = !{!10, !11, i64 288}
!62 = !{!10, !6, i64 280}
!63 = !{!26, !7, i64 24}
!64 = !{!23, !11, i64 288}
!65 = !{!26, !6, i64 8}
!66 = !{!26, !11, i64 16}
!67 = distinct !{!67, !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, i64 }
%struct.png_text_struct = type { i32, ptr, ptr, i64 }
%struct.png_unknown_chunk_t = type { [5 x i8], ptr, i64, i8 }

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

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

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

declare i32 @png_handle_as_unknown(ptr noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local void @png_write_info(ptr noundef %0, ptr 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 %.loopexit, 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 16
  %7 = load i64, ptr %6, align 8, !tbaa !5
  %8 = and i64 %7, 8
  %.not = icmp eq i64 %8, 0
  br i1 %.not, label %15, label %9

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

15:                                               ; preds = %5
  %16 = getelementptr inbounds i8, ptr %1, i64 45
  %17 = load i8, ptr %16, align 1, !tbaa !20
  %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) #2
  br label %20

20:                                               ; preds = %15, %19, %9
  %21 = load i64, ptr %6, align 8, !tbaa !5
  %22 = and i64 %21, 16
  %.not124 = icmp eq i64 %22, 0
  br i1 %.not124, label %51, label %23

23:                                               ; preds = %20
  %24 = getelementptr inbounds i8, ptr %0, i64 296
  %25 = load i64, ptr %24, align 8, !tbaa !21
  %26 = and i64 %25, 524288
  %.not125 = icmp eq i64 %26, 0
  br i1 %.not125, label %.loopexit144, label %27

27:                                               ; preds = %23
  %28 = getelementptr inbounds i8, ptr %1, i64 45
  %29 = load i8, ptr %28, align 1, !tbaa !20
  %30 = icmp eq i8 %29, 3
  br i1 %30, label %.preheader143, label %.loopexit144

.preheader143:                                    ; preds = %27
  %31 = getelementptr inbounds i8, ptr %1, i64 42
  %32 = load i16, ptr %31, align 2, !tbaa !26
  %.not153 = icmp eq i16 %32, 0
  br i1 %.not153, label %.loopexit144, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader143
  %33 = getelementptr inbounds i8, ptr %1, i64 104
  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 %.loopexit144, !llvm.loop !29

.loopexit144:                                     ; preds = %34, %.preheader143, %27, %23
  %42 = getelementptr inbounds i8, ptr %1, i64 104
  %43 = load ptr, ptr %42, align 8, !tbaa !27
  %44 = getelementptr inbounds i8, ptr %1, i64 112
  %45 = getelementptr inbounds i8, ptr %1, i64 42
  %46 = load i16, ptr %45, align 2, !tbaa !26
  %47 = zext i16 %46 to i32
  %48 = getelementptr inbounds i8, ptr %1, i64 45
  %49 = load i8, ptr %48, align 1, !tbaa !20
  %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) #2
  %.pre = load i64, ptr %6, align 8, !tbaa !5
  br label %51

51:                                               ; preds = %.loopexit144, %20
  %52 = phi i64 [ %.pre, %.loopexit144 ], [ %21, %20 ]
  %53 = and i64 %52, 32
  %.not126 = icmp eq i64 %53, 0
  br i1 %.not126, label %59, label %54

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

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

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

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

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

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

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

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

102:                                              ; preds = %99
  %103 = getelementptr inbounds i8, ptr %1, i64 344
  %104 = load i8, ptr %103, align 8, !tbaa !42
  %105 = zext i8 %104 to i32
  %106 = getelementptr inbounds i8, ptr %1, i64 352
  %107 = load double, ptr %106, align 8, !tbaa !43
  %108 = getelementptr inbounds i8, ptr %1, i64 360
  %109 = load double, ptr %108, align 8, !tbaa !44
  tail call void @png_write_sCAL(ptr noundef %0, i32 noundef %105, double noundef %107, double noundef %109) #2
  %.pre165 = load i64, ptr %6, align 8, !tbaa !5
  br label %110

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

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

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

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

129:                                              ; preds = %124, %121
  %130 = phi i64 [ %.pre167, %124 ], [ %122, %121 ]
  %131 = and i64 %130, 8192
  %.not133 = icmp eq i64 %131, 0
  br i1 %.not133, label %.loopexit142, label %.preheader

.preheader:                                       ; preds = %129
  %132 = getelementptr inbounds i8, ptr %1, i64 336
  %133 = load i64, ptr %132, align 8, !tbaa !49
  %134 = trunc i64 %133 to i32
  %135 = icmp sgt i32 %134, 0
  br i1 %135, label %.lr.ph147, label %.loopexit142

.lr.ph147:                                        ; preds = %.preheader
  %136 = getelementptr inbounds i8, ptr %1, i64 328
  br label %137

137:                                              ; preds = %.lr.ph147, %137
  %indvars.iv155 = phi i64 [ 0, %.lr.ph147 ], [ %indvars.iv.next156, %137 ]
  %138 = load ptr, ptr %136, align 8, !tbaa !50
  %139 = getelementptr inbounds %struct.png_sPLT_struct, ptr %138, i64 %indvars.iv155
  tail call void @png_write_sPLT(ptr noundef %0, ptr noundef %139) #2
  %indvars.iv.next156 = add nuw nsw i64 %indvars.iv155, 1
  %140 = load i64, ptr %132, align 8, !tbaa !49
  %sext = shl i64 %140, 32
  %141 = ashr exact i64 %sext, 32
  %142 = icmp slt i64 %indvars.iv.next156, %141
  br i1 %142, label %137, label %.loopexit142, !llvm.loop !51

.loopexit142:                                     ; preds = %137, %.preheader, %129
  %143 = getelementptr inbounds i8, ptr %1, i64 68
  %144 = load i32, ptr %143, align 4, !tbaa !52
  %145 = icmp sgt i32 %144, 0
  br i1 %145, label %.lr.ph149, label %._crit_edge

.lr.ph149:                                        ; preds = %.loopexit142
  %146 = getelementptr inbounds i8, ptr %1, i64 80
  %.pre168 = load ptr, ptr %146, align 8, !tbaa !53
  br label %147

147:                                              ; preds = %.lr.ph149, %166
  %148 = phi ptr [ %.pre168, %.lr.ph149 ], [ %167, %166 ]
  %indvars.iv158 = phi i64 [ 0, %.lr.ph149 ], [ %indvars.iv.next159, %166 ]
  %149 = getelementptr inbounds %struct.png_text_struct, ptr %148, i64 %indvars.iv158
  %150 = load i32, ptr %149, align 8, !tbaa !54
  %151 = icmp sgt i32 %150, 0
  br i1 %151, label %152, label %153

152:                                              ; preds = %147
  tail call void @png_warning(ptr noundef %0, ptr noundef nonnull @.str.3) #2
  br label %.sink.split

153:                                              ; preds = %147
  switch i32 %150, label %166 [
    i32 0, label %154
    i32 -1, label %159
  ]

154:                                              ; preds = %153
  %155 = getelementptr inbounds i8, ptr %149, i64 8
  %156 = load ptr, ptr %155, align 8, !tbaa !56
  %157 = getelementptr inbounds i8, ptr %149, i64 16
  %158 = load ptr, ptr %157, align 8, !tbaa !57
  tail call void @png_write_zTXt(ptr noundef %0, ptr noundef %156, ptr noundef %158, i64 noundef 0, i32 noundef 0) #2
  br label %.sink.split

159:                                              ; preds = %153
  %160 = getelementptr inbounds i8, ptr %149, i64 8
  %161 = load ptr, ptr %160, align 8, !tbaa !56
  %162 = getelementptr inbounds i8, ptr %149, i64 16
  %163 = load ptr, ptr %162, align 8, !tbaa !57
  tail call void @png_write_tEXt(ptr noundef %0, ptr noundef %161, ptr noundef %163, i64 noundef 0) #2
  br label %.sink.split

.sink.split:                                      ; preds = %154, %159, %152
  %.sink = phi i32 [ -3, %152 ], [ -3, %159 ], [ -2, %154 ]
  %164 = load ptr, ptr %146, align 8, !tbaa !53
  %165 = getelementptr inbounds %struct.png_text_struct, ptr %164, i64 %indvars.iv158
  store i32 %.sink, ptr %165, align 8, !tbaa !54
  br label %166

166:                                              ; preds = %.sink.split, %153
  %167 = phi ptr [ %148, %153 ], [ %164, %.sink.split ]
  %indvars.iv.next159 = add nuw nsw i64 %indvars.iv158, 1
  %168 = load i32, ptr %143, align 4, !tbaa !52
  %169 = sext i32 %168 to i64
  %170 = icmp slt i64 %indvars.iv.next159, %169
  br i1 %170, label %147, label %._crit_edge, !llvm.loop !58

._crit_edge:                                      ; preds = %166, %.loopexit142
  %171 = getelementptr inbounds i8, ptr %1, i64 288
  %172 = load i64, ptr %171, align 8, !tbaa !59
  %.not134 = icmp eq i64 %172, 0
  br i1 %.not134, label %.loopexit, label %173

173:                                              ; preds = %._crit_edge
  %174 = getelementptr inbounds i8, ptr %1, i64 280
  %175 = icmp sgt i64 %172, 0
  br i1 %175, label %.lr.ph152, label %.loopexit

.lr.ph152:                                        ; preds = %173
  %176 = load ptr, ptr %174, align 8, !tbaa !60
  %177 = getelementptr inbounds i8, ptr %0, i64 288
  br label %178

178:                                              ; preds = %.lr.ph152, %198
  %.0117150 = phi ptr [ %176, %.lr.ph152 ], [ %199, %198 ]
  %179 = tail call i32 @png_handle_as_unknown(ptr noundef %0, ptr noundef %.0117150) #2
  %.not135 = icmp eq i32 %179, 1
  br i1 %.not135, label %198, label %180

180:                                              ; preds = %178
  %181 = getelementptr inbounds i8, ptr %.0117150, i64 24
  %182 = load i8, ptr %181, align 8, !tbaa !61
  %183 = and i8 %182, 6
  %or.cond141 = icmp eq i8 %183, 2
  br i1 %or.cond141, label %184, label %198

184:                                              ; preds = %180
  %185 = getelementptr inbounds i8, ptr %.0117150, i64 3
  %186 = load i8, ptr %185, align 1, !tbaa !28
  %187 = and i8 %186, 32
  %188 = icmp ne i8 %187, 0
  %189 = icmp eq i32 %179, 3
  %or.cond3 = or i1 %189, %188
  br i1 %or.cond3, label %193, label %190

190:                                              ; preds = %184
  %191 = load i64, ptr %177, align 8, !tbaa !62
  %192 = and i64 %191, 65536
  %.not139 = icmp eq i64 %192, 0
  br i1 %.not139, label %198, label %193

193:                                              ; preds = %190, %184
  %194 = getelementptr inbounds i8, ptr %.0117150, i64 8
  %195 = load ptr, ptr %194, align 8, !tbaa !63
  %196 = getelementptr inbounds i8, ptr %.0117150, i64 16
  %197 = load i64, ptr %196, align 8, !tbaa !64
  tail call void @png_write_chunk(ptr noundef %0, ptr noundef nonnull %.0117150, ptr noundef %195, i64 noundef %197) #2
  br label %198

198:                                              ; preds = %193, %190, %180, %178
  %199 = getelementptr inbounds i8, ptr %.0117150, i64 32
  %200 = load ptr, ptr %174, align 8, !tbaa !60
  %201 = load i64, ptr %171, align 8, !tbaa !59
  %202 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %200, i64 %201
  %203 = icmp ult ptr %199, %202
  br i1 %203, label %178, label %.loopexit, !llvm.loop !65

.loopexit:                                        ; preds = %198, %173, %._crit_edge, %2
  ret void
}

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

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

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, i64 noundef, i64 noundef, i32 noundef) local_unnamed_addr #1

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

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

declare void @png_write_pHYs(ptr noundef, i64 noundef, i64 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_zTXt(ptr noundef, ptr noundef, ptr noundef, i64 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 = { 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 16}
!6 = !{!"png_info_struct", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !11, i64 40, !11, i64 42, !8, i64 44, !8, i64 45, !8, i64 46, !8, i64 47, !8, i64 48, !8, i64 49, !8, i64 50, !8, i64 51, !8, i64 52, !12, i64 60, !8, i64 64, !13, i64 68, !13, i64 72, !10, i64 80, !14, i64 88, !15, i64 96, !10, i64 104, !16, i64 112, !16, i64 122, !7, i64 136, !7, i64 144, !8, i64 152, !7, i64 160, !7, i64 168, !8, i64 176, !10, i64 184, !12, i64 192, !12, i64 196, !12, i64 200, !12, i64 204, !12, i64 208, !12, i64 212, !12, i64 216, !12, i64 220, !10, i64 224, !7, i64 232, !7, i64 240, !10, i64 248, !10, i64 256, !8, i64 264, !8, i64 265, !7, i64 272, !10, i64 280, !7, i64 288, !10, i64 296, !10, i64 304, !7, i64 312, !8, i64 320, !10, i64 328, !7, i64 336, !8, i64 344, !17, i64 352, !17, i64 360, !10, i64 368, !10, i64 376, !10, i64 384, !7, i64 392, !7, i64 400, !7, i64 408, !7, i64 416, !7, i64 424, !7, i64 432, !7, i64 440, !7, i64 448, !7, i64 456}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"short", !8, i64 0}
!12 = !{!"float", !8, i64 0}
!13 = !{!"int", !8, i64 0}
!14 = !{!"png_time_struct", !11, i64 0, !8, i64 2, !8, i64 3, !8, i64 4, !8, i64 5, !8, i64 6}
!15 = !{!"png_color_8_struct", !8, i64 0, !8, i64 1, !8, i64 2, !8, i64 3, !8, i64 4}
!16 = !{!"png_color_16_struct", !8, i64 0, !11, i64 2, !11, i64 4, !11, i64 6, !11, i64 8}
!17 = !{!"double", !8, i64 0}
!18 = !{!6, !10, i64 32}
!19 = !{!6, !11, i64 40}
!20 = !{!6, !8, i64 45}
!21 = !{!22, !7, i64 296}
!22 = !{!"png_struct_def", !8, i64 0, !10, i64 200, !10, i64 208, !10, i64 216, !10, i64 224, !10, i64 232, !10, i64 240, !10, i64 248, !10, i64 256, !10, i64 264, !8, i64 272, !8, i64 273, !7, i64 280, !7, i64 288, !7, i64 296, !23, i64 304, !10, i64 416, !7, i64 424, !13, i64 432, !13, i64 436, !13, i64 440, !13, i64 444, !13, i64 448, !7, i64 456, !7, i64 464, !7, i64 472, !7, i64 480, !7, i64 488, !7, i64 496, !7, i64 504, !7, i64 512, !10, i64 520, !10, i64 528, !10, i64 536, !10, i64 544, !10, i64 552, !10, i64 560, !24, i64 568, !7, i64 592, !7, i64 600, !10, i64 608, !11, i64 616, !11, i64 618, !8, i64 620, !8, i64 625, !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, !11, i64 638, !8, i64 640, !12, i64 644, !16, i64 648, !16, i64 658, !10, i64 672, !7, i64 680, !7, i64 688, !13, i64 696, !12, i64 700, !12, i64 704, !10, i64 712, !10, i64 720, !10, i64 728, !10, i64 736, !10, i64 744, !10, i64 752, !15, i64 760, !15, i64 765, !10, i64 776, !16, i64 784, !10, i64 800, !10, i64 808, !10, i64 816, !10, i64 824, !10, i64 832, !10, i64 840, !10, i64 848, !10, i64 856, !10, i64 864, !7, i64 872, !7, i64 880, !7, i64 888, !7, i64 896, !7, i64 904, !7, i64 912, !13, i64 920, !13, i64 924, !7, i64 928, !7, i64 936, !10, i64 944, !10, i64 952, !10, i64 960, !10, i64 968, !10, i64 976, !8, i64 984, !8, i64 985, !10, i64 992, !10, i64 1000, !10, i64 1008, !10, i64 1016, !10, i64 1024, !10, i64 1032, !7, i64 1040, !10, i64 1048, !10, i64 1056, !13, i64 1064, !10, i64 1072, !8, i64 1080, !11, i64 1082, !11, i64 1084, !11, i64 1086, !7, i64 1088, !7, i64 1096, !8, i64 1104, !8, i64 1105, !7, i64 1112, !7, i64 1120, !10, i64 1128, !10, i64 1136, !10, i64 1144, !10, i64 1152, !10, i64 1160, !10, i64 1168, !10, i64 1176, !8, i64 1184, !7, i64 1192, !7, i64 1200, !25, i64 1208, !7, i64 1240, !7, i64 1248, !10, i64 1256}
!23 = !{!"z_stream_s", !10, i64 0, !13, i64 8, !7, i64 16, !10, i64 24, !13, i64 32, !7, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !13, i64 88, !7, i64 96, !7, i64 104}
!24 = !{!"png_row_info_struct", !7, i64 0, !7, i64 8, !8, i64 16, !8, i64 17, !8, i64 18, !8, i64 19}
!25 = !{!"png_unknown_chunk_t", !8, i64 0, !10, i64 8, !7, i64 16, !8, i64 24}
!26 = !{!6, !11, i64 42}
!27 = !{!6, !10, i64 104}
!28 = !{!8, !8, i64 0}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = !{!6, !10, i64 184}
!32 = !{!6, !7, i64 136}
!33 = !{!6, !7, i64 144}
!34 = !{!6, !8, i64 152}
!35 = !{!6, !10, i64 224}
!36 = !{!6, !7, i64 232}
!37 = !{!6, !7, i64 240}
!38 = !{!6, !8, i64 264}
!39 = !{!6, !8, i64 265}
!40 = !{!6, !10, i64 248}
!41 = !{!6, !10, i64 256}
!42 = !{!6, !8, i64 344}
!43 = !{!6, !17, i64 352}
!44 = !{!6, !17, i64 360}
!45 = !{!6, !7, i64 160}
!46 = !{!6, !7, i64 168}
!47 = !{!6, !8, i64 176}
!48 = !{!22, !7, i64 280}
!49 = !{!6, !7, i64 336}
!50 = !{!6, !10, i64 328}
!51 = distinct !{!51, !30}
!52 = !{!6, !13, i64 68}
!53 = !{!6, !10, i64 80}
!54 = !{!55, !13, i64 0}
!55 = !{!"png_text_struct", !13, i64 0, !10, i64 8, !10, i64 16, !7, i64 24}
!56 = !{!55, !10, i64 8}
!57 = !{!55, !10, i64 16}
!58 = distinct !{!58, !30}
!59 = !{!6, !7, i64 288}
!60 = !{!6, !10, i64 280}
!61 = !{!25, !8, i64 24}
!62 = !{!22, !7, i64 288}
!63 = !{!25, !10, i64 8}
!64 = !{!25, !7, i64 16}
!65 = distinct !{!65, !30}


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