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

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

; 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_write_find_filter(ptr noalias noundef %0, ptr noundef %1) #1 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  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 4, ptr %5) #2
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.png_struct_def, ptr %23, i32 0, i32 60
  %25 = load i8, ptr %24, align 2, !tbaa !9
  %26 = zext i8 %25 to i32
  store i32 %26, ptr %5, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #2
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.png_row_info_struct, ptr %27, i32 0, i32 1
  %29 = load i64, ptr %28, align 8, !tbaa !22
  store i64 %29, ptr %10, align 8, !tbaa !24
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.png_row_info_struct, ptr %30, i32 0, i32 5
  %32 = load i8, ptr %31, align 1, !tbaa !25
  %33 = zext i8 %32 to i32
  %34 = add nsw i32 %33, 7
  %35 = ashr i32 %34, 3
  store i32 %35, ptr %8, align 4, !tbaa !21
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.png_struct_def, ptr %36, i32 0, i32 46
  %38 = load ptr, ptr %37, align 8, !tbaa !26
  store ptr %38, ptr %6, align 8, !tbaa !5
  store i64 -257, ptr %9, align 8, !tbaa !24
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.png_struct_def, ptr %39, i32 0, i32 46
  %41 = load ptr, ptr %40, align 8, !tbaa !26
  store ptr %41, ptr %7, align 8, !tbaa !5
  %42 = load i64, ptr %10, align 8, !tbaa !24
  %43 = icmp ule i64 144115188075855871, %42
  br i1 %43, label %44, label %49

44:                                               ; preds = %2
  %45 = load i32, ptr %5, align 4, !tbaa !21
  %46 = sub i32 0, %45
  %47 = load i32, ptr %5, align 4, !tbaa !21
  %48 = and i32 %47, %46
  store i32 %48, ptr %5, align 4, !tbaa !21
  br label %87

49:                                               ; preds = %2
  %50 = load i32, ptr %5, align 4, !tbaa !21
  %51 = and i32 %50, 8
  %52 = icmp ne i32 %51, 0
  br i1 %52, label %53, label %86

53:                                               ; preds = %49
  %54 = load i32, ptr %5, align 4, !tbaa !21
  %55 = icmp ne i32 %54, 8
  br i1 %55, label %56, label %86

56:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #2
  store i64 0, ptr %12, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #2
  store i64 0, ptr %13, align 8, !tbaa !24
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = getelementptr inbounds i8, ptr %57, i64 1
  store ptr %58, ptr %11, align 8, !tbaa !5
  br label %59

59:                                               ; preds = %79, %56
  %60 = load i64, ptr %13, align 8, !tbaa !24
  %61 = load i64, ptr %10, align 8, !tbaa !24
  %62 = icmp ult i64 %60, %61
  br i1 %62, label %63, label %84

63:                                               ; preds = %59
  %64 = load ptr, ptr %11, align 8, !tbaa !5
  %65 = load i8, ptr %64, align 1, !tbaa !27
  %66 = zext i8 %65 to i32
  store i32 %66, ptr %14, align 4, !tbaa !21
  %67 = load i32, ptr %14, align 4, !tbaa !21
  %68 = icmp ult i32 %67, 128
  br i1 %68, label %69, label %71

69:                                               ; preds = %63
  %70 = load i32, ptr %14, align 4, !tbaa !21
  br label %74

71:                                               ; preds = %63
  %72 = load i32, ptr %14, align 4, !tbaa !21
  %73 = sub i32 256, %72
  br label %74

74:                                               ; preds = %71, %69
  %75 = phi i32 [ %70, %69 ], [ %73, %71 ]
  %76 = zext i32 %75 to i64
  %77 = load i64, ptr %12, align 8, !tbaa !24
  %78 = add i64 %77, %76
  store i64 %78, ptr %12, align 8, !tbaa !24
  br label %79

79:                                               ; preds = %74
  %80 = load i64, ptr %13, align 8, !tbaa !24
  %81 = add i64 %80, 1
  store i64 %81, ptr %13, align 8, !tbaa !24
  %82 = load ptr, ptr %11, align 8, !tbaa !5
  %83 = getelementptr inbounds i8, ptr %82, i32 1
  store ptr %83, ptr %11, align 8, !tbaa !5
  br label %59, !llvm.loop !28

84:                                               ; preds = %59
  %85 = load i64, ptr %12, align 8, !tbaa !24
  store i64 %85, ptr %9, align 8, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #2
  br label %86

86:                                               ; preds = %84, %53, %49
  br label %87

87:                                               ; preds = %86, %44
  %88 = load i32, ptr %5, align 4, !tbaa !21
  %89 = icmp eq i32 %88, 16
  br i1 %89, label %90, label %97

90:                                               ; preds = %87
  %91 = load ptr, ptr %3, align 8, !tbaa !5
  %92 = load i32, ptr %8, align 4, !tbaa !21
  %93 = load i64, ptr %10, align 8, !tbaa !24
  call void @png_setup_sub_row_only(ptr noundef %91, i32 noundef %92, i64 noundef %93)
  %94 = load ptr, ptr %3, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.png_struct_def, ptr %94, i32 0, i32 47
  %96 = load ptr, ptr %95, align 8, !tbaa !30
  store ptr %96, ptr %7, align 8, !tbaa !5
  br label %132

97:                                               ; preds = %87
  %98 = load i32, ptr %5, align 4, !tbaa !21
  %99 = and i32 %98, 16
  %100 = icmp ne i32 %99, 0
  br i1 %100, label %101, label %131

101:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #2
  %102 = load i64, ptr %9, align 8, !tbaa !24
  store i64 %102, ptr %16, align 8, !tbaa !24
  %103 = load ptr, ptr %3, align 8, !tbaa !5
  %104 = load i32, ptr %8, align 4, !tbaa !21
  %105 = load i64, ptr %10, align 8, !tbaa !24
  %106 = load i64, ptr %16, align 8, !tbaa !24
  %107 = call i64 @png_setup_sub_row(ptr noundef %103, i32 noundef %104, i64 noundef %105, i64 noundef %106)
  store i64 %107, ptr %15, align 8, !tbaa !24
  %108 = load i64, ptr %15, align 8, !tbaa !24
  %109 = load i64, ptr %9, align 8, !tbaa !24
  %110 = icmp ult i64 %108, %109
  br i1 %110, label %111, label %130

111:                                              ; preds = %101
  %112 = load i64, ptr %15, align 8, !tbaa !24
  store i64 %112, ptr %9, align 8, !tbaa !24
  %113 = load ptr, ptr %3, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.png_struct_def, ptr %113, i32 0, i32 47
  %115 = load ptr, ptr %114, align 8, !tbaa !30
  store ptr %115, ptr %7, align 8, !tbaa !5
  %116 = load ptr, ptr %3, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.png_struct_def, ptr %116, i32 0, i32 48
  %118 = load ptr, ptr %117, align 8, !tbaa !31
  %119 = icmp ne ptr %118, null
  br i1 %119, label %120, label %129

120:                                              ; preds = %111
  %121 = load ptr, ptr %3, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.png_struct_def, ptr %121, i32 0, i32 48
  %123 = load ptr, ptr %122, align 8, !tbaa !31
  %124 = load ptr, ptr %3, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.png_struct_def, ptr %124, i32 0, i32 47
  store ptr %123, ptr %125, align 8, !tbaa !30
  %126 = load ptr, ptr %7, align 8, !tbaa !5
  %127 = load ptr, ptr %3, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.png_struct_def, ptr %127, i32 0, i32 48
  store ptr %126, ptr %128, align 8, !tbaa !31
  br label %129

129:                                              ; preds = %120, %111
  br label %130

130:                                              ; preds = %129, %101
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #2
  br label %131

131:                                              ; preds = %130, %97
  br label %132

132:                                              ; preds = %131, %90
  %133 = load i32, ptr %5, align 4, !tbaa !21
  %134 = icmp eq i32 %133, 32
  br i1 %134, label %135, label %141

135:                                              ; preds = %132
  %136 = load ptr, ptr %3, align 8, !tbaa !5
  %137 = load i64, ptr %10, align 8, !tbaa !24
  call void @png_setup_up_row_only(ptr noundef %136, i64 noundef %137)
  %138 = load ptr, ptr %3, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.png_struct_def, ptr %138, i32 0, i32 47
  %140 = load ptr, ptr %139, align 8, !tbaa !30
  store ptr %140, ptr %7, align 8, !tbaa !5
  br label %175

141:                                              ; preds = %132
  %142 = load i32, ptr %5, align 4, !tbaa !21
  %143 = and i32 %142, 32
  %144 = icmp ne i32 %143, 0
  br i1 %144, label %145, label %174

145:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #2
  %146 = load i64, ptr %9, align 8, !tbaa !24
  store i64 %146, ptr %18, align 8, !tbaa !24
  %147 = load ptr, ptr %3, align 8, !tbaa !5
  %148 = load i64, ptr %10, align 8, !tbaa !24
  %149 = load i64, ptr %18, align 8, !tbaa !24
  %150 = call i64 @png_setup_up_row(ptr noundef %147, i64 noundef %148, i64 noundef %149)
  store i64 %150, ptr %17, align 8, !tbaa !24
  %151 = load i64, ptr %17, align 8, !tbaa !24
  %152 = load i64, ptr %9, align 8, !tbaa !24
  %153 = icmp ult i64 %151, %152
  br i1 %153, label %154, label %173

154:                                              ; preds = %145
  %155 = load i64, ptr %17, align 8, !tbaa !24
  store i64 %155, ptr %9, align 8, !tbaa !24
  %156 = load ptr, ptr %3, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.png_struct_def, ptr %156, i32 0, i32 47
  %158 = load ptr, ptr %157, align 8, !tbaa !30
  store ptr %158, ptr %7, align 8, !tbaa !5
  %159 = load ptr, ptr %3, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.png_struct_def, ptr %159, i32 0, i32 48
  %161 = load ptr, ptr %160, align 8, !tbaa !31
  %162 = icmp ne ptr %161, null
  br i1 %162, label %163, label %172

163:                                              ; preds = %154
  %164 = load ptr, ptr %3, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.png_struct_def, ptr %164, i32 0, i32 48
  %166 = load ptr, ptr %165, align 8, !tbaa !31
  %167 = load ptr, ptr %3, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.png_struct_def, ptr %167, i32 0, i32 47
  store ptr %166, ptr %168, align 8, !tbaa !30
  %169 = load ptr, ptr %7, align 8, !tbaa !5
  %170 = load ptr, ptr %3, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.png_struct_def, ptr %170, i32 0, i32 48
  store ptr %169, ptr %171, align 8, !tbaa !31
  br label %172

172:                                              ; preds = %163, %154
  br label %173

173:                                              ; preds = %172, %145
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #2
  br label %174

174:                                              ; preds = %173, %141
  br label %175

175:                                              ; preds = %174, %135
  %176 = load i32, ptr %5, align 4, !tbaa !21
  %177 = icmp eq i32 %176, 64
  br i1 %177, label %178, label %185

178:                                              ; preds = %175
  %179 = load ptr, ptr %3, align 8, !tbaa !5
  %180 = load i32, ptr %8, align 4, !tbaa !21
  %181 = load i64, ptr %10, align 8, !tbaa !24
  call void @png_setup_avg_row_only(ptr noundef %179, i32 noundef %180, i64 noundef %181)
  %182 = load ptr, ptr %3, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.png_struct_def, ptr %182, i32 0, i32 47
  %184 = load ptr, ptr %183, align 8, !tbaa !30
  store ptr %184, ptr %7, align 8, !tbaa !5
  br label %220

185:                                              ; preds = %175
  %186 = load i32, ptr %5, align 4, !tbaa !21
  %187 = and i32 %186, 64
  %188 = icmp ne i32 %187, 0
  br i1 %188, label %189, label %219

189:                                              ; preds = %185
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #2
  %190 = load i64, ptr %9, align 8, !tbaa !24
  store i64 %190, ptr %20, align 8, !tbaa !24
  %191 = load ptr, ptr %3, align 8, !tbaa !5
  %192 = load i32, ptr %8, align 4, !tbaa !21
  %193 = load i64, ptr %10, align 8, !tbaa !24
  %194 = load i64, ptr %20, align 8, !tbaa !24
  %195 = call i64 @png_setup_avg_row(ptr noundef %191, i32 noundef %192, i64 noundef %193, i64 noundef %194)
  store i64 %195, ptr %19, align 8, !tbaa !24
  %196 = load i64, ptr %19, align 8, !tbaa !24
  %197 = load i64, ptr %9, align 8, !tbaa !24
  %198 = icmp ult i64 %196, %197
  br i1 %198, label %199, label %218

199:                                              ; preds = %189
  %200 = load i64, ptr %19, align 8, !tbaa !24
  store i64 %200, ptr %9, align 8, !tbaa !24
  %201 = load ptr, ptr %3, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.png_struct_def, ptr %201, i32 0, i32 47
  %203 = load ptr, ptr %202, align 8, !tbaa !30
  store ptr %203, ptr %7, align 8, !tbaa !5
  %204 = load ptr, ptr %3, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.png_struct_def, ptr %204, i32 0, i32 48
  %206 = load ptr, ptr %205, align 8, !tbaa !31
  %207 = icmp ne ptr %206, null
  br i1 %207, label %208, label %217

208:                                              ; preds = %199
  %209 = load ptr, ptr %3, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.png_struct_def, ptr %209, i32 0, i32 48
  %211 = load ptr, ptr %210, align 8, !tbaa !31
  %212 = load ptr, ptr %3, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.png_struct_def, ptr %212, i32 0, i32 47
  store ptr %211, ptr %213, align 8, !tbaa !30
  %214 = load ptr, ptr %7, align 8, !tbaa !5
  %215 = load ptr, ptr %3, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.png_struct_def, ptr %215, i32 0, i32 48
  store ptr %214, ptr %216, align 8, !tbaa !31
  br label %217

217:                                              ; preds = %208, %199
  br label %218

218:                                              ; preds = %217, %189
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #2
  br label %219

219:                                              ; preds = %218, %185
  br label %220

220:                                              ; preds = %219, %178
  %221 = load i32, ptr %5, align 4, !tbaa !21
  %222 = icmp eq i32 %221, 128
  br i1 %222, label %223, label %230

223:                                              ; preds = %220
  %224 = load ptr, ptr %3, align 8, !tbaa !5
  %225 = load i32, ptr %8, align 4, !tbaa !21
  %226 = load i64, ptr %10, align 8, !tbaa !24
  call void @png_setup_paeth_row_only(ptr noundef %224, i32 noundef %225, i64 noundef %226)
  %227 = load ptr, ptr %3, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.png_struct_def, ptr %227, i32 0, i32 47
  %229 = load ptr, ptr %228, align 8, !tbaa !30
  store ptr %229, ptr %7, align 8, !tbaa !5
  br label %264

230:                                              ; preds = %220
  %231 = load i32, ptr %5, align 4, !tbaa !21
  %232 = and i32 %231, 128
  %233 = icmp ne i32 %232, 0
  br i1 %233, label %234, label %263

234:                                              ; preds = %230
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #2
  %235 = load i64, ptr %9, align 8, !tbaa !24
  store i64 %235, ptr %22, align 8, !tbaa !24
  %236 = load ptr, ptr %3, align 8, !tbaa !5
  %237 = load i32, ptr %8, align 4, !tbaa !21
  %238 = load i64, ptr %10, align 8, !tbaa !24
  %239 = load i64, ptr %22, align 8, !tbaa !24
  %240 = call i64 @png_setup_paeth_row(ptr noundef %236, i32 noundef %237, i64 noundef %238, i64 noundef %239)
  store i64 %240, ptr %21, align 8, !tbaa !24
  %241 = load i64, ptr %21, align 8, !tbaa !24
  %242 = load i64, ptr %9, align 8, !tbaa !24
  %243 = icmp ult i64 %241, %242
  br i1 %243, label %244, label %262

244:                                              ; preds = %234
  %245 = load ptr, ptr %3, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.png_struct_def, ptr %245, i32 0, i32 47
  %247 = load ptr, ptr %246, align 8, !tbaa !30
  store ptr %247, ptr %7, align 8, !tbaa !5
  %248 = load ptr, ptr %3, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.png_struct_def, ptr %248, i32 0, i32 48
  %250 = load ptr, ptr %249, align 8, !tbaa !31
  %251 = icmp ne ptr %250, null
  br i1 %251, label %252, label %261

252:                                              ; preds = %244
  %253 = load ptr, ptr %3, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.png_struct_def, ptr %253, i32 0, i32 48
  %255 = load ptr, ptr %254, align 8, !tbaa !31
  %256 = load ptr, ptr %3, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.png_struct_def, ptr %256, i32 0, i32 47
  store ptr %255, ptr %257, align 8, !tbaa !30
  %258 = load ptr, ptr %7, align 8, !tbaa !5
  %259 = load ptr, ptr %3, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.png_struct_def, ptr %259, i32 0, i32 48
  store ptr %258, ptr %260, align 8, !tbaa !31
  br label %261

261:                                              ; preds = %252, %244
  br label %262

262:                                              ; preds = %261, %234
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #2
  br label %263

263:                                              ; preds = %262, %230
  br label %264

264:                                              ; preds = %263, %223
  %265 = load ptr, ptr %3, align 8, !tbaa !5
  %266 = load ptr, ptr %7, align 8, !tbaa !5
  %267 = load ptr, ptr %4, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct.png_row_info_struct, ptr %267, i32 0, i32 1
  %269 = load i64, ptr %268, align 8, !tbaa !22
  %270 = add i64 %269, 1
  call void @png_write_filtered_row(ptr noundef %265, ptr noundef %266, i64 noundef %270)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #2
  ret void
}

; Function Attrs: nounwind uwtable
declare hidden void @png_setup_sub_row_only(ptr noalias noundef, i32 noundef, i64 noundef) #1

; Function Attrs: nounwind uwtable
declare hidden i64 @png_setup_sub_row(ptr noalias noundef, i32 noundef, i64 noundef, i64 noundef) #1

; Function Attrs: nounwind uwtable
declare hidden void @png_setup_up_row_only(ptr noalias noundef, i64 noundef) #1

; Function Attrs: nounwind uwtable
declare hidden i64 @png_setup_up_row(ptr noalias noundef, i64 noundef, i64 noundef) #1

; Function Attrs: nounwind uwtable
declare hidden void @png_setup_avg_row_only(ptr noalias noundef, i32 noundef, i64 noundef) #1

; Function Attrs: nounwind uwtable
declare hidden i64 @png_setup_avg_row(ptr noalias noundef, i32 noundef, i64 noundef, i64 noundef) #1

; Function Attrs: nounwind uwtable
declare hidden void @png_setup_paeth_row_only(ptr noalias noundef, i32 noundef, i64 noundef) #1

; Function Attrs: nounwind uwtable
declare hidden i64 @png_setup_paeth_row(ptr noalias noundef, i32 noundef, i64 noundef, i64 noundef) #1

; Function Attrs: nounwind uwtable
declare hidden void @png_write_filtered_row(ptr noalias noundef, ptr noundef, i64 noundef) #1

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 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !7, i64 614}
!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 = !{!12, !12, i64 0}
!22 = !{!23, !11, i64 8}
!23 = !{!"png_row_info_struct", !12, i64 0, !11, i64 8, !7, i64 16, !7, i64 17, !7, i64 18, !7, i64 19}
!24 = !{!11, !11, i64 0}
!25 = !{!23, !7, i64 19}
!26 = !{!10, !6, i64 552}
!27 = !{!7, !7, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!10, !6, i64 560}
!31 = !{!10, !6, i64 568}


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

; Function Attrs: nounwind uwtable
define dso_local void @png_write_find_filter(ptr noalias noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = getelementptr inbounds i8, ptr %0, i64 614
  %4 = load i8, ptr %3, align 2, !tbaa !5
  %5 = zext i8 %4 to i32
  %6 = getelementptr inbounds i8, ptr %1, i64 8
  %7 = load i64, ptr %6, align 8, !tbaa !20
  %8 = getelementptr inbounds i8, ptr %1, i64 19
  %9 = load i8, ptr %8, align 1, !tbaa !22
  %10 = zext i8 %9 to i32
  %11 = add nuw nsw i32 %10, 7
  %12 = lshr i32 %11, 3
  %13 = getelementptr inbounds i8, ptr %0, i64 552
  %14 = load ptr, ptr %13, align 8, !tbaa !23
  %15 = icmp ugt i64 %7, 144115188075855870
  br i1 %15, label %16, label %19

16:                                               ; preds = %2
  %17 = sub nsw i32 0, %5
  %18 = and i32 %5, %17
  br label %.loopexit

19:                                               ; preds = %2
  %20 = and i32 %5, 8
  %21 = icmp ne i32 %20, 0
  %22 = icmp ne i8 %4, 8
  %or.cond = select i1 %21, i1 %22, i1 false
  br i1 %or.cond, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %19
  %.not162 = icmp eq i64 %7, 0
  br i1 %.not162, label %.loopexit, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.preheader
  %min.iters.check = icmp ult i64 %7, 4
  br i1 %min.iters.check, label %.lr.ph.preheader167, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %7, 144115188075855868
  %ind.end = getelementptr i8, ptr %14, i64 %n.vec
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %35, %vector.body ]
  %vec.phi164 = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %36, %vector.body ]
  %next.gep = getelementptr i8, ptr %14, i64 %index
  %23 = getelementptr inbounds i8, ptr %next.gep, i64 1
  %24 = getelementptr inbounds i8, ptr %next.gep, i64 3
  %wide.load = load <2 x i8>, ptr %23, align 1, !tbaa !24
  %wide.load166 = load <2 x i8>, ptr %24, align 1, !tbaa !24
  %25 = zext <2 x i8> %wide.load to <2 x i32>
  %26 = zext <2 x i8> %wide.load166 to <2 x i32>
  %27 = sub nuw nsw <2 x i32> <i32 256, i32 256>, %25
  %28 = sub nuw nsw <2 x i32> <i32 256, i32 256>, %26
  %29 = icmp slt <2 x i8> %wide.load, zeroinitializer
  %30 = icmp slt <2 x i8> %wide.load166, zeroinitializer
  %31 = select <2 x i1> %29, <2 x i32> %27, <2 x i32> %25
  %32 = select <2 x i1> %30, <2 x i32> %28, <2 x i32> %26
  %33 = zext nneg <2 x i32> %31 to <2 x i64>
  %34 = zext nneg <2 x i32> %32 to <2 x i64>
  %35 = add <2 x i64> %vec.phi, %33
  %36 = add <2 x i64> %vec.phi164, %34
  %index.next = add nuw i64 %index, 4
  %37 = icmp eq i64 %index.next, %n.vec
  br i1 %37, label %middle.block, label %vector.body, !llvm.loop !25

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <2 x i64> %36, %35
  %38 = tail call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx)
  %cmp.n = icmp eq i64 %7, %n.vec
  br i1 %cmp.n, label %.loopexit, label %.lr.ph.preheader167

.lr.ph.preheader167:                              ; preds = %middle.block, %.lr.ph.preheader
  %.pn161.ph = phi ptr [ %14, %.lr.ph.preheader ], [ %ind.end, %middle.block ]
  %.0110160.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %38, %middle.block ]
  %.0111159.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader167, %.lr.ph
  %.pn161 = phi ptr [ %.0109, %.lr.ph ], [ %.pn161.ph, %.lr.ph.preheader167 ]
  %.0110160 = phi i64 [ %45, %.lr.ph ], [ %.0110160.ph, %.lr.ph.preheader167 ]
  %.0111159 = phi i64 [ %46, %.lr.ph ], [ %.0111159.ph, %.lr.ph.preheader167 ]
  %.0109 = getelementptr inbounds i8, ptr %.pn161, i64 1
  %39 = load i8, ptr %.0109, align 1, !tbaa !24
  %40 = zext i8 %39 to i32
  %41 = sub nuw nsw i32 256, %40
  %42 = icmp slt i8 %39, 0
  %43 = select i1 %42, i32 %41, i32 %40
  %44 = zext nneg i32 %43 to i64
  %45 = add i64 %.0110160, %44
  %46 = add nuw nsw i64 %.0111159, 1
  %exitcond.not = icmp eq i64 %46, %7
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph, !llvm.loop !29

.loopexit:                                        ; preds = %.lr.ph, %middle.block, %.preheader, %19, %16
  %.0102 = phi i64 [ -257, %16 ], [ -257, %19 ], [ 0, %.preheader ], [ %38, %middle.block ], [ %45, %.lr.ph ]
  %.0 = phi i32 [ %18, %16 ], [ %5, %19 ], [ %5, %.preheader ], [ %5, %middle.block ], [ %5, %.lr.ph ]
  %47 = icmp eq i32 %.0, 16
  br i1 %47, label %.thread132, label %50

.thread132:                                       ; preds = %.loopexit
  tail call void @png_setup_sub_row_only(ptr noundef %0, i32 noundef %12, i64 noundef %7)
  %48 = getelementptr inbounds i8, ptr %0, i64 560
  %49 = load ptr, ptr %48, align 8, !tbaa !30
  br label %.thread153.thread

50:                                               ; preds = %.loopexit
  %51 = and i32 %.0, 16
  %.not = icmp eq i32 %51, 0
  br i1 %.not, label %61, label %52

52:                                               ; preds = %50
  %53 = tail call i64 @png_setup_sub_row(ptr noundef %0, i32 noundef %12, i64 noundef %7, i64 noundef %.0102)
  %54 = icmp ult i64 %53, %.0102
  br i1 %54, label %55, label %61

55:                                               ; preds = %52
  %56 = getelementptr inbounds i8, ptr %0, i64 560
  %57 = load ptr, ptr %56, align 8, !tbaa !30
  %58 = getelementptr inbounds i8, ptr %0, i64 568
  %59 = load ptr, ptr %58, align 8, !tbaa !31
  %.not121 = icmp eq ptr %59, null
  br i1 %.not121, label %61, label %60

60:                                               ; preds = %55
  store ptr %59, ptr %56, align 8, !tbaa !30
  store ptr %57, ptr %58, align 8, !tbaa !31
  br label %61

61:                                               ; preds = %52, %60, %55, %50
  %.2104 = phi i64 [ %.0102, %50 ], [ %53, %60 ], [ %53, %55 ], [ %.0102, %52 ]
  %.1 = phi ptr [ %14, %50 ], [ %57, %60 ], [ %57, %55 ], [ %14, %52 ]
  %62 = icmp eq i32 %.0, 32
  br i1 %62, label %63, label %66

63:                                               ; preds = %61
  tail call void @png_setup_up_row_only(ptr noundef %0, i64 noundef %7)
  %64 = getelementptr inbounds i8, ptr %0, i64 560
  %65 = load ptr, ptr %64, align 8, !tbaa !30
  br label %.thread153.thread

66:                                               ; preds = %61
  %67 = and i32 %.0, 32
  %.not122 = icmp eq i32 %67, 0
  br i1 %.not122, label %77, label %68

68:                                               ; preds = %66
  %69 = tail call i64 @png_setup_up_row(ptr noundef %0, i64 noundef %7, i64 noundef %.2104)
  %70 = icmp ult i64 %69, %.2104
  br i1 %70, label %71, label %77

71:                                               ; preds = %68
  %72 = getelementptr inbounds i8, ptr %0, i64 560
  %73 = load ptr, ptr %72, align 8, !tbaa !30
  %74 = getelementptr inbounds i8, ptr %0, i64 568
  %75 = load ptr, ptr %74, align 8, !tbaa !31
  %.not123 = icmp eq ptr %75, null
  br i1 %.not123, label %77, label %76

76:                                               ; preds = %71
  store ptr %75, ptr %72, align 8, !tbaa !30
  store ptr %73, ptr %74, align 8, !tbaa !31
  br label %77

77:                                               ; preds = %68, %76, %71, %66
  %.4106 = phi i64 [ %.2104, %66 ], [ %69, %76 ], [ %69, %71 ], [ %.2104, %68 ]
  %.3 = phi ptr [ %.1, %66 ], [ %73, %76 ], [ %73, %71 ], [ %.1, %68 ]
  %78 = icmp eq i32 %.0, 64
  br i1 %78, label %.thread146, label %.thread136

.thread146:                                       ; preds = %77
  tail call void @png_setup_avg_row_only(ptr noundef %0, i32 noundef %12, i64 noundef %7)
  %79 = getelementptr inbounds i8, ptr %0, i64 560
  %80 = load ptr, ptr %79, align 8, !tbaa !30
  br label %.thread153.thread

.thread136:                                       ; preds = %77
  %81 = and i32 %.0, 64
  %.not124 = icmp eq i32 %81, 0
  br i1 %.not124, label %91, label %82

82:                                               ; preds = %.thread136
  %83 = tail call i64 @png_setup_avg_row(ptr noundef %0, i32 noundef %12, i64 noundef %7, i64 noundef %.4106)
  %84 = icmp ult i64 %83, %.4106
  br i1 %84, label %85, label %91

85:                                               ; preds = %82
  %86 = getelementptr inbounds i8, ptr %0, i64 560
  %87 = load ptr, ptr %86, align 8, !tbaa !30
  %88 = getelementptr inbounds i8, ptr %0, i64 568
  %89 = load ptr, ptr %88, align 8, !tbaa !31
  %.not125 = icmp eq ptr %89, null
  br i1 %.not125, label %91, label %90

90:                                               ; preds = %85
  store ptr %89, ptr %86, align 8, !tbaa !30
  store ptr %87, ptr %88, align 8, !tbaa !31
  br label %91

91:                                               ; preds = %82, %90, %85, %.thread136
  %.6108 = phi i64 [ %.4106, %.thread136 ], [ %83, %90 ], [ %83, %85 ], [ %.4106, %82 ]
  %.5 = phi ptr [ %.3, %.thread136 ], [ %87, %90 ], [ %87, %85 ], [ %.3, %82 ]
  %92 = icmp eq i32 %.0, 128
  br i1 %92, label %93, label %.thread153

93:                                               ; preds = %91
  tail call void @png_setup_paeth_row_only(ptr noundef %0, i32 noundef %12, i64 noundef %7)
  %94 = getelementptr inbounds i8, ptr %0, i64 560
  %95 = load ptr, ptr %94, align 8, !tbaa !30
  br label %.thread153.thread

.thread153:                                       ; preds = %91
  %96 = and i32 %.0, 128
  %.not126 = icmp eq i32 %96, 0
  br i1 %.not126, label %.thread153.thread, label %97

97:                                               ; preds = %.thread153
  %98 = tail call i64 @png_setup_paeth_row(ptr noundef %0, i32 noundef %12, i64 noundef %7, i64 noundef %.6108)
  %99 = icmp ult i64 %98, %.6108
  br i1 %99, label %100, label %.thread153.thread

100:                                              ; preds = %97
  %101 = getelementptr inbounds i8, ptr %0, i64 560
  %102 = load ptr, ptr %101, align 8, !tbaa !30
  %103 = getelementptr inbounds i8, ptr %0, i64 568
  %104 = load ptr, ptr %103, align 8, !tbaa !31
  %.not127 = icmp eq ptr %104, null
  br i1 %.not127, label %.thread153.thread, label %105

105:                                              ; preds = %100
  store ptr %104, ptr %101, align 8, !tbaa !30
  store ptr %102, ptr %103, align 8, !tbaa !31
  br label %.thread153.thread

.thread153.thread:                                ; preds = %.thread132, %63, %.thread146, %97, %105, %100, %.thread153, %93
  %.7 = phi ptr [ %95, %93 ], [ %.5, %.thread153 ], [ %102, %105 ], [ %102, %100 ], [ %.5, %97 ], [ %80, %.thread146 ], [ %49, %.thread132 ], [ %65, %63 ]
  %106 = load i64, ptr %6, align 8, !tbaa !20
  %107 = add i64 %106, 1
  tail call void @png_write_filtered_row(ptr noundef %0, ptr noundef %.7, i64 noundef %107)
  ret void
}

; Function Attrs: nounwind uwtable
declare hidden void @png_setup_sub_row_only(ptr noalias noundef, i32 noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i64 @png_setup_sub_row(ptr noalias noundef, i32 noundef, i64 noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @png_setup_up_row_only(ptr noalias noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i64 @png_setup_up_row(ptr noalias noundef, i64 noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @png_setup_avg_row_only(ptr noalias noundef, i32 noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i64 @png_setup_avg_row(ptr noalias noundef, i32 noundef, i64 noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @png_setup_paeth_row_only(ptr noalias noundef, i32 noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i64 @png_setup_paeth_row(ptr noalias noundef, i32 noundef, i64 noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @png_write_filtered_row(ptr noalias noundef, ptr noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.vector.reduce.add.v2i64(<2 x i64>) #1

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!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 614}
!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 = !{!21, !10, i64 8}
!21 = !{!"png_row_info_struct", !11, i64 0, !10, i64 8, !7, i64 16, !7, i64 17, !7, i64 18, !7, i64 19}
!22 = !{!21, !7, i64 19}
!23 = !{!6, !9, i64 552}
!24 = !{!7, !7, i64 0}
!25 = distinct !{!25, !26, !27, !28}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!"llvm.loop.isvectorized", i32 1}
!28 = !{!"llvm.loop.unroll.runtime.disable"}
!29 = distinct !{!29, !26, !28, !27}
!30 = !{!6, !9, i64 560}
!31 = !{!6, !9, i64 568}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass