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

; 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.7 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [39 x i8], align 1
@__const.png_read_info.png_IHDR = external hidden unnamed_addr constant [5 x i8], align 1
@__const.png_read_info.png_IDAT = external hidden unnamed_addr constant [5 x i8], align 1
@__const.png_read_info.png_IEND = external hidden unnamed_addr constant [5 x i8], align 1
@__const.png_read_info.png_PLTE = external hidden unnamed_addr constant [5 x i8], align 1
@__const.png_read_info.png_bKGD = external hidden unnamed_addr constant [5 x i8], align 1
@__const.png_read_info.png_cHRM = external hidden unnamed_addr constant [5 x i8], align 1
@__const.png_read_info.png_gAMA = external hidden unnamed_addr constant [5 x i8], align 1
@__const.png_read_info.png_hIST = external hidden unnamed_addr constant [5 x i8], align 1
@__const.png_read_info.png_iCCP = external hidden unnamed_addr constant [5 x i8], align 1
@__const.png_read_info.png_iTXt = external hidden unnamed_addr constant [5 x i8], align 1
@__const.png_read_info.png_oFFs = external hidden unnamed_addr constant [5 x i8], align 1
@__const.png_read_info.png_pCAL = external hidden unnamed_addr constant [5 x i8], align 1
@__const.png_read_info.png_pHYs = external hidden unnamed_addr constant [5 x i8], align 1
@__const.png_read_info.png_sBIT = external hidden unnamed_addr constant [5 x i8], align 1
@__const.png_read_info.png_sCAL = external hidden unnamed_addr constant [5 x i8], align 1
@__const.png_read_info.png_sPLT = external hidden unnamed_addr constant [5 x i8], align 1
@__const.png_read_info.png_sRGB = external hidden unnamed_addr constant [5 x i8], align 1
@__const.png_read_info.png_tEXt = external hidden unnamed_addr constant [5 x i8], align 1
@__const.png_read_info.png_tIME = external hidden unnamed_addr constant [5 x i8], align 1
@__const.png_read_info.png_tRNS = external hidden unnamed_addr constant [5 x i8], align 1
@__const.png_read_info.png_zTXt = external hidden unnamed_addr constant [5 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [25 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

; 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
define dso_local void @png_read_info(ptr noundef %0, ptr noundef %1) #1 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca [5 x i8], align 1
  %8 = alloca [5 x i8], align 1
  %9 = alloca [5 x i8], align 1
  %10 = alloca [5 x i8], align 1
  %11 = alloca [5 x i8], align 1
  %12 = alloca [5 x i8], align 1
  %13 = alloca [5 x i8], align 1
  %14 = alloca [5 x i8], align 1
  %15 = alloca [5 x i8], align 1
  %16 = alloca [5 x i8], align 1
  %17 = alloca [5 x i8], align 1
  %18 = alloca [5 x i8], align 1
  %19 = alloca [5 x i8], align 1
  %20 = alloca [5 x i8], align 1
  %21 = alloca [5 x i8], align 1
  %22 = alloca [5 x i8], align 1
  %23 = alloca [5 x i8], align 1
  %24 = alloca [5 x i8], align 1
  %25 = alloca [5 x i8], align 1
  %26 = alloca [5 x i8], align 1
  %27 = alloca [5 x i8], align 1
  %28 = alloca i32, align 4
  %29 = alloca ptr, align 8
  %30 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  %32 = icmp eq ptr %31, null
  br i1 %32, label %36, label %33

33:                                               ; preds = %2
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = icmp eq ptr %34, null
  br i1 %35, label %36, label %37

36:                                               ; preds = %33, %2
  br label %420

37:                                               ; preds = %33
  %38 = load ptr, ptr %3, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.png_struct_def, ptr %38, i32 0, i32 56
  %40 = load i8, ptr %39, align 4, !tbaa !9
  %41 = zext i8 %40 to i32
  %42 = icmp slt i32 %41, 8
  br i1 %42, label %43, label %93

43:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.png_struct_def, ptr %44, i32 0, i32 56
  %46 = load i8, ptr %45, align 4, !tbaa !9
  %47 = zext i8 %46 to i64
  store i64 %47, ptr %5, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %48 = load i64, ptr %5, align 8, !tbaa !20
  %49 = sub i64 8, %48
  store i64 %49, ptr %6, align 8, !tbaa !20
  %50 = load ptr, ptr %3, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.png_struct_def, ptr %50, i32 0, i32 137
  store i32 17, ptr %51, align 8, !tbaa !21
  %52 = load ptr, ptr %3, align 8, !tbaa !5
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.png_info_struct, ptr %53, i32 0, i32 15
  %55 = load i64, ptr %5, align 8, !tbaa !20
  %56 = getelementptr inbounds [8 x i8], ptr %54, i64 0, i64 %55
  %57 = load i64, ptr %6, align 8, !tbaa !20
  call void @png_read_data(ptr noundef %52, ptr noundef %56, i64 noundef %57)
  %58 = load ptr, ptr %3, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.png_struct_def, ptr %58, i32 0, i32 56
  store i8 8, ptr %59, align 4, !tbaa !9
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.png_info_struct, ptr %60, i32 0, i32 15
  %62 = getelementptr inbounds [8 x i8], ptr %61, i64 0, i64 0
  %63 = load i64, ptr %5, align 8, !tbaa !20
  %64 = load i64, ptr %6, align 8, !tbaa !20
  %65 = call i32 @png_sig_cmp(ptr noundef %62, i64 noundef %63, i64 noundef %64)
  %66 = icmp ne i32 %65, 0
  br i1 %66, label %67, label %84

67:                                               ; preds = %43
  %68 = load i64, ptr %5, align 8, !tbaa !20
  %69 = icmp ult i64 %68, 4
  br i1 %69, label %70, label %81

70:                                               ; preds = %67
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.png_info_struct, ptr %71, i32 0, i32 15
  %73 = getelementptr inbounds [8 x i8], ptr %72, i64 0, i64 0
  %74 = load i64, ptr %5, align 8, !tbaa !20
  %75 = load i64, ptr %6, align 8, !tbaa !20
  %76 = sub i64 %75, 4
  %77 = call i32 @png_sig_cmp(ptr noundef %73, i64 noundef %74, i64 noundef %76)
  %78 = icmp ne i32 %77, 0
  br i1 %78, label %79, label %81

79:                                               ; preds = %70
  %80 = load ptr, ptr %3, align 8, !tbaa !5
  call void @png_error(ptr noundef %80, ptr noundef @.str.7)
  br label %83

81:                                               ; preds = %70, %67
  %82 = load ptr, ptr %3, align 8, !tbaa !5
  call void @png_error(ptr noundef %82, ptr noundef @.str.8)
  br label %83

83:                                               ; preds = %81, %79
  br label %84

84:                                               ; preds = %83, %43
  %85 = load i64, ptr %5, align 8, !tbaa !20
  %86 = icmp ult i64 %85, 3
  br i1 %86, label %87, label %92

87:                                               ; preds = %84
  %88 = load ptr, ptr %3, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.png_struct_def, ptr %88, i32 0, i32 13
  %90 = load i32, ptr %89, align 4, !tbaa !22
  %91 = or i32 %90, 4096
  store i32 %91, ptr %89, align 4, !tbaa !22
  br label %92

92:                                               ; preds = %87, %84
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br label %93

93:                                               ; preds = %92, %37
  br label %94

94:                                               ; preds = %419, %93
  call void @llvm.lifetime.start.p0(i64 5, ptr %7) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 @__const.png_read_info.png_IHDR, i64 5, i1 false)
  call void @llvm.lifetime.start.p0(i64 5, ptr %8) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %8, ptr align 1 @__const.png_read_info.png_IDAT, i64 5, i1 false)
  call void @llvm.lifetime.start.p0(i64 5, ptr %9) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %9, ptr align 1 @__const.png_read_info.png_IEND, i64 5, i1 false)
  call void @llvm.lifetime.start.p0(i64 5, ptr %10) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %10, ptr align 1 @__const.png_read_info.png_PLTE, i64 5, i1 false)
  call void @llvm.lifetime.start.p0(i64 5, ptr %11) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %11, ptr align 1 @__const.png_read_info.png_bKGD, i64 5, i1 false)
  call void @llvm.lifetime.start.p0(i64 5, ptr %12) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %12, ptr align 1 @__const.png_read_info.png_cHRM, i64 5, i1 false)
  call void @llvm.lifetime.start.p0(i64 5, ptr %13) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %13, ptr align 1 @__const.png_read_info.png_gAMA, i64 5, i1 false)
  call void @llvm.lifetime.start.p0(i64 5, ptr %14) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %14, ptr align 1 @__const.png_read_info.png_hIST, i64 5, i1 false)
  call void @llvm.lifetime.start.p0(i64 5, ptr %15) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %15, ptr align 1 @__const.png_read_info.png_iCCP, i64 5, i1 false)
  call void @llvm.lifetime.start.p0(i64 5, ptr %16) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %16, ptr align 1 @__const.png_read_info.png_iTXt, i64 5, i1 false)
  call void @llvm.lifetime.start.p0(i64 5, ptr %17) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %17, ptr align 1 @__const.png_read_info.png_oFFs, i64 5, i1 false)
  call void @llvm.lifetime.start.p0(i64 5, ptr %18) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %18, ptr align 1 @__const.png_read_info.png_pCAL, i64 5, i1 false)
  call void @llvm.lifetime.start.p0(i64 5, ptr %19) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %19, ptr align 1 @__const.png_read_info.png_pHYs, i64 5, i1 false)
  call void @llvm.lifetime.start.p0(i64 5, ptr %20) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %20, ptr align 1 @__const.png_read_info.png_sBIT, i64 5, i1 false)
  call void @llvm.lifetime.start.p0(i64 5, ptr %21) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %21, ptr align 1 @__const.png_read_info.png_sCAL, i64 5, i1 false)
  call void @llvm.lifetime.start.p0(i64 5, ptr %22) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %22, ptr align 1 @__const.png_read_info.png_sPLT, i64 5, i1 false)
  call void @llvm.lifetime.start.p0(i64 5, ptr %23) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %23, ptr align 1 @__const.png_read_info.png_sRGB, i64 5, i1 false)
  call void @llvm.lifetime.start.p0(i64 5, ptr %24) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %24, ptr align 1 @__const.png_read_info.png_tEXt, i64 5, i1 false)
  call void @llvm.lifetime.start.p0(i64 5, ptr %25) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %25, ptr align 1 @__const.png_read_info.png_tIME, i64 5, i1 false)
  call void @llvm.lifetime.start.p0(i64 5, ptr %26) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %26, ptr align 1 @__const.png_read_info.png_tRNS, i64 5, i1 false)
  call void @llvm.lifetime.start.p0(i64 5, ptr %27) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %27, ptr align 1 @__const.png_read_info.png_zTXt, i64 5, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  %95 = load ptr, ptr %3, align 8, !tbaa !5
  %96 = call i32 @png_read_chunk_header(ptr noundef %95)
  store i32 %96, ptr %28, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  %97 = load ptr, ptr %3, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.png_struct_def, ptr %97, i32 0, i32 44
  %99 = getelementptr inbounds [5 x i8], ptr %98, i64 0, i64 0
  store ptr %99, ptr %29, align 8, !tbaa !5
  %100 = load ptr, ptr %29, align 8, !tbaa !5
  %101 = getelementptr inbounds [5 x i8], ptr %8, i64 0, i64 0
  %102 = call i32 @memcmp(ptr noundef %100, ptr noundef %101, i64 noundef 4) #6
  %103 = icmp ne i32 %102, 0
  br i1 %103, label %116, label %104

104:                                              ; preds = %94
  %105 = load ptr, ptr %3, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.png_struct_def, ptr %105, i32 0, i32 13
  %107 = load i32, ptr %106, align 4, !tbaa !22
  %108 = and i32 %107, 8
  %109 = icmp ne i32 %108, 0
  br i1 %109, label %110, label %115

110:                                              ; preds = %104
  %111 = load ptr, ptr %3, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.png_struct_def, ptr %111, i32 0, i32 13
  %113 = load i32, ptr %112, align 4, !tbaa !22
  %114 = or i32 %113, 8192
  store i32 %114, ptr %112, align 4, !tbaa !22
  br label %115

115:                                              ; preds = %110, %104
  br label %116

116:                                              ; preds = %115, %94
  %117 = load ptr, ptr %29, align 8, !tbaa !5
  %118 = getelementptr inbounds [5 x i8], ptr %7, i64 0, i64 0
  %119 = call i32 @memcmp(ptr noundef %117, ptr noundef %118, i64 noundef 4) #6
  %120 = icmp ne i32 %119, 0
  br i1 %120, label %125, label %121

121:                                              ; preds = %116
  %122 = load ptr, ptr %3, align 8, !tbaa !5
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  %124 = load i32, ptr %28, align 4, !tbaa !23
  call void @png_handle_IHDR(ptr noundef %122, ptr noundef %123, i32 noundef %124)
  br label %416

125:                                              ; preds = %116
  %126 = load ptr, ptr %29, align 8, !tbaa !5
  %127 = getelementptr inbounds [5 x i8], ptr %9, i64 0, i64 0
  %128 = call i32 @memcmp(ptr noundef %126, ptr noundef %127, i64 noundef 4) #6
  %129 = icmp ne i32 %128, 0
  br i1 %129, label %134, label %130

130:                                              ; preds = %125
  %131 = load ptr, ptr %3, align 8, !tbaa !5
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = load i32, ptr %28, align 4, !tbaa !23
  call void @png_handle_IEND(ptr noundef %131, ptr noundef %132, i32 noundef %133)
  br label %415

134:                                              ; preds = %125
  %135 = load ptr, ptr %3, align 8, !tbaa !5
  %136 = load ptr, ptr %29, align 8, !tbaa !5
  %137 = call i32 @png_handle_as_unknown(ptr noundef %135, ptr noundef %136)
  %138 = icmp ne i32 %137, 0
  br i1 %138, label %139, label %193

139:                                              ; preds = %134
  %140 = load ptr, ptr %29, align 8, !tbaa !5
  %141 = getelementptr inbounds [5 x i8], ptr %8, i64 0, i64 0
  %142 = call i32 @memcmp(ptr noundef %140, ptr noundef %141, i64 noundef 4) #6
  %143 = icmp ne i32 %142, 0
  br i1 %143, label %149, label %144

144:                                              ; preds = %139
  %145 = load ptr, ptr %3, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.png_struct_def, ptr %145, i32 0, i32 13
  %147 = load i32, ptr %146, align 4, !tbaa !22
  %148 = or i32 %147, 4
  store i32 %148, ptr %146, align 4, !tbaa !22
  br label %149

149:                                              ; preds = %144, %139
  %150 = load ptr, ptr %3, align 8, !tbaa !5
  %151 = load ptr, ptr %4, align 8, !tbaa !5
  %152 = load i32, ptr %28, align 4, !tbaa !23
  call void @png_handle_unknown(ptr noundef %150, ptr noundef %151, i32 noundef %152)
  %153 = load ptr, ptr %29, align 8, !tbaa !5
  %154 = getelementptr inbounds [5 x i8], ptr %10, i64 0, i64 0
  %155 = call i32 @memcmp(ptr noundef %153, ptr noundef %154, i64 noundef 4) #6
  %156 = icmp ne i32 %155, 0
  br i1 %156, label %162, label %157

157:                                              ; preds = %149
  %158 = load ptr, ptr %3, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.png_struct_def, ptr %158, i32 0, i32 13
  %160 = load i32, ptr %159, align 4, !tbaa !22
  %161 = or i32 %160, 2
  store i32 %161, ptr %159, align 4, !tbaa !22
  br label %192

162:                                              ; preds = %149
  %163 = load ptr, ptr %29, align 8, !tbaa !5
  %164 = getelementptr inbounds [5 x i8], ptr %8, i64 0, i64 0
  %165 = call i32 @memcmp(ptr noundef %163, ptr noundef %164, i64 noundef 4) #6
  %166 = icmp ne i32 %165, 0
  br i1 %166, label %191, label %167

167:                                              ; preds = %162
  %168 = load ptr, ptr %3, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.png_struct_def, ptr %168, i32 0, i32 13
  %170 = load i32, ptr %169, align 4, !tbaa !22
  %171 = and i32 %170, 1
  %172 = icmp ne i32 %171, 0
  br i1 %172, label %175, label %173

173:                                              ; preds = %167
  %174 = load ptr, ptr %3, align 8, !tbaa !5
  call void @png_error(ptr noundef %174, ptr noundef @.str.9)
  br label %190

175:                                              ; preds = %167
  %176 = load ptr, ptr %3, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.png_struct_def, ptr %176, i32 0, i32 50
  %178 = load i8, ptr %177, align 2, !tbaa !24
  %179 = zext i8 %178 to i32
  %180 = icmp eq i32 %179, 3
  br i1 %180, label %181, label %189

181:                                              ; preds = %175
  %182 = load ptr, ptr %3, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.png_struct_def, ptr %182, i32 0, i32 13
  %184 = load i32, ptr %183, align 4, !tbaa !22
  %185 = and i32 %184, 2
  %186 = icmp ne i32 %185, 0
  br i1 %186, label %189, label %187

187:                                              ; preds = %181
  %188 = load ptr, ptr %3, align 8, !tbaa !5
  call void @png_error(ptr noundef %188, ptr noundef @.str.10)
  br label %189

189:                                              ; preds = %187, %181, %175
  br label %190

190:                                              ; preds = %189, %173
  store i32 2, ptr %30, align 4
  br label %417

191:                                              ; preds = %162
  br label %192

192:                                              ; preds = %191, %157
  br label %414

193:                                              ; preds = %134
  %194 = load ptr, ptr %29, align 8, !tbaa !5
  %195 = getelementptr inbounds [5 x i8], ptr %10, i64 0, i64 0
  %196 = call i32 @memcmp(ptr noundef %194, ptr noundef %195, i64 noundef 4) #6
  %197 = icmp ne i32 %196, 0
  br i1 %197, label %202, label %198

198:                                              ; preds = %193
  %199 = load ptr, ptr %3, align 8, !tbaa !5
  %200 = load ptr, ptr %4, align 8, !tbaa !5
  %201 = load i32, ptr %28, align 4, !tbaa !23
  call void @png_handle_PLTE(ptr noundef %199, ptr noundef %200, i32 noundef %201)
  br label %413

202:                                              ; preds = %193
  %203 = load ptr, ptr %29, align 8, !tbaa !5
  %204 = getelementptr inbounds [5 x i8], ptr %8, i64 0, i64 0
  %205 = call i32 @memcmp(ptr noundef %203, ptr noundef %204, i64 noundef 4) #6
  %206 = icmp ne i32 %205, 0
  br i1 %206, label %238, label %207

207:                                              ; preds = %202
  %208 = load ptr, ptr %3, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.png_struct_def, ptr %208, i32 0, i32 13
  %210 = load i32, ptr %209, align 4, !tbaa !22
  %211 = and i32 %210, 1
  %212 = icmp ne i32 %211, 0
  br i1 %212, label %215, label %213

213:                                              ; preds = %207
  %214 = load ptr, ptr %3, align 8, !tbaa !5
  call void @png_error(ptr noundef %214, ptr noundef @.str.9)
  br label %230

215:                                              ; preds = %207
  %216 = load ptr, ptr %3, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.png_struct_def, ptr %216, i32 0, i32 50
  %218 = load i8, ptr %217, align 2, !tbaa !24
  %219 = zext i8 %218 to i32
  %220 = icmp eq i32 %219, 3
  br i1 %220, label %221, label %229

221:                                              ; preds = %215
  %222 = load ptr, ptr %3, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.png_struct_def, ptr %222, i32 0, i32 13
  %224 = load i32, ptr %223, align 4, !tbaa !22
  %225 = and i32 %224, 2
  %226 = icmp ne i32 %225, 0
  br i1 %226, label %229, label %227

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

229:                                              ; preds = %227, %221, %215
  br label %230

230:                                              ; preds = %229, %213
  %231 = load i32, ptr %28, align 4, !tbaa !23
  %232 = load ptr, ptr %3, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.png_struct_def, ptr %232, i32 0, i32 39
  store i32 %231, ptr %233, align 8, !tbaa !25
  %234 = load ptr, ptr %3, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.png_struct_def, ptr %234, i32 0, i32 13
  %236 = load i32, ptr %235, align 4, !tbaa !22
  %237 = or i32 %236, 4
  store i32 %237, ptr %235, align 4, !tbaa !22
  store i32 2, ptr %30, align 4
  br label %417

238:                                              ; preds = %202
  %239 = load ptr, ptr %29, align 8, !tbaa !5
  %240 = getelementptr inbounds [5 x i8], ptr %11, i64 0, i64 0
  %241 = call i32 @memcmp(ptr noundef %239, ptr noundef %240, i64 noundef 4) #6
  %242 = icmp ne i32 %241, 0
  br i1 %242, label %247, label %243

243:                                              ; preds = %238
  %244 = load ptr, ptr %3, align 8, !tbaa !5
  %245 = load ptr, ptr %4, align 8, !tbaa !5
  %246 = load i32, ptr %28, align 4, !tbaa !23
  call void @png_handle_bKGD(ptr noundef %244, ptr noundef %245, i32 noundef %246)
  br label %411

247:                                              ; preds = %238
  %248 = load ptr, ptr %29, align 8, !tbaa !5
  %249 = getelementptr inbounds [5 x i8], ptr %12, i64 0, i64 0
  %250 = call i32 @memcmp(ptr noundef %248, ptr noundef %249, i64 noundef 4) #6
  %251 = icmp ne i32 %250, 0
  br i1 %251, label %256, label %252

252:                                              ; preds = %247
  %253 = load ptr, ptr %3, align 8, !tbaa !5
  %254 = load ptr, ptr %4, align 8, !tbaa !5
  %255 = load i32, ptr %28, align 4, !tbaa !23
  call void @png_handle_cHRM(ptr noundef %253, ptr noundef %254, i32 noundef %255)
  br label %410

256:                                              ; preds = %247
  %257 = load ptr, ptr %29, align 8, !tbaa !5
  %258 = getelementptr inbounds [5 x i8], ptr %13, i64 0, i64 0
  %259 = call i32 @memcmp(ptr noundef %257, ptr noundef %258, i64 noundef 4) #6
  %260 = icmp ne i32 %259, 0
  br i1 %260, label %265, label %261

261:                                              ; preds = %256
  %262 = load ptr, ptr %3, align 8, !tbaa !5
  %263 = load ptr, ptr %4, align 8, !tbaa !5
  %264 = load i32, ptr %28, align 4, !tbaa !23
  call void @png_handle_gAMA(ptr noundef %262, ptr noundef %263, i32 noundef %264)
  br label %409

265:                                              ; preds = %256
  %266 = load ptr, ptr %29, align 8, !tbaa !5
  %267 = getelementptr inbounds [5 x i8], ptr %14, i64 0, i64 0
  %268 = call i32 @memcmp(ptr noundef %266, ptr noundef %267, i64 noundef 4) #6
  %269 = icmp ne i32 %268, 0
  br i1 %269, label %274, label %270

270:                                              ; preds = %265
  %271 = load ptr, ptr %3, align 8, !tbaa !5
  %272 = load ptr, ptr %4, align 8, !tbaa !5
  %273 = load i32, ptr %28, align 4, !tbaa !23
  call void @png_handle_hIST(ptr noundef %271, ptr noundef %272, i32 noundef %273)
  br label %408

274:                                              ; preds = %265
  %275 = load ptr, ptr %29, align 8, !tbaa !5
  %276 = getelementptr inbounds [5 x i8], ptr %17, i64 0, i64 0
  %277 = call i32 @memcmp(ptr noundef %275, ptr noundef %276, i64 noundef 4) #6
  %278 = icmp ne i32 %277, 0
  br i1 %278, label %283, label %279

279:                                              ; preds = %274
  %280 = load ptr, ptr %3, align 8, !tbaa !5
  %281 = load ptr, ptr %4, align 8, !tbaa !5
  %282 = load i32, ptr %28, align 4, !tbaa !23
  call void @png_handle_oFFs(ptr noundef %280, ptr noundef %281, i32 noundef %282)
  br label %407

283:                                              ; preds = %274
  %284 = load ptr, ptr %29, align 8, !tbaa !5
  %285 = getelementptr inbounds [5 x i8], ptr %18, i64 0, i64 0
  %286 = call i32 @memcmp(ptr noundef %284, ptr noundef %285, i64 noundef 4) #6
  %287 = icmp ne i32 %286, 0
  br i1 %287, label %292, label %288

288:                                              ; preds = %283
  %289 = load ptr, ptr %3, align 8, !tbaa !5
  %290 = load ptr, ptr %4, align 8, !tbaa !5
  %291 = load i32, ptr %28, align 4, !tbaa !23
  call void @png_handle_pCAL(ptr noundef %289, ptr noundef %290, i32 noundef %291)
  br label %406

292:                                              ; preds = %283
  %293 = load ptr, ptr %29, align 8, !tbaa !5
  %294 = getelementptr inbounds [5 x i8], ptr %21, i64 0, i64 0
  %295 = call i32 @memcmp(ptr noundef %293, ptr noundef %294, i64 noundef 4) #6
  %296 = icmp ne i32 %295, 0
  br i1 %296, label %301, label %297

297:                                              ; preds = %292
  %298 = load ptr, ptr %3, align 8, !tbaa !5
  %299 = load ptr, ptr %4, align 8, !tbaa !5
  %300 = load i32, ptr %28, align 4, !tbaa !23
  call void @png_handle_sCAL(ptr noundef %298, ptr noundef %299, i32 noundef %300)
  br label %405

301:                                              ; preds = %292
  %302 = load ptr, ptr %29, align 8, !tbaa !5
  %303 = getelementptr inbounds [5 x i8], ptr %19, i64 0, i64 0
  %304 = call i32 @memcmp(ptr noundef %302, ptr noundef %303, i64 noundef 4) #6
  %305 = icmp ne i32 %304, 0
  br i1 %305, label %310, label %306

306:                                              ; preds = %301
  %307 = load ptr, ptr %3, align 8, !tbaa !5
  %308 = load ptr, ptr %4, align 8, !tbaa !5
  %309 = load i32, ptr %28, align 4, !tbaa !23
  call void @png_handle_pHYs(ptr noundef %307, ptr noundef %308, i32 noundef %309)
  br label %404

310:                                              ; preds = %301
  %311 = load ptr, ptr %29, align 8, !tbaa !5
  %312 = getelementptr inbounds [5 x i8], ptr %20, i64 0, i64 0
  %313 = call i32 @memcmp(ptr noundef %311, ptr noundef %312, i64 noundef 4) #6
  %314 = icmp ne i32 %313, 0
  br i1 %314, label %319, label %315

315:                                              ; preds = %310
  %316 = load ptr, ptr %3, align 8, !tbaa !5
  %317 = load ptr, ptr %4, align 8, !tbaa !5
  %318 = load i32, ptr %28, align 4, !tbaa !23
  call void @png_handle_sBIT(ptr noundef %316, ptr noundef %317, i32 noundef %318)
  br label %403

319:                                              ; preds = %310
  %320 = load ptr, ptr %29, align 8, !tbaa !5
  %321 = getelementptr inbounds [5 x i8], ptr %23, i64 0, i64 0
  %322 = call i32 @memcmp(ptr noundef %320, ptr noundef %321, i64 noundef 4) #6
  %323 = icmp ne i32 %322, 0
  br i1 %323, label %328, label %324

324:                                              ; preds = %319
  %325 = load ptr, ptr %3, align 8, !tbaa !5
  %326 = load ptr, ptr %4, align 8, !tbaa !5
  %327 = load i32, ptr %28, align 4, !tbaa !23
  call void @png_handle_sRGB(ptr noundef %325, ptr noundef %326, i32 noundef %327)
  br label %402

328:                                              ; preds = %319
  %329 = load ptr, ptr %29, align 8, !tbaa !5
  %330 = getelementptr inbounds [5 x i8], ptr %15, i64 0, i64 0
  %331 = call i32 @memcmp(ptr noundef %329, ptr noundef %330, i64 noundef 4) #6
  %332 = icmp ne i32 %331, 0
  br i1 %332, label %337, label %333

333:                                              ; preds = %328
  %334 = load ptr, ptr %3, align 8, !tbaa !5
  %335 = load ptr, ptr %4, align 8, !tbaa !5
  %336 = load i32, ptr %28, align 4, !tbaa !23
  call void @png_handle_iCCP(ptr noundef %334, ptr noundef %335, i32 noundef %336)
  br label %401

337:                                              ; preds = %328
  %338 = load ptr, ptr %29, align 8, !tbaa !5
  %339 = getelementptr inbounds [5 x i8], ptr %22, i64 0, i64 0
  %340 = call i32 @memcmp(ptr noundef %338, ptr noundef %339, i64 noundef 4) #6
  %341 = icmp ne i32 %340, 0
  br i1 %341, label %346, label %342

342:                                              ; preds = %337
  %343 = load ptr, ptr %3, align 8, !tbaa !5
  %344 = load ptr, ptr %4, align 8, !tbaa !5
  %345 = load i32, ptr %28, align 4, !tbaa !23
  call void @png_handle_sPLT(ptr noundef %343, ptr noundef %344, i32 noundef %345)
  br label %400

346:                                              ; preds = %337
  %347 = load ptr, ptr %29, align 8, !tbaa !5
  %348 = getelementptr inbounds [5 x i8], ptr %24, i64 0, i64 0
  %349 = call i32 @memcmp(ptr noundef %347, ptr noundef %348, i64 noundef 4) #6
  %350 = icmp ne i32 %349, 0
  br i1 %350, label %355, label %351

351:                                              ; preds = %346
  %352 = load ptr, ptr %3, align 8, !tbaa !5
  %353 = load ptr, ptr %4, align 8, !tbaa !5
  %354 = load i32, ptr %28, align 4, !tbaa !23
  call void @png_handle_tEXt(ptr noundef %352, ptr noundef %353, i32 noundef %354)
  br label %399

355:                                              ; preds = %346
  %356 = load ptr, ptr %29, align 8, !tbaa !5
  %357 = getelementptr inbounds [5 x i8], ptr %25, i64 0, i64 0
  %358 = call i32 @memcmp(ptr noundef %356, ptr noundef %357, i64 noundef 4) #6
  %359 = icmp ne i32 %358, 0
  br i1 %359, label %364, label %360

360:                                              ; preds = %355
  %361 = load ptr, ptr %3, align 8, !tbaa !5
  %362 = load ptr, ptr %4, align 8, !tbaa !5
  %363 = load i32, ptr %28, align 4, !tbaa !23
  call void @png_handle_tIME(ptr noundef %361, ptr noundef %362, i32 noundef %363)
  br label %398

364:                                              ; preds = %355
  %365 = load ptr, ptr %29, align 8, !tbaa !5
  %366 = getelementptr inbounds [5 x i8], ptr %26, i64 0, i64 0
  %367 = call i32 @memcmp(ptr noundef %365, ptr noundef %366, i64 noundef 4) #6
  %368 = icmp ne i32 %367, 0
  br i1 %368, label %373, label %369

369:                                              ; preds = %364
  %370 = load ptr, ptr %3, align 8, !tbaa !5
  %371 = load ptr, ptr %4, align 8, !tbaa !5
  %372 = load i32, ptr %28, align 4, !tbaa !23
  call void @png_handle_tRNS(ptr noundef %370, ptr noundef %371, i32 noundef %372)
  br label %397

373:                                              ; preds = %364
  %374 = load ptr, ptr %29, align 8, !tbaa !5
  %375 = getelementptr inbounds [5 x i8], ptr %27, i64 0, i64 0
  %376 = call i32 @memcmp(ptr noundef %374, ptr noundef %375, i64 noundef 4) #6
  %377 = icmp ne i32 %376, 0
  br i1 %377, label %382, label %378

378:                                              ; preds = %373
  %379 = load ptr, ptr %3, align 8, !tbaa !5
  %380 = load ptr, ptr %4, align 8, !tbaa !5
  %381 = load i32, ptr %28, align 4, !tbaa !23
  call void @png_handle_zTXt(ptr noundef %379, ptr noundef %380, i32 noundef %381)
  br label %396

382:                                              ; preds = %373
  %383 = load ptr, ptr %29, align 8, !tbaa !5
  %384 = getelementptr inbounds [5 x i8], ptr %16, i64 0, i64 0
  %385 = call i32 @memcmp(ptr noundef %383, ptr noundef %384, i64 noundef 4) #6
  %386 = icmp ne i32 %385, 0
  br i1 %386, label %391, label %387

387:                                              ; preds = %382
  %388 = load ptr, ptr %3, align 8, !tbaa !5
  %389 = load ptr, ptr %4, align 8, !tbaa !5
  %390 = load i32, ptr %28, align 4, !tbaa !23
  call void @png_handle_iTXt(ptr noundef %388, ptr noundef %389, i32 noundef %390)
  br label %395

391:                                              ; preds = %382
  %392 = load ptr, ptr %3, align 8, !tbaa !5
  %393 = load ptr, ptr %4, align 8, !tbaa !5
  %394 = load i32, ptr %28, align 4, !tbaa !23
  call void @png_handle_unknown(ptr noundef %392, ptr noundef %393, i32 noundef %394)
  br label %395

395:                                              ; preds = %391, %387
  br label %396

396:                                              ; preds = %395, %378
  br label %397

397:                                              ; preds = %396, %369
  br label %398

398:                                              ; preds = %397, %360
  br label %399

399:                                              ; preds = %398, %351
  br label %400

400:                                              ; preds = %399, %342
  br label %401

401:                                              ; preds = %400, %333
  br label %402

402:                                              ; preds = %401, %324
  br label %403

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

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

405:                                              ; preds = %404, %297
  br label %406

406:                                              ; preds = %405, %288
  br label %407

407:                                              ; preds = %406, %279
  br label %408

408:                                              ; preds = %407, %270
  br label %409

409:                                              ; preds = %408, %261
  br label %410

410:                                              ; preds = %409, %252
  br label %411

411:                                              ; preds = %410, %243
  br label %412

412:                                              ; preds = %411
  br label %413

413:                                              ; preds = %412, %198
  br label %414

414:                                              ; preds = %413, %192
  br label %415

415:                                              ; preds = %414, %130
  br label %416

416:                                              ; preds = %415, %121
  store i32 0, ptr %30, align 4
  br label %417

417:                                              ; preds = %416, %230, %190
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 5, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 5, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 5, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 5, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 5, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 5, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 5, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 5, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 5, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 5, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 5, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 5, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 5, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 5, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 5, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 5, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 5, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 5, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 5, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 5, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 5, ptr %7) #5
  %418 = load i32, ptr %30, align 4
  switch i32 %418, label %421 [
    i32 0, label %419
    i32 2, label %420
  ]

419:                                              ; preds = %417
  br label %94

420:                                              ; preds = %417, %36
  ret void

421:                                              ; preds = %417
  unreachable
}

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

declare i32 @png_sig_cmp(ptr noundef, i64 noundef, i64 noundef) #2

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

declare i32 @png_read_chunk_header(ptr noundef) #2

; Function Attrs: nounwind willreturn memory(read)
declare i32 @memcmp(ptr noundef, ptr noundef, i64 noundef) #4

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

!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, !7, i64 596}
!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 = !{!13, !13, i64 0}
!21 = !{!10, !11, i64 1168}
!22 = !{!10, !11, i64 284}
!23 = !{!11, !11, i64 0}
!24 = !{!10, !7, i64 590}
!25 = !{!10, !11, i64 560}


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

@.str.7 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [39 x i8], align 1
@__const.png_read_info.png_IHDR = external hidden unnamed_addr constant [5 x i8], align 1
@__const.png_read_info.png_IDAT = external hidden unnamed_addr constant [5 x i8], align 1
@__const.png_read_info.png_IEND = external hidden unnamed_addr constant [5 x i8], align 1
@__const.png_read_info.png_PLTE = external hidden unnamed_addr constant [5 x i8], align 1
@__const.png_read_info.png_bKGD = external hidden unnamed_addr constant [5 x i8], align 1
@__const.png_read_info.png_cHRM = external hidden unnamed_addr constant [5 x i8], align 1
@__const.png_read_info.png_gAMA = external hidden unnamed_addr constant [5 x i8], align 1
@__const.png_read_info.png_hIST = external hidden unnamed_addr constant [5 x i8], align 1
@__const.png_read_info.png_iCCP = external hidden unnamed_addr constant [5 x i8], align 1
@__const.png_read_info.png_iTXt = external hidden unnamed_addr constant [5 x i8], align 1
@__const.png_read_info.png_oFFs = external hidden unnamed_addr constant [5 x i8], align 1
@__const.png_read_info.png_pCAL = external hidden unnamed_addr constant [5 x i8], align 1
@__const.png_read_info.png_pHYs = external hidden unnamed_addr constant [5 x i8], align 1
@__const.png_read_info.png_sBIT = external hidden unnamed_addr constant [5 x i8], align 1
@__const.png_read_info.png_sCAL = external hidden unnamed_addr constant [5 x i8], align 1
@__const.png_read_info.png_sPLT = external hidden unnamed_addr constant [5 x i8], align 1
@__const.png_read_info.png_sRGB = external hidden unnamed_addr constant [5 x i8], align 1
@__const.png_read_info.png_tEXt = external hidden unnamed_addr constant [5 x i8], align 1
@__const.png_read_info.png_tIME = external hidden unnamed_addr constant [5 x i8], align 1
@__const.png_read_info.png_tRNS = external hidden unnamed_addr constant [5 x i8], align 1
@__const.png_read_info.png_zTXt = external hidden unnamed_addr constant [5 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @png_read_info(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = icmp eq ptr %0, null
  %4 = icmp eq ptr %1, null
  %or.cond = or i1 %3, %4
  br i1 %or.cond, label %.thread, label %5

5:                                                ; preds = %2
  %6 = getelementptr inbounds i8, ptr %0, i64 596
  %7 = load i8, ptr %6, align 4, !tbaa !5
  %8 = icmp ult i8 %7, 8
  br i1 %8, label %9, label %28

9:                                                ; preds = %5
  %10 = zext nneg i8 %7 to i64
  %11 = sub nuw nsw i64 8, %10
  %12 = getelementptr inbounds i8, ptr %0, i64 1168
  store i32 17, ptr %12, align 8, !tbaa !19
  %13 = getelementptr inbounds i8, ptr %1, i64 44
  %14 = getelementptr inbounds [8 x i8], ptr %13, i64 0, i64 %10
  tail call void @png_read_data(ptr noundef nonnull %0, ptr noundef nonnull %14, i64 noundef %11) #3
  store i8 8, ptr %6, align 4, !tbaa !5
  %15 = tail call i32 @png_sig_cmp(ptr noundef nonnull %13, i64 noundef %10, i64 noundef %11) #3
  %.not = icmp eq i32 %15, 0
  br i1 %.not, label %22, label %16

16:                                               ; preds = %9
  %17 = icmp ult i8 %7, 4
  br i1 %17, label %18, label %21

18:                                               ; preds = %16
  %19 = sub nuw nsw i64 4, %10
  %20 = tail call i32 @png_sig_cmp(ptr noundef nonnull %13, i64 noundef %10, i64 noundef %19) #3
  %.not138 = icmp eq i32 %20, 0
  br i1 %.not138, label %21, label %.sink.split

21:                                               ; preds = %18, %16
  br label %.sink.split

.sink.split:                                      ; preds = %18, %21
  %.str.7.sink = phi ptr [ @.str.8, %21 ], [ @.str.7, %18 ]
  tail call void @png_error(ptr noundef nonnull %0, ptr noundef nonnull %.str.7.sink) #3
  br label %22

22:                                               ; preds = %.sink.split, %9
  %23 = icmp ult i8 %7, 3
  br i1 %23, label %24, label %28

24:                                               ; preds = %22
  %25 = getelementptr inbounds i8, ptr %0, i64 284
  %26 = load i32, ptr %25, align 4, !tbaa !20
  %27 = or i32 %26, 4096
  store i32 %27, ptr %25, align 4, !tbaa !20
  br label %28

28:                                               ; preds = %22, %24, %5
  %29 = getelementptr inbounds i8, ptr %0, i64 580
  %30 = getelementptr inbounds i8, ptr %0, i64 284
  br label %31

31:                                               ; preds = %.backedge, %28
  %32 = tail call i32 @png_read_chunk_header(ptr noundef %0) #3
  %bcmp = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %29, ptr noundef nonnull dereferenceable(4) @__const.png_read_info.png_IDAT, i64 4)
  %.not139 = icmp eq i32 %bcmp, 0
  br i1 %.not139, label %33, label %38

33:                                               ; preds = %31
  %34 = load i32, ptr %30, align 4, !tbaa !20
  %35 = and i32 %34, 8
  %.not140 = icmp eq i32 %35, 0
  br i1 %.not140, label %38, label %36

36:                                               ; preds = %33
  %37 = or i32 %34, 8192
  store i32 %37, ptr %30, align 4, !tbaa !20
  br label %38

38:                                               ; preds = %33, %36, %31
  %bcmp141 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %29, ptr noundef nonnull dereferenceable(4) @__const.png_read_info.png_IHDR, i64 4)
  %.not142 = icmp eq i32 %bcmp141, 0
  br i1 %.not142, label %39, label %40

39:                                               ; preds = %38
  tail call void @png_handle_IHDR(ptr noundef %0, ptr noundef %1, i32 noundef %32) #3
  br label %.backedge

.backedge:                                        ; preds = %39, %52, %49, %81, %85, %89, %93, %97, %101, %105, %109, %112, %111, %107, %103, %99, %95, %91, %87, %83, %79, %64, %41
  br label %31

40:                                               ; preds = %38
  %bcmp143 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %29, ptr noundef nonnull dereferenceable(4) @__const.png_read_info.png_IEND, i64 4)
  %.not144 = icmp eq i32 %bcmp143, 0
  br i1 %.not144, label %41, label %42

41:                                               ; preds = %40
  tail call void @png_handle_IEND(ptr noundef %0, ptr noundef %1, i32 noundef %32) #3
  br label %.backedge

42:                                               ; preds = %40
  %43 = tail call i32 @png_handle_as_unknown(ptr noundef %0, ptr noundef nonnull %29) #3
  %.not145 = icmp eq i32 %43, 0
  br i1 %.not145, label %63, label %44

44:                                               ; preds = %42
  %bcmp186 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %29, ptr noundef nonnull dereferenceable(4) @__const.png_read_info.png_IDAT, i64 4)
  %.not187 = icmp eq i32 %bcmp186, 0
  br i1 %.not187, label %45, label %48

45:                                               ; preds = %44
  %46 = load i32, ptr %30, align 4, !tbaa !20
  %47 = or i32 %46, 4
  store i32 %47, ptr %30, align 4, !tbaa !20
  br label %48

48:                                               ; preds = %45, %44
  tail call void @png_handle_unknown(ptr noundef %0, ptr noundef %1, i32 noundef %32) #3
  %bcmp188 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %29, ptr noundef nonnull dereferenceable(4) @__const.png_read_info.png_PLTE, i64 4)
  %.not189 = icmp eq i32 %bcmp188, 0
  br i1 %.not189, label %49, label %52

49:                                               ; preds = %48
  %50 = load i32, ptr %30, align 4, !tbaa !20
  %51 = or i32 %50, 2
  store i32 %51, ptr %30, align 4, !tbaa !20
  br label %.backedge

52:                                               ; preds = %48
  %bcmp190 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %29, ptr noundef nonnull dereferenceable(4) @__const.png_read_info.png_IDAT, i64 4)
  %.not191 = icmp eq i32 %bcmp190, 0
  br i1 %.not191, label %53, label %.backedge

53:                                               ; preds = %52
  %54 = load i32, ptr %30, align 4, !tbaa !20
  %55 = and i32 %54, 1
  %.not192 = icmp eq i32 %55, 0
  br i1 %.not192, label %56, label %57

56:                                               ; preds = %53
  tail call void @png_error(ptr noundef nonnull %0, ptr noundef nonnull @.str.9) #3
  br label %.thread

57:                                               ; preds = %53
  %58 = getelementptr inbounds i8, ptr %0, i64 590
  %59 = load i8, ptr %58, align 2, !tbaa !21
  %60 = icmp eq i8 %59, 3
  %61 = and i32 %54, 2
  %.not193 = icmp eq i32 %61, 0
  %or.cond194 = and i1 %.not193, %60
  br i1 %or.cond194, label %62, label %.thread

62:                                               ; preds = %57
  tail call void @png_error(ptr noundef nonnull %0, ptr noundef nonnull @.str.10) #3
  br label %.thread

63:                                               ; preds = %42
  %bcmp146 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %29, ptr noundef nonnull dereferenceable(4) @__const.png_read_info.png_PLTE, i64 4)
  %.not147 = icmp eq i32 %bcmp146, 0
  br i1 %.not147, label %64, label %65

64:                                               ; preds = %63
  tail call void @png_handle_PLTE(ptr noundef %0, ptr noundef %1, i32 noundef %32) #3
  br label %.backedge

65:                                               ; preds = %63
  %bcmp148 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %29, ptr noundef nonnull dereferenceable(4) @__const.png_read_info.png_IDAT, i64 4)
  %.not149 = icmp eq i32 %bcmp148, 0
  br i1 %.not149, label %66, label %78

66:                                               ; preds = %65
  %67 = load i32, ptr %30, align 4, !tbaa !20
  %68 = and i32 %67, 1
  %.not150 = icmp eq i32 %68, 0
  br i1 %.not150, label %.sink.split201, label %69

69:                                               ; preds = %66
  %70 = getelementptr inbounds i8, ptr %0, i64 590
  %71 = load i8, ptr %70, align 2, !tbaa !21
  %72 = icmp eq i8 %71, 3
  %73 = and i32 %67, 2
  %.not151 = icmp eq i32 %73, 0
  %or.cond195 = and i1 %.not151, %72
  br i1 %or.cond195, label %.sink.split201, label %74

.sink.split201:                                   ; preds = %69, %66
  %.str.10.sink = phi ptr [ @.str.9, %66 ], [ @.str.10, %69 ]
  tail call void @png_error(ptr noundef nonnull %0, ptr noundef nonnull %.str.10.sink) #3
  br label %74

74:                                               ; preds = %.sink.split201, %69
  %75 = getelementptr inbounds i8, ptr %0, i64 560
  store i32 %32, ptr %75, align 8, !tbaa !22
  %76 = load i32, ptr %30, align 4, !tbaa !20
  %77 = or i32 %76, 4
  store i32 %77, ptr %30, align 4, !tbaa !20
  br label %.thread

78:                                               ; preds = %65
  %bcmp152 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %29, ptr noundef nonnull dereferenceable(4) @__const.png_read_info.png_bKGD, i64 4)
  %.not153 = icmp eq i32 %bcmp152, 0
  br i1 %.not153, label %79, label %80

79:                                               ; preds = %78
  tail call void @png_handle_bKGD(ptr noundef %0, ptr noundef %1, i32 noundef %32) #3
  br label %.backedge

80:                                               ; preds = %78
  %bcmp154 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %29, ptr noundef nonnull dereferenceable(4) @__const.png_read_info.png_cHRM, i64 4)
  %.not155 = icmp eq i32 %bcmp154, 0
  br i1 %.not155, label %81, label %82

81:                                               ; preds = %80
  tail call void @png_handle_cHRM(ptr noundef %0, ptr noundef %1, i32 noundef %32) #3
  br label %.backedge

82:                                               ; preds = %80
  %bcmp156 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %29, ptr noundef nonnull dereferenceable(4) @__const.png_read_info.png_gAMA, i64 4)
  %.not157 = icmp eq i32 %bcmp156, 0
  br i1 %.not157, label %83, label %84

83:                                               ; preds = %82
  tail call void @png_handle_gAMA(ptr noundef %0, ptr noundef %1, i32 noundef %32) #3
  br label %.backedge

84:                                               ; preds = %82
  %bcmp158 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %29, ptr noundef nonnull dereferenceable(4) @__const.png_read_info.png_hIST, i64 4)
  %.not159 = icmp eq i32 %bcmp158, 0
  br i1 %.not159, label %85, label %86

85:                                               ; preds = %84
  tail call void @png_handle_hIST(ptr noundef %0, ptr noundef %1, i32 noundef %32) #3
  br label %.backedge

86:                                               ; preds = %84
  %bcmp160 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %29, ptr noundef nonnull dereferenceable(4) @__const.png_read_info.png_oFFs, i64 4)
  %.not161 = icmp eq i32 %bcmp160, 0
  br i1 %.not161, label %87, label %88

87:                                               ; preds = %86
  tail call void @png_handle_oFFs(ptr noundef %0, ptr noundef %1, i32 noundef %32) #3
  br label %.backedge

88:                                               ; preds = %86
  %bcmp162 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %29, ptr noundef nonnull dereferenceable(4) @__const.png_read_info.png_pCAL, i64 4)
  %.not163 = icmp eq i32 %bcmp162, 0
  br i1 %.not163, label %89, label %90

89:                                               ; preds = %88
  tail call void @png_handle_pCAL(ptr noundef %0, ptr noundef %1, i32 noundef %32) #3
  br label %.backedge

90:                                               ; preds = %88
  %bcmp164 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %29, ptr noundef nonnull dereferenceable(4) @__const.png_read_info.png_sCAL, i64 4)
  %.not165 = icmp eq i32 %bcmp164, 0
  br i1 %.not165, label %91, label %92

91:                                               ; preds = %90
  tail call void @png_handle_sCAL(ptr noundef %0, ptr noundef %1, i32 noundef %32) #3
  br label %.backedge

92:                                               ; preds = %90
  %bcmp166 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %29, ptr noundef nonnull dereferenceable(4) @__const.png_read_info.png_pHYs, i64 4)
  %.not167 = icmp eq i32 %bcmp166, 0
  br i1 %.not167, label %93, label %94

93:                                               ; preds = %92
  tail call void @png_handle_pHYs(ptr noundef %0, ptr noundef %1, i32 noundef %32) #3
  br label %.backedge

94:                                               ; preds = %92
  %bcmp168 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %29, ptr noundef nonnull dereferenceable(4) @__const.png_read_info.png_sBIT, i64 4)
  %.not169 = icmp eq i32 %bcmp168, 0
  br i1 %.not169, label %95, label %96

95:                                               ; preds = %94
  tail call void @png_handle_sBIT(ptr noundef %0, ptr noundef %1, i32 noundef %32) #3
  br label %.backedge

96:                                               ; preds = %94
  %bcmp170 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %29, ptr noundef nonnull dereferenceable(4) @__const.png_read_info.png_sRGB, i64 4)
  %.not171 = icmp eq i32 %bcmp170, 0
  br i1 %.not171, label %97, label %98

97:                                               ; preds = %96
  tail call void @png_handle_sRGB(ptr noundef %0, ptr noundef %1, i32 noundef %32) #3
  br label %.backedge

98:                                               ; preds = %96
  %bcmp172 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %29, ptr noundef nonnull dereferenceable(4) @__const.png_read_info.png_iCCP, i64 4)
  %.not173 = icmp eq i32 %bcmp172, 0
  br i1 %.not173, label %99, label %100

99:                                               ; preds = %98
  tail call void @png_handle_iCCP(ptr noundef %0, ptr noundef %1, i32 noundef %32) #3
  br label %.backedge

100:                                              ; preds = %98
  %bcmp174 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %29, ptr noundef nonnull dereferenceable(4) @__const.png_read_info.png_sPLT, i64 4)
  %.not175 = icmp eq i32 %bcmp174, 0
  br i1 %.not175, label %101, label %102

101:                                              ; preds = %100
  tail call void @png_handle_sPLT(ptr noundef %0, ptr noundef %1, i32 noundef %32) #3
  br label %.backedge

102:                                              ; preds = %100
  %bcmp176 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %29, ptr noundef nonnull dereferenceable(4) @__const.png_read_info.png_tEXt, i64 4)
  %.not177 = icmp eq i32 %bcmp176, 0
  br i1 %.not177, label %103, label %104

103:                                              ; preds = %102
  tail call void @png_handle_tEXt(ptr noundef %0, ptr noundef %1, i32 noundef %32) #3
  br label %.backedge

104:                                              ; preds = %102
  %bcmp178 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %29, ptr noundef nonnull dereferenceable(4) @__const.png_read_info.png_tIME, i64 4)
  %.not179 = icmp eq i32 %bcmp178, 0
  br i1 %.not179, label %105, label %106

105:                                              ; preds = %104
  tail call void @png_handle_tIME(ptr noundef %0, ptr noundef %1, i32 noundef %32) #3
  br label %.backedge

106:                                              ; preds = %104
  %bcmp180 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %29, ptr noundef nonnull dereferenceable(4) @__const.png_read_info.png_tRNS, i64 4)
  %.not181 = icmp eq i32 %bcmp180, 0
  br i1 %.not181, label %107, label %108

107:                                              ; preds = %106
  tail call void @png_handle_tRNS(ptr noundef %0, ptr noundef %1, i32 noundef %32) #3
  br label %.backedge

108:                                              ; preds = %106
  %bcmp182 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %29, ptr noundef nonnull dereferenceable(4) @__const.png_read_info.png_zTXt, i64 4)
  %.not183 = icmp eq i32 %bcmp182, 0
  br i1 %.not183, label %109, label %110

109:                                              ; preds = %108
  tail call void @png_handle_zTXt(ptr noundef %0, ptr noundef %1, i32 noundef %32) #3
  br label %.backedge

110:                                              ; preds = %108
  %bcmp184 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(4) %29, ptr noundef nonnull dereferenceable(4) @__const.png_read_info.png_iTXt, i64 4)
  %.not185 = icmp eq i32 %bcmp184, 0
  br i1 %.not185, label %111, label %112

111:                                              ; preds = %110
  tail call void @png_handle_iTXt(ptr noundef %0, ptr noundef %1, i32 noundef %32) #3
  br label %.backedge

112:                                              ; preds = %110
  tail call void @png_handle_unknown(ptr noundef %0, ptr noundef %1, i32 noundef %32) #3
  br label %.backedge

.thread:                                          ; preds = %56, %62, %57, %74, %2
  ret void
}

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

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

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

declare i32 @png_read_chunk_header(ptr noundef) local_unnamed_addr #1

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nofree nounwind willreturn memory(argmem: read)
declare i32 @bcmp(ptr nocapture, ptr nocapture, i64) local_unnamed_addr #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 = { nofree nounwind willreturn memory(argmem: read) }
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, !7, i64 596}
!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 1168}
!20 = !{!6, !10, i64 284}
!21 = !{!6, !7, i64 590}
!22 = !{!6, !10, i64 560}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass