; LLVM IR from Try/Tempest :: Engine/thirdparty/libpng (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_color_16_struct = type { i8, i16, i16, i16, i16 }
%struct.png_struct_def = type { [1 x %struct.__jmp_buf_tag], ptr, ptr, i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i8, i32, i32, i32, i32, %struct.z_stream_s, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, ptr, ptr, ptr, ptr, i64, i32, i32, ptr, i16, i32, i16, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i16, i8, i32, %struct.png_color_16_struct, %struct.png_color_16_struct, ptr, i32, i32, i32, i32, 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, ptr, ptr, i32, [29 x i8], i32, ptr, ptr, i32, i32, ptr, i8, i8, i16, i16, i32, i8, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i32, i32, i32, i64, %struct.png_unknown_chunk_t, i64, ptr, i64, i32, i32, ptr, [4 x ptr], %struct.png_colorspace }
%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_color_8_struct = type { i8, i8, i8, i8, i8 }
%struct.png_unknown_chunk_t = type { [5 x i8], ptr, i64, i8 }
%struct.png_colorspace = type { i32, %struct.png_xy, %struct.png_XYZ, i16, i16 }
%struct.png_xy = type { i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.png_XYZ = type { i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.png_info_def = type { i32, i32, i32, i64, ptr, i16, i16, i8, i8, i8, i8, i8, i8, i8, i8, [8 x i8], %struct.png_colorspace, ptr, ptr, i32, 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, i32, ptr, ptr, ptr, ptr, i32, i32, ptr, ptr, i8, i8, i32, ptr, i32, ptr, i32, i8, ptr, ptr, ptr }
%struct.png_time_struct = type { i16, i8, i8, i8, i8, i8 }
%struct.png_color_struct = type { i8, i8, i8 }

@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [14 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
declare dso_local void @png_crc_read(ptr noalias noundef, ptr noundef, i32 noundef) #1

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

; Function Attrs: noreturn
declare void @png_chunk_error(ptr noundef, ptr noundef) #2

declare void @png_chunk_benign_error(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local void @png_handle_bKGD(ptr noalias noundef %0, ptr noalias noundef %1, i32 noundef %2) #1 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca [6 x i8], align 1
  %9 = alloca %struct.png_color_16_struct, align 2
  %10 = 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 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 6, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 10, ptr %9) #4
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.png_struct_def, ptr %11, i32 0, i32 15
  %13 = load i32, ptr %12, align 4, !tbaa !11
  %14 = and i32 %13, 1
  %15 = icmp eq i32 %14, 0
  br i1 %15, label %16, label %18

16:                                               ; preds = %3
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_chunk_error(ptr noundef %17, ptr noundef @.str.7) #5
  unreachable

18:                                               ; preds = %3
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.png_struct_def, ptr %19, i32 0, i32 15
  %21 = load i32, ptr %20, align 4, !tbaa !11
  %22 = and i32 %21, 4
  %23 = icmp ne i32 %22, 0
  br i1 %23, label %36, label %24

24:                                               ; preds = %18
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.png_struct_def, ptr %25, i32 0, i32 61
  %27 = load i8, ptr %26, align 1, !tbaa !22
  %28 = zext i8 %27 to i32
  %29 = icmp eq i32 %28, 3
  br i1 %29, label %30, label %41

30:                                               ; preds = %24
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.png_struct_def, ptr %31, i32 0, i32 15
  %33 = load i32, ptr %32, align 4, !tbaa !11
  %34 = and i32 %33, 2
  %35 = icmp eq i32 %34, 0
  br i1 %35, label %36, label %41

36:                                               ; preds = %30, %18
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = load i32, ptr %6, align 4, !tbaa !9
  %39 = call i32 @png_crc_finish(ptr noundef %37, i32 noundef %38)
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_chunk_benign_error(ptr noundef %40, ptr noundef @.str.5)
  store i32 1, ptr %10, align 4
  br label %275

41:                                               ; preds = %30, %24
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = icmp ne ptr %42, null
  br i1 %43, label %44, label %55

44:                                               ; preds = %41
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.png_info_def, ptr %45, i32 0, i32 2
  %47 = load i32, ptr %46, align 8, !tbaa !23
  %48 = and i32 %47, 32
  %49 = icmp ne i32 %48, 0
  br i1 %49, label %50, label %55

50:                                               ; preds = %44
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = load i32, ptr %6, align 4, !tbaa !9
  %53 = call i32 @png_crc_finish(ptr noundef %51, i32 noundef %52)
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_chunk_benign_error(ptr noundef %54, ptr noundef @.str.8)
  store i32 1, ptr %10, align 4
  br label %275

55:                                               ; preds = %44, %41
  br label %56

56:                                               ; preds = %55
  br label %57

57:                                               ; preds = %56
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.png_struct_def, ptr %58, i32 0, i32 61
  %60 = load i8, ptr %59, align 1, !tbaa !22
  %61 = zext i8 %60 to i32
  %62 = icmp eq i32 %61, 3
  br i1 %62, label %63, label %64

63:                                               ; preds = %57
  store i32 1, ptr %7, align 4, !tbaa !9
  br label %74

64:                                               ; preds = %57
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.png_struct_def, ptr %65, i32 0, i32 61
  %67 = load i8, ptr %66, align 1, !tbaa !22
  %68 = zext i8 %67 to i32
  %69 = and i32 %68, 2
  %70 = icmp ne i32 %69, 0
  br i1 %70, label %71, label %72

71:                                               ; preds = %64
  store i32 6, ptr %7, align 4, !tbaa !9
  br label %73

72:                                               ; preds = %64
  store i32 2, ptr %7, align 4, !tbaa !9
  br label %73

73:                                               ; preds = %72, %71
  br label %74

74:                                               ; preds = %73, %63
  %75 = load i32, ptr %6, align 4, !tbaa !9
  %76 = load i32, ptr %7, align 4, !tbaa !9
  %77 = icmp ne i32 %75, %76
  br i1 %77, label %78, label %83

78:                                               ; preds = %74
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  %80 = load i32, ptr %6, align 4, !tbaa !9
  %81 = call i32 @png_crc_finish(ptr noundef %79, i32 noundef %80)
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_chunk_benign_error(ptr noundef %82, ptr noundef @.str.6)
  store i32 1, ptr %10, align 4
  br label %275

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

90:                                               ; preds = %83
  store i32 1, ptr %10, align 4
  br label %275

91:                                               ; preds = %83
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.png_struct_def, ptr %92, i32 0, i32 61
  %94 = load i8, ptr %93, align 1, !tbaa !22
  %95 = zext i8 %94 to i32
  %96 = icmp eq i32 %95, 3
  br i1 %96, label %97, label %160

97:                                               ; preds = %91
  %98 = getelementptr inbounds [6 x i8], ptr %8, i64 0, i64 0
  %99 = load i8, ptr %98, align 1, !tbaa !26
  %100 = getelementptr inbounds %struct.png_color_16_struct, ptr %9, i32 0, i32 0
  store i8 %99, ptr %100, align 2, !tbaa !27
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = icmp ne ptr %101, null
  br i1 %102, label %103, label %154

103:                                              ; preds = %97
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.png_info_def, ptr %104, i32 0, i32 5
  %106 = load i16, ptr %105, align 8, !tbaa !28
  %107 = zext i16 %106 to i32
  %108 = icmp ne i32 %107, 0
  br i1 %108, label %109, label %154

109:                                              ; preds = %103
  %110 = getelementptr inbounds [6 x i8], ptr %8, i64 0, i64 0
  %111 = load i8, ptr %110, align 1, !tbaa !26
  %112 = zext i8 %111 to i32
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.png_info_def, ptr %113, i32 0, i32 5
  %115 = load i16, ptr %114, align 8, !tbaa !28
  %116 = zext i16 %115 to i32
  %117 = icmp sge i32 %112, %116
  br i1 %117, label %118, label %120

118:                                              ; preds = %109
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_chunk_benign_error(ptr noundef %119, ptr noundef @.str.26)
  store i32 1, ptr %10, align 4
  br label %275

120:                                              ; preds = %109
  %121 = load ptr, ptr %4, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.png_struct_def, ptr %121, i32 0, i32 52
  %123 = load ptr, ptr %122, align 8, !tbaa !29
  %124 = getelementptr inbounds [6 x i8], ptr %8, i64 0, i64 0
  %125 = load i8, ptr %124, align 1, !tbaa !26
  %126 = zext i8 %125 to i64
  %127 = getelementptr inbounds %struct.png_color_struct, ptr %123, i64 %126
  %128 = getelementptr inbounds %struct.png_color_struct, ptr %127, i32 0, i32 0
  %129 = load i8, ptr %128, align 1, !tbaa !30
  %130 = zext i8 %129 to i16
  %131 = getelementptr inbounds %struct.png_color_16_struct, ptr %9, i32 0, i32 1
  store i16 %130, ptr %131, align 2, !tbaa !32
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.png_struct_def, ptr %132, i32 0, i32 52
  %134 = load ptr, ptr %133, align 8, !tbaa !29
  %135 = getelementptr inbounds [6 x i8], ptr %8, i64 0, i64 0
  %136 = load i8, ptr %135, align 1, !tbaa !26
  %137 = zext i8 %136 to i64
  %138 = getelementptr inbounds %struct.png_color_struct, ptr %134, i64 %137
  %139 = getelementptr inbounds %struct.png_color_struct, ptr %138, i32 0, i32 1
  %140 = load i8, ptr %139, align 1, !tbaa !33
  %141 = zext i8 %140 to i16
  %142 = getelementptr inbounds %struct.png_color_16_struct, ptr %9, i32 0, i32 2
  store i16 %141, ptr %142, align 2, !tbaa !34
  %143 = load ptr, ptr %4, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.png_struct_def, ptr %143, i32 0, i32 52
  %145 = load ptr, ptr %144, align 8, !tbaa !29
  %146 = getelementptr inbounds [6 x i8], ptr %8, i64 0, i64 0
  %147 = load i8, ptr %146, align 1, !tbaa !26
  %148 = zext i8 %147 to i64
  %149 = getelementptr inbounds %struct.png_color_struct, ptr %145, i64 %148
  %150 = getelementptr inbounds %struct.png_color_struct, ptr %149, i32 0, i32 2
  %151 = load i8, ptr %150, align 1, !tbaa !35
  %152 = zext i8 %151 to i16
  %153 = getelementptr inbounds %struct.png_color_16_struct, ptr %9, i32 0, i32 3
  store i16 %152, ptr %153, align 2, !tbaa !36
  br label %158

154:                                              ; preds = %103, %97
  %155 = getelementptr inbounds %struct.png_color_16_struct, ptr %9, i32 0, i32 3
  store i16 0, ptr %155, align 2, !tbaa !36
  %156 = getelementptr inbounds %struct.png_color_16_struct, ptr %9, i32 0, i32 2
  store i16 0, ptr %156, align 2, !tbaa !34
  %157 = getelementptr inbounds %struct.png_color_16_struct, ptr %9, i32 0, i32 1
  store i16 0, ptr %157, align 2, !tbaa !32
  br label %158

158:                                              ; preds = %154, %120
  %159 = getelementptr inbounds %struct.png_color_16_struct, ptr %9, i32 0, i32 4
  store i16 0, ptr %159, align 2, !tbaa !37
  br label %272

160:                                              ; preds = %91
  %161 = load ptr, ptr %4, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.png_struct_def, ptr %161, i32 0, i32 61
  %163 = load i8, ptr %162, align 1, !tbaa !22
  %164 = zext i8 %163 to i32
  %165 = and i32 %164, 2
  %166 = icmp eq i32 %165, 0
  br i1 %166, label %167, label %207

167:                                              ; preds = %160
  %168 = load ptr, ptr %4, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.png_struct_def, ptr %168, i32 0, i32 62
  %170 = load i8, ptr %169, align 8, !tbaa !38
  %171 = zext i8 %170 to i32
  %172 = icmp sle i32 %171, 8
  br i1 %172, label %173, label %191

173:                                              ; preds = %167
  %174 = getelementptr inbounds [6 x i8], ptr %8, i64 0, i64 0
  %175 = load i8, ptr %174, align 1, !tbaa !26
  %176 = zext i8 %175 to i32
  %177 = icmp ne i32 %176, 0
  br i1 %177, label %188, label %178

178:                                              ; preds = %173
  %179 = getelementptr inbounds [6 x i8], ptr %8, i64 0, i64 1
  %180 = load i8, ptr %179, align 1, !tbaa !26
  %181 = zext i8 %180 to i32
  %182 = load ptr, ptr %4, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.png_struct_def, ptr %182, i32 0, i32 62
  %184 = load i8, ptr %183, align 8, !tbaa !38
  %185 = zext i8 %184 to i32
  %186 = shl i32 1, %185
  %187 = icmp uge i32 %181, %186
  br i1 %187, label %188, label %190

188:                                              ; preds = %178, %173
  %189 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_chunk_benign_error(ptr noundef %189, ptr noundef @.str.27)
  store i32 1, ptr %10, align 4
  br label %275

190:                                              ; preds = %178
  br label %191

191:                                              ; preds = %190, %167
  %192 = getelementptr inbounds %struct.png_color_16_struct, ptr %9, i32 0, i32 0
  store i8 0, ptr %192, align 2, !tbaa !27
  %193 = getelementptr inbounds [6 x i8], ptr %8, i64 0, i64 0
  %194 = load i8, ptr %193, align 1, !tbaa !26
  %195 = zext i8 %194 to i32
  %196 = shl i32 %195, 8
  %197 = getelementptr inbounds [6 x i8], ptr %8, i64 0, i64 0
  %198 = getelementptr inbounds i8, ptr %197, i64 1
  %199 = load i8, ptr %198, align 1, !tbaa !26
  %200 = zext i8 %199 to i32
  %201 = add i32 %196, %200
  %202 = trunc i32 %201 to i16
  %203 = getelementptr inbounds %struct.png_color_16_struct, ptr %9, i32 0, i32 4
  store i16 %202, ptr %203, align 2, !tbaa !37
  %204 = getelementptr inbounds %struct.png_color_16_struct, ptr %9, i32 0, i32 3
  store i16 %202, ptr %204, align 2, !tbaa !36
  %205 = getelementptr inbounds %struct.png_color_16_struct, ptr %9, i32 0, i32 2
  store i16 %202, ptr %205, align 2, !tbaa !34
  %206 = getelementptr inbounds %struct.png_color_16_struct, ptr %9, i32 0, i32 1
  store i16 %202, ptr %206, align 2, !tbaa !32
  br label %271

207:                                              ; preds = %160
  %208 = load ptr, ptr %4, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.png_struct_def, ptr %208, i32 0, i32 62
  %210 = load i8, ptr %209, align 8, !tbaa !38
  %211 = zext i8 %210 to i32
  %212 = icmp sle i32 %211, 8
  br i1 %212, label %213, label %231

213:                                              ; preds = %207
  %214 = getelementptr inbounds [6 x i8], ptr %8, i64 0, i64 0
  %215 = load i8, ptr %214, align 1, !tbaa !26
  %216 = zext i8 %215 to i32
  %217 = icmp ne i32 %216, 0
  br i1 %217, label %228, label %218

218:                                              ; preds = %213
  %219 = getelementptr inbounds [6 x i8], ptr %8, i64 0, i64 2
  %220 = load i8, ptr %219, align 1, !tbaa !26
  %221 = zext i8 %220 to i32
  %222 = icmp ne i32 %221, 0
  br i1 %222, label %228, label %223

223:                                              ; preds = %218
  %224 = getelementptr inbounds [6 x i8], ptr %8, i64 0, i64 4
  %225 = load i8, ptr %224, align 1, !tbaa !26
  %226 = zext i8 %225 to i32
  %227 = icmp ne i32 %226, 0
  br i1 %227, label %228, label %230

228:                                              ; preds = %223, %218, %213
  %229 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_chunk_benign_error(ptr noundef %229, ptr noundef @.str.28)
  store i32 1, ptr %10, align 4
  br label %275

230:                                              ; preds = %223
  br label %231

231:                                              ; preds = %230, %207
  %232 = getelementptr inbounds %struct.png_color_16_struct, ptr %9, i32 0, i32 0
  store i8 0, ptr %232, align 2, !tbaa !27
  %233 = getelementptr inbounds [6 x i8], ptr %8, i64 0, i64 0
  %234 = load i8, ptr %233, align 1, !tbaa !26
  %235 = zext i8 %234 to i32
  %236 = shl i32 %235, 8
  %237 = getelementptr inbounds [6 x i8], ptr %8, i64 0, i64 0
  %238 = getelementptr inbounds i8, ptr %237, i64 1
  %239 = load i8, ptr %238, align 1, !tbaa !26
  %240 = zext i8 %239 to i32
  %241 = add i32 %236, %240
  %242 = trunc i32 %241 to i16
  %243 = getelementptr inbounds %struct.png_color_16_struct, ptr %9, i32 0, i32 1
  store i16 %242, ptr %243, align 2, !tbaa !32
  %244 = getelementptr inbounds [6 x i8], ptr %8, i64 0, i64 0
  %245 = getelementptr inbounds i8, ptr %244, i64 2
  %246 = load i8, ptr %245, align 1, !tbaa !26
  %247 = zext i8 %246 to i32
  %248 = shl i32 %247, 8
  %249 = getelementptr inbounds [6 x i8], ptr %8, i64 0, i64 0
  %250 = getelementptr inbounds i8, ptr %249, i64 2
  %251 = getelementptr inbounds i8, ptr %250, i64 1
  %252 = load i8, ptr %251, align 1, !tbaa !26
  %253 = zext i8 %252 to i32
  %254 = add i32 %248, %253
  %255 = trunc i32 %254 to i16
  %256 = getelementptr inbounds %struct.png_color_16_struct, ptr %9, i32 0, i32 2
  store i16 %255, ptr %256, align 2, !tbaa !34
  %257 = getelementptr inbounds [6 x i8], ptr %8, i64 0, i64 0
  %258 = getelementptr inbounds i8, ptr %257, i64 4
  %259 = load i8, ptr %258, align 1, !tbaa !26
  %260 = zext i8 %259 to i32
  %261 = shl i32 %260, 8
  %262 = getelementptr inbounds [6 x i8], ptr %8, i64 0, i64 0
  %263 = getelementptr inbounds i8, ptr %262, i64 4
  %264 = getelementptr inbounds i8, ptr %263, i64 1
  %265 = load i8, ptr %264, align 1, !tbaa !26
  %266 = zext i8 %265 to i32
  %267 = add i32 %261, %266
  %268 = trunc i32 %267 to i16
  %269 = getelementptr inbounds %struct.png_color_16_struct, ptr %9, i32 0, i32 3
  store i16 %268, ptr %269, align 2, !tbaa !36
  %270 = getelementptr inbounds %struct.png_color_16_struct, ptr %9, i32 0, i32 4
  store i16 0, ptr %270, align 2, !tbaa !37
  br label %271

271:                                              ; preds = %231, %191
  br label %272

272:                                              ; preds = %271, %158
  %273 = load ptr, ptr %4, align 8, !tbaa !5
  %274 = load ptr, ptr %5, align 8, !tbaa !5
  call void @png_set_bKGD(ptr noundef %273, ptr noundef %274, ptr noundef %9)
  store i32 0, ptr %10, align 4
  br label %275

275:                                              ; preds = %272, %228, %188, %118, %90, %78, %50, %36
  call void @llvm.lifetime.end.p0(i64 10, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 6, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  %276 = load i32, ptr %10, align 4
  switch i32 %276, label %278 [
    i32 0, label %277
    i32 1, label %277
  ]

277:                                              ; preds = %275, %275
  ret void

278:                                              ; preds = %275
  unreachable
}

declare void @png_set_bKGD(ptr noundef, ptr noundef, ptr noundef) #3

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 = { noreturn "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 = { "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 = { noreturn }

!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 300}
!12 = !{!"png_struct_def", !7, i64 0, !6, i64 200, !6, i64 208, !13, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !7, i64 296, !7, i64 297, !10, i64 300, !10, i64 304, !10, i64 308, !10, i64 312, !14, i64 320, !6, i64 432, !10, i64 440, !10, i64 444, !10, i64 448, !10, i64 452, !10, i64 456, !10, i64 460, !10, i64 464, !10, i64 468, !10, i64 472, !10, i64 476, !10, i64 480, !10, i64 484, !10, i64 488, !10, i64 492, !10, i64 496, !10, i64 500, !10, i64 504, !10, i64 508, !10, i64 512, !10, i64 516, !13, i64 520, !10, i64 528, !10, i64 532, !10, i64 536, !6, i64 544, !6, i64 552, !6, i64 560, !6, i64 568, !13, i64 576, !10, i64 584, !10, i64 588, !6, i64 592, !15, i64 600, !10, i64 604, !15, i64 608, !7, i64 610, !7, i64 611, !7, i64 612, !7, i64 613, !7, i64 614, !7, i64 615, !7, i64 616, !7, i64 617, !7, i64 618, !7, i64 619, !7, i64 620, !7, i64 621, !7, i64 622, !7, i64 623, !7, i64 624, !15, i64 626, !7, i64 628, !10, i64 632, !16, i64 636, !16, i64 646, !6, i64 656, !10, i64 664, !10, i64 668, !10, i64 672, !10, i64 676, !6, i64 680, !6, i64 688, !6, i64 696, !6, i64 704, !6, i64 712, !6, i64 720, !17, i64 728, !17, i64 733, !6, i64 744, !16, i64 752, !6, i64 768, !6, i64 776, !6, i64 784, !6, i64 792, !6, i64 800, !6, i64 808, !6, i64 816, !6, i64 824, !6, i64 832, !10, i64 840, !10, i64 844, !13, i64 848, !13, i64 856, !13, i64 864, !13, i64 872, !10, i64 880, !10, i64 884, !6, i64 888, !6, i64 896, !10, i64 904, !7, i64 908, !10, i64 940, !6, i64 944, !6, i64 952, !10, i64 960, !10, i64 964, !6, i64 968, !7, i64 976, !7, i64 977, !15, i64 978, !15, i64 980, !10, i64 984, !7, i64 988, !6, i64 992, !6, i64 1000, !6, i64 1008, !6, i64 1016, !6, i64 1024, !6, i64 1032, !6, i64 1040, !7, i64 1048, !10, i64 1052, !10, i64 1056, !10, i64 1060, !13, i64 1064, !18, i64 1072, !13, i64 1104, !6, i64 1112, !13, i64 1120, !10, i64 1128, !10, i64 1132, !6, i64 1136, !7, i64 1144, !19, i64 1176}
!13 = !{!"long", !7, i64 0}
!14 = !{!"z_stream_s", !6, i64 0, !10, i64 8, !13, i64 16, !6, i64 24, !10, i64 32, !13, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !10, i64 88, !13, i64 96, !13, i64 104}
!15 = !{!"short", !7, i64 0}
!16 = !{!"png_color_16_struct", !7, i64 0, !15, i64 2, !15, i64 4, !15, i64 6, !15, 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, !6, i64 8, !13, i64 16, !7, i64 24}
!19 = !{!"png_colorspace", !10, i64 0, !20, i64 4, !21, i64 36, !15, i64 72, !15, i64 74}
!20 = !{!"png_xy", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!21 = !{!"png_XYZ", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32}
!22 = !{!12, !7, i64 615}
!23 = !{!24, !10, i64 8}
!24 = !{!"png_info_def", !10, i64 0, !10, i64 4, !10, i64 8, !13, i64 16, !6, i64 24, !15, i64 32, !15, i64 34, !7, i64 36, !7, i64 37, !7, i64 38, !7, i64 39, !7, i64 40, !7, i64 41, !7, i64 42, !7, i64 43, !7, i64 44, !19, i64 52, !6, i64 128, !6, i64 136, !10, i64 144, !10, i64 148, !10, i64 152, !6, i64 160, !25, i64 168, !17, i64 176, !6, i64 184, !16, i64 192, !16, i64 202, !10, i64 212, !10, i64 216, !7, i64 220, !10, i64 224, !10, i64 228, !7, i64 232, !10, i64 236, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !10, i64 272, !10, i64 276, !6, i64 280, !6, i64 288, !7, i64 296, !7, i64 297, !10, i64 300, !6, i64 304, !10, i64 312, !6, i64 320, !10, i64 328, !7, i64 332, !6, i64 336, !6, i64 344, !6, i64 352}
!25 = !{!"png_time_struct", !15, i64 0, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !7, i64 6}
!26 = !{!7, !7, i64 0}
!27 = !{!16, !7, i64 0}
!28 = !{!24, !15, i64 32}
!29 = !{!12, !6, i64 592}
!30 = !{!31, !7, i64 0}
!31 = !{!"png_color_struct", !7, i64 0, !7, i64 1, !7, i64 2}
!32 = !{!16, !15, i64 2}
!33 = !{!31, !7, i64 1}
!34 = !{!16, !15, i64 4}
!35 = !{!31, !7, i64 2}
!36 = !{!16, !15, i64 6}
!37 = !{!16, !15, i64 8}
!38 = !{!12, !7, i64 616}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.png_color_16_struct = type { i8, i16, i16, i16, i16 }
%struct.png_color_struct = type { i8, i8, i8 }

@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [14 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

; 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 noalias noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

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

; Function Attrs: noreturn
declare void @png_chunk_error(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @png_chunk_benign_error(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local void @png_handle_bKGD(ptr noalias noundef %0, ptr noalias noundef %1, i32 noundef %2) local_unnamed_addr #1 {
  %4 = alloca [6 x i8], align 1
  %5 = alloca %struct.png_color_16_struct, align 2
  call void @llvm.lifetime.start.p0(i64 6, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 10, ptr nonnull %5) #4
  %6 = getelementptr inbounds i8, ptr %0, i64 300
  %7 = load i32, ptr %6, align 4, !tbaa !5
  %8 = and i32 %7, 1
  %9 = icmp eq i32 %8, 0
  %.sink73.sroa.gep = getelementptr inbounds i8, ptr %5, i64 2
  %.sink73.sroa.gep77 = getelementptr inbounds i8, ptr %5, i64 8
  %.sink73.sroa.gep78 = getelementptr inbounds i8, ptr %5, i64 8
  %.sink73.sroa.gep79 = getelementptr inbounds i8, ptr %5, i64 8
  %.sink76.sroa.gep = getelementptr inbounds i8, ptr %5, i64 4
  %.sink76.sroa.gep80 = getelementptr inbounds i8, ptr %5, i64 6
  %.sink76.sroa.gep81 = getelementptr inbounds i8, ptr %5, i64 2
  %.sink76.sroa.gep82 = getelementptr inbounds i8, ptr %5, i64 6
  br i1 %9, label %10, label %11

10:                                               ; preds = %3
  tail call void @png_chunk_error(ptr noundef nonnull %0, ptr noundef nonnull @.str.7) #5
  unreachable

11:                                               ; preds = %3
  %12 = and i32 %7, 4
  %.not = icmp eq i32 %12, 0
  br i1 %.not, label %13, label %19

13:                                               ; preds = %11
  %14 = getelementptr inbounds i8, ptr %0, i64 615
  %15 = load i8, ptr %14, align 1, !tbaa !20
  %16 = icmp eq i8 %15, 3
  %17 = and i32 %7, 2
  %18 = icmp eq i32 %17, 0
  %or.cond61 = and i1 %18, %16
  br i1 %or.cond61, label %19, label %21

19:                                               ; preds = %13, %11
  %20 = tail call i32 @png_crc_finish(ptr noundef nonnull %0, i32 noundef %2)
  tail call void @png_chunk_benign_error(ptr noundef nonnull %0, ptr noundef nonnull @.str.5) #4
  br label %120

21:                                               ; preds = %13
  %.not51 = icmp eq ptr %1, null
  br i1 %.not51, label %28, label %22

22:                                               ; preds = %21
  %23 = getelementptr inbounds i8, ptr %1, i64 8
  %24 = load i32, ptr %23, align 8, !tbaa !21
  %25 = and i32 %24, 32
  %.not52 = icmp eq i32 %25, 0
  br i1 %.not52, label %28, label %26

26:                                               ; preds = %22
  %27 = tail call i32 @png_crc_finish(ptr noundef nonnull %0, i32 noundef %2)
  tail call void @png_chunk_benign_error(ptr noundef nonnull %0, ptr noundef nonnull @.str.8) #4
  br label %120

28:                                               ; preds = %22, %21
  %29 = and i8 %15, 2
  %.not53 = icmp eq i8 %29, 0
  %. = select i1 %.not53, i32 2, i32 6
  %.0 = select i1 %16, i32 1, i32 %.
  %.not54 = icmp eq i32 %.0, %2
  br i1 %.not54, label %32, label %30

30:                                               ; preds = %28
  %31 = tail call i32 @png_crc_finish(ptr noundef nonnull %0, i32 noundef %2)
  tail call void @png_chunk_benign_error(ptr noundef nonnull %0, ptr noundef nonnull @.str.6) #4
  br label %120

32:                                               ; preds = %28
  call void @png_crc_read(ptr noundef nonnull %0, ptr noundef nonnull %4, i32 noundef %2)
  %33 = call i32 @png_crc_finish(ptr noundef nonnull %0, i32 noundef 0)
  %.not55 = icmp eq i32 %33, 0
  br i1 %.not55, label %34, label %120

34:                                               ; preds = %32
  %35 = load i8, ptr %14, align 1, !tbaa !20
  %36 = icmp eq i8 %35, 3
  br i1 %36, label %37, label %63

37:                                               ; preds = %34
  %38 = load i8, ptr %4, align 1, !tbaa !24
  store i8 %38, ptr %5, align 2, !tbaa !25
  br i1 %.not51, label %60, label %39

39:                                               ; preds = %37
  %40 = getelementptr inbounds i8, ptr %1, i64 32
  %41 = load i16, ptr %40, align 8, !tbaa !26
  %.not58 = icmp eq i16 %41, 0
  br i1 %.not58, label %60, label %42

42:                                               ; preds = %39
  %43 = zext i8 %38 to i16
  %.not59 = icmp ugt i16 %41, %43
  br i1 %.not59, label %45, label %44

44:                                               ; preds = %42
  call void @png_chunk_benign_error(ptr noundef nonnull %0, ptr noundef nonnull @.str.26) #4
  br label %120

45:                                               ; preds = %42
  %46 = getelementptr inbounds i8, ptr %0, i64 592
  %47 = load ptr, ptr %46, align 8, !tbaa !27
  %48 = zext i8 %38 to i64
  %49 = getelementptr inbounds %struct.png_color_struct, ptr %47, i64 %48
  %50 = load i8, ptr %49, align 1, !tbaa !28
  %51 = zext i8 %50 to i16
  %52 = getelementptr inbounds i8, ptr %5, i64 2
  store i16 %51, ptr %52, align 2, !tbaa !30
  %53 = getelementptr inbounds %struct.png_color_struct, ptr %47, i64 %48, i32 1
  %54 = load i8, ptr %53, align 1, !tbaa !31
  %55 = zext i8 %54 to i16
  %56 = getelementptr inbounds i8, ptr %5, i64 4
  store i16 %55, ptr %56, align 2, !tbaa !32
  %57 = getelementptr inbounds %struct.png_color_struct, ptr %47, i64 %48, i32 2
  %58 = load i8, ptr %57, align 1, !tbaa !33
  %59 = zext i8 %58 to i16
  br label %119

60:                                               ; preds = %39, %37
  %61 = getelementptr inbounds i8, ptr %5, i64 6
  store i16 0, ptr %61, align 2, !tbaa !34
  %62 = getelementptr inbounds i8, ptr %5, i64 4
  store i16 0, ptr %62, align 2, !tbaa !32
  br label %119

63:                                               ; preds = %34
  %64 = and i8 %35, 2
  %65 = icmp eq i8 %64, 0
  %66 = getelementptr inbounds i8, ptr %0, i64 616
  %67 = load i8, ptr %66, align 8, !tbaa !35
  br i1 %65, label %68, label %85

68:                                               ; preds = %63
  %69 = zext nneg i8 %67 to i32
  %70 = icmp ult i8 %67, 9
  %.pre65 = load i8, ptr %4, align 1, !tbaa !24
  br i1 %70, label %71, label %._crit_edge66

._crit_edge66:                                    ; preds = %68
  %.phi.trans.insert67 = getelementptr inbounds i8, ptr %4, i64 1
  %.pre68 = load i8, ptr %.phi.trans.insert67, align 1, !tbaa !24
  br label %77

71:                                               ; preds = %68
  %.not56 = icmp eq i8 %.pre65, 0
  br i1 %.not56, label %72, label %76

72:                                               ; preds = %71
  %73 = getelementptr inbounds i8, ptr %4, i64 1
  %74 = load i8, ptr %73, align 1, !tbaa !24
  %75 = zext i8 %74 to i32
  %.highbits = lshr i32 %75, %69
  %.not57 = icmp eq i32 %.highbits, 0
  br i1 %.not57, label %77, label %76

76:                                               ; preds = %72, %71
  call void @png_chunk_benign_error(ptr noundef nonnull %0, ptr noundef nonnull @.str.27) #4
  br label %120

77:                                               ; preds = %._crit_edge66, %72
  %78 = phi i8 [ %.pre68, %._crit_edge66 ], [ %74, %72 ]
  store i8 0, ptr %5, align 2, !tbaa !25
  %79 = zext i8 %.pre65 to i16
  %80 = shl nuw i16 %79, 8
  %81 = zext i8 %78 to i16
  %82 = or disjoint i16 %80, %81
  %83 = getelementptr inbounds i8, ptr %5, i64 8
  store i16 %82, ptr %83, align 2, !tbaa !36
  %84 = getelementptr inbounds i8, ptr %5, i64 6
  store i16 %82, ptr %84, align 2, !tbaa !34
  br label %119

85:                                               ; preds = %63
  %86 = icmp ult i8 %67, 9
  %.pre = load i8, ptr %4, align 1, !tbaa !24
  br i1 %86, label %91, label %._crit_edge

._crit_edge:                                      ; preds = %85
  %.phi.trans.insert = getelementptr inbounds i8, ptr %4, i64 2
  %.pre62 = load i8, ptr %.phi.trans.insert, align 1, !tbaa !24
  %.phi.trans.insert63 = getelementptr inbounds i8, ptr %4, i64 4
  %.pre64 = load i8, ptr %.phi.trans.insert63, align 1, !tbaa !24
  %87 = zext i8 %.pre62 to i16
  %88 = shl nuw i16 %87, 8
  %89 = zext i8 %.pre64 to i16
  %90 = shl nuw i16 %89, 8
  br label %100

91:                                               ; preds = %85
  %92 = icmp ne i8 %.pre, 0
  %93 = getelementptr inbounds i8, ptr %4, i64 2
  %94 = load i8, ptr %93, align 1
  %95 = icmp ne i8 %94, 0
  %or.cond = select i1 %92, i1 true, i1 %95
  %96 = getelementptr inbounds i8, ptr %4, i64 4
  %97 = load i8, ptr %96, align 1
  %98 = icmp ne i8 %97, 0
  %or.cond7 = select i1 %or.cond, i1 true, i1 %98
  br i1 %or.cond7, label %99, label %100

99:                                               ; preds = %91
  call void @png_chunk_benign_error(ptr noundef nonnull %0, ptr noundef nonnull @.str.28) #4
  br label %120

100:                                              ; preds = %._crit_edge, %91
  %101 = phi i16 [ %90, %._crit_edge ], [ 0, %91 ]
  %102 = phi i16 [ %88, %._crit_edge ], [ 0, %91 ]
  store i8 0, ptr %5, align 2, !tbaa !25
  %103 = zext i8 %.pre to i16
  %104 = shl nuw i16 %103, 8
  %105 = getelementptr inbounds i8, ptr %4, i64 1
  %106 = load i8, ptr %105, align 1, !tbaa !24
  %107 = zext i8 %106 to i16
  %108 = or disjoint i16 %104, %107
  %109 = getelementptr inbounds i8, ptr %5, i64 2
  store i16 %108, ptr %109, align 2, !tbaa !30
  %110 = getelementptr inbounds i8, ptr %4, i64 3
  %111 = load i8, ptr %110, align 1, !tbaa !24
  %112 = zext i8 %111 to i16
  %113 = or disjoint i16 %102, %112
  %114 = getelementptr inbounds i8, ptr %5, i64 4
  store i16 %113, ptr %114, align 2, !tbaa !32
  %115 = getelementptr inbounds i8, ptr %4, i64 5
  %116 = load i8, ptr %115, align 1, !tbaa !24
  %117 = zext i8 %116 to i16
  %118 = or disjoint i16 %101, %117
  br label %119

119:                                              ; preds = %45, %60, %77, %100
  %.sink76.sroa.phi = phi ptr [ %.sink76.sroa.gep, %77 ], [ %.sink76.sroa.gep80, %100 ], [ %.sink76.sroa.gep81, %60 ], [ %.sink76.sroa.gep82, %45 ]
  %.sink74 = phi i16 [ %82, %77 ], [ %118, %100 ], [ 0, %60 ], [ %59, %45 ]
  %.sink73.sroa.phi = phi ptr [ %.sink73.sroa.gep, %77 ], [ %.sink73.sroa.gep77, %100 ], [ %.sink73.sroa.gep78, %60 ], [ %.sink73.sroa.gep79, %45 ]
  %.sink71 = phi i16 [ %82, %77 ], [ 0, %100 ], [ 0, %60 ], [ 0, %45 ]
  store i16 %.sink74, ptr %.sink76.sroa.phi, align 2, !tbaa !37
  store i16 %.sink71, ptr %.sink73.sroa.phi, align 2, !tbaa !37
  call void @png_set_bKGD(ptr noundef nonnull %0, ptr noundef %1, ptr noundef nonnull %5) #4
  br label %120

120:                                              ; preds = %32, %119, %99, %76, %44, %30, %26, %19
  call void @llvm.lifetime.end.p0(i64 10, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 6, ptr nonnull %4) #4
  ret void
}

declare void @png_set_bKGD(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

attributes #0 = { mustprogress 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 = { noreturn "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 = { "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 = { noreturn 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, !11, i64 300}
!6 = !{!"png_struct_def", !7, i64 0, !9, i64 200, !9, i64 208, !10, i64 216, !9, i64 224, !9, i64 232, !9, i64 240, !9, i64 248, !9, i64 256, !9, i64 264, !9, i64 272, !9, i64 280, !9, i64 288, !7, i64 296, !7, i64 297, !11, i64 300, !11, i64 304, !11, i64 308, !11, i64 312, !12, i64 320, !9, i64 432, !11, i64 440, !11, i64 444, !11, i64 448, !11, i64 452, !11, i64 456, !11, i64 460, !11, i64 464, !11, i64 468, !11, i64 472, !11, i64 476, !11, i64 480, !11, i64 484, !11, i64 488, !11, i64 492, !11, i64 496, !11, i64 500, !11, i64 504, !11, i64 508, !11, i64 512, !11, i64 516, !10, i64 520, !11, i64 528, !11, i64 532, !11, i64 536, !9, i64 544, !9, i64 552, !9, i64 560, !9, i64 568, !10, i64 576, !11, i64 584, !11, i64 588, !9, i64 592, !13, i64 600, !11, i64 604, !13, i64 608, !7, i64 610, !7, i64 611, !7, i64 612, !7, i64 613, !7, i64 614, !7, i64 615, !7, i64 616, !7, i64 617, !7, i64 618, !7, i64 619, !7, i64 620, !7, i64 621, !7, i64 622, !7, i64 623, !7, i64 624, !13, i64 626, !7, i64 628, !11, i64 632, !14, i64 636, !14, i64 646, !9, i64 656, !11, i64 664, !11, i64 668, !11, i64 672, !11, i64 676, !9, i64 680, !9, i64 688, !9, i64 696, !9, i64 704, !9, i64 712, !9, i64 720, !15, i64 728, !15, i64 733, !9, i64 744, !14, i64 752, !9, i64 768, !9, i64 776, !9, i64 784, !9, i64 792, !9, i64 800, !9, i64 808, !9, i64 816, !9, i64 824, !9, i64 832, !11, i64 840, !11, i64 844, !10, i64 848, !10, i64 856, !10, i64 864, !10, i64 872, !11, i64 880, !11, i64 884, !9, i64 888, !9, i64 896, !11, i64 904, !7, i64 908, !11, i64 940, !9, i64 944, !9, i64 952, !11, i64 960, !11, i64 964, !9, i64 968, !7, i64 976, !7, i64 977, !13, i64 978, !13, i64 980, !11, i64 984, !7, i64 988, !9, i64 992, !9, i64 1000, !9, i64 1008, !9, i64 1016, !9, i64 1024, !9, i64 1032, !9, i64 1040, !7, i64 1048, !11, i64 1052, !11, i64 1056, !11, i64 1060, !10, i64 1064, !16, i64 1072, !10, i64 1104, !9, i64 1112, !10, i64 1120, !11, i64 1128, !11, i64 1132, !9, i64 1136, !7, i64 1144, !17, i64 1176}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"any pointer", !7, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!"z_stream_s", !9, i64 0, !11, i64 8, !10, i64 16, !9, i64 24, !11, i64 32, !10, i64 40, !9, i64 48, !9, i64 56, !9, i64 64, !9, i64 72, !9, i64 80, !11, i64 88, !10, i64 96, !10, i64 104}
!13 = !{!"short", !7, i64 0}
!14 = !{!"png_color_16_struct", !7, i64 0, !13, i64 2, !13, i64 4, !13, i64 6, !13, i64 8}
!15 = !{!"png_color_8_struct", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4}
!16 = !{!"png_unknown_chunk_t", !7, i64 0, !9, i64 8, !10, i64 16, !7, i64 24}
!17 = !{!"png_colorspace", !11, i64 0, !18, i64 4, !19, i64 36, !13, i64 72, !13, i64 74}
!18 = !{!"png_xy", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28}
!19 = !{!"png_XYZ", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32}
!20 = !{!6, !7, i64 615}
!21 = !{!22, !11, i64 8}
!22 = !{!"png_info_def", !11, i64 0, !11, i64 4, !11, i64 8, !10, i64 16, !9, i64 24, !13, i64 32, !13, i64 34, !7, i64 36, !7, i64 37, !7, i64 38, !7, i64 39, !7, i64 40, !7, i64 41, !7, i64 42, !7, i64 43, !7, i64 44, !17, i64 52, !9, i64 128, !9, i64 136, !11, i64 144, !11, i64 148, !11, i64 152, !9, i64 160, !23, i64 168, !15, i64 176, !9, i64 184, !14, i64 192, !14, i64 202, !11, i64 212, !11, i64 216, !7, i64 220, !11, i64 224, !11, i64 228, !7, i64 232, !11, i64 236, !9, i64 240, !9, i64 248, !9, i64 256, !9, i64 264, !11, i64 272, !11, i64 276, !9, i64 280, !9, i64 288, !7, i64 296, !7, i64 297, !11, i64 300, !9, i64 304, !11, i64 312, !9, i64 320, !11, i64 328, !7, i64 332, !9, i64 336, !9, i64 344, !9, i64 352}
!23 = !{!"png_time_struct", !13, i64 0, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !7, i64 6}
!24 = !{!7, !7, i64 0}
!25 = !{!14, !7, i64 0}
!26 = !{!22, !13, i64 32}
!27 = !{!6, !9, i64 592}
!28 = !{!29, !7, i64 0}
!29 = !{!"png_color_struct", !7, i64 0, !7, i64 1, !7, i64 2}
!30 = !{!14, !13, i64 2}
!31 = !{!29, !7, i64 1}
!32 = !{!14, !13, i64 4}
!33 = !{!29, !7, i64 2}
!34 = !{!14, !13, i64 6}
!35 = !{!6, !7, i64 616}
!36 = !{!14, !13, i64 8}
!37 = !{!13, !13, i64 0}


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