; LLVM IR from Try/Tempest :: Engine/thirdparty/libpng (pngwrite)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.png_row_info_struct = type { i32, i64, i8, i8, i8, i8 }
%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_color_16_struct = type { i8, i16, i16, i16, i16 }
%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 }

@.str.5 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [37 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: noreturn
declare void @png_error(ptr noundef, ptr noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local void @png_write_row(ptr noalias noundef %0, ptr noundef %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %struct.png_row_info_struct, align 8
  %6 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #5
  %7 = load ptr, ptr %3, align 8, !tbaa !5
  %8 = icmp eq ptr %7, null
  br i1 %8, label %9, label %10

9:                                                ; preds = %2
  store i32 1, ptr %6, align 4
  br label %294

10:                                               ; preds = %2
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.png_struct_def, ptr %11, i32 0, i32 43
  %13 = load i32, ptr %12, align 4, !tbaa !9
  %14 = icmp eq i32 %13, 0
  br i1 %14, label %15, label %31

15:                                               ; preds = %10
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.png_struct_def, ptr %16, i32 0, i32 59
  %18 = load i8, ptr %17, align 1, !tbaa !21
  %19 = zext i8 %18 to i32
  %20 = icmp eq i32 %19, 0
  br i1 %20, label %21, label %31

21:                                               ; preds = %15
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.png_struct_def, ptr %22, i32 0, i32 15
  %24 = load i32, ptr %23, align 4, !tbaa !22
  %25 = and i32 %24, 1024
  %26 = icmp eq i32 %25, 0
  br i1 %26, label %27, label %29

27:                                               ; preds = %21
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  call void @png_error(ptr noundef %28, ptr noundef @.str.5) #6
  unreachable

29:                                               ; preds = %21
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  call void @png_write_start_row(ptr noundef %30)
  br label %31

31:                                               ; preds = %29, %15, %10
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.png_struct_def, ptr %32, i32 0, i32 58
  %34 = load i8, ptr %33, align 4, !tbaa !23
  %35 = zext i8 %34 to i32
  %36 = icmp ne i32 %35, 0
  br i1 %36, label %37, label %128

37:                                               ; preds = %31
  %38 = load ptr, ptr %3, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.png_struct_def, ptr %38, i32 0, i32 17
  %40 = load i32, ptr %39, align 4, !tbaa !24
  %41 = and i32 %40, 2
  %42 = icmp ne i32 %41, 0
  br i1 %42, label %43, label %128

43:                                               ; preds = %37
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.png_struct_def, ptr %44, i32 0, i32 59
  %46 = load i8, ptr %45, align 1, !tbaa !21
  %47 = zext i8 %46 to i32
  switch i32 %47, label %126 [
    i32 0, label %48
    i32 1, label %57
    i32 2, label %71
    i32 3, label %80
    i32 4, label %94
    i32 5, label %103
    i32 6, label %117
  ]

48:                                               ; preds = %43
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.png_struct_def, ptr %49, i32 0, i32 43
  %51 = load i32, ptr %50, align 4, !tbaa !9
  %52 = and i32 %51, 7
  %53 = icmp ne i32 %52, 0
  br i1 %53, label %54, label %56

54:                                               ; preds = %48
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  call void @png_write_finish_row(ptr noundef %55)
  store i32 1, ptr %6, align 4
  br label %294

56:                                               ; preds = %48
  br label %127

57:                                               ; preds = %43
  %58 = load ptr, ptr %3, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.png_struct_def, ptr %58, i32 0, i32 43
  %60 = load i32, ptr %59, align 4, !tbaa !9
  %61 = and i32 %60, 7
  %62 = icmp ne i32 %61, 0
  br i1 %62, label %68, label %63

63:                                               ; preds = %57
  %64 = load ptr, ptr %3, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.png_struct_def, ptr %64, i32 0, i32 37
  %66 = load i32, ptr %65, align 8, !tbaa !25
  %67 = icmp ult i32 %66, 5
  br i1 %67, label %68, label %70

68:                                               ; preds = %63, %57
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  call void @png_write_finish_row(ptr noundef %69)
  store i32 1, ptr %6, align 4
  br label %294

70:                                               ; preds = %63
  br label %127

71:                                               ; preds = %43
  %72 = load ptr, ptr %3, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.png_struct_def, ptr %72, i32 0, i32 43
  %74 = load i32, ptr %73, align 4, !tbaa !9
  %75 = and i32 %74, 7
  %76 = icmp ne i32 %75, 4
  br i1 %76, label %77, label %79

77:                                               ; preds = %71
  %78 = load ptr, ptr %3, align 8, !tbaa !5
  call void @png_write_finish_row(ptr noundef %78)
  store i32 1, ptr %6, align 4
  br label %294

79:                                               ; preds = %71
  br label %127

80:                                               ; preds = %43
  %81 = load ptr, ptr %3, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.png_struct_def, ptr %81, i32 0, i32 43
  %83 = load i32, ptr %82, align 4, !tbaa !9
  %84 = and i32 %83, 3
  %85 = icmp ne i32 %84, 0
  br i1 %85, label %91, label %86

86:                                               ; preds = %80
  %87 = load ptr, ptr %3, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.png_struct_def, ptr %87, i32 0, i32 37
  %89 = load i32, ptr %88, align 8, !tbaa !25
  %90 = icmp ult i32 %89, 3
  br i1 %90, label %91, label %93

91:                                               ; preds = %86, %80
  %92 = load ptr, ptr %3, align 8, !tbaa !5
  call void @png_write_finish_row(ptr noundef %92)
  store i32 1, ptr %6, align 4
  br label %294

93:                                               ; preds = %86
  br label %127

94:                                               ; preds = %43
  %95 = load ptr, ptr %3, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.png_struct_def, ptr %95, i32 0, i32 43
  %97 = load i32, ptr %96, align 4, !tbaa !9
  %98 = and i32 %97, 3
  %99 = icmp ne i32 %98, 2
  br i1 %99, label %100, label %102

100:                                              ; preds = %94
  %101 = load ptr, ptr %3, align 8, !tbaa !5
  call void @png_write_finish_row(ptr noundef %101)
  store i32 1, ptr %6, align 4
  br label %294

102:                                              ; preds = %94
  br label %127

103:                                              ; preds = %43
  %104 = load ptr, ptr %3, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.png_struct_def, ptr %104, i32 0, i32 43
  %106 = load i32, ptr %105, align 4, !tbaa !9
  %107 = and i32 %106, 1
  %108 = icmp ne i32 %107, 0
  br i1 %108, label %114, label %109

109:                                              ; preds = %103
  %110 = load ptr, ptr %3, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.png_struct_def, ptr %110, i32 0, i32 37
  %112 = load i32, ptr %111, align 8, !tbaa !25
  %113 = icmp ult i32 %112, 2
  br i1 %113, label %114, label %116

114:                                              ; preds = %109, %103
  %115 = load ptr, ptr %3, align 8, !tbaa !5
  call void @png_write_finish_row(ptr noundef %115)
  store i32 1, ptr %6, align 4
  br label %294

116:                                              ; preds = %109
  br label %127

117:                                              ; preds = %43
  %118 = load ptr, ptr %3, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.png_struct_def, ptr %118, i32 0, i32 43
  %120 = load i32, ptr %119, align 4, !tbaa !9
  %121 = and i32 %120, 1
  %122 = icmp eq i32 %121, 0
  br i1 %122, label %123, label %125

123:                                              ; preds = %117
  %124 = load ptr, ptr %3, align 8, !tbaa !5
  call void @png_write_finish_row(ptr noundef %124)
  store i32 1, ptr %6, align 4
  br label %294

125:                                              ; preds = %117
  br label %127

126:                                              ; preds = %43
  br label %127

127:                                              ; preds = %126, %125, %116, %102, %93, %79, %70, %56
  br label %128

128:                                              ; preds = %127, %37, %31
  %129 = load ptr, ptr %3, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.png_struct_def, ptr %129, i32 0, i32 61
  %131 = load i8, ptr %130, align 1, !tbaa !26
  %132 = getelementptr inbounds %struct.png_row_info_struct, ptr %5, i32 0, i32 2
  store i8 %131, ptr %132, align 8, !tbaa !27
  %133 = load ptr, ptr %3, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.png_struct_def, ptr %133, i32 0, i32 40
  %135 = load i32, ptr %134, align 4, !tbaa !29
  %136 = getelementptr inbounds %struct.png_row_info_struct, ptr %5, i32 0, i32 0
  store i32 %135, ptr %136, align 8, !tbaa !30
  %137 = load ptr, ptr %3, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.png_struct_def, ptr %137, i32 0, i32 66
  %139 = load i8, ptr %138, align 4, !tbaa !31
  %140 = getelementptr inbounds %struct.png_row_info_struct, ptr %5, i32 0, i32 4
  store i8 %139, ptr %140, align 2, !tbaa !32
  %141 = load ptr, ptr %3, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.png_struct_def, ptr %141, i32 0, i32 63
  %143 = load i8, ptr %142, align 1, !tbaa !33
  %144 = getelementptr inbounds %struct.png_row_info_struct, ptr %5, i32 0, i32 3
  store i8 %143, ptr %144, align 1, !tbaa !34
  %145 = getelementptr inbounds %struct.png_row_info_struct, ptr %5, i32 0, i32 3
  %146 = load i8, ptr %145, align 1, !tbaa !34
  %147 = zext i8 %146 to i32
  %148 = getelementptr inbounds %struct.png_row_info_struct, ptr %5, i32 0, i32 4
  %149 = load i8, ptr %148, align 2, !tbaa !32
  %150 = zext i8 %149 to i32
  %151 = mul nsw i32 %147, %150
  %152 = trunc i32 %151 to i8
  %153 = getelementptr inbounds %struct.png_row_info_struct, ptr %5, i32 0, i32 5
  store i8 %152, ptr %153, align 1, !tbaa !35
  %154 = getelementptr inbounds %struct.png_row_info_struct, ptr %5, i32 0, i32 5
  %155 = load i8, ptr %154, align 1, !tbaa !35
  %156 = zext i8 %155 to i32
  %157 = icmp sge i32 %156, 8
  br i1 %157, label %158, label %167

158:                                              ; preds = %128
  %159 = getelementptr inbounds %struct.png_row_info_struct, ptr %5, i32 0, i32 0
  %160 = load i32, ptr %159, align 8, !tbaa !30
  %161 = zext i32 %160 to i64
  %162 = getelementptr inbounds %struct.png_row_info_struct, ptr %5, i32 0, i32 5
  %163 = load i8, ptr %162, align 1, !tbaa !35
  %164 = zext i8 %163 to i64
  %165 = lshr i64 %164, 3
  %166 = mul i64 %161, %165
  br label %177

167:                                              ; preds = %128
  %168 = getelementptr inbounds %struct.png_row_info_struct, ptr %5, i32 0, i32 0
  %169 = load i32, ptr %168, align 8, !tbaa !30
  %170 = zext i32 %169 to i64
  %171 = getelementptr inbounds %struct.png_row_info_struct, ptr %5, i32 0, i32 5
  %172 = load i8, ptr %171, align 1, !tbaa !35
  %173 = zext i8 %172 to i64
  %174 = mul i64 %170, %173
  %175 = add i64 %174, 7
  %176 = lshr i64 %175, 3
  br label %177

177:                                              ; preds = %167, %158
  %178 = phi i64 [ %166, %158 ], [ %176, %167 ]
  %179 = getelementptr inbounds %struct.png_row_info_struct, ptr %5, i32 0, i32 1
  store i64 %178, ptr %179, align 8, !tbaa !36
  %180 = load ptr, ptr %3, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.png_struct_def, ptr %180, i32 0, i32 46
  %182 = load ptr, ptr %181, align 8, !tbaa !37
  %183 = getelementptr inbounds i8, ptr %182, i64 1
  %184 = load ptr, ptr %4, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.png_row_info_struct, ptr %5, i32 0, i32 1
  %186 = load i64, ptr %185, align 8, !tbaa !36
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %183, ptr align 1 %184, i64 %186, i1 false)
  %187 = load ptr, ptr %3, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.png_struct_def, ptr %187, i32 0, i32 58
  %189 = load i8, ptr %188, align 4, !tbaa !23
  %190 = zext i8 %189 to i32
  %191 = icmp ne i32 %190, 0
  br i1 %191, label %192, label %219

192:                                              ; preds = %177
  %193 = load ptr, ptr %3, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.png_struct_def, ptr %193, i32 0, i32 59
  %195 = load i8, ptr %194, align 1, !tbaa !21
  %196 = zext i8 %195 to i32
  %197 = icmp slt i32 %196, 6
  br i1 %197, label %198, label %219

198:                                              ; preds = %192
  %199 = load ptr, ptr %3, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.png_struct_def, ptr %199, i32 0, i32 17
  %201 = load i32, ptr %200, align 4, !tbaa !24
  %202 = and i32 %201, 2
  %203 = icmp ne i32 %202, 0
  br i1 %203, label %204, label %219

204:                                              ; preds = %198
  %205 = load ptr, ptr %3, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.png_struct_def, ptr %205, i32 0, i32 46
  %207 = load ptr, ptr %206, align 8, !tbaa !37
  %208 = getelementptr inbounds i8, ptr %207, i64 1
  %209 = load ptr, ptr %3, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.png_struct_def, ptr %209, i32 0, i32 59
  %211 = load i8, ptr %210, align 1, !tbaa !21
  %212 = zext i8 %211 to i32
  call void @png_do_write_interlace(ptr noundef %5, ptr noundef %208, i32 noundef %212)
  %213 = getelementptr inbounds %struct.png_row_info_struct, ptr %5, i32 0, i32 0
  %214 = load i32, ptr %213, align 8, !tbaa !30
  %215 = icmp eq i32 %214, 0
  br i1 %215, label %216, label %218

216:                                              ; preds = %204
  %217 = load ptr, ptr %3, align 8, !tbaa !5
  call void @png_write_finish_row(ptr noundef %217)
  store i32 1, ptr %6, align 4
  br label %294

218:                                              ; preds = %204
  br label %219

219:                                              ; preds = %218, %198, %192, %177
  %220 = load ptr, ptr %3, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.png_struct_def, ptr %220, i32 0, i32 17
  %222 = load i32, ptr %221, align 4, !tbaa !24
  %223 = icmp ne i32 %222, 0
  br i1 %223, label %224, label %226

224:                                              ; preds = %219
  %225 = load ptr, ptr %3, align 8, !tbaa !5
  call void @png_do_write_transformations(ptr noundef %225, ptr noundef %5)
  br label %226

226:                                              ; preds = %224, %219
  %227 = getelementptr inbounds %struct.png_row_info_struct, ptr %5, i32 0, i32 5
  %228 = load i8, ptr %227, align 1, !tbaa !35
  %229 = zext i8 %228 to i32
  %230 = load ptr, ptr %3, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.png_struct_def, ptr %230, i32 0, i32 64
  %232 = load i8, ptr %231, align 2, !tbaa !38
  %233 = zext i8 %232 to i32
  %234 = icmp ne i32 %229, %233
  br i1 %234, label %244, label %235

235:                                              ; preds = %226
  %236 = getelementptr inbounds %struct.png_row_info_struct, ptr %5, i32 0, i32 5
  %237 = load i8, ptr %236, align 1, !tbaa !35
  %238 = zext i8 %237 to i32
  %239 = load ptr, ptr %3, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.png_struct_def, ptr %239, i32 0, i32 69
  %241 = load i8, ptr %240, align 1, !tbaa !39
  %242 = zext i8 %241 to i32
  %243 = icmp ne i32 %238, %242
  br i1 %243, label %244, label %246

244:                                              ; preds = %235, %226
  %245 = load ptr, ptr %3, align 8, !tbaa !5
  call void @png_error(ptr noundef %245, ptr noundef @.str.6) #6
  unreachable

246:                                              ; preds = %235
  %247 = load ptr, ptr %3, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.png_struct_def, ptr %247, i32 0, i32 122
  %249 = load i32, ptr %248, align 8, !tbaa !40
  %250 = and i32 %249, 4
  %251 = icmp ne i32 %250, 0
  br i1 %251, label %252, label %263

252:                                              ; preds = %246
  %253 = load ptr, ptr %3, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.png_struct_def, ptr %253, i32 0, i32 123
  %255 = load i8, ptr %254, align 4, !tbaa !41
  %256 = zext i8 %255 to i32
  %257 = icmp eq i32 %256, 64
  br i1 %257, label %258, label %263

258:                                              ; preds = %252
  %259 = load ptr, ptr %3, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.png_struct_def, ptr %259, i32 0, i32 46
  %261 = load ptr, ptr %260, align 8, !tbaa !37
  %262 = getelementptr inbounds i8, ptr %261, i64 1
  call void @png_do_write_intrapixel(ptr noundef %5, ptr noundef %262)
  br label %263

263:                                              ; preds = %258, %252, %246
  %264 = getelementptr inbounds %struct.png_row_info_struct, ptr %5, i32 0, i32 2
  %265 = load i8, ptr %264, align 8, !tbaa !27
  %266 = zext i8 %265 to i32
  %267 = icmp eq i32 %266, 3
  br i1 %267, label %268, label %275

268:                                              ; preds = %263
  %269 = load ptr, ptr %3, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.png_struct_def, ptr %269, i32 0, i32 54
  %271 = load i32, ptr %270, align 4, !tbaa !42
  %272 = icmp sge i32 %271, 0
  br i1 %272, label %273, label %275

273:                                              ; preds = %268
  %274 = load ptr, ptr %3, align 8, !tbaa !5
  call void @png_do_check_palette_indexes(ptr noundef %274, ptr noundef %5)
  br label %275

275:                                              ; preds = %273, %268, %263
  %276 = load ptr, ptr %3, align 8, !tbaa !5
  call void @png_write_find_filter(ptr noundef %276, ptr noundef %5)
  %277 = load ptr, ptr %3, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct.png_struct_def, ptr %277, i32 0, i32 92
  %279 = load ptr, ptr %278, align 8, !tbaa !43
  %280 = icmp ne ptr %279, null
  br i1 %280, label %281, label %293

281:                                              ; preds = %275
  %282 = load ptr, ptr %3, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.png_struct_def, ptr %282, i32 0, i32 92
  %284 = load ptr, ptr %283, align 8, !tbaa !43
  %285 = load ptr, ptr %3, align 8, !tbaa !5
  %286 = load ptr, ptr %3, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.png_struct_def, ptr %286, i32 0, i32 43
  %288 = load i32, ptr %287, align 4, !tbaa !9
  %289 = load ptr, ptr %3, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.png_struct_def, ptr %289, i32 0, i32 59
  %291 = load i8, ptr %290, align 1, !tbaa !21
  %292 = zext i8 %291 to i32
  call void %284(ptr noundef %285, i32 noundef %288, i32 noundef %292)
  br label %293

293:                                              ; preds = %281, %275
  store i32 0, ptr %6, align 4
  br label %294

294:                                              ; preds = %293, %216, %123, %114, %100, %91, %77, %68, %54, %9
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #5
  %295 = load i32, ptr %6, align 4
  switch i32 %295, label %297 [
    i32 0, label %296
    i32 1, label %296
  ]

296:                                              ; preds = %294, %294
  ret void

297:                                              ; preds = %294
  unreachable
}

declare void @png_write_start_row(ptr noundef) #3

declare void @png_write_finish_row(ptr noundef) #3

; 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) #4

declare void @png_do_write_interlace(ptr noundef, ptr noundef, i32 noundef) #3

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

; Function Attrs: nounwind uwtable
declare hidden void @png_do_write_intrapixel(ptr noundef, ptr noundef) #2

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind }
attributes #6 = { 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, !12, i64 532}
!10 = !{!"png_struct_def", !7, i64 0, !6, i64 200, !6, i64 208, !11, 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, !12, i64 300, !12, i64 304, !12, i64 308, !12, i64 312, !13, i64 320, !6, i64 432, !12, i64 440, !12, i64 444, !12, i64 448, !12, i64 452, !12, i64 456, !12, i64 460, !12, i64 464, !12, i64 468, !12, i64 472, !12, i64 476, !12, i64 480, !12, i64 484, !12, i64 488, !12, i64 492, !12, i64 496, !12, i64 500, !12, i64 504, !12, i64 508, !12, i64 512, !12, i64 516, !11, i64 520, !12, i64 528, !12, i64 532, !12, i64 536, !6, i64 544, !6, i64 552, !6, i64 560, !6, i64 568, !11, i64 576, !12, i64 584, !12, i64 588, !6, i64 592, !14, i64 600, !12, i64 604, !14, 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, !14, i64 626, !7, i64 628, !12, i64 632, !15, i64 636, !15, i64 646, !6, i64 656, !12, i64 664, !12, i64 668, !12, i64 672, !12, i64 676, !6, i64 680, !6, i64 688, !6, i64 696, !6, i64 704, !6, i64 712, !6, i64 720, !16, i64 728, !16, i64 733, !6, i64 744, !15, 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, !12, i64 840, !12, i64 844, !11, i64 848, !11, i64 856, !11, i64 864, !11, i64 872, !12, i64 880, !12, i64 884, !6, i64 888, !6, i64 896, !12, i64 904, !7, i64 908, !12, i64 940, !6, i64 944, !6, i64 952, !12, i64 960, !12, i64 964, !6, i64 968, !7, i64 976, !7, i64 977, !14, i64 978, !14, i64 980, !12, 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, !12, i64 1052, !12, i64 1056, !12, i64 1060, !11, i64 1064, !17, i64 1072, !11, i64 1104, !6, i64 1112, !11, i64 1120, !12, i64 1128, !12, i64 1132, !6, i64 1136, !7, i64 1144, !18, i64 1176}
!11 = !{!"long", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"z_stream_s", !6, i64 0, !12, i64 8, !11, i64 16, !6, i64 24, !12, i64 32, !11, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !12, i64 88, !11, i64 96, !11, i64 104}
!14 = !{!"short", !7, i64 0}
!15 = !{!"png_color_16_struct", !7, i64 0, !14, i64 2, !14, i64 4, !14, i64 6, !14, i64 8}
!16 = !{!"png_color_8_struct", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4}
!17 = !{!"png_unknown_chunk_t", !7, i64 0, !6, i64 8, !11, i64 16, !7, i64 24}
!18 = !{!"png_colorspace", !12, i64 0, !19, i64 4, !20, i64 36, !14, i64 72, !14, i64 74}
!19 = !{!"png_xy", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28}
!20 = !{!"png_XYZ", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32}
!21 = !{!10, !7, i64 613}
!22 = !{!10, !12, i64 300}
!23 = !{!10, !7, i64 612}
!24 = !{!10, !12, i64 308}
!25 = !{!10, !12, i64 504}
!26 = !{!10, !7, i64 615}
!27 = !{!28, !7, i64 16}
!28 = !{!"png_row_info_struct", !12, i64 0, !11, i64 8, !7, i64 16, !7, i64 17, !7, i64 18, !7, i64 19}
!29 = !{!10, !12, i64 516}
!30 = !{!28, !12, i64 0}
!31 = !{!10, !7, i64 620}
!32 = !{!28, !7, i64 18}
!33 = !{!10, !7, i64 617}
!34 = !{!28, !7, i64 17}
!35 = !{!28, !7, i64 19}
!36 = !{!28, !11, i64 8}
!37 = !{!10, !6, i64 552}
!38 = !{!10, !7, i64 618}
!39 = !{!10, !7, i64 623}
!40 = !{!10, !12, i64 984}
!41 = !{!10, !7, i64 988}
!42 = !{!10, !12, i64 604}
!43 = !{!10, !6, i64 776}


; 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_row_info_struct = type { i32, i64, i8, i8, i8, i8 }

@.str.5 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [37 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: noreturn
declare void @png_error(ptr noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local void @png_write_row(ptr noalias noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #2 {
  %3 = alloca %struct.png_row_info_struct, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #5
  %4 = icmp eq ptr %0, null
  br i1 %4, label %157, label %5

5:                                                ; preds = %2
  %6 = getelementptr inbounds i8, ptr %0, i64 532
  %7 = load i32, ptr %6, align 4, !tbaa !5
  %8 = icmp eq i32 %7, 0
  br i1 %8, label %9, label %20

9:                                                ; preds = %5
  %10 = getelementptr inbounds i8, ptr %0, i64 613
  %11 = load i8, ptr %10, align 1, !tbaa !20
  %12 = icmp eq i8 %11, 0
  br i1 %12, label %13, label %20

13:                                               ; preds = %9
  %14 = getelementptr inbounds i8, ptr %0, i64 300
  %15 = load i32, ptr %14, align 4, !tbaa !21
  %16 = and i32 %15, 1024
  %17 = icmp eq i32 %16, 0
  br i1 %17, label %18, label %19

18:                                               ; preds = %13
  tail call void @png_error(ptr noundef nonnull %0, ptr noundef nonnull @.str.5) #6
  unreachable

19:                                               ; preds = %13
  tail call void @png_write_start_row(ptr noundef nonnull %0) #5
  br label %20

20:                                               ; preds = %19, %9, %5
  %21 = getelementptr inbounds i8, ptr %0, i64 612
  %22 = load i8, ptr %21, align 4, !tbaa !22
  %.not = icmp eq i8 %22, 0
  br i1 %.not, label %71, label %23

23:                                               ; preds = %20
  %24 = getelementptr inbounds i8, ptr %0, i64 308
  %25 = load i32, ptr %24, align 4, !tbaa !23
  %26 = and i32 %25, 2
  %.not57 = icmp eq i32 %26, 0
  br i1 %.not57, label %71, label %27

27:                                               ; preds = %23
  %28 = getelementptr inbounds i8, ptr %0, i64 613
  %29 = load i8, ptr %28, align 1, !tbaa !20
  switch i8 %29, label %71 [
    i8 0, label %30
    i8 1, label %34
    i8 2, label %42
    i8 3, label %46
    i8 4, label %54
    i8 5, label %58
    i8 6, label %66
  ]

30:                                               ; preds = %27
  %31 = load i32, ptr %6, align 4, !tbaa !5
  %32 = and i32 %31, 7
  %.not63 = icmp eq i32 %32, 0
  br i1 %.not63, label %71, label %33

33:                                               ; preds = %30
  tail call void @png_write_finish_row(ptr noundef nonnull %0) #5
  br label %157

34:                                               ; preds = %27
  %35 = load i32, ptr %6, align 4, !tbaa !5
  %36 = and i32 %35, 7
  %.not62 = icmp eq i32 %36, 0
  br i1 %.not62, label %37, label %41

37:                                               ; preds = %34
  %38 = getelementptr inbounds i8, ptr %0, i64 504
  %39 = load i32, ptr %38, align 8, !tbaa !24
  %40 = icmp ult i32 %39, 5
  br i1 %40, label %41, label %71

41:                                               ; preds = %37, %34
  tail call void @png_write_finish_row(ptr noundef nonnull %0) #5
  br label %157

42:                                               ; preds = %27
  %43 = load i32, ptr %6, align 4, !tbaa !5
  %44 = and i32 %43, 7
  %.not61 = icmp eq i32 %44, 4
  br i1 %.not61, label %71, label %45

45:                                               ; preds = %42
  tail call void @png_write_finish_row(ptr noundef nonnull %0) #5
  br label %157

46:                                               ; preds = %27
  %47 = load i32, ptr %6, align 4, !tbaa !5
  %48 = and i32 %47, 3
  %.not60 = icmp eq i32 %48, 0
  br i1 %.not60, label %49, label %53

49:                                               ; preds = %46
  %50 = getelementptr inbounds i8, ptr %0, i64 504
  %51 = load i32, ptr %50, align 8, !tbaa !24
  %52 = icmp ult i32 %51, 3
  br i1 %52, label %53, label %71

53:                                               ; preds = %49, %46
  tail call void @png_write_finish_row(ptr noundef nonnull %0) #5
  br label %157

54:                                               ; preds = %27
  %55 = load i32, ptr %6, align 4, !tbaa !5
  %56 = and i32 %55, 3
  %.not59 = icmp eq i32 %56, 2
  br i1 %.not59, label %71, label %57

57:                                               ; preds = %54
  tail call void @png_write_finish_row(ptr noundef nonnull %0) #5
  br label %157

58:                                               ; preds = %27
  %59 = load i32, ptr %6, align 4, !tbaa !5
  %60 = and i32 %59, 1
  %.not58 = icmp eq i32 %60, 0
  br i1 %.not58, label %61, label %65

61:                                               ; preds = %58
  %62 = getelementptr inbounds i8, ptr %0, i64 504
  %63 = load i32, ptr %62, align 8, !tbaa !24
  %64 = icmp ult i32 %63, 2
  br i1 %64, label %65, label %71

65:                                               ; preds = %61, %58
  tail call void @png_write_finish_row(ptr noundef nonnull %0) #5
  br label %157

66:                                               ; preds = %27
  %67 = load i32, ptr %6, align 4, !tbaa !5
  %68 = and i32 %67, 1
  %69 = icmp eq i32 %68, 0
  br i1 %69, label %70, label %71

70:                                               ; preds = %66
  tail call void @png_write_finish_row(ptr noundef nonnull %0) #5
  br label %157

71:                                               ; preds = %30, %37, %42, %49, %54, %61, %66, %27, %23, %20
  %72 = getelementptr inbounds i8, ptr %0, i64 615
  %73 = load i8, ptr %72, align 1, !tbaa !25
  %74 = getelementptr inbounds i8, ptr %3, i64 16
  store i8 %73, ptr %74, align 8, !tbaa !26
  %75 = getelementptr inbounds i8, ptr %0, i64 516
  %76 = load i32, ptr %75, align 4, !tbaa !28
  store i32 %76, ptr %3, align 8, !tbaa !29
  %77 = getelementptr inbounds i8, ptr %0, i64 620
  %78 = load i8, ptr %77, align 4, !tbaa !30
  %79 = getelementptr inbounds i8, ptr %3, i64 18
  store i8 %78, ptr %79, align 2, !tbaa !31
  %80 = getelementptr inbounds i8, ptr %0, i64 617
  %81 = load i8, ptr %80, align 1, !tbaa !32
  %82 = getelementptr inbounds i8, ptr %3, i64 17
  store i8 %81, ptr %82, align 1, !tbaa !33
  %83 = mul i8 %81, %78
  %84 = getelementptr inbounds i8, ptr %3, i64 19
  store i8 %83, ptr %84, align 1, !tbaa !34
  %85 = icmp ugt i8 %83, 7
  %86 = zext i32 %76 to i64
  br i1 %85, label %87, label %91

87:                                               ; preds = %71
  %88 = lshr i8 %83, 3
  %89 = zext nneg i8 %88 to i64
  %90 = mul nuw nsw i64 %89, %86
  br label %96

91:                                               ; preds = %71
  %92 = zext nneg i8 %83 to i64
  %93 = mul nuw nsw i64 %92, %86
  %94 = add nuw nsw i64 %93, 7
  %95 = lshr i64 %94, 3
  br label %96

96:                                               ; preds = %91, %87
  %97 = phi i64 [ %90, %87 ], [ %95, %91 ]
  %98 = getelementptr inbounds i8, ptr %3, i64 8
  store i64 %97, ptr %98, align 8, !tbaa !35
  %99 = getelementptr inbounds i8, ptr %0, i64 552
  %100 = load ptr, ptr %99, align 8, !tbaa !36
  %101 = getelementptr inbounds i8, ptr %100, i64 1
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %101, ptr align 1 %1, i64 %97, i1 false)
  %102 = load i8, ptr %21, align 4, !tbaa !22
  %.not64 = icmp eq i8 %102, 0
  br i1 %.not64, label %118, label %103

103:                                              ; preds = %96
  %104 = getelementptr inbounds i8, ptr %0, i64 613
  %105 = load i8, ptr %104, align 1, !tbaa !20
  %106 = zext i8 %105 to i32
  %107 = icmp ult i8 %105, 6
  br i1 %107, label %108, label %118

108:                                              ; preds = %103
  %109 = getelementptr inbounds i8, ptr %0, i64 308
  %110 = load i32, ptr %109, align 4, !tbaa !23
  %111 = and i32 %110, 2
  %.not65 = icmp eq i32 %111, 0
  br i1 %.not65, label %118, label %112

112:                                              ; preds = %108
  %113 = load ptr, ptr %99, align 8, !tbaa !36
  %114 = getelementptr inbounds i8, ptr %113, i64 1
  call void @png_do_write_interlace(ptr noundef nonnull %3, ptr noundef nonnull %114, i32 noundef %106) #5
  %115 = load i32, ptr %3, align 8, !tbaa !29
  %116 = icmp eq i32 %115, 0
  br i1 %116, label %117, label %118

117:                                              ; preds = %112
  call void @png_write_finish_row(ptr noundef nonnull %0) #5
  br label %157

118:                                              ; preds = %112, %108, %103, %96
  %119 = getelementptr inbounds i8, ptr %0, i64 308
  %120 = load i32, ptr %119, align 4, !tbaa !23
  %.not66 = icmp eq i32 %120, 0
  br i1 %.not66, label %122, label %121

121:                                              ; preds = %118
  call void @png_do_write_transformations(ptr noundef nonnull %0, ptr noundef nonnull %3) #5
  br label %122

122:                                              ; preds = %121, %118
  %123 = load i8, ptr %84, align 1, !tbaa !34
  %124 = getelementptr inbounds i8, ptr %0, i64 618
  %125 = load i8, ptr %124, align 2, !tbaa !37
  %.not67 = icmp eq i8 %123, %125
  br i1 %.not67, label %126, label %129

126:                                              ; preds = %122
  %127 = getelementptr inbounds i8, ptr %0, i64 623
  %128 = load i8, ptr %127, align 1, !tbaa !38
  %.not68 = icmp eq i8 %123, %128
  br i1 %.not68, label %130, label %129

129:                                              ; preds = %126, %122
  call void @png_error(ptr noundef nonnull %0, ptr noundef nonnull @.str.6) #6
  unreachable

130:                                              ; preds = %126
  %131 = getelementptr inbounds i8, ptr %0, i64 984
  %132 = load i32, ptr %131, align 8, !tbaa !39
  %133 = and i32 %132, 4
  %.not69 = icmp eq i32 %133, 0
  br i1 %.not69, label %141, label %134

134:                                              ; preds = %130
  %135 = getelementptr inbounds i8, ptr %0, i64 988
  %136 = load i8, ptr %135, align 4, !tbaa !40
  %137 = icmp eq i8 %136, 64
  br i1 %137, label %138, label %141

138:                                              ; preds = %134
  %139 = load ptr, ptr %99, align 8, !tbaa !36
  %140 = getelementptr inbounds i8, ptr %139, i64 1
  call void @png_do_write_intrapixel(ptr noundef nonnull %3, ptr noundef nonnull %140)
  br label %141

141:                                              ; preds = %138, %134, %130
  %142 = load i8, ptr %74, align 8, !tbaa !26
  %143 = icmp eq i8 %142, 3
  br i1 %143, label %144, label %149

144:                                              ; preds = %141
  %145 = getelementptr inbounds i8, ptr %0, i64 604
  %146 = load i32, ptr %145, align 4, !tbaa !41
  %147 = icmp sgt i32 %146, -1
  br i1 %147, label %148, label %149

148:                                              ; preds = %144
  call void @png_do_check_palette_indexes(ptr noundef nonnull %0, ptr noundef nonnull %3) #5
  br label %149

149:                                              ; preds = %148, %144, %141
  call void @png_write_find_filter(ptr noundef nonnull %0, ptr noundef nonnull %3) #5
  %150 = getelementptr inbounds i8, ptr %0, i64 776
  %151 = load ptr, ptr %150, align 8, !tbaa !42
  %.not70 = icmp eq ptr %151, null
  br i1 %.not70, label %157, label %152

152:                                              ; preds = %149
  %153 = load i32, ptr %6, align 4, !tbaa !5
  %154 = getelementptr inbounds i8, ptr %0, i64 613
  %155 = load i8, ptr %154, align 1, !tbaa !20
  %156 = zext i8 %155 to i32
  call void %151(ptr noundef nonnull %0, i32 noundef %153, i32 noundef %156) #5
  br label %157

157:                                              ; preds = %149, %152, %2, %117, %70, %65, %57, %53, %45, %41, %33
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  ret void
}

declare void @png_write_start_row(ptr noundef) local_unnamed_addr #3

declare void @png_write_finish_row(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress 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) #4

declare void @png_do_write_interlace(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

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

; Function Attrs: nounwind uwtable
declare hidden void @png_do_write_intrapixel(ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind }
attributes #6 = { 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 532}
!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 613}
!21 = !{!6, !11, i64 300}
!22 = !{!6, !7, i64 612}
!23 = !{!6, !11, i64 308}
!24 = !{!6, !11, i64 504}
!25 = !{!6, !7, i64 615}
!26 = !{!27, !7, i64 16}
!27 = !{!"png_row_info_struct", !11, i64 0, !10, i64 8, !7, i64 16, !7, i64 17, !7, i64 18, !7, i64 19}
!28 = !{!6, !11, i64 516}
!29 = !{!27, !11, i64 0}
!30 = !{!6, !7, i64 620}
!31 = !{!27, !7, i64 18}
!32 = !{!6, !7, i64 617}
!33 = !{!27, !7, i64 17}
!34 = !{!27, !7, i64 19}
!35 = !{!27, !10, i64 8}
!36 = !{!6, !9, i64 552}
!37 = !{!6, !7, i64 618}
!38 = !{!6, !7, i64 623}
!39 = !{!6, !11, i64 984}
!40 = !{!6, !7, i64 988}
!41 = !{!6, !11, i64 604}
!42 = !{!6, !9, i64 776}


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