; LLVM IR from modlfo/AudioEngine :: AudioEngine/JuceLibraryCode/modules/juce_audio_formats/codecs/oggvorbis (crosslap)

; 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.OggVorbis_File = type { ptr, i32, i64, i64, %struct.ogg_sync_state, i32, ptr, ptr, ptr, ptr, ptr, ptr, i64, i32, i64, i32, double, double, %struct.ogg_stream_state, %struct.vorbis_dsp_state, %struct.vorbis_block, %struct.ov_callbacks }
%struct.ogg_sync_state = type { ptr, i32, i32, i32, i32, i32, i32 }
%struct.ogg_stream_state = type { ptr, i64, i64, i64, ptr, ptr, i64, i64, i64, i64, [282 x i8], i32, i32, i32, i64, i64, i64, i64 }
%struct.vorbis_dsp_state = type { i32, ptr, ptr, ptr, i32, i32, i32, i32, i32, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, ptr }
%struct.vorbis_block = type { ptr, %struct.oggpack_buffer, i64, i64, i64, i32, i32, i32, i64, i64, ptr, ptr, i64, i64, i64, ptr, i64, i64, i64, i64, ptr }
%struct.oggpack_buffer = type { i64, i32, ptr, ptr, i64 }
%struct.ov_callbacks = type { ptr, ptr, ptr, ptr }
%struct.vorbis_info = type { i32, i32, i64, i64, i64, i64, i64, ptr }

; 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 dso_local i32 @ov_halfrate_p(ptr noundef) #1

declare i32 @vorbis_info_blocksize(ptr noundef, i32 noundef) #2

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

; Function Attrs: nounwind uwtable
define dso_local i32 @ov_crosslap(ptr noundef %0, ptr noundef %1) #1 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = icmp eq ptr %19, %20
  br i1 %21, label %22, label %23

22:                                               ; preds = %2
  store i32 0, ptr %3, align 4
  store i32 1, ptr %18, align 4
  br label %120

23:                                               ; preds = %2
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.OggVorbis_File, ptr %24, i32 0, i32 13
  %26 = load i32, ptr %25, align 8, !tbaa !9
  %27 = icmp slt i32 %26, 2
  br i1 %27, label %28, label %29

28:                                               ; preds = %23
  store i32 -131, ptr %3, align 4
  store i32 1, ptr %18, align 4
  br label %120

29:                                               ; preds = %23
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.OggVorbis_File, ptr %30, i32 0, i32 13
  %32 = load i32, ptr %31, align 8, !tbaa !9
  %33 = icmp slt i32 %32, 2
  br i1 %33, label %34, label %35

34:                                               ; preds = %29
  store i32 -131, ptr %3, align 4
  store i32 1, ptr %18, align 4
  br label %120

35:                                               ; preds = %29
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = call i32 @_ov_initset(ptr noundef %36)
  store i32 %37, ptr %15, align 4, !tbaa !20
  %38 = load i32, ptr %15, align 4, !tbaa !20
  %39 = icmp ne i32 %38, 0
  br i1 %39, label %40, label %42

40:                                               ; preds = %35
  %41 = load i32, ptr %15, align 4, !tbaa !20
  store i32 %41, ptr %3, align 4
  store i32 1, ptr %18, align 4
  br label %120

42:                                               ; preds = %35
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = call i32 @_ov_initprime(ptr noundef %43)
  store i32 %44, ptr %15, align 4, !tbaa !20
  %45 = load i32, ptr %15, align 4, !tbaa !20
  %46 = icmp ne i32 %45, 0
  br i1 %46, label %47, label %49

47:                                               ; preds = %42
  %48 = load i32, ptr %15, align 4, !tbaa !20
  store i32 %48, ptr %3, align 4
  store i32 1, ptr %18, align 4
  br label %120

49:                                               ; preds = %42
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = call ptr @ov_info(ptr noundef %50, i32 noundef -1)
  store ptr %51, ptr %6, align 8, !tbaa !5
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = call ptr @ov_info(ptr noundef %52, i32 noundef -1)
  store ptr %53, ptr %7, align 8, !tbaa !5
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = call i32 @ov_halfrate_p(ptr noundef %54)
  store i32 %55, ptr %16, align 4, !tbaa !20
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = call i32 @ov_halfrate_p(ptr noundef %56)
  store i32 %57, ptr %17, align 4, !tbaa !20
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.vorbis_info, ptr %58, i32 0, i32 1
  %60 = load i32, ptr %59, align 4, !tbaa !21
  %61 = sext i32 %60 to i64
  %62 = mul i64 8, %61
  %63 = alloca i8, i64 %62, align 16
  store ptr %63, ptr %8, align 8, !tbaa !5
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = call i32 @vorbis_info_blocksize(ptr noundef %64, i32 noundef 0)
  %66 = load i32, ptr %16, align 4, !tbaa !20
  %67 = add nsw i32 1, %66
  %68 = ashr i32 %65, %67
  store i32 %68, ptr %12, align 4, !tbaa !20
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = call i32 @vorbis_info_blocksize(ptr noundef %69, i32 noundef 0)
  %71 = load i32, ptr %17, align 4, !tbaa !20
  %72 = add nsw i32 1, %71
  %73 = ashr i32 %70, %72
  store i32 %73, ptr %13, align 4, !tbaa !20
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.OggVorbis_File, ptr %74, i32 0, i32 19
  %76 = call ptr @vorbis_window(ptr noundef %75, i32 noundef 0)
  store ptr %76, ptr %10, align 8, !tbaa !5
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.OggVorbis_File, ptr %77, i32 0, i32 19
  %79 = call ptr @vorbis_window(ptr noundef %78, i32 noundef 0)
  store ptr %79, ptr %11, align 8, !tbaa !5
  store i32 0, ptr %14, align 4, !tbaa !20
  br label %80

80:                                               ; preds = %95, %49
  %81 = load i32, ptr %14, align 4, !tbaa !20
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.vorbis_info, ptr %82, i32 0, i32 1
  %84 = load i32, ptr %83, align 4, !tbaa !21
  %85 = icmp slt i32 %81, %84
  br i1 %85, label %86, label %98

86:                                               ; preds = %80
  %87 = load i32, ptr %12, align 4, !tbaa !20
  %88 = sext i32 %87 to i64
  %89 = mul i64 4, %88
  %90 = alloca i8, i64 %89, align 16
  %91 = load ptr, ptr %8, align 8, !tbaa !5
  %92 = load i32, ptr %14, align 4, !tbaa !20
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds ptr, ptr %91, i64 %93
  store ptr %90, ptr %94, align 8, !tbaa !5
  br label %95

95:                                               ; preds = %86
  %96 = load i32, ptr %14, align 4, !tbaa !20
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %14, align 4, !tbaa !20
  br label %80, !llvm.loop !23

98:                                               ; preds = %80
  %99 = load ptr, ptr %4, align 8, !tbaa !5
  %100 = load ptr, ptr %6, align 8, !tbaa !5
  %101 = load ptr, ptr %4, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.OggVorbis_File, ptr %101, i32 0, i32 19
  %103 = load ptr, ptr %8, align 8, !tbaa !5
  %104 = load i32, ptr %12, align 4, !tbaa !20
  call void @_ov_getlap(ptr noundef %99, ptr noundef %100, ptr noundef %102, ptr noundef %103, i32 noundef %104)
  %105 = load ptr, ptr %5, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.OggVorbis_File, ptr %105, i32 0, i32 19
  %107 = call i32 @vorbis_synthesis_lapout(ptr noundef %106, ptr noundef %9)
  %108 = load ptr, ptr %9, align 8, !tbaa !5
  %109 = load ptr, ptr %8, align 8, !tbaa !5
  %110 = load i32, ptr %12, align 4, !tbaa !20
  %111 = load i32, ptr %13, align 4, !tbaa !20
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.vorbis_info, ptr %112, i32 0, i32 1
  %114 = load i32, ptr %113, align 4, !tbaa !21
  %115 = load ptr, ptr %7, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.vorbis_info, ptr %115, i32 0, i32 1
  %117 = load i32, ptr %116, align 4, !tbaa !21
  %118 = load ptr, ptr %10, align 8, !tbaa !5
  %119 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ov_splice(ptr noundef %108, ptr noundef %109, i32 noundef %110, i32 noundef %111, i32 noundef %114, i32 noundef %117, ptr noundef %118, ptr noundef %119)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %18, align 4
  br label %120

120:                                              ; preds = %98, %47, %40, %34, %28, %22
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  %121 = load i32, ptr %3, align 4
  ret i32 %121
}

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

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

declare ptr @vorbis_window(ptr noundef, i32 noundef) #2

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

declare i32 @vorbis_synthesis_lapout(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @_ov_splice(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, 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 = { "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 128}
!10 = !{!"OggVorbis_File", !6, i64 0, !11, i64 8, !12, i64 16, !12, i64 24, !13, i64 32, !11, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !12, i64 120, !11, i64 128, !12, i64 136, !11, i64 144, !14, i64 152, !14, i64 160, !15, i64 168, !16, i64 576, !17, i64 720, !19, i64 912}
!11 = !{!"int", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!"", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28}
!14 = !{!"double", !7, i64 0}
!15 = !{!"", !6, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !6, i64 32, !6, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !7, i64 80, !11, i64 364, !11, i64 368, !11, i64 372, !12, i64 376, !12, i64 384, !12, i64 392, !12, i64 400}
!16 = !{!"vorbis_dsp_state", !11, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !12, i64 120, !12, i64 128, !6, i64 136}
!17 = !{!"vorbis_block", !6, i64 0, !18, i64 8, !12, i64 48, !12, i64 56, !12, i64 64, !11, i64 72, !11, i64 76, !11, i64 80, !12, i64 88, !12, i64 96, !6, i64 104, !6, i64 112, !12, i64 120, !12, i64 128, !12, i64 136, !6, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !12, i64 176, !6, i64 184}
!18 = !{!"", !12, i64 0, !11, i64 8, !6, i64 16, !6, i64 24, !12, i64 32}
!19 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!20 = !{!11, !11, i64 0}
!21 = !{!22, !11, i64 4}
!22 = !{!"vorbis_info", !11, i64 0, !11, i64 4, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !6, i64 48}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


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

; 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 dso_local i32 @ov_halfrate_p(ptr noundef) local_unnamed_addr #1

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @ov_crosslap(ptr noundef %0, ptr noundef %1) local_unnamed_addr #1 {
  %3 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  %4 = icmp eq ptr %0, %1
  br i1 %4, label %58, label %5

5:                                                ; preds = %2
  %6 = getelementptr inbounds i8, ptr %0, i64 128
  %7 = load i32, ptr %6, align 8, !tbaa !5
  %8 = icmp slt i32 %7, 2
  br i1 %8, label %58, label %9

9:                                                ; preds = %5
  %10 = getelementptr inbounds i8, ptr %1, i64 128
  %11 = load i32, ptr %10, align 8, !tbaa !5
  %12 = icmp slt i32 %11, 2
  br i1 %12, label %58, label %13

13:                                               ; preds = %9
  %14 = tail call i32 @_ov_initset(ptr noundef nonnull %0)
  %.not = icmp eq i32 %14, 0
  br i1 %.not, label %15, label %58

15:                                               ; preds = %13
  %16 = tail call i32 @_ov_initprime(ptr noundef nonnull %1)
  %.not45 = icmp eq i32 %16, 0
  br i1 %.not45, label %17, label %58

17:                                               ; preds = %15
  %18 = tail call ptr @ov_info(ptr noundef nonnull %0, i32 noundef -1)
  %19 = tail call ptr @ov_info(ptr noundef nonnull %1, i32 noundef -1)
  %20 = tail call i32 @ov_halfrate_p(ptr noundef nonnull %0)
  %21 = tail call i32 @ov_halfrate_p(ptr noundef nonnull %1)
  %22 = getelementptr inbounds i8, ptr %18, i64 4
  %23 = load i32, ptr %22, align 4, !tbaa !19
  %24 = sext i32 %23 to i64
  %25 = shl nsw i64 %24, 3
  %26 = alloca i8, i64 %25, align 16
  %27 = tail call i32 @vorbis_info_blocksize(ptr noundef %18, i32 noundef 0) #3
  %28 = add nsw i32 %20, 1
  %29 = ashr i32 %27, %28
  %30 = tail call i32 @vorbis_info_blocksize(ptr noundef %19, i32 noundef 0) #3
  %31 = add nsw i32 %21, 1
  %32 = ashr i32 %30, %31
  %33 = getelementptr inbounds i8, ptr %0, i64 576
  %34 = tail call ptr @vorbis_window(ptr noundef nonnull %33, i32 noundef 0) #3
  %35 = getelementptr inbounds i8, ptr %1, i64 576
  %36 = tail call ptr @vorbis_window(ptr noundef nonnull %35, i32 noundef 0) #3
  %37 = load i32, ptr %22, align 4, !tbaa !19
  %38 = icmp sgt i32 %37, 0
  br i1 %38, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %17
  %39 = sext i32 %29 to i64
  %40 = shl nsw i64 %39, 2
  %wide.trip.count = zext nneg i32 %37 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %41 = icmp ult i32 %37, 4
  br i1 %41, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  br label %42

42:                                               ; preds = %42, %.lr.ph.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.new ], [ %indvars.iv.next.3, %42 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %42 ]
  %43 = alloca i8, i64 %40, align 16
  %44 = getelementptr inbounds ptr, ptr %26, i64 %indvars.iv
  store ptr %43, ptr %44, align 16, !tbaa !21
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %45 = alloca i8, i64 %40, align 16
  %46 = getelementptr inbounds ptr, ptr %26, i64 %indvars.iv.next
  store ptr %45, ptr %46, align 8, !tbaa !21
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %47 = alloca i8, i64 %40, align 16
  %48 = getelementptr inbounds ptr, ptr %26, i64 %indvars.iv.next.1
  store ptr %47, ptr %48, align 16, !tbaa !21
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %49 = alloca i8, i64 %40, align 16
  %50 = getelementptr inbounds ptr, ptr %26, i64 %indvars.iv.next.2
  store ptr %49, ptr %50, align 8, !tbaa !21
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %42, !llvm.loop !22

._crit_edge.loopexit.unr-lcssa:                   ; preds = %42, %.lr.ph
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next.3, %42 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.epil.preheader ], [ %indvars.iv.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %51 = alloca i8, i64 %40, align 16
  %52 = getelementptr inbounds ptr, ptr %26, i64 %indvars.iv.epil
  store ptr %51, ptr %52, align 8, !tbaa !21
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.epil.preheader, !llvm.loop !24

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader, %17
  call void @_ov_getlap(ptr noundef %0, ptr noundef nonnull %18, ptr noundef nonnull %33, ptr noundef nonnull %26, i32 noundef %29)
  %53 = call i32 @vorbis_synthesis_lapout(ptr noundef nonnull %35, ptr noundef nonnull %3) #3
  %54 = load ptr, ptr %3, align 8, !tbaa !21
  %55 = load i32, ptr %22, align 4, !tbaa !19
  %56 = getelementptr inbounds i8, ptr %19, i64 4
  %57 = load i32, ptr %56, align 4, !tbaa !19
  call void @_ov_splice(ptr noundef %54, ptr noundef nonnull %26, i32 noundef %29, i32 noundef %32, i32 noundef %55, i32 noundef %57, ptr noundef %34, ptr noundef %36)
  br label %58

58:                                               ; preds = %15, %13, %9, %5, %2, %._crit_edge
  %.0 = phi i32 [ 0, %._crit_edge ], [ 0, %2 ], [ -131, %5 ], [ -131, %9 ], [ %14, %13 ], [ %16, %15 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  ret i32 %.0
}

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

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

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

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

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

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

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 = { "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, !10, i64 128}
!6 = !{!"OggVorbis_File", !7, i64 0, !10, i64 8, !11, i64 16, !11, i64 24, !12, i64 32, !10, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !11, i64 120, !10, i64 128, !11, i64 136, !10, i64 144, !13, i64 152, !13, i64 160, !14, i64 168, !15, i64 576, !16, i64 720, !18, i64 912}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!"", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!13 = !{!"double", !8, i64 0}
!14 = !{!"", !7, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !7, i64 32, !7, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !8, i64 80, !10, i64 364, !10, i64 368, !10, i64 372, !11, i64 376, !11, i64 384, !11, i64 392, !11, i64 400}
!15 = !{!"vorbis_dsp_state", !10, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !11, i64 104, !11, i64 112, !11, i64 120, !11, i64 128, !7, i64 136}
!16 = !{!"vorbis_block", !7, i64 0, !17, i64 8, !11, i64 48, !11, i64 56, !11, i64 64, !10, i64 72, !10, i64 76, !10, i64 80, !11, i64 88, !11, i64 96, !7, i64 104, !7, i64 112, !11, i64 120, !11, i64 128, !11, i64 136, !7, i64 144, !11, i64 152, !11, i64 160, !11, i64 168, !11, i64 176, !7, i64 184}
!17 = !{!"", !11, i64 0, !10, i64 8, !7, i64 16, !7, i64 24, !11, i64 32}
!18 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24}
!19 = !{!20, !10, i64 4}
!20 = !{!"vorbis_info", !10, i64 0, !10, i64 4, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !7, i64 48}
!21 = !{!7, !7, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.unroll.disable"}


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