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

; 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.11 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [31 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @png_process_IDAT_data(ptr noalias noundef %0, ptr noundef %1, i64 noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i64 %2, ptr %6, align 8, !tbaa !9
  %9 = load i64, ptr %6, align 8, !tbaa !9
  %10 = icmp ugt i64 %9, 0
  br i1 %10, label %11, label %14

11:                                               ; preds = %3
  %12 = load ptr, ptr %5, align 8, !tbaa !5
  %13 = icmp eq ptr %12, null
  br i1 %13, label %14, label %16

14:                                               ; preds = %11, %3
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_error(ptr noundef %15, ptr noundef @.str.11) #4
  unreachable

16:                                               ; preds = %11
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.png_struct_def, ptr %18, i32 0, i32 19
  %20 = getelementptr inbounds %struct.z_stream_s, ptr %19, i32 0, i32 0
  store ptr %17, ptr %20, align 8, !tbaa !11
  %21 = load i64, ptr %6, align 8, !tbaa !9
  %22 = trunc i64 %21 to i32
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.png_struct_def, ptr %23, i32 0, i32 19
  %25 = getelementptr inbounds %struct.z_stream_s, ptr %24, i32 0, i32 1
  store i32 %22, ptr %25, align 8, !tbaa !22
  br label %26

26:                                               ; preds = %174, %16
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.png_struct_def, ptr %27, i32 0, i32 19
  %29 = getelementptr inbounds %struct.z_stream_s, ptr %28, i32 0, i32 1
  %30 = load i32, ptr %29, align 8, !tbaa !22
  %31 = icmp ugt i32 %30, 0
  br i1 %31, label %32, label %39

32:                                               ; preds = %26
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.png_struct_def, ptr %33, i32 0, i32 16
  %35 = load i32, ptr %34, align 8, !tbaa !23
  %36 = and i32 %35, 8
  %37 = icmp ne i32 %36, 0
  %38 = xor i1 %37, true
  br label %39

39:                                               ; preds = %32, %26
  %40 = phi i1 [ false, %26 ], [ %38, %32 ]
  br i1 %40, label %41, label %175

41:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.png_struct_def, ptr %42, i32 0, i32 19
  %44 = getelementptr inbounds %struct.z_stream_s, ptr %43, i32 0, i32 4
  %45 = load i32, ptr %44, align 8, !tbaa !24
  %46 = icmp ugt i32 %45, 0
  br i1 %46, label %89, label %47

47:                                               ; preds = %41
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.png_struct_def, ptr %48, i32 0, i32 66
  %50 = load i8, ptr %49, align 2, !tbaa !25
  %51 = zext i8 %50 to i32
  %52 = icmp sge i32 %51, 8
  br i1 %52, label %53, label %64

53:                                               ; preds = %47
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.png_struct_def, ptr %54, i32 0, i32 42
  %56 = load i32, ptr %55, align 8, !tbaa !26
  %57 = zext i32 %56 to i64
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.png_struct_def, ptr %58, i32 0, i32 66
  %60 = load i8, ptr %59, align 2, !tbaa !25
  %61 = zext i8 %60 to i64
  %62 = lshr i64 %61, 3
  %63 = mul i64 %57, %62
  br label %76

64:                                               ; preds = %47
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.png_struct_def, ptr %65, i32 0, i32 42
  %67 = load i32, ptr %66, align 8, !tbaa !26
  %68 = zext i32 %67 to i64
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.png_struct_def, ptr %69, i32 0, i32 66
  %71 = load i8, ptr %70, align 2, !tbaa !25
  %72 = zext i8 %71 to i64
  %73 = mul i64 %68, %72
  %74 = add i64 %73, 7
  %75 = lshr i64 %74, 3
  br label %76

76:                                               ; preds = %64, %53
  %77 = phi i64 [ %63, %53 ], [ %75, %64 ]
  %78 = add i64 %77, 1
  %79 = trunc i64 %78 to i32
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.png_struct_def, ptr %80, i32 0, i32 19
  %82 = getelementptr inbounds %struct.z_stream_s, ptr %81, i32 0, i32 4
  store i32 %79, ptr %82, align 8, !tbaa !24
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.png_struct_def, ptr %83, i32 0, i32 46
  %85 = load ptr, ptr %84, align 8, !tbaa !27
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.png_struct_def, ptr %86, i32 0, i32 19
  %88 = getelementptr inbounds %struct.z_stream_s, ptr %87, i32 0, i32 3
  store ptr %85, ptr %88, align 8, !tbaa !28
  br label %89

89:                                               ; preds = %76, %41
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.png_struct_def, ptr %90, i32 0, i32 19
  %92 = call i32 @z_inflate(ptr noundef %91, i32 noundef 2)
  store i32 %92, ptr %7, align 4, !tbaa !29
  %93 = load i32, ptr %7, align 4, !tbaa !29
  %94 = icmp ne i32 %93, 0
  br i1 %94, label %95, label %123

95:                                               ; preds = %89
  %96 = load i32, ptr %7, align 4, !tbaa !29
  %97 = icmp ne i32 %96, 1
  br i1 %97, label %98, label %123

98:                                               ; preds = %95
  %99 = load ptr, ptr %4, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.png_struct_def, ptr %99, i32 0, i32 16
  %101 = load i32, ptr %100, align 8, !tbaa !23
  %102 = or i32 %101, 8
  store i32 %102, ptr %100, align 8, !tbaa !23
  %103 = load ptr, ptr %4, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.png_struct_def, ptr %103, i32 0, i32 18
  store i32 0, ptr %104, align 8, !tbaa !30
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.png_struct_def, ptr %105, i32 0, i32 43
  %107 = load i32, ptr %106, align 4, !tbaa !31
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.png_struct_def, ptr %108, i32 0, i32 39
  %110 = load i32, ptr %109, align 8, !tbaa !32
  %111 = icmp uge i32 %107, %110
  br i1 %111, label %118, label %112

112:                                              ; preds = %98
  %113 = load ptr, ptr %4, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.png_struct_def, ptr %113, i32 0, i32 61
  %115 = load i8, ptr %114, align 1, !tbaa !33
  %116 = zext i8 %115 to i32
  %117 = icmp sgt i32 %116, 6
  br i1 %117, label %118, label %120

118:                                              ; preds = %112, %98
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_warning(ptr noundef %119, ptr noundef @.str.12)
  br label %122

120:                                              ; preds = %112
  %121 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_error(ptr noundef %121, ptr noundef @.str.13) #4
  unreachable

122:                                              ; preds = %118
  store i32 1, ptr %8, align 4
  br label %172

123:                                              ; preds = %95, %89
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.png_struct_def, ptr %124, i32 0, i32 19
  %126 = getelementptr inbounds %struct.z_stream_s, ptr %125, i32 0, i32 3
  %127 = load ptr, ptr %126, align 8, !tbaa !28
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.png_struct_def, ptr %128, i32 0, i32 46
  %130 = load ptr, ptr %129, align 8, !tbaa !27
  %131 = icmp ne ptr %127, %130
  br i1 %131, label %132, label %163

132:                                              ; preds = %123
  %133 = load ptr, ptr %4, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.png_struct_def, ptr %133, i32 0, i32 43
  %135 = load i32, ptr %134, align 4, !tbaa !31
  %136 = load ptr, ptr %4, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.png_struct_def, ptr %136, i32 0, i32 39
  %138 = load i32, ptr %137, align 8, !tbaa !32
  %139 = icmp uge i32 %135, %138
  br i1 %139, label %146, label %140

140:                                              ; preds = %132
  %141 = load ptr, ptr %4, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.png_struct_def, ptr %141, i32 0, i32 61
  %143 = load i8, ptr %142, align 1, !tbaa !33
  %144 = zext i8 %143 to i32
  %145 = icmp sgt i32 %144, 6
  br i1 %145, label %146, label %154

146:                                              ; preds = %140, %132
  %147 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_warning(ptr noundef %147, ptr noundef @.str.14)
  %148 = load ptr, ptr %4, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.png_struct_def, ptr %148, i32 0, i32 16
  %150 = load i32, ptr %149, align 8, !tbaa !23
  %151 = or i32 %150, 8
  store i32 %151, ptr %149, align 8, !tbaa !23
  %152 = load ptr, ptr %4, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.png_struct_def, ptr %152, i32 0, i32 18
  store i32 0, ptr %153, align 8, !tbaa !30
  store i32 1, ptr %8, align 4
  br label %172

154:                                              ; preds = %140
  %155 = load ptr, ptr %4, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.png_struct_def, ptr %155, i32 0, i32 19
  %157 = getelementptr inbounds %struct.z_stream_s, ptr %156, i32 0, i32 4
  %158 = load i32, ptr %157, align 8, !tbaa !24
  %159 = icmp eq i32 %158, 0
  br i1 %159, label %160, label %162

160:                                              ; preds = %154
  %161 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_push_process_row(ptr noundef %161)
  br label %162

162:                                              ; preds = %160, %154
  br label %163

163:                                              ; preds = %162, %123
  %164 = load i32, ptr %7, align 4, !tbaa !29
  %165 = icmp eq i32 %164, 1
  br i1 %165, label %166, label %171

166:                                              ; preds = %163
  %167 = load ptr, ptr %4, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.png_struct_def, ptr %167, i32 0, i32 16
  %169 = load i32, ptr %168, align 8, !tbaa !23
  %170 = or i32 %169, 8
  store i32 %170, ptr %168, align 8, !tbaa !23
  br label %171

171:                                              ; preds = %166, %163
  store i32 0, ptr %8, align 4
  br label %172

172:                                              ; preds = %171, %146, %122
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  %173 = load i32, ptr %8, align 4
  switch i32 %173, label %184 [
    i32 0, label %174
    i32 1, label %183
  ]

174:                                              ; preds = %172
  br label %26, !llvm.loop !34

175:                                              ; preds = %39
  %176 = load ptr, ptr %4, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.png_struct_def, ptr %176, i32 0, i32 19
  %178 = getelementptr inbounds %struct.z_stream_s, ptr %177, i32 0, i32 1
  %179 = load i32, ptr %178, align 8, !tbaa !22
  %180 = icmp ugt i32 %179, 0
  br i1 %180, label %181, label %183

181:                                              ; preds = %175
  %182 = load ptr, ptr %4, align 8, !tbaa !5
  call void @png_warning(ptr noundef %182, ptr noundef @.str.15)
  br label %183

183:                                              ; preds = %181, %175, %172
  ret void

184:                                              ; preds = %172
  unreachable
}

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn }
attributes #5 = { 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, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !6, i64 320}
!12 = !{!"png_struct_def", !7, i64 0, !6, i64 200, !6, i64 208, !10, 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, !13, i64 300, !13, i64 304, !13, i64 308, !13, i64 312, !14, i64 320, !6, i64 432, !13, i64 440, !13, i64 444, !13, i64 448, !13, i64 452, !13, i64 456, !13, i64 460, !13, i64 464, !13, i64 468, !13, i64 472, !13, i64 476, !13, i64 480, !13, i64 484, !13, i64 488, !13, i64 492, !13, i64 496, !13, i64 500, !13, i64 504, !13, i64 508, !13, i64 512, !13, i64 516, !10, i64 520, !13, i64 528, !13, i64 532, !13, i64 536, !6, i64 544, !6, i64 552, !6, i64 560, !6, i64 568, !6, i64 576, !6, i64 584, !10, i64 592, !13, i64 600, !13, i64 604, !6, i64 608, !15, i64 616, !13, i64 620, !15, 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, !15, i64 640, !7, i64 642, !13, i64 644, !16, i64 648, !16, i64 658, !6, i64 672, !13, i64 680, !13, i64 684, !13, i64 688, !13, i64 692, !6, i64 696, !6, i64 704, !6, i64 712, !6, i64 720, !6, i64 728, !6, i64 736, !17, i64 744, !17, i64 749, !6, i64 760, !16, 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, !13, i64 856, !13, i64 860, !10, i64 864, !10, i64 872, !10, i64 880, !10, i64 888, !13, i64 896, !13, 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, !13, i64 1000, !6, i64 1008, !6, i64 1016, !13, i64 1024, !13, i64 1028, !6, i64 1032, !7, i64 1040, !7, i64 1041, !15, i64 1042, !15, i64 1044, !13, 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, !13, i64 1116, !13, i64 1120, !13, i64 1124, !10, i64 1128, !18, i64 1136, !10, i64 1168, !6, i64 1176, !10, i64 1184, !13, i64 1192, !13, i64 1196, !6, i64 1200, !7, i64 1208, !19, i64 1240}
!13 = !{!"int", !7, i64 0}
!14 = !{!"z_stream_s", !6, i64 0, !13, i64 8, !10, i64 16, !6, i64 24, !13, i64 32, !10, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !13, i64 88, !10, i64 96, !10, i64 104}
!15 = !{!"short", !7, i64 0}
!16 = !{!"png_color_16_struct", !7, i64 0, !15, i64 2, !15, i64 4, !15, i64 6, !15, 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, !6, i64 8, !10, i64 16, !7, i64 24}
!19 = !{!"png_colorspace", !13, i64 0, !20, i64 4, !21, i64 36, !15, i64 72, !15, i64 74}
!20 = !{!"png_xy", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28}
!21 = !{!"png_XYZ", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32}
!22 = !{!12, !13, i64 328}
!23 = !{!12, !13, i64 304}
!24 = !{!12, !13, i64 352}
!25 = !{!12, !7, i64 634}
!26 = !{!12, !13, i64 528}
!27 = !{!12, !6, i64 552}
!28 = !{!12, !6, i64 344}
!29 = !{!13, !13, i64 0}
!30 = !{!12, !13, i64 312}
!31 = !{!12, !13, i64 532}
!32 = !{!12, !13, i64 512}
!33 = !{!12, !7, i64 629}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}


; 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.11 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [31 x i8], align 1

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

; Function Attrs: nounwind uwtable
define dso_local void @png_process_IDAT_data(ptr noalias noundef %0, ptr noundef %1, i64 noundef %2) local_unnamed_addr #1 {
  %4 = icmp eq i64 %2, 0
  %5 = icmp eq ptr %1, null
  %or.cond = or i1 %5, %4
  br i1 %or.cond, label %6, label %7

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

7:                                                ; preds = %3
  %8 = getelementptr inbounds i8, ptr %0, i64 320
  store ptr %1, ptr %8, align 8, !tbaa !5
  %9 = trunc i64 %2 to i32
  %10 = getelementptr inbounds i8, ptr %0, i64 328
  store i32 %9, ptr %10, align 8, !tbaa !20
  %.not57 = icmp eq i32 %9, 0
  br i1 %.not57, label %.critedge.thread, label %.lr.ph

.lr.ph:                                           ; preds = %7
  %11 = getelementptr inbounds i8, ptr %0, i64 304
  %12 = getelementptr inbounds i8, ptr %0, i64 352
  %13 = getelementptr inbounds i8, ptr %0, i64 634
  %14 = getelementptr inbounds i8, ptr %0, i64 528
  %15 = getelementptr inbounds i8, ptr %0, i64 552
  %16 = getelementptr inbounds i8, ptr %0, i64 344
  %17 = getelementptr inbounds i8, ptr %0, i64 532
  %18 = getelementptr inbounds i8, ptr %0, i64 512
  %19 = getelementptr inbounds i8, ptr %0, i64 629
  br label %20

thread-pre-split:                                 ; preds = %76, %74
  %.pr = load i32, ptr %10, align 8, !tbaa !20
  %.not = icmp eq i32 %.pr, 0
  br i1 %.not, label %.critedge.thread, label %20

20:                                               ; preds = %.lr.ph, %thread-pre-split
  %21 = load i32, ptr %11, align 8, !tbaa !21
  %22 = and i32 %21, 8
  %.not47 = icmp eq i32 %22, 0
  br i1 %.not47, label %23, label %.critedge

23:                                               ; preds = %20
  %24 = load i32, ptr %12, align 8, !tbaa !22
  %.not49 = icmp eq i32 %24, 0
  br i1 %.not49, label %25, label %44

25:                                               ; preds = %23
  %26 = load i8, ptr %13, align 2, !tbaa !23
  %27 = icmp ugt i8 %26, 7
  %28 = load i32, ptr %14, align 8, !tbaa !24
  %29 = zext i32 %28 to i64
  br i1 %27, label %30, label %34

30:                                               ; preds = %25
  %31 = lshr i8 %26, 3
  %32 = zext nneg i8 %31 to i64
  %33 = mul nuw nsw i64 %29, %32
  br label %39

34:                                               ; preds = %25
  %35 = zext nneg i8 %26 to i64
  %36 = mul nuw nsw i64 %29, %35
  %37 = add nuw nsw i64 %36, 7
  %38 = lshr i64 %37, 3
  br label %39

39:                                               ; preds = %34, %30
  %40 = phi i64 [ %33, %30 ], [ %38, %34 ]
  %41 = trunc i64 %40 to i32
  %42 = add i32 %41, 1
  store i32 %42, ptr %12, align 8, !tbaa !22
  %43 = load ptr, ptr %15, align 8, !tbaa !25
  store ptr %43, ptr %16, align 8, !tbaa !26
  br label %44

44:                                               ; preds = %39, %23
  %45 = tail call i32 @z_inflate(ptr noundef nonnull %8, i32 noundef 2) #4
  %or.cond3 = icmp ugt i32 %45, 1
  br i1 %or.cond3, label %46, label %57

46:                                               ; preds = %44
  %47 = load i32, ptr %11, align 8, !tbaa !21
  %48 = or i32 %47, 8
  store i32 %48, ptr %11, align 8, !tbaa !21
  %49 = getelementptr inbounds i8, ptr %0, i64 312
  store i32 0, ptr %49, align 8, !tbaa !27
  %50 = load i32, ptr %17, align 4, !tbaa !28
  %51 = load i32, ptr %18, align 8, !tbaa !29
  %.not52 = icmp ult i32 %50, %51
  br i1 %.not52, label %52, label %55

52:                                               ; preds = %46
  %53 = load i8, ptr %19, align 1, !tbaa !30
  %54 = icmp ugt i8 %53, 6
  br i1 %54, label %55, label %56

55:                                               ; preds = %52, %46
  tail call void @png_warning(ptr noundef nonnull %0, ptr noundef nonnull @.str.12) #4
  br label %.critedge.thread

56:                                               ; preds = %52
  tail call void @png_error(ptr noundef nonnull %0, ptr noundef nonnull @.str.13) #3
  unreachable

57:                                               ; preds = %44
  %58 = load ptr, ptr %16, align 8, !tbaa !26
  %59 = load ptr, ptr %15, align 8, !tbaa !25
  %.not50 = icmp eq ptr %58, %59
  br i1 %.not50, label %74, label %60

60:                                               ; preds = %57
  %61 = load i32, ptr %17, align 4, !tbaa !28
  %62 = load i32, ptr %18, align 8, !tbaa !29
  %.not51 = icmp ult i32 %61, %62
  br i1 %.not51, label %63, label %66

63:                                               ; preds = %60
  %64 = load i8, ptr %19, align 1, !tbaa !30
  %65 = icmp ugt i8 %64, 6
  br i1 %65, label %66, label %70

66:                                               ; preds = %63, %60
  tail call void @png_warning(ptr noundef nonnull %0, ptr noundef nonnull @.str.14) #4
  %67 = load i32, ptr %11, align 8, !tbaa !21
  %68 = or i32 %67, 8
  store i32 %68, ptr %11, align 8, !tbaa !21
  %69 = getelementptr inbounds i8, ptr %0, i64 312
  store i32 0, ptr %69, align 8, !tbaa !27
  br label %.critedge.thread

70:                                               ; preds = %63
  %71 = load i32, ptr %12, align 8, !tbaa !22
  %72 = icmp eq i32 %71, 0
  br i1 %72, label %73, label %74

73:                                               ; preds = %70
  tail call void @png_push_process_row(ptr noundef nonnull %0)
  br label %74

74:                                               ; preds = %70, %73, %57
  %75 = icmp eq i32 %45, 1
  br i1 %75, label %76, label %thread-pre-split

76:                                               ; preds = %74
  %77 = load i32, ptr %11, align 8, !tbaa !21
  %78 = or i32 %77, 8
  store i32 %78, ptr %11, align 8, !tbaa !21
  br label %thread-pre-split

.critedge:                                        ; preds = %20
  tail call void @png_warning(ptr noundef nonnull %0, ptr noundef nonnull @.str.15) #4
  br label %.critedge.thread

.critedge.thread:                                 ; preds = %thread-pre-split, %7, %55, %66, %.critedge
  ret void
}

declare i32 @z_inflate(ptr noundef, i32 noundef) local_unnamed_addr #2

declare void @png_warning(ptr noundef, ptr noundef) local_unnamed_addr #2

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

attributes #0 = { 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 #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 = { noreturn nounwind }
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, !9, i64 320}
!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 328}
!21 = !{!6, !11, i64 304}
!22 = !{!6, !11, i64 352}
!23 = !{!6, !7, i64 634}
!24 = !{!6, !11, i64 528}
!25 = !{!6, !9, i64 552}
!26 = !{!6, !9, i64 344}
!27 = !{!6, !11, i64 312}
!28 = !{!6, !11, i64 532}
!29 = !{!6, !11, i64 512}
!30 = !{!6, !7, i64 629}


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