; LLVM IR from glaretechnologies/substrata :: resonance-audio/resonance_audio/utils (lockless_task_queue)

; 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.FatalLogger = type { %"class.std::__cxx11::basic_ostringstream" }
%"class.std::__cxx11::basic_ostringstream" = type { %"class.std::basic_ostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%class.NullLogger = type { i8 }
%"class.vraudio::LocklessTaskQueue" = type { %"struct.std::atomic", %"struct.std::atomic", %"class.std::vector", %"class.std::vector.0" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<vraudio::LocklessTaskQueue::Node, std::allocator<vraudio::LocklessTaskQueue::Node>>::_Vector_impl" }
%"struct.std::_Vector_base<vraudio::LocklessTaskQueue::Node, std::allocator<vraudio::LocklessTaskQueue::Node>>::_Vector_impl" = type { %"struct.std::_Vector_base<vraudio::LocklessTaskQueue::Node, std::allocator<vraudio::LocklessTaskQueue::Node>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vraudio::LocklessTaskQueue::Node, std::allocator<vraudio::LocklessTaskQueue::Node>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::function<void ()>, std::allocator<std::function<void ()>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::function<void ()>, std::allocator<std::function<void ()>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::function<void ()>, std::allocator<std::function<void ()>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::function<void ()>, std::allocator<std::function<void ()>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [122 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7vraudio17LocklessTaskQueueC2Em(ptr noundef nonnull align 8 dereferenceable(64) %0, i64 noundef %1) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca %class.FatalLogger, align 8
  %6 = alloca i1, align 1
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i1, align 1
  %10 = alloca %class.NullLogger, align 1
  %11 = alloca %class.FatalLogger, align 8
  %12 = alloca i1, align 1
  %13 = alloca i1, align 1
  %14 = alloca %class.NullLogger, align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i64 %1, ptr %4, align 8, !tbaa !9
  %15 = load ptr, ptr %3, align 8
  %16 = getelementptr inbounds %"class.vraudio::LocklessTaskQueue", ptr %15, i32 0, i32 0
  %17 = getelementptr inbounds %"class.vraudio::LocklessTaskQueue", ptr %15, i32 0, i32 1
  %18 = getelementptr inbounds %"class.vraudio::LocklessTaskQueue", ptr %15, i32 0, i32 2
  call void @_ZNSt6vectorIN7vraudio17LocklessTaskQueue4NodeESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #3
  %19 = getelementptr inbounds %"class.vraudio::LocklessTaskQueue", ptr %15, i32 0, i32 3
  call void @_ZNSt6vectorISt8functionIFvvEESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #3
  %20 = load i64, ptr %4, align 8, !tbaa !9
  %21 = icmp ugt i64 %20, 0
  store i1 false, ptr %6, align 1
  store i1 false, ptr %9, align 1
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #3
  br i1 %21, label %26, label %22

22:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 376, ptr %5) #3
  store i1 true, ptr %6, align 1
  invoke void @_ZN11FatalLoggerC2EPKci(ptr noundef nonnull align 8 dereferenceable(376) %5, ptr noundef @.str, i32 noundef 36)
          to label %23 unwind label %56

23:                                               ; preds = %22
  store i1 true, ptr %9, align 1
  %24 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN11FatalLogger9GetStreamEv(ptr noundef nonnull align 8 dereferenceable(376) %5)
          to label %25 unwind label %60

25:                                               ; preds = %23
  br label %29

26:                                               ; preds = %2
  %27 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10NullLogger9GetStreamEv(ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %28 unwind label %64

28:                                               ; preds = %26
  br label %29

29:                                               ; preds = %28, %25
  %30 = phi ptr [ %24, %25 ], [ %27, %28 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #3
  %31 = load i1, ptr %9, align 1
  br i1 %31, label %32, label %33

32:                                               ; preds = %29
  call void @_ZN11FatalLoggerD2Ev(ptr noundef nonnull align 8 dereferenceable(376) %5) #3
  br label %33

33:                                               ; preds = %32, %29
  %34 = load i1, ptr %6, align 1
  br i1 %34, label %35, label %36

35:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 376, ptr %5) #3
  br label %36

36:                                               ; preds = %35, %33
  %37 = load i64, ptr %4, align 8, !tbaa !9
  %38 = icmp ule i64 %37, 4294967294
  store i1 false, ptr %12, align 1
  store i1 false, ptr %13, align 1
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #3
  br i1 %38, label %43, label %39

39:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 376, ptr %11) #3
  store i1 true, ptr %12, align 1
  invoke void @_ZN11FatalLoggerC2EPKci(ptr noundef nonnull align 8 dereferenceable(376) %11, ptr noundef @.str, i32 noundef 37)
          to label %40 unwind label %76

40:                                               ; preds = %39
  store i1 true, ptr %13, align 1
  %41 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN11FatalLogger9GetStreamEv(ptr noundef nonnull align 8 dereferenceable(376) %11)
          to label %42 unwind label %80

42:                                               ; preds = %40
  br label %46

43:                                               ; preds = %36
  %44 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10NullLogger9GetStreamEv(ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %45 unwind label %84

45:                                               ; preds = %43
  br label %46

46:                                               ; preds = %45, %42
  %47 = phi ptr [ %41, %42 ], [ %44, %45 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #3
  %48 = load i1, ptr %13, align 1
  br i1 %48, label %49, label %50

49:                                               ; preds = %46
  call void @_ZN11FatalLoggerD2Ev(ptr noundef nonnull align 8 dereferenceable(376) %11) #3
  br label %50

50:                                               ; preds = %49, %46
  %51 = load i1, ptr %12, align 1
  br i1 %51, label %52, label %53

52:                                               ; preds = %50
  call void @llvm.lifetime.end.p0(i64 376, ptr %11) #3
  br label %53

53:                                               ; preds = %52, %50
  %54 = load i64, ptr %4, align 8, !tbaa !9
  invoke void @_ZN7vraudio17LocklessTaskQueue4InitEm(ptr noundef nonnull align 8 dereferenceable(64) %15, i64 noundef %54)
          to label %55 unwind label %96

55:                                               ; preds = %53
  ret void

56:                                               ; preds = %22
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %7, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %8, align 4
  br label %72

60:                                               ; preds = %23
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %7, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %8, align 4
  br label %68

64:                                               ; preds = %26
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %7, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #3
  br label %68

68:                                               ; preds = %64, %60
  %69 = load i1, ptr %9, align 1
  br i1 %69, label %70, label %71

70:                                               ; preds = %68
  call void @_ZN11FatalLoggerD2Ev(ptr noundef nonnull align 8 dereferenceable(376) %5) #3
  br label %71

71:                                               ; preds = %70, %68
  br label %72

72:                                               ; preds = %71, %56
  %73 = load i1, ptr %6, align 1
  br i1 %73, label %74, label %75

74:                                               ; preds = %72
  call void @llvm.lifetime.end.p0(i64 376, ptr %5) #3
  br label %75

75:                                               ; preds = %74, %72
  br label %100

76:                                               ; preds = %39
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %7, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %8, align 4
  br label %92

80:                                               ; preds = %40
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %7, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %8, align 4
  br label %88

84:                                               ; preds = %43
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %7, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #3
  br label %88

88:                                               ; preds = %84, %80
  %89 = load i1, ptr %13, align 1
  br i1 %89, label %90, label %91

90:                                               ; preds = %88
  call void @_ZN11FatalLoggerD2Ev(ptr noundef nonnull align 8 dereferenceable(376) %11) #3
  br label %91

91:                                               ; preds = %90, %88
  br label %92

92:                                               ; preds = %91, %76
  %93 = load i1, ptr %12, align 1
  br i1 %93, label %94, label %95

94:                                               ; preds = %92
  call void @llvm.lifetime.end.p0(i64 376, ptr %11) #3
  br label %95

95:                                               ; preds = %94, %92
  br label %100

96:                                               ; preds = %53
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %7, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %8, align 4
  br label %100

100:                                              ; preds = %96, %95, %75
  call void @_ZNSt6vectorISt8functionIFvvEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #3
  call void @_ZNSt6vectorIN7vraudio17LocklessTaskQueue4NodeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #3
  br label %101

101:                                              ; preds = %100
  %102 = load ptr, ptr %7, align 8
  %103 = load i32, ptr %8, align 4
  %104 = insertvalue { ptr, i32 } poison, ptr %102, 0
  %105 = insertvalue { ptr, i32 } %104, i32 %103, 1
  resume { ptr, i32 } %105
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11FatalLoggerC2EPKci(ptr noundef nonnull align 8 dereferenceable(376), ptr noundef, i32 noundef) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7vraudio17LocklessTaskQueue4InitEm(ptr noundef nonnull align 8 dereferenceable(64), i64 noundef) #0 align 2

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

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

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 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}


; 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.FatalLogger = type { %"class.std::__cxx11::basic_ostringstream" }
%"class.std::__cxx11::basic_ostringstream" = type { %"class.std::basic_ostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%class.NullLogger = type { i8 }

@.str = external hidden unnamed_addr constant [122 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7vraudio17LocklessTaskQueueC2Em(ptr noundef nonnull align 8 dereferenceable(64) %0, i64 noundef %1) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %class.FatalLogger, align 8
  %4 = alloca %class.NullLogger, align 1
  %5 = alloca %class.FatalLogger, align 8
  %6 = alloca %class.NullLogger, align 1
  %7 = getelementptr inbounds i8, ptr %0, i64 16
  tail call void @_ZNSt6vectorIN7vraudio17LocklessTaskQueue4NodeESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #3
  %8 = getelementptr inbounds i8, ptr %0, i64 40
  tail call void @_ZNSt6vectorISt8functionIFvvEESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #3
  %.not = icmp eq i64 %1, 0
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #3
  br i1 %.not, label %9, label %10

9:                                                ; preds = %2
  call void @llvm.lifetime.start.p0(i64 376, ptr nonnull %3) #3
  invoke void @_ZN11FatalLoggerC2EPKci(ptr noundef nonnull align 8 dereferenceable(376) %3, ptr noundef nonnull @.str, i32 noundef 36)
          to label %.critedge.thread unwind label %22

10:                                               ; preds = %2
  %11 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10NullLogger9GetStreamEv(ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %.critedge unwind label %20

.critedge.thread:                                 ; preds = %9
  %12 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11FatalLogger9GetStreamEv(ptr noundef nonnull align 8 dereferenceable(376) %3)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #3
  call void @_ZN11FatalLoggerD2Ev(ptr noundef nonnull align 8 dereferenceable(376) %3) #3
  call void @llvm.lifetime.end.p0(i64 376, ptr nonnull %3) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #3
  br label %16

.critedge:                                        ; preds = %10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #3
  %13 = icmp ugt i64 %1, 4294967294
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #3
  br i1 %13, label %14, label %16

14:                                               ; preds = %.critedge
  call void @llvm.lifetime.start.p0(i64 376, ptr nonnull %5) #3
  invoke void @_ZN11FatalLoggerC2EPKci(ptr noundef nonnull align 8 dereferenceable(376) %5, ptr noundef nonnull @.str, i32 noundef 37)
          to label %.thread29 unwind label %.thread33

.thread29:                                        ; preds = %14
  %15 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11FatalLogger9GetStreamEv(ptr noundef nonnull align 8 dereferenceable(376) %5)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #3
  call void @_ZN11FatalLoggerD2Ev(ptr noundef nonnull align 8 dereferenceable(376) %5) #3
  call void @llvm.lifetime.end.p0(i64 376, ptr nonnull %5) #3
  br label %.critedge28

16:                                               ; preds = %.critedge.thread, %.critedge
  %17 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN10NullLogger9GetStreamEv(ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %18 unwind label %25

18:                                               ; preds = %16
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #3
  br label %.critedge28

.critedge28:                                      ; preds = %18, %.thread29
  invoke void @_ZN7vraudio17LocklessTaskQueue4InitEm(ptr noundef nonnull align 8 dereferenceable(64) %0, i64 noundef %1)
          to label %19 unwind label %27

19:                                               ; preds = %.critedge28
  ret void

20:                                               ; preds = %10
  %21 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #3
  br label %29

22:                                               ; preds = %9
  %23 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 376, ptr nonnull %3) #3
  br label %29

.thread33:                                        ; preds = %14
  %24 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 376, ptr nonnull %5) #3
  br label %29

25:                                               ; preds = %16
  %26 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #3
  br label %29

27:                                               ; preds = %.critedge28
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %29

29:                                               ; preds = %25, %20, %.thread33, %22, %27
  %.pn25 = phi { ptr, i32 } [ %28, %27 ], [ %24, %.thread33 ], [ %26, %25 ], [ %23, %22 ], [ %21, %20 ]
  call void @_ZNSt6vectorISt8functionIFvvEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #3
  call void @_ZNSt6vectorIN7vraudio17LocklessTaskQueue4NodeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #3
  resume { ptr, i32 } %.pn25
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11FatalLoggerC2EPKci(ptr noundef nonnull align 8 dereferenceable(376), ptr noundef, i32 noundef) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7vraudio17LocklessTaskQueue4InitEm(ptr noundef nonnull align 8 dereferenceable(64), i64 noundef) local_unnamed_addr #0 align 2

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

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

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 = { 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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)"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass