; LLVM IR from Eukky/TRender :: include/stb (stb_vorbis)

; 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.stb_vorbis = type { i32, i32, i32, i32, i32, ptr, i32, ptr, ptr, i32, i32, ptr, ptr, ptr, i32, i8, i32, %struct.ProbedPage, %struct.ProbedPage, %struct.stb_vorbis_alloc, i32, i32, i32, i32, [2 x i32], i32, i32, i32, ptr, i32, [64 x i16], ptr, i32, [64 x i16], ptr, i32, ptr, i32, [64 x %struct.Mode], i32, [16 x ptr], [16 x ptr], [16 x ptr], i32, [16 x ptr], i32, i32, [2 x ptr], [2 x ptr], [2 x ptr], [2 x ptr], [2 x ptr], i32, i32, i32, [255 x i8], i8, i8, i8, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [4 x %struct.CRCscan], i32, i32 }
%struct.ProbedPage = type { i32, i32, i32 }
%struct.stb_vorbis_alloc = type { ptr, i32 }
%struct.Mode = type { i8, i8, i16, i16 }
%struct.CRCscan = type { i32, i32, i32, i32, i32 }

; 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: nounwind uwtable
declare hidden i32 @error(ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @stb_vorbis_get_file_offset(ptr noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local i32 @stb_vorbis_stream_length_in_samples(ptr noundef %0) #1 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca [6 x i8], align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #2
  %13 = load ptr, ptr %3, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.stb_vorbis, ptr %13, i32 0, i32 15
  %15 = load i8, ptr %14, align 4, !tbaa !9
  %16 = icmp ne i8 %15, 0
  br i1 %16, label %17, label %20

17:                                               ; preds = %1
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = call i32 @error(ptr noundef %18, i32 noundef 2)
  store i32 %19, ptr %2, align 4
  store i32 1, ptr %8, align 4
  br label %139

20:                                               ; preds = %1
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.stb_vorbis, ptr %21, i32 0, i32 39
  %23 = load i32, ptr %22, align 4, !tbaa !14
  %24 = icmp ne i32 %23, 0
  br i1 %24, label %127, label %25

25:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #2
  call void @llvm.lifetime.start.p0(i64 6, ptr %12) #2
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = call i32 @stb_vorbis_get_file_offset(ptr noundef %26)
  store i32 %27, ptr %4, align 4, !tbaa !15
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.stb_vorbis, ptr %28, i32 0, i32 14
  %30 = load i32, ptr %29, align 8, !tbaa !16
  %31 = icmp uge i32 %30, 65536
  br i1 %31, label %32, label %46

32:                                               ; preds = %25
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.stb_vorbis, ptr %33, i32 0, i32 14
  %35 = load i32, ptr %34, align 8, !tbaa !16
  %36 = sub i32 %35, 65536
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.stb_vorbis, ptr %37, i32 0, i32 16
  %39 = load i32, ptr %38, align 8, !tbaa !17
  %40 = icmp uge i32 %36, %39
  br i1 %40, label %41, label %46

41:                                               ; preds = %32
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.stb_vorbis, ptr %42, i32 0, i32 14
  %44 = load i32, ptr %43, align 8, !tbaa !16
  %45 = sub i32 %44, 65536
  store i32 %45, ptr %5, align 4, !tbaa !15
  br label %50

46:                                               ; preds = %32, %25
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.stb_vorbis, ptr %47, i32 0, i32 16
  %49 = load i32, ptr %48, align 8, !tbaa !17
  store i32 %49, ptr %5, align 4, !tbaa !15
  br label %50

50:                                               ; preds = %46, %41
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  %52 = load i32, ptr %5, align 4, !tbaa !15
  %53 = call i32 @set_file_offset(ptr noundef %51, i32 noundef %52)
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  %55 = call i32 @vorbis_find_page(ptr noundef %54, ptr noundef %6, ptr noundef %9)
  %56 = icmp ne i32 %55, 0
  br i1 %56, label %62, label %57

57:                                               ; preds = %50
  %58 = load ptr, ptr %3, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.stb_vorbis, ptr %58, i32 0, i32 23
  store i32 36, ptr %59, align 4, !tbaa !18
  %60 = load ptr, ptr %3, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.stb_vorbis, ptr %60, i32 0, i32 39
  store i32 -1, ptr %61, align 4, !tbaa !14
  br label %123

62:                                               ; preds = %50
  %63 = load ptr, ptr %3, align 8, !tbaa !5
  %64 = call i32 @stb_vorbis_get_file_offset(ptr noundef %63)
  store i32 %64, ptr %7, align 4, !tbaa !15
  br label %65

65:                                               ; preds = %77, %62
  %66 = load i32, ptr %9, align 4, !tbaa !15
  %67 = icmp ne i32 %66, 0
  %68 = xor i1 %67, true
  br i1 %68, label %69, label %82

69:                                               ; preds = %65
  %70 = load ptr, ptr %3, align 8, !tbaa !5
  %71 = load i32, ptr %6, align 4, !tbaa !15
  %72 = call i32 @set_file_offset(ptr noundef %70, i32 noundef %71)
  %73 = load ptr, ptr %3, align 8, !tbaa !5
  %74 = call i32 @vorbis_find_page(ptr noundef %73, ptr noundef %6, ptr noundef %9)
  %75 = icmp ne i32 %74, 0
  br i1 %75, label %77, label %76

76:                                               ; preds = %69
  br label %82

77:                                               ; preds = %69
  %78 = load i32, ptr %7, align 4, !tbaa !15
  %79 = add i32 %78, 1
  store i32 %79, ptr %5, align 4, !tbaa !15
  %80 = load ptr, ptr %3, align 8, !tbaa !5
  %81 = call i32 @stb_vorbis_get_file_offset(ptr noundef %80)
  store i32 %81, ptr %7, align 4, !tbaa !15
  br label %65, !llvm.loop !19

82:                                               ; preds = %76, %65
  %83 = load ptr, ptr %3, align 8, !tbaa !5
  %84 = load i32, ptr %7, align 4, !tbaa !15
  %85 = call i32 @set_file_offset(ptr noundef %83, i32 noundef %84)
  %86 = load ptr, ptr %3, align 8, !tbaa !5
  %87 = getelementptr inbounds [6 x i8], ptr %12, i64 0, i64 0
  %88 = call i32 @getn(ptr noundef %86, ptr noundef %87, i32 noundef 6)
  %89 = load ptr, ptr %3, align 8, !tbaa !5
  %90 = call i32 @get32(ptr noundef %89)
  store i32 %90, ptr %10, align 4, !tbaa !15
  %91 = load ptr, ptr %3, align 8, !tbaa !5
  %92 = call i32 @get32(ptr noundef %91)
  store i32 %92, ptr %11, align 4, !tbaa !15
  %93 = load i32, ptr %10, align 4, !tbaa !15
  %94 = icmp eq i32 %93, -1
  br i1 %94, label %95, label %103

95:                                               ; preds = %82
  %96 = load i32, ptr %11, align 4, !tbaa !15
  %97 = icmp eq i32 %96, -1
  br i1 %97, label %98, label %103

98:                                               ; preds = %95
  %99 = load ptr, ptr %3, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.stb_vorbis, ptr %99, i32 0, i32 23
  store i32 36, ptr %100, align 4, !tbaa !18
  %101 = load ptr, ptr %3, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.stb_vorbis, ptr %101, i32 0, i32 39
  store i32 -1, ptr %102, align 4, !tbaa !14
  br label %123

103:                                              ; preds = %95, %82
  %104 = load i32, ptr %11, align 4, !tbaa !15
  %105 = icmp ne i32 %104, 0
  br i1 %105, label %106, label %107

106:                                              ; preds = %103
  store i32 -2, ptr %10, align 4, !tbaa !15
  br label %107

107:                                              ; preds = %106, %103
  %108 = load i32, ptr %10, align 4, !tbaa !15
  %109 = load ptr, ptr %3, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.stb_vorbis, ptr %109, i32 0, i32 39
  store i32 %108, ptr %110, align 4, !tbaa !14
  %111 = load i32, ptr %7, align 4, !tbaa !15
  %112 = load ptr, ptr %3, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.stb_vorbis, ptr %112, i32 0, i32 18
  %114 = getelementptr inbounds %struct.ProbedPage, ptr %113, i32 0, i32 0
  store i32 %111, ptr %114, align 8, !tbaa !21
  %115 = load i32, ptr %6, align 4, !tbaa !15
  %116 = load ptr, ptr %3, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.stb_vorbis, ptr %116, i32 0, i32 18
  %118 = getelementptr inbounds %struct.ProbedPage, ptr %117, i32 0, i32 1
  store i32 %115, ptr %118, align 4, !tbaa !22
  %119 = load i32, ptr %10, align 4, !tbaa !15
  %120 = load ptr, ptr %3, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.stb_vorbis, ptr %120, i32 0, i32 18
  %122 = getelementptr inbounds %struct.ProbedPage, ptr %121, i32 0, i32 2
  store i32 %119, ptr %122, align 8, !tbaa !23
  br label %123

123:                                              ; preds = %107, %98, %57
  %124 = load ptr, ptr %3, align 8, !tbaa !5
  %125 = load i32, ptr %4, align 4, !tbaa !15
  %126 = call i32 @set_file_offset(ptr noundef %124, i32 noundef %125)
  call void @llvm.lifetime.end.p0(i64 6, ptr %12) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #2
  br label %127

127:                                              ; preds = %123, %20
  %128 = load ptr, ptr %3, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.stb_vorbis, ptr %128, i32 0, i32 39
  %130 = load i32, ptr %129, align 4, !tbaa !14
  %131 = icmp eq i32 %130, -1
  br i1 %131, label %132, label %133

132:                                              ; preds = %127
  br label %137

133:                                              ; preds = %127
  %134 = load ptr, ptr %3, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.stb_vorbis, ptr %134, i32 0, i32 39
  %136 = load i32, ptr %135, align 4, !tbaa !14
  br label %137

137:                                              ; preds = %133, %132
  %138 = phi i32 [ 0, %132 ], [ %136, %133 ]
  store i32 %138, ptr %2, align 4
  store i32 1, ptr %8, align 4
  br label %139

139:                                              ; preds = %137, %17
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #2
  %140 = load i32, ptr %2, align 4
  ret i32 %140
}

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

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

; Function Attrs: nounwind uwtable
declare hidden i32 @get32(ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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, !7, i64 92}
!10 = !{!"stb_vorbis", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !6, i64 24, !11, i64 32, !6, i64 40, !6, i64 48, !11, i64 56, !11, i64 60, !6, i64 64, !6, i64 72, !6, i64 80, !11, i64 88, !7, i64 92, !11, i64 96, !12, i64 100, !12, i64 112, !13, i64 128, !11, i64 144, !11, i64 148, !11, i64 152, !11, i64 156, !7, i64 160, !11, i64 168, !11, i64 172, !11, i64 176, !6, i64 184, !11, i64 192, !7, i64 196, !6, i64 328, !11, i64 336, !7, i64 340, !6, i64 472, !11, i64 480, !6, i64 488, !11, i64 496, !7, i64 500, !11, i64 884, !7, i64 888, !7, i64 1016, !7, i64 1144, !11, i64 1272, !7, i64 1280, !11, i64 1408, !11, i64 1412, !7, i64 1416, !7, i64 1432, !7, i64 1448, !7, i64 1464, !7, i64 1480, !11, i64 1496, !11, i64 1500, !11, i64 1504, !7, i64 1508, !7, i64 1763, !7, i64 1764, !7, i64 1765, !11, i64 1768, !11, i64 1772, !11, i64 1776, !11, i64 1780, !11, i64 1784, !11, i64 1788, !11, i64 1792, !11, i64 1796, !11, i64 1800, !11, i64 1804, !11, i64 1808, !7, i64 1812, !11, i64 1892, !11, i64 1896}
!11 = !{!"int", !7, i64 0}
!12 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8}
!13 = !{!"", !6, i64 0, !11, i64 8}
!14 = !{!10, !11, i64 884}
!15 = !{!11, !11, i64 0}
!16 = !{!10, !11, i64 88}
!17 = !{!10, !11, i64 96}
!18 = !{!10, !11, i64 156}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!10, !11, i64 112}
!22 = !{!10, !11, i64 116}
!23 = !{!10, !11, i64 120}


; 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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: nounwind uwtable
declare hidden i32 @error(ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @stb_vorbis_get_file_offset(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden i32 @set_file_offset(ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local i32 @stb_vorbis_stream_length_in_samples(ptr noundef %0) local_unnamed_addr #1 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca [6 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
  %5 = getelementptr inbounds i8, ptr %0, i64 92
  %6 = load i8, ptr %5, align 4, !tbaa !5
  %.not = icmp eq i8 %6, 0
  br i1 %.not, label %9, label %7

7:                                                ; preds = %1
  %8 = tail call i32 @error(ptr noundef nonnull %0, i32 noundef 2)
  br label %55

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

12:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
  call void @llvm.lifetime.start.p0(i64 6, ptr nonnull %4) #3
  %13 = tail call i32 @stb_vorbis_get_file_offset(ptr noundef nonnull %0)
  %14 = getelementptr inbounds i8, ptr %0, i64 88
  %15 = load i32, ptr %14, align 8, !tbaa !14
  %16 = icmp ugt i32 %15, 65535
  br i1 %16, label %17, label %._crit_edge58

._crit_edge58:                                    ; preds = %12
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 96
  %.pre = load i32, ptr %.phi.trans.insert, align 8, !tbaa !15
  br label %21

17:                                               ; preds = %12
  %18 = add i32 %15, -65536
  %19 = getelementptr inbounds i8, ptr %0, i64 96
  %20 = load i32, ptr %19, align 8, !tbaa !15
  %spec.select60 = tail call i32 @llvm.umax.i32(i32 %18, i32 %20)
  br label %21

21:                                               ; preds = %17, %._crit_edge58
  %.043 = phi i32 [ %.pre, %._crit_edge58 ], [ %spec.select60, %17 ]
  %22 = tail call i32 @set_file_offset(ptr noundef nonnull %0, i32 noundef %.043)
  %23 = call i32 @vorbis_find_page(ptr noundef nonnull %0, ptr noundef nonnull %2, ptr noundef nonnull %3)
  %.not49 = icmp eq i32 %23, 0
  br i1 %.not49, label %24, label %26

24:                                               ; preds = %21
  %25 = getelementptr inbounds i8, ptr %0, i64 156
  store i32 36, ptr %25, align 4, !tbaa !16
  store i32 -1, ptr %10, align 4, !tbaa !13
  br label %50

26:                                               ; preds = %21
  %27 = call i32 @stb_vorbis_get_file_offset(ptr noundef nonnull %0)
  %28 = load i32, ptr %3, align 4, !tbaa !17
  %.not5054 = icmp eq i32 %28, 0
  br i1 %.not5054, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %26
  %29 = load i32, ptr %2, align 4, !tbaa !17
  %30 = call i32 @set_file_offset(ptr noundef %0, i32 noundef %29)
  %31 = call i32 @vorbis_find_page(ptr noundef %0, ptr noundef nonnull %2, ptr noundef nonnull %3)
  %.not5161 = icmp eq i32 %31, 0
  br i1 %.not5161, label %._crit_edge, label %.lr.ph62

.lr.ph:                                           ; preds = %.lr.ph62
  %32 = load i32, ptr %2, align 4, !tbaa !17
  %33 = call i32 @set_file_offset(ptr noundef %0, i32 noundef %32)
  %34 = call i32 @vorbis_find_page(ptr noundef %0, ptr noundef nonnull %2, ptr noundef nonnull %3)
  %.not51 = icmp eq i32 %34, 0
  br i1 %.not51, label %._crit_edge, label %.lr.ph62, !llvm.loop !18

.lr.ph62:                                         ; preds = %.lr.ph.preheader, %.lr.ph
  %35 = call i32 @stb_vorbis_get_file_offset(ptr noundef %0)
  %36 = load i32, ptr %3, align 4, !tbaa !17
  %.not50 = icmp eq i32 %36, 0
  br i1 %.not50, label %.lr.ph, label %._crit_edge, !llvm.loop !18

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph62, %.lr.ph.preheader, %26
  %.042.lcssa = phi i32 [ %27, %26 ], [ %27, %.lr.ph.preheader ], [ %35, %.lr.ph62 ], [ %35, %.lr.ph ]
  %37 = call i32 @set_file_offset(ptr noundef %0, i32 noundef %.042.lcssa)
  %38 = call i32 @getn(ptr noundef %0, ptr noundef nonnull %4, i32 noundef 6)
  %39 = call i32 @get32(ptr noundef %0)
  %40 = call i32 @get32(ptr noundef %0)
  %41 = icmp eq i32 %39, -1
  %42 = icmp eq i32 %40, -1
  %or.cond = select i1 %41, i1 %42, i1 false
  br i1 %or.cond, label %43, label %45

43:                                               ; preds = %._crit_edge
  %44 = getelementptr inbounds i8, ptr %0, i64 156
  store i32 36, ptr %44, align 4, !tbaa !16
  store i32 -1, ptr %10, align 4, !tbaa !13
  br label %50

45:                                               ; preds = %._crit_edge
  %.not52 = icmp eq i32 %40, 0
  %spec.select = select i1 %.not52, i32 %39, i32 -2
  store i32 %spec.select, ptr %10, align 4, !tbaa !13
  %46 = getelementptr inbounds i8, ptr %0, i64 112
  store i32 %.042.lcssa, ptr %46, align 8, !tbaa !20
  %47 = load i32, ptr %2, align 4, !tbaa !17
  %48 = getelementptr inbounds i8, ptr %0, i64 116
  store i32 %47, ptr %48, align 4, !tbaa !21
  %49 = getelementptr inbounds i8, ptr %0, i64 120
  store i32 %spec.select, ptr %49, align 8, !tbaa !22
  br label %50

50:                                               ; preds = %45, %43, %24
  %51 = call i32 @set_file_offset(ptr noundef nonnull %0, i32 noundef %13)
  call void @llvm.lifetime.end.p0(i64 6, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  %.pre59 = load i32, ptr %10, align 4, !tbaa !13
  br label %52

52:                                               ; preds = %50, %9
  %53 = phi i32 [ %.pre59, %50 ], [ %11, %9 ]
  %54 = icmp eq i32 %53, -1
  %spec.select53 = select i1 %54, i32 0, i32 %53
  br label %55

55:                                               ; preds = %52, %7
  %.0 = phi i32 [ %8, %7 ], [ %spec.select53, %52 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
  ret i32 %.0
}

; Function Attrs: nounwind uwtable
declare hidden i32 @vorbis_find_page(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden i32 @getn(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden i32 @get32(ptr noundef) local_unnamed_addr #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 92}
!6 = !{!"stb_vorbis", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !10, i64 24, !7, i64 32, !10, i64 40, !10, i64 48, !7, i64 56, !7, i64 60, !10, i64 64, !10, i64 72, !10, i64 80, !7, i64 88, !8, i64 92, !7, i64 96, !11, i64 100, !11, i64 112, !12, i64 128, !7, i64 144, !7, i64 148, !7, i64 152, !7, i64 156, !8, i64 160, !7, i64 168, !7, i64 172, !7, i64 176, !10, i64 184, !7, i64 192, !8, i64 196, !10, i64 328, !7, i64 336, !8, i64 340, !10, i64 472, !7, i64 480, !10, i64 488, !7, i64 496, !8, i64 500, !7, i64 884, !8, i64 888, !8, i64 1016, !8, i64 1144, !7, i64 1272, !8, i64 1280, !7, i64 1408, !7, i64 1412, !8, i64 1416, !8, i64 1432, !8, i64 1448, !8, i64 1464, !8, i64 1480, !7, i64 1496, !7, i64 1500, !7, i64 1504, !8, i64 1508, !8, i64 1763, !8, i64 1764, !8, i64 1765, !7, i64 1768, !7, i64 1772, !7, i64 1776, !7, i64 1780, !7, i64 1784, !7, i64 1788, !7, i64 1792, !7, i64 1796, !7, i64 1800, !7, i64 1804, !7, i64 1808, !8, i64 1812, !7, i64 1892, !7, i64 1896}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8}
!12 = !{!"", !10, i64 0, !7, i64 8}
!13 = !{!6, !7, i64 884}
!14 = !{!6, !7, i64 88}
!15 = !{!6, !7, i64 96}
!16 = !{!6, !7, i64 156}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!6, !7, i64 112}
!21 = !{!6, !7, i64 116}
!22 = !{!6, !7, i64 120}


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