; 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_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_color_8_struct = type { i8, i8, i8, i8, i8 }
%struct.png_color_16_struct = type { i8, i16, i16, i16, i16 }
%struct.png_unknown_chunk_t = type { [5 x i8], ptr, i64, i8 }
%struct.png_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 }

@.str = external hidden unnamed_addr constant [49 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [34 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @png_write_info_before_PLTE(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %7 = load ptr, ptr %3, align 8, !tbaa !5
  %8 = icmp eq ptr %7, null
  br i1 %8, label %12, label %9

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

12:                                               ; preds = %9, %2
  br label %250

13:                                               ; preds = %9
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.png_struct_def, ptr %14, i32 0, i32 13
  %16 = load i32, ptr %15, align 4, !tbaa !9
  %17 = and i32 %16, 1024
  %18 = icmp ne i32 %17, 0
  br i1 %18, label %250, label %19

19:                                               ; preds = %13
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  call void @png_write_sig(ptr noundef %20)
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.png_struct_def, ptr %21, i32 0, i32 13
  %23 = load i32, ptr %22, align 4, !tbaa !9
  %24 = and i32 %23, 4096
  %25 = icmp ne i32 %24, 0
  br i1 %25, label %26, label %35

26:                                               ; preds = %19
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.png_struct_def, ptr %27, i32 0, i32 119
  %29 = load i32, ptr %28, align 8, !tbaa !20
  %30 = icmp ne i32 %29, 0
  br i1 %30, label %31, label %35

31:                                               ; preds = %26
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  call void @png_warning(ptr noundef %32, ptr noundef @.str)
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.png_struct_def, ptr %33, i32 0, i32 119
  store i32 0, ptr %34, align 8, !tbaa !20
  br label %35

35:                                               ; preds = %31, %26, %19
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.png_info_struct, ptr %37, i32 0, i32 0
  %39 = load i32, ptr %38, align 8, !tbaa !21
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.png_info_struct, ptr %40, i32 0, i32 1
  %42 = load i32, ptr %41, align 4, !tbaa !25
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.png_info_struct, ptr %43, i32 0, i32 7
  %45 = load i8, ptr %44, align 4, !tbaa !26
  %46 = zext i8 %45 to i32
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.png_info_struct, ptr %47, i32 0, i32 8
  %49 = load i8, ptr %48, align 1, !tbaa !27
  %50 = zext i8 %49 to i32
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.png_info_struct, ptr %51, i32 0, i32 9
  %53 = load i8, ptr %52, align 2, !tbaa !28
  %54 = zext i8 %53 to i32
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.png_info_struct, ptr %55, i32 0, i32 10
  %57 = load i8, ptr %56, align 1, !tbaa !29
  %58 = zext i8 %57 to i32
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.png_info_struct, ptr %59, i32 0, i32 11
  %61 = load i8, ptr %60, align 8, !tbaa !30
  %62 = zext i8 %61 to i32
  call void @png_write_IHDR(ptr noundef %36, i32 noundef %39, i32 noundef %42, i32 noundef %46, i32 noundef %50, i32 noundef %54, i32 noundef %58, i32 noundef %62)
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.png_info_struct, ptr %63, i32 0, i32 2
  %65 = load i32, ptr %64, align 8, !tbaa !31
  %66 = and i32 %65, 1
  %67 = icmp ne i32 %66, 0
  br i1 %67, label %68, label %74

68:                                               ; preds = %35
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.png_info_struct, ptr %70, i32 0, i32 16
  %72 = load float, ptr %71, align 4, !tbaa !32
  %73 = fpext float %72 to double
  call void @png_write_gAMA(ptr noundef %69, double noundef %73)
  br label %74

74:                                               ; preds = %68, %35
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.png_info_struct, ptr %75, i32 0, i32 2
  %77 = load i32, ptr %76, align 8, !tbaa !31
  %78 = and i32 %77, 2048
  %79 = icmp ne i32 %78, 0
  br i1 %79, label %80, label %86

80:                                               ; preds = %74
  %81 = load ptr, ptr %3, align 8, !tbaa !5
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.png_info_struct, ptr %82, i32 0, i32 17
  %84 = load i8, ptr %83, align 8, !tbaa !33
  %85 = zext i8 %84 to i32
  call void @png_write_sRGB(ptr noundef %81, i32 noundef %85)
  br label %86

86:                                               ; preds = %80, %74
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.png_info_struct, ptr %87, i32 0, i32 2
  %89 = load i32, ptr %88, align 8, !tbaa !31
  %90 = and i32 %89, 4096
  %91 = icmp ne i32 %90, 0
  br i1 %91, label %92, label %103

92:                                               ; preds = %86
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.png_info_struct, ptr %94, i32 0, i32 51
  %96 = load ptr, ptr %95, align 8, !tbaa !34
  %97 = load ptr, ptr %4, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.png_info_struct, ptr %97, i32 0, i32 52
  %99 = load ptr, ptr %98, align 8, !tbaa !35
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.png_info_struct, ptr %100, i32 0, i32 53
  %102 = load i32, ptr %101, align 8, !tbaa !36
  call void @png_write_iCCP(ptr noundef %93, ptr noundef %96, i32 noundef 0, ptr noundef %99, i32 noundef %102)
  br label %103

103:                                              ; preds = %92, %86
  %104 = load ptr, ptr %4, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.png_info_struct, ptr %104, i32 0, i32 2
  %106 = load i32, ptr %105, align 8, !tbaa !31
  %107 = and i32 %106, 2
  %108 = icmp ne i32 %107, 0
  br i1 %108, label %109, label %117

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

117:                                              ; preds = %109, %103
  %118 = load ptr, ptr %4, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.png_info_struct, ptr %118, i32 0, i32 2
  %120 = load i32, ptr %119, align 8, !tbaa !31
  %121 = and i32 %120, 4
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %123, label %157

123:                                              ; preds = %117
  %124 = load ptr, ptr %3, align 8, !tbaa !5
  %125 = load ptr, ptr %4, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.png_info_struct, ptr %125, i32 0, i32 33
  %127 = load float, ptr %126, align 8, !tbaa !37
  %128 = fpext float %127 to double
  %129 = load ptr, ptr %4, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.png_info_struct, ptr %129, i32 0, i32 34
  %131 = load float, ptr %130, align 4, !tbaa !38
  %132 = fpext float %131 to double
  %133 = load ptr, ptr %4, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.png_info_struct, ptr %133, i32 0, i32 35
  %135 = load float, ptr %134, align 8, !tbaa !39
  %136 = fpext float %135 to double
  %137 = load ptr, ptr %4, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.png_info_struct, ptr %137, i32 0, i32 36
  %139 = load float, ptr %138, align 4, !tbaa !40
  %140 = fpext float %139 to double
  %141 = load ptr, ptr %4, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.png_info_struct, ptr %141, i32 0, i32 37
  %143 = load float, ptr %142, align 8, !tbaa !41
  %144 = fpext float %143 to double
  %145 = load ptr, ptr %4, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.png_info_struct, ptr %145, i32 0, i32 38
  %147 = load float, ptr %146, align 4, !tbaa !42
  %148 = fpext float %147 to double
  %149 = load ptr, ptr %4, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.png_info_struct, ptr %149, i32 0, i32 39
  %151 = load float, ptr %150, align 8, !tbaa !43
  %152 = fpext float %151 to double
  %153 = load ptr, ptr %4, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.png_info_struct, ptr %153, i32 0, i32 40
  %155 = load float, ptr %154, align 4, !tbaa !44
  %156 = fpext float %155 to double
  call void @png_write_cHRM(ptr noundef %124, double noundef %128, double noundef %132, double noundef %136, double noundef %140, double noundef %144, double noundef %148, double noundef %152, double noundef %156)
  br label %157

157:                                              ; preds = %123, %117
  %158 = load ptr, ptr %4, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.png_info_struct, ptr %158, i32 0, i32 50
  %160 = load i64, ptr %159, align 8, !tbaa !45
  %161 = icmp ne i64 %160, 0
  br i1 %161, label %162, label %245

162:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  %163 = load ptr, ptr %4, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.png_info_struct, ptr %163, i32 0, i32 49
  %165 = load ptr, ptr %164, align 8, !tbaa !46
  store ptr %165, ptr %5, align 8, !tbaa !5
  br label %166

166:                                              ; preds = %241, %162
  %167 = load ptr, ptr %5, align 8, !tbaa !5
  %168 = load ptr, ptr %4, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.png_info_struct, ptr %168, i32 0, i32 49
  %170 = load ptr, ptr %169, align 8, !tbaa !46
  %171 = load ptr, ptr %4, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.png_info_struct, ptr %171, i32 0, i32 50
  %173 = load i64, ptr %172, align 8, !tbaa !45
  %174 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %170, i64 %173
  %175 = icmp ult ptr %167, %174
  br i1 %175, label %176, label %244

176:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  %177 = load ptr, ptr %3, align 8, !tbaa !5
  %178 = load ptr, ptr %5, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %178, i32 0, i32 0
  %180 = getelementptr inbounds [5 x i8], ptr %179, i64 0, i64 0
  %181 = call i32 @png_handle_as_unknown(ptr noundef %177, ptr noundef %180)
  store i32 %181, ptr %6, align 4, !tbaa !47
  %182 = load i32, ptr %6, align 4, !tbaa !47
  %183 = icmp ne i32 %182, 1
  br i1 %183, label %184, label %240

184:                                              ; preds = %176
  %185 = load ptr, ptr %5, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %185, i32 0, i32 3
  %187 = load i8, ptr %186, align 8, !tbaa !48
  %188 = zext i8 %187 to i32
  %189 = icmp ne i32 %188, 0
  br i1 %189, label %190, label %240

190:                                              ; preds = %184
  %191 = load ptr, ptr %5, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %191, i32 0, i32 3
  %193 = load i8, ptr %192, align 8, !tbaa !48
  %194 = zext i8 %193 to i32
  %195 = and i32 %194, 2
  %196 = icmp ne i32 %195, 0
  br i1 %196, label %240, label %197

197:                                              ; preds = %190
  %198 = load ptr, ptr %5, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %198, i32 0, i32 3
  %200 = load i8, ptr %199, align 8, !tbaa !48
  %201 = zext i8 %200 to i32
  %202 = and i32 %201, 4
  %203 = icmp ne i32 %202, 0
  br i1 %203, label %240, label %204

204:                                              ; preds = %197
  %205 = load ptr, ptr %5, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %205, i32 0, i32 0
  %207 = getelementptr inbounds [5 x i8], ptr %206, i64 0, i64 3
  %208 = load i8, ptr %207, align 1, !tbaa !49
  %209 = zext i8 %208 to i32
  %210 = and i32 %209, 32
  %211 = icmp ne i32 %210, 0
  br i1 %211, label %222, label %212

212:                                              ; preds = %204
  %213 = load i32, ptr %6, align 4, !tbaa !47
  %214 = icmp eq i32 %213, 3
  br i1 %214, label %222, label %215

215:                                              ; preds = %212
  %216 = load ptr, ptr %3, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.png_struct_def, ptr %216, i32 0, i32 14
  %218 = load i32, ptr %217, align 8, !tbaa !50
  %219 = zext i32 %218 to i64
  %220 = and i64 %219, 65536
  %221 = icmp ne i64 %220, 0
  br i1 %221, label %222, label %240

222:                                              ; preds = %215, %212, %204
  %223 = load ptr, ptr %5, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %223, i32 0, i32 2
  %225 = load i64, ptr %224, align 8, !tbaa !51
  %226 = icmp eq i64 %225, 0
  br i1 %226, label %227, label %229

227:                                              ; preds = %222
  %228 = load ptr, ptr %3, align 8, !tbaa !5
  call void @png_warning(ptr noundef %228, ptr noundef @.str.1)
  br label %229

229:                                              ; preds = %227, %222
  %230 = load ptr, ptr %3, align 8, !tbaa !5
  %231 = load ptr, ptr %5, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %231, i32 0, i32 0
  %233 = getelementptr inbounds [5 x i8], ptr %232, i64 0, i64 0
  %234 = load ptr, ptr %5, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %234, i32 0, i32 1
  %236 = load ptr, ptr %235, align 8, !tbaa !52
  %237 = load ptr, ptr %5, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %237, i32 0, i32 2
  %239 = load i64, ptr %238, align 8, !tbaa !51
  call void @png_write_chunk(ptr noundef %230, ptr noundef %233, ptr noundef %236, i64 noundef %239)
  br label %240

240:                                              ; preds = %229, %215, %197, %190, %184, %176
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  br label %241

241:                                              ; preds = %240
  %242 = load ptr, ptr %5, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %242, i32 1
  store ptr %243, ptr %5, align 8, !tbaa !5
  br label %166, !llvm.loop !53

244:                                              ; preds = %166
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  br label %245

245:                                              ; preds = %244, %157
  %246 = load ptr, ptr %3, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.png_struct_def, ptr %246, i32 0, i32 13
  %248 = load i32, ptr %247, align 4, !tbaa !9
  %249 = or i32 %248, 1024
  store i32 %249, ptr %247, align 4, !tbaa !9
  br label %250

250:                                              ; preds = %245, %13, %12
  ret void
}

declare void @png_write_sig(ptr noundef) #1

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

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

declare void @png_write_gAMA(ptr noundef, double noundef) #1

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

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

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

declare void @png_write_cHRM(ptr noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double 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

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 284}
!10 = !{!"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, !12, i64 296, !6, i64 408, !13, 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, !13, i64 464, !13, 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, !14, i64 536, !11, i64 560, !11, i64 564, !6, i64 568, !15, i64 576, !15, 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, !15, i64 598, !7, i64 600, !16, i64 604, !17, i64 608, !17, i64 618, !6, i64 632, !11, i64 640, !11, i64 644, !11, i64 648, !16, i64 652, !16, i64 656, !6, i64 664, !6, i64 672, !6, i64 680, !6, i64 688, !6, i64 696, !6, i64 704, !18, i64 712, !18, 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, !13, i64 832, !13, i64 840, !13, i64 848, !13, i64 856, !11, i64 864, !11, i64 868, !13, i64 872, !13, 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, !15, i64 1026, !15, i64 1028, !15, 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, !19, i64 1120, !11, i64 1152, !11, i64 1156, !6, i64 1160, !11, i64 1168}
!11 = !{!"int", !7, i64 0}
!12 = !{!"z_stream_s", !6, i64 0, !11, i64 8, !13, i64 16, !6, i64 24, !11, i64 32, !13, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !11, i64 88, !13, i64 96, !13, i64 104}
!13 = !{!"long", !7, i64 0}
!14 = !{!"png_row_info_struct", !11, i64 0, !13, i64 8, !7, i64 16, !7, i64 17, !7, i64 18, !7, i64 19}
!15 = !{!"short", !7, i64 0}
!16 = !{!"float", !7, i64 0}
!17 = !{!"png_color_16_struct", !7, i64 0, !15, i64 2, !15, i64 4, !15, i64 6, !15, i64 8}
!18 = !{!"png_color_8_struct", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4}
!19 = !{!"png_unknown_chunk_t", !7, i64 0, !6, i64 8, !13, i64 16, !7, i64 24}
!20 = !{!10, !11, i64 1032}
!21 = !{!22, !11, i64 0}
!22 = !{!"png_info_struct", !11, i64 0, !11, i64 4, !11, i64 8, !13, i64 16, !6, i64 24, !15, i64 32, !15, 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, !16, i64 52, !7, i64 56, !11, i64 60, !11, i64 64, !6, i64 72, !23, i64 80, !18, 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, !16, i64 160, !16, i64 164, !16, i64 168, !16, i64 172, !16, i64 176, !16, i64 180, !16, i64 184, !16, 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, !13, i64 240, !6, i64 248, !6, i64 256, !11, i64 264, !7, i64 268, !6, i64 272, !11, i64 280, !7, i64 284, !24, i64 288, !24, 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}
!23 = !{!"png_time_struct", !15, i64 0, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !7, i64 6}
!24 = !{!"double", !7, i64 0}
!25 = !{!22, !11, i64 4}
!26 = !{!22, !7, i64 36}
!27 = !{!22, !7, i64 37}
!28 = !{!22, !7, i64 38}
!29 = !{!22, !7, i64 39}
!30 = !{!22, !7, i64 40}
!31 = !{!22, !11, i64 8}
!32 = !{!22, !16, i64 52}
!33 = !{!22, !7, i64 56}
!34 = !{!22, !6, i64 248}
!35 = !{!22, !6, i64 256}
!36 = !{!22, !11, i64 264}
!37 = !{!22, !16, i64 160}
!38 = !{!22, !16, i64 164}
!39 = !{!22, !16, i64 168}
!40 = !{!22, !16, i64 172}
!41 = !{!22, !16, i64 176}
!42 = !{!22, !16, i64 180}
!43 = !{!22, !16, i64 184}
!44 = !{!22, !16, i64 188}
!45 = !{!22, !13, i64 240}
!46 = !{!22, !6, i64 232}
!47 = !{!11, !11, i64 0}
!48 = !{!19, !7, i64 24}
!49 = !{!7, !7, i64 0}
!50 = !{!10, !11, i64 288}
!51 = !{!19, !13, i64 16}
!52 = !{!19, !6, i64 8}
!53 = distinct !{!53, !54}
!54 = !{!"llvm.loop.mustprogress"}


; 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_unknown_chunk_t = type { [5 x i8], ptr, i64, i8 }

@.str = external hidden unnamed_addr constant [49 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [34 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @png_write_info_before_PLTE(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 %135, label %5

5:                                                ; preds = %2
  %6 = getelementptr inbounds i8, ptr %0, i64 284
  %7 = load i32, ptr %6, align 4, !tbaa !5
  %8 = and i32 %7, 1024
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %9, label %135

9:                                                ; preds = %5
  tail call void @png_write_sig(ptr noundef nonnull %0) #2
  %10 = load i32, ptr %6, align 4, !tbaa !5
  %11 = and i32 %10, 4096
  %.not69 = icmp eq i32 %11, 0
  br i1 %.not69, label %16, label %12

12:                                               ; preds = %9
  %13 = getelementptr inbounds i8, ptr %0, i64 1032
  %14 = load i32, ptr %13, align 8, !tbaa !19
  %.not70 = icmp eq i32 %14, 0
  br i1 %.not70, label %16, label %15

15:                                               ; preds = %12
  tail call void @png_warning(ptr noundef nonnull %0, ptr noundef nonnull @.str) #2
  store i32 0, ptr %13, align 8, !tbaa !19
  br label %16

16:                                               ; preds = %15, %12, %9
  %17 = load i32, ptr %1, align 8, !tbaa !20
  %18 = getelementptr inbounds i8, ptr %1, i64 4
  %19 = load i32, ptr %18, align 4, !tbaa !24
  %20 = getelementptr inbounds i8, ptr %1, i64 36
  %21 = load i8, ptr %20, align 4, !tbaa !25
  %22 = zext i8 %21 to i32
  %23 = getelementptr inbounds i8, ptr %1, i64 37
  %24 = load i8, ptr %23, align 1, !tbaa !26
  %25 = zext i8 %24 to i32
  %26 = getelementptr inbounds i8, ptr %1, i64 38
  %27 = load i8, ptr %26, align 2, !tbaa !27
  %28 = zext i8 %27 to i32
  %29 = getelementptr inbounds i8, ptr %1, i64 39
  %30 = load i8, ptr %29, align 1, !tbaa !28
  %31 = zext i8 %30 to i32
  %32 = getelementptr inbounds i8, ptr %1, i64 40
  %33 = load i8, ptr %32, align 8, !tbaa !29
  %34 = zext i8 %33 to i32
  tail call void @png_write_IHDR(ptr noundef nonnull %0, i32 noundef %17, i32 noundef %19, i32 noundef %22, i32 noundef %25, i32 noundef %28, i32 noundef %31, i32 noundef %34) #2
  %35 = getelementptr inbounds i8, ptr %1, i64 8
  %36 = load i32, ptr %35, align 8, !tbaa !30
  %37 = and i32 %36, 1
  %.not71 = icmp eq i32 %37, 0
  br i1 %.not71, label %42, label %38

38:                                               ; preds = %16
  %39 = getelementptr inbounds i8, ptr %1, i64 52
  %40 = load float, ptr %39, align 4, !tbaa !31
  %41 = fpext float %40 to double
  tail call void @png_write_gAMA(ptr noundef nonnull %0, double noundef %41) #2
  %.pre = load i32, ptr %35, align 8, !tbaa !30
  br label %42

42:                                               ; preds = %38, %16
  %43 = phi i32 [ %.pre, %38 ], [ %36, %16 ]
  %44 = and i32 %43, 2048
  %.not72 = icmp eq i32 %44, 0
  br i1 %.not72, label %49, label %45

45:                                               ; preds = %42
  %46 = getelementptr inbounds i8, ptr %1, i64 56
  %47 = load i8, ptr %46, align 8, !tbaa !32
  %48 = zext i8 %47 to i32
  tail call void @png_write_sRGB(ptr noundef nonnull %0, i32 noundef %48) #2
  %.pre85 = load i32, ptr %35, align 8, !tbaa !30
  br label %49

49:                                               ; preds = %45, %42
  %50 = phi i32 [ %.pre85, %45 ], [ %43, %42 ]
  %51 = and i32 %50, 4096
  %.not73 = icmp eq i32 %51, 0
  br i1 %.not73, label %59, label %52

52:                                               ; preds = %49
  %53 = getelementptr inbounds i8, ptr %1, i64 248
  %54 = load ptr, ptr %53, align 8, !tbaa !33
  %55 = getelementptr inbounds i8, ptr %1, i64 256
  %56 = load ptr, ptr %55, align 8, !tbaa !34
  %57 = getelementptr inbounds i8, ptr %1, i64 264
  %58 = load i32, ptr %57, align 8, !tbaa !35
  tail call void @png_write_iCCP(ptr noundef nonnull %0, ptr noundef %54, i32 noundef 0, ptr noundef %56, i32 noundef %58) #2
  %.pre86 = load i32, ptr %35, align 8, !tbaa !30
  br label %59

59:                                               ; preds = %52, %49
  %60 = phi i32 [ %.pre86, %52 ], [ %50, %49 ]
  %61 = and i32 %60, 2
  %.not74 = icmp eq i32 %61, 0
  br i1 %.not74, label %66, label %62

62:                                               ; preds = %59
  %63 = getelementptr inbounds i8, ptr %1, i64 88
  %64 = load i8, ptr %23, align 1, !tbaa !26
  %65 = zext i8 %64 to i32
  tail call void @png_write_sBIT(ptr noundef nonnull %0, ptr noundef nonnull %63, i32 noundef %65) #2
  %.pre87 = load i32, ptr %35, align 8, !tbaa !30
  br label %66

66:                                               ; preds = %62, %59
  %67 = phi i32 [ %.pre87, %62 ], [ %60, %59 ]
  %68 = and i32 %67, 4
  %.not75 = icmp eq i32 %68, 0
  br i1 %.not75, label %94, label %69

69:                                               ; preds = %66
  %70 = getelementptr inbounds i8, ptr %1, i64 160
  %71 = load float, ptr %70, align 8, !tbaa !36
  %72 = fpext float %71 to double
  %73 = getelementptr inbounds i8, ptr %1, i64 164
  %74 = load float, ptr %73, align 4, !tbaa !37
  %75 = fpext float %74 to double
  %76 = getelementptr inbounds i8, ptr %1, i64 168
  %77 = load float, ptr %76, align 8, !tbaa !38
  %78 = fpext float %77 to double
  %79 = getelementptr inbounds i8, ptr %1, i64 172
  %80 = load float, ptr %79, align 4, !tbaa !39
  %81 = fpext float %80 to double
  %82 = getelementptr inbounds i8, ptr %1, i64 176
  %83 = load float, ptr %82, align 8, !tbaa !40
  %84 = fpext float %83 to double
  %85 = getelementptr inbounds i8, ptr %1, i64 180
  %86 = load float, ptr %85, align 4, !tbaa !41
  %87 = fpext float %86 to double
  %88 = getelementptr inbounds i8, ptr %1, i64 184
  %89 = load float, ptr %88, align 8, !tbaa !42
  %90 = fpext float %89 to double
  %91 = getelementptr inbounds i8, ptr %1, i64 188
  %92 = load float, ptr %91, align 4, !tbaa !43
  %93 = fpext float %92 to double
  tail call void @png_write_cHRM(ptr noundef nonnull %0, double noundef %72, double noundef %75, double noundef %78, double noundef %81, double noundef %84, double noundef %87, double noundef %90, double noundef %93) #2
  br label %94

94:                                               ; preds = %69, %66
  %95 = getelementptr inbounds i8, ptr %1, i64 240
  %96 = load i64, ptr %95, align 8, !tbaa !44
  %.not76 = icmp eq i64 %96, 0
  br i1 %.not76, label %.loopexit, label %97

97:                                               ; preds = %94
  %98 = getelementptr inbounds i8, ptr %1, i64 232
  %99 = icmp sgt i64 %96, 0
  br i1 %99, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %97
  %100 = load ptr, ptr %98, align 8, !tbaa !45
  %101 = getelementptr inbounds i8, ptr %0, i64 288
  br label %102

102:                                              ; preds = %.lr.ph, %127
  %.084 = phi ptr [ %100, %.lr.ph ], [ %128, %127 ]
  %103 = tail call i32 @png_handle_as_unknown(ptr noundef %0, ptr noundef %.084) #2
  %.not77 = icmp eq i32 %103, 1
  br i1 %.not77, label %127, label %104

104:                                              ; preds = %102
  %105 = getelementptr inbounds i8, ptr %.084, i64 24
  %106 = load i8, ptr %105, align 8, !tbaa !46
  %.not78 = icmp ne i8 %106, 0
  %107 = and i8 %106, 6
  %108 = icmp eq i8 %107, 0
  %or.cond83 = and i1 %.not78, %108
  br i1 %or.cond83, label %109, label %127

109:                                              ; preds = %104
  %110 = getelementptr inbounds i8, ptr %.084, i64 3
  %111 = load i8, ptr %110, align 1, !tbaa !47
  %112 = and i8 %111, 32
  %113 = icmp ne i8 %112, 0
  %114 = icmp eq i32 %103, 3
  %or.cond3 = or i1 %114, %113
  br i1 %or.cond3, label %118, label %115

115:                                              ; preds = %109
  %116 = load i32, ptr %101, align 8, !tbaa !48
  %117 = and i32 %116, 65536
  %.not81 = icmp eq i32 %117, 0
  br i1 %.not81, label %127, label %118

118:                                              ; preds = %115, %109
  %119 = getelementptr inbounds i8, ptr %.084, i64 16
  %120 = load i64, ptr %119, align 8, !tbaa !49
  %121 = icmp eq i64 %120, 0
  br i1 %121, label %122, label %123

122:                                              ; preds = %118
  tail call void @png_warning(ptr noundef %0, ptr noundef nonnull @.str.1) #2
  %.pre88 = load i64, ptr %119, align 8, !tbaa !49
  br label %123

123:                                              ; preds = %122, %118
  %124 = phi i64 [ %.pre88, %122 ], [ %120, %118 ]
  %125 = getelementptr inbounds i8, ptr %.084, i64 8
  %126 = load ptr, ptr %125, align 8, !tbaa !50
  tail call void @png_write_chunk(ptr noundef %0, ptr noundef nonnull %.084, ptr noundef %126, i64 noundef %124) #2
  br label %127

127:                                              ; preds = %123, %115, %104, %102
  %128 = getelementptr inbounds i8, ptr %.084, i64 32
  %129 = load ptr, ptr %98, align 8, !tbaa !45
  %130 = load i64, ptr %95, align 8, !tbaa !44
  %131 = getelementptr inbounds %struct.png_unknown_chunk_t, ptr %129, i64 %130
  %132 = icmp ult ptr %128, %131
  br i1 %132, label %102, label %.loopexit, !llvm.loop !51

.loopexit:                                        ; preds = %127, %97, %94
  %133 = load i32, ptr %6, align 4, !tbaa !5
  %134 = or i32 %133, 1024
  store i32 %134, ptr %6, align 4, !tbaa !5
  br label %135

135:                                              ; preds = %2, %.loopexit, %5
  ret void
}

declare void @png_write_sig(ptr noundef) local_unnamed_addr #1

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

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

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

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

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

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

declare void @png_write_cHRM(ptr noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double 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

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


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