; LLVM IR from kdrag0n/fxdsp :: external/oboe/src/flowgraph/SourceI24.ll (ZN4oboe9flowgraph9SourceI249onProcessEi)

; 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"

%"class.oboe::flowgraph::FlowGraphSource" = type { %"class.oboe::flowgraph::FlowGraphNode", %"class.oboe::flowgraph::FlowGraphPortFloatOutput" }
%"class.oboe::flowgraph::FlowGraphNode" = type { ptr, i64, %"class.std::vector", i8, i8, i32 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::reference_wrapper<oboe::flowgraph::FlowGraphPort>, std::allocator<std::reference_wrapper<oboe::flowgraph::FlowGraphPort>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::reference_wrapper<oboe::flowgraph::FlowGraphPort>, std::allocator<std::reference_wrapper<oboe::flowgraph::FlowGraphPort>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::reference_wrapper<oboe::flowgraph::FlowGraphPort>, std::allocator<std::reference_wrapper<oboe::flowgraph::FlowGraphPort>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::reference_wrapper<oboe::flowgraph::FlowGraphPort>, std::allocator<std::reference_wrapper<oboe::flowgraph::FlowGraphPort>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.oboe::flowgraph::FlowGraphPortFloatOutput" = type { %"class.oboe::flowgraph::FlowGraphPortFloat" }
%"class.oboe::flowgraph::FlowGraphPortFloat" = type { %"class.oboe::flowgraph::FlowGraphPort.base", i32, %"class.std::unique_ptr" }
%"class.oboe::flowgraph::FlowGraphPort.base" = type <{ ptr, ptr, i32 }>
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.1" }
%"struct.std::_Head_base.1" = type { ptr }
%"class.oboe::flowgraph::FlowGraphSourceBuffered" = type { %"class.oboe::flowgraph::FlowGraphSource", ptr, i32, i32 }

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN4oboe9flowgraph9SourceI249onProcessEi(ptr noundef nonnull align 8 dereferenceable(96) %0, i32 noundef %1) unnamed_addr #0 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  %14 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %15 = getelementptr inbounds %"class.oboe::flowgraph::FlowGraphSource", ptr %14, i32 0, i32 1
  %16 = call noundef ptr @_ZN4oboe9flowgraph18FlowGraphPortFloat9getBufferEv(ptr noundef nonnull align 8 dereferenceable(32) %15)
  store ptr %16, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %17 = getelementptr inbounds %"class.oboe::flowgraph::FlowGraphSource", ptr %14, i32 0, i32 1
  %18 = call noundef i32 @_ZNK4oboe9flowgraph13FlowGraphPort18getSamplesPerFrameEv(ptr noundef nonnull align 8 dereferenceable(20) %17)
  store i32 %18, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %19 = getelementptr inbounds %"class.oboe::flowgraph::FlowGraphSourceBuffered", ptr %14, i32 0, i32 2
  %20 = load i32, ptr %19, align 8, !tbaa !11
  %21 = getelementptr inbounds %"class.oboe::flowgraph::FlowGraphSourceBuffered", ptr %14, i32 0, i32 3
  %22 = load i32, ptr %21, align 4, !tbaa !30
  %23 = sub nsw i32 %20, %22
  store i32 %23, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %24 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %25 = load i32, ptr %24, align 4, !tbaa !9
  store i32 %25, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %26 = load i32, ptr %8, align 4, !tbaa !9
  %27 = load i32, ptr %6, align 4, !tbaa !9
  %28 = mul nsw i32 %26, %27
  store i32 %28, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %29 = getelementptr inbounds %"class.oboe::flowgraph::FlowGraphSourceBuffered", ptr %14, i32 0, i32 1
  %30 = load ptr, ptr %29, align 8, !tbaa !31
  store ptr %30, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %31 = load ptr, ptr %10, align 8, !tbaa !5
  %32 = getelementptr inbounds %"class.oboe::flowgraph::FlowGraphSourceBuffered", ptr %14, i32 0, i32 3
  %33 = load i32, ptr %32, align 4, !tbaa !30
  %34 = load i32, ptr %6, align 4, !tbaa !9
  %35 = mul nsw i32 %33, %34
  %36 = mul nsw i32 %35, 3
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds i8, ptr %31, i64 %37
  store ptr %38, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %39

39:                                               ; preds = %74, %2
  %40 = load i32, ptr %12, align 4, !tbaa !9
  %41 = load i32, ptr %9, align 4, !tbaa !9
  %42 = icmp slt i32 %40, %41
  br i1 %42, label %44, label %43

43:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %77

44:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %45 = load ptr, ptr %11, align 8, !tbaa !5
  %46 = getelementptr inbounds i8, ptr %45, i64 2
  %47 = load i8, ptr %46, align 1, !tbaa !32
  %48 = zext i8 %47 to i32
  store i32 %48, ptr %13, align 4, !tbaa !9
  %49 = load i32, ptr %13, align 4, !tbaa !9
  %50 = shl i32 %49, 8
  store i32 %50, ptr %13, align 4, !tbaa !9
  %51 = load ptr, ptr %11, align 8, !tbaa !5
  %52 = getelementptr inbounds i8, ptr %51, i64 1
  %53 = load i8, ptr %52, align 1, !tbaa !32
  %54 = zext i8 %53 to i32
  %55 = load i32, ptr %13, align 4, !tbaa !9
  %56 = or i32 %55, %54
  store i32 %56, ptr %13, align 4, !tbaa !9
  %57 = load i32, ptr %13, align 4, !tbaa !9
  %58 = shl i32 %57, 8
  store i32 %58, ptr %13, align 4, !tbaa !9
  %59 = load ptr, ptr %11, align 8, !tbaa !5
  %60 = getelementptr inbounds i8, ptr %59, i64 0
  %61 = load i8, ptr %60, align 1, !tbaa !32
  %62 = zext i8 %61 to i32
  %63 = load i32, ptr %13, align 4, !tbaa !9
  %64 = or i32 %63, %62
  store i32 %64, ptr %13, align 4, !tbaa !9
  %65 = load i32, ptr %13, align 4, !tbaa !9
  %66 = shl i32 %65, 8
  store i32 %66, ptr %13, align 4, !tbaa !9
  %67 = load ptr, ptr %11, align 8, !tbaa !5
  %68 = getelementptr inbounds i8, ptr %67, i64 3
  store ptr %68, ptr %11, align 8, !tbaa !5
  %69 = load i32, ptr %13, align 4, !tbaa !9
  %70 = sitofp i32 %69 to float
  %71 = fmul float %70, 0x3E00000000000000
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = getelementptr inbounds float, ptr %72, i32 1
  store ptr %73, ptr %5, align 8, !tbaa !5
  store float %71, ptr %72, align 4, !tbaa !33
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %74

74:                                               ; preds = %44
  %75 = load i32, ptr %12, align 4, !tbaa !9
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %12, align 4, !tbaa !9
  br label %39, !llvm.loop !35

77:                                               ; preds = %43
  %78 = load i32, ptr %8, align 4, !tbaa !9
  %79 = getelementptr inbounds %"class.oboe::flowgraph::FlowGraphSourceBuffered", ptr %14, i32 0, i32 3
  %80 = load i32, ptr %79, align 4, !tbaa !30
  %81 = add nsw i32 %80, %78
  store i32 %81, ptr %79, align 4, !tbaa !30
  %82 = load i32, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  ret i32 %82
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN4oboe9flowgraph18FlowGraphPortFloat9getBufferEv(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4oboe9flowgraph13FlowGraphPort18getSamplesPerFrameEv(ptr noundef nonnull align 8 dereferenceable(20)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3

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

attributes #0 = { mustprogress 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 = { mustprogress 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 #3 = { inlinehint mustprogress 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 #4 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 88}
!12 = !{!"_ZTSN4oboe9flowgraph23FlowGraphSourceBufferedE", !13, i64 0, !6, i64 80, !10, i64 88, !10, i64 92}
!13 = !{!"_ZTSN4oboe9flowgraph15FlowGraphSourceE", !14, i64 0, !21, i64 48}
!14 = !{!"_ZTSN4oboe9flowgraph13FlowGraphNodeE", !15, i64 8, !16, i64 16, !20, i64 40, !20, i64 41, !10, i64 44}
!15 = !{!"long", !7, i64 0}
!16 = !{!"_ZTSSt6vectorISt17reference_wrapperIN4oboe9flowgraph13FlowGraphPortEESaIS4_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseISt17reference_wrapperIN4oboe9flowgraph13FlowGraphPortEESaIS4_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseISt17reference_wrapperIN4oboe9flowgraph13FlowGraphPortEESaIS4_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseISt17reference_wrapperIN4oboe9flowgraph13FlowGraphPortEESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!"bool", !7, i64 0}
!21 = !{!"_ZTSN4oboe9flowgraph24FlowGraphPortFloatOutputE", !22, i64 0}
!22 = !{!"_ZTSN4oboe9flowgraph18FlowGraphPortFloatE", !23, i64 0, !10, i64 20, !24, i64 24}
!23 = !{!"_ZTSN4oboe9flowgraph13FlowGraphPortE", !6, i64 8, !10, i64 16}
!24 = !{!"_ZTSSt10unique_ptrIA_fSt14default_deleteIS0_EE", !25, i64 0}
!25 = !{!"_ZTSSt15__uniq_ptr_dataIfSt14default_deleteIA_fELb1ELb1EE", !26, i64 0}
!26 = !{!"_ZTSSt15__uniq_ptr_implIfSt14default_deleteIA_fEE", !27, i64 0}
!27 = !{!"_ZTSSt5tupleIJPfSt14default_deleteIA_fEEE", !28, i64 0}
!28 = !{!"_ZTSSt11_Tuple_implILm0EJPfSt14default_deleteIA_fEEE", !29, i64 0}
!29 = !{!"_ZTSSt10_Head_baseILm0EPfLb0EE", !6, i64 0}
!30 = !{!12, !10, i64 92}
!31 = !{!12, !6, i64 80}
!32 = !{!7, !7, i64 0}
!33 = !{!34, !34, i64 0}
!34 = !{!"float", !7, i64 0}
!35 = distinct !{!35, !36}
!36 = !{!"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 nounwind uwtable
define dso_local noundef i32 @_ZN4oboe9flowgraph9SourceI249onProcessEi(ptr noundef nonnull align 8 dereferenceable(96) %0, i32 noundef %1) unnamed_addr #0 align 2 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  store i32 %1, ptr %3, align 4, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 48
  %6 = tail call noundef ptr @_ZN4oboe9flowgraph18FlowGraphPortFloat9getBufferEv(ptr noundef nonnull align 8 dereferenceable(32) %5)
  %7 = tail call noundef i32 @_ZNK4oboe9flowgraph13FlowGraphPort18getSamplesPerFrameEv(ptr noundef nonnull align 8 dereferenceable(20) %5)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
  %8 = getelementptr inbounds i8, ptr %0, i64 88
  %9 = load i32, ptr %8, align 8, !tbaa !9
  %10 = getelementptr inbounds i8, ptr %0, i64 92
  %11 = load i32, ptr %10, align 4, !tbaa !29
  %12 = sub nsw i32 %9, %11
  store i32 %12, ptr %4, align 4, !tbaa !5
  %13 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %14 = load i32, ptr %13, align 4, !tbaa !5
  %15 = mul nsw i32 %14, %7
  %16 = load i32, ptr %10, align 4, !tbaa !29
  %17 = icmp sgt i32 %15, 0
  br i1 %17, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %2
  %18 = getelementptr inbounds i8, ptr %0, i64 80
  %19 = load ptr, ptr %18, align 8, !tbaa !30
  %20 = mul i32 %7, 3
  %21 = mul i32 %20, %16
  %22 = sext i32 %21 to i64
  %23 = getelementptr i8, ptr %19, i64 %22
  %24 = zext nneg i32 %15 to i64
  %min.iters.check = icmp ult i32 %15, 9
  br i1 %min.iters.check, label %.lr.ph.preheader35, label %vector.memcheck

.lr.ph.preheader35:                               ; preds = %vector.body, %vector.memcheck, %.lr.ph.preheader
  %.024.ph = phi ptr [ %6, %vector.memcheck ], [ %6, %.lr.ph.preheader ], [ %ind.end, %vector.body ]
  %.02023.ph = phi i32 [ 0, %vector.memcheck ], [ 0, %.lr.ph.preheader ], [ %ind.end26, %vector.body ]
  %.02122.ph = phi ptr [ %23, %vector.memcheck ], [ %23, %.lr.ph.preheader ], [ %ind.end28, %vector.body ]
  %25 = sub i32 %15, %.02023.ph
  %.neg = add i32 %.02023.ph, 1
  %xtraiter = and i32 %25, 1
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader35
  %26 = getelementptr i8, ptr %.02122.ph, i64 1
  %27 = load i16, ptr %26, align 1
  %28 = zext i16 %27 to i32
  %29 = load i8, ptr %.02122.ph, align 1, !tbaa !31
  %30 = zext i8 %29 to i32
  %31 = shl nuw i32 %28, 16
  %32 = shl nuw nsw i32 %30, 8
  %33 = or disjoint i32 %31, %32
  %34 = getelementptr inbounds i8, ptr %.02122.ph, i64 3
  %35 = sitofp i32 %33 to float
  %36 = fmul float %35, 0x3E00000000000000
  %37 = getelementptr inbounds i8, ptr %.024.ph, i64 4
  store float %36, ptr %.024.ph, align 4, !tbaa !32
  %38 = add nuw nsw i32 %.02023.ph, 1
  br label %.lr.ph.prol.loopexit

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader35
  %.024.unr = phi ptr [ %.024.ph, %.lr.ph.preheader35 ], [ %37, %.lr.ph.prol ]
  %.02023.unr = phi i32 [ %.02023.ph, %.lr.ph.preheader35 ], [ %38, %.lr.ph.prol ]
  %.02122.unr = phi ptr [ %.02122.ph, %.lr.ph.preheader35 ], [ %34, %.lr.ph.prol ]
  %39 = icmp eq i32 %15, %.neg
  br i1 %39, label %._crit_edge, label %.lr.ph

vector.memcheck:                                  ; preds = %.lr.ph.preheader
  %40 = add nsw i32 %15, -1
  %41 = zext i32 %40 to i64
  %42 = shl nuw nsw i64 %41, 2
  %43 = getelementptr i8, ptr %6, i64 %42
  %scevgep = getelementptr i8, ptr %43, i64 4
  %44 = mul nuw nsw i64 %41, 3
  %45 = getelementptr i8, ptr %19, i64 %44
  %46 = getelementptr i8, ptr %45, i64 %22
  %scevgep25 = getelementptr i8, ptr %46, i64 3
  %bound0 = icmp ult ptr %6, %scevgep25
  %bound1 = icmp ult ptr %23, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %.lr.ph.preheader35, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.mod.vf = and i64 %24, 3
  %47 = icmp eq i64 %n.mod.vf, 0
  %48 = select i1 %47, i64 4, i64 %n.mod.vf
  %n.vec = sub nsw i64 %24, %48
  %49 = shl nsw i64 %n.vec, 2
  %ind.end = getelementptr i8, ptr %6, i64 %49
  %ind.end26 = trunc i64 %n.vec to i32
  %50 = mul nsw i64 %n.vec, 3
  %ind.end28 = getelementptr i8, ptr %23, i64 %50
  %invariant.gep = getelementptr i8, ptr %23, i64 1
  %invariant.gep36 = getelementptr i8, ptr %23, i64 7
  %invariant.gep38 = getelementptr i8, ptr %23, i64 10
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = shl i64 %index, 2
  %next.gep = getelementptr i8, ptr %6, i64 %offset.idx
  %offset.idx30 = mul i64 %index, 3
  %51 = or disjoint i64 %offset.idx30, 3
  %next.gep31 = getelementptr i8, ptr %23, i64 %offset.idx30
  %52 = getelementptr i8, ptr %next.gep31, i64 1
  %gep = getelementptr i8, ptr %invariant.gep, i64 %51
  %gep37 = getelementptr i8, ptr %invariant.gep36, i64 %offset.idx30
  %gep39 = getelementptr i8, ptr %invariant.gep38, i64 %offset.idx30
  %53 = load i16, ptr %52, align 1, !alias.scope !34
  %54 = load i16, ptr %gep, align 1, !alias.scope !34
  %55 = load i16, ptr %gep37, align 1, !alias.scope !34
  %56 = load i16, ptr %gep39, align 1, !alias.scope !34
  %57 = insertelement <4 x i16> poison, i16 %53, i64 0
  %58 = insertelement <4 x i16> %57, i16 %54, i64 1
  %59 = insertelement <4 x i16> %58, i16 %55, i64 2
  %60 = insertelement <4 x i16> %59, i16 %56, i64 3
  %61 = zext <4 x i16> %60 to <4 x i32>
  %wide.vec = load <12 x i8>, ptr %next.gep31, align 1, !tbaa !31
  %strided.vec = shufflevector <12 x i8> %wide.vec, <12 x i8> poison, <4 x i32> <i32 0, i32 3, i32 6, i32 9>
  %62 = zext <4 x i8> %strided.vec to <4 x i32>
  %63 = shl nuw <4 x i32> %61, <i32 16, i32 16, i32 16, i32 16>
  %64 = shl nuw nsw <4 x i32> %62, <i32 8, i32 8, i32 8, i32 8>
  %65 = or disjoint <4 x i32> %63, %64
  %66 = sitofp <4 x i32> %65 to <4 x float>
  %67 = fmul <4 x float> %66, <float 0x3E00000000000000, float 0x3E00000000000000, float 0x3E00000000000000, float 0x3E00000000000000>
  store <4 x float> %67, ptr %next.gep, align 4, !tbaa !32, !alias.scope !37, !noalias !34
  %index.next = add nuw i64 %index, 4
  %68 = icmp eq i64 %index.next, %n.vec
  br i1 %68, label %.lr.ph.preheader35, label %vector.body, !llvm.loop !39

._crit_edge:                                      ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %2
  %69 = add nsw i32 %16, %14
  store i32 %69, ptr %10, align 4, !tbaa !29
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
  ret i32 %14

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %.024 = phi ptr [ %93, %.lr.ph ], [ %.024.unr, %.lr.ph.prol.loopexit ]
  %.02023 = phi i32 [ %94, %.lr.ph ], [ %.02023.unr, %.lr.ph.prol.loopexit ]
  %.02122 = phi ptr [ %90, %.lr.ph ], [ %.02122.unr, %.lr.ph.prol.loopexit ]
  %70 = getelementptr i8, ptr %.02122, i64 1
  %71 = load i16, ptr %70, align 1
  %72 = zext i16 %71 to i32
  %73 = load i8, ptr %.02122, align 1, !tbaa !31
  %74 = zext i8 %73 to i32
  %75 = shl nuw i32 %72, 16
  %76 = shl nuw nsw i32 %74, 8
  %77 = or disjoint i32 %75, %76
  %78 = getelementptr inbounds i8, ptr %.02122, i64 3
  %79 = sitofp i32 %77 to float
  %80 = fmul float %79, 0x3E00000000000000
  %81 = getelementptr inbounds i8, ptr %.024, i64 4
  store float %80, ptr %.024, align 4, !tbaa !32
  %82 = getelementptr i8, ptr %.02122, i64 4
  %83 = load i16, ptr %82, align 1
  %84 = zext i16 %83 to i32
  %85 = load i8, ptr %78, align 1, !tbaa !31
  %86 = zext i8 %85 to i32
  %87 = shl nuw i32 %84, 16
  %88 = shl nuw nsw i32 %86, 8
  %89 = or disjoint i32 %87, %88
  %90 = getelementptr inbounds i8, ptr %.02122, i64 6
  %91 = sitofp i32 %89 to float
  %92 = fmul float %91, 0x3E00000000000000
  %93 = getelementptr inbounds i8, ptr %.024, i64 8
  store float %92, ptr %81, align 4, !tbaa !32
  %94 = add nuw nsw i32 %.02023, 2
  %exitcond.not.1 = icmp eq i32 %94, %15
  br i1 %exitcond.not.1, label %._crit_edge, label %.lr.ph, !llvm.loop !43
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN4oboe9flowgraph18FlowGraphPortFloat9getBufferEv(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4oboe9flowgraph13FlowGraphPort18getSamplesPerFrameEv(ptr noundef nonnull align 8 dereferenceable(20)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

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

attributes #0 = { mustprogress 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 nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 88}
!10 = !{!"_ZTSN4oboe9flowgraph23FlowGraphSourceBufferedE", !11, i64 0, !18, i64 80, !6, i64 88, !6, i64 92}
!11 = !{!"_ZTSN4oboe9flowgraph15FlowGraphSourceE", !12, i64 0, !20, i64 48}
!12 = !{!"_ZTSN4oboe9flowgraph13FlowGraphNodeE", !13, i64 8, !14, i64 16, !19, i64 40, !19, i64 41, !6, i64 44}
!13 = !{!"long", !7, i64 0}
!14 = !{!"_ZTSSt6vectorISt17reference_wrapperIN4oboe9flowgraph13FlowGraphPortEESaIS4_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseISt17reference_wrapperIN4oboe9flowgraph13FlowGraphPortEESaIS4_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseISt17reference_wrapperIN4oboe9flowgraph13FlowGraphPortEESaIS4_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseISt17reference_wrapperIN4oboe9flowgraph13FlowGraphPortEESaIS4_EE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!18 = !{!"any pointer", !7, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{!"_ZTSN4oboe9flowgraph24FlowGraphPortFloatOutputE", !21, i64 0}
!21 = !{!"_ZTSN4oboe9flowgraph18FlowGraphPortFloatE", !22, i64 0, !6, i64 20, !23, i64 24}
!22 = !{!"_ZTSN4oboe9flowgraph13FlowGraphPortE", !18, i64 8, !6, i64 16}
!23 = !{!"_ZTSSt10unique_ptrIA_fSt14default_deleteIS0_EE", !24, i64 0}
!24 = !{!"_ZTSSt15__uniq_ptr_dataIfSt14default_deleteIA_fELb1ELb1EE", !25, i64 0}
!25 = !{!"_ZTSSt15__uniq_ptr_implIfSt14default_deleteIA_fEE", !26, i64 0}
!26 = !{!"_ZTSSt5tupleIJPfSt14default_deleteIA_fEEE", !27, i64 0}
!27 = !{!"_ZTSSt11_Tuple_implILm0EJPfSt14default_deleteIA_fEEE", !28, i64 0}
!28 = !{!"_ZTSSt10_Head_baseILm0EPfLb0EE", !18, i64 0}
!29 = !{!10, !6, i64 92}
!30 = !{!10, !18, i64 80}
!31 = !{!7, !7, i64 0}
!32 = !{!33, !33, i64 0}
!33 = !{!"float", !7, i64 0}
!34 = !{!35}
!35 = distinct !{!35, !36}
!36 = distinct !{!36, !"LVerDomain"}
!37 = !{!38}
!38 = distinct !{!38, !36}
!39 = distinct !{!39, !40, !41, !42}
!40 = !{!"llvm.loop.mustprogress"}
!41 = !{!"llvm.loop.isvectorized", i32 1}
!42 = !{!"llvm.loop.unroll.runtime.disable"}
!43 = distinct !{!43, !40, !41}


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass