; LLVM IR from niessner/Matterport :: code/gaps/pkgs/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, ptr, i8, i8, i32, i32, i32, %struct.z_stream_s, ptr, i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i64, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, %struct.png_row_info_struct, i32, i32, ptr, i16, i16, [5 x i8], i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i16, i8, float, %struct.png_color_16_struct, %struct.png_color_16_struct, ptr, i32, i32, i32, float, float, ptr, ptr, ptr, ptr, ptr, ptr, %struct.png_color_8_struct, %struct.png_color_8_struct, ptr, %struct.png_color_16_struct, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i64, i64, i64, i64, i32, i32, i64, i64, ptr, ptr, ptr, ptr, ptr, i8, i8, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, ptr, i8, i16, i16, i16, i32, i32, i8, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i32, i32, i32, %struct.png_unknown_chunk_t, i32, i32, ptr, i32 }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.z_stream_s = type { ptr, i32, i64, ptr, i32, i64, ptr, ptr, ptr, ptr, ptr, i32, i64, i64 }
%struct.png_row_info_struct = type { i32, i64, i8, i8, i8, i8 }
%struct.png_color_8_struct = type { i8, i8, i8, i8, i8 }
%struct.png_color_16_struct = type { i8, i16, i16, i16, i16 }
%struct.png_unknown_chunk_t = type { [5 x i8], ptr, i64, i8 }

; 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: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: nounwind uwtable
define dso_local void @png_push_process_row(ptr noundef %0) #2 {
  %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 50
  %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 38
  %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 30
  %17 = load i32, 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 38
  %20 = getelementptr inbounds %struct.png_row_info_struct, ptr %19, i32 0, i32 0
  store i32 %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 54
  %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 38
  %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 51
  %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 38
  %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 53
  %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 38
  %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 38
  %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 %58

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

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

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

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

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

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

123:                                              ; preds = %117
  %124 = load ptr, ptr %2, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.png_struct_def, ptr %124, i32 0, i32 15
  %126 = load i32, ptr %125, align 4, !tbaa !34
  %127 = and i32 %126, 2
  %128 = icmp ne i32 %127, 0
  br i1 %128, label %129, label %495

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

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

137:                                              ; preds = %135, %129
  %138 = load ptr, ptr %2, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.png_struct_def, ptr %138, i32 0, i32 48
  %140 = load i8, ptr %139, align 4, !tbaa !37
  %141 = zext i8 %140 to i32
  switch i32 %141, label %494 [
    i32 0, label %142
    i32 1, label %234
    i32 2, label %282
    i32 3, label %348
    i32 4, label %396
    i32 5, label %446
    i32 6, label %478
  ]

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

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

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

152:                                              ; preds = %146, %143
  %153 = phi i1 [ false, %143 ], [ %151, %146 ]
  br i1 %153, label %154, label %164

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

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

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

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

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

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

180:                                              ; preds = %174, %171
  %181 = phi i1 [ false, %171 ], [ %179, %174 ]
  br i1 %181, label %182, label %188

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

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

188:                                              ; preds = %180
  br label %189

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

195:                                              ; preds = %189
  %196 = load ptr, ptr %2, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.png_struct_def, ptr %196, i32 0, i32 25
  %198 = load i32, ptr %197, align 8, !tbaa !42
  %199 = icmp ule i32 %198, 4
  br i1 %199, label %200, label %219

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

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

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

210:                                              ; preds = %204, %201
  %211 = phi i1 [ false, %201 ], [ %209, %204 ]
  br i1 %211, label %212, label %218

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

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

218:                                              ; preds = %210
  br label %219

219:                                              ; preds = %218, %195, %189
  %220 = load ptr, ptr %2, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.png_struct_def, ptr %220, i32 0, i32 48
  %222 = load i8, ptr %221, align 4, !tbaa !37
  %223 = zext i8 %222 to i32
  %224 = icmp eq i32 %223, 6
  br i1 %224, label %225, label %233

225:                                              ; preds = %219
  %226 = load ptr, ptr %2, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.png_struct_def, ptr %226, i32 0, i32 25
  %228 = load i32, ptr %227, align 8, !tbaa !42
  %229 = icmp ule i32 %228, 4
  br i1 %229, label %230, label %233

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

233:                                              ; preds = %230, %225, %219
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  br label %494

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

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

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

244:                                              ; preds = %238, %235
  %245 = phi i1 [ false, %235 ], [ %243, %238 ]
  br i1 %245, label %246, label %256

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

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

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

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

263:                                              ; preds = %277, %262
  %264 = load i32, ptr %4, align 4, !tbaa !38
  %265 = icmp slt i32 %264, 4
  br i1 %265, label %266, label %272

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

272:                                              ; preds = %266, %263
  %273 = phi i1 [ false, %263 ], [ %271, %266 ]
  br i1 %273, label %274, label %280

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

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

280:                                              ; preds = %272
  br label %281

281:                                              ; preds = %280, %256
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %494

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

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

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

292:                                              ; preds = %286, %283
  %293 = phi i1 [ false, %283 ], [ %291, %286 ]
  br i1 %293, label %294, label %304

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

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

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

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

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

314:                                              ; preds = %308, %305
  %315 = phi i1 [ false, %305 ], [ %313, %308 ]
  br i1 %315, label %316, label %322

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

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

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

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

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

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

338:                                              ; preds = %332, %329
  %339 = phi i1 [ false, %329 ], [ %337, %332 ]
  br i1 %339, label %340, label %346

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

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

346:                                              ; preds = %338
  br label %347

347:                                              ; preds = %346, %322
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %494

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

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

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

358:                                              ; preds = %352, %349
  %359 = phi i1 [ false, %349 ], [ %357, %352 ]
  br i1 %359, label %360, label %370

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

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

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

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

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

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

386:                                              ; preds = %380, %377
  %387 = phi i1 [ false, %377 ], [ %385, %380 ]
  br i1 %387, label %388, label %394

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

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

394:                                              ; preds = %386
  br label %395

395:                                              ; preds = %394, %370
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %494

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

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

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

406:                                              ; preds = %400, %397
  %407 = phi i1 [ false, %397 ], [ %405, %400 ]
  br i1 %407, label %408, label %418

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

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

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

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

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

428:                                              ; preds = %422, %419
  %429 = phi i1 [ false, %419 ], [ %427, %422 ]
  br i1 %429, label %430, label %436

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

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

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

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

445:                                              ; preds = %442, %436
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %494

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

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

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

456:                                              ; preds = %450, %447
  %457 = phi i1 [ false, %447 ], [ %455, %450 ]
  br i1 %457, label %458, label %468

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

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

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

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

477:                                              ; preds = %474, %468
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %494

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

490:                                              ; preds = %478
  br label %494

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

494:                                              ; preds = %491, %490, %477, %445, %395, %347, %281, %233, %137
  br label %502

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

502:                                              ; preds = %495, %494
  ret void
}

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

declare void @png_do_read_transformations(ptr noundef) #3

declare void @png_do_read_interlace(ptr noundef) #3

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 590}
!10 = !{!"png_struct_def", !7, i64 0, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !7, i64 280, !7, i64 281, !11, i64 284, !11, i64 288, !11, i64 292, !12, i64 296, !6, i64 408, !13, i64 416, !11, i64 424, !11, i64 428, !11, i64 432, !11, i64 436, !11, i64 440, !11, i64 444, !11, i64 448, !11, i64 452, !11, i64 456, !13, i64 464, !13, i64 472, !11, i64 480, !11, i64 484, !6, i64 488, !6, i64 496, !6, i64 504, !6, i64 512, !6, i64 520, !6, i64 528, !14, i64 536, !11, i64 560, !11, i64 564, !6, i64 568, !15, i64 576, !15, i64 578, !7, i64 580, !7, i64 585, !7, i64 586, !7, i64 587, !7, i64 588, !7, i64 589, !7, i64 590, !7, i64 591, !7, i64 592, !7, i64 593, !7, i64 594, !7, i64 595, !7, i64 596, !15, i64 598, !7, i64 600, !16, i64 604, !17, i64 608, !17, i64 618, !6, i64 632, !11, i64 640, !11, i64 644, !11, i64 648, !16, i64 652, !16, i64 656, !6, i64 664, !6, i64 672, !6, i64 680, !6, i64 688, !6, i64 696, !6, i64 704, !18, i64 712, !18, i64 717, !6, i64 728, !17, i64 736, !6, i64 752, !6, i64 760, !6, i64 768, !6, i64 776, !6, i64 784, !6, i64 792, !6, i64 800, !6, i64 808, !6, i64 816, !11, i64 824, !11, i64 828, !13, i64 832, !13, i64 840, !13, i64 848, !13, i64 856, !11, i64 864, !11, i64 868, !13, i64 872, !13, i64 880, !6, i64 888, !6, i64 896, !6, i64 904, !6, i64 912, !6, i64 920, !7, i64 928, !7, i64 929, !6, i64 936, !6, i64 944, !6, i64 952, !6, i64 960, !6, i64 968, !6, i64 976, !11, i64 984, !6, i64 992, !6, i64 1000, !11, i64 1008, !6, i64 1016, !7, i64 1024, !15, i64 1026, !15, i64 1028, !15, i64 1030, !11, i64 1032, !11, i64 1036, !7, i64 1040, !6, i64 1048, !6, i64 1056, !6, i64 1064, !6, i64 1072, !6, i64 1080, !6, i64 1088, !6, i64 1096, !7, i64 1104, !11, i64 1108, !11, i64 1112, !11, i64 1116, !19, i64 1120, !11, i64 1152, !11, i64 1156, !6, i64 1160, !11, i64 1168}
!11 = !{!"int", !7, i64 0}
!12 = !{!"z_stream_s", !6, i64 0, !11, i64 8, !13, i64 16, !6, i64 24, !11, i64 32, !13, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !11, i64 88, !13, i64 96, !13, i64 104}
!13 = !{!"long", !7, i64 0}
!14 = !{!"png_row_info_struct", !11, i64 0, !13, i64 8, !7, i64 16, !7, i64 17, !7, i64 18, !7, i64 19}
!15 = !{!"short", !7, i64 0}
!16 = !{!"float", !7, i64 0}
!17 = !{!"png_color_16_struct", !7, i64 0, !15, i64 2, !15, i64 4, !15, i64 6, !15, i64 8}
!18 = !{!"png_color_8_struct", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4}
!19 = !{!"png_unknown_chunk_t", !7, i64 0, !6, i64 8, !13, i64 16, !7, i64 24}
!20 = !{!10, !7, i64 552}
!21 = !{!10, !11, i64 480}
!22 = !{!10, !11, i64 536}
!23 = !{!10, !7, i64 594}
!24 = !{!10, !7, i64 554}
!25 = !{!10, !7, i64 591}
!26 = !{!10, !7, i64 553}
!27 = !{!10, !7, i64 593}
!28 = !{!10, !7, i64 555}
!29 = !{!10, !13, i64 544}
!30 = !{!10, !6, i64 496}
!31 = !{!10, !6, i64 488}
!32 = !{!7, !7, i64 0}
!33 = !{!10, !13, i64 464}
!34 = !{!10, !11, i64 292}
!35 = !{!10, !11, i64 288}
!36 = !{!10, !7, i64 587}
!37 = !{!10, !7, i64 588}
!38 = !{!11, !11, i64 0}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}
!41 = distinct !{!41, !40}
!42 = !{!10, !11, i64 448}
!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: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #0

; Function Attrs: nounwind uwtable
define dso_local void @png_push_process_row(ptr noundef %0) local_unnamed_addr #1 {
  %2 = getelementptr inbounds i8, ptr %0, i64 590
  %3 = load i8, ptr %2, align 2, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %0, i64 536
  %5 = getelementptr inbounds i8, ptr %0, i64 552
  store i8 %3, ptr %5, align 8, !tbaa !19
  %6 = getelementptr inbounds i8, ptr %0, i64 480
  %7 = load i32, ptr %6, align 8, !tbaa !20
  store i32 %7, ptr %4, align 8, !tbaa !21
  %8 = getelementptr inbounds i8, ptr %0, i64 594
  %9 = load i8, ptr %8, align 2, !tbaa !22
  %10 = getelementptr inbounds i8, ptr %0, i64 554
  store i8 %9, ptr %10, align 2, !tbaa !23
  %11 = getelementptr inbounds i8, ptr %0, i64 591
  %12 = load i8, ptr %11, align 1, !tbaa !24
  %13 = getelementptr inbounds i8, ptr %0, i64 553
  store i8 %12, ptr %13, align 1, !tbaa !25
  %14 = getelementptr inbounds i8, ptr %0, i64 593
  %15 = load i8, ptr %14, align 1, !tbaa !26
  %16 = getelementptr inbounds i8, ptr %0, i64 555
  store i8 %15, ptr %16, align 1, !tbaa !27
  %17 = icmp ugt i8 %15, 7
  %18 = zext i32 %7 to i64
  br i1 %17, label %19, label %23

19:                                               ; preds = %1
  %20 = lshr i8 %15, 3
  %21 = zext nneg i8 %20 to i64
  %22 = mul nuw nsw i64 %21, %18
  br label %28

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

28:                                               ; preds = %23, %19
  %29 = phi i64 [ %22, %19 ], [ %27, %23 ]
  %30 = getelementptr inbounds i8, ptr %0, i64 544
  store i64 %29, ptr %30, align 8, !tbaa !28
  %31 = getelementptr inbounds i8, ptr %0, i64 496
  %32 = load ptr, ptr %31, align 8, !tbaa !29
  %33 = getelementptr inbounds i8, ptr %32, i64 1
  %34 = getelementptr inbounds i8, ptr %0, i64 488
  %35 = load ptr, ptr %34, align 8, !tbaa !30
  %36 = getelementptr inbounds i8, ptr %35, i64 1
  %37 = load i8, ptr %32, align 1, !tbaa !31
  %38 = zext i8 %37 to i32
  tail call void @png_read_filter_row(ptr noundef nonnull %0, ptr noundef nonnull %4, ptr noundef nonnull %33, ptr noundef nonnull %36, i32 noundef %38) #3
  %39 = load ptr, ptr %34, align 8, !tbaa !30
  %40 = load ptr, ptr %31, align 8, !tbaa !29
  %41 = getelementptr inbounds i8, ptr %0, i64 464
  %42 = load i64, ptr %41, align 8, !tbaa !32
  %43 = add i64 %42, 1
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %39, ptr align 1 %40, i64 %43, i1 false)
  %44 = getelementptr inbounds i8, ptr %0, i64 292
  %45 = load i32, ptr %44, align 4, !tbaa !33
  %.not = icmp eq i32 %45, 0
  br i1 %.not, label %46, label %50

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

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

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

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

57:                                               ; preds = %54
  %58 = getelementptr inbounds i8, ptr %0, i64 588
  %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) #3
  %.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 %.preheader174.1
    i8 1, label %.preheader176.1
    i8 2, label %.preheader179.1
    i8 3, label %.preheader182.1
    i8 4, label %.preheader183.1
    i8 5, label %.preheader184.1
    i8 6, label %226
  ]

.preheader174.1:                                  ; preds = %62
  %64 = load ptr, ptr %31, 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 %.preheader174.2, label %.critedge

.preheader174.2:                                  ; preds = %.preheader174.1
  %68 = load ptr, ptr %31, 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 %.preheader174.3, label %.critedge

.preheader174.3:                                  ; preds = %.preheader174.2
  %72 = load ptr, ptr %31, 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 %.preheader174.4, label %.critedge

.preheader174.4:                                  ; preds = %.preheader174.3
  %76 = load ptr, ptr %31, 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 %.preheader174.5, label %.critedge

.preheader174.5:                                  ; preds = %.preheader174.4
  %80 = load ptr, ptr %31, 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 %.preheader174.6, label %.critedge

.preheader174.6:                                  ; preds = %.preheader174.5
  %84 = load ptr, ptr %31, 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 %.preheader174.7, label %.critedge

.preheader174.7:                                  ; preds = %.preheader174.6
  %88 = load ptr, ptr %31, 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 = %.preheader174.7
  %92 = load ptr, ptr %31, 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)
  %.pr165 = load i8, ptr %58, align 4, !tbaa !36
  br label %.critedge

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

.preheader173.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 %.preheader173.2, label %.critedge2

.preheader173.2:                                  ; preds = %.preheader173.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 %.preheader173.3, label %.critedge2

.preheader173.3:                                  ; preds = %.preheader173.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 = %.preheader173.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)
  %.pr166.pre = load i8, ptr %58, align 4, !tbaa !36
  br label %.critedge2

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

104:                                              ; preds = %.critedge2
  %105 = getelementptr inbounds i8, ptr %0, i64 448
  %106 = load i32, ptr %105, align 8, !tbaa !37
  %107 = icmp ult i32 %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)
  %.pr167.pre = load i8, ptr %58, align 4, !tbaa !36
  br label %.critedge4

.critedge4:                                       ; preds = %.preheader.1, %.critedge2, %.critedge4thread-pre-split.loopexit
  %110 = phi i8 [ %.pr167.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 448
  %114 = load i32, ptr %113, align 8, !tbaa !37
  %115 = icmp ult i32 %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

.preheader176.1:                                  ; preds = %62
  %117 = load ptr, ptr %31, 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 %.preheader176.2, label %.critedge6

.preheader176.2:                                  ; preds = %.preheader176.1
  %121 = load ptr, ptr %31, 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 %.preheader176.3, label %.critedge6

.preheader176.3:                                  ; preds = %.preheader176.2
  %125 = load ptr, ptr %31, 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 %.preheader176.4, label %.critedge6

.preheader176.4:                                  ; preds = %.preheader176.3
  %129 = load ptr, ptr %31, 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 %.preheader176.5, label %.critedge6

.preheader176.5:                                  ; preds = %.preheader176.4
  %133 = load ptr, ptr %31, 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 %.preheader176.6, label %.critedge6

.preheader176.6:                                  ; preds = %.preheader176.5
  %137 = load ptr, ptr %31, 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 %.preheader176.7, label %.critedge6

.preheader176.7:                                  ; preds = %.preheader176.6
  %141 = load ptr, ptr %31, 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 = %.preheader176.7
  %145 = load ptr, ptr %31, 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)
  %.pr168 = load i8, ptr %58, align 4, !tbaa !36
  br label %.critedge6

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

.preheader175.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 %.preheader175.2, label %.critedge8

.preheader175.2:                                  ; preds = %.preheader175.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 %.preheader175.3, label %.critedge8

.preheader175.3:                                  ; preds = %.preheader175.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 = %.preheader175.3
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef null)
  br label %.critedge8.sink.split

.preheader179.1:                                  ; preds = %62
  %156 = load ptr, ptr %31, 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 %.preheader179.2, label %.critedge12

.preheader179.2:                                  ; preds = %.preheader179.1
  %160 = load ptr, ptr %31, 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 %.preheader179.3, label %.critedge12

.preheader179.3:                                  ; preds = %.preheader179.2
  %164 = load ptr, ptr %31, 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 = %.preheader179.3
  %168 = load ptr, ptr %31, 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)
  %.pre222 = load i8, ptr %58, align 4, !tbaa !36
  %170 = icmp eq i8 %.pre222, 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)
  %.pr169 = load i8, ptr %58, align 4, !tbaa !36
  br label %.critedge12

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

.preheader177.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 = %.preheader177.1
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef null)
  br label %.critedge8.sink.split

.preheader182.1:                                  ; preds = %62
  %185 = load ptr, ptr %31, 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 %.preheader182.2, label %.critedge16

.preheader182.2:                                  ; preds = %.preheader182.1
  %189 = load ptr, ptr %31, 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 %.preheader182.3, label %.critedge16

.preheader182.3:                                  ; preds = %.preheader182.2
  %193 = load ptr, ptr %31, 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 = %.preheader182.3
  %197 = load ptr, ptr %31, 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)
  %.pr170 = load i8, ptr %58, align 4, !tbaa !36
  br label %.critedge16

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

.preheader180.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 = %.preheader180.1
  tail call void @png_push_have_row(ptr noundef nonnull %0, ptr noundef null)
  br label %.critedge8.sink.split

.preheader183.1:                                  ; preds = %62
  %204 = load ptr, ptr %31, 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 = %.preheader183.1
  %208 = load ptr, ptr %31, 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)
  %.pr171 = load i8, ptr %58, align 4, !tbaa !36
  br label %.critedge22

.critedge22:                                      ; preds = %.preheader183.1, %.critedge20, %211, %.critedge22thread-pre-split
  %214 = phi i8 [ %.pr171, %.critedge22thread-pre-split ], [ %.pre, %.critedge20 ], [ %212, %211 ], [ %206, %.preheader183.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

.preheader184.1:                                  ; preds = %62
  %217 = load ptr, ptr %31, 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 = %.preheader184.1
  %221 = load ptr, ptr %31, 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)
  %.pr172 = load i8, ptr %58, align 4, !tbaa !36
  br label %.critedge24

.critedge24:                                      ; preds = %.preheader184.1, %.critedge24thread-pre-split
  %223 = phi i8 [ %.pr172, %.critedge24thread-pre-split ], [ %219, %.preheader184.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 %31, 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
  %.not164 = icmp eq i8 %229, 6
  br i1 %.not164, 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 %31, 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, %.preheader180.1, %.preheader177.1, %.preheader175.1, %.preheader175.2, %.preheader175.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 #2

declare void @png_do_read_transformations(ptr noundef) local_unnamed_addr #2

declare void @png_do_read_interlace(ptr noundef) local_unnamed_addr #2

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

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

attributes #0 = { mustprogress nocallback nofree 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, !7, i64 590}
!6 = !{!"png_struct_def", !7, i64 0, !9, i64 200, !9, i64 208, !9, i64 216, !9, i64 224, !9, i64 232, !9, i64 240, !9, i64 248, !9, i64 256, !9, i64 264, !9, i64 272, !7, i64 280, !7, i64 281, !10, i64 284, !10, i64 288, !10, i64 292, !11, i64 296, !9, i64 408, !12, i64 416, !10, i64 424, !10, i64 428, !10, i64 432, !10, i64 436, !10, i64 440, !10, i64 444, !10, i64 448, !10, i64 452, !10, i64 456, !12, i64 464, !12, i64 472, !10, i64 480, !10, i64 484, !9, i64 488, !9, i64 496, !9, i64 504, !9, i64 512, !9, i64 520, !9, i64 528, !13, i64 536, !10, i64 560, !10, i64 564, !9, i64 568, !14, i64 576, !14, i64 578, !7, i64 580, !7, i64 585, !7, i64 586, !7, i64 587, !7, i64 588, !7, i64 589, !7, i64 590, !7, i64 591, !7, i64 592, !7, i64 593, !7, i64 594, !7, i64 595, !7, i64 596, !14, i64 598, !7, i64 600, !15, i64 604, !16, i64 608, !16, i64 618, !9, i64 632, !10, i64 640, !10, i64 644, !10, i64 648, !15, i64 652, !15, i64 656, !9, i64 664, !9, i64 672, !9, i64 680, !9, i64 688, !9, i64 696, !9, i64 704, !17, i64 712, !17, i64 717, !9, i64 728, !16, i64 736, !9, i64 752, !9, i64 760, !9, i64 768, !9, i64 776, !9, i64 784, !9, i64 792, !9, i64 800, !9, i64 808, !9, i64 816, !10, i64 824, !10, i64 828, !12, i64 832, !12, i64 840, !12, i64 848, !12, i64 856, !10, i64 864, !10, i64 868, !12, i64 872, !12, i64 880, !9, i64 888, !9, i64 896, !9, i64 904, !9, i64 912, !9, i64 920, !7, i64 928, !7, i64 929, !9, i64 936, !9, i64 944, !9, i64 952, !9, i64 960, !9, i64 968, !9, i64 976, !10, i64 984, !9, i64 992, !9, i64 1000, !10, i64 1008, !9, i64 1016, !7, i64 1024, !14, i64 1026, !14, i64 1028, !14, i64 1030, !10, i64 1032, !10, i64 1036, !7, i64 1040, !9, i64 1048, !9, i64 1056, !9, i64 1064, !9, i64 1072, !9, i64 1080, !9, i64 1088, !9, i64 1096, !7, i64 1104, !10, i64 1108, !10, i64 1112, !10, i64 1116, !18, i64 1120, !10, i64 1152, !10, i64 1156, !9, i64 1160, !10, i64 1168}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"any pointer", !7, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!"z_stream_s", !9, i64 0, !10, i64 8, !12, i64 16, !9, i64 24, !10, i64 32, !12, i64 40, !9, i64 48, !9, i64 56, !9, i64 64, !9, i64 72, !9, i64 80, !10, i64 88, !12, i64 96, !12, i64 104}
!12 = !{!"long", !7, i64 0}
!13 = !{!"png_row_info_struct", !10, i64 0, !12, i64 8, !7, i64 16, !7, i64 17, !7, i64 18, !7, i64 19}
!14 = !{!"short", !7, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = !{!"png_color_16_struct", !7, i64 0, !14, i64 2, !14, i64 4, !14, i64 6, !14, i64 8}
!17 = !{!"png_color_8_struct", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4}
!18 = !{!"png_unknown_chunk_t", !7, i64 0, !9, i64 8, !12, i64 16, !7, i64 24}
!19 = !{!6, !7, i64 552}
!20 = !{!6, !10, i64 480}
!21 = !{!6, !10, i64 536}
!22 = !{!6, !7, i64 594}
!23 = !{!6, !7, i64 554}
!24 = !{!6, !7, i64 591}
!25 = !{!6, !7, i64 553}
!26 = !{!6, !7, i64 593}
!27 = !{!6, !7, i64 555}
!28 = !{!6, !12, i64 544}
!29 = !{!6, !9, i64 496}
!30 = !{!6, !9, i64 488}
!31 = !{!7, !7, i64 0}
!32 = !{!6, !12, i64 464}
!33 = !{!6, !10, i64 292}
!34 = !{!6, !10, i64 288}
!35 = !{!6, !7, i64 587}
!36 = !{!6, !7, i64 588}
!37 = !{!6, !10, i64 448}


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