; LLVM IR from niessner/Matterport :: code/gaps/pkgs/png (pngrutil)

; 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 }

@stderr = external global ptr, align 8
@.str.31 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [28 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @png_crc_read(ptr noundef, ptr noundef, i64 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @png_crc_finish(ptr noundef, i32 noundef) #2

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

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #3

; Function Attrs: nounwind uwtable
define dso_local void @png_handle_cHRM(ptr noundef %0, ptr noundef %1, i32 noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca [32 x i8], align 16
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #4
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.png_struct_def, ptr %27, i32 0, i32 13
  %29 = load i32, ptr %28, align 4, !tbaa !11
  %30 = and i32 %29, 1
  %31 = icmp ne i32 %30, 0
  br i1 %31, label %34, label %32

32:                                               ; preds = %3
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_error(ptr noundef %33, ptr noundef @.str.31)
  br label %55

34:                                               ; preds = %3
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.png_struct_def, ptr %35, i32 0, i32 13
  %37 = load i32, ptr %36, align 4, !tbaa !11
  %38 = and i32 %37, 4
  %39 = icmp ne i32 %38, 0
  br i1 %39, label %40, label %45

40:                                               ; preds = %34
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_warning(ptr noundef %41, ptr noundef @.str.32)
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = load i32, ptr %6, align 4, !tbaa !9
  %44 = call i32 @png_crc_finish(ptr noundef %42, i32 noundef %43)
  store i32 1, ptr %26, align 4
  br label %431

45:                                               ; preds = %34
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.png_struct_def, ptr %46, i32 0, i32 13
  %48 = load i32, ptr %47, align 4, !tbaa !11
  %49 = and i32 %48, 2
  %50 = icmp ne i32 %49, 0
  br i1 %50, label %51, label %53

51:                                               ; preds = %45
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_warning(ptr noundef %52, ptr noundef @.str.33)
  br label %53

53:                                               ; preds = %51, %45
  br label %54

54:                                               ; preds = %53
  br label %55

55:                                               ; preds = %54, %32
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = icmp ne ptr %56, null
  br i1 %57, label %58, label %75

58:                                               ; preds = %55
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.png_info_struct, ptr %59, i32 0, i32 2
  %61 = load i32, ptr %60, align 8, !tbaa !21
  %62 = and i32 %61, 4
  %63 = icmp ne i32 %62, 0
  br i1 %63, label %64, label %75

64:                                               ; preds = %58
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.png_info_struct, ptr %65, i32 0, i32 2
  %67 = load i32, ptr %66, align 8, !tbaa !21
  %68 = and i32 %67, 2048
  %69 = icmp ne i32 %68, 0
  br i1 %69, label %75, label %70

70:                                               ; preds = %64
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_warning(ptr noundef %71, ptr noundef @.str.34)
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = load i32, ptr %6, align 4, !tbaa !9
  %74 = call i32 @png_crc_finish(ptr noundef %72, i32 noundef %73)
  store i32 1, ptr %26, align 4
  br label %431

75:                                               ; preds = %64, %58, %55
  %76 = load i32, ptr %6, align 4, !tbaa !9
  %77 = icmp ne i32 %76, 32
  br i1 %77, label %78, label %83

78:                                               ; preds = %75
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_warning(ptr noundef %79, ptr noundef @.str.35)
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = load i32, ptr %6, align 4, !tbaa !9
  %82 = call i32 @png_crc_finish(ptr noundef %80, i32 noundef %81)
  store i32 1, ptr %26, align 4
  br label %431

83:                                               ; preds = %75
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  %85 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
  call void @png_crc_read(ptr noundef %84, ptr noundef %85, i64 noundef 32)
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = call i32 @png_crc_finish(ptr noundef %86, i32 noundef 0)
  %88 = icmp ne i32 %87, 0
  br i1 %88, label %89, label %90

89:                                               ; preds = %83
  store i32 1, ptr %26, align 4
  br label %431

90:                                               ; preds = %83
  %91 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
  %92 = load i8, ptr %91, align 16, !tbaa !25
  %93 = zext i8 %92 to i32
  %94 = shl i32 %93, 24
  %95 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
  %96 = getelementptr inbounds i8, ptr %95, i64 1
  %97 = load i8, ptr %96, align 1, !tbaa !25
  %98 = zext i8 %97 to i32
  %99 = shl i32 %98, 16
  %100 = add i32 %94, %99
  %101 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
  %102 = getelementptr inbounds i8, ptr %101, i64 2
  %103 = load i8, ptr %102, align 1, !tbaa !25
  %104 = zext i8 %103 to i32
  %105 = shl i32 %104, 8
  %106 = add i32 %100, %105
  %107 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
  %108 = getelementptr inbounds i8, ptr %107, i64 3
  %109 = load i8, ptr %108, align 1, !tbaa !25
  %110 = zext i8 %109 to i32
  %111 = add i32 %106, %110
  store i32 %111, ptr %24, align 4, !tbaa !9
  %112 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
  %113 = getelementptr inbounds i8, ptr %112, i64 4
  %114 = load i8, ptr %113, align 1, !tbaa !25
  %115 = zext i8 %114 to i32
  %116 = shl i32 %115, 24
  %117 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
  %118 = getelementptr inbounds i8, ptr %117, i64 4
  %119 = getelementptr inbounds i8, ptr %118, i64 1
  %120 = load i8, ptr %119, align 1, !tbaa !25
  %121 = zext i8 %120 to i32
  %122 = shl i32 %121, 16
  %123 = add i32 %116, %122
  %124 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
  %125 = getelementptr inbounds i8, ptr %124, i64 4
  %126 = getelementptr inbounds i8, ptr %125, i64 2
  %127 = load i8, ptr %126, align 1, !tbaa !25
  %128 = zext i8 %127 to i32
  %129 = shl i32 %128, 8
  %130 = add i32 %123, %129
  %131 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
  %132 = getelementptr inbounds i8, ptr %131, i64 4
  %133 = getelementptr inbounds i8, ptr %132, i64 3
  %134 = load i8, ptr %133, align 1, !tbaa !25
  %135 = zext i8 %134 to i32
  %136 = add i32 %130, %135
  store i32 %136, ptr %25, align 4, !tbaa !9
  %137 = load i32, ptr %24, align 4, !tbaa !9
  store i32 %137, ptr %16, align 4, !tbaa !9
  %138 = load i32, ptr %25, align 4, !tbaa !9
  store i32 %138, ptr %17, align 4, !tbaa !9
  %139 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
  %140 = getelementptr inbounds i8, ptr %139, i64 8
  %141 = load i8, ptr %140, align 1, !tbaa !25
  %142 = zext i8 %141 to i32
  %143 = shl i32 %142, 24
  %144 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
  %145 = getelementptr inbounds i8, ptr %144, i64 8
  %146 = getelementptr inbounds i8, ptr %145, i64 1
  %147 = load i8, ptr %146, align 1, !tbaa !25
  %148 = zext i8 %147 to i32
  %149 = shl i32 %148, 16
  %150 = add i32 %143, %149
  %151 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
  %152 = getelementptr inbounds i8, ptr %151, i64 8
  %153 = getelementptr inbounds i8, ptr %152, i64 2
  %154 = load i8, ptr %153, align 1, !tbaa !25
  %155 = zext i8 %154 to i32
  %156 = shl i32 %155, 8
  %157 = add i32 %150, %156
  %158 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
  %159 = getelementptr inbounds i8, ptr %158, i64 8
  %160 = getelementptr inbounds i8, ptr %159, i64 3
  %161 = load i8, ptr %160, align 1, !tbaa !25
  %162 = zext i8 %161 to i32
  %163 = add i32 %157, %162
  store i32 %163, ptr %24, align 4, !tbaa !9
  %164 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
  %165 = getelementptr inbounds i8, ptr %164, i64 12
  %166 = load i8, ptr %165, align 1, !tbaa !25
  %167 = zext i8 %166 to i32
  %168 = shl i32 %167, 24
  %169 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
  %170 = getelementptr inbounds i8, ptr %169, i64 12
  %171 = getelementptr inbounds i8, ptr %170, i64 1
  %172 = load i8, ptr %171, align 1, !tbaa !25
  %173 = zext i8 %172 to i32
  %174 = shl i32 %173, 16
  %175 = add i32 %168, %174
  %176 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
  %177 = getelementptr inbounds i8, ptr %176, i64 12
  %178 = getelementptr inbounds i8, ptr %177, i64 2
  %179 = load i8, ptr %178, align 1, !tbaa !25
  %180 = zext i8 %179 to i32
  %181 = shl i32 %180, 8
  %182 = add i32 %175, %181
  %183 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
  %184 = getelementptr inbounds i8, ptr %183, i64 12
  %185 = getelementptr inbounds i8, ptr %184, i64 3
  %186 = load i8, ptr %185, align 1, !tbaa !25
  %187 = zext i8 %186 to i32
  %188 = add i32 %182, %187
  store i32 %188, ptr %25, align 4, !tbaa !9
  %189 = load i32, ptr %24, align 4, !tbaa !9
  store i32 %189, ptr %18, align 4, !tbaa !9
  %190 = load i32, ptr %25, align 4, !tbaa !9
  store i32 %190, ptr %19, align 4, !tbaa !9
  %191 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
  %192 = getelementptr inbounds i8, ptr %191, i64 16
  %193 = load i8, ptr %192, align 1, !tbaa !25
  %194 = zext i8 %193 to i32
  %195 = shl i32 %194, 24
  %196 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
  %197 = getelementptr inbounds i8, ptr %196, i64 16
  %198 = getelementptr inbounds i8, ptr %197, i64 1
  %199 = load i8, ptr %198, align 1, !tbaa !25
  %200 = zext i8 %199 to i32
  %201 = shl i32 %200, 16
  %202 = add i32 %195, %201
  %203 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
  %204 = getelementptr inbounds i8, ptr %203, i64 16
  %205 = getelementptr inbounds i8, ptr %204, i64 2
  %206 = load i8, ptr %205, align 1, !tbaa !25
  %207 = zext i8 %206 to i32
  %208 = shl i32 %207, 8
  %209 = add i32 %202, %208
  %210 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
  %211 = getelementptr inbounds i8, ptr %210, i64 16
  %212 = getelementptr inbounds i8, ptr %211, i64 3
  %213 = load i8, ptr %212, align 1, !tbaa !25
  %214 = zext i8 %213 to i32
  %215 = add i32 %209, %214
  store i32 %215, ptr %24, align 4, !tbaa !9
  %216 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
  %217 = getelementptr inbounds i8, ptr %216, i64 20
  %218 = load i8, ptr %217, align 1, !tbaa !25
  %219 = zext i8 %218 to i32
  %220 = shl i32 %219, 24
  %221 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
  %222 = getelementptr inbounds i8, ptr %221, i64 20
  %223 = getelementptr inbounds i8, ptr %222, i64 1
  %224 = load i8, ptr %223, align 1, !tbaa !25
  %225 = zext i8 %224 to i32
  %226 = shl i32 %225, 16
  %227 = add i32 %220, %226
  %228 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
  %229 = getelementptr inbounds i8, ptr %228, i64 20
  %230 = getelementptr inbounds i8, ptr %229, i64 2
  %231 = load i8, ptr %230, align 1, !tbaa !25
  %232 = zext i8 %231 to i32
  %233 = shl i32 %232, 8
  %234 = add i32 %227, %233
  %235 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
  %236 = getelementptr inbounds i8, ptr %235, i64 20
  %237 = getelementptr inbounds i8, ptr %236, i64 3
  %238 = load i8, ptr %237, align 1, !tbaa !25
  %239 = zext i8 %238 to i32
  %240 = add i32 %234, %239
  store i32 %240, ptr %25, align 4, !tbaa !9
  %241 = load i32, ptr %24, align 4, !tbaa !9
  store i32 %241, ptr %20, align 4, !tbaa !9
  %242 = load i32, ptr %25, align 4, !tbaa !9
  store i32 %242, ptr %21, align 4, !tbaa !9
  %243 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
  %244 = getelementptr inbounds i8, ptr %243, i64 24
  %245 = load i8, ptr %244, align 1, !tbaa !25
  %246 = zext i8 %245 to i32
  %247 = shl i32 %246, 24
  %248 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
  %249 = getelementptr inbounds i8, ptr %248, i64 24
  %250 = getelementptr inbounds i8, ptr %249, i64 1
  %251 = load i8, ptr %250, align 1, !tbaa !25
  %252 = zext i8 %251 to i32
  %253 = shl i32 %252, 16
  %254 = add i32 %247, %253
  %255 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
  %256 = getelementptr inbounds i8, ptr %255, i64 24
  %257 = getelementptr inbounds i8, ptr %256, i64 2
  %258 = load i8, ptr %257, align 1, !tbaa !25
  %259 = zext i8 %258 to i32
  %260 = shl i32 %259, 8
  %261 = add i32 %254, %260
  %262 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
  %263 = getelementptr inbounds i8, ptr %262, i64 24
  %264 = getelementptr inbounds i8, ptr %263, i64 3
  %265 = load i8, ptr %264, align 1, !tbaa !25
  %266 = zext i8 %265 to i32
  %267 = add i32 %261, %266
  store i32 %267, ptr %24, align 4, !tbaa !9
  %268 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
  %269 = getelementptr inbounds i8, ptr %268, i64 28
  %270 = load i8, ptr %269, align 1, !tbaa !25
  %271 = zext i8 %270 to i32
  %272 = shl i32 %271, 24
  %273 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
  %274 = getelementptr inbounds i8, ptr %273, i64 28
  %275 = getelementptr inbounds i8, ptr %274, i64 1
  %276 = load i8, ptr %275, align 1, !tbaa !25
  %277 = zext i8 %276 to i32
  %278 = shl i32 %277, 16
  %279 = add i32 %272, %278
  %280 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
  %281 = getelementptr inbounds i8, ptr %280, i64 28
  %282 = getelementptr inbounds i8, ptr %281, i64 2
  %283 = load i8, ptr %282, align 1, !tbaa !25
  %284 = zext i8 %283 to i32
  %285 = shl i32 %284, 8
  %286 = add i32 %279, %285
  %287 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
  %288 = getelementptr inbounds i8, ptr %287, i64 28
  %289 = getelementptr inbounds i8, ptr %288, i64 3
  %290 = load i8, ptr %289, align 1, !tbaa !25
  %291 = zext i8 %290 to i32
  %292 = add i32 %286, %291
  store i32 %292, ptr %25, align 4, !tbaa !9
  %293 = load i32, ptr %24, align 4, !tbaa !9
  store i32 %293, ptr %22, align 4, !tbaa !9
  %294 = load i32, ptr %25, align 4, !tbaa !9
  store i32 %294, ptr %23, align 4, !tbaa !9
  %295 = load i32, ptr %16, align 4, !tbaa !9
  %296 = sitofp i32 %295 to float
  %297 = fdiv float %296, 1.000000e+05
  store float %297, ptr %8, align 4, !tbaa !26
  %298 = load i32, ptr %17, align 4, !tbaa !9
  %299 = sitofp i32 %298 to float
  %300 = fdiv float %299, 1.000000e+05
  store float %300, ptr %9, align 4, !tbaa !26
  %301 = load i32, ptr %18, align 4, !tbaa !9
  %302 = sitofp i32 %301 to float
  %303 = fdiv float %302, 1.000000e+05
  store float %303, ptr %10, align 4, !tbaa !26
  %304 = load i32, ptr %19, align 4, !tbaa !9
  %305 = sitofp i32 %304 to float
  %306 = fdiv float %305, 1.000000e+05
  store float %306, ptr %11, align 4, !tbaa !26
  %307 = load i32, ptr %20, align 4, !tbaa !9
  %308 = sitofp i32 %307 to float
  %309 = fdiv float %308, 1.000000e+05
  store float %309, ptr %12, align 4, !tbaa !26
  %310 = load i32, ptr %21, align 4, !tbaa !9
  %311 = sitofp i32 %310 to float
  %312 = fdiv float %311, 1.000000e+05
  store float %312, ptr %13, align 4, !tbaa !26
  %313 = load i32, ptr %22, align 4, !tbaa !9
  %314 = sitofp i32 %313 to float
  %315 = fdiv float %314, 1.000000e+05
  store float %315, ptr %14, align 4, !tbaa !26
  %316 = load i32, ptr %23, align 4, !tbaa !9
  %317 = sitofp i32 %316 to float
  %318 = fdiv float %317, 1.000000e+05
  store float %318, ptr %15, align 4, !tbaa !26
  %319 = load ptr, ptr %5, align 8, !tbaa !5
  %320 = icmp ne ptr %319, null
  br i1 %320, label %321, label %402

321:                                              ; preds = %90
  %322 = load ptr, ptr %5, align 8, !tbaa !5
  %323 = getelementptr inbounds %struct.png_info_struct, ptr %322, i32 0, i32 2
  %324 = load i32, ptr %323, align 8, !tbaa !21
  %325 = and i32 %324, 2048
  %326 = icmp ne i32 %325, 0
  br i1 %326, label %327, label %402

327:                                              ; preds = %321
  %328 = load i32, ptr %16, align 4, !tbaa !9
  %329 = icmp slt i32 %328, 30270
  br i1 %329, label %379, label %330

330:                                              ; preds = %327
  %331 = load i32, ptr %16, align 4, !tbaa !9
  %332 = icmp sgt i32 %331, 32270
  br i1 %332, label %379, label %333

333:                                              ; preds = %330
  %334 = load i32, ptr %17, align 4, !tbaa !9
  %335 = icmp slt i32 %334, 31900
  br i1 %335, label %379, label %336

336:                                              ; preds = %333
  %337 = load i32, ptr %17, align 4, !tbaa !9
  %338 = icmp sgt i32 %337, 33900
  br i1 %338, label %379, label %339

339:                                              ; preds = %336
  %340 = load i32, ptr %18, align 4, !tbaa !9
  %341 = sext i32 %340 to i64
  %342 = icmp slt i64 %341, 63000
  br i1 %342, label %379, label %343

343:                                              ; preds = %339
  %344 = load i32, ptr %18, align 4, !tbaa !9
  %345 = sext i32 %344 to i64
  %346 = icmp sgt i64 %345, 65000
  br i1 %346, label %379, label %347

347:                                              ; preds = %343
  %348 = load i32, ptr %19, align 4, !tbaa !9
  %349 = icmp slt i32 %348, 32000
  br i1 %349, label %379, label %350

350:                                              ; preds = %347
  %351 = load i32, ptr %19, align 4, !tbaa !9
  %352 = icmp sgt i32 %351, 34000
  br i1 %352, label %379, label %353

353:                                              ; preds = %350
  %354 = load i32, ptr %20, align 4, !tbaa !9
  %355 = icmp slt i32 %354, 29000
  br i1 %355, label %379, label %356

356:                                              ; preds = %353
  %357 = load i32, ptr %20, align 4, !tbaa !9
  %358 = icmp sgt i32 %357, 31000
  br i1 %358, label %379, label %359

359:                                              ; preds = %356
  %360 = load i32, ptr %21, align 4, !tbaa !9
  %361 = sext i32 %360 to i64
  %362 = icmp slt i64 %361, 59000
  br i1 %362, label %379, label %363

363:                                              ; preds = %359
  %364 = load i32, ptr %21, align 4, !tbaa !9
  %365 = sext i32 %364 to i64
  %366 = icmp sgt i64 %365, 61000
  br i1 %366, label %379, label %367

367:                                              ; preds = %363
  %368 = load i32, ptr %22, align 4, !tbaa !9
  %369 = icmp slt i32 %368, 14000
  br i1 %369, label %379, label %370

370:                                              ; preds = %367
  %371 = load i32, ptr %22, align 4, !tbaa !9
  %372 = icmp sgt i32 %371, 16000
  br i1 %372, label %379, label %373

373:                                              ; preds = %370
  %374 = load i32, ptr %23, align 4, !tbaa !9
  %375 = icmp slt i32 %374, 5000
  br i1 %375, label %379, label %376

376:                                              ; preds = %373
  %377 = load i32, ptr %23, align 4, !tbaa !9
  %378 = icmp sgt i32 %377, 7000
  br i1 %378, label %379, label %401

379:                                              ; preds = %376, %373, %370, %367, %363, %359, %356, %353, %350, %347, %343, %339, %336, %333, %330, %327
  %380 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_warning(ptr noundef %380, ptr noundef @.str.36)
  %381 = load ptr, ptr @stderr, align 8, !tbaa !5
  %382 = load float, ptr %8, align 4, !tbaa !26
  %383 = fpext float %382 to double
  %384 = load float, ptr %9, align 4, !tbaa !26
  %385 = fpext float %384 to double
  %386 = load float, ptr %10, align 4, !tbaa !26
  %387 = fpext float %386 to double
  %388 = load float, ptr %11, align 4, !tbaa !26
  %389 = fpext float %388 to double
  %390 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %381, ptr noundef @.str.37, double noundef %383, double noundef %385, double noundef %387, double noundef %389) #4
  %391 = load ptr, ptr @stderr, align 8, !tbaa !5
  %392 = load float, ptr %12, align 4, !tbaa !26
  %393 = fpext float %392 to double
  %394 = load float, ptr %13, align 4, !tbaa !26
  %395 = fpext float %394 to double
  %396 = load float, ptr %14, align 4, !tbaa !26
  %397 = fpext float %396 to double
  %398 = load float, ptr %15, align 4, !tbaa !26
  %399 = fpext float %398 to double
  %400 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %391, ptr noundef @.str.38, double noundef %393, double noundef %395, double noundef %397, double noundef %399) #4
  br label %401

401:                                              ; preds = %379, %376
  store i32 1, ptr %26, align 4
  br label %431

402:                                              ; preds = %321, %90
  %403 = load ptr, ptr %4, align 8, !tbaa !5
  %404 = load ptr, ptr %5, align 8, !tbaa !5
  %405 = load float, ptr %8, align 4, !tbaa !26
  %406 = fpext float %405 to double
  %407 = load float, ptr %9, align 4, !tbaa !26
  %408 = fpext float %407 to double
  %409 = load float, ptr %10, align 4, !tbaa !26
  %410 = fpext float %409 to double
  %411 = load float, ptr %11, align 4, !tbaa !26
  %412 = fpext float %411 to double
  %413 = load float, ptr %12, align 4, !tbaa !26
  %414 = fpext float %413 to double
  %415 = load float, ptr %13, align 4, !tbaa !26
  %416 = fpext float %415 to double
  %417 = load float, ptr %14, align 4, !tbaa !26
  %418 = fpext float %417 to double
  %419 = load float, ptr %15, align 4, !tbaa !26
  %420 = fpext float %419 to double
  call void @png_set_cHRM(ptr noundef %403, ptr noundef %404, double noundef %406, double noundef %408, double noundef %410, double noundef %412, double noundef %414, double noundef %416, double noundef %418, double noundef %420)
  %421 = load ptr, ptr %4, align 8, !tbaa !5
  %422 = load ptr, ptr %5, align 8, !tbaa !5
  %423 = load i32, ptr %16, align 4, !tbaa !9
  %424 = load i32, ptr %17, align 4, !tbaa !9
  %425 = load i32, ptr %18, align 4, !tbaa !9
  %426 = load i32, ptr %19, align 4, !tbaa !9
  %427 = load i32, ptr %20, align 4, !tbaa !9
  %428 = load i32, ptr %21, align 4, !tbaa !9
  %429 = load i32, ptr %22, align 4, !tbaa !9
  %430 = load i32, ptr %23, align 4, !tbaa !9
  call void @png_set_cHRM_fixed(ptr noundef %421, ptr noundef %422, i32 noundef %423, i32 noundef %424, i32 noundef %425, i32 noundef %426, i32 noundef %427, i32 noundef %428, i32 noundef %429, i32 noundef %430)
  store i32 0, ptr %26, align 4
  br label %431

431:                                              ; preds = %402, %401, %89, %78, %70, %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #4
  %432 = load i32, ptr %26, align 4
  switch i32 %432, label %434 [
    i32 0, label %433
    i32 1, label %433
  ]

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

434:                                              ; preds = %431
  unreachable
}

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 284}
!12 = !{!"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, !10, i64 284, !10, i64 288, !10, i64 292, !13, i64 296, !6, i64 408, !14, 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, !14, i64 464, !14, i64 472, !10, i64 480, !10, i64 484, !6, i64 488, !6, i64 496, !6, i64 504, !6, i64 512, !6, i64 520, !6, i64 528, !15, i64 536, !10, i64 560, !10, i64 564, !6, i64 568, !16, i64 576, !16, 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, !16, i64 598, !7, i64 600, !17, i64 604, !18, i64 608, !18, i64 618, !6, i64 632, !10, i64 640, !10, i64 644, !10, i64 648, !17, i64 652, !17, i64 656, !6, i64 664, !6, i64 672, !6, i64 680, !6, i64 688, !6, i64 696, !6, i64 704, !19, i64 712, !19, i64 717, !6, i64 728, !18, 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, !10, i64 824, !10, i64 828, !14, i64 832, !14, i64 840, !14, i64 848, !14, i64 856, !10, i64 864, !10, i64 868, !14, i64 872, !14, 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, !10, i64 984, !6, i64 992, !6, i64 1000, !10, i64 1008, !6, i64 1016, !7, i64 1024, !16, i64 1026, !16, i64 1028, !16, i64 1030, !10, i64 1032, !10, 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, !10, i64 1108, !10, i64 1112, !10, i64 1116, !20, i64 1120, !10, i64 1152, !10, i64 1156, !6, i64 1160, !10, i64 1168}
!13 = !{!"z_stream_s", !6, i64 0, !10, i64 8, !14, i64 16, !6, i64 24, !10, i64 32, !14, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !10, i64 88, !14, i64 96, !14, i64 104}
!14 = !{!"long", !7, i64 0}
!15 = !{!"png_row_info_struct", !10, i64 0, !14, i64 8, !7, i64 16, !7, i64 17, !7, i64 18, !7, i64 19}
!16 = !{!"short", !7, i64 0}
!17 = !{!"float", !7, i64 0}
!18 = !{!"png_color_16_struct", !7, i64 0, !16, i64 2, !16, i64 4, !16, i64 6, !16, i64 8}
!19 = !{!"png_color_8_struct", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4}
!20 = !{!"png_unknown_chunk_t", !7, i64 0, !6, i64 8, !14, i64 16, !7, i64 24}
!21 = !{!22, !10, i64 8}
!22 = !{!"png_info_struct", !10, i64 0, !10, i64 4, !10, i64 8, !14, i64 16, !6, i64 24, !16, i64 32, !16, 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, !17, i64 52, !7, i64 56, !10, i64 60, !10, i64 64, !6, i64 72, !23, i64 80, !19, i64 88, !6, i64 96, !18, i64 104, !18, i64 114, !10, i64 124, !10, i64 128, !7, i64 132, !10, i64 136, !10, i64 140, !7, i64 144, !6, i64 152, !17, i64 160, !17, i64 164, !17, i64 168, !17, i64 172, !17, i64 176, !17, i64 180, !17, i64 184, !17, i64 188, !6, i64 192, !10, i64 200, !10, i64 204, !6, i64 208, !6, i64 216, !7, i64 224, !7, i64 225, !10, i64 228, !6, i64 232, !14, i64 240, !6, i64 248, !6, i64 256, !10, i64 264, !7, i64 268, !6, i64 272, !10, i64 280, !7, i64 284, !24, i64 288, !24, i64 296, !6, i64 304, !6, i64 312, !6, 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}
!23 = !{!"png_time_struct", !16, i64 0, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !7, i64 6}
!24 = !{!"double", !7, i64 0}
!25 = !{!7, !7, i64 0}
!26 = !{!17, !17, i64 0}


; 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"

@stderr = external local_unnamed_addr global ptr, align 8
@.str.31 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [28 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @png_crc_read(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @png_crc_finish(ptr noundef, i32 noundef) local_unnamed_addr #2

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

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local void @png_handle_cHRM(ptr noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #2 {
  %4 = alloca [32 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #4
  %5 = getelementptr inbounds i8, ptr %0, i64 284
  %6 = load i32, ptr %5, align 4, !tbaa !5
  %7 = and i32 %6, 1
  %.not = icmp eq i32 %7, 0
  br i1 %.not, label %8, label %9

8:                                                ; preds = %3
  tail call void @png_error(ptr noundef nonnull %0, ptr noundef nonnull @.str.31) #4
  br label %16

9:                                                ; preds = %3
  %10 = and i32 %6, 4
  %.not116 = icmp eq i32 %10, 0
  br i1 %.not116, label %13, label %11

11:                                               ; preds = %9
  tail call void @png_warning(ptr noundef nonnull %0, ptr noundef nonnull @.str.32) #4
  %12 = tail call i32 @png_crc_finish(ptr noundef nonnull %0, i32 noundef %2)
  br label %230

13:                                               ; preds = %9
  %14 = and i32 %6, 2
  %.not117 = icmp eq i32 %14, 0
  br i1 %.not117, label %16, label %15

15:                                               ; preds = %13
  tail call void @png_warning(ptr noundef nonnull %0, ptr noundef nonnull @.str.33) #4
  br label %16

16:                                               ; preds = %15, %13, %8
  %.not118 = icmp eq ptr %1, null
  br i1 %.not118, label %23, label %17

17:                                               ; preds = %16
  %18 = getelementptr inbounds i8, ptr %1, i64 8
  %19 = load i32, ptr %18, align 8, !tbaa !19
  %20 = and i32 %19, 2052
  %or.cond124 = icmp eq i32 %20, 4
  br i1 %or.cond124, label %21, label %23

21:                                               ; preds = %17
  tail call void @png_warning(ptr noundef nonnull %0, ptr noundef nonnull @.str.34) #4
  %22 = tail call i32 @png_crc_finish(ptr noundef nonnull %0, i32 noundef %2)
  br label %230

23:                                               ; preds = %17, %16
  %.not121 = icmp eq i32 %2, 32
  br i1 %.not121, label %26, label %24

24:                                               ; preds = %23
  tail call void @png_warning(ptr noundef nonnull %0, ptr noundef nonnull @.str.35) #4
  %25 = tail call i32 @png_crc_finish(ptr noundef nonnull %0, i32 noundef %2)
  br label %230

26:                                               ; preds = %23
  call void @png_crc_read(ptr noundef nonnull %0, ptr noundef nonnull %4, i64 noundef 32)
  %27 = call i32 @png_crc_finish(ptr noundef nonnull %0, i32 noundef 0)
  %.not122 = icmp eq i32 %27, 0
  br i1 %.not122, label %28, label %230

28:                                               ; preds = %26
  %29 = load i8, ptr %4, align 16, !tbaa !23
  %30 = zext i8 %29 to i32
  %31 = shl nuw i32 %30, 24
  %32 = getelementptr inbounds i8, ptr %4, i64 1
  %33 = load i8, ptr %32, align 1, !tbaa !23
  %34 = zext i8 %33 to i32
  %35 = shl nuw nsw i32 %34, 16
  %36 = or disjoint i32 %35, %31
  %37 = getelementptr inbounds i8, ptr %4, i64 2
  %38 = load i8, ptr %37, align 2, !tbaa !23
  %39 = zext i8 %38 to i32
  %40 = shl nuw nsw i32 %39, 8
  %41 = or disjoint i32 %36, %40
  %42 = getelementptr inbounds i8, ptr %4, i64 3
  %43 = load i8, ptr %42, align 1, !tbaa !23
  %44 = zext i8 %43 to i32
  %45 = or disjoint i32 %41, %44
  %46 = getelementptr inbounds i8, ptr %4, i64 4
  %47 = load i8, ptr %46, align 4, !tbaa !23
  %48 = zext i8 %47 to i32
  %49 = shl nuw i32 %48, 24
  %50 = getelementptr inbounds i8, ptr %4, i64 5
  %51 = load i8, ptr %50, align 1, !tbaa !23
  %52 = zext i8 %51 to i32
  %53 = shl nuw nsw i32 %52, 16
  %54 = or disjoint i32 %53, %49
  %55 = getelementptr inbounds i8, ptr %4, i64 6
  %56 = load i8, ptr %55, align 2, !tbaa !23
  %57 = zext i8 %56 to i32
  %58 = shl nuw nsw i32 %57, 8
  %59 = or disjoint i32 %54, %58
  %60 = getelementptr inbounds i8, ptr %4, i64 7
  %61 = load i8, ptr %60, align 1, !tbaa !23
  %62 = zext i8 %61 to i32
  %63 = or disjoint i32 %59, %62
  %64 = getelementptr inbounds i8, ptr %4, i64 8
  %65 = load i8, ptr %64, align 8, !tbaa !23
  %66 = zext i8 %65 to i32
  %67 = shl nuw i32 %66, 24
  %68 = getelementptr inbounds i8, ptr %4, i64 9
  %69 = load i8, ptr %68, align 1, !tbaa !23
  %70 = zext i8 %69 to i32
  %71 = shl nuw nsw i32 %70, 16
  %72 = or disjoint i32 %71, %67
  %73 = getelementptr inbounds i8, ptr %4, i64 10
  %74 = load i8, ptr %73, align 2, !tbaa !23
  %75 = zext i8 %74 to i32
  %76 = shl nuw nsw i32 %75, 8
  %77 = or disjoint i32 %72, %76
  %78 = getelementptr inbounds i8, ptr %4, i64 11
  %79 = load i8, ptr %78, align 1, !tbaa !23
  %80 = zext i8 %79 to i32
  %81 = or disjoint i32 %77, %80
  %82 = getelementptr inbounds i8, ptr %4, i64 12
  %83 = load i8, ptr %82, align 4, !tbaa !23
  %84 = zext i8 %83 to i32
  %85 = shl nuw i32 %84, 24
  %86 = getelementptr inbounds i8, ptr %4, i64 13
  %87 = load i8, ptr %86, align 1, !tbaa !23
  %88 = zext i8 %87 to i32
  %89 = shl nuw nsw i32 %88, 16
  %90 = or disjoint i32 %89, %85
  %91 = getelementptr inbounds i8, ptr %4, i64 14
  %92 = load i8, ptr %91, align 2, !tbaa !23
  %93 = zext i8 %92 to i32
  %94 = shl nuw nsw i32 %93, 8
  %95 = or disjoint i32 %90, %94
  %96 = getelementptr inbounds i8, ptr %4, i64 15
  %97 = load i8, ptr %96, align 1, !tbaa !23
  %98 = zext i8 %97 to i32
  %99 = or disjoint i32 %95, %98
  %100 = getelementptr inbounds i8, ptr %4, i64 16
  %101 = load i8, ptr %100, align 16, !tbaa !23
  %102 = zext i8 %101 to i32
  %103 = shl nuw i32 %102, 24
  %104 = getelementptr inbounds i8, ptr %4, i64 17
  %105 = load i8, ptr %104, align 1, !tbaa !23
  %106 = zext i8 %105 to i32
  %107 = shl nuw nsw i32 %106, 16
  %108 = or disjoint i32 %107, %103
  %109 = getelementptr inbounds i8, ptr %4, i64 18
  %110 = load i8, ptr %109, align 2, !tbaa !23
  %111 = zext i8 %110 to i32
  %112 = shl nuw nsw i32 %111, 8
  %113 = or disjoint i32 %108, %112
  %114 = getelementptr inbounds i8, ptr %4, i64 19
  %115 = load i8, ptr %114, align 1, !tbaa !23
  %116 = zext i8 %115 to i32
  %117 = or disjoint i32 %113, %116
  %118 = getelementptr inbounds i8, ptr %4, i64 20
  %119 = load i8, ptr %118, align 4, !tbaa !23
  %120 = zext i8 %119 to i32
  %121 = shl nuw i32 %120, 24
  %122 = getelementptr inbounds i8, ptr %4, i64 21
  %123 = load i8, ptr %122, align 1, !tbaa !23
  %124 = zext i8 %123 to i32
  %125 = shl nuw nsw i32 %124, 16
  %126 = or disjoint i32 %125, %121
  %127 = getelementptr inbounds i8, ptr %4, i64 22
  %128 = load i8, ptr %127, align 2, !tbaa !23
  %129 = zext i8 %128 to i32
  %130 = shl nuw nsw i32 %129, 8
  %131 = or disjoint i32 %126, %130
  %132 = getelementptr inbounds i8, ptr %4, i64 23
  %133 = load i8, ptr %132, align 1, !tbaa !23
  %134 = zext i8 %133 to i32
  %135 = or disjoint i32 %131, %134
  %136 = getelementptr inbounds i8, ptr %4, i64 24
  %137 = load i8, ptr %136, align 8, !tbaa !23
  %138 = zext i8 %137 to i32
  %139 = shl nuw i32 %138, 24
  %140 = getelementptr inbounds i8, ptr %4, i64 25
  %141 = load i8, ptr %140, align 1, !tbaa !23
  %142 = zext i8 %141 to i32
  %143 = shl nuw nsw i32 %142, 16
  %144 = or disjoint i32 %143, %139
  %145 = getelementptr inbounds i8, ptr %4, i64 26
  %146 = load i8, ptr %145, align 2, !tbaa !23
  %147 = zext i8 %146 to i32
  %148 = shl nuw nsw i32 %147, 8
  %149 = or disjoint i32 %144, %148
  %150 = getelementptr inbounds i8, ptr %4, i64 27
  %151 = load i8, ptr %150, align 1, !tbaa !23
  %152 = zext i8 %151 to i32
  %153 = or disjoint i32 %149, %152
  %154 = getelementptr inbounds i8, ptr %4, i64 28
  %155 = load i8, ptr %154, align 4, !tbaa !23
  %156 = zext i8 %155 to i32
  %157 = shl nuw i32 %156, 24
  %158 = getelementptr inbounds i8, ptr %4, i64 29
  %159 = load i8, ptr %158, align 1, !tbaa !23
  %160 = zext i8 %159 to i32
  %161 = shl nuw nsw i32 %160, 16
  %162 = or disjoint i32 %161, %157
  %163 = getelementptr inbounds i8, ptr %4, i64 30
  %164 = load i8, ptr %163, align 2, !tbaa !23
  %165 = zext i8 %164 to i32
  %166 = shl nuw nsw i32 %165, 8
  %167 = or disjoint i32 %162, %166
  %168 = getelementptr inbounds i8, ptr %4, i64 31
  %169 = load i8, ptr %168, align 1, !tbaa !23
  %170 = zext i8 %169 to i32
  %171 = or disjoint i32 %167, %170
  %172 = sitofp i32 %45 to float
  %173 = fdiv float %172, 1.000000e+05
  %174 = sitofp i32 %63 to float
  %175 = fdiv float %174, 1.000000e+05
  %176 = sitofp i32 %81 to float
  %177 = fdiv float %176, 1.000000e+05
  %178 = sitofp i32 %99 to float
  %179 = fdiv float %178, 1.000000e+05
  %180 = sitofp i32 %117 to float
  %181 = fdiv float %180, 1.000000e+05
  %182 = sitofp i32 %135 to float
  %183 = fdiv float %182, 1.000000e+05
  %184 = sitofp i32 %153 to float
  %185 = fdiv float %184, 1.000000e+05
  %186 = sitofp i32 %171 to float
  %187 = fdiv float %186, 1.000000e+05
  br i1 %.not118, label %221, label %188

188:                                              ; preds = %28
  %189 = getelementptr inbounds i8, ptr %1, i64 8
  %190 = load i32, ptr %189, align 8, !tbaa !19
  %191 = and i32 %190, 2048
  %.not123 = icmp eq i32 %191, 0
  br i1 %.not123, label %221, label %192

192:                                              ; preds = %188
  %193 = add i32 %45, -32271
  %or.cond = icmp ult i32 %193, -2001
  %194 = add i32 %63, -33901
  %195 = icmp ult i32 %194, -2001
  %or.cond5 = select i1 %or.cond, i1 true, i1 %195
  %196 = add i32 %81, -65001
  %197 = icmp ult i32 %196, -2001
  %or.cond11 = select i1 %or.cond5, i1 true, i1 %197
  %198 = add i32 %99, -34001
  %199 = icmp ult i32 %198, -2001
  %or.cond15 = select i1 %or.cond11, i1 true, i1 %199
  %200 = add i32 %117, -31001
  %201 = icmp ult i32 %200, -2001
  %or.cond19 = select i1 %or.cond15, i1 true, i1 %201
  %202 = add i32 %135, -61001
  %203 = icmp ult i32 %202, -2001
  %or.cond25 = select i1 %or.cond19, i1 true, i1 %203
  %204 = add i32 %153, -16001
  %205 = icmp ult i32 %204, -2001
  %or.cond29 = select i1 %or.cond25, i1 true, i1 %205
  %206 = add i32 %171, -7001
  %207 = icmp ult i32 %206, -2001
  %or.cond33 = select i1 %or.cond29, i1 true, i1 %207
  br i1 %or.cond33, label %208, label %230

208:                                              ; preds = %192
  call void @png_warning(ptr noundef nonnull %0, ptr noundef nonnull @.str.36) #4
  %209 = load ptr, ptr @stderr, align 8, !tbaa !24
  %210 = fpext float %173 to double
  %211 = fpext float %175 to double
  %212 = fpext float %177 to double
  %213 = fpext float %179 to double
  %214 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %209, ptr noundef nonnull @.str.37, double noundef %210, double noundef %211, double noundef %212, double noundef %213) #5
  %215 = load ptr, ptr @stderr, align 8, !tbaa !24
  %216 = fpext float %181 to double
  %217 = fpext float %183 to double
  %218 = fpext float %185 to double
  %219 = fpext float %187 to double
  %220 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %215, ptr noundef nonnull @.str.38, double noundef %216, double noundef %217, double noundef %218, double noundef %219) #5
  br label %230

221:                                              ; preds = %188, %28
  %222 = fpext float %173 to double
  %223 = fpext float %175 to double
  %224 = fpext float %177 to double
  %225 = fpext float %179 to double
  %226 = fpext float %181 to double
  %227 = fpext float %183 to double
  %228 = fpext float %185 to double
  %229 = fpext float %187 to double
  call void @png_set_cHRM(ptr noundef nonnull %0, ptr noundef %1, double noundef %222, double noundef %223, double noundef %224, double noundef %225, double noundef %226, double noundef %227, double noundef %228, double noundef %229) #4
  call void @png_set_cHRM_fixed(ptr noundef nonnull %0, ptr noundef %1, i32 noundef %45, i32 noundef %63, i32 noundef %81, i32 noundef %99, i32 noundef %117, i32 noundef %135, i32 noundef %153, i32 noundef %171) #4
  br label %230

230:                                              ; preds = %208, %192, %26, %221, %24, %21, %11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #4
  ret void
}

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 #3 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { cold 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 = !{!20, !10, i64 8}
!20 = !{!"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, !21, 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, !22, i64 288, !22, 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}
!21 = !{!"png_time_struct", !14, i64 0, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !7, i64 6}
!22 = !{!"double", !7, i64 0}
!23 = !{!7, !7, i64 0}
!24 = !{!9, !9, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass