; LLVM IR from niessner/Matterport :: code/gaps/pkgs/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 { i32, i32, i32, 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, i32, i32, i8, i32, i32, i8, ptr, float, float, float, float, float, float, float, float, ptr, i32, i32, ptr, ptr, i8, i8, i32, ptr, i64, ptr, ptr, i32, i8, ptr, i32, i8, double, double, ptr, ptr, ptr, 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, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i8, i32, i32, i32, %struct.z_stream_s, ptr, i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i64, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, %struct.png_row_info_struct, i32, i32, 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, i32, i32, 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, i32, i32, i64, i64, i64, i64, i32, i32, i64, i64, ptr, ptr, ptr, ptr, ptr, i8, i8, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, ptr, i8, i16, i16, i16, i32, i32, i8, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i32, i32, i32, %struct.png_unknown_chunk_t, i32, i32, ptr, i32 }
%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 { i32, 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, 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 noundef, ptr noundef) #0

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

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

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

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

; 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 %490

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 i32, ptr %20, align 8, !tbaa !9
  %22 = and i32 %21, 8
  %23 = icmp ne i32 %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 i32
  call void @png_write_PLTE(ptr noundef %25, ptr noundef %28, i32 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 i32, ptr %44, align 8, !tbaa !9
  %46 = and i32 %45, 16
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %48, label %105

48:                                               ; preds = %42
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.png_struct_def, ptr %49, i32 0, i32 15
  %51 = load i32, ptr %50, align 4, !tbaa !22
  %52 = zext i32 %51 to i64
  %53 = and i64 %52, 524288
  %54 = icmp ne i64 %53, 0
  br i1 %54, label %55, label %90

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

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

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

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

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

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

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

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

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

119:                                              ; preds = %111, %105
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.png_info_struct, ptr %120, i32 0, i32 2
  %122 = load i32, ptr %121, align 8, !tbaa !9
  %123 = and i32 %122, 64
  %124 = icmp ne i32 %123, 0
  br i1 %124, label %125, label %134

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

134:                                              ; preds = %125, %119
  %135 = load ptr, ptr %4, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.png_info_struct, ptr %135, i32 0, i32 2
  %137 = load i32, ptr %136, align 8, !tbaa !9
  %138 = and i32 %137, 256
  %139 = icmp ne i32 %138, 0
  br i1 %139, label %140, label %152

140:                                              ; preds = %134
  %141 = load ptr, ptr %3, align 8, !tbaa !5
  %142 = load ptr, ptr %4, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.png_info_struct, ptr %142, i32 0, i32 26
  %144 = load i32, ptr %143, align 4, !tbaa !34
  %145 = load ptr, ptr %4, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.png_info_struct, ptr %145, i32 0, i32 27
  %147 = load i32, ptr %146, align 8, !tbaa !35
  %148 = load ptr, ptr %4, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.png_info_struct, ptr %148, i32 0, i32 28
  %150 = load i8, ptr %149, align 4, !tbaa !36
  %151 = zext i8 %150 to i32
  call void @png_write_oFFs(ptr noundef %141, i32 noundef %144, i32 noundef %147, i32 noundef %151)
  br label %152

152:                                              ; preds = %140, %134
  %153 = load ptr, ptr %4, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.png_info_struct, ptr %153, i32 0, i32 2
  %155 = load i32, ptr %154, align 8, !tbaa !9
  %156 = and i32 %155, 1024
  %157 = icmp ne i32 %156, 0
  br i1 %157, label %158, label %183

158:                                              ; preds = %152
  %159 = load ptr, ptr %3, align 8, !tbaa !5
  %160 = load ptr, ptr %4, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.png_info_struct, ptr %160, i32 0, i32 41
  %162 = load ptr, ptr %161, align 8, !tbaa !37
  %163 = load ptr, ptr %4, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.png_info_struct, ptr %163, i32 0, i32 42
  %165 = load i32, ptr %164, align 8, !tbaa !38
  %166 = load ptr, ptr %4, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.png_info_struct, ptr %166, i32 0, i32 43
  %168 = load i32, ptr %167, align 4, !tbaa !39
  %169 = load ptr, ptr %4, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.png_info_struct, ptr %169, i32 0, i32 46
  %171 = load i8, ptr %170, align 8, !tbaa !40
  %172 = zext i8 %171 to i32
  %173 = load ptr, ptr %4, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.png_info_struct, ptr %173, i32 0, i32 47
  %175 = load i8, ptr %174, align 1, !tbaa !41
  %176 = zext i8 %175 to i32
  %177 = load ptr, ptr %4, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.png_info_struct, ptr %177, i32 0, i32 44
  %179 = load ptr, ptr %178, align 8, !tbaa !42
  %180 = load ptr, ptr %4, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.png_info_struct, ptr %180, i32 0, i32 45
  %182 = load ptr, ptr %181, align 8, !tbaa !43
  call void @png_write_pCAL(ptr noundef %159, ptr noundef %162, i32 noundef %165, i32 noundef %168, i32 noundef %172, i32 noundef %176, ptr noundef %179, ptr noundef %182)
  br label %183

183:                                              ; preds = %158, %152
  %184 = load ptr, ptr %4, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.png_info_struct, ptr %184, i32 0, i32 2
  %186 = load i32, ptr %185, align 8, !tbaa !9
  %187 = and i32 %186, 16384
  %188 = icmp ne i32 %187, 0
  br i1 %188, label %189, label %201

189:                                              ; preds = %183
  %190 = load ptr, ptr %3, align 8, !tbaa !5
  %191 = load ptr, ptr %4, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.png_info_struct, ptr %191, i32 0, i32 57
  %193 = load i8, ptr %192, align 4, !tbaa !44
  %194 = zext i8 %193 to i32
  %195 = load ptr, ptr %4, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.png_info_struct, ptr %195, i32 0, i32 58
  %197 = load double, ptr %196, align 8, !tbaa !45
  %198 = load ptr, ptr %4, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.png_info_struct, ptr %198, i32 0, i32 59
  %200 = load double, ptr %199, align 8, !tbaa !46
  call void @png_write_sCAL(ptr noundef %190, i32 noundef %194, double noundef %197, double noundef %200)
  br label %201

201:                                              ; preds = %189, %183
  %202 = load ptr, ptr %4, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.png_info_struct, ptr %202, i32 0, i32 2
  %204 = load i32, ptr %203, align 8, !tbaa !9
  %205 = and i32 %204, 128
  %206 = icmp ne i32 %205, 0
  br i1 %206, label %207, label %219

207:                                              ; preds = %201
  %208 = load ptr, ptr %3, align 8, !tbaa !5
  %209 = load ptr, ptr %4, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.png_info_struct, ptr %209, i32 0, i32 29
  %211 = load i32, ptr %210, align 8, !tbaa !47
  %212 = load ptr, ptr %4, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.png_info_struct, ptr %212, i32 0, i32 30
  %214 = load i32, ptr %213, align 4, !tbaa !48
  %215 = load ptr, ptr %4, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.png_info_struct, ptr %215, i32 0, i32 31
  %217 = load i8, ptr %216, align 8, !tbaa !49
  %218 = zext i8 %217 to i32
  call void @png_write_pHYs(ptr noundef %208, i32 noundef %211, i32 noundef %214, i32 noundef %218)
  br label %219

219:                                              ; preds = %207, %201
  %220 = load ptr, ptr %4, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.png_info_struct, ptr %220, i32 0, i32 2
  %222 = load i32, ptr %221, align 8, !tbaa !9
  %223 = and i32 %222, 512
  %224 = icmp ne i32 %223, 0
  br i1 %224, label %225, label %233

225:                                              ; preds = %219
  %226 = load ptr, ptr %3, align 8, !tbaa !5
  %227 = load ptr, ptr %4, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.png_info_struct, ptr %227, i32 0, i32 21
  call void @png_write_tIME(ptr noundef %226, ptr noundef %228)
  %229 = load ptr, ptr %3, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.png_struct_def, ptr %229, i32 0, i32 13
  %231 = load i32, ptr %230, align 4, !tbaa !50
  %232 = or i32 %231, 512
  store i32 %232, ptr %230, align 4, !tbaa !50
  br label %233

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

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

240:                                              ; preds = %254, %239
  %241 = load i32, ptr %5, align 4, !tbaa !27
  %242 = load ptr, ptr %4, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.png_info_struct, ptr %242, i32 0, i32 56
  %244 = load i32, ptr %243, align 8, !tbaa !51
  %245 = icmp slt i32 %241, %244
  br i1 %245, label %246, label %257

246:                                              ; preds = %240
  %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 %240, !llvm.loop !53

257:                                              ; preds = %240
  br label %258

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

259:                                              ; preds = %405, %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 %408

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 %324

275:                                              ; preds = %265
  %276 = load ptr, ptr %3, align 8, !tbaa !5
  %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
  %284 = load i32, ptr %283, align 8, !tbaa !56
  %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 1
  %292 = load ptr, ptr %291, align 8, !tbaa !58
  %293 = load ptr, ptr %4, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.png_info_struct, ptr %293, i32 0, i32 20
  %295 = load ptr, ptr %294, align 8, !tbaa !55
  %296 = load i32, ptr %5, align 4, !tbaa !27
  %297 = sext i32 %296 to i64
  %298 = getelementptr inbounds %struct.png_text_struct, ptr %295, i64 %297
  %299 = getelementptr inbounds %struct.png_text_struct, ptr %298, i32 0, i32 5
  %300 = load ptr, ptr %299, align 8, !tbaa !59
  %301 = load ptr, ptr %4, align 8, !tbaa !5
  %302 = getelementptr inbounds %struct.png_info_struct, ptr %301, i32 0, i32 20
  %303 = load ptr, ptr %302, align 8, !tbaa !55
  %304 = load i32, ptr %5, align 4, !tbaa !27
  %305 = sext i32 %304 to i64
  %306 = getelementptr inbounds %struct.png_text_struct, ptr %303, i64 %305
  %307 = getelementptr inbounds %struct.png_text_struct, ptr %306, i32 0, i32 6
  %308 = load ptr, ptr %307, align 8, !tbaa !60
  %309 = load ptr, ptr %4, align 8, !tbaa !5
  %310 = getelementptr inbounds %struct.png_info_struct, ptr %309, i32 0, i32 20
  %311 = load ptr, ptr %310, align 8, !tbaa !55
  %312 = load i32, ptr %5, align 4, !tbaa !27
  %313 = sext i32 %312 to i64
  %314 = getelementptr inbounds %struct.png_text_struct, ptr %311, i64 %313
  %315 = getelementptr inbounds %struct.png_text_struct, ptr %314, i32 0, i32 2
  %316 = load ptr, ptr %315, align 8, !tbaa !61
  call void @png_write_iTXt(ptr noundef %276, i32 noundef %284, ptr noundef %292, ptr noundef %300, ptr noundef %308, ptr noundef %316)
  %317 = load ptr, ptr %4, align 8, !tbaa !5
  %318 = getelementptr inbounds %struct.png_info_struct, ptr %317, i32 0, i32 20
  %319 = load ptr, ptr %318, align 8, !tbaa !55
  %320 = load i32, ptr %5, align 4, !tbaa !27
  %321 = sext i32 %320 to i64
  %322 = getelementptr inbounds %struct.png_text_struct, ptr %319, i64 %321
  %323 = getelementptr inbounds %struct.png_text_struct, ptr %322, i32 0, i32 0
  store i32 -3, ptr %323, align 8, !tbaa !56
  br label %404

324:                                              ; preds = %265
  %325 = load ptr, ptr %4, align 8, !tbaa !5
  %326 = getelementptr inbounds %struct.png_info_struct, ptr %325, i32 0, i32 20
  %327 = load ptr, ptr %326, align 8, !tbaa !55
  %328 = load i32, ptr %5, align 4, !tbaa !27
  %329 = sext i32 %328 to i64
  %330 = getelementptr inbounds %struct.png_text_struct, ptr %327, i64 %329
  %331 = getelementptr inbounds %struct.png_text_struct, ptr %330, i32 0, i32 0
  %332 = load i32, ptr %331, align 8, !tbaa !56
  %333 = icmp eq i32 %332, 0
  br i1 %333, label %334, label %367

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

367:                                              ; preds = %324
  %368 = load ptr, ptr %4, align 8, !tbaa !5
  %369 = getelementptr inbounds %struct.png_info_struct, ptr %368, i32 0, i32 20
  %370 = load ptr, ptr %369, align 8, !tbaa !55
  %371 = load i32, ptr %5, align 4, !tbaa !27
  %372 = sext i32 %371 to i64
  %373 = getelementptr inbounds %struct.png_text_struct, ptr %370, i64 %372
  %374 = getelementptr inbounds %struct.png_text_struct, ptr %373, i32 0, i32 0
  %375 = load i32, ptr %374, align 8, !tbaa !56
  %376 = icmp eq i32 %375, -1
  br i1 %376, label %377, label %402

377:                                              ; preds = %367
  %378 = load ptr, ptr %3, 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 20
  %381 = load ptr, ptr %380, align 8, !tbaa !55
  %382 = load i32, ptr %5, align 4, !tbaa !27
  %383 = sext i32 %382 to i64
  %384 = getelementptr inbounds %struct.png_text_struct, ptr %381, i64 %383
  %385 = getelementptr inbounds %struct.png_text_struct, ptr %384, i32 0, i32 1
  %386 = load ptr, ptr %385, align 8, !tbaa !58
  %387 = load ptr, ptr %4, align 8, !tbaa !5
  %388 = getelementptr inbounds %struct.png_info_struct, ptr %387, i32 0, i32 20
  %389 = load ptr, ptr %388, align 8, !tbaa !55
  %390 = load i32, ptr %5, align 4, !tbaa !27
  %391 = sext i32 %390 to i64
  %392 = getelementptr inbounds %struct.png_text_struct, ptr %389, i64 %391
  %393 = getelementptr inbounds %struct.png_text_struct, ptr %392, i32 0, i32 2
  %394 = load ptr, ptr %393, align 8, !tbaa !61
  call void @png_write_tEXt(ptr noundef %378, ptr noundef %386, ptr noundef %394, i64 noundef 0)
  %395 = load ptr, ptr %4, align 8, !tbaa !5
  %396 = getelementptr inbounds %struct.png_info_struct, ptr %395, i32 0, i32 20
  %397 = load ptr, ptr %396, align 8, !tbaa !55
  %398 = load i32, ptr %5, align 4, !tbaa !27
  %399 = sext i32 %398 to i64
  %400 = getelementptr inbounds %struct.png_text_struct, ptr %397, i64 %399
  %401 = getelementptr inbounds %struct.png_text_struct, ptr %400, i32 0, i32 0
  store i32 -3, ptr %401, align 8, !tbaa !56
  br label %402

402:                                              ; preds = %377, %367
  br label %403

403:                                              ; preds = %402, %334
  br label %404

404:                                              ; preds = %403, %275
  br label %405

405:                                              ; preds = %404
  %406 = load i32, ptr %5, align 4, !tbaa !27
  %407 = add nsw i32 %406, 1
  store i32 %407, ptr %5, align 4, !tbaa !27
  br label %259, !llvm.loop !62

408:                                              ; preds = %259
  %409 = load ptr, ptr %4, align 8, !tbaa !5
  %410 = getelementptr inbounds %struct.png_info_struct, ptr %409, i32 0, i32 50
  %411 = load i64, ptr %410, align 8, !tbaa !63
  %412 = icmp ne i64 %411, 0
  br i1 %412, label %413, label %489

413:                                              ; preds = %408
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %414 = load ptr, ptr %4, align 8, !tbaa !5
  %415 = getelementptr inbounds %struct.png_info_struct, ptr %414, i32 0, i32 49
  %416 = load ptr, ptr %415, align 8, !tbaa !64
  store ptr %416, ptr %8, align 8, !tbaa !5
  br label %417

417:                                              ; preds = %485, %413
  %418 = load ptr, ptr %8, align 8, !tbaa !5
  %419 = load ptr, ptr %4, align 8, !tbaa !5
  %420 = getelementptr inbounds %struct.png_info_struct, ptr %419, i32 0, i32 49
  %421 = load ptr, ptr %420, align 8, !tbaa !64
  %422 = load ptr, ptr %4, align 8, !tbaa !5
  %423 = getelementptr inbounds %struct.png_info_struct, ptr %422, i32 0, i32 50
  %424 = load i64, ptr %423, align 8, !tbaa !63
  %425 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %421, i64 %424
  %426 = icmp ult ptr %418, %425
  br i1 %426, label %427, label %488

427:                                              ; preds = %417
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  %428 = load ptr, ptr %3, align 8, !tbaa !5
  %429 = load ptr, ptr %8, align 8, !tbaa !5
  %430 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %429, i32 0, i32 0
  %431 = getelementptr inbounds [5 x i8], ptr %430, i64 0, i64 0
  %432 = call i32 @png_handle_as_unknown(ptr noundef %428, ptr noundef %431)
  store i32 %432, ptr %9, align 4, !tbaa !27
  %433 = load i32, ptr %9, align 4, !tbaa !27
  %434 = icmp ne i32 %433, 1
  br i1 %434, label %435, label %484

435:                                              ; preds = %427
  %436 = load ptr, ptr %8, align 8, !tbaa !5
  %437 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %436, i32 0, i32 3
  %438 = load i8, ptr %437, align 8, !tbaa !65
  %439 = zext i8 %438 to i32
  %440 = icmp ne i32 %439, 0
  br i1 %440, label %441, label %484

441:                                              ; preds = %435
  %442 = load ptr, ptr %8, align 8, !tbaa !5
  %443 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %442, i32 0, i32 3
  %444 = load i8, ptr %443, align 8, !tbaa !65
  %445 = zext i8 %444 to i32
  %446 = and i32 %445, 2
  %447 = icmp ne i32 %446, 0
  br i1 %447, label %448, label %484

448:                                              ; preds = %441
  %449 = load ptr, ptr %8, align 8, !tbaa !5
  %450 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %449, i32 0, i32 3
  %451 = load i8, ptr %450, align 8, !tbaa !65
  %452 = zext i8 %451 to i32
  %453 = and i32 %452, 4
  %454 = icmp ne i32 %453, 0
  br i1 %454, label %484, label %455

455:                                              ; preds = %448
  %456 = load ptr, ptr %8, align 8, !tbaa !5
  %457 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %456, i32 0, i32 0
  %458 = getelementptr inbounds [5 x i8], ptr %457, i64 0, i64 3
  %459 = load i8, ptr %458, align 1, !tbaa !30
  %460 = zext i8 %459 to i32
  %461 = and i32 %460, 32
  %462 = icmp ne i32 %461, 0
  br i1 %462, label %473, label %463

463:                                              ; preds = %455
  %464 = load i32, ptr %9, align 4, !tbaa !27
  %465 = icmp eq i32 %464, 3
  br i1 %465, label %473, label %466

466:                                              ; preds = %463
  %467 = load ptr, ptr %3, align 8, !tbaa !5
  %468 = getelementptr inbounds %struct.png_struct_def, ptr %467, i32 0, i32 14
  %469 = load i32, ptr %468, align 8, !tbaa !66
  %470 = zext i32 %469 to i64
  %471 = and i64 %470, 65536
  %472 = icmp ne i64 %471, 0
  br i1 %472, label %473, label %484

473:                                              ; preds = %466, %463, %455
  %474 = load ptr, ptr %3, align 8, !tbaa !5
  %475 = load ptr, ptr %8, align 8, !tbaa !5
  %476 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %475, i32 0, i32 0
  %477 = getelementptr inbounds [5 x i8], ptr %476, i64 0, i64 0
  %478 = load ptr, ptr %8, align 8, !tbaa !5
  %479 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %478, i32 0, i32 1
  %480 = load ptr, ptr %479, align 8, !tbaa !67
  %481 = load ptr, ptr %8, align 8, !tbaa !5
  %482 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %481, i32 0, i32 2
  %483 = load i64, ptr %482, align 8, !tbaa !68
  call void @png_write_chunk(ptr noundef %474, ptr noundef %477, ptr noundef %480, i64 noundef %483)
  br label %484

484:                                              ; preds = %473, %466, %448, %441, %435, %427
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  br label %485

485:                                              ; preds = %484
  %486 = load ptr, ptr %8, align 8, !tbaa !5
  %487 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %486, i32 1
  store ptr %487, ptr %8, align 8, !tbaa !5
  br label %417, !llvm.loop !69

488:                                              ; preds = %417
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  br label %489

489:                                              ; preds = %488, %408
  store i32 0, ptr %6, align 4
  br label %490

490:                                              ; preds = %489, %15
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  %491 = load i32, ptr %6, align 4
  switch i32 %491, label %493 [
    i32 0, label %492
    i32 1, label %492
  ]

492:                                              ; preds = %490, %490
  ret void

493:                                              ; preds = %490
  unreachable
}

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

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

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(ptr noundef, i32 noundef, double noundef, double 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, i64 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 = { 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 8}
!10 = !{!"png_info_struct", !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, !7, i64 56, !11, i64 60, !11, i64 64, !6, i64 72, !15, i64 80, !16, i64 88, !6, i64 96, !17, i64 104, !17, i64 114, !11, i64 124, !11, i64 128, !7, i64 132, !11, i64 136, !11, i64 140, !7, i64 144, !6, i64 152, !14, i64 160, !14, i64 164, !14, i64 168, !14, i64 172, !14, i64 176, !14, i64 180, !14, i64 184, !14, i64 188, !6, i64 192, !11, i64 200, !11, i64 204, !6, i64 208, !6, i64 216, !7, i64 224, !7, i64 225, !11, i64 228, !6, i64 232, !12, i64 240, !6, i64 248, !6, i64 256, !11, i64 264, !7, i64 268, !6, i64 272, !11, i64 280, !7, i64 284, !18, i64 288, !18, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !11, i64 328, !11, i64 332, !11, i64 336, !11, i64 340, !11, i64 344, !11, i64 348, !11, i64 352, !11, i64 356, !11, i64 360}
!11 = !{!"int", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!"short", !7, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{!"png_time_struct", !13, 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, !13, i64 2, !13, i64 4, !13, i64 6, !13, i64 8}
!18 = !{!"double", !7, i64 0}
!19 = !{!10, !6, i64 24}
!20 = !{!10, !13, i64 32}
!21 = !{!10, !7, i64 37}
!22 = !{!23, !11, i64 292}
!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, !6, i64 272, !7, i64 280, !7, i64 281, !11, i64 284, !11, i64 288, !11, i64 292, !24, i64 296, !6, i64 408, !12, i64 416, !11, i64 424, !11, i64 428, !11, i64 432, !11, i64 436, !11, i64 440, !11, i64 444, !11, i64 448, !11, i64 452, !11, i64 456, !12, i64 464, !12, i64 472, !11, i64 480, !11, i64 484, !6, i64 488, !6, i64 496, !6, i64 504, !6, i64 512, !6, i64 520, !6, i64 528, !25, i64 536, !11, i64 560, !11, i64 564, !6, i64 568, !13, i64 576, !13, i64 578, !7, i64 580, !7, i64 585, !7, i64 586, !7, i64 587, !7, i64 588, !7, i64 589, !7, i64 590, !7, i64 591, !7, i64 592, !7, i64 593, !7, i64 594, !7, i64 595, !7, i64 596, !13, i64 598, !7, i64 600, !14, i64 604, !17, i64 608, !17, i64 618, !6, i64 632, !11, i64 640, !11, i64 644, !11, i64 648, !14, i64 652, !14, i64 656, !6, i64 664, !6, i64 672, !6, i64 680, !6, i64 688, !6, i64 696, !6, i64 704, !16, i64 712, !16, i64 717, !6, i64 728, !17, i64 736, !6, i64 752, !6, i64 760, !6, i64 768, !6, i64 776, !6, i64 784, !6, i64 792, !6, i64 800, !6, i64 808, !6, i64 816, !11, i64 824, !11, i64 828, !12, i64 832, !12, i64 840, !12, i64 848, !12, i64 856, !11, i64 864, !11, i64 868, !12, i64 872, !12, i64 880, !6, i64 888, !6, i64 896, !6, i64 904, !6, i64 912, !6, i64 920, !7, i64 928, !7, i64 929, !6, i64 936, !6, i64 944, !6, i64 952, !6, i64 960, !6, i64 968, !6, i64 976, !11, i64 984, !6, i64 992, !6, i64 1000, !11, i64 1008, !6, i64 1016, !7, i64 1024, !13, i64 1026, !13, i64 1028, !13, i64 1030, !11, i64 1032, !11, i64 1036, !7, i64 1040, !6, i64 1048, !6, i64 1056, !6, i64 1064, !6, i64 1072, !6, i64 1080, !6, i64 1088, !6, i64 1096, !7, i64 1104, !11, i64 1108, !11, i64 1112, !11, i64 1116, !26, i64 1120, !11, i64 1152, !11, i64 1156, !6, i64 1160, !11, i64 1168}
!24 = !{!"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}
!25 = !{!"png_row_info_struct", !11, i64 0, !12, 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, !12, i64 16, !7, i64 24}
!27 = !{!11, !11, i64 0}
!28 = !{!10, !13, i64 34}
!29 = !{!10, !6, i64 96}
!30 = !{!7, !7, i64 0}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = !{!10, !6, i64 152}
!34 = !{!10, !11, i64 124}
!35 = !{!10, !11, i64 128}
!36 = !{!10, !7, i64 132}
!37 = !{!10, !6, i64 192}
!38 = !{!10, !11, i64 200}
!39 = !{!10, !11, i64 204}
!40 = !{!10, !7, i64 224}
!41 = !{!10, !7, i64 225}
!42 = !{!10, !6, i64 208}
!43 = !{!10, !6, i64 216}
!44 = !{!10, !7, i64 284}
!45 = !{!10, !18, i64 288}
!46 = !{!10, !18, i64 296}
!47 = !{!10, !11, i64 136}
!48 = !{!10, !11, i64 140}
!49 = !{!10, !7, i64 144}
!50 = !{!23, !11, i64 284}
!51 = !{!10, !11, i64 280}
!52 = !{!10, !6, i64 272}
!53 = distinct !{!53, !32}
!54 = !{!10, !11, i64 60}
!55 = !{!10, !6, i64 72}
!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}
!63 = !{!10, !12, i64 240}
!64 = !{!10, !6, i64 232}
!65 = !{!26, !7, i64 24}
!66 = !{!23, !11, i64 288}
!67 = !{!26, !6, i64 8}
!68 = !{!26, !12, i64 16}
!69 = distinct !{!69, !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 }
%struct.png_unknown_chunk_t = type { [5 x i8], ptr, i64, i8 }

@.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 noundef, ptr noundef) local_unnamed_addr #0

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 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 !18
  %12 = getelementptr inbounds i8, ptr %1, i64 32
  %13 = load i16, ptr %12, align 8, !tbaa !19
  %14 = zext i16 %13 to i32
  tail call void @png_write_PLTE(ptr noundef nonnull %0, ptr noundef %11, i32 noundef %14) #2
  br label %20

15:                                               ; preds = %5
  %16 = getelementptr inbounds i8, ptr %1, i64 37
  %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 i32, ptr %6, align 8, !tbaa !5
  %22 = and i32 %21, 16
  %.not135 = icmp eq i32 %22, 0
  br i1 %.not135, label %51, label %23

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

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

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

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

.loopexit155:                                     ; preds = %34, %.preheader154, %27, %23
  %42 = getelementptr inbounds i8, ptr %1, i64 96
  %43 = load ptr, ptr %42, align 8, !tbaa !27
  %44 = getelementptr inbounds i8, ptr %1, i64 104
  %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 !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 i32, ptr %6, align 8, !tbaa !5
  br label %51

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

54:                                               ; preds = %51
  %55 = getelementptr inbounds i8, ptr %1, i64 114
  %56 = getelementptr inbounds i8, ptr %1, i64 37
  %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
  %.pre172 = load i32, ptr %6, align 8, !tbaa !5
  br label %59

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

62:                                               ; preds = %59
  %63 = getelementptr inbounds i8, ptr %1, i64 152
  %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 !19
  %67 = zext i16 %66 to i32
  tail call void @png_write_hIST(ptr noundef %0, ptr noundef %64, i32 noundef %67) #2
  %.pre173 = load i32, ptr %6, align 8, !tbaa !5
  br label %68

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

71:                                               ; preds = %68
  %72 = getelementptr inbounds i8, ptr %1, i64 124
  %73 = load i32, ptr %72, align 4, !tbaa !32
  %74 = getelementptr inbounds i8, ptr %1, i64 128
  %75 = load i32, ptr %74, align 8, !tbaa !33
  %76 = getelementptr inbounds i8, ptr %1, i64 132
  %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) #2
  %.pre174 = load i32, ptr %6, align 8, !tbaa !5
  br label %79

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

82:                                               ; preds = %79
  %83 = getelementptr inbounds i8, ptr %1, i64 192
  %84 = load ptr, ptr %83, align 8, !tbaa !35
  %85 = getelementptr inbounds i8, ptr %1, i64 200
  %86 = load i32, ptr %85, align 8, !tbaa !36
  %87 = getelementptr inbounds i8, ptr %1, i64 204
  %88 = load i32, ptr %87, align 4, !tbaa !37
  %89 = getelementptr inbounds i8, ptr %1, i64 224
  %90 = load i8, ptr %89, align 8, !tbaa !38
  %91 = zext i8 %90 to i32
  %92 = getelementptr inbounds i8, ptr %1, i64 225
  %93 = load i8, ptr %92, align 1, !tbaa !39
  %94 = zext i8 %93 to i32
  %95 = getelementptr inbounds i8, ptr %1, i64 208
  %96 = load ptr, ptr %95, align 8, !tbaa !40
  %97 = getelementptr inbounds i8, ptr %1, i64 216
  %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) #2
  %.pre175 = load i32, ptr %6, align 8, !tbaa !5
  br label %99

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

102:                                              ; preds = %99
  %103 = getelementptr inbounds i8, ptr %1, i64 284
  %104 = load i8, ptr %103, align 4, !tbaa !42
  %105 = zext i8 %104 to i32
  %106 = getelementptr inbounds i8, ptr %1, i64 288
  %107 = load double, ptr %106, align 8, !tbaa !43
  %108 = getelementptr inbounds i8, ptr %1, i64 296
  %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
  %.pre176 = load i32, ptr %6, align 8, !tbaa !5
  br label %110

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

113:                                              ; preds = %110
  %114 = getelementptr inbounds i8, ptr %1, i64 136
  %115 = load i32, ptr %114, align 8, !tbaa !45
  %116 = getelementptr inbounds i8, ptr %1, i64 140
  %117 = load i32, ptr %116, align 4, !tbaa !46
  %118 = getelementptr inbounds i8, ptr %1, i64 144
  %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) #2
  %.pre177 = load i32, ptr %6, align 8, !tbaa !5
  br label %121

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

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

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

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

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

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

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

.lr.ph160:                                        ; preds = %.loopexit153
  %145 = getelementptr inbounds i8, ptr %1, i64 72
  %.pre179 = load ptr, ptr %145, align 8, !tbaa !53
  br label %146

146:                                              ; preds = %.lr.ph160, %173
  %147 = phi ptr [ %.pre179, %.lr.ph160 ], [ %174, %173 ]
  %indvars.iv169 = phi i64 [ 0, %.lr.ph160 ], [ %indvars.iv.next170, %173 ]
  %148 = getelementptr inbounds %struct.png_text_struct, ptr %147, i64 %indvars.iv169
  %149 = load i32, ptr %148, align 8, !tbaa !54
  %150 = icmp sgt i32 %149, 0
  br i1 %150, label %151, label %160

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) #2
  br label %.sink.split

160:                                              ; preds = %146
  switch i32 %149, label %173 [
    i32 0, label %161
    i32 -1, label %166
  ]

161:                                              ; preds = %160
  %162 = getelementptr inbounds i8, ptr %148, i64 8
  %163 = load ptr, ptr %162, align 8, !tbaa !56
  %164 = getelementptr inbounds i8, ptr %148, i64 16
  %165 = load ptr, ptr %164, align 8, !tbaa !59
  tail call void @png_write_zTXt(ptr noundef %0, ptr noundef %163, ptr noundef %165, i64 noundef 0, i32 noundef 0) #2
  br label %.sink.split

166:                                              ; preds = %160
  %167 = getelementptr inbounds i8, ptr %148, i64 8
  %168 = load ptr, ptr %167, align 8, !tbaa !56
  %169 = getelementptr inbounds i8, ptr %148, i64 16
  %170 = load ptr, ptr %169, align 8, !tbaa !59
  tail call void @png_write_tEXt(ptr noundef %0, ptr noundef %168, ptr noundef %170, i64 noundef 0) #2
  br label %.sink.split

.sink.split:                                      ; preds = %161, %166, %151
  %.sink = phi i32 [ -3, %151 ], [ -3, %166 ], [ -2, %161 ]
  %171 = load ptr, ptr %145, align 8, !tbaa !53
  %172 = getelementptr inbounds %struct.png_text_struct, ptr %171, i64 %indvars.iv169
  store i32 %.sink, ptr %172, align 8, !tbaa !54
  br label %173

173:                                              ; preds = %.sink.split, %160
  %174 = phi ptr [ %147, %160 ], [ %171, %.sink.split ]
  %indvars.iv.next170 = add nuw nsw i64 %indvars.iv169, 1
  %175 = load i32, ptr %142, align 4, !tbaa !52
  %176 = sext i32 %175 to i64
  %177 = icmp slt i64 %indvars.iv.next170, %176
  br i1 %177, label %146, label %._crit_edge, !llvm.loop !60

._crit_edge:                                      ; preds = %173, %.loopexit153
  %178 = getelementptr inbounds i8, ptr %1, i64 240
  %179 = load i64, ptr %178, align 8, !tbaa !61
  %.not145 = icmp eq i64 %179, 0
  br i1 %.not145, label %.loopexit, label %180

180:                                              ; preds = %._crit_edge
  %181 = getelementptr inbounds i8, ptr %1, i64 232
  %182 = icmp sgt i64 %179, 0
  br i1 %182, label %.lr.ph163, label %.loopexit

.lr.ph163:                                        ; preds = %180
  %183 = load ptr, ptr %181, align 8, !tbaa !62
  %184 = getelementptr inbounds i8, ptr %0, i64 288
  br label %185

185:                                              ; preds = %.lr.ph163, %205
  %.0127161 = phi ptr [ %183, %.lr.ph163 ], [ %206, %205 ]
  %186 = tail call i32 @png_handle_as_unknown(ptr noundef %0, ptr noundef %.0127161) #2
  %.not146 = icmp eq i32 %186, 1
  br i1 %.not146, label %205, label %187

187:                                              ; preds = %185
  %188 = getelementptr inbounds i8, ptr %.0127161, i64 24
  %189 = load i8, ptr %188, align 8, !tbaa !63
  %190 = and i8 %189, 6
  %or.cond152 = icmp eq i8 %190, 2
  br i1 %or.cond152, label %191, label %205

191:                                              ; preds = %187
  %192 = getelementptr inbounds i8, ptr %.0127161, i64 3
  %193 = load i8, ptr %192, align 1, !tbaa !28
  %194 = and i8 %193, 32
  %195 = icmp ne i8 %194, 0
  %196 = icmp eq i32 %186, 3
  %or.cond3 = or i1 %196, %195
  br i1 %or.cond3, label %200, label %197

197:                                              ; preds = %191
  %198 = load i32, ptr %184, align 8, !tbaa !64
  %199 = and i32 %198, 65536
  %.not150 = icmp eq i32 %199, 0
  br i1 %.not150, label %205, label %200

200:                                              ; preds = %197, %191
  %201 = getelementptr inbounds i8, ptr %.0127161, i64 8
  %202 = load ptr, ptr %201, align 8, !tbaa !65
  %203 = getelementptr inbounds i8, ptr %.0127161, i64 16
  %204 = load i64, ptr %203, align 8, !tbaa !66
  tail call void @png_write_chunk(ptr noundef %0, ptr noundef nonnull %.0127161, ptr noundef %202, i64 noundef %204) #2
  br label %205

205:                                              ; preds = %200, %197, %187, %185
  %206 = getelementptr inbounds i8, ptr %.0127161, i64 32
  %207 = load ptr, ptr %181, align 8, !tbaa !62
  %208 = load i64, ptr %178, align 8, !tbaa !61
  %209 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %207, i64 %208
  %210 = icmp ult ptr %206, %209
  br i1 %210, label %185, label %.loopexit, !llvm.loop !67

.loopexit:                                        ; preds = %205, %180, %._crit_edge, %2
  ret void
}

declare void @png_write_PLTE(ptr noundef, ptr noundef, i32 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, 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(ptr noundef, i32 noundef, double noundef, double 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, 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 8}
!6 = !{!"png_info_struct", !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, !8, i64 56, !7, i64 60, !7, i64 64, !11, i64 72, !14, i64 80, !15, i64 88, !11, i64 96, !16, i64 104, !16, i64 114, !7, i64 124, !7, i64 128, !8, i64 132, !7, i64 136, !7, i64 140, !8, i64 144, !11, i64 152, !13, i64 160, !13, i64 164, !13, i64 168, !13, i64 172, !13, i64 176, !13, i64 180, !13, i64 184, !13, i64 188, !11, i64 192, !7, i64 200, !7, i64 204, !11, i64 208, !11, i64 216, !8, i64 224, !8, i64 225, !7, i64 228, !11, i64 232, !10, i64 240, !11, i64 248, !11, i64 256, !7, i64 264, !8, i64 268, !11, i64 272, !7, i64 280, !8, i64 284, !17, i64 288, !17, i64 296, !11, i64 304, !11, i64 312, !11, i64 320, !7, i64 328, !7, i64 332, !7, i64 336, !7, i64 340, !7, i64 344, !7, i64 348, !7, i64 352, !7, i64 356, !7, i64 360}
!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 = !{!"float", !8, i64 0}
!14 = !{!"png_time_struct", !12, 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, !12, i64 2, !12, i64 4, !12, i64 6, !12, i64 8}
!17 = !{!"double", !8, i64 0}
!18 = !{!6, !11, i64 24}
!19 = !{!6, !12, i64 32}
!20 = !{!6, !8, i64 37}
!21 = !{!22, !7, i64 292}
!22 = !{!"png_struct_def", !8, i64 0, !11, i64 200, !11, i64 208, !11, i64 216, !11, i64 224, !11, i64 232, !11, i64 240, !11, i64 248, !11, i64 256, !11, i64 264, !11, i64 272, !8, i64 280, !8, i64 281, !7, i64 284, !7, i64 288, !7, i64 292, !23, i64 296, !11, i64 408, !10, i64 416, !7, i64 424, !7, i64 428, !7, i64 432, !7, i64 436, !7, i64 440, !7, i64 444, !7, i64 448, !7, i64 452, !7, i64 456, !10, i64 464, !10, i64 472, !7, i64 480, !7, i64 484, !11, i64 488, !11, i64 496, !11, i64 504, !11, i64 512, !11, i64 520, !11, i64 528, !24, i64 536, !7, i64 560, !7, i64 564, !11, i64 568, !12, i64 576, !12, i64 578, !8, i64 580, !8, i64 585, !8, i64 586, !8, i64 587, !8, i64 588, !8, i64 589, !8, i64 590, !8, i64 591, !8, i64 592, !8, i64 593, !8, i64 594, !8, i64 595, !8, i64 596, !12, i64 598, !8, i64 600, !13, i64 604, !16, i64 608, !16, i64 618, !11, i64 632, !7, i64 640, !7, i64 644, !7, i64 648, !13, i64 652, !13, i64 656, !11, i64 664, !11, i64 672, !11, i64 680, !11, i64 688, !11, i64 696, !11, i64 704, !15, i64 712, !15, i64 717, !11, i64 728, !16, i64 736, !11, i64 752, !11, i64 760, !11, i64 768, !11, i64 776, !11, i64 784, !11, i64 792, !11, i64 800, !11, i64 808, !11, i64 816, !7, i64 824, !7, i64 828, !10, i64 832, !10, i64 840, !10, i64 848, !10, i64 856, !7, i64 864, !7, i64 868, !10, i64 872, !10, i64 880, !11, i64 888, !11, i64 896, !11, i64 904, !11, i64 912, !11, i64 920, !8, i64 928, !8, i64 929, !11, i64 936, !11, i64 944, !11, i64 952, !11, i64 960, !11, i64 968, !11, i64 976, !7, i64 984, !11, i64 992, !11, i64 1000, !7, i64 1008, !11, i64 1016, !8, i64 1024, !12, i64 1026, !12, i64 1028, !12, i64 1030, !7, i64 1032, !7, i64 1036, !8, i64 1040, !11, i64 1048, !11, i64 1056, !11, i64 1064, !11, i64 1072, !11, i64 1080, !11, i64 1088, !11, i64 1096, !8, i64 1104, !7, i64 1108, !7, i64 1112, !7, i64 1116, !25, i64 1120, !7, i64 1152, !7, i64 1156, !11, i64 1160, !7, i64 1168}
!23 = !{!"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}
!24 = !{!"png_row_info_struct", !7, i64 0, !10, i64 8, !8, i64 16, !8, i64 17, !8, i64 18, !8, i64 19}
!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 96}
!28 = !{!8, !8, i64 0}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = !{!6, !11, i64 152}
!32 = !{!6, !7, i64 124}
!33 = !{!6, !7, i64 128}
!34 = !{!6, !8, i64 132}
!35 = !{!6, !11, i64 192}
!36 = !{!6, !7, i64 200}
!37 = !{!6, !7, i64 204}
!38 = !{!6, !8, i64 224}
!39 = !{!6, !8, i64 225}
!40 = !{!6, !11, i64 208}
!41 = !{!6, !11, i64 216}
!42 = !{!6, !8, i64 284}
!43 = !{!6, !17, i64 288}
!44 = !{!6, !17, i64 296}
!45 = !{!6, !7, i64 136}
!46 = !{!6, !7, i64 140}
!47 = !{!6, !8, i64 144}
!48 = !{!22, !7, i64 284}
!49 = !{!6, !7, i64 280}
!50 = !{!6, !11, i64 272}
!51 = distinct !{!51, !30}
!52 = !{!6, !7, i64 60}
!53 = !{!6, !11, i64 72}
!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}
!61 = !{!6, !10, i64 240}
!62 = !{!6, !11, i64 232}
!63 = !{!25, !8, i64 24}
!64 = !{!22, !7, i64 288}
!65 = !{!25, !11, i64 8}
!66 = !{!25, !10, i64 16}
!67 = distinct !{!67, !30}


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