; LLVM IR from Try/Tempest :: Engine/thirdparty/openal-soft/core/converter.ll (ZN15SampleConverter7convertEPPKvPjPvj)

; 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.al::span.10" = type { ptr, i64 }
%"class.al::span.11" = type { ptr, i64 }
%class.FPUCtl = type <{ i32, i8, [3 x i8] }>
%"class.al::span.12" = type { ptr, i64 }
%"class.al::span.13" = type { ptr }
%"class.al::ptr_wrapper.14" = type { ptr }
%"class.al::span.6" = type { ptr, i64 }
%struct.SampleConverter = type { i8, i8, i32, i32, i32, i32, i32, %"class.std::variant", ptr, [8 x i8], %"struct.std::array", %"struct.std::array", %"struct.al::FlexArray" }
%"class.std::variant" = type { %"struct.std::__detail::__variant::_Variant_base.base", [7 x i8] }
%"struct.std::__detail::__variant::_Variant_base.base" = type { %"struct.std::__detail::__variant::_Move_assign_base.base" }
%"struct.std::__detail::__variant::_Move_assign_base.base" = type { %"struct.std::__detail::__variant::_Copy_assign_base.base" }
%"struct.std::__detail::__variant::_Copy_assign_base.base" = type { %"struct.std::__detail::__variant::_Move_ctor_base.base" }
%"struct.std::__detail::__variant::_Move_ctor_base.base" = type { %"struct.std::__detail::__variant::_Copy_ctor_base.base" }
%"struct.std::__detail::__variant::_Copy_ctor_base.base" = type { %"struct.std::__detail::__variant::_Variant_storage.base" }
%"struct.std::__detail::__variant::_Variant_storage.base" = type <{ %"union.std::__detail::__variant::_Variadic_union", i8 }>
%"union.std::__detail::__variant::_Variadic_union" = type { %"union.std::__detail::__variant::_Variadic_union.2" }
%"union.std::__detail::__variant::_Variadic_union.2" = type { %"union.std::__detail::__variant::_Variadic_union.4" }
%"union.std::__detail::__variant::_Variadic_union.4" = type { %"struct.std::__detail::__variant::_Uninitialized.5" }
%"struct.std::__detail::__variant::_Uninitialized.5" = type { %struct.BsincState }
%struct.BsincState = type { float, i32, i32, %"class.al::span.6" }
%"struct.std::array" = type { [1024 x float] }
%"struct.al::FlexArray" = type { %"struct.al::FlexArrayStorage" }
%"struct.al::FlexArrayStorage" = type { %"class.al::span.8" }
%"class.al::span.8" = type { ptr, i64 }
%"struct.SampleConverter::ChanSamples" = type { %"struct.std::array.9" }
%"struct.std::array.9" = type { [48 x float] }

@.str = external hidden unnamed_addr constant [33 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [94 x i8], align 1
@__PRETTY_FUNCTION__._ZN15SampleConverter7convertEPPKvPjPvj = external hidden unnamed_addr constant [67 x i8], align 1
@_ZL19MaxResamplerPadding = external hidden constant i32, align 4

declare i32 @__gxx_personality_v0(...)

; 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: mustprogress nounwind uwtable
declare dso_local void @_ZN6FPUCtlC2Ev(ptr noundef nonnull align 4 dereferenceable(5)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6FPUCtlD2Ev(ptr noundef nonnull align 4 dereferenceable(5)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt5clampImERKT_S2_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_Zli4_u64y(i64 noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN15SampleConverter7convertEPPKvPjPvj(ptr noundef nonnull align 16 dereferenceable(8288) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) #2 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %"class.al::span.10", align 8
  %16 = alloca %"class.al::span.11", align 8
  %17 = alloca %class.FPUCtl, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca i64, align 8
  %25 = alloca %"class.al::span.12", align 8
  %26 = alloca %"class.al::span.13", align 8
  %27 = alloca i32, align 4
  %28 = alloca %"class.al::span.12", align 8
  %29 = alloca %"class.al::span.12", align 8
  %30 = alloca i32, align 4
  %31 = alloca i64, align 8
  %32 = alloca i32, align 4
  %33 = alloca i64, align 8
  %34 = alloca i64, align 8
  %35 = alloca i64, align 8
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i64, align 8
  %42 = alloca %"class.al::ptr_wrapper.14", align 8
  %43 = alloca %"class.al::ptr_wrapper.14", align 8
  %44 = alloca %"class.al::span.12", align 8
  %45 = alloca ptr, align 8
  %46 = alloca %"class.al::ptr_wrapper.14", align 8
  %47 = alloca %"class.al::ptr_wrapper.14", align 8
  %48 = alloca float, align 4
  %49 = alloca %"class.al::span.6", align 8
  %50 = alloca %"class.al::span.12", align 8
  %51 = alloca %"class.al::span.6", align 8
  %52 = alloca %"class.al::span.12", align 8
  %53 = alloca i32, align 4
  %54 = alloca i32, align 4
  %55 = alloca %"class.al::span.10", align 8
  %56 = alloca %"class.al::span.11", align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store i32 %4, ptr %10, align 4, !tbaa !9
  %57 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %58 = getelementptr inbounds %struct.SampleConverter, ptr %57, i32 0, i32 12
  %59 = call noundef i64 @_ZNK2al9FlexArrayIN15SampleConverter11ChanSamplesELm16EE4sizeEv(ptr noundef nonnull align 16 dereferenceable(16) %58) #8
  %60 = getelementptr inbounds %struct.SampleConverter, ptr %57, i32 0, i32 2
  %61 = load i32, ptr %60, align 4, !tbaa !11
  %62 = zext i32 %61 to i64
  %63 = mul i64 %59, %62
  store i64 %63, ptr %11, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %64 = getelementptr inbounds %struct.SampleConverter, ptr %57, i32 0, i32 12
  %65 = call noundef i64 @_ZNK2al9FlexArrayIN15SampleConverter11ChanSamplesELm16EE4sizeEv(ptr noundef nonnull align 16 dereferenceable(16) %64) #8
  %66 = getelementptr inbounds %struct.SampleConverter, ptr %57, i32 0, i32 3
  %67 = load i32, ptr %66, align 8, !tbaa !27
  %68 = zext i32 %67 to i64
  %69 = mul i64 %65, %68
  store i64 %69, ptr %12, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  %70 = getelementptr inbounds %struct.SampleConverter, ptr %57, i32 0, i32 6
  %71 = load i32, ptr %70, align 4, !tbaa !28
  store i32 %71, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  %72 = load ptr, ptr %8, align 8, !tbaa !5
  %73 = load i32, ptr %72, align 4, !tbaa !9
  store i32 %73, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #8
  %74 = load ptr, ptr %7, align 8, !tbaa !5
  %75 = load ptr, ptr %74, align 8, !tbaa !5
  %76 = load i32, ptr %14, align 4, !tbaa !9
  %77 = zext i32 %76 to i64
  %78 = load i64, ptr %11, align 8, !tbaa !26
  %79 = mul i64 %77, %78
  call void @_ZN2al4spanIKSt4byteLm18446744073709551615EEC2IPS2_EET_m(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef %75, i64 noundef %79)
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #8
  %80 = load ptr, ptr %9, align 8, !tbaa !5
  %81 = load i32, ptr %10, align 4, !tbaa !9
  %82 = zext i32 %81 to i64
  %83 = load i64, ptr %12, align 8, !tbaa !26
  %84 = mul i64 %82, %83
  call void @_ZN2al4spanISt4byteLm18446744073709551615EEC2IPS1_EET_m(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef %80, i64 noundef %84)
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  call void @_ZN6FPUCtlC2Ev(ptr noundef nonnull align 4 dereferenceable(5) %17) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %85

85:                                               ; preds = %384, %5
  %86 = load i32, ptr %18, align 4, !tbaa !9
  %87 = load i32, ptr %10, align 4, !tbaa !9
  %88 = icmp ult i32 %86, %87
  br i1 %88, label %89, label %92

89:                                               ; preds = %85
  %90 = load i32, ptr %14, align 4, !tbaa !9
  %91 = icmp ugt i32 %90, 0
  br label %92

92:                                               ; preds = %89, %85
  %93 = phi i1 [ false, %85 ], [ %91, %89 ]
  br i1 %93, label %94, label %392

94:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  %95 = getelementptr inbounds %struct.SampleConverter, ptr %57, i32 0, i32 4
  %96 = load i32, ptr %95, align 4, !tbaa !29
  store i32 %96, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  %97 = load i32, ptr %19, align 4, !tbaa !9
  %98 = sub i32 1024, %97
  store i32 %98, ptr %21, align 4, !tbaa !9
  %99 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %100 unwind label %116

100:                                              ; preds = %94
  %101 = load i32, ptr %99, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  store i32 %101, ptr %20, align 4, !tbaa !9
  %102 = load i32, ptr %19, align 4, !tbaa !9
  %103 = icmp ult i32 %102, 48
  br i1 %103, label %104, label %152

104:                                              ; preds = %100
  %105 = load i32, ptr %19, align 4, !tbaa !9
  %106 = sub i32 48, %105
  %107 = load i32, ptr %20, align 4, !tbaa !9
  %108 = icmp uge i32 %106, %107
  br i1 %108, label %109, label %152

109:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  store i64 0, ptr %24, align 8, !tbaa !26
  br label %110

110:                                              ; preds = %144, %109
  %111 = load i64, ptr %24, align 8, !tbaa !26
  %112 = getelementptr inbounds %struct.SampleConverter, ptr %57, i32 0, i32 12
  %113 = call noundef i64 @_ZNK2al9FlexArrayIN15SampleConverter11ChanSamplesELm16EE4sizeEv(ptr noundef nonnull align 16 dereferenceable(16) %112) #8
  %114 = icmp ult i64 %111, %113
  br i1 %114, label %120, label %115

115:                                              ; preds = %110
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  br label %147

116:                                              ; preds = %94
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %22, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %391

120:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  %121 = getelementptr inbounds %struct.SampleConverter, ptr %57, i32 0, i32 12
  %122 = load i64, ptr %24, align 8, !tbaa !26
  %123 = call noundef nonnull align 16 dereferenceable(192) ptr @_ZN2al9FlexArrayIN15SampleConverter11ChanSamplesELm16EEixEm(ptr noundef nonnull align 16 dereferenceable(16) %121, i64 noundef %122) #8
  %124 = getelementptr inbounds %"struct.SampleConverter::ChanSamples", ptr %123, i32 0, i32 0
  call void @_ZN2al4spanIfLm48EEC2ILm48EEERSt5arrayIfXT_EE(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 4 dereferenceable(192) %124) #8
  %125 = load i32, ptr %19, align 4, !tbaa !9
  %126 = zext i32 %125 to i64
  %127 = load i32, ptr %20, align 4, !tbaa !9
  %128 = zext i32 %127 to i64
  %129 = call { ptr, i64 } @_ZNK2al4spanIfLm48EE7subspanEmm(ptr noundef nonnull align 8 dereferenceable(8) %26, i64 noundef %126, i64 noundef %128) #8
  %130 = getelementptr inbounds { ptr, i64 }, ptr %25, i32 0, i32 0
  %131 = extractvalue { ptr, i64 } %129, 0
  store ptr %131, ptr %130, align 8
  %132 = getelementptr inbounds { ptr, i64 }, ptr %25, i32 0, i32 1
  %133 = extractvalue { ptr, i64 } %129, 1
  store i64 %133, ptr %132, align 8
  %134 = call noundef ptr @_ZNK2al4spanIKSt4byteLm18446744073709551615EE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %15) #8
  %135 = load i64, ptr %24, align 8, !tbaa !26
  %136 = getelementptr inbounds %struct.SampleConverter, ptr %57, i32 0, i32 12
  %137 = call noundef i64 @_ZNK2al9FlexArrayIN15SampleConverter11ChanSamplesELm16EE4sizeEv(ptr noundef nonnull align 16 dereferenceable(16) %136) #8
  %138 = getelementptr inbounds %struct.SampleConverter, ptr %57, i32 0, i32 0
  %139 = load i8, ptr %138, align 16, !tbaa !30
  %140 = getelementptr inbounds { ptr, i64 }, ptr %25, i32 0, i32 0
  %141 = load ptr, ptr %140, align 8
  %142 = getelementptr inbounds { ptr, i64 }, ptr %25, i32 0, i32 1
  %143 = load i64, ptr %142, align 8
  call void @_ZN12_GLOBAL__N_111LoadSamplesEN2al4spanIfLm18446744073709551615EEEPKvmm10DevFmtType(ptr %141, i64 %143, ptr noundef %134, i64 noundef %135, i64 noundef %137, i8 noundef zeroext %139) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  br label %144

144:                                              ; preds = %120
  %145 = load i64, ptr %24, align 8, !tbaa !26
  %146 = add i64 %145, 1
  store i64 %146, ptr %24, align 8, !tbaa !26
  br label %110, !llvm.loop !31

147:                                              ; preds = %115
  %148 = load i32, ptr %19, align 4, !tbaa !9
  %149 = load i32, ptr %20, align 4, !tbaa !9
  %150 = add i32 %148, %149
  %151 = getelementptr inbounds %struct.SampleConverter, ptr %57, i32 0, i32 4
  store i32 %150, ptr %151, align 4, !tbaa !29
  store i32 0, ptr %14, align 4, !tbaa !9
  store i32 3, ptr %27, align 4
  br label %382

152:                                              ; preds = %104, %100
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #8
  %153 = getelementptr inbounds %struct.SampleConverter, ptr %57, i32 0, i32 10
  call void @_ZN2al4spanIfLm18446744073709551615EEC2ILm1024EEERSt5arrayIfXT_EE(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 4 dereferenceable(4096) %153) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #8
  %154 = getelementptr inbounds %struct.SampleConverter, ptr %57, i32 0, i32 11
  call void @_ZN2al4spanIfLm18446744073709551615EEC2ILm1024EEERSt5arrayIfXT_EE(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef nonnull align 4 dereferenceable(4096) %154) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  %155 = getelementptr inbounds %struct.SampleConverter, ptr %57, i32 0, i32 5
  %156 = load i32, ptr %155, align 16, !tbaa !33
  store i32 %156, ptr %30, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  %157 = load i32, ptr %19, align 4, !tbaa !9
  %158 = zext i32 %157 to i64
  store i64 %158, ptr %31, align 8, !tbaa !26
  %159 = load i32, ptr %20, align 4, !tbaa !9
  %160 = zext i32 %159 to i64
  %161 = load i64, ptr %31, align 8, !tbaa !26
  %162 = add i64 %161, %160
  store i64 %162, ptr %31, align 8, !tbaa !26
  %163 = load i64, ptr %31, align 8, !tbaa !26
  %164 = sub i64 %163, 48
  store i64 %164, ptr %31, align 8, !tbaa !26
  %165 = load i64, ptr %31, align 8, !tbaa !26
  %166 = shl i64 %165, 16
  store i64 %166, ptr %31, align 8, !tbaa !26
  %167 = load i32, ptr %30, align 4, !tbaa !9
  %168 = zext i32 %167 to i64
  %169 = load i64, ptr %31, align 8, !tbaa !26
  %170 = sub i64 %169, %168
  store i64 %170, ptr %31, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #8
  %171 = load i64, ptr %31, align 8, !tbaa !26
  %172 = load i32, ptr %13, align 4, !tbaa !9
  %173 = zext i32 %172 to i64
  %174 = add i64 %171, %173
  %175 = sub i64 %174, 1
  %176 = load i32, ptr %13, align 4, !tbaa !9
  %177 = zext i32 %176 to i64
  %178 = udiv i64 %175, %177
  store i64 %178, ptr %33, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #8
  %179 = call noundef i64 @_Zli4_u64y(i64 noundef 1) #8
  store i64 %179, ptr %34, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #8
  store i64 1024, ptr %35, align 8, !tbaa !26
  %180 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt5clampImERKT_S2_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull align 8 dereferenceable(8) %35)
          to label %181 unwind label %204

181:                                              ; preds = %152
  %182 = load i64, ptr %180, align 8, !tbaa !26
  %183 = trunc i64 %182 to i32
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  store i32 %183, ptr %32, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #8
  %184 = load i32, ptr %10, align 4, !tbaa !9
  %185 = load i32, ptr %18, align 4, !tbaa !9
  %186 = sub i32 %184, %185
  store i32 %186, ptr %36, align 4, !tbaa !9
  %187 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %32, ptr noundef nonnull align 4 dereferenceable(4) %36)
          to label %188 unwind label %208

188:                                              ; preds = %181
  %189 = load i32, ptr %187, align 4, !tbaa !9
  store i32 %189, ptr %32, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #8
  %190 = load i32, ptr %32, align 4, !tbaa !9
  %191 = load i32, ptr %13, align 4, !tbaa !9
  %192 = mul i32 %190, %191
  %193 = load i32, ptr %30, align 4, !tbaa !9
  %194 = add i32 %192, %193
  store i32 %194, ptr %37, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #8
  %195 = load i32, ptr %37, align 4, !tbaa !9
  %196 = lshr i32 %195, 16
  store i32 %196, ptr %38, align 4, !tbaa !9
  %197 = load i32, ptr %19, align 4, !tbaa !9
  %198 = load i32, ptr %20, align 4, !tbaa !9
  %199 = add i32 %197, %198
  %200 = load i32, ptr %38, align 4, !tbaa !9
  %201 = icmp uge i32 %199, %200
  br i1 %201, label %202, label %203

202:                                              ; preds = %188
  br label %213

203:                                              ; preds = %188
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 277, ptr noundef @__PRETTY_FUNCTION__._ZN15SampleConverter7convertEPPKvPjPvj) #9
  unreachable

204:                                              ; preds = %152
  %205 = landingpad { ptr, i32 }
          cleanup
  %206 = extractvalue { ptr, i32 } %205, 0
  store ptr %206, ptr %22, align 8
  %207 = extractvalue { ptr, i32 } %205, 1
  store i32 %207, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  br label %390

208:                                              ; preds = %181
  %209 = landingpad { ptr, i32 }
          cleanup
  %210 = extractvalue { ptr, i32 } %209, 0
  store ptr %210, ptr %22, align 8
  %211 = extractvalue { ptr, i32 } %209, 1
  store i32 %211, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #8
  br label %390

212:                                              ; No predecessors!
  br label %213

213:                                              ; preds = %212, %202
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #8
  %214 = load i32, ptr %19, align 4, !tbaa !9
  %215 = load i32, ptr %20, align 4, !tbaa !9
  %216 = add i32 %214, %215
  %217 = load i32, ptr %38, align 4, !tbaa !9
  %218 = sub i32 %216, %217
  store i32 %218, ptr %40, align 4, !tbaa !9
  %219 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %40, ptr noundef nonnull align 4 dereferenceable(4) @_ZL19MaxResamplerPadding)
          to label %220 unwind label %228

220:                                              ; preds = %213
  %221 = load i32, ptr %219, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #8
  store i32 %221, ptr %39, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #8
  store i64 0, ptr %41, align 8, !tbaa !26
  br label %222

222:                                              ; preds = %322, %220
  %223 = load i64, ptr %41, align 8, !tbaa !26
  %224 = getelementptr inbounds %struct.SampleConverter, ptr %57, i32 0, i32 12
  %225 = call noundef i64 @_ZNK2al9FlexArrayIN15SampleConverter11ChanSamplesELm16EE4sizeEv(ptr noundef nonnull align 16 dereferenceable(16) %224) #8
  %226 = icmp ult i64 %223, %225
  br i1 %226, label %232, label %227

227:                                              ; preds = %222
  store i32 7, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #8
  br label %343

228:                                              ; preds = %213
  %229 = landingpad { ptr, i32 }
          cleanup
  %230 = extractvalue { ptr, i32 } %229, 0
  store ptr %230, ptr %22, align 8
  %231 = extractvalue { ptr, i32 } %229, 1
  store i32 %231, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #8
  br label %389

232:                                              ; preds = %222
  %233 = getelementptr inbounds %struct.SampleConverter, ptr %57, i32 0, i32 12
  %234 = load i64, ptr %41, align 8, !tbaa !26
  %235 = call noundef nonnull align 16 dereferenceable(192) ptr @_ZN2al9FlexArrayIN15SampleConverter11ChanSamplesELm16EEixEm(ptr noundef nonnull align 16 dereferenceable(16) %233, i64 noundef %234) #8
  %236 = getelementptr inbounds %"struct.SampleConverter::ChanSamples", ptr %235, i32 0, i32 0
  %237 = call noundef ptr @_ZNKSt5arrayIfLm48EE6cbeginEv(ptr noundef nonnull align 4 dereferenceable(192) %236) #8
  %238 = load i32, ptr %19, align 4, !tbaa !9
  %239 = call ptr @_ZNK2al4spanIfLm18446744073709551615EE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %28) #8
  %240 = getelementptr inbounds %"class.al::ptr_wrapper.14", ptr %42, i32 0, i32 0
  store ptr %239, ptr %240, align 8
  %241 = getelementptr inbounds %"class.al::ptr_wrapper.14", ptr %42, i32 0, i32 0
  %242 = load ptr, ptr %241, align 8
  %243 = invoke ptr @_ZSt6copy_nIPKfjN2al11ptr_wrapperIPfEEET1_T_T0_S6_(ptr noundef %237, i32 noundef %238, ptr %242)
          to label %244 unwind label %325

244:                                              ; preds = %232
  %245 = getelementptr inbounds %"class.al::ptr_wrapper.14", ptr %43, i32 0, i32 0
  store ptr %243, ptr %245, align 8
  %246 = load i32, ptr %19, align 4, !tbaa !9
  %247 = zext i32 %246 to i64
  %248 = load i32, ptr %20, align 4, !tbaa !9
  %249 = zext i32 %248 to i64
  %250 = call { ptr, i64 } @_ZNK2al4spanIfLm18446744073709551615EE7subspanEmm(ptr noundef nonnull align 8 dereferenceable(16) %28, i64 noundef %247, i64 noundef %249) #8
  %251 = getelementptr inbounds { ptr, i64 }, ptr %44, i32 0, i32 0
  %252 = extractvalue { ptr, i64 } %250, 0
  store ptr %252, ptr %251, align 8
  %253 = getelementptr inbounds { ptr, i64 }, ptr %44, i32 0, i32 1
  %254 = extractvalue { ptr, i64 } %250, 1
  store i64 %254, ptr %253, align 8
  %255 = call noundef ptr @_ZNK2al4spanIKSt4byteLm18446744073709551615EE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %15) #8
  %256 = load i64, ptr %41, align 8, !tbaa !26
  %257 = getelementptr inbounds %struct.SampleConverter, ptr %57, i32 0, i32 12
  %258 = call noundef i64 @_ZNK2al9FlexArrayIN15SampleConverter11ChanSamplesELm16EE4sizeEv(ptr noundef nonnull align 16 dereferenceable(16) %257) #8
  %259 = getelementptr inbounds %struct.SampleConverter, ptr %57, i32 0, i32 0
  %260 = load i8, ptr %259, align 16, !tbaa !30
  %261 = getelementptr inbounds { ptr, i64 }, ptr %44, i32 0, i32 0
  %262 = load ptr, ptr %261, align 8
  %263 = getelementptr inbounds { ptr, i64 }, ptr %44, i32 0, i32 1
  %264 = load i64, ptr %263, align 8
  call void @_ZN12_GLOBAL__N_111LoadSamplesEN2al4spanIfLm18446744073709551615EEEPKvmm10DevFmtType(ptr %262, i64 %264, ptr noundef %255, i64 noundef %256, i64 noundef %258, i8 noundef zeroext %260) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #8
  %265 = call ptr @_ZNK2al4spanIfLm18446744073709551615EE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %28) #8
  %266 = getelementptr inbounds %"class.al::ptr_wrapper.14", ptr %47, i32 0, i32 0
  store ptr %265, ptr %266, align 8
  %267 = load i32, ptr %38, align 4, !tbaa !9
  %268 = zext i32 %267 to i64
  %269 = call ptr @_ZN2alplERKNS_11ptr_wrapperIPfEEl(ptr noundef nonnull align 8 dereferenceable(8) %47, i64 noundef %268) #8
  %270 = getelementptr inbounds %"class.al::ptr_wrapper.14", ptr %46, i32 0, i32 0
  store ptr %269, ptr %270, align 8
  %271 = load i32, ptr %39, align 4, !tbaa !9
  %272 = getelementptr inbounds %struct.SampleConverter, ptr %57, i32 0, i32 12
  %273 = load i64, ptr %41, align 8, !tbaa !26
  %274 = call noundef nonnull align 16 dereferenceable(192) ptr @_ZN2al9FlexArrayIN15SampleConverter11ChanSamplesELm16EEixEm(ptr noundef nonnull align 16 dereferenceable(16) %272, i64 noundef %273) #8
  %275 = getelementptr inbounds %"struct.SampleConverter::ChanSamples", ptr %274, i32 0, i32 0
  %276 = call noundef ptr @_ZNSt5arrayIfLm48EE5beginEv(ptr noundef nonnull align 4 dereferenceable(192) %275) #10
  %277 = getelementptr inbounds %"class.al::ptr_wrapper.14", ptr %46, i32 0, i32 0
  %278 = load ptr, ptr %277, align 8
  %279 = invoke noundef ptr @_ZSt6copy_nIN2al11ptr_wrapperIPfEEjS2_ET1_T_T0_S4_(ptr %278, i32 noundef %271, ptr noundef %276)
          to label %280 unwind label %329

280:                                              ; preds = %244
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #8
  store ptr %279, ptr %45, align 8, !tbaa !5
  %281 = load ptr, ptr %45, align 8, !tbaa !5
  %282 = getelementptr inbounds %struct.SampleConverter, ptr %57, i32 0, i32 12
  %283 = load i64, ptr %41, align 8, !tbaa !26
  %284 = call noundef nonnull align 16 dereferenceable(192) ptr @_ZN2al9FlexArrayIN15SampleConverter11ChanSamplesELm16EEixEm(ptr noundef nonnull align 16 dereferenceable(16) %282, i64 noundef %283) #8
  %285 = getelementptr inbounds %"struct.SampleConverter::ChanSamples", ptr %284, i32 0, i32 0
  %286 = call noundef ptr @_ZNSt5arrayIfLm48EE3endEv(ptr noundef nonnull align 4 dereferenceable(192) %285) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #8
  store float 0.000000e+00, ptr %48, align 4, !tbaa !34
  invoke void @_ZSt4fillIPffEvT_S1_RKT0_(ptr noundef %281, ptr noundef %286, ptr noundef nonnull align 4 dereferenceable(4) %48)
          to label %287 unwind label %333

287:                                              ; preds = %280
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #8
  %288 = getelementptr inbounds %struct.SampleConverter, ptr %57, i32 0, i32 8
  %289 = load ptr, ptr %288, align 16, !tbaa !36
  %290 = getelementptr inbounds %struct.SampleConverter, ptr %57, i32 0, i32 7
  call void @_ZN2al4spanIKfLm18446744073709551615EEC2IfLm18446744073709551615ETnNSt9enable_ifIXaasr7detail_E19is_array_compatibleIT_S1_Eoontsr3std7is_sameIS1_S5_EE5valueneL_ZNS2_6extentEET0_EbE4typeELb1EEERKNS0_IS5_XT0_EEE(ptr noundef nonnull align 8 dereferenceable(16) %49, ptr noundef nonnull align 8 dereferenceable(16) %28) #8
  %291 = load i32, ptr %30, align 4, !tbaa !9
  %292 = load i32, ptr %13, align 4, !tbaa !9
  %293 = load i32, ptr %32, align 4, !tbaa !9
  %294 = zext i32 %293 to i64
  %295 = call { ptr, i64 } @_ZNK2al4spanIfLm18446744073709551615EE5firstEm(ptr noundef nonnull align 8 dereferenceable(16) %29, i64 noundef %294) #8
  %296 = getelementptr inbounds { ptr, i64 }, ptr %50, i32 0, i32 0
  %297 = extractvalue { ptr, i64 } %295, 0
  store ptr %297, ptr %296, align 8
  %298 = getelementptr inbounds { ptr, i64 }, ptr %50, i32 0, i32 1
  %299 = extractvalue { ptr, i64 } %295, 1
  store i64 %299, ptr %298, align 8
  %300 = getelementptr inbounds { ptr, i64 }, ptr %49, i32 0, i32 0
  %301 = load ptr, ptr %300, align 8
  %302 = getelementptr inbounds { ptr, i64 }, ptr %49, i32 0, i32 1
  %303 = load i64, ptr %302, align 8
  invoke void %289(ptr noundef %290, ptr %301, i64 %303, i32 noundef %291, i32 noundef %292, ptr noundef byval(%"class.al::span.12") align 8 %50)
          to label %304 unwind label %337

304:                                              ; preds = %287
  %305 = call noundef ptr @_ZNK2al4spanISt4byteLm18446744073709551615EE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %16) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %52) #8
  %306 = load i32, ptr %32, align 4, !tbaa !9
  %307 = zext i32 %306 to i64
  %308 = call { ptr, i64 } @_ZNK2al4spanIfLm18446744073709551615EE5firstEm(ptr noundef nonnull align 8 dereferenceable(16) %29, i64 noundef %307) #8
  %309 = getelementptr inbounds { ptr, i64 }, ptr %52, i32 0, i32 0
  %310 = extractvalue { ptr, i64 } %308, 0
  store ptr %310, ptr %309, align 8
  %311 = getelementptr inbounds { ptr, i64 }, ptr %52, i32 0, i32 1
  %312 = extractvalue { ptr, i64 } %308, 1
  store i64 %312, ptr %311, align 8
  call void @_ZN2al4spanIKfLm18446744073709551615EEC2IfLm18446744073709551615ETnNSt9enable_ifIXaasr7detail_E19is_array_compatibleIT_S1_Eoontsr3std7is_sameIS1_S5_EE5valueneL_ZNS2_6extentEET0_EbE4typeELb1EEERKNS0_IS5_XT0_EEE(ptr noundef nonnull align 8 dereferenceable(16) %51, ptr noundef nonnull align 8 dereferenceable(16) %52) #8
  %313 = load i64, ptr %41, align 8, !tbaa !26
  %314 = getelementptr inbounds %struct.SampleConverter, ptr %57, i32 0, i32 12
  %315 = call noundef i64 @_ZNK2al9FlexArrayIN15SampleConverter11ChanSamplesELm16EE4sizeEv(ptr noundef nonnull align 16 dereferenceable(16) %314) #8
  %316 = getelementptr inbounds %struct.SampleConverter, ptr %57, i32 0, i32 1
  %317 = load i8, ptr %316, align 1, !tbaa !37
  %318 = getelementptr inbounds { ptr, i64 }, ptr %51, i32 0, i32 0
  %319 = load ptr, ptr %318, align 8
  %320 = getelementptr inbounds { ptr, i64 }, ptr %51, i32 0, i32 1
  %321 = load i64, ptr %320, align 8
  call void @_ZN12_GLOBAL__N_112StoreSamplesEPvN2al4spanIKfLm18446744073709551615EEEmm10DevFmtType(ptr noundef %305, ptr %319, i64 %321, i64 noundef %313, i64 noundef %315, i8 noundef zeroext %317) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %52) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #8
  br label %322

322:                                              ; preds = %304
  %323 = load i64, ptr %41, align 8, !tbaa !26
  %324 = add i64 %323, 1
  store i64 %324, ptr %41, align 8, !tbaa !26
  br label %222, !llvm.loop !38

325:                                              ; preds = %232
  %326 = landingpad { ptr, i32 }
          cleanup
  %327 = extractvalue { ptr, i32 } %326, 0
  store ptr %327, ptr %22, align 8
  %328 = extractvalue { ptr, i32 } %326, 1
  store i32 %328, ptr %23, align 4
  br label %342

329:                                              ; preds = %244
  %330 = landingpad { ptr, i32 }
          cleanup
  %331 = extractvalue { ptr, i32 } %330, 0
  store ptr %331, ptr %22, align 8
  %332 = extractvalue { ptr, i32 } %330, 1
  store i32 %332, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #8
  br label %341

333:                                              ; preds = %280
  %334 = landingpad { ptr, i32 }
          cleanup
  %335 = extractvalue { ptr, i32 } %334, 0
  store ptr %335, ptr %22, align 8
  %336 = extractvalue { ptr, i32 } %334, 1
  store i32 %336, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #8
  br label %341

337:                                              ; preds = %287
  %338 = landingpad { ptr, i32 }
          cleanup
  %339 = extractvalue { ptr, i32 } %338, 0
  store ptr %339, ptr %22, align 8
  %340 = extractvalue { ptr, i32 } %338, 1
  store i32 %340, ptr %23, align 4
  br label %341

341:                                              ; preds = %337, %333, %329
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #8
  br label %342

342:                                              ; preds = %341, %325
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #8
  br label %389

343:                                              ; preds = %227
  %344 = load i32, ptr %39, align 4, !tbaa !9
  %345 = getelementptr inbounds %struct.SampleConverter, ptr %57, i32 0, i32 4
  store i32 %344, ptr %345, align 4, !tbaa !29
  %346 = load i32, ptr %37, align 4, !tbaa !9
  %347 = and i32 %346, 65535
  %348 = getelementptr inbounds %struct.SampleConverter, ptr %57, i32 0, i32 5
  store i32 %347, ptr %348, align 16, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 4, ptr %53) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #8
  %349 = load i32, ptr %38, align 4, !tbaa !9
  %350 = getelementptr inbounds %struct.SampleConverter, ptr %57, i32 0, i32 4
  %351 = load i32, ptr %350, align 4, !tbaa !29
  %352 = add i32 %349, %351
  %353 = load i32, ptr %19, align 4, !tbaa !9
  %354 = sub i32 %352, %353
  store i32 %354, ptr %54, align 4, !tbaa !9
  %355 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %54)
          to label %356 unwind label %385

356:                                              ; preds = %343
  %357 = load i32, ptr %355, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #8
  store i32 %357, ptr %53, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %55) #8
  %358 = load i64, ptr %11, align 8, !tbaa !26
  %359 = load i32, ptr %53, align 4, !tbaa !9
  %360 = zext i32 %359 to i64
  %361 = mul i64 %358, %360
  %362 = call { ptr, i64 } @_ZNK2al4spanIKSt4byteLm18446744073709551615EE7subspanEmm(ptr noundef nonnull align 8 dereferenceable(16) %15, i64 noundef %361, i64 noundef -1) #8
  %363 = getelementptr inbounds { ptr, i64 }, ptr %55, i32 0, i32 0
  %364 = extractvalue { ptr, i64 } %362, 0
  store ptr %364, ptr %363, align 8
  %365 = getelementptr inbounds { ptr, i64 }, ptr %55, i32 0, i32 1
  %366 = extractvalue { ptr, i64 } %362, 1
  store i64 %366, ptr %365, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 %55, i64 16, i1 false), !tbaa.struct !39
  call void @llvm.lifetime.end.p0(i64 16, ptr %55) #8
  %367 = load i32, ptr %53, align 4, !tbaa !9
  %368 = load i32, ptr %14, align 4, !tbaa !9
  %369 = sub i32 %368, %367
  store i32 %369, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %56) #8
  %370 = load i64, ptr %12, align 8, !tbaa !26
  %371 = load i32, ptr %32, align 4, !tbaa !9
  %372 = zext i32 %371 to i64
  %373 = mul i64 %370, %372
  %374 = call { ptr, i64 } @_ZNK2al4spanISt4byteLm18446744073709551615EE7subspanEmm(ptr noundef nonnull align 8 dereferenceable(16) %16, i64 noundef %373, i64 noundef -1) #8
  %375 = getelementptr inbounds { ptr, i64 }, ptr %56, i32 0, i32 0
  %376 = extractvalue { ptr, i64 } %374, 0
  store ptr %376, ptr %375, align 8
  %377 = getelementptr inbounds { ptr, i64 }, ptr %56, i32 0, i32 1
  %378 = extractvalue { ptr, i64 } %374, 1
  store i64 %378, ptr %377, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 %56, i64 16, i1 false), !tbaa.struct !39
  call void @llvm.lifetime.end.p0(i64 16, ptr %56) #8
  %379 = load i32, ptr %32, align 4, !tbaa !9
  %380 = load i32, ptr %18, align 4, !tbaa !9
  %381 = add i32 %380, %379
  store i32 %381, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #8
  store i32 0, ptr %27, align 4
  br label %382

382:                                              ; preds = %356, %147
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  %383 = load i32, ptr %27, align 4
  switch i32 %383, label %403 [
    i32 0, label %384
    i32 3, label %392
  ]

384:                                              ; preds = %382
  br label %85, !llvm.loop !40

385:                                              ; preds = %343
  %386 = landingpad { ptr, i32 }
          cleanup
  %387 = extractvalue { ptr, i32 } %386, 0
  store ptr %387, ptr %22, align 8
  %388 = extractvalue { ptr, i32 } %386, 1
  store i32 %388, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #8
  br label %389

389:                                              ; preds = %385, %342, %228
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  br label %390

390:                                              ; preds = %389, %208, %204
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #8
  br label %391

391:                                              ; preds = %390, %116
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @_ZN6FPUCtlD2Ev(ptr noundef nonnull align 4 dereferenceable(5) %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %398

392:                                              ; preds = %382, %92
  %393 = call noundef ptr @_ZNK2al4spanIKSt4byteLm18446744073709551615EE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %15) #8
  %394 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %393, ptr %394, align 8, !tbaa !5
  %395 = load i32, ptr %14, align 4, !tbaa !9
  %396 = load ptr, ptr %8, align 8, !tbaa !5
  store i32 %395, ptr %396, align 4, !tbaa !9
  %397 = load i32, ptr %18, align 4, !tbaa !9
  store i32 1, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @_ZN6FPUCtlD2Ev(ptr noundef nonnull align 4 dereferenceable(5) %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  ret i32 %397

398:                                              ; preds = %391
  %399 = load ptr, ptr %22, align 8
  %400 = load i32, ptr %23, align 4
  %401 = insertvalue { ptr, i32 } poison, ptr %399, 0
  %402 = insertvalue { ptr, i32 } %401, i32 %400, 1
  resume { ptr, i32 } %402

403:                                              ; preds = %382
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK2al9FlexArrayIN15SampleConverter11ChanSamplesELm16EE4sizeEv(ptr noundef nonnull align 16 dereferenceable(16)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2al4spanIKSt4byteLm18446744073709551615EEC2IPS2_EET_m(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i64 noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2al4spanISt4byteLm18446744073709551615EEC2IPS1_EET_m(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i64 noundef) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN12_GLOBAL__N_111LoadSamplesEN2al4spanIfLm18446744073709551615EEEPKvmm10DevFmtType(ptr, i64, ptr noundef, i64 noundef, i64 noundef, i8 noundef zeroext) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(192) ptr @_ZN2al9FlexArrayIN15SampleConverter11ChanSamplesELm16EEixEm(ptr noundef nonnull align 16 dereferenceable(16), i64 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2al4spanIfLm48EEC2ILm48EEERSt5arrayIfXT_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(192)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, i64 } @_ZNK2al4spanIfLm48EE7subspanEmm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef, i64 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK2al4spanIKSt4byteLm18446744073709551615EE4dataEv(ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2al4spanIfLm18446744073709551615EEC2ILm1024EEERSt5arrayIfXT_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4096)) unnamed_addr #1 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt6copy_nIPKfjN2al11ptr_wrapperIPfEEET1_T_T0_S6_(ptr noundef, i32 noundef, ptr) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt5arrayIfLm48EE6cbeginEv(ptr noundef nonnull align 4 dereferenceable(192)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNK2al4spanIfLm18446744073709551615EE5beginEv(ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, i64 } @_ZNK2al4spanIfLm18446744073709551615EE7subspanEmm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i64 noundef) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt6copy_nIN2al11ptr_wrapperIPfEEjS2_ET1_T_T0_S4_(ptr, i32 noundef, ptr noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZN2alplERKNS_11ptr_wrapperIPfEEl(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #1

; Function Attrs: mustprogress nounwind willreturn memory(none) uwtable
declare dso_local noundef ptr @_ZNSt5arrayIfLm48EE5beginEv(ptr noundef nonnull align 4 dereferenceable(192)) #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPffEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) #5

; Function Attrs: mustprogress nounwind willreturn memory(none) uwtable
declare dso_local noundef ptr @_ZNSt5arrayIfLm48EE3endEv(ptr noundef nonnull align 4 dereferenceable(192)) #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2al4spanIKfLm18446744073709551615EEC2IfLm18446744073709551615ETnNSt9enable_ifIXaasr7detail_E19is_array_compatibleIT_S1_Eoontsr3std7is_sameIS1_S5_EE5valueneL_ZNS2_6extentEET0_EbE4typeELb1EEERKNS0_IS5_XT0_EEE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, i64 } @_ZNK2al4spanIfLm18446744073709551615EE5firstEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN12_GLOBAL__N_112StoreSamplesEPvN2al4spanIKfLm18446744073709551615EEEmm10DevFmtType(ptr noundef, ptr, i64, i64 noundef, i64 noundef, i8 noundef zeroext) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK2al4spanISt4byteLm18446744073709551615EE4dataEv(ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, i64 } @_ZNK2al4spanIKSt4byteLm18446744073709551615EE7subspanEmm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i64 noundef) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, i64 } @_ZNK2al4spanISt4byteLm18446744073709551615EE7subspanEmm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i64 noundef) #1 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = { noreturn nounwind "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 #5 = { inlinehint 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 #6 = { mustprogress nounwind willreturn memory(none) 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 #7 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { nounwind }
attributes #9 = { noreturn nounwind }
attributes #10 = { nounwind willreturn memory(none) }

!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 4}
!12 = !{!"_ZTS15SampleConverter", !13, i64 0, !13, i64 1, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !14, i64 24, !6, i64 64, !21, i64 80, !21, i64 4176, !22, i64 8272}
!13 = !{!"_ZTS10DevFmtType", !7, i64 0}
!14 = !{!"_ZTSSt7variantIJSt9monostate10CubicState10BsincStateEE", !15, i64 0}
!15 = !{!"_ZTSNSt8__detail9__variant13_Variant_baseIJSt9monostate10CubicState10BsincStateEEE", !16, i64 0}
!16 = !{!"_ZTSNSt8__detail9__variant17_Move_assign_baseILb1EJSt9monostate10CubicState10BsincStateEEE", !17, i64 0}
!17 = !{!"_ZTSNSt8__detail9__variant17_Copy_assign_baseILb1EJSt9monostate10CubicState10BsincStateEEE", !18, i64 0}
!18 = !{!"_ZTSNSt8__detail9__variant15_Move_ctor_baseILb1EJSt9monostate10CubicState10BsincStateEEE", !19, i64 0}
!19 = !{!"_ZTSNSt8__detail9__variant15_Copy_ctor_baseILb1EJSt9monostate10CubicState10BsincStateEEE", !20, i64 0}
!20 = !{!"_ZTSNSt8__detail9__variant16_Variant_storageILb1EJSt9monostate10CubicState10BsincStateEEE", !7, i64 0, !7, i64 32}
!21 = !{!"_ZTSSt5arrayIfLm1024EE", !7, i64 0}
!22 = !{!"_ZTSN2al9FlexArrayIN15SampleConverter11ChanSamplesELm16EEE", !23, i64 0}
!23 = !{!"_ZTSN2al16FlexArrayStorageIN15SampleConverter11ChanSamplesELm16ELb1EEE", !24, i64 0}
!24 = !{!"_ZTSN2al4spanIN15SampleConverter11ChanSamplesELm18446744073709551615EEE", !6, i64 0, !25, i64 8}
!25 = !{!"long", !7, i64 0}
!26 = !{!25, !25, i64 0}
!27 = !{!12, !10, i64 8}
!28 = !{!12, !10, i64 20}
!29 = !{!12, !10, i64 12}
!30 = !{!12, !13, i64 0}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = !{!12, !10, i64 16}
!34 = !{!35, !35, i64 0}
!35 = !{!"float", !7, i64 0}
!36 = !{!12, !6, i64 64}
!37 = !{!12, !13, i64 1}
!38 = distinct !{!38, !32}
!39 = !{i64 0, i64 8, !5, i64 8, i64 8, !26}
!40 = distinct !{!40, !32}


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

%"class.al::span.10" = type { ptr, i64 }
%"class.al::span.11" = type { ptr, i64 }
%class.FPUCtl = type <{ i32, i8, [3 x i8] }>
%"class.al::span.13" = type { ptr }
%"class.al::span.12" = type { ptr, i64 }
%"class.al::ptr_wrapper.14" = type { ptr }
%"class.al::span.6" = type { ptr, i64 }

@.str = external hidden unnamed_addr constant [33 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [94 x i8], align 1
@__PRETTY_FUNCTION__._ZN15SampleConverter7convertEPPKvPjPvj = external hidden unnamed_addr constant [67 x i8], align 1
@_ZL19MaxResamplerPadding = external hidden constant i32, align 4

declare i32 @__gxx_personality_v0(...)

; 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: mustprogress nounwind uwtable
declare dso_local void @_ZN6FPUCtlC2Ev(ptr noundef nonnull align 4 dereferenceable(5)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6FPUCtlD2Ev(ptr noundef nonnull align 4 dereferenceable(5)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt5clampImERKT_S2_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_Zli4_u64y(i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN15SampleConverter7convertEPPKvPjPvj(ptr noundef nonnull align 16 dereferenceable(8288) %0, ptr nocapture noundef %1, ptr nocapture noundef %2, ptr noundef %3, i32 noundef %4) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca i32, align 4
  %7 = alloca %"class.al::span.10", align 8
  %8 = alloca %"class.al::span.11", align 8
  %9 = alloca %class.FPUCtl, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.al::span.13", align 8
  %12 = alloca %"class.al::span.12", align 8
  %13 = alloca %"class.al::span.12", align 8
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca %"class.al::ptr_wrapper.14", align 8
  %21 = alloca float, align 4
  %22 = alloca %"class.al::span.6", align 8
  %23 = alloca %"class.al::span.12", align 8
  %24 = alloca %"class.al::span.6", align 8
  %25 = alloca %"class.al::span.12", align 8
  %26 = alloca i32, align 4
  %27 = getelementptr inbounds i8, ptr %0, i64 8272
  %28 = tail call noundef i64 @_ZNK2al9FlexArrayIN15SampleConverter11ChanSamplesELm16EE4sizeEv(ptr noundef nonnull align 16 dereferenceable(16) %27) #7
  %29 = getelementptr inbounds i8, ptr %0, i64 4
  %30 = load i32, ptr %29, align 4, !tbaa !5
  %31 = zext i32 %30 to i64
  %32 = mul i64 %28, %31
  %33 = tail call noundef i64 @_ZNK2al9FlexArrayIN15SampleConverter11ChanSamplesELm16EE4sizeEv(ptr noundef nonnull align 16 dereferenceable(16) %27) #7
  %34 = getelementptr inbounds i8, ptr %0, i64 8
  %35 = load i32, ptr %34, align 8, !tbaa !24
  %36 = zext i32 %35 to i64
  %37 = mul i64 %33, %36
  %38 = getelementptr inbounds i8, ptr %0, i64 20
  %39 = load i32, ptr %38, align 4, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  %40 = load i32, ptr %2, align 4, !tbaa !26
  store i32 %40, ptr %6, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  %41 = load ptr, ptr %1, align 8, !tbaa !27
  %42 = zext i32 %40 to i64
  %43 = mul i64 %32, %42
  call void @_ZN2al4spanIKSt4byteLm18446744073709551615EEC2IPS2_EET_m(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef %41, i64 noundef %43)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  %44 = zext i32 %4 to i64
  %45 = mul i64 %37, %44
  call void @_ZN2al4spanISt4byteLm18446744073709551615EEC2IPS1_EET_m(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef %3, i64 noundef %45)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  call void @_ZN6FPUCtlC2Ev(ptr noundef nonnull align 4 dereferenceable(5) %9) #7
  %46 = icmp ne i32 %4, 0
  %47 = icmp ne i32 %40, 0
  %48 = and i1 %46, %47
  br i1 %48, label %.lr.ph132, label %.loopexit

.lr.ph132:                                        ; preds = %5
  %49 = getelementptr inbounds i8, ptr %0, i64 12
  %50 = getelementptr inbounds i8, ptr %0, i64 80
  %51 = getelementptr inbounds i8, ptr %0, i64 4176
  %52 = getelementptr inbounds i8, ptr %0, i64 16
  %53 = zext i32 %39 to i64
  %54 = add nsw i64 %53, -3145729
  %55 = getelementptr inbounds i8, ptr %0, i64 64
  %56 = getelementptr inbounds i8, ptr %0, i64 24
  %57 = getelementptr inbounds i8, ptr %23, i64 8
  %58 = getelementptr inbounds i8, ptr %22, i64 8
  %59 = getelementptr inbounds i8, ptr %25, i64 8
  %60 = getelementptr inbounds i8, ptr %0, i64 1
  %61 = getelementptr inbounds i8, ptr %24, i64 8
  %.sroa.42.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 8
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 8
  br label %62

62:                                               ; preds = %.lr.ph132, %._crit_edge
  %.0130 = phi i32 [ 0, %.lr.ph132 ], [ %185, %._crit_edge ]
  %63 = load i32, ptr %49, align 4, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  %64 = sub i32 1024, %63
  store i32 %64, ptr %10, align 4, !tbaa !26
  %65 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %66 = load i32, ptr %65, align 4, !tbaa !26
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  %67 = icmp ugt i32 %63, 47
  %68 = sub nuw nsw i32 48, %63
  %.not = icmp ult i32 %68, %66
  %or.cond = select i1 %67, i1 true, i1 %.not
  br i1 %or.cond, label %84, label %.preheader

.preheader:                                       ; preds = %62
  %69 = call noundef i64 @_ZNK2al9FlexArrayIN15SampleConverter11ChanSamplesELm16EE4sizeEv(ptr noundef nonnull align 16 dereferenceable(16) %27) #7
  %.not135 = icmp eq i64 %69, 0
  br i1 %.not135, label %.thread, label %.lr.ph134

.lr.ph134:                                        ; preds = %.preheader
  %70 = zext nneg i32 %63 to i64
  %71 = zext nneg i32 %66 to i64
  br label %73

.thread:                                          ; preds = %73, %.preheader
  %72 = add nuw nsw i32 %66, %63
  store i32 %72, ptr %49, align 4, !tbaa !28
  store i32 0, ptr %6, align 4, !tbaa !26
  br label %.loopexit

73:                                               ; preds = %.lr.ph134, %73
  %.085133 = phi i64 [ 0, %.lr.ph134 ], [ %81, %73 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  %74 = call noundef nonnull align 16 dereferenceable(192) ptr @_ZN2al9FlexArrayIN15SampleConverter11ChanSamplesELm16EEixEm(ptr noundef nonnull align 16 dereferenceable(16) %27, i64 noundef %.085133) #7
  call void @_ZN2al4spanIfLm48EEC2ILm48EEERSt5arrayIfXT_EE(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(192) %74) #7
  %75 = call { ptr, i64 } @_ZNK2al4spanIfLm48EE7subspanEmm(ptr noundef nonnull align 8 dereferenceable(8) %11, i64 noundef %70, i64 noundef %71) #7
  %76 = extractvalue { ptr, i64 } %75, 0
  %77 = extractvalue { ptr, i64 } %75, 1
  %78 = call noundef ptr @_ZNK2al4spanIKSt4byteLm18446744073709551615EE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %7) #7
  %79 = call noundef i64 @_ZNK2al9FlexArrayIN15SampleConverter11ChanSamplesELm16EE4sizeEv(ptr noundef nonnull align 16 dereferenceable(16) %27) #7
  %80 = load i8, ptr %0, align 16, !tbaa !29
  call void @_ZN12_GLOBAL__N_111LoadSamplesEN2al4spanIfLm18446744073709551615EEEPKvmm10DevFmtType(ptr %76, i64 %77, ptr noundef %78, i64 noundef %.085133, i64 noundef %79, i8 noundef zeroext %80) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  %81 = add nuw i64 %.085133, 1
  %82 = call noundef i64 @_ZNK2al9FlexArrayIN15SampleConverter11ChanSamplesELm16EE4sizeEv(ptr noundef nonnull align 16 dereferenceable(16) %27) #7
  %83 = icmp ult i64 %81, %82
  br i1 %83, label %73, label %.thread, !llvm.loop !30

84:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #7
  call void @_ZN2al4spanIfLm18446744073709551615EEC2ILm1024EEERSt5arrayIfXT_EE(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(4096) %50) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #7
  call void @_ZN2al4spanIfLm18446744073709551615EEC2ILm1024EEERSt5arrayIfXT_EE(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(4096) %51) #7
  %85 = load i32, ptr %52, align 16, !tbaa !32
  %86 = zext i32 %63 to i64
  %87 = zext i32 %66 to i64
  %88 = add nuw nsw i64 %87, %86
  %89 = shl nuw nsw i64 %88, 16
  %90 = zext i32 %85 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  %91 = add nsw i64 %54, %89
  %92 = sub nsw i64 %91, %90
  %93 = udiv i64 %92, %53
  store i64 %93, ptr %15, align 8, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #7
  %94 = call noundef i64 @_Zli4_u64y(i64 noundef 1) #7
  store i64 %94, ptr %16, align 8, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #7
  store i64 1024, ptr %17, align 8, !tbaa !33
  %95 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt5clampImERKT_S2_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %96 unwind label %107

96:                                               ; preds = %84
  %97 = load i64, ptr %95, align 8, !tbaa !33
  %98 = trunc i64 %97 to i32
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  store i32 %98, ptr %14, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #7
  %99 = sub i32 %4, %.0130
  store i32 %99, ptr %18, align 4, !tbaa !26
  %100 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %18)
  %101 = load i32, ptr %100, align 4, !tbaa !26
  store i32 %101, ptr %14, align 4, !tbaa !26
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #7
  %102 = mul i32 %101, %39
  %103 = add i32 %102, %85
  %104 = lshr i32 %103, 16
  %105 = add i32 %66, %63
  %.not93 = icmp ult i32 %105, %104
  br i1 %.not93, label %106, label %109

106:                                              ; preds = %96
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 277, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN15SampleConverter7convertEPPKvPjPvj) #8
  unreachable

107:                                              ; preds = %84
  %108 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  br label %190

109:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #7
  %110 = sub i32 %105, %104
  store i32 %110, ptr %19, align 4, !tbaa !26
  %111 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) @_ZL19MaxResamplerPadding)
  %112 = load i32, ptr %111, align 4, !tbaa !26
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #7
  %113 = call noundef i64 @_ZNK2al9FlexArrayIN15SampleConverter11ChanSamplesELm16EE4sizeEv(ptr noundef nonnull align 16 dereferenceable(16) %27) #7
  %.not136 = icmp eq i64 %113, 0
  br i1 %.not136, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %109
  %114 = zext nneg i32 %104 to i64
  br label %115

115:                                              ; preds = %.lr.ph, %144
  %.087129 = phi i64 [ 0, %.lr.ph ], [ %155, %144 ]
  %116 = call noundef nonnull align 16 dereferenceable(192) ptr @_ZN2al9FlexArrayIN15SampleConverter11ChanSamplesELm16EEixEm(ptr noundef nonnull align 16 dereferenceable(16) %27, i64 noundef %.087129) #7
  %117 = call noundef ptr @_ZNKSt5arrayIfLm48EE6cbeginEv(ptr noundef nonnull align 4 dereferenceable(192) %116) #7
  %118 = call ptr @_ZNK2al4spanIfLm18446744073709551615EE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %12) #7
  %119 = invoke ptr @_ZSt6copy_nIPKfjN2al11ptr_wrapperIPfEEET1_T_T0_S6_(ptr noundef %117, i32 noundef %63, ptr %118)
          to label %120 unwind label %158

120:                                              ; preds = %115
  %121 = call { ptr, i64 } @_ZNK2al4spanIfLm18446744073709551615EE7subspanEmm(ptr noundef nonnull align 8 dereferenceable(16) %12, i64 noundef %86, i64 noundef %87) #7
  %122 = extractvalue { ptr, i64 } %121, 0
  %123 = extractvalue { ptr, i64 } %121, 1
  %124 = call noundef ptr @_ZNK2al4spanIKSt4byteLm18446744073709551615EE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %7) #7
  %125 = call noundef i64 @_ZNK2al9FlexArrayIN15SampleConverter11ChanSamplesELm16EE4sizeEv(ptr noundef nonnull align 16 dereferenceable(16) %27) #7
  %126 = load i8, ptr %0, align 16, !tbaa !29
  call void @_ZN12_GLOBAL__N_111LoadSamplesEN2al4spanIfLm18446744073709551615EEEPKvmm10DevFmtType(ptr %122, i64 %123, ptr noundef %124, i64 noundef %.087129, i64 noundef %125, i8 noundef zeroext %126) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #7
  %127 = call ptr @_ZNK2al4spanIfLm18446744073709551615EE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %12) #7
  store ptr %127, ptr %20, align 8
  %128 = call ptr @_ZN2alplERKNS_11ptr_wrapperIPfEEl(ptr noundef nonnull align 8 dereferenceable(8) %20, i64 noundef %114) #7
  %129 = call noundef nonnull align 16 dereferenceable(192) ptr @_ZN2al9FlexArrayIN15SampleConverter11ChanSamplesELm16EEixEm(ptr noundef nonnull align 16 dereferenceable(16) %27, i64 noundef %.087129) #7
  %130 = call noundef ptr @_ZNSt5arrayIfLm48EE5beginEv(ptr noundef nonnull align 4 dereferenceable(192) %129) #9
  %131 = invoke noundef ptr @_ZSt6copy_nIN2al11ptr_wrapperIPfEEjS2_ET1_T_T0_S4_(ptr %128, i32 noundef %112, ptr noundef %130)
          to label %132 unwind label %160

132:                                              ; preds = %120
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #7
  %133 = call noundef nonnull align 16 dereferenceable(192) ptr @_ZN2al9FlexArrayIN15SampleConverter11ChanSamplesELm16EEixEm(ptr noundef nonnull align 16 dereferenceable(16) %27, i64 noundef %.087129) #7
  %134 = call noundef ptr @_ZNSt5arrayIfLm48EE3endEv(ptr noundef nonnull align 4 dereferenceable(192) %133) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #7
  store float 0.000000e+00, ptr %21, align 4, !tbaa !34
  invoke void @_ZSt4fillIPffEvT_S1_RKT0_(ptr noundef %131, ptr noundef %134, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %135 unwind label %162

135:                                              ; preds = %132
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #7
  %136 = load ptr, ptr %55, align 16, !tbaa !36
  call void @_ZN2al4spanIKfLm18446744073709551615EEC2IfLm18446744073709551615ETnNSt9enable_ifIXaasr7detail_E19is_array_compatibleIT_S1_Eoontsr3std7is_sameIS1_S5_EE5valueneL_ZNS2_6extentEET0_EbE4typeELb1EEERKNS0_IS5_XT0_EEE(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(16) %12) #7
  %137 = load i32, ptr %14, align 4, !tbaa !26
  %138 = zext i32 %137 to i64
  %139 = call { ptr, i64 } @_ZNK2al4spanIfLm18446744073709551615EE5firstEm(ptr noundef nonnull align 8 dereferenceable(16) %13, i64 noundef %138) #7
  %140 = extractvalue { ptr, i64 } %139, 0
  store ptr %140, ptr %23, align 8
  %141 = extractvalue { ptr, i64 } %139, 1
  store i64 %141, ptr %57, align 8
  %142 = load ptr, ptr %22, align 8
  %143 = load i64, ptr %58, align 8
  invoke void %136(ptr noundef nonnull %56, ptr %142, i64 %143, i32 noundef %85, i32 noundef %39, ptr noundef nonnull byval(%"class.al::span.12") align 8 %23)
          to label %144 unwind label %164

144:                                              ; preds = %135
  %145 = call noundef ptr @_ZNK2al4spanISt4byteLm18446744073709551615EE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %8) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %25) #7
  %146 = load i32, ptr %14, align 4, !tbaa !26
  %147 = zext i32 %146 to i64
  %148 = call { ptr, i64 } @_ZNK2al4spanIfLm18446744073709551615EE5firstEm(ptr noundef nonnull align 8 dereferenceable(16) %13, i64 noundef %147) #7
  %149 = extractvalue { ptr, i64 } %148, 0
  store ptr %149, ptr %25, align 8
  %150 = extractvalue { ptr, i64 } %148, 1
  store i64 %150, ptr %59, align 8
  call void @_ZN2al4spanIKfLm18446744073709551615EEC2IfLm18446744073709551615ETnNSt9enable_ifIXaasr7detail_E19is_array_compatibleIT_S1_Eoontsr3std7is_sameIS1_S5_EE5valueneL_ZNS2_6extentEET0_EbE4typeELb1EEERKNS0_IS5_XT0_EEE(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(16) %25) #7
  %151 = call noundef i64 @_ZNK2al9FlexArrayIN15SampleConverter11ChanSamplesELm16EE4sizeEv(ptr noundef nonnull align 16 dereferenceable(16) %27) #7
  %152 = load i8, ptr %60, align 1, !tbaa !37
  %153 = load ptr, ptr %24, align 8
  %154 = load i64, ptr %61, align 8
  call void @_ZN12_GLOBAL__N_112StoreSamplesEPvN2al4spanIKfLm18446744073709551615EEEmm10DevFmtType(ptr noundef %145, ptr %153, i64 %154, i64 noundef %.087129, i64 noundef %151, i8 noundef zeroext %152) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #7
  %155 = add nuw i64 %.087129, 1
  %156 = call noundef i64 @_ZNK2al9FlexArrayIN15SampleConverter11ChanSamplesELm16EE4sizeEv(ptr noundef nonnull align 16 dereferenceable(16) %27) #7
  %157 = icmp ult i64 %155, %156
  br i1 %157, label %115, label %._crit_edge, !llvm.loop !38

158:                                              ; preds = %115
  %159 = landingpad { ptr, i32 }
          cleanup
  br label %190

160:                                              ; preds = %120
  %161 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #7
  br label %190

162:                                              ; preds = %132
  %163 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #7
  br label %190

164:                                              ; preds = %135
  %165 = landingpad { ptr, i32 }
          cleanup
  br label %190

._crit_edge:                                      ; preds = %144, %109
  store i32 %112, ptr %49, align 4, !tbaa !28
  %166 = and i32 %103, 65535
  store i32 %166, ptr %52, align 16, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %26) #7
  %167 = sub i32 %104, %63
  %168 = add i32 %167, %112
  store i32 %168, ptr %26, align 4, !tbaa !26
  %169 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %26)
  %170 = load i32, ptr %169, align 4, !tbaa !26
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #7
  %171 = zext i32 %170 to i64
  %172 = mul i64 %32, %171
  %173 = call { ptr, i64 } @_ZNK2al4spanIKSt4byteLm18446744073709551615EE7subspanEmm(ptr noundef nonnull align 8 dereferenceable(16) %7, i64 noundef %172, i64 noundef -1) #7
  %174 = extractvalue { ptr, i64 } %173, 0
  %175 = extractvalue { ptr, i64 } %173, 1
  store ptr %174, ptr %7, align 8, !tbaa !27
  store i64 %175, ptr %.sroa.42.0..sroa_idx, align 8, !tbaa !33
  %176 = load i32, ptr %6, align 4, !tbaa !26
  %177 = sub i32 %176, %170
  store i32 %177, ptr %6, align 4, !tbaa !26
  %178 = load i32, ptr %14, align 4, !tbaa !26
  %179 = zext i32 %178 to i64
  %180 = mul i64 %37, %179
  %181 = call { ptr, i64 } @_ZNK2al4spanISt4byteLm18446744073709551615EE7subspanEmm(ptr noundef nonnull align 8 dereferenceable(16) %8, i64 noundef %180, i64 noundef -1) #7
  %182 = extractvalue { ptr, i64 } %181, 0
  %183 = extractvalue { ptr, i64 } %181, 1
  store ptr %182, ptr %8, align 8, !tbaa !27
  store i64 %183, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !33
  %184 = load i32, ptr %14, align 4, !tbaa !26
  %185 = add i32 %184, %.0130
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #7
  %186 = icmp ult i32 %185, %4
  %187 = load i32, ptr %6, align 4
  %188 = icmp ne i32 %187, 0
  %189 = select i1 %186, i1 %188, i1 false
  br i1 %189, label %62, label %.loopexit

190:                                              ; preds = %158, %164, %162, %160, %107
  %.pn.pn.pn = phi { ptr, i32 } [ %108, %107 ], [ %159, %158 ], [ %165, %164 ], [ %163, %162 ], [ %161, %160 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #7
  call void @_ZN6FPUCtlD2Ev(ptr noundef nonnull align 4 dereferenceable(5) %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  resume { ptr, i32 } %.pn.pn.pn

.loopexit:                                        ; preds = %._crit_edge, %5, %.thread
  %.0108 = phi i32 [ %.0130, %.thread ], [ 0, %5 ], [ %185, %._crit_edge ]
  %191 = call noundef ptr @_ZNK2al4spanIKSt4byteLm18446744073709551615EE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %7) #7
  store ptr %191, ptr %1, align 8, !tbaa !27
  %192 = load i32, ptr %6, align 4, !tbaa !26
  store i32 %192, ptr %2, align 4, !tbaa !26
  call void @_ZN6FPUCtlD2Ev(ptr noundef nonnull align 4 dereferenceable(5) %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  ret i32 %.0108
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK2al9FlexArrayIN15SampleConverter11ChanSamplesELm16EE4sizeEv(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2al4spanIKSt4byteLm18446744073709551615EEC2IPS2_EET_m(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i64 noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2al4spanISt4byteLm18446744073709551615EEC2IPS1_EET_m(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i64 noundef) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN12_GLOBAL__N_111LoadSamplesEN2al4spanIfLm18446744073709551615EEEPKvmm10DevFmtType(ptr, i64, ptr noundef, i64 noundef, i64 noundef, i8 noundef zeroext) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(192) ptr @_ZN2al9FlexArrayIN15SampleConverter11ChanSamplesELm16EEixEm(ptr noundef nonnull align 16 dereferenceable(16), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2al4spanIfLm48EEC2ILm48EEERSt5arrayIfXT_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(192)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, i64 } @_ZNK2al4spanIfLm48EE7subspanEmm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef, i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK2al4spanIKSt4byteLm18446744073709551615EE4dataEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2al4spanIfLm18446744073709551615EEC2ILm1024EEERSt5arrayIfXT_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4096)) unnamed_addr #1 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt6copy_nIPKfjN2al11ptr_wrapperIPfEEET1_T_T0_S6_(ptr noundef, i32 noundef, ptr) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt5arrayIfLm48EE6cbeginEv(ptr noundef nonnull align 4 dereferenceable(192)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNK2al4spanIfLm18446744073709551615EE5beginEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, i64 } @_ZNK2al4spanIfLm18446744073709551615EE7subspanEmm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt6copy_nIN2al11ptr_wrapperIPfEEjS2_ET1_T_T0_S4_(ptr, i32 noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZN2alplERKNS_11ptr_wrapperIPfEEl(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) uwtable
declare dso_local noundef ptr @_ZNSt5arrayIfLm48EE5beginEv(ptr noundef nonnull align 4 dereferenceable(192)) local_unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPffEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) uwtable
declare dso_local noundef ptr @_ZNSt5arrayIfLm48EE3endEv(ptr noundef nonnull align 4 dereferenceable(192)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2al4spanIKfLm18446744073709551615EEC2IfLm18446744073709551615ETnNSt9enable_ifIXaasr7detail_E19is_array_compatibleIT_S1_Eoontsr3std7is_sameIS1_S5_EE5valueneL_ZNS2_6extentEET0_EbE4typeELb1EEERKNS0_IS5_XT0_EEE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, i64 } @_ZNK2al4spanIfLm18446744073709551615EE5firstEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN12_GLOBAL__N_112StoreSamplesEPvN2al4spanIKfLm18446744073709551615EEEmm10DevFmtType(ptr noundef, ptr, i64, i64 noundef, i64 noundef, i8 noundef zeroext) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK2al4spanISt4byteLm18446744073709551615EE4dataEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, i64 } @_ZNK2al4spanIKSt4byteLm18446744073709551615EE7subspanEmm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, i64 } @_ZNK2al4spanISt4byteLm18446744073709551615EE7subspanEmm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i64 noundef) local_unnamed_addr #1 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = { noreturn nounwind "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 #5 = { inlinehint 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 #6 = { mustprogress nofree nosync nounwind willreturn memory(none) 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 #7 = { nounwind }
attributes #8 = { noreturn nounwind }
attributes #9 = { nounwind willreturn memory(none) }

!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 4}
!6 = !{!"_ZTS15SampleConverter", !7, i64 0, !7, i64 1, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !11, i64 24, !18, i64 64, !19, i64 80, !19, i64 4176, !20, i64 8272}
!7 = !{!"_ZTS10DevFmtType", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"_ZTSSt7variantIJSt9monostate10CubicState10BsincStateEE", !12, i64 0}
!12 = !{!"_ZTSNSt8__detail9__variant13_Variant_baseIJSt9monostate10CubicState10BsincStateEEE", !13, i64 0}
!13 = !{!"_ZTSNSt8__detail9__variant17_Move_assign_baseILb1EJSt9monostate10CubicState10BsincStateEEE", !14, i64 0}
!14 = !{!"_ZTSNSt8__detail9__variant17_Copy_assign_baseILb1EJSt9monostate10CubicState10BsincStateEEE", !15, i64 0}
!15 = !{!"_ZTSNSt8__detail9__variant15_Move_ctor_baseILb1EJSt9monostate10CubicState10BsincStateEEE", !16, i64 0}
!16 = !{!"_ZTSNSt8__detail9__variant15_Copy_ctor_baseILb1EJSt9monostate10CubicState10BsincStateEEE", !17, i64 0}
!17 = !{!"_ZTSNSt8__detail9__variant16_Variant_storageILb1EJSt9monostate10CubicState10BsincStateEEE", !8, i64 0, !8, i64 32}
!18 = !{!"any pointer", !8, i64 0}
!19 = !{!"_ZTSSt5arrayIfLm1024EE", !8, i64 0}
!20 = !{!"_ZTSN2al9FlexArrayIN15SampleConverter11ChanSamplesELm16EEE", !21, i64 0}
!21 = !{!"_ZTSN2al16FlexArrayStorageIN15SampleConverter11ChanSamplesELm16ELb1EEE", !22, i64 0}
!22 = !{!"_ZTSN2al4spanIN15SampleConverter11ChanSamplesELm18446744073709551615EEE", !18, i64 0, !23, i64 8}
!23 = !{!"long", !8, i64 0}
!24 = !{!6, !10, i64 8}
!25 = !{!6, !10, i64 20}
!26 = !{!10, !10, i64 0}
!27 = !{!18, !18, i64 0}
!28 = !{!6, !10, i64 12}
!29 = !{!6, !7, i64 0}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = !{!6, !10, i64 16}
!33 = !{!23, !23, i64 0}
!34 = !{!35, !35, i64 0}
!35 = !{!"float", !8, i64 0}
!36 = !{!6, !18, i64 64}
!37 = !{!6, !7, i64 1}
!38 = distinct !{!38, !31}


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