; LLVM IR from VoidRune/Audio-engine :: src (minivorbis)

; 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.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 }

; 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 ptr @_vorbis_block_alloc(ptr noundef, i64 noundef) #1

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @res2_forward(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5, ptr noundef %6, i32 noundef %7) #1 {
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store ptr %2, ptr %12, align 8, !tbaa !5
  store ptr %3, ptr %13, align 8, !tbaa !5
  store ptr %4, ptr %14, align 8, !tbaa !5
  store i32 %5, ptr %15, align 4, !tbaa !9
  store ptr %6, ptr %16, align 8, !tbaa !5
  store i32 %7, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #2
  %26 = load ptr, ptr %11, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.vorbis_block, ptr %26, i32 0, i32 5
  %28 = load i32, ptr %27, align 8, !tbaa !11
  %29 = sdiv i32 %28, 2
  %30 = sext i32 %29 to i64
  store i64 %30, ptr %21, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #2
  store i64 0, ptr %22, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #2
  %31 = load ptr, ptr %11, align 8, !tbaa !5
  %32 = load i32, ptr %15, align 4, !tbaa !9
  %33 = sext i32 %32 to i64
  %34 = load i64, ptr %21, align 8, !tbaa !15
  %35 = mul nsw i64 %33, %34
  %36 = mul i64 %35, 4
  %37 = call ptr @_vorbis_block_alloc(ptr noundef %31, i64 noundef %36)
  store ptr %37, ptr %23, align 8, !tbaa !5
  store i64 0, ptr %18, align 8, !tbaa !15
  br label %38

38:                                               ; preds = %78, %8
  %39 = load i64, ptr %18, align 8, !tbaa !15
  %40 = load i32, ptr %15, align 4, !tbaa !9
  %41 = sext i32 %40 to i64
  %42 = icmp slt i64 %39, %41
  br i1 %42, label %43, label %81

43:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #2
  %44 = load ptr, ptr %13, align 8, !tbaa !5
  %45 = load i64, ptr %18, align 8, !tbaa !15
  %46 = getelementptr inbounds ptr, ptr %44, i64 %45
  %47 = load ptr, ptr %46, align 8, !tbaa !5
  store ptr %47, ptr %24, align 8, !tbaa !5
  %48 = load ptr, ptr %14, align 8, !tbaa !5
  %49 = load i64, ptr %18, align 8, !tbaa !15
  %50 = getelementptr inbounds i32, ptr %48, i64 %49
  %51 = load i32, ptr %50, align 4, !tbaa !9
  %52 = icmp ne i32 %51, 0
  br i1 %52, label %53, label %56

53:                                               ; preds = %43
  %54 = load i64, ptr %22, align 8, !tbaa !15
  %55 = add nsw i64 %54, 1
  store i64 %55, ptr %22, align 8, !tbaa !15
  br label %56

56:                                               ; preds = %53, %43
  store i64 0, ptr %19, align 8, !tbaa !15
  %57 = load i64, ptr %18, align 8, !tbaa !15
  store i64 %57, ptr %20, align 8, !tbaa !15
  br label %58

58:                                               ; preds = %70, %56
  %59 = load i64, ptr %19, align 8, !tbaa !15
  %60 = load i64, ptr %21, align 8, !tbaa !15
  %61 = icmp slt i64 %59, %60
  br i1 %61, label %62, label %77

62:                                               ; preds = %58
  %63 = load ptr, ptr %24, align 8, !tbaa !5
  %64 = load i64, ptr %19, align 8, !tbaa !15
  %65 = getelementptr inbounds i32, ptr %63, i64 %64
  %66 = load i32, ptr %65, align 4, !tbaa !9
  %67 = load ptr, ptr %23, align 8, !tbaa !5
  %68 = load i64, ptr %20, align 8, !tbaa !15
  %69 = getelementptr inbounds i32, ptr %67, i64 %68
  store i32 %66, ptr %69, align 4, !tbaa !9
  br label %70

70:                                               ; preds = %62
  %71 = load i64, ptr %19, align 8, !tbaa !15
  %72 = add nsw i64 %71, 1
  store i64 %72, ptr %19, align 8, !tbaa !15
  %73 = load i32, ptr %15, align 4, !tbaa !9
  %74 = sext i32 %73 to i64
  %75 = load i64, ptr %20, align 8, !tbaa !15
  %76 = add nsw i64 %75, %74
  store i64 %76, ptr %20, align 8, !tbaa !15
  br label %58, !llvm.loop !16

77:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #2
  br label %78

78:                                               ; preds = %77
  %79 = load i64, ptr %18, align 8, !tbaa !15
  %80 = add nsw i64 %79, 1
  store i64 %80, ptr %18, align 8, !tbaa !15
  br label %38, !llvm.loop !18

81:                                               ; preds = %38
  %82 = load i64, ptr %22, align 8, !tbaa !15
  %83 = icmp ne i64 %82, 0
  br i1 %83, label %84, label %90

84:                                               ; preds = %81
  %85 = load i32, ptr %17, align 4, !tbaa !9
  %86 = load ptr, ptr %10, align 8, !tbaa !5
  %87 = load ptr, ptr %12, align 8, !tbaa !5
  %88 = load ptr, ptr %16, align 8, !tbaa !5
  %89 = call i32 @_01forward(ptr noundef %86, ptr noundef %87, ptr noundef %23, i32 noundef 1, ptr noundef %88, ptr noundef @_encodepart)
  store i32 %89, ptr %9, align 4
  store i32 1, ptr %25, align 4
  br label %91

90:                                               ; preds = %81
  store i32 0, ptr %9, align 4
  store i32 1, ptr %25, align 4
  br label %91

91:                                               ; preds = %90, %84
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #2
  %92 = load i32, ptr %9, align 4
  ret i32 %92
}

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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 72}
!12 = !{!"vorbis_block", !6, i64 0, !13, i64 8, !14, i64 48, !14, i64 56, !14, i64 64, !10, i64 72, !10, i64 76, !10, i64 80, !14, i64 88, !14, i64 96, !6, i64 104, !6, i64 112, !14, i64 120, !14, i64 128, !14, i64 136, !6, i64 144, !14, i64 152, !14, i64 160, !14, i64 168, !14, i64 176, !6, i64 184}
!13 = !{!"", !14, i64 0, !10, i64 8, !6, i64 16, !6, i64 24, !14, i64 32}
!14 = !{!"long", !7, i64 0}
!15 = !{!14, !14, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}


; 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 ptr @_vorbis_block_alloc(ptr noundef, i64 noundef) local_unnamed_addr #1

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @res2_forward(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr nocapture noundef readonly %3, ptr nocapture noundef readonly %4, i32 noundef %5, ptr noundef %6, i32 noundef %7) local_unnamed_addr #1 {
  %9 = alloca ptr, align 8
  %10 = getelementptr inbounds i8, ptr %1, i64 72
  %11 = load i32, ptr %10, align 8, !tbaa !5
  %12 = sdiv i32 %11, 2
  %13 = sext i32 %12 to i64
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #3
  %14 = sext i32 %5 to i64
  %15 = shl nsw i64 %14, 2
  %16 = mul i64 %15, %13
  %17 = tail call ptr @_vorbis_block_alloc(ptr noundef %1, i64 noundef %16)
  %18 = ptrtoint ptr %17 to i64
  store ptr %17, ptr %9, align 8, !tbaa !13
  %19 = icmp sgt i32 %5, 0
  br i1 %19, label %.lr.ph37, label %._crit_edge38.thread

.lr.ph37:                                         ; preds = %8
  %20 = icmp sgt i32 %11, 1
  br i1 %20, label %.lr.ph.us.preheader, label %.lr.ph37.split.preheader

.lr.ph.us.preheader:                              ; preds = %.lr.ph37
  %min.iters.check50 = icmp ult i32 %12, 8
  %ident.check.not = icmp ne i32 %5, 1
  %or.cond.not63 = or i1 %min.iters.check50, %ident.check.not
  %n.vec53 = and i64 %13, 1073741816
  %21 = mul nuw nsw i64 %n.vec53, %14
  %cmp.n61 = icmp eq i64 %n.vec53, %13
  %xtraiter = and i64 %13, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.lr.ph.us

.lr.ph37.split.preheader:                         ; preds = %.lr.ph37
  %min.iters.check = icmp ult i32 %5, 4
  br i1 %min.iters.check, label %.lr.ph37.split.preheader64, label %vector.ph

.lr.ph37.split.preheader64:                       ; preds = %middle.block, %.lr.ph37.split.preheader
  %.02635.ph = phi i64 [ 0, %.lr.ph37.split.preheader ], [ %31, %middle.block ]
  %.02734.ph = phi i64 [ 0, %.lr.ph37.split.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph37.split

vector.ph:                                        ; preds = %.lr.ph37.split.preheader
  %n.vec = and i64 %14, 2147483644
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %28, %vector.body ]
  %vec.phi46 = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %29, %vector.body ]
  %22 = getelementptr inbounds i32, ptr %4, i64 %index
  %23 = getelementptr inbounds i8, ptr %22, i64 8
  %wide.load = load <2 x i32>, ptr %22, align 4, !tbaa !14
  %wide.load47 = load <2 x i32>, ptr %23, align 4, !tbaa !14
  %24 = icmp ne <2 x i32> %wide.load, zeroinitializer
  %25 = icmp ne <2 x i32> %wide.load47, zeroinitializer
  %26 = zext <2 x i1> %24 to <2 x i64>
  %27 = zext <2 x i1> %25 to <2 x i64>
  %28 = add <2 x i64> %vec.phi, %26
  %29 = add <2 x i64> %vec.phi46, %27
  %index.next = add nuw i64 %index, 4
  %30 = icmp eq i64 %index.next, %n.vec
  br i1 %30, label %middle.block, label %vector.body, !llvm.loop !15

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <2 x i64> %29, %28
  %31 = tail call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx)
  %cmp.n = icmp eq i64 %n.vec, %14
  br i1 %cmp.n, label %._crit_edge38, label %.lr.ph37.split.preheader64

.lr.ph.us:                                        ; preds = %.lr.ph.us.preheader, %._crit_edge.us
  %.02635.us = phi i64 [ %spec.select.us, %._crit_edge.us ], [ 0, %.lr.ph.us.preheader ]
  %.02734.us = phi i64 [ %69, %._crit_edge.us ], [ 0, %.lr.ph.us.preheader ]
  %32 = shl nuw nsw i64 %.02734.us, 2
  %33 = add i64 %32, %18
  %34 = getelementptr inbounds ptr, ptr %3, i64 %.02734.us
  %35 = load ptr, ptr %34, align 8, !tbaa !13
  %36 = ptrtoint ptr %35 to i64
  %37 = getelementptr inbounds i32, ptr %4, i64 %.02734.us
  %38 = load i32, ptr %37, align 4, !tbaa !14
  %.not31.us = icmp ne i32 %38, 0
  %39 = zext i1 %.not31.us to i64
  %40 = sub i64 %33, %36
  %diff.check = icmp ult i64 %40, 32
  %or.cond62 = select i1 %or.cond.not63, i1 true, i1 %diff.check
  br i1 %or.cond62, label %scalar.ph49.preheader, label %vector.ph51

vector.ph51:                                      ; preds = %.lr.ph.us
  %ind.end = add nuw i64 %.02734.us, %21
  %41 = getelementptr i32, ptr %17, i64 %.02734.us
  br label %vector.body56

vector.body56:                                    ; preds = %vector.body56, %vector.ph51
  %index57 = phi i64 [ 0, %vector.ph51 ], [ %index.next60, %vector.body56 ]
  %42 = mul nuw i64 %index57, %14
  %43 = getelementptr inbounds i32, ptr %35, i64 %index57
  %44 = getelementptr inbounds i8, ptr %43, i64 16
  %wide.load58 = load <4 x i32>, ptr %43, align 4, !tbaa !14
  %wide.load59 = load <4 x i32>, ptr %44, align 4, !tbaa !14
  %45 = getelementptr i32, ptr %41, i64 %42
  %46 = getelementptr inbounds i8, ptr %45, i64 16
  store <4 x i32> %wide.load58, ptr %45, align 4, !tbaa !14
  store <4 x i32> %wide.load59, ptr %46, align 4, !tbaa !14
  %index.next60 = add nuw i64 %index57, 8
  %47 = icmp eq i64 %index.next60, %n.vec53
  br i1 %47, label %middle.block48, label %vector.body56, !llvm.loop !19

middle.block48:                                   ; preds = %vector.body56
  br i1 %cmp.n61, label %._crit_edge.us, label %scalar.ph49.preheader

scalar.ph49.preheader:                            ; preds = %middle.block48, %.lr.ph.us
  %.02833.us.ph = phi i64 [ %.02734.us, %.lr.ph.us ], [ %ind.end, %middle.block48 ]
  %.02932.us.ph = phi i64 [ 0, %.lr.ph.us ], [ %n.vec53, %middle.block48 ]
  br i1 %lcmp.mod.not, label %scalar.ph49.prol.loopexit, label %scalar.ph49.prol

scalar.ph49.prol:                                 ; preds = %scalar.ph49.preheader, %scalar.ph49.prol
  %.02833.us.prol = phi i64 [ %52, %scalar.ph49.prol ], [ %.02833.us.ph, %scalar.ph49.preheader ]
  %.02932.us.prol = phi i64 [ %51, %scalar.ph49.prol ], [ %.02932.us.ph, %scalar.ph49.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %scalar.ph49.prol ], [ 0, %scalar.ph49.preheader ]
  %48 = getelementptr inbounds i32, ptr %35, i64 %.02932.us.prol
  %49 = load i32, ptr %48, align 4, !tbaa !14
  %50 = getelementptr inbounds i32, ptr %17, i64 %.02833.us.prol
  store i32 %49, ptr %50, align 4, !tbaa !14
  %51 = add nuw nsw i64 %.02932.us.prol, 1
  %52 = add nuw nsw i64 %.02833.us.prol, %14
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %scalar.ph49.prol.loopexit, label %scalar.ph49.prol, !llvm.loop !20

scalar.ph49.prol.loopexit:                        ; preds = %scalar.ph49.prol, %scalar.ph49.preheader
  %.02833.us.unr = phi i64 [ %.02833.us.ph, %scalar.ph49.preheader ], [ %52, %scalar.ph49.prol ]
  %.02932.us.unr = phi i64 [ %.02932.us.ph, %scalar.ph49.preheader ], [ %51, %scalar.ph49.prol ]
  %53 = sub nsw i64 %.02932.us.ph, %13
  %54 = icmp ugt i64 %53, -4
  br i1 %54, label %._crit_edge.us, label %scalar.ph49.preheader.new

scalar.ph49.preheader.new:                        ; preds = %scalar.ph49.prol.loopexit
  %invariant.gep = getelementptr i8, ptr %35, i64 4
  %invariant.gep70 = getelementptr i8, ptr %35, i64 8
  %invariant.gep72 = getelementptr i8, ptr %35, i64 12
  br label %scalar.ph49

scalar.ph49:                                      ; preds = %scalar.ph49, %scalar.ph49.preheader.new
  %.02833.us = phi i64 [ %.02833.us.unr, %scalar.ph49.preheader.new ], [ %68, %scalar.ph49 ]
  %.02932.us = phi i64 [ %.02932.us.unr, %scalar.ph49.preheader.new ], [ %67, %scalar.ph49 ]
  %55 = getelementptr inbounds i32, ptr %35, i64 %.02932.us
  %56 = load i32, ptr %55, align 4, !tbaa !14
  %57 = getelementptr inbounds i32, ptr %17, i64 %.02833.us
  store i32 %56, ptr %57, align 4, !tbaa !14
  %58 = add nuw nsw i64 %.02833.us, %14
  %gep = getelementptr i32, ptr %invariant.gep, i64 %.02932.us
  %59 = load i32, ptr %gep, align 4, !tbaa !14
  %60 = getelementptr inbounds i32, ptr %17, i64 %58
  store i32 %59, ptr %60, align 4, !tbaa !14
  %61 = add nuw nsw i64 %58, %14
  %gep71 = getelementptr i32, ptr %invariant.gep70, i64 %.02932.us
  %62 = load i32, ptr %gep71, align 4, !tbaa !14
  %63 = getelementptr inbounds i32, ptr %17, i64 %61
  store i32 %62, ptr %63, align 4, !tbaa !14
  %64 = add nuw nsw i64 %61, %14
  %gep73 = getelementptr i32, ptr %invariant.gep72, i64 %.02932.us
  %65 = load i32, ptr %gep73, align 4, !tbaa !14
  %66 = getelementptr inbounds i32, ptr %17, i64 %64
  store i32 %65, ptr %66, align 4, !tbaa !14
  %67 = add nuw nsw i64 %.02932.us, 4
  %68 = add nuw nsw i64 %64, %14
  %exitcond40.not.3 = icmp eq i64 %67, %13
  br i1 %exitcond40.not.3, label %._crit_edge.us, label %scalar.ph49, !llvm.loop !22

._crit_edge.us:                                   ; preds = %scalar.ph49.prol.loopexit, %scalar.ph49, %middle.block48
  %spec.select.us = add nuw nsw i64 %.02635.us, %39
  %69 = add nuw nsw i64 %.02734.us, 1
  %exitcond41.not = icmp eq i64 %69, %14
  br i1 %exitcond41.not, label %._crit_edge38, label %.lr.ph.us, !llvm.loop !23

.lr.ph37.split:                                   ; preds = %.lr.ph37.split.preheader64, %.lr.ph37.split
  %.02635 = phi i64 [ %spec.select, %.lr.ph37.split ], [ %.02635.ph, %.lr.ph37.split.preheader64 ]
  %.02734 = phi i64 [ %73, %.lr.ph37.split ], [ %.02734.ph, %.lr.ph37.split.preheader64 ]
  %70 = getelementptr inbounds i32, ptr %4, i64 %.02734
  %71 = load i32, ptr %70, align 4, !tbaa !14
  %.not31 = icmp ne i32 %71, 0
  %72 = zext i1 %.not31 to i64
  %spec.select = add nuw nsw i64 %.02635, %72
  %73 = add nuw nsw i64 %.02734, 1
  %exitcond.not = icmp eq i64 %73, %14
  br i1 %exitcond.not, label %._crit_edge38, label %.lr.ph37.split, !llvm.loop !24

._crit_edge38:                                    ; preds = %.lr.ph37.split, %._crit_edge.us, %middle.block
  %.026.lcssa = phi i64 [ %31, %middle.block ], [ %spec.select.us, %._crit_edge.us ], [ %spec.select, %.lr.ph37.split ]
  %.not = icmp eq i64 %.026.lcssa, 0
  br i1 %.not, label %._crit_edge38.thread, label %74

74:                                               ; preds = %._crit_edge38
  %75 = call i32 @_01forward(ptr noundef %0, ptr noundef %2, ptr noundef nonnull %9, i32 noundef 1, ptr noundef %6, ptr noundef nonnull @_encodepart)
  br label %._crit_edge38.thread

._crit_edge38.thread:                             ; preds = %8, %._crit_edge38, %74
  %.0 = phi i32 [ %75, %74 ], [ 0, %._crit_edge38 ], [ 0, %8 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #3
  ret i32 %.0
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.vector.reduce.add.v2i64(<2 x i64>) #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, !12, i64 72}
!6 = !{!"vorbis_block", !7, i64 0, !10, i64 8, !11, i64 48, !11, i64 56, !11, i64 64, !12, i64 72, !12, i64 76, !12, 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}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"", !11, i64 0, !12, i64 8, !7, i64 16, !7, i64 24, !11, i64 32}
!11 = !{!"long", !8, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!12, !12, i64 0}
!15 = distinct !{!15, !16, !17, !18}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!"llvm.loop.isvectorized", i32 1}
!18 = !{!"llvm.loop.unroll.runtime.disable"}
!19 = distinct !{!19, !16, !17, !18}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.unroll.disable"}
!22 = distinct !{!22, !16, !17}
!23 = distinct !{!23, !16}
!24 = distinct !{!24, !16, !18, !17}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass