; LLVM IR from modlfo/AudioEngine :: AudioEngine/JuceLibraryCode/modules/juce_graphics/image_formats/pnglib (IDAT)

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

%struct.png_struct_def = type { [1 x %struct.__jmp_buf_tag], ptr, ptr, i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i8, i32, i32, i32, i32, %struct.z_stream_s, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, i64, i32, i32, ptr, i16, i32, i16, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i16, i8, i32, %struct.png_color_16_struct, %struct.png_color_16_struct, ptr, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, %struct.png_color_8_struct, %struct.png_color_8_struct, ptr, %struct.png_color_16_struct, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i64, i64, i64, i64, i32, i32, ptr, ptr, i8, i8, ptr, ptr, ptr, ptr, ptr, i8, [29 x i8], i32, ptr, ptr, i32, i32, ptr, i8, i8, i16, i16, i32, i8, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i32, i32, i32, i64, %struct.png_unknown_chunk_t, i64, ptr, i64, i32, i32, ptr, [4 x ptr], %struct.png_colorspace }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.z_stream_s = type { ptr, i32, i64, ptr, i32, i64, ptr, ptr, ptr, ptr, ptr, i32, i64, i64 }
%struct.png_color_8_struct = type { i8, i8, i8, i8, i8 }
%struct.png_color_16_struct = type { i8, i16, i16, i16, i16 }
%struct.png_unknown_chunk_t = type { [5 x i8], ptr, i64, i8 }
%struct.png_colorspace = type { i32, %struct.png_xy, %struct.png_XYZ, i16, i16 }
%struct.png_xy = type { i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.png_XYZ = type { i32, i32, i32, i32, i32, i32, i32, i32, i32 }

@.str.10 = external hidden unnamed_addr constant [27 x i8], align 1

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @png_push_read_IDAT(ptr noalias noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca [4 x i8], align 1
  %4 = alloca [4 x i8], align 1
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %10 = load ptr, ptr %2, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct.png_struct_def, ptr %10, i32 0, i32 15
  %12 = load i32, ptr %11, align 4, !tbaa !9
  %13 = and i32 %12, 256
  %14 = icmp ne i32 %13, 0
  br i1 %14, label %86, label %15

15:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  %16 = load ptr, ptr %2, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.png_struct_def, ptr %16, i32 0, i32 105
  %18 = load i64, ptr %17, align 8, !tbaa !21
  %19 = icmp ult i64 %18, 8
  br i1 %19, label %20, label %22

20:                                               ; preds = %15
  %21 = load ptr, ptr %2, align 8, !tbaa !5
  call void @png_push_save_buffer(ptr noundef %21)
  store i32 1, ptr %5, align 4
  br label %83

22:                                               ; preds = %15
  %23 = load ptr, ptr %2, align 8, !tbaa !5
  %24 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 0
  call void @png_push_fill_buffer(ptr noundef %23, ptr noundef %24, i64 noundef 4)
  %25 = load ptr, ptr %2, align 8, !tbaa !5
  %26 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 0
  %27 = call i32 @png_get_uint_31(ptr noundef %25, ptr noundef %26)
  %28 = load ptr, ptr %2, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.png_struct_def, ptr %28, i32 0, i32 101
  store i32 %27, ptr %29, align 8, !tbaa !22
  %30 = load ptr, ptr %2, align 8, !tbaa !5
  call void @png_reset_crc(ptr noundef %30)
  %31 = load ptr, ptr %2, align 8, !tbaa !5
  %32 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 0
  call void @png_crc_read(ptr noundef %31, ptr noundef %32, i32 noundef 4)
  %33 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 0
  %34 = load i8, ptr %33, align 1, !tbaa !23
  %35 = zext i8 %34 to i32
  %36 = and i32 255, %35
  %37 = shl i32 %36, 24
  %38 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 1
  %39 = load i8, ptr %38, align 1, !tbaa !23
  %40 = zext i8 %39 to i32
  %41 = and i32 255, %40
  %42 = shl i32 %41, 16
  %43 = or i32 %37, %42
  %44 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 2
  %45 = load i8, ptr %44, align 1, !tbaa !23
  %46 = zext i8 %45 to i32
  %47 = and i32 255, %46
  %48 = shl i32 %47, 8
  %49 = or i32 %43, %48
  %50 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 3
  %51 = load i8, ptr %50, align 1, !tbaa !23
  %52 = zext i8 %51 to i32
  %53 = and i32 255, %52
  %54 = shl i32 %53, 0
  %55 = or i32 %49, %54
  %56 = load ptr, ptr %2, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.png_struct_def, ptr %56, i32 0, i32 44
  store i32 %55, ptr %57, align 8, !tbaa !24
  %58 = load ptr, ptr %2, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.png_struct_def, ptr %58, i32 0, i32 15
  %60 = load i32, ptr %59, align 4, !tbaa !9
  %61 = or i32 %60, 256
  store i32 %61, ptr %59, align 4, !tbaa !9
  %62 = load ptr, ptr %2, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.png_struct_def, ptr %62, i32 0, i32 44
  %64 = load i32, ptr %63, align 8, !tbaa !24
  %65 = icmp ne i32 %64, 1229209940
  br i1 %65, label %66, label %77

66:                                               ; preds = %22
  %67 = load ptr, ptr %2, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.png_struct_def, ptr %67, i32 0, i32 107
  store i32 1, ptr %68, align 8, !tbaa !25
  %69 = load ptr, ptr %2, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.png_struct_def, ptr %69, i32 0, i32 16
  %71 = load i32, ptr %70, align 8, !tbaa !26
  %72 = and i32 %71, 8
  %73 = icmp ne i32 %72, 0
  br i1 %73, label %76, label %74

74:                                               ; preds = %66
  %75 = load ptr, ptr %2, align 8, !tbaa !5
  call void @png_error(ptr noundef %75, ptr noundef @.str.10) #5
  unreachable

76:                                               ; preds = %66
  store i32 1, ptr %5, align 4
  br label %83

77:                                               ; preds = %22
  %78 = load ptr, ptr %2, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.png_struct_def, ptr %78, i32 0, i32 101
  %80 = load i32, ptr %79, align 8, !tbaa !22
  %81 = load ptr, ptr %2, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.png_struct_def, ptr %81, i32 0, i32 52
  store i32 %80, ptr %82, align 8, !tbaa !27
  store i32 0, ptr %5, align 4
  br label %83

83:                                               ; preds = %77, %76, %20
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  %84 = load i32, ptr %5, align 4
  switch i32 %84, label %228 [
    i32 0, label %85
    i32 1, label %227
  ]

85:                                               ; preds = %83
  br label %86

86:                                               ; preds = %85, %1
  %87 = load ptr, ptr %2, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.png_struct_def, ptr %87, i32 0, i32 52
  %89 = load i32, ptr %88, align 8, !tbaa !27
  %90 = icmp ne i32 %89, 0
  br i1 %90, label %91, label %144

91:                                               ; preds = %86
  %92 = load ptr, ptr %2, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.png_struct_def, ptr %92, i32 0, i32 103
  %94 = load i64, ptr %93, align 8, !tbaa !28
  %95 = icmp ne i64 %94, 0
  br i1 %95, label %96, label %144

96:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %97 = load ptr, ptr %2, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.png_struct_def, ptr %97, i32 0, i32 103
  %99 = load i64, ptr %98, align 8, !tbaa !28
  store i64 %99, ptr %6, align 8, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %100 = load ptr, ptr %2, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.png_struct_def, ptr %100, i32 0, i32 52
  %102 = load i32, ptr %101, align 8, !tbaa !27
  store i32 %102, ptr %7, align 4, !tbaa !30
  %103 = load i32, ptr %7, align 4, !tbaa !30
  %104 = zext i32 %103 to i64
  %105 = load i64, ptr %6, align 8, !tbaa !29
  %106 = icmp ult i64 %104, %105
  br i1 %106, label %107, label %110

107:                                              ; preds = %96
  %108 = load i32, ptr %7, align 4, !tbaa !30
  %109 = zext i32 %108 to i64
  store i64 %109, ptr %6, align 8, !tbaa !29
  br label %113

110:                                              ; preds = %96
  %111 = load i64, ptr %6, align 8, !tbaa !29
  %112 = trunc i64 %111 to i32
  store i32 %112, ptr %7, align 4, !tbaa !30
  br label %113

113:                                              ; preds = %110, %107
  %114 = load ptr, ptr %2, align 8, !tbaa !5
  %115 = load ptr, ptr %2, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.png_struct_def, ptr %115, i32 0, i32 97
  %117 = load ptr, ptr %116, align 8, !tbaa !31
  %118 = load i64, ptr %6, align 8, !tbaa !29
  call void @png_calculate_crc(ptr noundef %114, ptr noundef %117, i64 noundef %118)
  %119 = load ptr, ptr %2, align 8, !tbaa !5
  %120 = load ptr, ptr %2, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.png_struct_def, ptr %120, i32 0, i32 97
  %122 = load ptr, ptr %121, align 8, !tbaa !31
  %123 = load i64, ptr %6, align 8, !tbaa !29
  call void @png_process_IDAT_data(ptr noundef %119, ptr noundef %122, i64 noundef %123)
  %124 = load i32, ptr %7, align 4, !tbaa !30
  %125 = load ptr, ptr %2, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.png_struct_def, ptr %125, i32 0, i32 52
  %127 = load i32, ptr %126, align 8, !tbaa !27
  %128 = sub i32 %127, %124
  store i32 %128, ptr %126, align 8, !tbaa !27
  %129 = load i64, ptr %6, align 8, !tbaa !29
  %130 = load ptr, ptr %2, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.png_struct_def, ptr %130, i32 0, i32 105
  %132 = load i64, ptr %131, align 8, !tbaa !21
  %133 = sub i64 %132, %129
  store i64 %133, ptr %131, align 8, !tbaa !21
  %134 = load i64, ptr %6, align 8, !tbaa !29
  %135 = load ptr, ptr %2, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.png_struct_def, ptr %135, i32 0, i32 103
  %137 = load i64, ptr %136, align 8, !tbaa !28
  %138 = sub i64 %137, %134
  store i64 %138, ptr %136, align 8, !tbaa !28
  %139 = load i64, ptr %6, align 8, !tbaa !29
  %140 = load ptr, ptr %2, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.png_struct_def, ptr %140, i32 0, i32 97
  %142 = load ptr, ptr %141, align 8, !tbaa !31
  %143 = getelementptr inbounds i8, ptr %142, i64 %139
  store ptr %143, ptr %141, align 8, !tbaa !31
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  br label %144

144:                                              ; preds = %113, %91, %86
  %145 = load ptr, ptr %2, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.png_struct_def, ptr %145, i32 0, i32 52
  %147 = load i32, ptr %146, align 8, !tbaa !27
  %148 = icmp ne i32 %147, 0
  br i1 %148, label %149, label %202

149:                                              ; preds = %144
  %150 = load ptr, ptr %2, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.png_struct_def, ptr %150, i32 0, i32 106
  %152 = load i64, ptr %151, align 8, !tbaa !32
  %153 = icmp ne i64 %152, 0
  br i1 %153, label %154, label %202

154:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %155 = load ptr, ptr %2, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.png_struct_def, ptr %155, i32 0, i32 106
  %157 = load i64, ptr %156, align 8, !tbaa !32
  store i64 %157, ptr %8, align 8, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %158 = load ptr, ptr %2, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.png_struct_def, ptr %158, i32 0, i32 52
  %160 = load i32, ptr %159, align 8, !tbaa !27
  store i32 %160, ptr %9, align 4, !tbaa !30
  %161 = load i32, ptr %9, align 4, !tbaa !30
  %162 = zext i32 %161 to i64
  %163 = load i64, ptr %8, align 8, !tbaa !29
  %164 = icmp ult i64 %162, %163
  br i1 %164, label %165, label %168

165:                                              ; preds = %154
  %166 = load i32, ptr %9, align 4, !tbaa !30
  %167 = zext i32 %166 to i64
  store i64 %167, ptr %8, align 8, !tbaa !29
  br label %171

168:                                              ; preds = %154
  %169 = load i64, ptr %8, align 8, !tbaa !29
  %170 = trunc i64 %169 to i32
  store i32 %170, ptr %9, align 4, !tbaa !30
  br label %171

171:                                              ; preds = %168, %165
  %172 = load ptr, ptr %2, align 8, !tbaa !5
  %173 = load ptr, ptr %2, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.png_struct_def, ptr %173, i32 0, i32 99
  %175 = load ptr, ptr %174, align 8, !tbaa !33
  %176 = load i64, ptr %8, align 8, !tbaa !29
  call void @png_calculate_crc(ptr noundef %172, ptr noundef %175, i64 noundef %176)
  %177 = load ptr, ptr %2, align 8, !tbaa !5
  %178 = load ptr, ptr %2, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.png_struct_def, ptr %178, i32 0, i32 99
  %180 = load ptr, ptr %179, align 8, !tbaa !33
  %181 = load i64, ptr %8, align 8, !tbaa !29
  call void @png_process_IDAT_data(ptr noundef %177, ptr noundef %180, i64 noundef %181)
  %182 = load i32, ptr %9, align 4, !tbaa !30
  %183 = load ptr, ptr %2, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.png_struct_def, ptr %183, i32 0, i32 52
  %185 = load i32, ptr %184, align 8, !tbaa !27
  %186 = sub i32 %185, %182
  store i32 %186, ptr %184, align 8, !tbaa !27
  %187 = load i64, ptr %8, align 8, !tbaa !29
  %188 = load ptr, ptr %2, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.png_struct_def, ptr %188, i32 0, i32 105
  %190 = load i64, ptr %189, align 8, !tbaa !21
  %191 = sub i64 %190, %187
  store i64 %191, ptr %189, align 8, !tbaa !21
  %192 = load i64, ptr %8, align 8, !tbaa !29
  %193 = load ptr, ptr %2, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.png_struct_def, ptr %193, i32 0, i32 106
  %195 = load i64, ptr %194, align 8, !tbaa !32
  %196 = sub i64 %195, %192
  store i64 %196, ptr %194, align 8, !tbaa !32
  %197 = load i64, ptr %8, align 8, !tbaa !29
  %198 = load ptr, ptr %2, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.png_struct_def, ptr %198, i32 0, i32 99
  %200 = load ptr, ptr %199, align 8, !tbaa !33
  %201 = getelementptr inbounds i8, ptr %200, i64 %197
  store ptr %201, ptr %199, align 8, !tbaa !33
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br label %202

202:                                              ; preds = %171, %149, %144
  %203 = load ptr, ptr %2, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.png_struct_def, ptr %203, i32 0, i32 52
  %205 = load i32, ptr %204, align 8, !tbaa !27
  %206 = icmp ne i32 %205, 0
  br i1 %206, label %227, label %207

207:                                              ; preds = %202
  %208 = load ptr, ptr %2, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.png_struct_def, ptr %208, i32 0, i32 105
  %210 = load i64, ptr %209, align 8, !tbaa !21
  %211 = icmp ult i64 %210, 4
  br i1 %211, label %212, label %214

212:                                              ; preds = %207
  %213 = load ptr, ptr %2, align 8, !tbaa !5
  call void @png_push_save_buffer(ptr noundef %213)
  br label %227

214:                                              ; preds = %207
  %215 = load ptr, ptr %2, align 8, !tbaa !5
  %216 = call i32 @png_crc_finish(ptr noundef %215, i32 noundef 0)
  %217 = load ptr, ptr %2, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.png_struct_def, ptr %217, i32 0, i32 15
  %219 = load i32, ptr %218, align 4, !tbaa !9
  %220 = and i32 %219, -257
  store i32 %220, ptr %218, align 4, !tbaa !9
  %221 = load ptr, ptr %2, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.png_struct_def, ptr %221, i32 0, i32 15
  %223 = load i32, ptr %222, align 4, !tbaa !9
  %224 = or i32 %223, 8
  store i32 %224, ptr %222, align 4, !tbaa !9
  %225 = load ptr, ptr %2, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.png_struct_def, ptr %225, i32 0, i32 18
  store i32 0, ptr %226, align 8, !tbaa !34
  br label %227

227:                                              ; preds = %214, %212, %202, %83
  ret void

228:                                              ; preds = %83
  unreachable
}

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

declare i32 @png_get_uint_31(ptr noundef, ptr noundef) #3

declare void @png_reset_crc(ptr noundef) #3

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

declare void @png_calculate_crc(ptr noundef, ptr noundef, i64 noundef) #3

declare i32 @png_crc_finish(ptr noundef, i32 noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local void @png_process_IDAT_data(ptr noalias noundef, ptr noundef, i64 noundef) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { noreturn }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !12, i64 300}
!10 = !{!"png_struct_def", !7, i64 0, !6, i64 200, !6, i64 208, !11, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !7, i64 296, !7, i64 297, !12, i64 300, !12, i64 304, !12, i64 308, !12, i64 312, !13, i64 320, !6, i64 432, !12, i64 440, !12, i64 444, !12, i64 448, !12, i64 452, !12, i64 456, !12, i64 460, !12, i64 464, !12, i64 468, !12, i64 472, !12, i64 476, !12, i64 480, !12, i64 484, !12, i64 488, !12, i64 492, !12, i64 496, !12, i64 500, !12, i64 504, !12, i64 508, !12, i64 512, !12, i64 516, !11, i64 520, !12, i64 528, !12, i64 532, !12, i64 536, !6, i64 544, !6, i64 552, !6, i64 560, !6, i64 568, !6, i64 576, !6, i64 584, !11, i64 592, !12, i64 600, !12, i64 604, !6, i64 608, !14, i64 616, !12, i64 620, !14, i64 624, !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, !7, i64 637, !7, i64 638, !7, i64 639, !14, i64 640, !7, i64 642, !12, i64 644, !15, i64 648, !15, i64 658, !6, i64 672, !12, i64 680, !12, i64 684, !12, i64 688, !12, i64 692, !6, i64 696, !6, i64 704, !6, i64 712, !6, i64 720, !6, i64 728, !6, i64 736, !16, i64 744, !16, i64 749, !6, i64 760, !15, i64 768, !6, i64 784, !6, i64 792, !6, i64 800, !6, i64 808, !6, i64 816, !6, i64 824, !6, i64 832, !6, i64 840, !6, i64 848, !12, i64 856, !12, i64 860, !11, i64 864, !11, i64 872, !11, i64 880, !11, i64 888, !12, i64 896, !12, i64 900, !6, i64 904, !6, i64 912, !7, i64 920, !7, i64 921, !6, i64 928, !6, i64 936, !6, i64 944, !6, i64 952, !6, i64 960, !7, i64 968, !7, i64 969, !12, i64 1000, !6, i64 1008, !6, i64 1016, !12, i64 1024, !12, i64 1028, !6, i64 1032, !7, i64 1040, !7, i64 1041, !14, i64 1042, !14, i64 1044, !12, i64 1048, !7, i64 1052, !6, i64 1056, !6, i64 1064, !6, i64 1072, !6, i64 1080, !6, i64 1088, !6, i64 1096, !6, i64 1104, !7, i64 1112, !12, i64 1116, !12, i64 1120, !12, i64 1124, !11, i64 1128, !17, i64 1136, !11, i64 1168, !6, i64 1176, !11, i64 1184, !12, i64 1192, !12, i64 1196, !6, i64 1200, !7, i64 1208, !18, i64 1240}
!11 = !{!"long", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"z_stream_s", !6, i64 0, !12, i64 8, !11, i64 16, !6, i64 24, !12, i64 32, !11, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !12, i64 88, !11, i64 96, !11, i64 104}
!14 = !{!"short", !7, i64 0}
!15 = !{!"png_color_16_struct", !7, i64 0, !14, i64 2, !14, i64 4, !14, i64 6, !14, i64 8}
!16 = !{!"png_color_8_struct", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4}
!17 = !{!"png_unknown_chunk_t", !7, i64 0, !6, i64 8, !11, i64 16, !7, i64 24}
!18 = !{!"png_colorspace", !12, i64 0, !19, i64 4, !20, i64 36, !14, i64 72, !14, i64 74}
!19 = !{!"png_xy", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28}
!20 = !{!"png_XYZ", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32}
!21 = !{!10, !11, i64 880}
!22 = !{!10, !12, i64 856}
!23 = !{!7, !7, i64 0}
!24 = !{!10, !12, i64 536}
!25 = !{!10, !12, i64 896}
!26 = !{!10, !12, i64 304}
!27 = !{!10, !12, i64 600}
!28 = !{!10, !11, i64 864}
!29 = !{!11, !11, i64 0}
!30 = !{!12, !12, i64 0}
!31 = !{!10, !6, i64 824}
!32 = !{!10, !11, i64 888}
!33 = !{!10, !6, i64 840}
!34 = !{!10, !12, i64 312}


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

@.str.10 = external hidden unnamed_addr constant [27 x i8], align 1

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @png_push_read_IDAT(ptr noalias noundef %0) local_unnamed_addr #0 {
  %2 = alloca [4 x i8], align 1
  %3 = alloca [4 x i8], align 1
  %4 = getelementptr inbounds i8, ptr %0, i64 300
  %5 = load i32, ptr %4, align 4, !tbaa !5
  %6 = and i32 %5, 256
  %.not = icmp eq i32 %6, 0
  br i1 %.not, label %7, label %._crit_edge

._crit_edge:                                      ; preds = %1
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 600
  %.pre = load i32, ptr %.phi.trans.insert, align 8, !tbaa !20
  br label %44

7:                                                ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  %8 = getelementptr inbounds i8, ptr %0, i64 880
  %9 = load i64, ptr %8, align 8, !tbaa !21
  %10 = icmp ult i64 %9, 8
  br i1 %10, label %11, label %12

11:                                               ; preds = %7
  tail call void @png_push_save_buffer(ptr noundef nonnull %0)
  br label %.thread

12:                                               ; preds = %7
  call void @png_push_fill_buffer(ptr noundef nonnull %0, ptr noundef nonnull %2, i64 noundef 4)
  %13 = call i32 @png_get_uint_31(ptr noundef nonnull %0, ptr noundef nonnull %2) #5
  %14 = getelementptr inbounds i8, ptr %0, i64 856
  store i32 %13, ptr %14, align 8, !tbaa !22
  call void @png_reset_crc(ptr noundef nonnull %0) #5
  call void @png_crc_read(ptr noundef nonnull %0, ptr noundef nonnull %3, i32 noundef 4) #5
  %15 = load i8, ptr %3, align 1, !tbaa !23
  %16 = zext i8 %15 to i32
  %17 = shl nuw i32 %16, 24
  %18 = getelementptr inbounds i8, ptr %3, i64 1
  %19 = load i8, ptr %18, align 1, !tbaa !23
  %20 = zext i8 %19 to i32
  %21 = shl nuw nsw i32 %20, 16
  %22 = or disjoint i32 %21, %17
  %23 = getelementptr inbounds i8, ptr %3, i64 2
  %24 = load i8, ptr %23, align 1, !tbaa !23
  %25 = zext i8 %24 to i32
  %26 = shl nuw nsw i32 %25, 8
  %27 = or disjoint i32 %22, %26
  %28 = getelementptr inbounds i8, ptr %3, i64 3
  %29 = load i8, ptr %28, align 1, !tbaa !23
  %30 = zext i8 %29 to i32
  %31 = or disjoint i32 %27, %30
  %32 = getelementptr inbounds i8, ptr %0, i64 536
  store i32 %31, ptr %32, align 8, !tbaa !24
  %33 = load i32, ptr %4, align 4, !tbaa !5
  %34 = or i32 %33, 256
  store i32 %34, ptr %4, align 4, !tbaa !5
  %.not77 = icmp eq i32 %31, 1229209940
  br i1 %.not77, label %41, label %35

35:                                               ; preds = %12
  %36 = getelementptr inbounds i8, ptr %0, i64 896
  store i32 1, ptr %36, align 8, !tbaa !25
  %37 = getelementptr inbounds i8, ptr %0, i64 304
  %38 = load i32, ptr %37, align 8, !tbaa !26
  %39 = and i32 %38, 8
  %.not78 = icmp eq i32 %39, 0
  br i1 %.not78, label %40, label %.thread

40:                                               ; preds = %35
  call void @png_error(ptr noundef nonnull %0, ptr noundef nonnull @.str.10) #6
  unreachable

.thread:                                          ; preds = %11, %35
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  br label %.thread99

41:                                               ; preds = %12
  %42 = load i32, ptr %14, align 8, !tbaa !22
  %43 = getelementptr inbounds i8, ptr %0, i64 600
  store i32 %42, ptr %43, align 8, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  br label %44

44:                                               ; preds = %._crit_edge, %41
  %45 = phi i32 [ %.pre, %._crit_edge ], [ %42, %41 ]
  %46 = getelementptr inbounds i8, ptr %0, i64 600
  %.not79 = icmp eq i32 %45, 0
  br i1 %.not79, label %.thread91, label %47

47:                                               ; preds = %44
  %48 = getelementptr inbounds i8, ptr %0, i64 864
  %49 = load i64, ptr %48, align 8, !tbaa !27
  %.not80 = icmp eq i64 %49, 0
  br i1 %.not80, label %.thread95, label %50

50:                                               ; preds = %47
  %51 = zext i32 %45 to i64
  %52 = icmp ugt i64 %49, %51
  %53 = trunc nuw i64 %49 to i32
  %.069 = call i64 @llvm.umin.i64(i64 %49, i64 %51)
  %.068 = select i1 %52, i32 %45, i32 %53
  %54 = getelementptr inbounds i8, ptr %0, i64 824
  %55 = load ptr, ptr %54, align 8, !tbaa !28
  call void @png_calculate_crc(ptr noundef nonnull %0, ptr noundef %55, i64 noundef %.069) #5
  %56 = load ptr, ptr %54, align 8, !tbaa !28
  call void @png_process_IDAT_data(ptr noundef nonnull %0, ptr noundef %56, i64 noundef %.069)
  %57 = load i32, ptr %46, align 8, !tbaa !20
  %58 = sub i32 %57, %.068
  store i32 %58, ptr %46, align 8, !tbaa !20
  %59 = getelementptr inbounds i8, ptr %0, i64 880
  %60 = load i64, ptr %59, align 8, !tbaa !21
  %61 = sub i64 %60, %.069
  store i64 %61, ptr %59, align 8, !tbaa !21
  %62 = load i64, ptr %48, align 8, !tbaa !27
  %63 = sub i64 %62, %.069
  store i64 %63, ptr %48, align 8, !tbaa !27
  %64 = load ptr, ptr %54, align 8, !tbaa !28
  %65 = getelementptr inbounds i8, ptr %64, i64 %.069
  store ptr %65, ptr %54, align 8, !tbaa !28
  %.not81 = icmp eq i32 %58, 0
  br i1 %.not81, label %.thread91, label %.thread95

.thread95:                                        ; preds = %47, %50
  %.pr98 = phi i32 [ %58, %50 ], [ %45, %47 ]
  %66 = getelementptr inbounds i8, ptr %0, i64 888
  %67 = load i64, ptr %66, align 8, !tbaa !29
  %.not82 = icmp eq i64 %67, 0
  br i1 %.not82, label %.thread99, label %68

68:                                               ; preds = %.thread95
  %69 = zext i32 %.pr98 to i64
  %70 = icmp ugt i64 %67, %69
  %71 = trunc nuw i64 %67 to i32
  %.067 = call i64 @llvm.umin.i64(i64 %67, i64 %69)
  %.0 = select i1 %70, i32 %.pr98, i32 %71
  %72 = getelementptr inbounds i8, ptr %0, i64 840
  %73 = load ptr, ptr %72, align 8, !tbaa !30
  call void @png_calculate_crc(ptr noundef nonnull %0, ptr noundef %73, i64 noundef %.067) #5
  %74 = load ptr, ptr %72, align 8, !tbaa !30
  call void @png_process_IDAT_data(ptr noundef nonnull %0, ptr noundef %74, i64 noundef %.067)
  %75 = load i32, ptr %46, align 8, !tbaa !20
  %76 = sub i32 %75, %.0
  store i32 %76, ptr %46, align 8, !tbaa !20
  %77 = getelementptr inbounds i8, ptr %0, i64 880
  %78 = load <2 x i64>, ptr %77, align 8, !tbaa !31
  %79 = insertelement <2 x i64> poison, i64 %.067, i64 0
  %80 = shufflevector <2 x i64> %79, <2 x i64> poison, <2 x i32> zeroinitializer
  %81 = sub <2 x i64> %78, %80
  store <2 x i64> %81, ptr %77, align 8, !tbaa !31
  %82 = load ptr, ptr %72, align 8, !tbaa !30
  %83 = getelementptr inbounds i8, ptr %82, i64 %.067
  store ptr %83, ptr %72, align 8, !tbaa !30
  %84 = icmp eq i32 %75, %.0
  br i1 %84, label %.thread91, label %.thread99

.thread91:                                        ; preds = %44, %50, %68
  %85 = getelementptr inbounds i8, ptr %0, i64 880
  %86 = load i64, ptr %85, align 8, !tbaa !21
  %87 = icmp ult i64 %86, 4
  br i1 %87, label %88, label %89

88:                                               ; preds = %.thread91
  call void @png_push_save_buffer(ptr noundef nonnull %0)
  br label %.thread99

89:                                               ; preds = %.thread91
  %90 = call i32 @png_crc_finish(ptr noundef nonnull %0, i32 noundef 0) #5
  %91 = load i32, ptr %4, align 4, !tbaa !5
  %92 = and i32 %91, -265
  %93 = or disjoint i32 %92, 8
  store i32 %93, ptr %4, align 4, !tbaa !5
  %94 = getelementptr inbounds i8, ptr %0, i64 312
  store i32 0, ptr %94, align 8, !tbaa !32
  br label %.thread99

.thread99:                                        ; preds = %.thread95, %.thread, %89, %88, %68
  ret void
}

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

declare i32 @png_get_uint_31(ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @png_reset_crc(ptr noundef) local_unnamed_addr #3

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

declare void @png_calculate_crc(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

declare i32 @png_crc_finish(ptr noundef, i32 noundef) local_unnamed_addr #3

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umin.i64(i64, i64) #4

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }
attributes #6 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !11, i64 300}
!6 = !{!"png_struct_def", !7, i64 0, !9, i64 200, !9, i64 208, !10, i64 216, !9, i64 224, !9, i64 232, !9, i64 240, !9, i64 248, !9, i64 256, !9, i64 264, !9, i64 272, !9, i64 280, !9, i64 288, !7, i64 296, !7, i64 297, !11, i64 300, !11, i64 304, !11, i64 308, !11, i64 312, !12, i64 320, !9, i64 432, !11, i64 440, !11, i64 444, !11, i64 448, !11, i64 452, !11, i64 456, !11, i64 460, !11, i64 464, !11, i64 468, !11, i64 472, !11, i64 476, !11, i64 480, !11, i64 484, !11, i64 488, !11, i64 492, !11, i64 496, !11, i64 500, !11, i64 504, !11, i64 508, !11, i64 512, !11, i64 516, !10, i64 520, !11, i64 528, !11, i64 532, !11, i64 536, !9, i64 544, !9, i64 552, !9, i64 560, !9, i64 568, !9, i64 576, !9, i64 584, !10, i64 592, !11, i64 600, !11, i64 604, !9, i64 608, !13, i64 616, !11, i64 620, !13, i64 624, !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, !7, i64 637, !7, i64 638, !7, i64 639, !13, i64 640, !7, i64 642, !11, i64 644, !14, i64 648, !14, i64 658, !9, i64 672, !11, i64 680, !11, i64 684, !11, i64 688, !11, i64 692, !9, i64 696, !9, i64 704, !9, i64 712, !9, i64 720, !9, i64 728, !9, i64 736, !15, i64 744, !15, i64 749, !9, i64 760, !14, i64 768, !9, i64 784, !9, i64 792, !9, i64 800, !9, i64 808, !9, i64 816, !9, i64 824, !9, i64 832, !9, i64 840, !9, i64 848, !11, i64 856, !11, i64 860, !10, i64 864, !10, i64 872, !10, i64 880, !10, i64 888, !11, i64 896, !11, i64 900, !9, i64 904, !9, i64 912, !7, i64 920, !7, i64 921, !9, i64 928, !9, i64 936, !9, i64 944, !9, i64 952, !9, i64 960, !7, i64 968, !7, i64 969, !11, i64 1000, !9, i64 1008, !9, i64 1016, !11, i64 1024, !11, i64 1028, !9, i64 1032, !7, i64 1040, !7, i64 1041, !13, i64 1042, !13, i64 1044, !11, i64 1048, !7, i64 1052, !9, i64 1056, !9, i64 1064, !9, i64 1072, !9, i64 1080, !9, i64 1088, !9, i64 1096, !9, i64 1104, !7, i64 1112, !11, i64 1116, !11, i64 1120, !11, i64 1124, !10, i64 1128, !16, i64 1136, !10, i64 1168, !9, i64 1176, !10, i64 1184, !11, i64 1192, !11, i64 1196, !9, i64 1200, !7, i64 1208, !17, i64 1240}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"any pointer", !7, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!"z_stream_s", !9, i64 0, !11, i64 8, !10, i64 16, !9, i64 24, !11, i64 32, !10, i64 40, !9, i64 48, !9, i64 56, !9, i64 64, !9, i64 72, !9, i64 80, !11, i64 88, !10, i64 96, !10, i64 104}
!13 = !{!"short", !7, i64 0}
!14 = !{!"png_color_16_struct", !7, i64 0, !13, i64 2, !13, i64 4, !13, i64 6, !13, i64 8}
!15 = !{!"png_color_8_struct", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4}
!16 = !{!"png_unknown_chunk_t", !7, i64 0, !9, i64 8, !10, i64 16, !7, i64 24}
!17 = !{!"png_colorspace", !11, i64 0, !18, i64 4, !19, i64 36, !13, i64 72, !13, i64 74}
!18 = !{!"png_xy", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28}
!19 = !{!"png_XYZ", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32}
!20 = !{!6, !11, i64 600}
!21 = !{!6, !10, i64 880}
!22 = !{!6, !11, i64 856}
!23 = !{!7, !7, i64 0}
!24 = !{!6, !11, i64 536}
!25 = !{!6, !11, i64 896}
!26 = !{!6, !11, i64 304}
!27 = !{!6, !10, i64 864}
!28 = !{!6, !9, i64 824}
!29 = !{!6, !10, i64 888}
!30 = !{!6, !9, i64 840}
!31 = !{!10, !10, i64 0}
!32 = !{!6, !11, i64 312}


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