; LLVM IR from aagdev/mlimgsynth :: src/ccommon (image_io_jpeg)

; 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.CodecJpegLoad = type { %struct.jpeg_decompress_struct, %struct.img_codec_jpeg_error_mgr }
%struct.jpeg_decompress_struct = type { ptr, ptr, ptr, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, i32, i32, i32, i32, i32, ptr, [4 x ptr], [4 x ptr], [4 x ptr], i32, ptr, i32, i32, i32, [16 x i8], [16 x i8], [16 x i8], i32, i32, i8, i8, i8, i16, i16, i32, i8, i32, ptr, i32, i32, i32, i32, i32, ptr, i32, [4 x ptr], i32, i32, i32, [10 x i32], i32, i32, i32, i32, i32, ptr, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.img_codec_jpeg_error_mgr = type { %struct.jpeg_error_mgr, [1 x %struct.__jmp_buf_tag] }
%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.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }

; Function Attrs: nounwind uwtable
define dso_local i32 @imgio_jpeg_load_init(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %struct.CodecJpegLoad, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %6 = load ptr, ptr %3, align 8, !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 8 %5, i8 0, i64 1024, i1 false)
  %7 = getelementptr inbounds %struct.CodecJpegLoad, ptr %5, i32 0, i32 0
  %8 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 0
  %9 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 1
  %10 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 2
  %11 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 3
  %12 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 4
  %13 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 5
  %14 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 6
  %15 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 7
  %16 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 8
  %17 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 9
  %18 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 10
  %19 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 11
  %20 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 12
  %21 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 13
  %22 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 14
  %23 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 15
  %24 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 16
  %25 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 17
  %26 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 18
  %27 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 19
  %28 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 20
  %29 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 21
  %30 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 22
  %31 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 23
  %32 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 24
  %33 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 25
  %34 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 26
  %35 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 27
  %36 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 28
  %37 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 29
  %38 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 30
  %39 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 31
  %40 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 32
  %41 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 33
  %42 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 34
  %43 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 35
  %44 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 36
  %45 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 37
  %46 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 38
  %47 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 39
  %48 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 40
  %49 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 41
  %50 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 42
  %51 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 43
  %52 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 44
  %53 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 45
  %54 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 46
  %55 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 47
  %56 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 48
  %57 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 49
  %58 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 50
  %59 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 51
  %60 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 52
  %61 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 53
  %62 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 54
  %63 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 55
  %64 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 56
  %65 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 57
  %66 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 58
  %67 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 59
  %68 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 60
  %69 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 61
  %70 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 62
  %71 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 63
  %72 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 64
  %73 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 65
  %74 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 66
  %75 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 67
  %76 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 68
  %77 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 69
  %78 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 70
  %79 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 71
  %80 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 72
  %81 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 73
  %82 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 74
  %83 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 75
  %84 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 76
  %85 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 77
  %86 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 78
  %87 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 79
  %88 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 80
  %89 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 81
  %90 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 82
  %91 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 83
  %92 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 84
  %93 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 85
  %94 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 86
  %95 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 87
  %96 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 88
  %97 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 89
  %98 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 90
  %99 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 91
  %100 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 92
  %101 = getelementptr inbounds %struct.CodecJpegLoad, ptr %5, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 8 %5, i64 1024, i1 false), !tbaa.struct !9
  %102 = load ptr, ptr %3, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.CodecJpegLoad, ptr %102, i32 0, i32 1
  %104 = getelementptr inbounds %struct.img_codec_jpeg_error_mgr, ptr %103, i32 0, i32 0
  %105 = call ptr @jpeg_std_error(ptr noundef %104)
  %106 = load ptr, ptr %3, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.CodecJpegLoad, ptr %106, i32 0, i32 0
  %108 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %107, i32 0, i32 0
  store ptr %105, ptr %108, align 8, !tbaa !19
  %109 = load ptr, ptr %3, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.CodecJpegLoad, ptr %109, i32 0, i32 1
  %111 = getelementptr inbounds %struct.img_codec_jpeg_error_mgr, ptr %110, i32 0, i32 0
  %112 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %111, i32 0, i32 0
  store ptr @my_jpeg_error_exit, ptr %112, align 8, !tbaa !24
  %113 = load ptr, ptr %3, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.CodecJpegLoad, ptr %113, i32 0, i32 1
  %115 = getelementptr inbounds %struct.img_codec_jpeg_error_mgr, ptr %114, i32 0, i32 0
  %116 = getelementptr inbounds %struct.jpeg_error_mgr, ptr %115, i32 0, i32 2
  store ptr @my_jpeg_output_message, ptr %116, align 8, !tbaa !25
  %117 = load ptr, ptr %3, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.CodecJpegLoad, ptr %117, i32 0, i32 0
  call void @jpeg_CreateDecompress(ptr noundef %118, i32 noundef 80, i64 noundef 656)
  ret i32 0
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

declare ptr @jpeg_std_error(ptr noundef) #3

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

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

declare void @jpeg_CreateDecompress(ptr noundef, i32 noundef, i64 noundef) #3

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 nounwind willreturn memory(argmem: write) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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" }

!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 = !{i64 0, i64 8, !5, i64 8, i64 8, !5, i64 16, i64 8, !5, i64 24, i64 8, !5, i64 32, i64 4, !10, i64 36, i64 4, !10, i64 40, i64 8, !5, i64 48, i64 4, !10, i64 52, i64 4, !10, i64 56, i64 4, !10, i64 60, i64 4, !10, i64 64, i64 4, !10, i64 68, i64 4, !10, i64 72, i64 4, !10, i64 80, i64 8, !12, i64 88, i64 4, !10, i64 92, i64 4, !10, i64 96, i64 4, !10, i64 100, i64 4, !10, i64 104, i64 4, !10, i64 108, i64 4, !10, i64 112, i64 4, !10, i64 116, i64 4, !10, i64 120, i64 4, !10, i64 124, i64 4, !10, i64 128, i64 4, !10, i64 132, i64 4, !10, i64 136, i64 4, !10, i64 140, i64 4, !10, i64 144, i64 4, !10, i64 148, i64 4, !10, i64 152, i64 4, !10, i64 156, i64 4, !10, i64 160, i64 8, !5, i64 168, i64 4, !10, i64 172, i64 4, !10, i64 176, i64 4, !10, i64 180, i64 4, !10, i64 184, i64 4, !10, i64 192, i64 8, !5, i64 200, i64 32, !14, i64 232, i64 32, !14, i64 264, i64 32, !14, i64 296, i64 4, !10, i64 304, i64 8, !5, i64 312, i64 4, !10, i64 316, i64 4, !10, i64 320, i64 4, !10, i64 324, i64 16, !14, i64 340, i64 16, !14, i64 356, i64 16, !14, i64 372, i64 4, !10, i64 376, i64 4, !10, i64 380, i64 1, !14, i64 381, i64 1, !14, i64 382, i64 1, !14, i64 384, i64 2, !15, i64 386, i64 2, !15, i64 388, i64 4, !10, i64 392, i64 1, !14, i64 396, i64 4, !10, i64 400, i64 8, !5, i64 408, i64 4, !10, i64 412, i64 4, !10, i64 416, i64 4, !10, i64 420, i64 4, !10, i64 424, i64 4, !10, i64 432, i64 8, !5, i64 440, i64 4, !10, i64 448, i64 32, !14, i64 480, i64 4, !10, i64 484, i64 4, !10, i64 488, i64 4, !10, i64 492, i64 40, !14, i64 532, i64 4, !10, i64 536, i64 4, !10, i64 540, i64 4, !10, i64 544, i64 4, !10, i64 548, i64 4, !10, i64 552, i64 8, !5, i64 560, i64 4, !10, i64 564, i64 4, !10, i64 568, i64 8, !5, i64 576, i64 8, !5, i64 584, i64 8, !5, i64 592, i64 8, !5, i64 600, i64 8, !5, i64 608, i64 8, !5, i64 616, i64 8, !5, i64 624, i64 8, !5, i64 632, i64 8, !5, i64 640, i64 8, !5, i64 648, i64 8, !5, i64 656, i64 8, !5, i64 664, i64 8, !5, i64 672, i64 8, !5, i64 680, i64 8, !5, i64 688, i64 8, !5, i64 696, i64 4, !10, i64 700, i64 80, !14, i64 780, i64 4, !10, i64 784, i64 8, !17, i64 792, i64 8, !5, i64 800, i64 4, !10, i64 808, i64 8, !5, i64 816, i64 4, !10, i64 820, i64 4, !10, i64 824, i64 200, !14}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = !{!7, !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"short", !7, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!20, !6, i64 0}
!20 = !{!"CodecJpegLoad", !21, i64 0, !22, i64 656}
!21 = !{!"jpeg_decompress_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, !11, i64 64, !11, i64 68, !11, i64 72, !13, i64 80, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 116, !11, i64 120, !11, i64 124, !11, i64 128, !11, i64 132, !11, i64 136, !11, i64 140, !11, i64 144, !11, i64 148, !11, i64 152, !11, i64 156, !6, i64 160, !11, i64 168, !11, i64 172, !11, i64 176, !11, i64 180, !11, i64 184, !6, i64 192, !7, i64 200, !7, i64 232, !7, i64 264, !11, i64 296, !6, i64 304, !11, i64 312, !11, i64 316, !11, i64 320, !7, i64 324, !7, i64 340, !7, i64 356, !11, i64 372, !11, i64 376, !7, i64 380, !7, i64 381, !7, i64 382, !16, i64 384, !16, i64 386, !11, i64 388, !7, i64 392, !11, i64 396, !6, i64 400, !11, i64 408, !11, i64 412, !11, i64 416, !11, i64 420, !11, i64 424, !6, i64 432, !11, i64 440, !7, i64 448, !11, i64 480, !11, i64 484, !11, i64 488, !7, i64 492, !11, i64 532, !11, i64 536, !11, i64 540, !11, i64 544, !11, i64 548, !6, i64 552, !11, i64 560, !11, i64 564, !6, i64 568, !6, i64 576, !6, i64 584, !6, i64 592, !6, i64 600, !6, i64 608, !6, i64 616, !6, i64 624, !6, i64 632, !6, i64 640, !6, i64 648}
!22 = !{!"img_codec_jpeg_error_mgr", !23, i64 0, !7, i64 168}
!23 = !{!"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, !18, i64 128, !6, i64 136, !11, i64 144, !6, i64 152, !11, i64 160, !11, i64 164}
!24 = !{!20, !6, i64 656}
!25 = !{!20, !6, i64 672}


; 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 noundef i32 @imgio_jpeg_load_init(ptr noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(1024) %0, i8 0, i64 1024, i1 false)
  %3 = getelementptr inbounds i8, ptr %0, i64 656
  %4 = tail call ptr @jpeg_std_error(ptr noundef nonnull %3) #3
  store ptr %4, ptr %0, align 8, !tbaa !5
  store ptr @my_jpeg_error_exit, ptr %3, align 8, !tbaa !17
  %5 = getelementptr inbounds i8, ptr %0, i64 672
  store ptr @my_jpeg_output_message, ptr %5, align 8, !tbaa !18
  tail call void @jpeg_CreateDecompress(ptr noundef nonnull %0, i32 noundef 80, i64 noundef 656) #3
  ret i32 0
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

declare ptr @jpeg_std_error(ptr noundef) local_unnamed_addr #2

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

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

declare void @jpeg_CreateDecompress(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #2

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 nounwind willreturn memory(argmem: write) }
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, !8, i64 0}
!6 = !{!"CodecJpegLoad", !7, i64 0, !14, i64 656}
!7 = !{!"jpeg_decompress_struct", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !11, i64 32, !11, i64 36, !8, i64 40, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !11, i64 72, !12, i64 80, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 116, !11, i64 120, !11, i64 124, !11, i64 128, !11, i64 132, !11, i64 136, !11, i64 140, !11, i64 144, !11, i64 148, !11, i64 152, !11, i64 156, !8, i64 160, !11, i64 168, !11, i64 172, !11, i64 176, !11, i64 180, !11, i64 184, !8, i64 192, !9, i64 200, !9, i64 232, !9, i64 264, !11, i64 296, !8, i64 304, !11, i64 312, !11, i64 316, !11, i64 320, !9, i64 324, !9, i64 340, !9, i64 356, !11, i64 372, !11, i64 376, !9, i64 380, !9, i64 381, !9, i64 382, !13, i64 384, !13, i64 386, !11, i64 388, !9, i64 392, !11, i64 396, !8, i64 400, !11, i64 408, !11, i64 412, !11, i64 416, !11, i64 420, !11, i64 424, !8, i64 432, !11, i64 440, !9, i64 448, !11, i64 480, !11, i64 484, !11, i64 488, !9, i64 492, !11, i64 532, !11, i64 536, !11, i64 540, !11, i64 544, !11, i64 548, !8, i64 552, !11, i64 560, !11, i64 564, !8, i64 568, !8, i64 576, !8, i64 584, !8, i64 592, !8, i64 600, !8, i64 608, !8, i64 616, !8, i64 624, !8, i64 632, !8, i64 640, !8, i64 648}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"double", !9, i64 0}
!13 = !{!"short", !9, i64 0}
!14 = !{!"img_codec_jpeg_error_mgr", !15, i64 0, !9, i64 168}
!15 = !{!"jpeg_error_mgr", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !8, i64 32, !11, i64 40, !9, i64 44, !11, i64 124, !16, i64 128, !8, i64 136, !11, i64 144, !8, i64 152, !11, i64 160, !11, i64 164}
!16 = !{!"long", !9, i64 0}
!17 = !{!6, !8, i64 656}
!18 = !{!6, !8, i64 672}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,TailCallElimPass