; LLVM IR from modlfo/AudioEngine :: AudioEngine/JuceLibraryCode/modules/juce_graphics/image_formats/jpglib (controller)

; 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.jpeg_decompress_struct = type { ptr, ptr, ptr, ptr, i8, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, i8, i8, i32, i8, i8, i8, i32, i8, i32, i8, i8, i8, i32, i32, i32, i32, i32, i32, ptr, i32, i32, i32, i32, i32, ptr, [4 x ptr], [4 x ptr], [4 x ptr], i32, ptr, i8, i8, [16 x i8], [16 x i8], [16 x i8], i32, i8, i8, i8, i8, i16, i16, i8, i8, i8, ptr, i32, i32, i32, i32, ptr, i32, [4 x ptr], i32, i32, i32, [10 x i32], i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.jpeg_memory_mgr = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i64, i64 }
%struct.my_coef_controller3 = type { %struct.jpeg_d_coef_controller, i32, i32, i32, [10 x ptr], [10 x ptr], ptr }
%struct.jpeg_d_coef_controller = type { ptr, ptr, ptr, ptr, ptr }
%struct.jpeg_component_info = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i32, i32, i32, i32, i32, i32, ptr, ptr }

; Function Attrs: nounwind uwtable
define dso_local void @jinit_d_coef_controller(ptr noundef %0, i8 noundef zeroext %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca i8, align 1
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i8 %1, ptr %4, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %11, i32 0, i32 1
  %13 = load ptr, ptr %12, align 8, !tbaa !10
  %14 = getelementptr inbounds %struct.jpeg_memory_mgr, ptr %13, i32 0, i32 0
  %15 = load ptr, ptr %14, align 8, !tbaa !15
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = call ptr %15(ptr noundef %16, i32 noundef 1, i64 noundef 224)
  store ptr %17, ptr %5, align 8, !tbaa !5
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = load ptr, ptr %3, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %19, i32 0, i32 79
  store ptr %18, ptr %20, align 8, !tbaa !18
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.my_coef_controller3, ptr %21, i32 0, i32 0
  %23 = getelementptr inbounds %struct.jpeg_d_coef_controller, ptr %22, i32 0, i32 0
  store ptr @start_input_pass, ptr %23, align 8, !tbaa !19
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.my_coef_controller3, ptr %24, i32 0, i32 0
  %26 = getelementptr inbounds %struct.jpeg_d_coef_controller, ptr %25, i32 0, i32 2
  store ptr @start_output_pass, ptr %26, align 8, !tbaa !22
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.my_coef_controller3, ptr %27, i32 0, i32 6
  store ptr null, ptr %28, align 8, !tbaa !23
  %29 = load i8, ptr %4, align 1, !tbaa !9
  %30 = icmp ne i8 %29, 0
  br i1 %30, label %31, label %104

31:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  store i32 0, ptr %6, align 4, !tbaa !24
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %32, i32 0, i32 44
  %34 = load ptr, ptr %33, align 8, !tbaa !25
  store ptr %34, ptr %8, align 8, !tbaa !5
  br label %35

35:                                               ; preds = %86, %31
  %36 = load i32, ptr %6, align 4, !tbaa !24
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %37, i32 0, i32 9
  %39 = load i32, ptr %38, align 8, !tbaa !26
  %40 = icmp slt i32 %36, %39
  br i1 %40, label %41, label %91

41:                                               ; preds = %35
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.jpeg_component_info, ptr %42, i32 0, i32 3
  %44 = load i32, ptr %43, align 4, !tbaa !27
  store i32 %44, ptr %7, align 4, !tbaa !24
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %45, i32 0, i32 45
  %47 = load i8, ptr %46, align 8, !tbaa !29
  %48 = icmp ne i8 %47, 0
  br i1 %48, label %49, label %52

49:                                               ; preds = %41
  %50 = load i32, ptr %7, align 4, !tbaa !24
  %51 = mul nsw i32 %50, 3
  store i32 %51, ptr %7, align 4, !tbaa !24
  br label %52

52:                                               ; preds = %49, %41
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %53, i32 0, i32 1
  %55 = load ptr, ptr %54, align 8, !tbaa !10
  %56 = getelementptr inbounds %struct.jpeg_memory_mgr, ptr %55, i32 0, i32 5
  %57 = load ptr, ptr %56, align 8, !tbaa !30
  %58 = load ptr, ptr %3, align 8, !tbaa !5
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.jpeg_component_info, ptr %59, i32 0, i32 7
  %61 = load i32, ptr %60, align 4, !tbaa !31
  %62 = zext i32 %61 to i64
  %63 = load ptr, ptr %8, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.jpeg_component_info, ptr %63, i32 0, i32 2
  %65 = load i32, ptr %64, align 8, !tbaa !32
  %66 = sext i32 %65 to i64
  %67 = call i64 @jround_up(i64 noundef %62, i64 noundef %66)
  %68 = trunc i64 %67 to i32
  %69 = load ptr, ptr %8, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.jpeg_component_info, ptr %69, i32 0, i32 8
  %71 = load i32, ptr %70, align 8, !tbaa !33
  %72 = zext i32 %71 to i64
  %73 = load ptr, ptr %8, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.jpeg_component_info, ptr %73, i32 0, i32 3
  %75 = load i32, ptr %74, align 4, !tbaa !27
  %76 = sext i32 %75 to i64
  %77 = call i64 @jround_up(i64 noundef %72, i64 noundef %76)
  %78 = trunc i64 %77 to i32
  %79 = load i32, ptr %7, align 4, !tbaa !24
  %80 = call ptr %57(ptr noundef %58, i32 noundef 1, i8 noundef zeroext 1, i32 noundef %68, i32 noundef %78, i32 noundef %79)
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.my_coef_controller3, ptr %81, i32 0, i32 5
  %83 = load i32, ptr %6, align 4, !tbaa !24
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [10 x ptr], ptr %82, i64 0, i64 %84
  store ptr %80, ptr %85, align 8, !tbaa !5
  br label %86

86:                                               ; preds = %52
  %87 = load i32, ptr %6, align 4, !tbaa !24
  %88 = add nsw i32 %87, 1
  store i32 %88, ptr %6, align 4, !tbaa !24
  %89 = load ptr, ptr %8, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.jpeg_component_info, ptr %89, i32 1
  store ptr %90, ptr %8, align 8, !tbaa !5
  br label %35, !llvm.loop !34

91:                                               ; preds = %35
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.my_coef_controller3, ptr %92, i32 0, i32 0
  %94 = getelementptr inbounds %struct.jpeg_d_coef_controller, ptr %93, i32 0, i32 1
  store ptr @consume_data, ptr %94, align 8, !tbaa !36
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.my_coef_controller3, ptr %95, i32 0, i32 0
  %97 = getelementptr inbounds %struct.jpeg_d_coef_controller, ptr %96, i32 0, i32 3
  store ptr @decompress_data, ptr %97, align 8, !tbaa !37
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.my_coef_controller3, ptr %98, i32 0, i32 5
  %100 = getelementptr inbounds [10 x ptr], ptr %99, i64 0, i64 0
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.my_coef_controller3, ptr %101, i32 0, i32 0
  %103 = getelementptr inbounds %struct.jpeg_d_coef_controller, ptr %102, i32 0, i32 4
  store ptr %100, ptr %103, align 8, !tbaa !38
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  br label %138

104:                                              ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  %105 = load ptr, ptr %3, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %105, i32 0, i32 1
  %107 = load ptr, ptr %106, align 8, !tbaa !10
  %108 = getelementptr inbounds %struct.jpeg_memory_mgr, ptr %107, i32 0, i32 1
  %109 = load ptr, ptr %108, align 8, !tbaa !39
  %110 = load ptr, ptr %3, align 8, !tbaa !5
  %111 = call ptr %109(ptr noundef %110, i32 noundef 1, i64 noundef 1280)
  store ptr %111, ptr %9, align 8, !tbaa !5
  store i32 0, ptr %10, align 4, !tbaa !24
  br label %112

112:                                              ; preds = %125, %104
  %113 = load i32, ptr %10, align 4, !tbaa !24
  %114 = icmp slt i32 %113, 10
  br i1 %114, label %115, label %128

115:                                              ; preds = %112
  %116 = load ptr, ptr %9, align 8, !tbaa !5
  %117 = load i32, ptr %10, align 4, !tbaa !24
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [64 x i16], ptr %116, i64 %118
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.my_coef_controller3, ptr %120, i32 0, i32 4
  %122 = load i32, ptr %10, align 4, !tbaa !24
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [10 x ptr], ptr %121, i64 0, i64 %123
  store ptr %119, ptr %124, align 8, !tbaa !5
  br label %125

125:                                              ; preds = %115
  %126 = load i32, ptr %10, align 4, !tbaa !24
  %127 = add nsw i32 %126, 1
  store i32 %127, ptr %10, align 4, !tbaa !24
  br label %112, !llvm.loop !40

128:                                              ; preds = %112
  %129 = load ptr, ptr %5, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.my_coef_controller3, ptr %129, i32 0, i32 0
  %131 = getelementptr inbounds %struct.jpeg_d_coef_controller, ptr %130, i32 0, i32 1
  store ptr @dummy_consume_data, ptr %131, align 8, !tbaa !36
  %132 = load ptr, ptr %5, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.my_coef_controller3, ptr %132, i32 0, i32 0
  %134 = getelementptr inbounds %struct.jpeg_d_coef_controller, ptr %133, i32 0, i32 3
  store ptr @decompress_onepass, ptr %134, align 8, !tbaa !37
  %135 = load ptr, ptr %5, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.my_coef_controller3, ptr %135, i32 0, i32 0
  %137 = getelementptr inbounds %struct.jpeg_d_coef_controller, ptr %136, i32 0, i32 4
  store ptr null, ptr %137, align 8, !tbaa !38
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  br label %138

138:                                              ; preds = %128, %91
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  ret void
}

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

; Function Attrs: nounwind uwtable
declare hidden void @start_input_pass(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @start_output_pass(ptr noundef) #0

declare i64 @jround_up(i64 noundef, i64 noundef) #2

; Function Attrs: nounwind uwtable
declare hidden i32 @consume_data(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @decompress_data(ptr noundef, ptr noundef) #0

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

; Function Attrs: nounwind uwtable
declare hidden i32 @dummy_consume_data(ptr noundef) #0

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !6, i64 8}
!11 = !{!"jpeg_decompress_struct", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !7, i64 32, !12, i64 36, !6, i64 40, !12, i64 48, !12, i64 52, !12, i64 56, !12, i64 60, !12, i64 64, !12, i64 68, !12, i64 72, !13, i64 80, !7, i64 88, !7, i64 89, !12, i64 92, !7, i64 96, !7, i64 97, !7, i64 98, !12, i64 100, !7, i64 104, !12, i64 108, !7, i64 112, !7, i64 113, !7, i64 114, !12, i64 116, !12, i64 120, !12, i64 124, !12, i64 128, !12, i64 132, !12, i64 136, !6, i64 144, !12, i64 152, !12, i64 156, !12, i64 160, !12, i64 164, !12, i64 168, !6, i64 176, !7, i64 184, !7, i64 216, !7, i64 248, !12, i64 280, !6, i64 288, !7, i64 296, !7, i64 297, !7, i64 298, !7, i64 314, !7, i64 330, !12, i64 348, !7, i64 352, !7, i64 353, !7, i64 354, !7, i64 355, !14, i64 356, !14, i64 358, !7, i64 360, !7, i64 361, !7, i64 362, !6, i64 368, !12, i64 376, !12, i64 380, !12, i64 384, !12, i64 388, !6, i64 392, !12, i64 400, !7, i64 408, !12, i64 440, !12, i64 444, !12, i64 448, !7, i64 452, !12, i64 492, !12, i64 496, !12, i64 500, !12, i64 504, !12, i64 508, !6, i64 512, !6, i64 520, !6, i64 528, !6, i64 536, !6, i64 544, !6, i64 552, !6, i64 560, !6, i64 568, !6, i64 576, !6, i64 584, !6, i64 592}
!12 = !{!"int", !7, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{!16, !6, i64 0}
!16 = !{!"jpeg_memory_mgr", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !17, i64 88, !17, i64 96}
!17 = !{!"long", !7, i64 0}
!18 = !{!11, !6, i64 528}
!19 = !{!20, !6, i64 0}
!20 = !{!"", !21, i64 0, !12, i64 40, !12, i64 44, !12, i64 48, !7, i64 56, !7, i64 136, !6, i64 216}
!21 = !{!"jpeg_d_coef_controller", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!22 = !{!20, !6, i64 16}
!23 = !{!20, !6, i64 216}
!24 = !{!12, !12, i64 0}
!25 = !{!11, !6, i64 288}
!26 = !{!11, !12, i64 56}
!27 = !{!28, !12, i64 12}
!28 = !{!"", !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, !12, i64 36, !12, i64 40, !12, i64 44, !7, i64 48, !12, i64 52, !12, i64 56, !12, i64 60, !12, i64 64, !12, i64 68, !12, i64 72, !6, i64 80, !6, i64 88}
!29 = !{!11, !7, i64 296}
!30 = !{!16, !6, i64 40}
!31 = !{!28, !12, i64 28}
!32 = !{!28, !12, i64 8}
!33 = !{!28, !12, i64 32}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}
!36 = !{!20, !6, i64 8}
!37 = !{!20, !6, i64 24}
!38 = !{!20, !6, i64 32}
!39 = !{!16, !6, i64 8}
!40 = distinct !{!40, !35}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: nounwind uwtable
define dso_local void @jinit_d_coef_controller(ptr noundef %0, i8 noundef zeroext %1) local_unnamed_addr #0 {
  %3 = getelementptr inbounds i8, ptr %0, i64 8
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %5 = load ptr, ptr %4, align 8, !tbaa !13
  %6 = tail call ptr %5(ptr noundef %0, i32 noundef 1, i64 noundef 224) #2
  %7 = getelementptr inbounds i8, ptr %0, i64 528
  store ptr %6, ptr %7, align 8, !tbaa !16
  store ptr @start_input_pass, ptr %6, align 8, !tbaa !17
  %8 = getelementptr inbounds i8, ptr %6, i64 16
  store ptr @start_output_pass, ptr %8, align 8, !tbaa !20
  %9 = getelementptr inbounds i8, ptr %6, i64 216
  store ptr null, ptr %9, align 8, !tbaa !21
  %.not = icmp eq i8 %1, 0
  br i1 %.not, label %50, label %10

10:                                               ; preds = %2
  %11 = getelementptr inbounds i8, ptr %0, i64 56
  %12 = load i32, ptr %11, align 8, !tbaa !22
  %13 = icmp sgt i32 %12, 0
  br i1 %13, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %10
  %14 = getelementptr inbounds i8, ptr %0, i64 288
  %15 = load ptr, ptr %14, align 8, !tbaa !23
  %16 = getelementptr inbounds i8, ptr %0, i64 296
  %17 = getelementptr inbounds i8, ptr %6, i64 136
  br label %18

18:                                               ; preds = %.lr.ph, %18
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %18 ]
  %.04043 = phi ptr [ %15, %.lr.ph ], [ %43, %18 ]
  %19 = getelementptr inbounds i8, ptr %.04043, i64 12
  %20 = load i32, ptr %19, align 4, !tbaa !24
  %21 = load i8, ptr %16, align 8, !tbaa !26
  %.not42 = icmp eq i8 %21, 0
  %22 = mul nsw i32 %20, 3
  %spec.select = select i1 %.not42, i32 %20, i32 %22
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %23, i64 40
  %25 = load ptr, ptr %24, align 8, !tbaa !27
  %26 = getelementptr inbounds i8, ptr %.04043, i64 28
  %27 = load i32, ptr %26, align 4, !tbaa !28
  %28 = zext i32 %27 to i64
  %29 = getelementptr inbounds i8, ptr %.04043, i64 8
  %30 = load i32, ptr %29, align 8, !tbaa !29
  %31 = sext i32 %30 to i64
  %32 = tail call i64 @jround_up(i64 noundef %28, i64 noundef %31) #2
  %33 = trunc i64 %32 to i32
  %34 = getelementptr inbounds i8, ptr %.04043, i64 32
  %35 = load i32, ptr %34, align 8, !tbaa !30
  %36 = zext i32 %35 to i64
  %37 = load i32, ptr %19, align 4, !tbaa !24
  %38 = sext i32 %37 to i64
  %39 = tail call i64 @jround_up(i64 noundef %36, i64 noundef %38) #2
  %40 = trunc i64 %39 to i32
  %41 = tail call ptr %25(ptr noundef nonnull %0, i32 noundef 1, i8 noundef zeroext 1, i32 noundef %33, i32 noundef %40, i32 noundef %spec.select) #2
  %42 = getelementptr inbounds [10 x ptr], ptr %17, i64 0, i64 %indvars.iv
  store ptr %41, ptr %42, align 8, !tbaa !31
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %43 = getelementptr inbounds i8, ptr %.04043, i64 96
  %44 = load i32, ptr %11, align 8, !tbaa !22
  %45 = sext i32 %44 to i64
  %46 = icmp slt i64 %indvars.iv.next, %45
  br i1 %46, label %18, label %._crit_edge, !llvm.loop !32

._crit_edge:                                      ; preds = %18, %10
  %47 = getelementptr inbounds i8, ptr %6, i64 8
  store ptr @consume_data, ptr %47, align 8, !tbaa !34
  %48 = getelementptr inbounds i8, ptr %6, i64 24
  store ptr @decompress_data, ptr %48, align 8, !tbaa !35
  %49 = getelementptr inbounds i8, ptr %6, i64 136
  br label %76

50:                                               ; preds = %2
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  %52 = getelementptr inbounds i8, ptr %51, i64 8
  %53 = load ptr, ptr %52, align 8, !tbaa !36
  %54 = tail call ptr %53(ptr noundef nonnull %0, i32 noundef 1, i64 noundef 1280) #2
  %55 = getelementptr inbounds i8, ptr %6, i64 56
  store ptr %54, ptr %55, align 8, !tbaa !31
  %56 = getelementptr inbounds i8, ptr %54, i64 128
  %57 = getelementptr inbounds i8, ptr %6, i64 64
  store ptr %56, ptr %57, align 8, !tbaa !31
  %58 = getelementptr inbounds i8, ptr %54, i64 256
  %59 = getelementptr inbounds i8, ptr %6, i64 72
  store ptr %58, ptr %59, align 8, !tbaa !31
  %60 = getelementptr inbounds i8, ptr %54, i64 384
  %61 = getelementptr inbounds i8, ptr %6, i64 80
  store ptr %60, ptr %61, align 8, !tbaa !31
  %62 = getelementptr inbounds i8, ptr %54, i64 512
  %63 = getelementptr inbounds i8, ptr %6, i64 88
  store ptr %62, ptr %63, align 8, !tbaa !31
  %64 = getelementptr inbounds i8, ptr %54, i64 640
  %65 = getelementptr inbounds i8, ptr %6, i64 96
  store ptr %64, ptr %65, align 8, !tbaa !31
  %66 = getelementptr inbounds i8, ptr %54, i64 768
  %67 = getelementptr inbounds i8, ptr %6, i64 104
  store ptr %66, ptr %67, align 8, !tbaa !31
  %68 = getelementptr inbounds i8, ptr %54, i64 896
  %69 = getelementptr inbounds i8, ptr %6, i64 112
  store ptr %68, ptr %69, align 8, !tbaa !31
  %70 = getelementptr inbounds i8, ptr %54, i64 1024
  %71 = getelementptr inbounds i8, ptr %6, i64 120
  store ptr %70, ptr %71, align 8, !tbaa !31
  %72 = getelementptr inbounds i8, ptr %54, i64 1152
  %73 = getelementptr inbounds i8, ptr %6, i64 128
  store ptr %72, ptr %73, align 8, !tbaa !31
  %74 = getelementptr inbounds i8, ptr %6, i64 8
  store ptr @dummy_consume_data, ptr %74, align 8, !tbaa !34
  %75 = getelementptr inbounds i8, ptr %6, i64 24
  store ptr @decompress_onepass, ptr %75, align 8, !tbaa !35
  br label %76

76:                                               ; preds = %50, %._crit_edge
  %.sink = phi ptr [ null, %50 ], [ %49, %._crit_edge ]
  %77 = getelementptr inbounds i8, ptr %6, i64 32
  store ptr %.sink, ptr %77, align 8, !tbaa !37
  ret void
}

; Function Attrs: nounwind uwtable
declare hidden void @start_input_pass(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @start_output_pass(ptr noundef) #0

declare i64 @jround_up(i64 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden i32 @consume_data(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @decompress_data(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @dummy_consume_data(ptr noundef) #0

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 8}
!6 = !{!"jpeg_decompress_struct", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !8, i64 32, !10, i64 36, !7, i64 40, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !11, i64 80, !8, i64 88, !8, i64 89, !10, i64 92, !8, i64 96, !8, i64 97, !8, i64 98, !10, i64 100, !8, i64 104, !10, i64 108, !8, i64 112, !8, i64 113, !8, i64 114, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !10, i64 132, !10, i64 136, !7, i64 144, !10, i64 152, !10, i64 156, !10, i64 160, !10, i64 164, !10, i64 168, !7, i64 176, !8, i64 184, !8, i64 216, !8, i64 248, !10, i64 280, !7, i64 288, !8, i64 296, !8, i64 297, !8, i64 298, !8, i64 314, !8, i64 330, !10, i64 348, !8, i64 352, !8, i64 353, !8, i64 354, !8, i64 355, !12, i64 356, !12, i64 358, !8, i64 360, !8, i64 361, !8, i64 362, !7, i64 368, !10, i64 376, !10, i64 380, !10, i64 384, !10, i64 388, !7, i64 392, !10, i64 400, !8, i64 408, !10, i64 440, !10, i64 444, !10, i64 448, !8, i64 452, !10, i64 492, !10, i64 496, !10, i64 500, !10, i64 504, !10, i64 508, !7, i64 512, !7, i64 520, !7, i64 528, !7, i64 536, !7, i64 544, !7, i64 552, !7, i64 560, !7, i64 568, !7, i64 576, !7, i64 584, !7, i64 592}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!"short", !8, i64 0}
!13 = !{!14, !7, i64 0}
!14 = !{!"jpeg_memory_mgr", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !15, i64 88, !15, i64 96}
!15 = !{!"long", !8, i64 0}
!16 = !{!6, !7, i64 528}
!17 = !{!18, !7, i64 0}
!18 = !{!"", !19, i64 0, !10, i64 40, !10, i64 44, !10, i64 48, !8, i64 56, !8, i64 136, !7, i64 216}
!19 = !{!"jpeg_d_coef_controller", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32}
!20 = !{!18, !7, i64 16}
!21 = !{!18, !7, i64 216}
!22 = !{!6, !10, i64 56}
!23 = !{!6, !7, i64 288}
!24 = !{!25, !10, i64 12}
!25 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !8, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !7, i64 80, !7, i64 88}
!26 = !{!6, !8, i64 296}
!27 = !{!14, !7, i64 40}
!28 = !{!25, !10, i64 28}
!29 = !{!25, !10, i64 8}
!30 = !{!25, !10, i64 32}
!31 = !{!7, !7, i64 0}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = !{!18, !7, i64 8}
!35 = !{!18, !7, i64 24}
!36 = !{!14, !7, i64 8}
!37 = !{!18, !7, i64 32}


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