; LLVM IR from rdguez-mariano/fast_imas_IPOL :: io_png/libs/png (pngpread)

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

%struct.png_struct_def = type { [1 x %struct.__jmp_buf_tag], ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i8, i64, i64, i64, %struct.z_stream_s, ptr, i64, i32, i32, i32, i32, i32, i64, i64, i64, i64, i64, i64, i64, i64, ptr, ptr, ptr, ptr, ptr, ptr, %struct.png_row_info_struct, i64, i64, ptr, i16, i16, [5 x i8], i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i16, i8, float, %struct.png_color_16_struct, %struct.png_color_16_struct, ptr, i64, i64, i32, float, float, ptr, ptr, ptr, ptr, ptr, ptr, %struct.png_color_8_struct, %struct.png_color_8_struct, ptr, %struct.png_color_16_struct, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i64, i64, i64, i64, i64, i64, i32, i32, i64, i64, ptr, ptr, ptr, ptr, ptr, i8, i8, ptr, ptr, ptr, ptr, ptr, ptr, i64, ptr, ptr, i32, ptr, i8, i16, i16, i16, i64, i64, i8, i8, i64, i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i64, i64, %struct.png_unknown_chunk_t, i64, i64, ptr }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.z_stream_s = type { ptr, i32, i64, ptr, i32, i64, ptr, ptr, ptr, ptr, ptr, i32, i64, i64 }
%struct.png_row_info_struct = type { i64, i64, i8, i8, i8, i8 }
%struct.png_color_8_struct = type { i8, i8, i8, i8, i8 }
%struct.png_color_16_struct = type { i8, i16, i16, i16, i16 }
%struct.png_unknown_chunk_t = type { [5 x i8], ptr, i64, i8 }

; 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_push_process_row(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %9 = load ptr, ptr %2, align 8, !tbaa !5
  %10 = getelementptr inbounds %struct.png_struct_def, ptr %9, i32 0, i32 49
  %11 = load i8, ptr %10, align 2, !tbaa !9
  %12 = load ptr, ptr %2, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.png_struct_def, ptr %12, i32 0, i32 37
  %14 = getelementptr inbounds %struct.png_row_info_struct, ptr %13, i32 0, i32 2
  store i8 %11, ptr %14, align 8, !tbaa !20
  %15 = load ptr, ptr %2, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.png_struct_def, ptr %15, i32 0, i32 29
  %17 = load i64, ptr %16, align 8, !tbaa !21
  %18 = load ptr, ptr %2, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.png_struct_def, ptr %18, i32 0, i32 37
  %20 = getelementptr inbounds %struct.png_row_info_struct, ptr %19, i32 0, i32 0
  store i64 %17, ptr %20, align 8, !tbaa !22
  %21 = load ptr, ptr %2, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.png_struct_def, ptr %21, i32 0, i32 53
  %23 = load i8, ptr %22, align 2, !tbaa !23
  %24 = load ptr, ptr %2, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.png_struct_def, ptr %24, i32 0, i32 37
  %26 = getelementptr inbounds %struct.png_row_info_struct, ptr %25, i32 0, i32 4
  store i8 %23, ptr %26, align 2, !tbaa !24
  %27 = load ptr, ptr %2, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.png_struct_def, ptr %27, i32 0, i32 50
  %29 = load i8, ptr %28, align 1, !tbaa !25
  %30 = load ptr, ptr %2, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.png_struct_def, ptr %30, i32 0, i32 37
  %32 = getelementptr inbounds %struct.png_row_info_struct, ptr %31, i32 0, i32 3
  store i8 %29, ptr %32, align 1, !tbaa !26
  %33 = load ptr, ptr %2, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.png_struct_def, ptr %33, i32 0, i32 52
  %35 = load i8, ptr %34, align 1, !tbaa !27
  %36 = load ptr, ptr %2, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.png_struct_def, ptr %36, i32 0, i32 37
  %38 = getelementptr inbounds %struct.png_row_info_struct, ptr %37, i32 0, i32 5
  store i8 %35, ptr %38, align 1, !tbaa !28
  %39 = load ptr, ptr %2, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.png_struct_def, ptr %39, i32 0, i32 37
  %41 = getelementptr inbounds %struct.png_row_info_struct, ptr %40, i32 0, i32 5
  %42 = load i8, ptr %41, align 1, !tbaa !28
  %43 = zext i8 %42 to i32
  %44 = icmp sge i32 %43, 8
  br i1 %44, label %45, label %57

45:                                               ; preds = %1
  %46 = load ptr, ptr %2, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.png_struct_def, ptr %46, i32 0, i32 37
  %48 = getelementptr inbounds %struct.png_row_info_struct, ptr %47, i32 0, i32 0
  %49 = load i64, ptr %48, align 8, !tbaa !22
  %50 = load ptr, ptr %2, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.png_struct_def, ptr %50, i32 0, i32 37
  %52 = getelementptr inbounds %struct.png_row_info_struct, ptr %51, i32 0, i32 5
  %53 = load i8, ptr %52, align 1, !tbaa !28
  %54 = zext i8 %53 to i64
  %55 = lshr i64 %54, 3
  %56 = mul i64 %49, %55
  br label %70

57:                                               ; preds = %1
  %58 = load ptr, ptr %2, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.png_struct_def, ptr %58, i32 0, i32 37
  %60 = getelementptr inbounds %struct.png_row_info_struct, ptr %59, i32 0, i32 0
  %61 = load i64, ptr %60, align 8, !tbaa !22
  %62 = load ptr, ptr %2, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.png_struct_def, ptr %62, i32 0, i32 37
  %64 = getelementptr inbounds %struct.png_row_info_struct, ptr %63, i32 0, i32 5
  %65 = load i8, ptr %64, align 1, !tbaa !28
  %66 = zext i8 %65 to i64
  %67 = mul i64 %61, %66
  %68 = add i64 %67, 7
  %69 = lshr i64 %68, 3
  br label %70

70:                                               ; preds = %57, %45
  %71 = phi i64 [ %56, %45 ], [ %69, %57 ]
  %72 = load ptr, ptr %2, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.png_struct_def, ptr %72, i32 0, i32 37
  %74 = getelementptr inbounds %struct.png_row_info_struct, ptr %73, i32 0, i32 1
  store i64 %71, ptr %74, align 8, !tbaa !29
  %75 = load ptr, ptr %2, align 8, !tbaa !5
  %76 = load ptr, ptr %2, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.png_struct_def, ptr %76, i32 0, i32 37
  %78 = load ptr, ptr %2, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.png_struct_def, ptr %78, i32 0, i32 32
  %80 = load ptr, ptr %79, align 8, !tbaa !30
  %81 = getelementptr inbounds i8, ptr %80, i64 1
  %82 = load ptr, ptr %2, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.png_struct_def, ptr %82, i32 0, i32 31
  %84 = load ptr, ptr %83, align 8, !tbaa !31
  %85 = getelementptr inbounds i8, ptr %84, i64 1
  %86 = load ptr, ptr %2, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.png_struct_def, ptr %86, i32 0, i32 32
  %88 = load ptr, ptr %87, align 8, !tbaa !30
  %89 = getelementptr inbounds i8, ptr %88, i64 0
  %90 = load i8, ptr %89, align 1, !tbaa !32
  %91 = zext i8 %90 to i32
  call void @png_read_filter_row(ptr noundef %75, ptr noundef %77, ptr noundef %81, ptr noundef %85, i32 noundef %91)
  %92 = load ptr, ptr %2, align 8, !tbaa !5
  %93 = load ptr, ptr %2, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.png_struct_def, ptr %93, i32 0, i32 31
  %95 = load ptr, ptr %94, align 8, !tbaa !31
  %96 = load ptr, ptr %2, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.png_struct_def, ptr %96, i32 0, i32 32
  %98 = load ptr, ptr %97, align 8, !tbaa !30
  %99 = load ptr, ptr %2, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.png_struct_def, ptr %99, i32 0, i32 27
  %101 = load i64, ptr %100, align 8, !tbaa !33
  %102 = add i64 %101, 1
  %103 = call ptr @png_memcpy_check(ptr noundef %92, ptr noundef %95, ptr noundef %98, i64 noundef %102)
  %104 = load ptr, ptr %2, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.png_struct_def, ptr %104, i32 0, i32 14
  %106 = load i64, ptr %105, align 8, !tbaa !34
  %107 = icmp ne i64 %106, 0
  br i1 %107, label %114, label %108

108:                                              ; preds = %70
  %109 = load ptr, ptr %2, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.png_struct_def, ptr %109, i32 0, i32 13
  %111 = load i64, ptr %110, align 8, !tbaa !35
  %112 = and i64 %111, 4194304
  %113 = icmp ne i64 %112, 0
  br i1 %113, label %114, label %116

114:                                              ; preds = %108, %70
  %115 = load ptr, ptr %2, align 8, !tbaa !5
  call void @png_do_read_transformations(ptr noundef %115)
  br label %116

116:                                              ; preds = %114, %108
  %117 = load ptr, ptr %2, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.png_struct_def, ptr %117, i32 0, i32 46
  %119 = load i8, ptr %118, align 1, !tbaa !36
  %120 = zext i8 %119 to i32
  %121 = icmp ne i32 %120, 0
  br i1 %121, label %122, label %494

122:                                              ; preds = %116
  %123 = load ptr, ptr %2, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.png_struct_def, ptr %123, i32 0, i32 14
  %125 = load i64, ptr %124, align 8, !tbaa !34
  %126 = and i64 %125, 2
  %127 = icmp ne i64 %126, 0
  br i1 %127, label %128, label %494

128:                                              ; preds = %122
  %129 = load ptr, ptr %2, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.png_struct_def, ptr %129, i32 0, i32 47
  %131 = load i8, ptr %130, align 4, !tbaa !37
  %132 = zext i8 %131 to i32
  %133 = icmp slt i32 %132, 6
  br i1 %133, label %134, label %136

134:                                              ; preds = %128
  %135 = load ptr, ptr %2, align 8, !tbaa !5
  call void @png_do_read_interlace(ptr noundef %135)
  br label %136

136:                                              ; preds = %134, %128
  %137 = load ptr, ptr %2, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.png_struct_def, ptr %137, i32 0, i32 47
  %139 = load i8, ptr %138, align 4, !tbaa !37
  %140 = zext i8 %139 to i32
  switch i32 %140, label %493 [
    i32 0, label %141
    i32 1, label %233
    i32 2, label %281
    i32 3, label %347
    i32 4, label %395
    i32 5, label %445
    i32 6, label %477
  ]

141:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  store i32 0, ptr %3, align 4, !tbaa !38
  br label %142

142:                                              ; preds = %160, %141
  %143 = load i32, ptr %3, align 4, !tbaa !38
  %144 = icmp slt i32 %143, 8
  br i1 %144, label %145, label %151

145:                                              ; preds = %142
  %146 = load ptr, ptr %2, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.png_struct_def, ptr %146, i32 0, i32 47
  %148 = load i8, ptr %147, align 4, !tbaa !37
  %149 = zext i8 %148 to i32
  %150 = icmp eq i32 %149, 0
  br label %151

151:                                              ; preds = %145, %142
  %152 = phi i1 [ false, %142 ], [ %150, %145 ]
  br i1 %152, label %153, label %163

153:                                              ; preds = %151
  %154 = load ptr, ptr %2, align 8, !tbaa !5
  %155 = load ptr, ptr %2, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.png_struct_def, ptr %155, i32 0, i32 32
  %157 = load ptr, ptr %156, align 8, !tbaa !30
  %158 = getelementptr inbounds i8, ptr %157, i64 1
  call void @png_push_have_row(ptr noundef %154, ptr noundef %158)
  %159 = load ptr, ptr %2, align 8, !tbaa !5
  call void @png_read_push_finish_row(ptr noundef %159)
  br label %160

160:                                              ; preds = %153
  %161 = load i32, ptr %3, align 4, !tbaa !38
  %162 = add nsw i32 %161, 1
  store i32 %162, ptr %3, align 4, !tbaa !38
  br label %142, !llvm.loop !39

163:                                              ; preds = %151
  %164 = load ptr, ptr %2, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.png_struct_def, ptr %164, i32 0, i32 47
  %166 = load i8, ptr %165, align 4, !tbaa !37
  %167 = zext i8 %166 to i32
  %168 = icmp eq i32 %167, 2
  br i1 %168, label %169, label %188

169:                                              ; preds = %163
  store i32 0, ptr %3, align 4, !tbaa !38
  br label %170

170:                                              ; preds = %184, %169
  %171 = load i32, ptr %3, align 4, !tbaa !38
  %172 = icmp slt i32 %171, 4
  br i1 %172, label %173, label %179

173:                                              ; preds = %170
  %174 = load ptr, ptr %2, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.png_struct_def, ptr %174, i32 0, i32 47
  %176 = load i8, ptr %175, align 4, !tbaa !37
  %177 = zext i8 %176 to i32
  %178 = icmp eq i32 %177, 2
  br label %179

179:                                              ; preds = %173, %170
  %180 = phi i1 [ false, %170 ], [ %178, %173 ]
  br i1 %180, label %181, label %187

181:                                              ; preds = %179
  %182 = load ptr, ptr %2, align 8, !tbaa !5
  call void @png_push_have_row(ptr noundef %182, ptr noundef null)
  %183 = load ptr, ptr %2, align 8, !tbaa !5
  call void @png_read_push_finish_row(ptr noundef %183)
  br label %184

184:                                              ; preds = %181
  %185 = load i32, ptr %3, align 4, !tbaa !38
  %186 = add nsw i32 %185, 1
  store i32 %186, ptr %3, align 4, !tbaa !38
  br label %170, !llvm.loop !41

187:                                              ; preds = %179
  br label %188

188:                                              ; preds = %187, %163
  %189 = load ptr, ptr %2, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.png_struct_def, ptr %189, i32 0, i32 47
  %191 = load i8, ptr %190, align 4, !tbaa !37
  %192 = zext i8 %191 to i32
  %193 = icmp eq i32 %192, 4
  br i1 %193, label %194, label %218

194:                                              ; preds = %188
  %195 = load ptr, ptr %2, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.png_struct_def, ptr %195, i32 0, i32 24
  %197 = load i64, ptr %196, align 8, !tbaa !42
  %198 = icmp ule i64 %197, 4
  br i1 %198, label %199, label %218

199:                                              ; preds = %194
  store i32 0, ptr %3, align 4, !tbaa !38
  br label %200

200:                                              ; preds = %214, %199
  %201 = load i32, ptr %3, align 4, !tbaa !38
  %202 = icmp slt i32 %201, 2
  br i1 %202, label %203, label %209

203:                                              ; preds = %200
  %204 = load ptr, ptr %2, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.png_struct_def, ptr %204, i32 0, i32 47
  %206 = load i8, ptr %205, align 4, !tbaa !37
  %207 = zext i8 %206 to i32
  %208 = icmp eq i32 %207, 4
  br label %209

209:                                              ; preds = %203, %200
  %210 = phi i1 [ false, %200 ], [ %208, %203 ]
  br i1 %210, label %211, label %217

211:                                              ; preds = %209
  %212 = load ptr, ptr %2, align 8, !tbaa !5
  call void @png_push_have_row(ptr noundef %212, ptr noundef null)
  %213 = load ptr, ptr %2, align 8, !tbaa !5
  call void @png_read_push_finish_row(ptr noundef %213)
  br label %214

214:                                              ; preds = %211
  %215 = load i32, ptr %3, align 4, !tbaa !38
  %216 = add nsw i32 %215, 1
  store i32 %216, ptr %3, align 4, !tbaa !38
  br label %200, !llvm.loop !43

217:                                              ; preds = %209
  br label %218

218:                                              ; preds = %217, %194, %188
  %219 = load ptr, ptr %2, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.png_struct_def, ptr %219, i32 0, i32 47
  %221 = load i8, ptr %220, align 4, !tbaa !37
  %222 = zext i8 %221 to i32
  %223 = icmp eq i32 %222, 6
  br i1 %223, label %224, label %232

224:                                              ; preds = %218
  %225 = load ptr, ptr %2, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.png_struct_def, ptr %225, i32 0, i32 24
  %227 = load i64, ptr %226, align 8, !tbaa !42
  %228 = icmp ule i64 %227, 4
  br i1 %228, label %229, label %232

229:                                              ; preds = %224
  %230 = load ptr, ptr %2, align 8, !tbaa !5
  call void @png_push_have_row(ptr noundef %230, ptr noundef null)
  %231 = load ptr, ptr %2, align 8, !tbaa !5
  call void @png_read_push_finish_row(ptr noundef %231)
  br label %232

232:                                              ; preds = %229, %224, %218
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  br label %493

233:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  store i32 0, ptr %4, align 4, !tbaa !38
  br label %234

234:                                              ; preds = %252, %233
  %235 = load i32, ptr %4, align 4, !tbaa !38
  %236 = icmp slt i32 %235, 8
  br i1 %236, label %237, label %243

237:                                              ; preds = %234
  %238 = load ptr, ptr %2, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.png_struct_def, ptr %238, i32 0, i32 47
  %240 = load i8, ptr %239, align 4, !tbaa !37
  %241 = zext i8 %240 to i32
  %242 = icmp eq i32 %241, 1
  br label %243

243:                                              ; preds = %237, %234
  %244 = phi i1 [ false, %234 ], [ %242, %237 ]
  br i1 %244, label %245, label %255

245:                                              ; preds = %243
  %246 = load ptr, ptr %2, align 8, !tbaa !5
  %247 = load ptr, ptr %2, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.png_struct_def, ptr %247, i32 0, i32 32
  %249 = load ptr, ptr %248, align 8, !tbaa !30
  %250 = getelementptr inbounds i8, ptr %249, i64 1
  call void @png_push_have_row(ptr noundef %246, ptr noundef %250)
  %251 = load ptr, ptr %2, align 8, !tbaa !5
  call void @png_read_push_finish_row(ptr noundef %251)
  br label %252

252:                                              ; preds = %245
  %253 = load i32, ptr %4, align 4, !tbaa !38
  %254 = add nsw i32 %253, 1
  store i32 %254, ptr %4, align 4, !tbaa !38
  br label %234, !llvm.loop !44

255:                                              ; preds = %243
  %256 = load ptr, ptr %2, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.png_struct_def, ptr %256, i32 0, i32 47
  %258 = load i8, ptr %257, align 4, !tbaa !37
  %259 = zext i8 %258 to i32
  %260 = icmp eq i32 %259, 2
  br i1 %260, label %261, label %280

261:                                              ; preds = %255
  store i32 0, ptr %4, align 4, !tbaa !38
  br label %262

262:                                              ; preds = %276, %261
  %263 = load i32, ptr %4, align 4, !tbaa !38
  %264 = icmp slt i32 %263, 4
  br i1 %264, label %265, label %271

265:                                              ; preds = %262
  %266 = load ptr, ptr %2, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.png_struct_def, ptr %266, i32 0, i32 47
  %268 = load i8, ptr %267, align 4, !tbaa !37
  %269 = zext i8 %268 to i32
  %270 = icmp eq i32 %269, 2
  br label %271

271:                                              ; preds = %265, %262
  %272 = phi i1 [ false, %262 ], [ %270, %265 ]
  br i1 %272, label %273, label %279

273:                                              ; preds = %271
  %274 = load ptr, ptr %2, align 8, !tbaa !5
  call void @png_push_have_row(ptr noundef %274, ptr noundef null)
  %275 = load ptr, ptr %2, align 8, !tbaa !5
  call void @png_read_push_finish_row(ptr noundef %275)
  br label %276

276:                                              ; preds = %273
  %277 = load i32, ptr %4, align 4, !tbaa !38
  %278 = add nsw i32 %277, 1
  store i32 %278, ptr %4, align 4, !tbaa !38
  br label %262, !llvm.loop !45

279:                                              ; preds = %271
  br label %280

280:                                              ; preds = %279, %255
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  br label %493

281:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  store i32 0, ptr %5, align 4, !tbaa !38
  br label %282

282:                                              ; preds = %300, %281
  %283 = load i32, ptr %5, align 4, !tbaa !38
  %284 = icmp slt i32 %283, 4
  br i1 %284, label %285, label %291

285:                                              ; preds = %282
  %286 = load ptr, ptr %2, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.png_struct_def, ptr %286, i32 0, i32 47
  %288 = load i8, ptr %287, align 4, !tbaa !37
  %289 = zext i8 %288 to i32
  %290 = icmp eq i32 %289, 2
  br label %291

291:                                              ; preds = %285, %282
  %292 = phi i1 [ false, %282 ], [ %290, %285 ]
  br i1 %292, label %293, label %303

293:                                              ; preds = %291
  %294 = load ptr, ptr %2, align 8, !tbaa !5
  %295 = load ptr, ptr %2, align 8, !tbaa !5
  %296 = getelementptr inbounds %struct.png_struct_def, ptr %295, i32 0, i32 32
  %297 = load ptr, ptr %296, align 8, !tbaa !30
  %298 = getelementptr inbounds i8, ptr %297, i64 1
  call void @png_push_have_row(ptr noundef %294, ptr noundef %298)
  %299 = load ptr, ptr %2, align 8, !tbaa !5
  call void @png_read_push_finish_row(ptr noundef %299)
  br label %300

300:                                              ; preds = %293
  %301 = load i32, ptr %5, align 4, !tbaa !38
  %302 = add nsw i32 %301, 1
  store i32 %302, ptr %5, align 4, !tbaa !38
  br label %282, !llvm.loop !46

303:                                              ; preds = %291
  store i32 0, ptr %5, align 4, !tbaa !38
  br label %304

304:                                              ; preds = %318, %303
  %305 = load i32, ptr %5, align 4, !tbaa !38
  %306 = icmp slt i32 %305, 4
  br i1 %306, label %307, label %313

307:                                              ; preds = %304
  %308 = load ptr, ptr %2, align 8, !tbaa !5
  %309 = getelementptr inbounds %struct.png_struct_def, ptr %308, i32 0, i32 47
  %310 = load i8, ptr %309, align 4, !tbaa !37
  %311 = zext i8 %310 to i32
  %312 = icmp eq i32 %311, 2
  br label %313

313:                                              ; preds = %307, %304
  %314 = phi i1 [ false, %304 ], [ %312, %307 ]
  br i1 %314, label %315, label %321

315:                                              ; preds = %313
  %316 = load ptr, ptr %2, align 8, !tbaa !5
  call void @png_push_have_row(ptr noundef %316, ptr noundef null)
  %317 = load ptr, ptr %2, align 8, !tbaa !5
  call void @png_read_push_finish_row(ptr noundef %317)
  br label %318

318:                                              ; preds = %315
  %319 = load i32, ptr %5, align 4, !tbaa !38
  %320 = add nsw i32 %319, 1
  store i32 %320, ptr %5, align 4, !tbaa !38
  br label %304, !llvm.loop !47

321:                                              ; preds = %313
  %322 = load ptr, ptr %2, align 8, !tbaa !5
  %323 = getelementptr inbounds %struct.png_struct_def, ptr %322, i32 0, i32 47
  %324 = load i8, ptr %323, align 4, !tbaa !37
  %325 = zext i8 %324 to i32
  %326 = icmp eq i32 %325, 4
  br i1 %326, label %327, label %346

327:                                              ; preds = %321
  store i32 0, ptr %5, align 4, !tbaa !38
  br label %328

328:                                              ; preds = %342, %327
  %329 = load i32, ptr %5, align 4, !tbaa !38
  %330 = icmp slt i32 %329, 2
  br i1 %330, label %331, label %337

331:                                              ; preds = %328
  %332 = load ptr, ptr %2, align 8, !tbaa !5
  %333 = getelementptr inbounds %struct.png_struct_def, ptr %332, i32 0, i32 47
  %334 = load i8, ptr %333, align 4, !tbaa !37
  %335 = zext i8 %334 to i32
  %336 = icmp eq i32 %335, 4
  br label %337

337:                                              ; preds = %331, %328
  %338 = phi i1 [ false, %328 ], [ %336, %331 ]
  br i1 %338, label %339, label %345

339:                                              ; preds = %337
  %340 = load ptr, ptr %2, align 8, !tbaa !5
  call void @png_push_have_row(ptr noundef %340, ptr noundef null)
  %341 = load ptr, ptr %2, align 8, !tbaa !5
  call void @png_read_push_finish_row(ptr noundef %341)
  br label %342

342:                                              ; preds = %339
  %343 = load i32, ptr %5, align 4, !tbaa !38
  %344 = add nsw i32 %343, 1
  store i32 %344, ptr %5, align 4, !tbaa !38
  br label %328, !llvm.loop !48

345:                                              ; preds = %337
  br label %346

346:                                              ; preds = %345, %321
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  br label %493

347:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  store i32 0, ptr %6, align 4, !tbaa !38
  br label %348

348:                                              ; preds = %366, %347
  %349 = load i32, ptr %6, align 4, !tbaa !38
  %350 = icmp slt i32 %349, 4
  br i1 %350, label %351, label %357

351:                                              ; preds = %348
  %352 = load ptr, ptr %2, align 8, !tbaa !5
  %353 = getelementptr inbounds %struct.png_struct_def, ptr %352, i32 0, i32 47
  %354 = load i8, ptr %353, align 4, !tbaa !37
  %355 = zext i8 %354 to i32
  %356 = icmp eq i32 %355, 3
  br label %357

357:                                              ; preds = %351, %348
  %358 = phi i1 [ false, %348 ], [ %356, %351 ]
  br i1 %358, label %359, label %369

359:                                              ; preds = %357
  %360 = load ptr, ptr %2, align 8, !tbaa !5
  %361 = load ptr, ptr %2, align 8, !tbaa !5
  %362 = getelementptr inbounds %struct.png_struct_def, ptr %361, i32 0, i32 32
  %363 = load ptr, ptr %362, align 8, !tbaa !30
  %364 = getelementptr inbounds i8, ptr %363, i64 1
  call void @png_push_have_row(ptr noundef %360, ptr noundef %364)
  %365 = load ptr, ptr %2, align 8, !tbaa !5
  call void @png_read_push_finish_row(ptr noundef %365)
  br label %366

366:                                              ; preds = %359
  %367 = load i32, ptr %6, align 4, !tbaa !38
  %368 = add nsw i32 %367, 1
  store i32 %368, ptr %6, align 4, !tbaa !38
  br label %348, !llvm.loop !49

369:                                              ; preds = %357
  %370 = load ptr, ptr %2, align 8, !tbaa !5
  %371 = getelementptr inbounds %struct.png_struct_def, ptr %370, i32 0, i32 47
  %372 = load i8, ptr %371, align 4, !tbaa !37
  %373 = zext i8 %372 to i32
  %374 = icmp eq i32 %373, 4
  br i1 %374, label %375, label %394

375:                                              ; preds = %369
  store i32 0, ptr %6, align 4, !tbaa !38
  br label %376

376:                                              ; preds = %390, %375
  %377 = load i32, ptr %6, align 4, !tbaa !38
  %378 = icmp slt i32 %377, 2
  br i1 %378, label %379, label %385

379:                                              ; preds = %376
  %380 = load ptr, ptr %2, align 8, !tbaa !5
  %381 = getelementptr inbounds %struct.png_struct_def, ptr %380, i32 0, i32 47
  %382 = load i8, ptr %381, align 4, !tbaa !37
  %383 = zext i8 %382 to i32
  %384 = icmp eq i32 %383, 4
  br label %385

385:                                              ; preds = %379, %376
  %386 = phi i1 [ false, %376 ], [ %384, %379 ]
  br i1 %386, label %387, label %393

387:                                              ; preds = %385
  %388 = load ptr, ptr %2, align 8, !tbaa !5
  call void @png_push_have_row(ptr noundef %388, ptr noundef null)
  %389 = load ptr, ptr %2, align 8, !tbaa !5
  call void @png_read_push_finish_row(ptr noundef %389)
  br label %390

390:                                              ; preds = %387
  %391 = load i32, ptr %6, align 4, !tbaa !38
  %392 = add nsw i32 %391, 1
  store i32 %392, ptr %6, align 4, !tbaa !38
  br label %376, !llvm.loop !50

393:                                              ; preds = %385
  br label %394

394:                                              ; preds = %393, %369
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  br label %493

395:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  store i32 0, ptr %7, align 4, !tbaa !38
  br label %396

396:                                              ; preds = %414, %395
  %397 = load i32, ptr %7, align 4, !tbaa !38
  %398 = icmp slt i32 %397, 2
  br i1 %398, label %399, label %405

399:                                              ; preds = %396
  %400 = load ptr, ptr %2, align 8, !tbaa !5
  %401 = getelementptr inbounds %struct.png_struct_def, ptr %400, i32 0, i32 47
  %402 = load i8, ptr %401, align 4, !tbaa !37
  %403 = zext i8 %402 to i32
  %404 = icmp eq i32 %403, 4
  br label %405

405:                                              ; preds = %399, %396
  %406 = phi i1 [ false, %396 ], [ %404, %399 ]
  br i1 %406, label %407, label %417

407:                                              ; preds = %405
  %408 = load ptr, ptr %2, align 8, !tbaa !5
  %409 = load ptr, ptr %2, align 8, !tbaa !5
  %410 = getelementptr inbounds %struct.png_struct_def, ptr %409, i32 0, i32 32
  %411 = load ptr, ptr %410, align 8, !tbaa !30
  %412 = getelementptr inbounds i8, ptr %411, i64 1
  call void @png_push_have_row(ptr noundef %408, ptr noundef %412)
  %413 = load ptr, ptr %2, align 8, !tbaa !5
  call void @png_read_push_finish_row(ptr noundef %413)
  br label %414

414:                                              ; preds = %407
  %415 = load i32, ptr %7, align 4, !tbaa !38
  %416 = add nsw i32 %415, 1
  store i32 %416, ptr %7, align 4, !tbaa !38
  br label %396, !llvm.loop !51

417:                                              ; preds = %405
  store i32 0, ptr %7, align 4, !tbaa !38
  br label %418

418:                                              ; preds = %432, %417
  %419 = load i32, ptr %7, align 4, !tbaa !38
  %420 = icmp slt i32 %419, 2
  br i1 %420, label %421, label %427

421:                                              ; preds = %418
  %422 = load ptr, ptr %2, align 8, !tbaa !5
  %423 = getelementptr inbounds %struct.png_struct_def, ptr %422, i32 0, i32 47
  %424 = load i8, ptr %423, align 4, !tbaa !37
  %425 = zext i8 %424 to i32
  %426 = icmp eq i32 %425, 4
  br label %427

427:                                              ; preds = %421, %418
  %428 = phi i1 [ false, %418 ], [ %426, %421 ]
  br i1 %428, label %429, label %435

429:                                              ; preds = %427
  %430 = load ptr, ptr %2, align 8, !tbaa !5
  call void @png_push_have_row(ptr noundef %430, ptr noundef null)
  %431 = load ptr, ptr %2, align 8, !tbaa !5
  call void @png_read_push_finish_row(ptr noundef %431)
  br label %432

432:                                              ; preds = %429
  %433 = load i32, ptr %7, align 4, !tbaa !38
  %434 = add nsw i32 %433, 1
  store i32 %434, ptr %7, align 4, !tbaa !38
  br label %418, !llvm.loop !52

435:                                              ; preds = %427
  %436 = load ptr, ptr %2, align 8, !tbaa !5
  %437 = getelementptr inbounds %struct.png_struct_def, ptr %436, i32 0, i32 47
  %438 = load i8, ptr %437, align 4, !tbaa !37
  %439 = zext i8 %438 to i32
  %440 = icmp eq i32 %439, 6
  br i1 %440, label %441, label %444

441:                                              ; preds = %435
  %442 = load ptr, ptr %2, align 8, !tbaa !5
  call void @png_push_have_row(ptr noundef %442, ptr noundef null)
  %443 = load ptr, ptr %2, align 8, !tbaa !5
  call void @png_read_push_finish_row(ptr noundef %443)
  br label %444

444:                                              ; preds = %441, %435
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  br label %493

445:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  store i32 0, ptr %8, align 4, !tbaa !38
  br label %446

446:                                              ; preds = %464, %445
  %447 = load i32, ptr %8, align 4, !tbaa !38
  %448 = icmp slt i32 %447, 2
  br i1 %448, label %449, label %455

449:                                              ; preds = %446
  %450 = load ptr, ptr %2, align 8, !tbaa !5
  %451 = getelementptr inbounds %struct.png_struct_def, ptr %450, i32 0, i32 47
  %452 = load i8, ptr %451, align 4, !tbaa !37
  %453 = zext i8 %452 to i32
  %454 = icmp eq i32 %453, 5
  br label %455

455:                                              ; preds = %449, %446
  %456 = phi i1 [ false, %446 ], [ %454, %449 ]
  br i1 %456, label %457, label %467

457:                                              ; preds = %455
  %458 = load ptr, ptr %2, align 8, !tbaa !5
  %459 = load ptr, ptr %2, align 8, !tbaa !5
  %460 = getelementptr inbounds %struct.png_struct_def, ptr %459, i32 0, i32 32
  %461 = load ptr, ptr %460, align 8, !tbaa !30
  %462 = getelementptr inbounds i8, ptr %461, i64 1
  call void @png_push_have_row(ptr noundef %458, ptr noundef %462)
  %463 = load ptr, ptr %2, align 8, !tbaa !5
  call void @png_read_push_finish_row(ptr noundef %463)
  br label %464

464:                                              ; preds = %457
  %465 = load i32, ptr %8, align 4, !tbaa !38
  %466 = add nsw i32 %465, 1
  store i32 %466, ptr %8, align 4, !tbaa !38
  br label %446, !llvm.loop !53

467:                                              ; preds = %455
  %468 = load ptr, ptr %2, align 8, !tbaa !5
  %469 = getelementptr inbounds %struct.png_struct_def, ptr %468, i32 0, i32 47
  %470 = load i8, ptr %469, align 4, !tbaa !37
  %471 = zext i8 %470 to i32
  %472 = icmp eq i32 %471, 6
  br i1 %472, label %473, label %476

473:                                              ; preds = %467
  %474 = load ptr, ptr %2, align 8, !tbaa !5
  call void @png_push_have_row(ptr noundef %474, ptr noundef null)
  %475 = load ptr, ptr %2, align 8, !tbaa !5
  call void @png_read_push_finish_row(ptr noundef %475)
  br label %476

476:                                              ; preds = %473, %467
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  br label %493

477:                                              ; preds = %136
  %478 = load ptr, ptr %2, align 8, !tbaa !5
  %479 = load ptr, ptr %2, align 8, !tbaa !5
  %480 = getelementptr inbounds %struct.png_struct_def, ptr %479, i32 0, i32 32
  %481 = load ptr, ptr %480, align 8, !tbaa !30
  %482 = getelementptr inbounds i8, ptr %481, i64 1
  call void @png_push_have_row(ptr noundef %478, ptr noundef %482)
  %483 = load ptr, ptr %2, align 8, !tbaa !5
  call void @png_read_push_finish_row(ptr noundef %483)
  %484 = load ptr, ptr %2, align 8, !tbaa !5
  %485 = getelementptr inbounds %struct.png_struct_def, ptr %484, i32 0, i32 47
  %486 = load i8, ptr %485, align 4, !tbaa !37
  %487 = zext i8 %486 to i32
  %488 = icmp ne i32 %487, 6
  br i1 %488, label %489, label %490

489:                                              ; preds = %477
  br label %493

490:                                              ; preds = %477
  %491 = load ptr, ptr %2, align 8, !tbaa !5
  call void @png_push_have_row(ptr noundef %491, ptr noundef null)
  %492 = load ptr, ptr %2, align 8, !tbaa !5
  call void @png_read_push_finish_row(ptr noundef %492)
  br label %493

493:                                              ; preds = %490, %489, %476, %444, %394, %346, %280, %232, %136
  br label %501

494:                                              ; preds = %122, %116
  %495 = load ptr, ptr %2, align 8, !tbaa !5
  %496 = load ptr, ptr %2, align 8, !tbaa !5
  %497 = getelementptr inbounds %struct.png_struct_def, ptr %496, i32 0, i32 32
  %498 = load ptr, ptr %497, align 8, !tbaa !30
  %499 = getelementptr inbounds i8, ptr %498, i64 1
  call void @png_push_have_row(ptr noundef %495, ptr noundef %499)
  %500 = load ptr, ptr %2, align 8, !tbaa !5
  call void @png_read_push_finish_row(ptr noundef %500)
  br label %501

501:                                              ; preds = %494, %493
  ret void
}

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

declare ptr @png_memcpy_check(ptr noundef, ptr noundef, ptr noundef, i64 noundef) #2

declare void @png_do_read_transformations(ptr noundef) #2

declare void @png_do_read_interlace(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @png_push_have_row(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @png_read_push_finish_row(ptr 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

!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 630}
!10 = !{!"png_struct_def", !7, i64 0, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !7, i64 272, !7, i64 273, !11, i64 280, !11, i64 288, !11, i64 296, !12, i64 304, !6, i64 416, !11, i64 424, !13, i64 432, !13, i64 436, !13, i64 440, !13, i64 444, !13, i64 448, !11, i64 456, !11, i64 464, !11, i64 472, !11, i64 480, !11, i64 488, !11, i64 496, !11, i64 504, !11, i64 512, !6, i64 520, !6, i64 528, !6, i64 536, !6, i64 544, !6, i64 552, !6, i64 560, !14, i64 568, !11, i64 592, !11, i64 600, !6, i64 608, !15, i64 616, !15, i64 618, !7, i64 620, !7, i64 625, !7, i64 626, !7, i64 627, !7, i64 628, !7, i64 629, !7, i64 630, !7, i64 631, !7, i64 632, !7, i64 633, !7, i64 634, !7, i64 635, !7, i64 636, !15, i64 638, !7, i64 640, !16, i64 644, !17, i64 648, !17, i64 658, !6, i64 672, !11, i64 680, !11, i64 688, !13, i64 696, !16, i64 700, !16, i64 704, !6, i64 712, !6, i64 720, !6, i64 728, !6, i64 736, !6, i64 744, !6, i64 752, !18, i64 760, !18, i64 765, !6, i64 776, !17, i64 784, !6, i64 800, !6, i64 808, !6, i64 816, !6, i64 824, !6, i64 832, !6, i64 840, !6, i64 848, !6, i64 856, !6, i64 864, !11, i64 872, !11, i64 880, !11, i64 888, !11, i64 896, !11, i64 904, !11, i64 912, !13, i64 920, !13, i64 924, !11, i64 928, !11, i64 936, !6, i64 944, !6, i64 952, !6, i64 960, !6, i64 968, !6, i64 976, !7, i64 984, !7, i64 985, !6, i64 992, !6, i64 1000, !6, i64 1008, !6, i64 1016, !6, i64 1024, !6, i64 1032, !11, i64 1040, !6, i64 1048, !6, i64 1056, !13, i64 1064, !6, i64 1072, !7, i64 1080, !15, i64 1082, !15, i64 1084, !15, i64 1086, !11, i64 1088, !11, i64 1096, !7, i64 1104, !7, i64 1105, !11, i64 1112, !11, i64 1120, !6, i64 1128, !6, i64 1136, !6, i64 1144, !6, i64 1152, !6, i64 1160, !6, i64 1168, !6, i64 1176, !7, i64 1184, !11, i64 1192, !11, i64 1200, !19, i64 1208, !11, i64 1240, !11, i64 1248, !6, i64 1256}
!11 = !{!"long", !7, i64 0}
!12 = !{!"z_stream_s", !6, i64 0, !13, i64 8, !11, i64 16, !6, i64 24, !13, i64 32, !11, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !13, i64 88, !11, i64 96, !11, i64 104}
!13 = !{!"int", !7, i64 0}
!14 = !{!"png_row_info_struct", !11, i64 0, !11, i64 8, !7, i64 16, !7, i64 17, !7, i64 18, !7, i64 19}
!15 = !{!"short", !7, i64 0}
!16 = !{!"float", !7, i64 0}
!17 = !{!"png_color_16_struct", !7, i64 0, !15, i64 2, !15, i64 4, !15, i64 6, !15, i64 8}
!18 = !{!"png_color_8_struct", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4}
!19 = !{!"png_unknown_chunk_t", !7, i64 0, !6, i64 8, !11, i64 16, !7, i64 24}
!20 = !{!10, !7, i64 584}
!21 = !{!10, !11, i64 504}
!22 = !{!10, !11, i64 568}
!23 = !{!10, !7, i64 634}
!24 = !{!10, !7, i64 586}
!25 = !{!10, !7, i64 631}
!26 = !{!10, !7, i64 585}
!27 = !{!10, !7, i64 633}
!28 = !{!10, !7, i64 587}
!29 = !{!10, !11, i64 576}
!30 = !{!10, !6, i64 528}
!31 = !{!10, !6, i64 520}
!32 = !{!7, !7, i64 0}
!33 = !{!10, !11, i64 488}
!34 = !{!10, !11, i64 296}
!35 = !{!10, !11, i64 288}
!36 = !{!10, !7, i64 627}
!37 = !{!10, !7, i64 628}
!38 = !{!13, !13, i64 0}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}
!41 = distinct !{!41, !40}
!42 = !{!10, !11, i64 464}
!43 = distinct !{!43, !40}
!44 = distinct !{!44, !40}
!45 = distinct !{!45, !40}
!46 = distinct !{!46, !40}
!47 = distinct !{!47, !40}
!48 = distinct !{!48, !40}
!49 = distinct !{!49, !40}
!50 = distinct !{!50, !40}
!51 = distinct !{!51, !40}
!52 = distinct !{!52, !40}
!53 = distinct !{!53, !40}


; 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_push_process_row(ptr noundef %0) local_unnamed_addr #0 {
  %2 = getelementptr inbounds i8, ptr %0, i64 630
  %3 = load i8, ptr %2, align 2, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %0, i64 568
  %5 = getelementptr inbounds i8, ptr %0, i64 584
  store i8 %3, ptr %5, align 8, !tbaa !19
  %6 = getelementptr inbounds i8, ptr %0, i64 504
  %7 = load i64, ptr %6, align 8, !tbaa !20
  store i64 %7, ptr %4, align 8, !tbaa !21
  %8 = getelementptr inbounds i8, ptr %0, i64 634
  %9 = load i8, ptr %8, align 2, !tbaa !22
  %10 = getelementptr inbounds i8, ptr %0, i64 586
  store i8 %9, ptr %10, align 2, !tbaa !23
  %11 = getelementptr inbounds i8, ptr %0, i64 631
  %12 = load i8, ptr %11, align 1, !tbaa !24
  %13 = getelementptr inbounds i8, ptr %0, i64 585
  store i8 %12, ptr %13, align 1, !tbaa !25
  %14 = getelementptr inbounds i8, ptr %0, i64 633
  %15 = load i8, ptr %14, align 1, !tbaa !26
  %16 = getelementptr inbounds i8, ptr %0, i64 587
  store i8 %15, ptr %16, align 1, !tbaa !27
  %17 = icmp ugt i8 %15, 7
  br i1 %17, label %18, label %22

18:                                               ; preds = %1
  %19 = lshr i8 %15, 3
  %20 = zext nneg i8 %19 to i64
  %21 = mul i64 %7, %20
  br label %27

22:                                               ; preds = %1
  %23 = zext nneg i8 %15 to i64
  %24 = mul i64 %7, %23
  %25 = add i64 %24, 7
  %26 = lshr i64 %25, 3
  br label %27

27:                                               ; preds = %22, %18
  %28 = phi i64 [ %21, %18 ], [ %26, %22 ]
  %29 = getelementptr inbounds i8, ptr %0, i64 576
  store i64 %28, ptr %29, align 8, !tbaa !28
  %30 = getelementptr inbounds i8, ptr %0, i64 528
  %31 = load ptr, ptr %30, align 8, !tbaa !29
  %32 = getelementptr inbounds i8, ptr %31, i64 1
  %33 = getelementptr inbounds i8, ptr %0, i64 520
  %34 = load ptr, ptr %33, align 8, !tbaa !30
  %35 = getelementptr inbounds i8, ptr %34, i64 1
  %36 = load i8, ptr %31, align 1, !tbaa !31
  %37 = zext i8 %36 to i32
  tail call void @png_read_filter_row(ptr noundef nonnull %0, ptr noundef nonnull %4, ptr noundef nonnull %32, ptr noundef nonnull %35, i32 noundef %37) #2
  %38 = load ptr, ptr %33, align 8, !tbaa !30
  %39 = load ptr, ptr %30, align 8, !tbaa !29
  %40 = getelementptr inbounds i8, ptr %0, i64 488
  %41 = load i64, ptr %40, align 8, !tbaa !32
  %42 = add i64 %41, 1
  %43 = tail call ptr @png_memcpy_check(ptr noundef nonnull %0, ptr noundef %38, ptr noundef %39, i64 noundef %42) #2
  %44 = getelementptr inbounds i8, ptr %0, i64 296
  %45 = load i64, ptr %44, align 8, !tbaa !33
  %.not = icmp eq i64 %45, 0
  br i1 %.not, label %46, label %50

46:                                               ; preds = %27
  %47 = getelementptr inbounds i8, ptr %0, i64 288
  %48 = load i64, ptr %47, align 8, !tbaa !34
  %49 = and i64 %48, 4194304
  %.not162 = icmp eq i64 %49, 0
  br i1 %.not162, label %51, label %50

50:                                               ; preds = %46, %27
  tail call void @png_do_read_transformations(ptr noundef nonnull %0) #2
  br label %51

51:                                               ; preds = %50, %46
  %52 = getelementptr inbounds i8, ptr %0, i64 627
  %53 = load i8, ptr %52, align 1, !tbaa !35
  %.not163 = icmp eq i8 %53, 0
  br i1 %.not163, label %231, label %54

54:                                               ; preds = %51
  %55 = load i64, ptr %44, align 8, !tbaa !33
  %56 = and i64 %55, 2
  %.not164 = icmp eq i64 %56, 0
  br i1 %.not164, label %231, label %57

57:                                               ; preds = %54
  %58 = getelementptr inbounds i8, ptr %0, i64 628
  %59 = load i8, ptr %58, align 4, !tbaa !36
  %60 = icmp ult i8 %59, 6
  br i1 %60, label %61, label %62

61:                                               ; preds = %57
  tail call void @png_do_read_interlace(ptr noundef nonnull %0) #2
  %.pr = load i8, ptr %58, align 4, !tbaa !36
  br label %62

62:                                               ; preds = %61, %57
  %63 = phi i8 [ %.pr, %61 ], [ %59, %57 ]
  switch i8 %63, label %.critedge8 [
    i8 0, label %.preheader175.1
    i8 1, label %.preheader177.1
    i8 2, label %.preheader180.1
    i8 3, label %.preheader183.1
    i8 4, label %.preheader184.1
    i8 5, label %.preheader185.1
    i8 6, label %226
  ]

.preheader175.1:                                  ; preds = %62
  %64 = load ptr, ptr %30, align 8, !tbaa !29
  %65 = getelementptr inbounds i8, ptr %64, i64 1
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef nonnull %65)
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  %66 = load i8, ptr %58, align 4, !tbaa !36
  %67 = icmp eq i8 %66, 0
  br i1 %67, label %.preheader175.2, label %.critedge

.preheader175.2:                                  ; preds = %.preheader175.1
  %68 = load ptr, ptr %30, align 8, !tbaa !29
  %69 = getelementptr inbounds i8, ptr %68, i64 1
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef nonnull %69)
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  %70 = load i8, ptr %58, align 4, !tbaa !36
  %71 = icmp eq i8 %70, 0
  br i1 %71, label %.preheader175.3, label %.critedge

.preheader175.3:                                  ; preds = %.preheader175.2
  %72 = load ptr, ptr %30, align 8, !tbaa !29
  %73 = getelementptr inbounds i8, ptr %72, i64 1
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef nonnull %73)
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  %74 = load i8, ptr %58, align 4, !tbaa !36
  %75 = icmp eq i8 %74, 0
  br i1 %75, label %.preheader175.4, label %.critedge

.preheader175.4:                                  ; preds = %.preheader175.3
  %76 = load ptr, ptr %30, align 8, !tbaa !29
  %77 = getelementptr inbounds i8, ptr %76, i64 1
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef nonnull %77)
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  %78 = load i8, ptr %58, align 4, !tbaa !36
  %79 = icmp eq i8 %78, 0
  br i1 %79, label %.preheader175.5, label %.critedge

.preheader175.5:                                  ; preds = %.preheader175.4
  %80 = load ptr, ptr %30, align 8, !tbaa !29
  %81 = getelementptr inbounds i8, ptr %80, i64 1
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef nonnull %81)
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  %82 = load i8, ptr %58, align 4, !tbaa !36
  %83 = icmp eq i8 %82, 0
  br i1 %83, label %.preheader175.6, label %.critedge

.preheader175.6:                                  ; preds = %.preheader175.5
  %84 = load ptr, ptr %30, align 8, !tbaa !29
  %85 = getelementptr inbounds i8, ptr %84, i64 1
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef nonnull %85)
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  %86 = load i8, ptr %58, align 4, !tbaa !36
  %87 = icmp eq i8 %86, 0
  br i1 %87, label %.preheader175.7, label %.critedge

.preheader175.7:                                  ; preds = %.preheader175.6
  %88 = load ptr, ptr %30, align 8, !tbaa !29
  %89 = getelementptr inbounds i8, ptr %88, i64 1
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef nonnull %89)
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  %90 = load i8, ptr %58, align 4, !tbaa !36
  %91 = icmp eq i8 %90, 0
  br i1 %91, label %.critedgethread-pre-split, label %.critedge

.critedgethread-pre-split:                        ; preds = %.preheader175.7
  %92 = load ptr, ptr %30, align 8, !tbaa !29
  %93 = getelementptr inbounds i8, ptr %92, i64 1
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef nonnull %93)
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  %.pr166 = load i8, ptr %58, align 4, !tbaa !36
  br label %.critedge

.critedge:                                        ; preds = %.preheader175.1, %.preheader175.2, %.preheader175.3, %.preheader175.4, %.preheader175.5, %.preheader175.6, %.preheader175.7, %.critedgethread-pre-split
  %94 = phi i8 [ %.pr166, %.critedgethread-pre-split ], [ %66, %.preheader175.1 ], [ %70, %.preheader175.2 ], [ %74, %.preheader175.3 ], [ %78, %.preheader175.4 ], [ %82, %.preheader175.5 ], [ %86, %.preheader175.6 ], [ %90, %.preheader175.7 ]
  %95 = icmp eq i8 %94, 2
  br i1 %95, label %.preheader174.1, label %.critedge2

.preheader174.1:                                  ; preds = %.critedge
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef null)
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  %96 = load i8, ptr %58, align 4, !tbaa !36
  %97 = icmp eq i8 %96, 2
  br i1 %97, label %.preheader174.2, label %.critedge2

.preheader174.2:                                  ; preds = %.preheader174.1
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef null)
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  %98 = load i8, ptr %58, align 4, !tbaa !36
  %99 = icmp eq i8 %98, 2
  br i1 %99, label %.preheader174.3, label %.critedge2

.preheader174.3:                                  ; preds = %.preheader174.2
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef null)
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  %100 = load i8, ptr %58, align 4, !tbaa !36
  %101 = icmp eq i8 %100, 2
  br i1 %101, label %.critedge2thread-pre-split.loopexit, label %.critedge2

.critedge2thread-pre-split.loopexit:              ; preds = %.preheader174.3
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef null)
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  %.pr167.pre = load i8, ptr %58, align 4, !tbaa !36
  br label %.critedge2

.critedge2:                                       ; preds = %.preheader174.1, %.preheader174.2, %.preheader174.3, %.critedge, %.critedge2thread-pre-split.loopexit
  %102 = phi i8 [ %.pr167.pre, %.critedge2thread-pre-split.loopexit ], [ %94, %.critedge ], [ %96, %.preheader174.1 ], [ %98, %.preheader174.2 ], [ %100, %.preheader174.3 ]
  %103 = icmp eq i8 %102, 4
  br i1 %103, label %104, label %.critedge4

104:                                              ; preds = %.critedge2
  %105 = getelementptr inbounds i8, ptr %0, i64 464
  %106 = load i64, ptr %105, align 8, !tbaa !37
  %107 = icmp ult i64 %106, 5
  br i1 %107, label %.preheader.1, label %.critedge8

.preheader.1:                                     ; preds = %104
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef null)
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  %108 = load i8, ptr %58, align 4, !tbaa !36
  %109 = icmp eq i8 %108, 4
  br i1 %109, label %.critedge4thread-pre-split.loopexit, label %.critedge4

.critedge4thread-pre-split.loopexit:              ; preds = %.preheader.1
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef null)
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  %.pr168.pre = load i8, ptr %58, align 4, !tbaa !36
  br label %.critedge4

.critedge4:                                       ; preds = %.preheader.1, %.critedge2, %.critedge4thread-pre-split.loopexit
  %110 = phi i8 [ %.pr168.pre, %.critedge4thread-pre-split.loopexit ], [ %102, %.critedge2 ], [ %108, %.preheader.1 ]
  %111 = icmp eq i8 %110, 6
  br i1 %111, label %112, label %.critedge8

112:                                              ; preds = %.critedge4
  %113 = getelementptr inbounds i8, ptr %0, i64 464
  %114 = load i64, ptr %113, align 8, !tbaa !37
  %115 = icmp ult i64 %114, 5
  br i1 %115, label %116, label %.critedge8

116:                                              ; preds = %112
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef null)
  br label %.critedge8.sink.split

.preheader177.1:                                  ; preds = %62
  %117 = load ptr, ptr %30, align 8, !tbaa !29
  %118 = getelementptr inbounds i8, ptr %117, i64 1
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef nonnull %118)
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  %119 = load i8, ptr %58, align 4, !tbaa !36
  %120 = icmp eq i8 %119, 1
  br i1 %120, label %.preheader177.2, label %.critedge6

.preheader177.2:                                  ; preds = %.preheader177.1
  %121 = load ptr, ptr %30, align 8, !tbaa !29
  %122 = getelementptr inbounds i8, ptr %121, i64 1
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef nonnull %122)
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  %123 = load i8, ptr %58, align 4, !tbaa !36
  %124 = icmp eq i8 %123, 1
  br i1 %124, label %.preheader177.3, label %.critedge6

.preheader177.3:                                  ; preds = %.preheader177.2
  %125 = load ptr, ptr %30, align 8, !tbaa !29
  %126 = getelementptr inbounds i8, ptr %125, i64 1
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef nonnull %126)
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  %127 = load i8, ptr %58, align 4, !tbaa !36
  %128 = icmp eq i8 %127, 1
  br i1 %128, label %.preheader177.4, label %.critedge6

.preheader177.4:                                  ; preds = %.preheader177.3
  %129 = load ptr, ptr %30, align 8, !tbaa !29
  %130 = getelementptr inbounds i8, ptr %129, i64 1
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef nonnull %130)
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  %131 = load i8, ptr %58, align 4, !tbaa !36
  %132 = icmp eq i8 %131, 1
  br i1 %132, label %.preheader177.5, label %.critedge6

.preheader177.5:                                  ; preds = %.preheader177.4
  %133 = load ptr, ptr %30, align 8, !tbaa !29
  %134 = getelementptr inbounds i8, ptr %133, i64 1
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef nonnull %134)
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  %135 = load i8, ptr %58, align 4, !tbaa !36
  %136 = icmp eq i8 %135, 1
  br i1 %136, label %.preheader177.6, label %.critedge6

.preheader177.6:                                  ; preds = %.preheader177.5
  %137 = load ptr, ptr %30, align 8, !tbaa !29
  %138 = getelementptr inbounds i8, ptr %137, i64 1
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef nonnull %138)
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  %139 = load i8, ptr %58, align 4, !tbaa !36
  %140 = icmp eq i8 %139, 1
  br i1 %140, label %.preheader177.7, label %.critedge6

.preheader177.7:                                  ; preds = %.preheader177.6
  %141 = load ptr, ptr %30, align 8, !tbaa !29
  %142 = getelementptr inbounds i8, ptr %141, i64 1
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef nonnull %142)
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  %143 = load i8, ptr %58, align 4, !tbaa !36
  %144 = icmp eq i8 %143, 1
  br i1 %144, label %.critedge6thread-pre-split, label %.critedge6

.critedge6thread-pre-split:                       ; preds = %.preheader177.7
  %145 = load ptr, ptr %30, align 8, !tbaa !29
  %146 = getelementptr inbounds i8, ptr %145, i64 1
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef nonnull %146)
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  %.pr169 = load i8, ptr %58, align 4, !tbaa !36
  br label %.critedge6

.critedge6:                                       ; preds = %.preheader177.1, %.preheader177.2, %.preheader177.3, %.preheader177.4, %.preheader177.5, %.preheader177.6, %.preheader177.7, %.critedge6thread-pre-split
  %147 = phi i8 [ %.pr169, %.critedge6thread-pre-split ], [ %119, %.preheader177.1 ], [ %123, %.preheader177.2 ], [ %127, %.preheader177.3 ], [ %131, %.preheader177.4 ], [ %135, %.preheader177.5 ], [ %139, %.preheader177.6 ], [ %143, %.preheader177.7 ]
  %148 = icmp eq i8 %147, 2
  br i1 %148, label %.preheader176.1, label %.critedge8

.preheader176.1:                                  ; preds = %.critedge6
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef null)
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  %149 = load i8, ptr %58, align 4, !tbaa !36
  %150 = icmp eq i8 %149, 2
  br i1 %150, label %.preheader176.2, label %.critedge8

.preheader176.2:                                  ; preds = %.preheader176.1
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef null)
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  %151 = load i8, ptr %58, align 4, !tbaa !36
  %152 = icmp eq i8 %151, 2
  br i1 %152, label %.preheader176.3, label %.critedge8

.preheader176.3:                                  ; preds = %.preheader176.2
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef null)
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  %153 = load i8, ptr %58, align 4, !tbaa !36
  %154 = icmp eq i8 %153, 2
  br i1 %154, label %155, label %.critedge8

155:                                              ; preds = %.preheader176.3
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef null)
  br label %.critedge8.sink.split

.preheader180.1:                                  ; preds = %62
  %156 = load ptr, ptr %30, align 8, !tbaa !29
  %157 = getelementptr inbounds i8, ptr %156, i64 1
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef nonnull %157)
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  %158 = load i8, ptr %58, align 4, !tbaa !36
  %159 = icmp eq i8 %158, 2
  br i1 %159, label %.preheader180.2, label %.critedge12

.preheader180.2:                                  ; preds = %.preheader180.1
  %160 = load ptr, ptr %30, align 8, !tbaa !29
  %161 = getelementptr inbounds i8, ptr %160, i64 1
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef nonnull %161)
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  %162 = load i8, ptr %58, align 4, !tbaa !36
  %163 = icmp eq i8 %162, 2
  br i1 %163, label %.preheader180.3, label %.critedge12

.preheader180.3:                                  ; preds = %.preheader180.2
  %164 = load ptr, ptr %30, align 8, !tbaa !29
  %165 = getelementptr inbounds i8, ptr %164, i64 1
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef nonnull %165)
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  %166 = load i8, ptr %58, align 4, !tbaa !36
  %167 = icmp eq i8 %166, 2
  br i1 %167, label %.critedge10, label %.critedge12

.critedge10:                                      ; preds = %.preheader180.3
  %168 = load ptr, ptr %30, align 8, !tbaa !29
  %169 = getelementptr inbounds i8, ptr %168, i64 1
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef nonnull %169)
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  %.pre223 = load i8, ptr %58, align 4, !tbaa !36
  %170 = icmp eq i8 %.pre223, 2
  br i1 %170, label %171, label %.critedge12

171:                                              ; preds = %.critedge10
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef null)
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  %172 = load i8, ptr %58, align 4, !tbaa !36
  %173 = icmp eq i8 %172, 2
  br i1 %173, label %174, label %.critedge12

174:                                              ; preds = %171
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef null)
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  %175 = load i8, ptr %58, align 4, !tbaa !36
  %176 = icmp eq i8 %175, 2
  br i1 %176, label %177, label %.critedge12

177:                                              ; preds = %174
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef null)
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  %178 = load i8, ptr %58, align 4, !tbaa !36
  %179 = icmp eq i8 %178, 2
  br i1 %179, label %.critedge12thread-pre-split, label %.critedge12

.critedge12thread-pre-split:                      ; preds = %177
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef null)
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  %.pr170 = load i8, ptr %58, align 4, !tbaa !36
  br label %.critedge12

.critedge12:                                      ; preds = %.preheader180.1, %.preheader180.2, %.preheader180.3, %.critedge10, %171, %174, %177, %.critedge12thread-pre-split
  %180 = phi i8 [ %.pr170, %.critedge12thread-pre-split ], [ %.pre223, %.critedge10 ], [ %172, %171 ], [ %175, %174 ], [ %178, %177 ], [ %158, %.preheader180.1 ], [ %162, %.preheader180.2 ], [ %166, %.preheader180.3 ]
  %181 = icmp eq i8 %180, 4
  br i1 %181, label %.preheader178.1, label %.critedge8

.preheader178.1:                                  ; preds = %.critedge12
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef null)
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  %182 = load i8, ptr %58, align 4, !tbaa !36
  %183 = icmp eq i8 %182, 4
  br i1 %183, label %184, label %.critedge8

184:                                              ; preds = %.preheader178.1
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef null)
  br label %.critedge8.sink.split

.preheader183.1:                                  ; preds = %62
  %185 = load ptr, ptr %30, align 8, !tbaa !29
  %186 = getelementptr inbounds i8, ptr %185, i64 1
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef nonnull %186)
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  %187 = load i8, ptr %58, align 4, !tbaa !36
  %188 = icmp eq i8 %187, 3
  br i1 %188, label %.preheader183.2, label %.critedge16

.preheader183.2:                                  ; preds = %.preheader183.1
  %189 = load ptr, ptr %30, align 8, !tbaa !29
  %190 = getelementptr inbounds i8, ptr %189, i64 1
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef nonnull %190)
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  %191 = load i8, ptr %58, align 4, !tbaa !36
  %192 = icmp eq i8 %191, 3
  br i1 %192, label %.preheader183.3, label %.critedge16

.preheader183.3:                                  ; preds = %.preheader183.2
  %193 = load ptr, ptr %30, align 8, !tbaa !29
  %194 = getelementptr inbounds i8, ptr %193, i64 1
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef nonnull %194)
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  %195 = load i8, ptr %58, align 4, !tbaa !36
  %196 = icmp eq i8 %195, 3
  br i1 %196, label %.critedge16thread-pre-split, label %.critedge16

.critedge16thread-pre-split:                      ; preds = %.preheader183.3
  %197 = load ptr, ptr %30, align 8, !tbaa !29
  %198 = getelementptr inbounds i8, ptr %197, i64 1
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef nonnull %198)
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  %.pr171 = load i8, ptr %58, align 4, !tbaa !36
  br label %.critedge16

.critedge16:                                      ; preds = %.preheader183.1, %.preheader183.2, %.preheader183.3, %.critedge16thread-pre-split
  %199 = phi i8 [ %.pr171, %.critedge16thread-pre-split ], [ %187, %.preheader183.1 ], [ %191, %.preheader183.2 ], [ %195, %.preheader183.3 ]
  %200 = icmp eq i8 %199, 4
  br i1 %200, label %.preheader181.1, label %.critedge8

.preheader181.1:                                  ; preds = %.critedge16
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef null)
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  %201 = load i8, ptr %58, align 4, !tbaa !36
  %202 = icmp eq i8 %201, 4
  br i1 %202, label %203, label %.critedge8

203:                                              ; preds = %.preheader181.1
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef null)
  br label %.critedge8.sink.split

.preheader184.1:                                  ; preds = %62
  %204 = load ptr, ptr %30, align 8, !tbaa !29
  %205 = getelementptr inbounds i8, ptr %204, i64 1
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef nonnull %205)
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  %206 = load i8, ptr %58, align 4, !tbaa !36
  %207 = icmp eq i8 %206, 4
  br i1 %207, label %.critedge20, label %.critedge22

.critedge20:                                      ; preds = %.preheader184.1
  %208 = load ptr, ptr %30, align 8, !tbaa !29
  %209 = getelementptr inbounds i8, ptr %208, i64 1
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef nonnull %209)
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  %.pre = load i8, ptr %58, align 4, !tbaa !36
  %210 = icmp eq i8 %.pre, 4
  br i1 %210, label %211, label %.critedge22

211:                                              ; preds = %.critedge20
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef null)
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  %212 = load i8, ptr %58, align 4, !tbaa !36
  %213 = icmp eq i8 %212, 4
  br i1 %213, label %.critedge22thread-pre-split, label %.critedge22

.critedge22thread-pre-split:                      ; preds = %211
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef null)
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  %.pr172 = load i8, ptr %58, align 4, !tbaa !36
  br label %.critedge22

.critedge22:                                      ; preds = %.preheader184.1, %.critedge20, %211, %.critedge22thread-pre-split
  %214 = phi i8 [ %.pr172, %.critedge22thread-pre-split ], [ %.pre, %.critedge20 ], [ %212, %211 ], [ %206, %.preheader184.1 ]
  %215 = icmp eq i8 %214, 6
  br i1 %215, label %216, label %.critedge8

216:                                              ; preds = %.critedge22
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef null)
  br label %.critedge8.sink.split

.preheader185.1:                                  ; preds = %62
  %217 = load ptr, ptr %30, align 8, !tbaa !29
  %218 = getelementptr inbounds i8, ptr %217, i64 1
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef nonnull %218)
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  %219 = load i8, ptr %58, align 4, !tbaa !36
  %220 = icmp eq i8 %219, 5
  br i1 %220, label %.critedge24thread-pre-split, label %.critedge24

.critedge24thread-pre-split:                      ; preds = %.preheader185.1
  %221 = load ptr, ptr %30, align 8, !tbaa !29
  %222 = getelementptr inbounds i8, ptr %221, i64 1
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef nonnull %222)
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  %.pr173 = load i8, ptr %58, align 4, !tbaa !36
  br label %.critedge24

.critedge24:                                      ; preds = %.preheader185.1, %.critedge24thread-pre-split
  %223 = phi i8 [ %.pr173, %.critedge24thread-pre-split ], [ %219, %.preheader185.1 ]
  %224 = icmp eq i8 %223, 6
  br i1 %224, label %225, label %.critedge8

225:                                              ; preds = %.critedge24
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef null)
  br label %.critedge8.sink.split

226:                                              ; preds = %62
  %227 = load ptr, ptr %30, align 8, !tbaa !29
  %228 = getelementptr inbounds i8, ptr %227, i64 1
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef nonnull %228)
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  %229 = load i8, ptr %58, align 4, !tbaa !36
  %.not165 = icmp eq i8 %229, 6
  br i1 %.not165, label %230, label %.critedge8

230:                                              ; preds = %226
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef null)
  br label %.critedge8.sink.split

231:                                              ; preds = %54, %51
  %232 = load ptr, ptr %30, align 8, !tbaa !29
  %233 = getelementptr inbounds i8, ptr %232, i64 1
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef nonnull %233)
  br label %.critedge8.sink.split

.critedge8.sink.split:                            ; preds = %231, %230, %116, %216, %225, %155, %184, %203
  tail call void @png_read_push_finish_row(ptr noundef nonnull %0)
  br label %.critedge8

.critedge8:                                       ; preds = %.critedge8.sink.split, %104, %.preheader181.1, %.preheader178.1, %.preheader176.1, %.preheader176.2, %.preheader176.3, %.critedge24, %.critedge22, %.critedge16, %.critedge12, %.critedge6, %.critedge4, %112, %62, %226
  ret void
}

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

declare ptr @png_memcpy_check(ptr noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1

declare void @png_do_read_transformations(ptr noundef) local_unnamed_addr #1

declare void @png_do_read_interlace(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @png_push_have_row(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @png_read_push_finish_row(ptr noundef) local_unnamed_addr #0

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 630}
!6 = !{!"png_struct_def", !7, i64 0, !9, i64 200, !9, i64 208, !9, i64 216, !9, i64 224, !9, i64 232, !9, i64 240, !9, i64 248, !9, i64 256, !9, i64 264, !7, i64 272, !7, i64 273, !10, i64 280, !10, i64 288, !10, i64 296, !11, i64 304, !9, i64 416, !10, i64 424, !12, i64 432, !12, i64 436, !12, i64 440, !12, i64 444, !12, i64 448, !10, i64 456, !10, i64 464, !10, i64 472, !10, i64 480, !10, i64 488, !10, i64 496, !10, i64 504, !10, i64 512, !9, i64 520, !9, i64 528, !9, i64 536, !9, i64 544, !9, i64 552, !9, i64 560, !13, i64 568, !10, i64 592, !10, i64 600, !9, i64 608, !14, i64 616, !14, i64 618, !7, i64 620, !7, i64 625, !7, i64 626, !7, i64 627, !7, i64 628, !7, i64 629, !7, i64 630, !7, i64 631, !7, i64 632, !7, i64 633, !7, i64 634, !7, i64 635, !7, i64 636, !14, i64 638, !7, i64 640, !15, i64 644, !16, i64 648, !16, i64 658, !9, i64 672, !10, i64 680, !10, i64 688, !12, i64 696, !15, i64 700, !15, i64 704, !9, i64 712, !9, i64 720, !9, i64 728, !9, i64 736, !9, i64 744, !9, i64 752, !17, i64 760, !17, i64 765, !9, i64 776, !16, i64 784, !9, i64 800, !9, i64 808, !9, i64 816, !9, i64 824, !9, i64 832, !9, i64 840, !9, i64 848, !9, i64 856, !9, i64 864, !10, i64 872, !10, i64 880, !10, i64 888, !10, i64 896, !10, i64 904, !10, i64 912, !12, i64 920, !12, i64 924, !10, i64 928, !10, i64 936, !9, i64 944, !9, i64 952, !9, i64 960, !9, i64 968, !9, i64 976, !7, i64 984, !7, i64 985, !9, i64 992, !9, i64 1000, !9, i64 1008, !9, i64 1016, !9, i64 1024, !9, i64 1032, !10, i64 1040, !9, i64 1048, !9, i64 1056, !12, i64 1064, !9, i64 1072, !7, i64 1080, !14, i64 1082, !14, i64 1084, !14, i64 1086, !10, i64 1088, !10, i64 1096, !7, i64 1104, !7, i64 1105, !10, i64 1112, !10, i64 1120, !9, i64 1128, !9, i64 1136, !9, i64 1144, !9, i64 1152, !9, i64 1160, !9, i64 1168, !9, i64 1176, !7, i64 1184, !10, i64 1192, !10, i64 1200, !18, i64 1208, !10, i64 1240, !10, i64 1248, !9, i64 1256}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"any pointer", !7, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!"z_stream_s", !9, i64 0, !12, i64 8, !10, i64 16, !9, i64 24, !12, i64 32, !10, i64 40, !9, i64 48, !9, i64 56, !9, i64 64, !9, i64 72, !9, i64 80, !12, i64 88, !10, i64 96, !10, i64 104}
!12 = !{!"int", !7, i64 0}
!13 = !{!"png_row_info_struct", !10, i64 0, !10, i64 8, !7, i64 16, !7, i64 17, !7, i64 18, !7, i64 19}
!14 = !{!"short", !7, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = !{!"png_color_16_struct", !7, i64 0, !14, i64 2, !14, i64 4, !14, i64 6, !14, i64 8}
!17 = !{!"png_color_8_struct", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4}
!18 = !{!"png_unknown_chunk_t", !7, i64 0, !9, i64 8, !10, i64 16, !7, i64 24}
!19 = !{!6, !7, i64 584}
!20 = !{!6, !10, i64 504}
!21 = !{!6, !10, i64 568}
!22 = !{!6, !7, i64 634}
!23 = !{!6, !7, i64 586}
!24 = !{!6, !7, i64 631}
!25 = !{!6, !7, i64 585}
!26 = !{!6, !7, i64 633}
!27 = !{!6, !7, i64 587}
!28 = !{!6, !10, i64 576}
!29 = !{!6, !9, i64 528}
!30 = !{!6, !9, i64 520}
!31 = !{!7, !7, i64 0}
!32 = !{!6, !10, i64 488}
!33 = !{!6, !10, i64 296}
!34 = !{!6, !10, i64 288}
!35 = !{!6, !7, i64 627}
!36 = !{!6, !7, i64 628}
!37 = !{!6, !10, i64 464}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass