; LLVM IR from dynexcoin/Dynex :: src/NodeRpcProxy (NodeRpcProxy)

; 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.System::Dispatcher" = type { i32, i32, [8 x i8], [64 x i8], %"struct.std::atomic.22", %"class.std::queue", %"class.std::stack", %"struct.System::NativeContext", %"struct.System::NativeContextGroup", ptr, ptr, ptr, ptr, i64, [8 x i8] }
%"struct.std::atomic.22" = type { %"struct.std::__atomic_base.23" }
%"struct.std::__atomic_base.23" = type { i8 }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<std::function<void ()>, std::allocator<std::function<void ()>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::function<void ()>, std::allocator<std::function<void ()>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::function<void ()>, std::allocator<std::function<void ()>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::function<void ()>, std::allocator<std::function<void ()>>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"class.std::stack" = type { %"class.std::deque.27" }
%"class.std::deque.27" = type { %"class.std::_Deque_base.28" }
%"class.std::_Deque_base.28" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator.32", %"struct.std::_Deque_iterator.32" }
%"struct.std::_Deque_iterator.32" = type { ptr, ptr, ptr, ptr }
%"struct.System::NativeContext" = type { ptr, ptr, i8, i8, ptr, ptr, ptr, ptr, %"class.std::function.33", %"class.std::function.33" }
%"class.std::function.33" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"struct.System::NativeContextGroup" = type { ptr, ptr, ptr, ptr }
%"class.System::ContextGroup" = type { ptr, %"struct.System::NativeContextGroup" }
%"class.DynexCN::HttpClient" = type { %"class.std::__cxx11::basic_string", i16, i8, ptr, %"class.System::TcpConnection", %"class.std::unique_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.System::TcpConnection" = type { ptr, i32, ptr, ptr }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.37" }
%"struct.std::_Head_base.37" = type { ptr }
%"class.System::Event" = type { ptr, i8, ptr, ptr }
%"class.std::lock_guard" = type { ptr }
%"class.std::error_code" = type { i32, ptr }
%class.anon.38 = type { ptr }
%"class.DynexCN::NodeRpcProxy" = type { %"class.DynexCN::INode", %"class.std::__cxx11::basic_string", i16, i32, %"class.std::mutex", %"class.std::condition_variable", %"class.std::thread", ptr, ptr, %"class.Tools::ObserverManager", %"class.Tools::ObserverManager.8", i32, ptr, ptr, i64, i8, %"struct.std::atomic", %"struct.std::atomic.14", %"struct.std::atomic.14", %"struct.std::atomic", %"struct.DynexCN::BlockHeaderInfo", %"class.std::unordered_set", i8, %"class.std::__cxx11::basic_string" }
%"class.DynexCN::INode" = type { ptr }
%"class.std::mutex" = type { %"class.std::__mutex_base" }
%"class.std::__mutex_base" = type { %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::condition_variable" = type { %"class.std::__condvar" }
%"class.std::__condvar" = type { %union.pthread_cond_t }
%union.pthread_cond_t = type { %struct.__pthread_cond_s }
%struct.__pthread_cond_s = type { %union.__atomic_wide_counter, %union.__atomic_wide_counter, [2 x i32], [2 x i32], i32, i32, [2 x i32] }
%union.__atomic_wide_counter = type { i64 }
%"class.std::thread" = type { %"class.std::thread::id" }
%"class.std::thread::id" = type { i64 }
%"class.Tools::ObserverManager" = type { %"class.std::vector", %"class.std::mutex" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<DynexCN::INodeObserver *, std::allocator<DynexCN::INodeObserver *>>::_Vector_impl" }
%"struct.std::_Vector_base<DynexCN::INodeObserver *, std::allocator<DynexCN::INodeObserver *>>::_Vector_impl" = type { %"struct.std::_Vector_base<DynexCN::INodeObserver *, std::allocator<DynexCN::INodeObserver *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DynexCN::INodeObserver *, std::allocator<DynexCN::INodeObserver *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Tools::ObserverManager.8" = type { %"class.std::vector.9", %"class.std::mutex" }
%"class.std::vector.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = type { %"struct.std::_Vector_base<DynexCN::INodeRpcProxyObserver *, std::allocator<DynexCN::INodeRpcProxyObserver *>>::_Vector_impl" }
%"struct.std::_Vector_base<DynexCN::INodeRpcProxyObserver *, std::allocator<DynexCN::INodeRpcProxyObserver *>>::_Vector_impl" = type { %"struct.std::_Vector_base<DynexCN::INodeRpcProxyObserver *, std::allocator<DynexCN::INodeRpcProxyObserver *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DynexCN::INodeRpcProxyObserver *, std::allocator<DynexCN::INodeRpcProxyObserver *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::atomic.14" = type { %"struct.std::__atomic_base.15" }
%"struct.std::__atomic_base.15" = type { i32 }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i64 }
%"struct.DynexCN::BlockHeaderInfo" = type { i32, i8, i8, i64, %"struct.Crypto::Hash", %"struct.Crypto::Hash", i32, i8, i32, i64, i64 }
%"struct.Crypto::Hash" = type { [32 x i8] }
%"class.std::unordered_set" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }

@_ZTISt9exception = external constant ptr
@.str.8 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [30 x i8], align 1
@__PRETTY_FUNCTION__._ZN7DynexCN12NodeRpcProxy12workerThreadERKSt8functionIFvSt10error_codeEE = external hidden unnamed_addr constant [66 x i8], align 1

; 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

declare i32 @__gxx_personality_v0(...)

declare ptr @__cxa_begin_catch(ptr)

declare void @__cxa_end_catch()

; Function Attrs: nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #1

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

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

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

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

; Function Attrs: nounwind
declare void @_ZNSt18condition_variable10notify_allEv(ptr noundef nonnull align 8 dereferenceable(48)) #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7DynexCN12NodeRpcProxy12workerThreadERKSt8functionIFvSt10error_codeEE(ptr noundef nonnull align 8 dereferenceable(560) %0, ptr noundef nonnull align 8 dereferenceable(32) %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.System::Dispatcher", align 16
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.System::ContextGroup", align 8
  %9 = alloca %"class.DynexCN::HttpClient", align 8
  %10 = alloca %"class.System::Event", align 8
  %11 = alloca %"class.std::lock_guard", align 8
  %12 = alloca %"class.std::error_code", align 8
  %13 = alloca %"class.std::function.33", align 8
  %14 = alloca %class.anon.38, align 8
  %15 = alloca ptr, align 8
  %16 = alloca { i64, i64 }, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %17 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 448, ptr %5) #7
  invoke void @_ZN6System10DispatcherC1Ev(ptr noundef nonnull align 16 dereferenceable(440) %5)
          to label %18 unwind label %39

18:                                               ; preds = %2
  %19 = getelementptr inbounds %"class.DynexCN::NodeRpcProxy", ptr %17, i32 0, i32 7
  store ptr %5, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 40, ptr %8) #7
  invoke void @_ZN6System12ContextGroupC1ERNS_10DispatcherE(ptr noundef nonnull align 8 dereferenceable(40) %8, ptr noundef nonnull align 16 dereferenceable(440) %5)
          to label %20 unwind label %43

20:                                               ; preds = %18
  %21 = getelementptr inbounds %"class.DynexCN::NodeRpcProxy", ptr %17, i32 0, i32 8
  store ptr %8, ptr %21, align 8, !tbaa !46
  call void @llvm.lifetime.start.p0(i64 88, ptr %9) #7
  %22 = getelementptr inbounds %"class.DynexCN::NodeRpcProxy", ptr %17, i32 0, i32 1
  %23 = getelementptr inbounds %"class.DynexCN::NodeRpcProxy", ptr %17, i32 0, i32 2
  %24 = load i16, ptr %23, align 8, !tbaa !47
  invoke void @_ZN7DynexCN10HttpClientC1ERN6System10DispatcherERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEt(ptr noundef nonnull align 8 dereferenceable(88) %9, ptr noundef nonnull align 16 dereferenceable(440) %5, ptr noundef nonnull align 8 dereferenceable(32) %22, i16 noundef zeroext %24)
          to label %25 unwind label %47

25:                                               ; preds = %20
  %26 = getelementptr inbounds %"class.DynexCN::NodeRpcProxy", ptr %17, i32 0, i32 12
  store ptr %9, ptr %26, align 8, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #7
  invoke void @_ZN6System5EventC1ERNS_10DispatcherE(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 16 dereferenceable(440) %5)
          to label %27 unwind label %51

27:                                               ; preds = %25
  %28 = getelementptr inbounds %"class.DynexCN::NodeRpcProxy", ptr %17, i32 0, i32 13
  store ptr %10, ptr %28, align 8, !tbaa !49
  %29 = getelementptr inbounds %"class.DynexCN::NodeRpcProxy", ptr %17, i32 0, i32 13
  %30 = load ptr, ptr %29, align 8, !tbaa !49
  invoke void @_ZN6System5Event3setEv(ptr noundef nonnull align 8 dereferenceable(32) %30)
          to label %31 unwind label %55

31:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %32 = getelementptr inbounds %"class.DynexCN::NodeRpcProxy", ptr %17, i32 0, i32 4
  invoke void @_ZNSt10lock_guardISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(40) %32)
          to label %33 unwind label %59

33:                                               ; preds = %31
  %34 = getelementptr inbounds %"class.DynexCN::NodeRpcProxy", ptr %17, i32 0, i32 3
  %35 = load i32, ptr %34, align 4, !tbaa !50
  %36 = icmp eq i32 %35, 1
  br i1 %36, label %37, label %38

37:                                               ; preds = %33
  br label %64

38:                                               ; preds = %33
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str.8, i32 noundef 180, ptr noundef @__PRETTY_FUNCTION__._ZN7DynexCN12NodeRpcProxy12workerThreadERKSt8functionIFvSt10error_codeEE) #8
  unreachable

39:                                               ; preds = %2
  %40 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %41 = extractvalue { ptr, i32 } %40, 0
  store ptr %41, ptr %6, align 8
  %42 = extractvalue { ptr, i32 } %40, 1
  store i32 %42, ptr %7, align 4
  br label %91

43:                                               ; preds = %18
  %44 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %6, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %7, align 4
  br label %90

47:                                               ; preds = %20
  %48 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %6, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %7, align 4
  br label %89

51:                                               ; preds = %25
  %52 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %6, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %7, align 4
  br label %88

55:                                               ; preds = %79, %78, %70, %64, %27
  %56 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %6, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %7, align 4
  br label %87

59:                                               ; preds = %31
  %60 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %6, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %87

63:                                               ; No predecessors!
  br label %64

64:                                               ; preds = %63, %37
  %65 = getelementptr inbounds %"class.DynexCN::NodeRpcProxy", ptr %17, i32 0, i32 3
  store i32 2, ptr %65, align 4, !tbaa !50
  %66 = getelementptr inbounds %"class.DynexCN::NodeRpcProxy", ptr %17, i32 0, i32 5
  call void @_ZNSt18condition_variable10notify_allEv(ptr noundef nonnull align 8 dereferenceable(48) %66) #7
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  %67 = load ptr, ptr %17, align 8, !tbaa !51
  %68 = getelementptr inbounds ptr, ptr %67, i64 15
  %69 = load ptr, ptr %68, align 8
  invoke void %69(ptr noundef nonnull align 8 dereferenceable(560) %17)
          to label %70 unwind label %55

70:                                               ; preds = %64
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNSt10error_codeC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #7
  %72 = getelementptr inbounds { i32, ptr }, ptr %12, i32 0, i32 0
  %73 = load i32, ptr %72, align 8
  %74 = getelementptr inbounds { i32, ptr }, ptr %12, i32 0, i32 1
  %75 = load ptr, ptr %74, align 8
  invoke void @_ZNKSt8functionIFvSt10error_codeEEclES0_(ptr noundef nonnull align 8 dereferenceable(32) %71, i32 %73, ptr %75)
          to label %76 unwind label %55

76:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %77 = getelementptr inbounds %class.anon.38, ptr %14, i32 0, i32 0
  store ptr %17, ptr %77, align 8, !tbaa !53
  call void @"_ZNSt8functionIFvvEEC2IZN7DynexCN12NodeRpcProxy12workerThreadERKS_IFvSt10error_codeEEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  invoke void @_ZN6System12ContextGroup5spawnEOSt8functionIFvvEE(ptr noundef nonnull align 8 dereferenceable(40) %8, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %78 unwind label %83

78:                                               ; preds = %76
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #7
  invoke void @_ZN6System12ContextGroup4waitEv(ptr noundef nonnull align 8 dereferenceable(40) %8)
          to label %79 unwind label %55

79:                                               ; preds = %78
  %80 = getelementptr inbounds %"class.DynexCN::NodeRpcProxy", ptr %17, i32 0, i32 7
  %81 = load ptr, ptr %80, align 8, !tbaa !9
  invoke void @_ZN6System10Dispatcher5yieldEv(ptr noundef nonnull align 16 dereferenceable(440) %81)
          to label %82 unwind label %55

82:                                               ; preds = %79
  call void @_ZN6System5EventD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #7
  call void @_ZN7DynexCN10HttpClientD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %9) #7
  call void @llvm.lifetime.end.p0(i64 88, ptr %9) #7
  call void @_ZN6System12ContextGroupD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %8) #7
  call void @_ZN6System10DispatcherD1Ev(ptr noundef nonnull align 16 dereferenceable(440) %5) #7
  call void @llvm.lifetime.end.p0(i64 448, ptr %5) #7
  br label %99

83:                                               ; preds = %76
  %84 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %6, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %7, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #7
  br label %87

87:                                               ; preds = %83, %59, %55
  call void @_ZN6System5EventD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  br label %88

88:                                               ; preds = %87, %51
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #7
  call void @_ZN7DynexCN10HttpClientD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %9) #7
  br label %89

89:                                               ; preds = %88, %47
  call void @llvm.lifetime.end.p0(i64 88, ptr %9) #7
  call void @_ZN6System12ContextGroupD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #7
  br label %90

90:                                               ; preds = %89, %43
  call void @llvm.lifetime.end.p0(i64 40, ptr %8) #7
  call void @_ZN6System10DispatcherD1Ev(ptr noundef nonnull align 16 dereferenceable(440) %5) #7
  br label %91

91:                                               ; preds = %90, %39
  call void @llvm.lifetime.end.p0(i64 448, ptr %5) #7
  br label %92

92:                                               ; preds = %91
  %93 = load i32, ptr %7, align 4
  %94 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #7
  %95 = icmp eq i32 %93, %94
  br i1 %95, label %96, label %113

96:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %97 = load ptr, ptr %6, align 8
  %98 = call ptr @__cxa_begin_catch(ptr %97) #7
  store ptr %98, ptr %15, align 8
  call void @__cxa_end_catch()
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %99

99:                                               ; preds = %96, %82
  %100 = getelementptr inbounds %"class.DynexCN::NodeRpcProxy", ptr %17, i32 0, i32 7
  store ptr null, ptr %100, align 8, !tbaa !9
  %101 = getelementptr inbounds %"class.DynexCN::NodeRpcProxy", ptr %17, i32 0, i32 8
  store ptr null, ptr %101, align 8, !tbaa !46
  %102 = getelementptr inbounds %"class.DynexCN::NodeRpcProxy", ptr %17, i32 0, i32 12
  store ptr null, ptr %102, align 8, !tbaa !48
  %103 = getelementptr inbounds %"class.DynexCN::NodeRpcProxy", ptr %17, i32 0, i32 13
  store ptr null, ptr %103, align 8, !tbaa !49
  %104 = getelementptr inbounds %"class.DynexCN::NodeRpcProxy", ptr %17, i32 0, i32 22
  store i8 0, ptr %104, align 8, !tbaa !55
  %105 = getelementptr inbounds %"class.DynexCN::NodeRpcProxy", ptr %17, i32 0, i32 10
  %106 = getelementptr inbounds %"class.DynexCN::NodeRpcProxy", ptr %17, i32 0, i32 22
  %107 = load i8, ptr %106, align 8, !tbaa !55, !range !56, !noundef !57
  %108 = trunc i8 %107 to i1
  store { i64, i64 } { i64 17, i64 0 }, ptr %16, align 8, !tbaa !58
  %109 = getelementptr inbounds { i64, i64 }, ptr %16, i32 0, i32 0
  %110 = load i64, ptr %109, align 8
  %111 = getelementptr inbounds { i64, i64 }, ptr %16, i32 0, i32 1
  %112 = load i64, ptr %111, align 8
  call void @_ZN5Tools15ObserverManagerIN7DynexCN21INodeRpcProxyObserverEE6notifyIMS2_FvbEJbEEEvT_DpT0_(ptr noundef nonnull align 8 dereferenceable(64) %105, i64 %110, i64 %112, i1 noundef zeroext %108)
  ret void

113:                                              ; preds = %92
  %114 = load ptr, ptr %6, align 8
  %115 = load i32, ptr %7, align 4
  %116 = insertvalue { ptr, i32 } poison, ptr %114, 0
  %117 = insertvalue { ptr, i32 } %116, i32 %115, 1
  resume { ptr, i32 } %117
}

declare void @_ZN6System10DispatcherC1Ev(ptr noundef nonnull align 16 dereferenceable(440)) unnamed_addr #6

declare void @_ZN6System12ContextGroupC1ERNS_10DispatcherE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 16 dereferenceable(440)) unnamed_addr #6

declare void @_ZN7DynexCN10HttpClientC1ERN6System10DispatcherERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEt(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 16 dereferenceable(440), ptr noundef nonnull align 8 dereferenceable(32), i16 noundef zeroext) unnamed_addr #6

declare void @_ZN6System5EventC1ERNS_10DispatcherE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(440)) unnamed_addr #6

declare void @_ZN6System5Event3setEv(ptr noundef nonnull align 8 dereferenceable(32)) #6

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

declare void @_ZN6System12ContextGroup5spawnEOSt8functionIFvvEE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(32)) #6

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvvEEC2IZN7DynexCN12NodeRpcProxy12workerThreadERKS_IFvSt10error_codeEEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3 align 2

declare void @_ZN6System12ContextGroup4waitEv(ptr noundef nonnull align 8 dereferenceable(40)) #6

declare void @_ZN6System10Dispatcher5yieldEv(ptr noundef nonnull align 16 dereferenceable(440)) #6

; Function Attrs: nounwind
declare void @_ZN6System5EventD1Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5

; Function Attrs: nounwind
declare void @_ZN7DynexCN10HttpClientD1Ev(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #5

; Function Attrs: nounwind
declare void @_ZN6System12ContextGroupD1Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #5

; Function Attrs: nounwind
declare void @_ZN6System10DispatcherD1Ev(ptr noundef nonnull align 16 dereferenceable(440)) unnamed_addr #5

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

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

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

!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, !6, i64 144}
!10 = !{!"_ZTSN7DynexCN12NodeRpcProxyE", !11, i64 0, !12, i64 8, !15, i64 40, !16, i64 44, !17, i64 48, !19, i64 88, !21, i64 136, !6, i64 144, !6, i64 152, !23, i64 160, !28, i64 224, !33, i64 288, !6, i64 296, !6, i64 304, !14, i64 312, !34, i64 320, !35, i64 328, !37, i64 336, !37, i64 340, !35, i64 344, !39, i64 352, !41, i64 464, !34, i64 520, !12, i64 528}
!11 = !{!"_ZTSN7DynexCN5INodeE"}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !13, i64 0, !14, i64 8, !7, i64 16}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!"short", !7, i64 0}
!16 = !{!"_ZTSN7DynexCN12NodeRpcProxy5StateE", !7, i64 0}
!17 = !{!"_ZTSSt5mutex", !18, i64 0}
!18 = !{!"_ZTSSt12__mutex_base", !7, i64 0}
!19 = !{!"_ZTSSt18condition_variable", !20, i64 0}
!20 = !{!"_ZTSSt9__condvar", !7, i64 0}
!21 = !{!"_ZTSSt6thread", !22, i64 0}
!22 = !{!"_ZTSNSt6thread2idE", !14, i64 0}
!23 = !{!"_ZTSN5Tools15ObserverManagerIN7DynexCN13INodeObserverEEE", !24, i64 0, !17, i64 24}
!24 = !{!"_ZTSSt6vectorIPN7DynexCN13INodeObserverESaIS2_EE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseIPN7DynexCN13INodeObserverESaIS2_EE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIPN7DynexCN13INodeObserverESaIS2_EE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIPN7DynexCN13INodeObserverESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!28 = !{!"_ZTSN5Tools15ObserverManagerIN7DynexCN21INodeRpcProxyObserverEEE", !29, i64 0, !17, i64 24}
!29 = !{!"_ZTSSt6vectorIPN7DynexCN21INodeRpcProxyObserverESaIS2_EE", !30, i64 0}
!30 = !{!"_ZTSSt12_Vector_baseIPN7DynexCN21INodeRpcProxyObserverESaIS2_EE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIPN7DynexCN21INodeRpcProxyObserverESaIS2_EE12_Vector_implE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIPN7DynexCN21INodeRpcProxyObserverESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!33 = !{!"int", !7, i64 0}
!34 = !{!"bool", !7, i64 0}
!35 = !{!"_ZTSSt6atomicImE", !36, i64 0}
!36 = !{!"_ZTSSt13__atomic_baseImE", !14, i64 0}
!37 = !{!"_ZTSSt6atomicIjE", !38, i64 0}
!38 = !{!"_ZTSSt13__atomic_baseIjE", !33, i64 0}
!39 = !{!"_ZTSN7DynexCN15BlockHeaderInfoE", !33, i64 0, !7, i64 4, !7, i64 5, !14, i64 8, !40, i64 16, !40, i64 48, !33, i64 80, !34, i64 84, !33, i64 88, !14, i64 96, !14, i64 104}
!40 = !{!"_ZTSN6Crypto4HashE", !7, i64 0}
!41 = !{!"_ZTSSt13unordered_setIN6Crypto4HashESt4hashIS1_ESt8equal_toIS1_ESaIS1_EE", !42, i64 0}
!42 = !{!"_ZTSSt10_HashtableIN6Crypto4HashES1_SaIS1_ENSt8__detail9_IdentityESt8equal_toIS1_ESt4hashIS1_ENS3_18_Mod_range_hashingENS3_20_Default_ranged_hashENS3_20_Prime_rehash_policyENS3_17_Hashtable_traitsILb1ELb1ELb1EEEE", !6, i64 0, !14, i64 8, !43, i64 16, !14, i64 24, !44, i64 32, !6, i64 48}
!43 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!44 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !45, i64 0, !14, i64 8}
!45 = !{!"float", !7, i64 0}
!46 = !{!10, !6, i64 152}
!47 = !{!10, !15, i64 40}
!48 = !{!10, !6, i64 296}
!49 = !{!10, !6, i64 304}
!50 = !{!10, !16, i64 44}
!51 = !{!52, !52, i64 0}
!52 = !{!"vtable pointer", !8, i64 0}
!53 = !{!54, !6, i64 0}
!54 = !{!"_ZTSZN7DynexCN12NodeRpcProxy12workerThreadERKSt8functionIFvSt10error_codeEEE3$_0", !6, i64 0}
!55 = !{!10, !34, i64 520}
!56 = !{i8 0, i8 2}
!57 = !{}
!58 = !{!7, !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.System::Dispatcher" = type { i32, i32, [8 x i8], [64 x i8], %"struct.std::atomic.22", %"class.std::queue", %"class.std::stack", %"struct.System::NativeContext", %"struct.System::NativeContextGroup", ptr, ptr, ptr, ptr, i64, [8 x i8] }
%"struct.std::atomic.22" = type { %"struct.std::__atomic_base.23" }
%"struct.std::__atomic_base.23" = type { i8 }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<std::function<void ()>, std::allocator<std::function<void ()>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::function<void ()>, std::allocator<std::function<void ()>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::function<void ()>, std::allocator<std::function<void ()>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::function<void ()>, std::allocator<std::function<void ()>>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"class.std::stack" = type { %"class.std::deque.27" }
%"class.std::deque.27" = type { %"class.std::_Deque_base.28" }
%"class.std::_Deque_base.28" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator.32", %"struct.std::_Deque_iterator.32" }
%"struct.std::_Deque_iterator.32" = type { ptr, ptr, ptr, ptr }
%"struct.System::NativeContext" = type { ptr, ptr, i8, i8, ptr, ptr, ptr, ptr, %"class.std::function.33", %"class.std::function.33" }
%"class.std::function.33" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"struct.System::NativeContextGroup" = type { ptr, ptr, ptr, ptr }
%"class.System::ContextGroup" = type { ptr, %"struct.System::NativeContextGroup" }
%"class.DynexCN::HttpClient" = type { %"class.std::__cxx11::basic_string", i16, i8, ptr, %"class.System::TcpConnection", %"class.std::unique_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.System::TcpConnection" = type { ptr, i32, ptr, ptr }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.37" }
%"struct.std::_Head_base.37" = type { ptr }
%"class.System::Event" = type { ptr, i8, ptr, ptr }
%"class.std::lock_guard" = type { ptr }
%"class.std::error_code" = type { i32, ptr }
%class.anon.38 = type { ptr }

@_ZTISt9exception = external constant ptr
@.str.8 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [30 x i8], align 1
@__PRETTY_FUNCTION__._ZN7DynexCN12NodeRpcProxy12workerThreadERKSt8functionIFvSt10error_codeEE = external hidden unnamed_addr constant [66 x i8], align 1

; 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

declare i32 @__gxx_personality_v0(...)

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

declare void @__cxa_end_catch() local_unnamed_addr

; Function Attrs: nofree nosync nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #1

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

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

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

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

; Function Attrs: nounwind
declare void @_ZNSt18condition_variable10notify_allEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7DynexCN12NodeRpcProxy12workerThreadERKSt8functionIFvSt10error_codeEE(ptr noundef nonnull align 8 dereferenceable(560) %0, ptr noundef nonnull align 8 dereferenceable(32) %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.System::Dispatcher", align 16
  %4 = alloca %"class.System::ContextGroup", align 8
  %5 = alloca %"class.DynexCN::HttpClient", align 8
  %6 = alloca %"class.System::Event", align 8
  %7 = alloca %"class.std::lock_guard", align 8
  %8 = alloca %"class.std::error_code", align 8
  %9 = alloca %"class.std::function.33", align 8
  %10 = alloca %class.anon.38, align 8
  call void @llvm.lifetime.start.p0(i64 448, ptr nonnull %3) #8
  invoke void @_ZN6System10DispatcherC1Ev(ptr noundef nonnull align 16 dereferenceable(440) %3)
          to label %11 unwind label %29

11:                                               ; preds = %2
  %12 = getelementptr inbounds i8, ptr %0, i64 144
  store ptr %3, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #8
  invoke void @_ZN6System12ContextGroupC1ERNS_10DispatcherE(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull align 16 dereferenceable(440) %3)
          to label %13 unwind label %31

13:                                               ; preds = %11
  %14 = getelementptr inbounds i8, ptr %0, i64 152
  store ptr %4, ptr %14, align 8, !tbaa !45
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %5) #8
  %15 = getelementptr inbounds i8, ptr %0, i64 8
  %16 = getelementptr inbounds i8, ptr %0, i64 40
  %17 = load i16, ptr %16, align 8, !tbaa !46
  invoke void @_ZN7DynexCN10HttpClientC1ERN6System10DispatcherERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEt(ptr noundef nonnull align 8 dereferenceable(88) %5, ptr noundef nonnull align 16 dereferenceable(440) %3, ptr noundef nonnull align 8 dereferenceable(32) %15, i16 noundef zeroext %17)
          to label %18 unwind label %33

18:                                               ; preds = %13
  %19 = getelementptr inbounds i8, ptr %0, i64 296
  store ptr %5, ptr %19, align 8, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #8
  invoke void @_ZN6System5EventC1ERNS_10DispatcherE(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 16 dereferenceable(440) %3)
          to label %20 unwind label %35

20:                                               ; preds = %18
  %21 = getelementptr inbounds i8, ptr %0, i64 304
  store ptr %6, ptr %21, align 8, !tbaa !48
  invoke void @_ZN6System5Event3setEv(ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %22 unwind label %37

22:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  %23 = getelementptr inbounds i8, ptr %0, i64 48
  invoke void @_ZNSt10lock_guardISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(40) %23)
          to label %24 unwind label %39

24:                                               ; preds = %22
  %25 = getelementptr inbounds i8, ptr %0, i64 44
  %26 = load i32, ptr %25, align 4, !tbaa !49
  %27 = icmp eq i32 %26, 1
  br i1 %27, label %41, label %28

28:                                               ; preds = %24
  call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.8, i32 noundef 180, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7DynexCN12NodeRpcProxy12workerThreadERKSt8functionIFvSt10error_codeEE) #9
  unreachable

29:                                               ; preds = %2
  %30 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  br label %61

31:                                               ; preds = %11
  %32 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  br label %60

33:                                               ; preds = %13
  %34 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  br label %59

35:                                               ; preds = %18
  %36 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  br label %58

37:                                               ; preds = %52, %51, %46, %41, %20
  %38 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  br label %57

39:                                               ; preds = %22
  %40 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  br label %57

41:                                               ; preds = %24
  store i32 2, ptr %25, align 4, !tbaa !49
  %42 = getelementptr inbounds i8, ptr %0, i64 88
  call void @_ZNSt18condition_variable10notify_allEv(ptr noundef nonnull align 8 dereferenceable(48) %42) #8
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  %43 = load ptr, ptr %0, align 8, !tbaa !50
  %44 = getelementptr inbounds i8, ptr %43, i64 120
  %45 = load ptr, ptr %44, align 8
  invoke void %45(ptr noundef nonnull align 8 dereferenceable(560) %0)
          to label %46 unwind label %37

46:                                               ; preds = %41
  call void @_ZNSt10error_codeC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #8
  %47 = load i32, ptr %8, align 8
  %48 = getelementptr inbounds i8, ptr %8, i64 8
  %49 = load ptr, ptr %48, align 8
  invoke void @_ZNKSt8functionIFvSt10error_codeEEclES0_(ptr noundef nonnull align 8 dereferenceable(32) %1, i32 %47, ptr %49)
          to label %50 unwind label %37

50:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  store ptr %0, ptr %10, align 8, !tbaa !52
  call void @"_ZNSt8functionIFvvEEC2IZN7DynexCN12NodeRpcProxy12workerThreadERKS_IFvSt10error_codeEEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  invoke void @_ZN6System12ContextGroup5spawnEOSt8functionIFvvEE(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %51 unwind label %55

51:                                               ; preds = %50
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #8
  invoke void @_ZN6System12ContextGroup4waitEv(ptr noundef nonnull align 8 dereferenceable(40) %4)
          to label %52 unwind label %37

52:                                               ; preds = %51
  %53 = load ptr, ptr %12, align 8, !tbaa !5
  invoke void @_ZN6System10Dispatcher5yieldEv(ptr noundef nonnull align 16 dereferenceable(440) %53)
          to label %54 unwind label %37

54:                                               ; preds = %52
  call void @_ZN6System5EventD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #8
  call void @_ZN7DynexCN10HttpClientD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %5) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %5) #8
  call void @_ZN6System12ContextGroupD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #8
  call void @_ZN6System10DispatcherD1Ev(ptr noundef nonnull align 16 dereferenceable(440) %3) #8
  call void @llvm.lifetime.end.p0(i64 448, ptr nonnull %3) #8
  br label %66

55:                                               ; preds = %50
  %56 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #8
  br label %57

57:                                               ; preds = %55, %39, %37
  %.pn = phi { ptr, i32 } [ %38, %37 ], [ %56, %55 ], [ %40, %39 ]
  call void @_ZN6System5EventD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  br label %58

58:                                               ; preds = %57, %35
  %.pn.pn = phi { ptr, i32 } [ %.pn, %57 ], [ %36, %35 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #8
  call void @_ZN7DynexCN10HttpClientD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %5) #8
  br label %59

59:                                               ; preds = %58, %33
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %58 ], [ %34, %33 ]
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %5) #8
  call void @_ZN6System12ContextGroupD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #8
  br label %60

60:                                               ; preds = %59, %31
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %59 ], [ %32, %31 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #8
  call void @_ZN6System10DispatcherD1Ev(ptr noundef nonnull align 16 dereferenceable(440) %3) #8
  br label %61

61:                                               ; preds = %60, %29
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %60 ], [ %30, %29 ]
  %.49 = extractvalue { ptr, i32 } %.pn.pn.pn.pn.pn, 1
  call void @llvm.lifetime.end.p0(i64 448, ptr nonnull %3) #8
  %62 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #8
  %63 = icmp eq i32 %.49, %62
  br i1 %63, label %64, label %71

64:                                               ; preds = %61
  %.4 = extractvalue { ptr, i32 } %.pn.pn.pn.pn.pn, 0
  %65 = call ptr @__cxa_begin_catch(ptr %.4) #8
  call void @__cxa_end_catch()
  br label %66

66:                                               ; preds = %64, %54
  %67 = getelementptr inbounds i8, ptr %0, i64 144
  %68 = getelementptr inbounds i8, ptr %0, i64 296
  %69 = getelementptr inbounds i8, ptr %0, i64 520
  store i8 0, ptr %69, align 8, !tbaa !54
  %70 = getelementptr inbounds i8, ptr %0, i64 224
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %67, i8 0, i64 16, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %68, i8 0, i64 16, i1 false)
  call void @_ZN5Tools15ObserverManagerIN7DynexCN21INodeRpcProxyObserverEE6notifyIMS2_FvbEJbEEEvT_DpT0_(ptr noundef nonnull align 8 dereferenceable(64) %70, i64 17, i64 0, i1 noundef zeroext false)
  ret void

71:                                               ; preds = %61
  resume { ptr, i32 } %.pn.pn.pn.pn.pn
}

declare void @_ZN6System10DispatcherC1Ev(ptr noundef nonnull align 16 dereferenceable(440)) unnamed_addr #6

declare void @_ZN6System12ContextGroupC1ERNS_10DispatcherE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 16 dereferenceable(440)) unnamed_addr #6

declare void @_ZN7DynexCN10HttpClientC1ERN6System10DispatcherERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEt(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 16 dereferenceable(440), ptr noundef nonnull align 8 dereferenceable(32), i16 noundef zeroext) unnamed_addr #6

declare void @_ZN6System5EventC1ERNS_10DispatcherE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(440)) unnamed_addr #6

declare void @_ZN6System5Event3setEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #6

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

declare void @_ZN6System12ContextGroup5spawnEOSt8functionIFvvEE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvvEEC2IZN7DynexCN12NodeRpcProxy12workerThreadERKS_IFvSt10error_codeEEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3 align 2

declare void @_ZN6System12ContextGroup4waitEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #6

declare void @_ZN6System10Dispatcher5yieldEv(ptr noundef nonnull align 16 dereferenceable(440)) local_unnamed_addr #6

; Function Attrs: nounwind
declare void @_ZN6System5EventD1Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5

; Function Attrs: nounwind
declare void @_ZN7DynexCN10HttpClientD1Ev(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #5

; Function Attrs: nounwind
declare void @_ZN6System12ContextGroupD1Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #5

; Function Attrs: nounwind
declare void @_ZN6System10DispatcherD1Ev(ptr noundef nonnull align 16 dereferenceable(440)) unnamed_addr #5

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #7

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !10, i64 144}
!6 = !{!"_ZTSN7DynexCN12NodeRpcProxyE", !7, i64 0, !8, i64 8, !14, i64 40, !15, i64 44, !16, i64 48, !18, i64 88, !20, i64 136, !10, i64 144, !10, i64 152, !22, i64 160, !27, i64 224, !32, i64 288, !10, i64 296, !10, i64 304, !13, i64 312, !33, i64 320, !34, i64 328, !36, i64 336, !36, i64 340, !34, i64 344, !38, i64 352, !40, i64 464, !33, i64 520, !8, i64 528}
!7 = !{!"_ZTSN7DynexCN5INodeE"}
!8 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !9, i64 0, !13, i64 8, !11, i64 16}
!9 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !10, i64 0}
!10 = !{!"any pointer", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"long", !11, i64 0}
!14 = !{!"short", !11, i64 0}
!15 = !{!"_ZTSN7DynexCN12NodeRpcProxy5StateE", !11, i64 0}
!16 = !{!"_ZTSSt5mutex", !17, i64 0}
!17 = !{!"_ZTSSt12__mutex_base", !11, i64 0}
!18 = !{!"_ZTSSt18condition_variable", !19, i64 0}
!19 = !{!"_ZTSSt9__condvar", !11, i64 0}
!20 = !{!"_ZTSSt6thread", !21, i64 0}
!21 = !{!"_ZTSNSt6thread2idE", !13, i64 0}
!22 = !{!"_ZTSN5Tools15ObserverManagerIN7DynexCN13INodeObserverEEE", !23, i64 0, !16, i64 24}
!23 = !{!"_ZTSSt6vectorIPN7DynexCN13INodeObserverESaIS2_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIPN7DynexCN13INodeObserverESaIS2_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIPN7DynexCN13INodeObserverESaIS2_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIPN7DynexCN13INodeObserverESaIS2_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!27 = !{!"_ZTSN5Tools15ObserverManagerIN7DynexCN21INodeRpcProxyObserverEEE", !28, i64 0, !16, i64 24}
!28 = !{!"_ZTSSt6vectorIPN7DynexCN21INodeRpcProxyObserverESaIS2_EE", !29, i64 0}
!29 = !{!"_ZTSSt12_Vector_baseIPN7DynexCN21INodeRpcProxyObserverESaIS2_EE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIPN7DynexCN21INodeRpcProxyObserverESaIS2_EE12_Vector_implE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIPN7DynexCN21INodeRpcProxyObserverESaIS2_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!32 = !{!"int", !11, i64 0}
!33 = !{!"bool", !11, i64 0}
!34 = !{!"_ZTSSt6atomicImE", !35, i64 0}
!35 = !{!"_ZTSSt13__atomic_baseImE", !13, i64 0}
!36 = !{!"_ZTSSt6atomicIjE", !37, i64 0}
!37 = !{!"_ZTSSt13__atomic_baseIjE", !32, i64 0}
!38 = !{!"_ZTSN7DynexCN15BlockHeaderInfoE", !32, i64 0, !11, i64 4, !11, i64 5, !13, i64 8, !39, i64 16, !39, i64 48, !32, i64 80, !33, i64 84, !32, i64 88, !13, i64 96, !13, i64 104}
!39 = !{!"_ZTSN6Crypto4HashE", !11, i64 0}
!40 = !{!"_ZTSSt13unordered_setIN6Crypto4HashESt4hashIS1_ESt8equal_toIS1_ESaIS1_EE", !41, i64 0}
!41 = !{!"_ZTSSt10_HashtableIN6Crypto4HashES1_SaIS1_ENSt8__detail9_IdentityESt8equal_toIS1_ESt4hashIS1_ENS3_18_Mod_range_hashingENS3_20_Default_ranged_hashENS3_20_Prime_rehash_policyENS3_17_Hashtable_traitsILb1ELb1ELb1EEEE", !10, i64 0, !13, i64 8, !42, i64 16, !13, i64 24, !43, i64 32, !10, i64 48}
!42 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !10, i64 0}
!43 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !44, i64 0, !13, i64 8}
!44 = !{!"float", !11, i64 0}
!45 = !{!6, !10, i64 152}
!46 = !{!6, !14, i64 40}
!47 = !{!6, !10, i64 296}
!48 = !{!6, !10, i64 304}
!49 = !{!6, !15, i64 44}
!50 = !{!51, !51, i64 0}
!51 = !{!"vtable pointer", !12, i64 0}
!52 = !{!53, !10, i64 0}
!53 = !{!"_ZTSZN7DynexCN12NodeRpcProxy12workerThreadERKSt8functionIFvSt10error_codeEEE3$_0", !10, i64 0}
!54 = !{!6, !33, i64 520}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,SROAPass,SimplifyCFGPass