; LLVM IR from EyalAr/lwip :: src/lib/jpeg (jcinit)

; 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_compress_struct = type { ptr, ptr, ptr, ptr, i32, i32, ptr, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, ptr, [4 x ptr], [4 x i32], [4 x ptr], [4 x ptr], [16 x i8], [16 x i8], [16 x i8], i32, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i8, i8, i16, i16, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [4 x ptr], i32, i32, i32, [10 x i32], i32, i32, i32, i32, i32, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32 }
%struct.jpeg_error_mgr = type { ptr, ptr, ptr, ptr, ptr, i32, %union.anon, i32, i64, ptr, i32, ptr, i32, i32 }
%union.anon = type { [8 x i32], [48 x i8] }
%struct.jpeg_memory_mgr = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i64, i64 }
%struct.jpeg_marker_writer = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr }

; Function Attrs: nounwind uwtable
define dso_local void @jinit_compress_master(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca i64, align 8
  %4 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  %5 = load ptr, ptr %2, align 8, !tbaa !5
  %6 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %5, i32 0, i32 16
  %7 = load i32, ptr %6, align 8, !tbaa !9
  %8 = icmp ne i32 %7, 8
  br i1 %8, label %9, label %28

9:                                                ; preds = %1
  %10 = load ptr, ptr %2, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %10, i32 0, i32 0
  %12 = load ptr, ptr %11, align 8, !tbaa !14
  %13 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %12, i32 0, i32 5
  store i32 16, ptr %13, align 8, !tbaa !15
  %14 = load ptr, ptr %2, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %14, i32 0, i32 16
  %16 = load i32, ptr %15, align 8, !tbaa !9
  %17 = load ptr, ptr %2, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %17, i32 0, i32 0
  %19 = load ptr, ptr %18, align 8, !tbaa !14
  %20 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %19, i32 0, i32 6
  %21 = getelementptr inbounds [8 x i32], ptr %20, i64 0, i64 0
  store i32 %16, ptr %21, align 4, !tbaa !18
  %22 = load ptr, ptr %2, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %22, i32 0, i32 0
  %24 = load ptr, ptr %23, align 8, !tbaa !14
  %25 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %24, i32 0, i32 0
  %26 = load ptr, ptr %25, align 8, !tbaa !19
  %27 = load ptr, ptr %2, align 8, !tbaa !5
  call void %26(ptr noundef %27)
  br label %28

28:                                               ; preds = %9, %1
  %29 = load ptr, ptr %2, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %29, i32 0, i32 8
  %31 = load i32, ptr %30, align 4, !tbaa !20
  %32 = icmp ule i32 %31, 0
  br i1 %32, label %43, label %33

33:                                               ; preds = %28
  %34 = load ptr, ptr %2, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %34, i32 0, i32 7
  %36 = load i32, ptr %35, align 8, !tbaa !21
  %37 = icmp ule i32 %36, 0
  br i1 %37, label %43, label %38

38:                                               ; preds = %33
  %39 = load ptr, ptr %2, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %39, i32 0, i32 9
  %41 = load i32, ptr %40, align 8, !tbaa !22
  %42 = icmp sle i32 %41, 0
  br i1 %42, label %43, label %54

43:                                               ; preds = %38, %33, %28
  %44 = load ptr, ptr %2, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %44, i32 0, i32 0
  %46 = load ptr, ptr %45, align 8, !tbaa !14
  %47 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %46, i32 0, i32 5
  store i32 33, ptr %47, align 8, !tbaa !15
  %48 = load ptr, ptr %2, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %48, i32 0, i32 0
  %50 = load ptr, ptr %49, align 8, !tbaa !14
  %51 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %50, i32 0, i32 0
  %52 = load ptr, ptr %51, align 8, !tbaa !19
  %53 = load ptr, ptr %2, align 8, !tbaa !5
  call void %52(ptr noundef %53)
  br label %54

54:                                               ; preds = %43, %38
  %55 = load ptr, ptr %2, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %55, i32 0, i32 7
  %57 = load i32, ptr %56, align 8, !tbaa !21
  %58 = zext i32 %57 to i64
  %59 = load ptr, ptr %2, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %59, i32 0, i32 9
  %61 = load i32, ptr %60, align 8, !tbaa !22
  %62 = sext i32 %61 to i64
  %63 = mul nsw i64 %58, %62
  store i64 %63, ptr %3, align 8, !tbaa !23
  %64 = load i64, ptr %3, align 8, !tbaa !23
  %65 = trunc i64 %64 to i32
  store i32 %65, ptr %4, align 4, !tbaa !24
  %66 = load i32, ptr %4, align 4, !tbaa !24
  %67 = zext i32 %66 to i64
  %68 = load i64, ptr %3, align 8, !tbaa !23
  %69 = icmp ne i64 %67, %68
  br i1 %69, label %70, label %81

70:                                               ; preds = %54
  %71 = load ptr, ptr %2, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %71, i32 0, i32 0
  %73 = load ptr, ptr %72, align 8, !tbaa !14
  %74 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %73, i32 0, i32 5
  store i32 72, ptr %74, align 8, !tbaa !15
  %75 = load ptr, ptr %2, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %75, i32 0, i32 0
  %77 = load ptr, ptr %76, align 8, !tbaa !14
  %78 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %77, i32 0, i32 0
  %79 = load ptr, ptr %78, align 8, !tbaa !19
  %80 = load ptr, ptr %2, align 8, !tbaa !5
  call void %79(ptr noundef %80)
  br label %81

81:                                               ; preds = %70, %54
  %82 = load ptr, ptr %2, align 8, !tbaa !5
  call void @jinit_c_master_control(ptr noundef %82, i32 noundef 0)
  %83 = load ptr, ptr %2, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %83, i32 0, i32 29
  %85 = load i32, ptr %84, align 8, !tbaa !25
  %86 = icmp ne i32 %85, 0
  br i1 %86, label %91, label %87

87:                                               ; preds = %81
  %88 = load ptr, ptr %2, align 8, !tbaa !5
  call void @jinit_color_converter(ptr noundef %88)
  %89 = load ptr, ptr %2, align 8, !tbaa !5
  call void @jinit_downsampler(ptr noundef %89)
  %90 = load ptr, ptr %2, align 8, !tbaa !5
  call void @jinit_c_prep_controller(ptr noundef %90, i32 noundef 0)
  br label %91

91:                                               ; preds = %87, %81
  %92 = load ptr, ptr %2, align 8, !tbaa !5
  call void @jinit_forward_dct(ptr noundef %92)
  %93 = load ptr, ptr %2, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %93, i32 0, i32 30
  %95 = load i32, ptr %94, align 4, !tbaa !26
  %96 = icmp ne i32 %95, 0
  br i1 %96, label %97, label %99

97:                                               ; preds = %91
  %98 = load ptr, ptr %2, align 8, !tbaa !5
  call void @jinit_arith_encoder(ptr noundef %98)
  br label %101

99:                                               ; preds = %91
  %100 = load ptr, ptr %2, align 8, !tbaa !5
  call void @jinit_huff_encoder(ptr noundef %100)
  br label %101

101:                                              ; preds = %99, %97
  %102 = load ptr, ptr %2, align 8, !tbaa !5
  %103 = load ptr, ptr %2, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %103, i32 0, i32 27
  %105 = load i32, ptr %104, align 8, !tbaa !27
  %106 = icmp sgt i32 %105, 1
  br i1 %106, label %112, label %107

107:                                              ; preds = %101
  %108 = load ptr, ptr %2, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %108, i32 0, i32 31
  %110 = load i32, ptr %109, align 8, !tbaa !28
  %111 = icmp ne i32 %110, 0
  br label %112

112:                                              ; preds = %107, %101
  %113 = phi i1 [ true, %101 ], [ %111, %107 ]
  %114 = zext i1 %113 to i32
  call void @jinit_c_coef_controller(ptr noundef %102, i32 noundef %114)
  %115 = load ptr, ptr %2, align 8, !tbaa !5
  call void @jinit_c_main_controller(ptr noundef %115, i32 noundef 0)
  %116 = load ptr, ptr %2, align 8, !tbaa !5
  call void @jinit_marker_writer(ptr noundef %116)
  %117 = load ptr, ptr %2, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %117, i32 0, i32 1
  %119 = load ptr, ptr %118, align 8, !tbaa !29
  %120 = getelementptr inbounds %struct.jpeg_memory_mgr, ptr %119, i32 0, i32 6
  %121 = load ptr, ptr %120, align 8, !tbaa !30
  %122 = load ptr, ptr %2, align 8, !tbaa !5
  call void %121(ptr noundef %122)
  %123 = load ptr, ptr %2, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.jpeg_compress_struct, ptr %123, i32 0, i32 70
  %125 = load ptr, ptr %124, align 8, !tbaa !32
  %126 = getelementptr inbounds %struct.jpeg_marker_writer, ptr %125, i32 0, i32 0
  %127 = load ptr, ptr %126, align 8, !tbaa !33
  %128 = load ptr, ptr %2, align 8, !tbaa !5
  call void %127(ptr noundef %128)
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  ret void
}

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

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

declare void @jinit_color_converter(ptr noundef) #2

declare void @jinit_downsampler(ptr noundef) #2

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

declare void @jinit_forward_dct(ptr noundef) #2

declare void @jinit_arith_encoder(ptr noundef) #2

declare void @jinit_huff_encoder(ptr noundef) #2

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

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

declare void @jinit_marker_writer(ptr noundef) #2

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

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 = !{!10, !11, i64 88}
!10 = !{!"jpeg_compress_struct", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !11, i64 32, !11, i64 36, !6, i64 40, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !12, i64 64, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84, !11, i64 88, !11, i64 92, !11, i64 96, !6, i64 104, !7, i64 112, !7, i64 144, !7, i64 160, !7, i64 192, !7, i64 224, !7, i64 240, !7, i64 256, !11, i64 272, !6, i64 280, !11, i64 288, !11, i64 292, !11, i64 296, !11, i64 300, !11, i64 304, !11, i64 308, !11, i64 312, !11, i64 316, !11, i64 320, !11, i64 324, !7, i64 328, !7, i64 329, !7, i64 330, !13, i64 332, !13, i64 334, !11, i64 336, !11, i64 340, !11, i64 344, !11, i64 348, !11, i64 352, !11, i64 356, !11, i64 360, !11, i64 364, !11, i64 368, !11, i64 372, !7, i64 376, !11, i64 408, !11, i64 412, !11, i64 416, !7, i64 420, !11, i64 460, !11, i64 464, !11, i64 468, !11, i64 472, !11, i64 476, !6, i64 480, !11, i64 488, !6, i64 496, !6, i64 504, !6, i64 512, !6, i64 520, !6, i64 528, !6, i64 536, !6, i64 544, !6, i64 552, !6, i64 560, !6, i64 568, !11, i64 576}
!11 = !{!"int", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!"short", !7, i64 0}
!14 = !{!10, !6, i64 0}
!15 = !{!16, !11, i64 40}
!16 = !{!"jpeg_error_mgr", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !11, i64 40, !7, i64 44, !11, i64 124, !17, i64 128, !6, i64 136, !11, i64 144, !6, i64 152, !11, i64 160, !11, i64 164}
!17 = !{!"long", !7, i64 0}
!18 = !{!7, !7, i64 0}
!19 = !{!16, !6, i64 0}
!20 = !{!10, !11, i64 52}
!21 = !{!10, !11, i64 48}
!22 = !{!10, !11, i64 56}
!23 = !{!17, !17, i64 0}
!24 = !{!11, !11, i64 0}
!25 = !{!10, !11, i64 288}
!26 = !{!10, !11, i64 292}
!27 = !{!10, !11, i64 272}
!28 = !{!10, !11, i64 296}
!29 = !{!10, !6, i64 8}
!30 = !{!31, !6, i64 48}
!31 = !{!"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}
!32 = !{!10, !6, i64 528}
!33 = !{!34, !6, i64 0}
!34 = !{!"jpeg_marker_writer", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}


; 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_compress_master(ptr noundef %0) local_unnamed_addr #0 {
  %2 = getelementptr inbounds i8, ptr %0, i64 88
  %3 = load i32, ptr %2, align 8, !tbaa !5
  %.not = icmp eq i32 %3, 8
  br i1 %.not, label %10, label %4

4:                                                ; preds = %1
  %5 = load ptr, ptr %0, align 8, !tbaa !13
  %6 = getelementptr inbounds i8, ptr %5, i64 40
  store i32 16, ptr %6, align 8, !tbaa !14
  %7 = getelementptr inbounds i8, ptr %5, i64 44
  store i32 %3, ptr %7, align 4, !tbaa !17
  %8 = load ptr, ptr %0, align 8, !tbaa !13
  %9 = load ptr, ptr %8, align 8, !tbaa !18
  tail call void %9(ptr noundef nonnull %0) #2
  br label %10

10:                                               ; preds = %4, %1
  %11 = getelementptr inbounds i8, ptr %0, i64 52
  %12 = load i32, ptr %11, align 4, !tbaa !19
  %13 = icmp eq i32 %12, 0
  br i1 %13, label %22, label %14

14:                                               ; preds = %10
  %15 = getelementptr inbounds i8, ptr %0, i64 48
  %16 = load i32, ptr %15, align 8, !tbaa !20
  %17 = icmp eq i32 %16, 0
  br i1 %17, label %22, label %18

18:                                               ; preds = %14
  %19 = getelementptr inbounds i8, ptr %0, i64 56
  %20 = load i32, ptr %19, align 8, !tbaa !21
  %21 = icmp slt i32 %20, 1
  br i1 %21, label %22, label %26

22:                                               ; preds = %18, %14, %10
  %23 = load ptr, ptr %0, align 8, !tbaa !13
  %24 = getelementptr inbounds i8, ptr %23, i64 40
  store i32 33, ptr %24, align 8, !tbaa !14
  %25 = load ptr, ptr %23, align 8, !tbaa !18
  tail call void %25(ptr noundef nonnull %0) #2
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 48
  %.pre = load i32, ptr %.phi.trans.insert, align 8, !tbaa !20
  %.phi.trans.insert40 = getelementptr inbounds i8, ptr %0, i64 56
  %.pre41 = load i32, ptr %.phi.trans.insert40, align 8, !tbaa !21
  br label %26

26:                                               ; preds = %22, %18
  %27 = phi i32 [ %.pre41, %22 ], [ %20, %18 ]
  %28 = phi i32 [ %.pre, %22 ], [ %16, %18 ]
  %29 = zext i32 %28 to i64
  %30 = sext i32 %27 to i64
  %31 = mul nsw i64 %30, %29
  %.not37 = icmp ult i64 %31, 4294967296
  br i1 %.not37, label %36, label %32

32:                                               ; preds = %26
  %33 = load ptr, ptr %0, align 8, !tbaa !13
  %34 = getelementptr inbounds i8, ptr %33, i64 40
  store i32 72, ptr %34, align 8, !tbaa !14
  %35 = load ptr, ptr %33, align 8, !tbaa !18
  tail call void %35(ptr noundef nonnull %0) #2
  br label %36

36:                                               ; preds = %32, %26
  tail call void @jinit_c_master_control(ptr noundef nonnull %0, i32 noundef 0) #2
  %37 = getelementptr inbounds i8, ptr %0, i64 288
  %38 = load i32, ptr %37, align 8, !tbaa !22
  %.not38 = icmp eq i32 %38, 0
  br i1 %.not38, label %39, label %40

39:                                               ; preds = %36
  tail call void @jinit_color_converter(ptr noundef nonnull %0) #2
  tail call void @jinit_downsampler(ptr noundef nonnull %0) #2
  tail call void @jinit_c_prep_controller(ptr noundef nonnull %0, i32 noundef 0) #2
  br label %40

40:                                               ; preds = %39, %36
  tail call void @jinit_forward_dct(ptr noundef nonnull %0) #2
  %41 = getelementptr inbounds i8, ptr %0, i64 292
  %42 = load i32, ptr %41, align 4, !tbaa !23
  %.not39 = icmp eq i32 %42, 0
  br i1 %.not39, label %44, label %43

43:                                               ; preds = %40
  tail call void @jinit_arith_encoder(ptr noundef nonnull %0) #2
  br label %45

44:                                               ; preds = %40
  tail call void @jinit_huff_encoder(ptr noundef nonnull %0) #2
  br label %45

45:                                               ; preds = %44, %43
  %46 = getelementptr inbounds i8, ptr %0, i64 272
  %47 = load i32, ptr %46, align 8, !tbaa !24
  %48 = icmp sgt i32 %47, 1
  br i1 %48, label %54, label %49

49:                                               ; preds = %45
  %50 = getelementptr inbounds i8, ptr %0, i64 296
  %51 = load i32, ptr %50, align 8, !tbaa !25
  %52 = icmp ne i32 %51, 0
  %53 = zext i1 %52 to i32
  br label %54

54:                                               ; preds = %49, %45
  %55 = phi i32 [ 1, %45 ], [ %53, %49 ]
  tail call void @jinit_c_coef_controller(ptr noundef nonnull %0, i32 noundef %55) #2
  tail call void @jinit_c_main_controller(ptr noundef nonnull %0, i32 noundef 0) #2
  tail call void @jinit_marker_writer(ptr noundef nonnull %0) #2
  %56 = getelementptr inbounds i8, ptr %0, i64 8
  %57 = load ptr, ptr %56, align 8, !tbaa !26
  %58 = getelementptr inbounds i8, ptr %57, i64 48
  %59 = load ptr, ptr %58, align 8, !tbaa !27
  tail call void %59(ptr noundef nonnull %0) #2
  %60 = getelementptr inbounds i8, ptr %0, i64 528
  %61 = load ptr, ptr %60, align 8, !tbaa !29
  %62 = load ptr, ptr %61, align 8, !tbaa !30
  tail call void %62(ptr noundef nonnull %0) #2
  ret void
}

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

declare void @jinit_color_converter(ptr noundef) local_unnamed_addr #1

declare void @jinit_downsampler(ptr noundef) local_unnamed_addr #1

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

declare void @jinit_forward_dct(ptr noundef) local_unnamed_addr #1

declare void @jinit_arith_encoder(ptr noundef) local_unnamed_addr #1

declare void @jinit_huff_encoder(ptr noundef) local_unnamed_addr #1

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

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

declare void @jinit_marker_writer(ptr noundef) local_unnamed_addr #1

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, !10, i64 88}
!6 = !{!"jpeg_compress_struct", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !10, i64 36, !7, i64 40, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !11, i64 64, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !7, i64 104, !8, i64 112, !8, i64 144, !8, i64 160, !8, i64 192, !8, i64 224, !8, i64 240, !8, i64 256, !10, i64 272, !7, i64 280, !10, i64 288, !10, i64 292, !10, i64 296, !10, i64 300, !10, i64 304, !10, i64 308, !10, i64 312, !10, i64 316, !10, i64 320, !10, i64 324, !8, i64 328, !8, i64 329, !8, i64 330, !12, i64 332, !12, i64 334, !10, i64 336, !10, i64 340, !10, i64 344, !10, i64 348, !10, i64 352, !10, i64 356, !10, i64 360, !10, i64 364, !10, i64 368, !10, i64 372, !8, i64 376, !10, i64 408, !10, i64 412, !10, i64 416, !8, i64 420, !10, i64 460, !10, i64 464, !10, i64 468, !10, i64 472, !10, i64 476, !7, i64 480, !10, i64 488, !7, i64 496, !7, i64 504, !7, i64 512, !7, i64 520, !7, i64 528, !7, i64 536, !7, i64 544, !7, i64 552, !7, i64 560, !7, i64 568, !10, i64 576}
!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 = !{!6, !7, i64 0}
!14 = !{!15, !10, i64 40}
!15 = !{!"jpeg_error_mgr", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !10, i64 40, !8, i64 44, !10, i64 124, !16, i64 128, !7, i64 136, !10, i64 144, !7, i64 152, !10, i64 160, !10, i64 164}
!16 = !{!"long", !8, i64 0}
!17 = !{!8, !8, i64 0}
!18 = !{!15, !7, i64 0}
!19 = !{!6, !10, i64 52}
!20 = !{!6, !10, i64 48}
!21 = !{!6, !10, i64 56}
!22 = !{!6, !10, i64 288}
!23 = !{!6, !10, i64 292}
!24 = !{!6, !10, i64 272}
!25 = !{!6, !10, i64 296}
!26 = !{!6, !7, i64 8}
!27 = !{!28, !7, i64 48}
!28 = !{!"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, !16, i64 88, !16, i64 96}
!29 = !{!6, !7, i64 528}
!30 = !{!31, !7, i64 0}
!31 = !{!"jpeg_marker_writer", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,TailCallElimPass