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

; 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.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] }
%"struct.std::_Placeholder" = type { i8 }
%"class.Logging::LoggerMessage" = type <{ %"class.std::basic_ostream.base", %"class.std::basic_streambuf", ptr, %"class.std::__cxx11::basic_string", i32, [4 x i8], %"class.std::__cxx11::basic_string", %"class.boost::posix_time::ptime", i8, [7 x i8], %"class.std::basic_ios" }>
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.boost::posix_time::ptime" = type { %"class.boost::date_time::base_time" }
%"class.boost::date_time::base_time" = type { %"struct.boost::date_time::counted_time_rep" }
%"struct.boost::date_time::counted_time_rep" = type { %"class.boost::date_time::int_adapter" }
%"class.boost::date_time::int_adapter" = type { i64 }
%"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.std::_Bind" = type { { i64, i64 }, %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.22", %"struct.std::_Head_base.38" }
%"struct.std::_Tuple_impl.22" = type { %"struct.std::_Tuple_impl.23", %"struct.std::_Head_base.28" }
%"struct.std::_Tuple_impl.23" = type { %"struct.std::_Head_base.25" }
%"struct.std::_Head_base.25" = type { %"class.std::reference_wrapper" }
%"class.std::reference_wrapper" = type { ptr }
%"struct.std::_Head_base.28" = type { %"class.std::reference_wrapper.29" }
%"class.std::reference_wrapper.29" = type { ptr }
%"struct.std::_Head_base.38" = type { %"class.std::reference_wrapper.39" }
%"class.std::reference_wrapper.39" = type { ptr }
%"class.std::shared_ptr.224" = type { %"class.std::__shared_ptr.225" }
%"class.std::__shared_ptr.225" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr.227" = type { %"class.std::__shared_ptr.228" }
%"class.std::__shared_ptr.228" = type { ptr, %"class.std::__shared_count" }
%"class.std::unique_lock" = type <{ ptr, i8, [7 x i8] }>
%"class.DynexCN::NodeRequest" = type { %"class.std::function" }
%"class.std::function" = 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 } }
%"class.std::function.220" = type { %"class.std::_Function_base", ptr }
%class.anon.231 = type { ptr, %"class.std::shared_ptr.224", %"class.std::shared_ptr.227" }
%"class.DynexCN::BlockchainExplorer" = type <{ %"class.DynexCN::IBlockchainExplorer", %"class.DynexCN::INodeObserver", %"struct.DynexCN::BlockDetails", i32, [4 x i8], %"class.std::unordered_set", %"struct.std::atomic.9", %"struct.std::atomic.10", [3 x i8], %"struct.std::atomic.11", [4 x i8], %"class.Tools::ObserverManager", %"class.std::mutex", ptr, %"class.Logging::LoggerRef", %"class.DynexCN::WalletAsyncContextCounter", %"class.DynexCN::BlockchainExplorer::PoolUpdateGuard", [4 x i8] }>
%"class.DynexCN::IBlockchainExplorer" = type { ptr }
%"class.DynexCN::INodeObserver" = type { ptr }
%"struct.DynexCN::BlockDetails" = type { i8, i8, i64, %"struct.Crypto::Hash", %"struct.Crypto::Hash", i32, i8, i32, i32, %"struct.Crypto::Hash", i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, double, i64, %"class.std::vector" }
%"struct.Crypto::Hash" = type { [32 x i8] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<DynexCN::TransactionDetails, std::allocator<DynexCN::TransactionDetails>>::_Vector_impl" }
%"struct.std::_Vector_base<DynexCN::TransactionDetails, std::allocator<DynexCN::TransactionDetails>>::_Vector_impl" = type { %"struct.std::_Vector_base<DynexCN::TransactionDetails, std::allocator<DynexCN::TransactionDetails>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DynexCN::TransactionDetails, std::allocator<DynexCN::TransactionDetails>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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 }
%"struct.std::atomic.9" = type { i32 }
%"struct.std::atomic.10" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i8 }
%"struct.std::atomic.11" = type { %"struct.std::__atomic_base.12" }
%"struct.std::__atomic_base.12" = type { i32 }
%"class.Tools::ObserverManager" = type { %"class.std::vector.13", %"class.std::mutex" }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<DynexCN::IBlockchainObserver *, std::allocator<DynexCN::IBlockchainObserver *>>::_Vector_impl" }
%"struct.std::_Vector_base<DynexCN::IBlockchainObserver *, std::allocator<DynexCN::IBlockchainObserver *>>::_Vector_impl" = type { %"struct.std::_Vector_base<DynexCN::IBlockchainObserver *, std::allocator<DynexCN::IBlockchainObserver *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DynexCN::IBlockchainObserver *, std::allocator<DynexCN::IBlockchainObserver *>>::_Vector_impl_data" = type { ptr, ptr, 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.Logging::LoggerRef" = type { ptr, %"class.std::__cxx11::basic_string" }
%"class.DynexCN::WalletAsyncContextCounter" = type { i32, %"class.std::condition_variable", %"class.std::mutex" }
%"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.DynexCN::BlockchainExplorer::PoolUpdateGuard" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { i32 }

@.str.4 = external hidden unnamed_addr constant [95 x i8], align 1
@_ZN7Logging7DEFAULTB5cxx11E = external global %"class.std::__cxx11::basic_string", align 8
@_ZNSt12placeholders2_1E = external global %"struct.std::_Placeholder", align 1
@.str.35 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [35 x i8], align 1
@__PRETTY_FUNCTION__._ZN7DynexCN18BlockchainExplorer22localBlockchainUpdatedEj = external hidden unnamed_addr constant [75 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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNKSt13__atomic_baseIjE4loadESt12memory_order(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) #2 align 2

declare void @_ZNK7Logging9LoggerRefclENS_5LevelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.Logging::LoggerMessage") align 8, ptr noundef nonnull align 8 dereferenceable(40), i32 noundef, ptr noundef nonnull align 8 dereferenceable(32)) #3

; Function Attrs: nounwind
declare void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161)) unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4bindIMN7DynexCN5INodeEFvRKSt6vectorIjSaIjEERS2_IS2_INS0_12BlockDetailsESaIS7_EESaIS9_EERKSt8functionIFvSt10error_codeEEEJSt17reference_wrapperIS1_ESL_IS5_ESL_ISB_ERKSt12_PlaceholderILi1EEEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueESU_JDpT0_EE4typeEOSU_DpOSV_(ptr dead_on_unwind noalias writable sret(%"class.std::_Bind") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1)) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local ptr @_ZSt3refIN7DynexCN5INodeEESt17reference_wrapperIT_ERS3_(ptr noundef nonnull align 8 dereferenceable(8)) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local ptr @_ZSt4crefISt6vectorIjSaIjEEESt17reference_wrapperIKT_ERS5_(ptr noundef nonnull align 8 dereferenceable(24)) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local ptr @_ZSt3refISt6vectorIS0_IN7DynexCN12BlockDetailsESaIS2_EESaIS4_EEESt17reference_wrapperIT_ERS8_(ptr noundef nonnull align 8 dereferenceable(24)) #6

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA41_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161), ptr noundef nonnull align 1 dereferenceable(41)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_sharedISt6vectorIjSaIjEEJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES5_E4typeEEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.224") align 8) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_sharedISt6vectorIS0_IN7DynexCN12BlockDetailsESaIS2_EESaIS4_EEJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES9_E4typeEEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.227") align 8) #5

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #7 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7DynexCN18BlockchainExplorer22localBlockchainUpdatedEj(ptr noundef nonnull align 8 dereferenceable(596) %0, i32 noundef %1) unnamed_addr #7 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca %"class.Logging::LoggerMessage", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::unique_lock", align 8
  %9 = alloca %"class.std::shared_ptr.224", align 8
  %10 = alloca %"class.std::shared_ptr.227", align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.DynexCN::NodeRequest", align 8
  %13 = alloca %"class.std::function", align 8
  %14 = alloca %"class.std::_Bind", align 8
  %15 = alloca { i64, i64 }, align 8
  %16 = alloca %"class.std::reference_wrapper.39", align 8
  %17 = alloca %"class.std::reference_wrapper.29", align 8
  %18 = alloca %"class.std::reference_wrapper", align 8
  %19 = alloca %"class.std::function.220", align 8
  %20 = alloca %class.anon.231, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  %21 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 432, ptr %5) #9
  %22 = getelementptr inbounds %"class.DynexCN::BlockchainExplorer", ptr %21, i32 0, i32 14
  call void @_ZNK7Logging9LoggerRefclENS_5LevelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.Logging::LoggerMessage") align 8 %5, ptr noundef nonnull align 8 dereferenceable(40) %22, i32 noundef 4, ptr noundef nonnull align 8 dereferenceable(32) @_ZN7Logging7DEFAULTB5cxx11E)
  %23 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA41_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %5, ptr noundef nonnull align 1 dereferenceable(41) @.str.35)
          to label %24 unwind label %31

24:                                               ; preds = %2
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %5) #9
  call void @llvm.lifetime.end.p0(i64 432, ptr %5) #9
  %25 = getelementptr inbounds %"class.DynexCN::BlockchainExplorer", ptr %21, i32 0, i32 9
  %26 = call noundef i32 @_ZNKSt13__atomic_baseIjE4loadESt12memory_order(ptr noundef nonnull align 4 dereferenceable(4) %25, i32 noundef 5) #9
  %27 = icmp eq i32 %26, 0
  br i1 %27, label %28, label %35

28:                                               ; preds = %24
  %29 = load i32, ptr %4, align 4, !tbaa !9
  %30 = getelementptr inbounds %"class.DynexCN::BlockchainExplorer", ptr %21, i32 0, i32 3
  store i32 %29, ptr %30, align 8, !tbaa !11
  br label %94

31:                                               ; preds = %2
  %32 = landingpad { ptr, i32 }
          cleanup
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %6, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %7, align 4
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %5) #9
  call void @llvm.lifetime.end.p0(i64 432, ptr %5) #9
  br label %117

35:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #9
  %36 = getelementptr inbounds %"class.DynexCN::BlockchainExplorer", ptr %21, i32 0, i32 12
  call void @_ZNSt11unique_lockISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(9) %8, ptr noundef nonnull align 8 dereferenceable(40) %36)
  %37 = load i32, ptr %4, align 4, !tbaa !9
  %38 = getelementptr inbounds %"class.DynexCN::BlockchainExplorer", ptr %21, i32 0, i32 3
  %39 = load i32, ptr %38, align 8, !tbaa !11
  %40 = icmp uge i32 %37, %39
  br i1 %40, label %41, label %42

41:                                               ; preds = %35
  br label %44

42:                                               ; preds = %35
  call void @__assert_fail(ptr noundef @.str.36, ptr noundef @.str.4, i32 noundef 699, ptr noundef @__PRETTY_FUNCTION__._ZN7DynexCN18BlockchainExplorer22localBlockchainUpdatedEj) #10
  unreachable

43:                                               ; No predecessors!
  br label %44

44:                                               ; preds = %43, %41
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #9
  invoke void @_ZSt11make_sharedISt6vectorIjSaIjEEJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES5_E4typeEEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.224") align 8 %9)
          to label %45 unwind label %54

45:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #9
  invoke void @_ZSt11make_sharedISt6vectorIS0_IN7DynexCN12BlockDetailsESaIS2_EESaIS4_EEJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES9_E4typeEEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.227") align 8 %10)
          to label %46 unwind label %58

46:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
  %47 = getelementptr inbounds %"class.DynexCN::BlockchainExplorer", ptr %21, i32 0, i32 3
  %48 = load i32, ptr %47, align 8, !tbaa !11
  store i32 %48, ptr %11, align 4, !tbaa !9
  br label %49

49:                                               ; preds = %65, %46
  %50 = load i32, ptr %11, align 4, !tbaa !9
  %51 = load i32, ptr %4, align 4, !tbaa !9
  %52 = icmp ule i32 %50, %51
  br i1 %52, label %62, label %53

53:                                               ; preds = %49
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  br label %72

54:                                               ; preds = %44
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %6, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %7, align 4
  br label %116

58:                                               ; preds = %45
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %6, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %7, align 4
  br label %115

62:                                               ; preds = %49
  %63 = call noundef ptr @_ZNKSt19__shared_ptr_accessISt6vectorIjSaIjEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %9) #9
  invoke void @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %63, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %64 unwind label %68

64:                                               ; preds = %62
  br label %65

65:                                               ; preds = %64
  %66 = load i32, ptr %11, align 4, !tbaa !9
  %67 = add i32 %66, 1
  store i32 %67, ptr %11, align 4, !tbaa !9
  br label %49, !llvm.loop !51

68:                                               ; preds = %62
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %6, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  br label %114

72:                                               ; preds = %53
  %73 = load i32, ptr %4, align 4, !tbaa !9
  %74 = getelementptr inbounds %"class.DynexCN::BlockchainExplorer", ptr %21, i32 0, i32 3
  store i32 %73, ptr %74, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #9
  call void @llvm.lifetime.start.p0(i64 40, ptr %14) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #9
  store { i64, i64 } { i64 185, i64 0 }, ptr %15, align 8, !tbaa !53
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  %75 = getelementptr inbounds %"class.DynexCN::BlockchainExplorer", ptr %21, i32 0, i32 13
  %76 = load ptr, ptr %75, align 8, !tbaa !54
  %77 = call ptr @_ZSt3refIN7DynexCN5INodeEESt17reference_wrapperIT_ERS3_(ptr noundef nonnull align 8 dereferenceable(8) %76) #9
  %78 = getelementptr inbounds %"class.std::reference_wrapper.39", ptr %16, i32 0, i32 0
  store ptr %77, ptr %78, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  %79 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt19__shared_ptr_accessISt6vectorIjSaIjEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %9) #9
  %80 = call ptr @_ZSt4crefISt6vectorIjSaIjEEESt17reference_wrapperIKT_ERS5_(ptr noundef nonnull align 8 dereferenceable(24) %79) #9
  %81 = getelementptr inbounds %"class.std::reference_wrapper.29", ptr %17, i32 0, i32 0
  store ptr %80, ptr %81, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #9
  %82 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt19__shared_ptr_accessISt6vectorIS0_IN7DynexCN12BlockDetailsESaIS2_EESaIS4_EELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %10) #9
  %83 = call ptr @_ZSt3refISt6vectorIS0_IN7DynexCN12BlockDetailsESaIS2_EESaIS4_EEESt17reference_wrapperIT_ERS8_(ptr noundef nonnull align 8 dereferenceable(24) %82) #9
  %84 = getelementptr inbounds %"class.std::reference_wrapper", ptr %18, i32 0, i32 0
  store ptr %83, ptr %84, align 8
  invoke void @_ZSt4bindIMN7DynexCN5INodeEFvRKSt6vectorIjSaIjEERS2_IS2_INS0_12BlockDetailsESaIS7_EESaIS9_EERKSt8functionIFvSt10error_codeEEEJSt17reference_wrapperIS1_ESL_IS5_ESL_ISB_ERKSt12_PlaceholderILi1EEEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueESU_JDpT0_EE4typeEOSU_DpOSV_(ptr dead_on_unwind writable sret(%"class.std::_Bind") align 8 %14, ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_1E)
          to label %85 unwind label %95

85:                                               ; preds = %72
  invoke void @_ZNSt8functionIFvRKS_IFvSt10error_codeEEEEC2ISt5_BindIFMN7DynexCN5INodeEFvRKSt6vectorIjSaIjEERSB_ISB_INS9_12BlockDetailsESaISG_EESaISI_EES4_ESt17reference_wrapperISA_ESO_ISE_ESO_ISK_ESt12_PlaceholderILi1EEEEvEEOT_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(40) %14)
          to label %86 unwind label %95

86:                                               ; preds = %85
  invoke void @_ZN7DynexCN11NodeRequestC2ERKSt8functionIFvRKS1_IFvSt10error_codeEEEE(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %87 unwind label %99

87:                                               ; preds = %86
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #9
  %88 = getelementptr inbounds %"class.DynexCN::BlockchainExplorer", ptr %21, i32 0, i32 15
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #9
  call void @llvm.lifetime.start.p0(i64 40, ptr %20) #9
  %89 = getelementptr inbounds %class.anon.231, ptr %20, i32 0, i32 0
  store ptr %21, ptr %89, align 8, !tbaa !55
  %90 = getelementptr inbounds %class.anon.231, ptr %20, i32 0, i32 1
  call void @_ZNSt10shared_ptrISt6vectorIjSaIjEEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %90, ptr noundef nonnull align 8 dereferenceable(16) %9) #9
  %91 = getelementptr inbounds %class.anon.231, ptr %20, i32 0, i32 2
  call void @_ZNSt10shared_ptrISt6vectorIS0_IN7DynexCN12BlockDetailsESaIS2_EESaIS4_EEEC2ERKS7_(ptr noundef nonnull align 8 dereferenceable(16) %91, ptr noundef nonnull align 8 dereferenceable(16) %10) #9
  invoke void @"_ZNSt8functionIFvSt10error_codeEEC2IZN7DynexCN18BlockchainExplorer22localBlockchainUpdatedEjE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(40) %20)
          to label %92 unwind label %104

92:                                               ; preds = %87
  invoke void @_ZN7DynexCN11NodeRequest12performAsyncERNS_25WalletAsyncContextCounterERKSt8functionIFvSt10error_codeEE(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(96) %88, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %93 unwind label %108

93:                                               ; preds = %92
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #9
  call void @"_ZZN7DynexCN18BlockchainExplorer22localBlockchainUpdatedEjEN3$_0D2Ev"(ptr noundef nonnull align 8 dereferenceable(40) %20) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #9
  call void @_ZN7DynexCN11NodeRequestD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #9
  call void @_ZNSt12__shared_ptrISt6vectorIS0_IN7DynexCN12BlockDetailsESaIS2_EESaIS4_EELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #9
  call void @_ZNSt12__shared_ptrISt6vectorIjSaIjEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #9
  call void @_ZNSt11unique_lockISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(9) %8) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #9
  br label %94

94:                                               ; preds = %93, %28
  ret void

95:                                               ; preds = %85, %72
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %6, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %7, align 4
  br label %103

99:                                               ; preds = %86
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %6, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %7, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #9
  br label %103

103:                                              ; preds = %99, %95
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #9
  br label %113

104:                                              ; preds = %87
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %6, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %7, align 4
  br label %112

108:                                              ; preds = %92
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %6, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %7, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #9
  br label %112

112:                                              ; preds = %108, %104
  call void @"_ZZN7DynexCN18BlockchainExplorer22localBlockchainUpdatedEjEN3$_0D2Ev"(ptr noundef nonnull align 8 dereferenceable(40) %20) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #9
  call void @_ZN7DynexCN11NodeRequestD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #9
  br label %113

113:                                              ; preds = %112, %103
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #9
  br label %114

114:                                              ; preds = %113, %68
  call void @_ZNSt12__shared_ptrISt6vectorIS0_IN7DynexCN12BlockDetailsESaIS2_EESaIS4_EELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #9
  br label %115

115:                                              ; preds = %114, %58
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #9
  call void @_ZNSt12__shared_ptrISt6vectorIjSaIjEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #9
  br label %116

116:                                              ; preds = %115, %54
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #9
  call void @_ZNSt11unique_lockISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(9) %8) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #9
  br label %117

117:                                              ; preds = %116, %31
  %118 = load ptr, ptr %6, align 8
  %119 = load i32, ptr %7, align 4
  %120 = insertvalue { ptr, i32 } poison, ptr %118, 0
  %121 = insertvalue { ptr, i32 } %120, i32 %119, 1
  resume { ptr, i32 } %121
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @"_ZZN7DynexCN18BlockchainExplorer22localBlockchainUpdatedEjEN3$_0D2Ev"(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #6 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind "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 = { 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 #7 = { 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 #8 = { 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 #9 = { nounwind }
attributes #10 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 264}
!12 = !{!"_ZTSN7DynexCN18BlockchainExplorerE", !13, i64 0, !14, i64 8, !15, i64 16, !10, i64 264, !24, i64 272, !29, i64 328, !31, i64 332, !33, i64 336, !35, i64 344, !40, i64 408, !6, i64 448, !42, i64 456, !45, i64 496, !48, i64 592}
!13 = !{!"_ZTSN7DynexCN19IBlockchainExplorerE"}
!14 = !{!"_ZTSN7DynexCN13INodeObserverE"}
!15 = !{!"_ZTSN7DynexCN12BlockDetailsE", !7, i64 0, !7, i64 1, !16, i64 8, !17, i64 16, !17, i64 48, !10, i64 80, !18, i64 84, !10, i64 88, !10, i64 92, !17, i64 96, !16, i64 128, !16, i64 136, !16, i64 144, !16, i64 152, !16, i64 160, !16, i64 168, !16, i64 176, !16, i64 184, !16, i64 192, !16, i64 200, !19, i64 208, !16, i64 216, !20, i64 224}
!16 = !{!"long", !7, i64 0}
!17 = !{!"_ZTSN6Crypto4HashE", !7, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{!"double", !7, i64 0}
!20 = !{!"_ZTSSt6vectorIN7DynexCN18TransactionDetailsESaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIN7DynexCN18TransactionDetailsESaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN7DynexCN18TransactionDetailsESaIS1_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIN7DynexCN18TransactionDetailsESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!"_ZTSSt13unordered_setIN6Crypto4HashESt4hashIS1_ESt8equal_toIS1_ESaIS1_EE", !25, i64 0}
!25 = !{!"_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, !16, i64 8, !26, i64 16, !16, i64 24, !27, i64 32, !6, i64 48}
!26 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!27 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !28, i64 0, !16, i64 8}
!28 = !{!"float", !7, i64 0}
!29 = !{!"_ZTSSt6atomicIN7DynexCN18BlockchainExplorer5StateEE", !30, i64 0}
!30 = !{!"_ZTSN7DynexCN18BlockchainExplorer5StateE", !7, i64 0}
!31 = !{!"_ZTSSt6atomicIbE", !32, i64 0}
!32 = !{!"_ZTSSt13__atomic_baseIbE", !18, i64 0}
!33 = !{!"_ZTSSt6atomicIjE", !34, i64 0}
!34 = !{!"_ZTSSt13__atomic_baseIjE", !10, i64 0}
!35 = !{!"_ZTSN5Tools15ObserverManagerIN7DynexCN19IBlockchainObserverEEE", !36, i64 0, !40, i64 24}
!36 = !{!"_ZTSSt6vectorIPN7DynexCN19IBlockchainObserverESaIS2_EE", !37, i64 0}
!37 = !{!"_ZTSSt12_Vector_baseIPN7DynexCN19IBlockchainObserverESaIS2_EE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIPN7DynexCN19IBlockchainObserverESaIS2_EE12_Vector_implE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIPN7DynexCN19IBlockchainObserverESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!40 = !{!"_ZTSSt5mutex", !41, i64 0}
!41 = !{!"_ZTSSt12__mutex_base", !7, i64 0}
!42 = !{!"_ZTSN7Logging9LoggerRefE", !6, i64 0, !43, i64 8}
!43 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !44, i64 0, !16, i64 8, !7, i64 16}
!44 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!45 = !{!"_ZTSN7DynexCN25WalletAsyncContextCounterE", !10, i64 0, !46, i64 8, !40, i64 56}
!46 = !{!"_ZTSSt18condition_variable", !47, i64 0}
!47 = !{!"_ZTSSt9__condvar", !7, i64 0}
!48 = !{!"_ZTSN7DynexCN18BlockchainExplorer15PoolUpdateGuardE", !49, i64 0}
!49 = !{!"_ZTSSt6atomicIN7DynexCN18BlockchainExplorer15PoolUpdateGuard5StateEE", !50, i64 0}
!50 = !{!"_ZTSN7DynexCN18BlockchainExplorer15PoolUpdateGuard5StateE", !7, i64 0}
!51 = distinct !{!51, !52}
!52 = !{!"llvm.loop.mustprogress"}
!53 = !{!7, !7, i64 0}
!54 = !{!12, !6, i64 448}
!55 = !{!56, !6, i64 0}
!56 = !{!"_ZTSZN7DynexCN18BlockchainExplorer22localBlockchainUpdatedEjE3$_0", !6, i64 0, !57, i64 8, !60, i64 24}
!57 = !{!"_ZTSSt10shared_ptrISt6vectorIjSaIjEEE", !58, i64 0}
!58 = !{!"_ZTSSt12__shared_ptrISt6vectorIjSaIjEELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !59, i64 8}
!59 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!60 = !{!"_ZTSSt10shared_ptrISt6vectorIS0_IN7DynexCN12BlockDetailsESaIS2_EESaIS4_EEE", !61, i64 0}
!61 = !{!"_ZTSSt12__shared_ptrISt6vectorIS0_IN7DynexCN12BlockDetailsESaIS2_EESaIS4_EELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !59, i64 8}


; 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.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] }
%"struct.std::_Placeholder" = type { i8 }
%"class.Logging::LoggerMessage" = type <{ %"class.std::basic_ostream.base", %"class.std::basic_streambuf", ptr, %"class.std::__cxx11::basic_string", i32, [4 x i8], %"class.std::__cxx11::basic_string", %"class.boost::posix_time::ptime", i8, [7 x i8], %"class.std::basic_ios" }>
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.boost::posix_time::ptime" = type { %"class.boost::date_time::base_time" }
%"class.boost::date_time::base_time" = type { %"struct.boost::date_time::counted_time_rep" }
%"struct.boost::date_time::counted_time_rep" = type { %"class.boost::date_time::int_adapter" }
%"class.boost::date_time::int_adapter" = type { i64 }
%"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.std::_Bind" = type { { i64, i64 }, %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.22", %"struct.std::_Head_base.38" }
%"struct.std::_Tuple_impl.22" = type { %"struct.std::_Tuple_impl.23", %"struct.std::_Head_base.28" }
%"struct.std::_Tuple_impl.23" = type { %"struct.std::_Head_base.25" }
%"struct.std::_Head_base.25" = type { %"class.std::reference_wrapper" }
%"class.std::reference_wrapper" = type { ptr }
%"struct.std::_Head_base.28" = type { %"class.std::reference_wrapper.29" }
%"class.std::reference_wrapper.29" = type { ptr }
%"struct.std::_Head_base.38" = type { %"class.std::reference_wrapper.39" }
%"class.std::reference_wrapper.39" = type { ptr }
%"class.std::shared_ptr.224" = type { %"class.std::__shared_ptr.225" }
%"class.std::__shared_ptr.225" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr.227" = type { %"class.std::__shared_ptr.228" }
%"class.std::__shared_ptr.228" = type { ptr, %"class.std::__shared_count" }
%"class.std::unique_lock" = type <{ ptr, i8, [7 x i8] }>
%"class.DynexCN::NodeRequest" = type { %"class.std::function" }
%"class.std::function" = 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 } }
%"class.std::function.220" = type { %"class.std::_Function_base", ptr }
%class.anon.231 = type { ptr, %"class.std::shared_ptr.224", %"class.std::shared_ptr.227" }

@.str.4 = external hidden unnamed_addr constant [95 x i8], align 1
@_ZN7Logging7DEFAULTB5cxx11E = external global %"class.std::__cxx11::basic_string", align 8
@_ZNSt12placeholders2_1E = external global %"struct.std::_Placeholder", align 1
@.str.35 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [35 x i8], align 1
@__PRETTY_FUNCTION__._ZN7DynexCN18BlockchainExplorer22localBlockchainUpdatedEj = external hidden unnamed_addr constant [75 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

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

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZNK7Logging9LoggerRefclENS_5LevelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.Logging::LoggerMessage") align 8, ptr noundef nonnull align 8 dereferenceable(40), i32 noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

; Function Attrs: nounwind
declare void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161)) unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4bindIMN7DynexCN5INodeEFvRKSt6vectorIjSaIjEERS2_IS2_INS0_12BlockDetailsESaIS7_EESaIS9_EERKSt8functionIFvSt10error_codeEEEJSt17reference_wrapperIS1_ESL_IS5_ESL_ISB_ERKSt12_PlaceholderILi1EEEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueESU_JDpT0_EE4typeEOSU_DpOSV_(ptr dead_on_unwind noalias writable sret(%"class.std::_Bind") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local ptr @_ZSt3refIN7DynexCN5INodeEESt17reference_wrapperIT_ERS3_(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local ptr @_ZSt4crefISt6vectorIjSaIjEEESt17reference_wrapperIKT_ERS5_(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local ptr @_ZSt3refISt6vectorIS0_IN7DynexCN12BlockDetailsESaIS2_EESaIS4_EEESt17reference_wrapperIT_ERS8_(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #6

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA41_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161), ptr noundef nonnull align 1 dereferenceable(41)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_sharedISt6vectorIjSaIjEEJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES5_E4typeEEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.224") align 8) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_sharedISt6vectorIS0_IN7DynexCN12BlockDetailsESaIS2_EESaIS4_EEJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES9_E4typeEEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.227") align 8) local_unnamed_addr #5

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #7 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7DynexCN18BlockchainExplorer22localBlockchainUpdatedEj(ptr noundef nonnull align 8 dereferenceable(596) %0, i32 noundef %1) unnamed_addr #7 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.Logging::LoggerMessage", align 8
  %4 = alloca %"class.std::unique_lock", align 8
  %5 = alloca %"class.std::shared_ptr.224", align 8
  %6 = alloca %"class.std::shared_ptr.227", align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.DynexCN::NodeRequest", align 8
  %9 = alloca %"class.std::function", align 8
  %10 = alloca %"class.std::_Bind", align 8
  %11 = alloca { i64, i64 }, align 8
  %12 = alloca %"class.std::reference_wrapper.39", align 8
  %13 = alloca %"class.std::reference_wrapper.29", align 8
  %14 = alloca %"class.std::reference_wrapper", align 8
  %15 = alloca %"class.std::function.220", align 8
  %16 = alloca %class.anon.231, align 8
  call void @llvm.lifetime.start.p0(i64 432, ptr nonnull %3) #9
  %17 = getelementptr inbounds i8, ptr %0, i64 456
  call void @_ZNK7Logging9LoggerRefclENS_5LevelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.Logging::LoggerMessage") align 8 %3, ptr noundef nonnull align 8 dereferenceable(40) %17, i32 noundef 4, ptr noundef nonnull align 8 dereferenceable(32) @_ZN7Logging7DEFAULTB5cxx11E)
  %18 = invoke noundef nonnull align 8 dereferenceable(161) ptr @_ZStlsIN7Logging13LoggerMessageEA41_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(161) %3, ptr noundef nonnull align 1 dereferenceable(41) @.str.35)
          to label %19 unwind label %25

19:                                               ; preds = %2
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %3) #9
  call void @llvm.lifetime.end.p0(i64 432, ptr nonnull %3) #9
  %20 = getelementptr inbounds i8, ptr %0, i64 336
  %21 = call noundef i32 @_ZNKSt13__atomic_baseIjE4loadESt12memory_order(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef 5) #9
  %22 = icmp eq i32 %21, 0
  br i1 %22, label %23, label %27

23:                                               ; preds = %19
  %24 = getelementptr inbounds i8, ptr %0, i64 264
  store i32 %1, ptr %24, align 8, !tbaa !5
  br label %61

25:                                               ; preds = %2
  %26 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7Logging13LoggerMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(161) %3) #9
  call void @llvm.lifetime.end.p0(i64 432, ptr nonnull %3) #9
  br label %76

27:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #9
  %28 = getelementptr inbounds i8, ptr %0, i64 408
  call void @_ZNSt11unique_lockISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(9) %4, ptr noundef nonnull align 8 dereferenceable(40) %28)
  %29 = getelementptr inbounds i8, ptr %0, i64 264
  %30 = load i32, ptr %29, align 8, !tbaa !5
  %.not = icmp ugt i32 %30, %1
  br i1 %.not, label %31, label %32

31:                                               ; preds = %27
  call void @__assert_fail(ptr noundef nonnull @.str.36, ptr noundef nonnull @.str.4, i32 noundef 699, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7DynexCN18BlockchainExplorer22localBlockchainUpdatedEj) #10
  unreachable

32:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #9
  invoke void @_ZSt11make_sharedISt6vectorIjSaIjEEJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES5_E4typeEEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.224") align 8 %5)
          to label %33 unwind label %43

33:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #9
  invoke void @_ZSt11make_sharedISt6vectorIS0_IN7DynexCN12BlockDetailsESaIS2_EESaIS4_EEJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES9_E4typeEEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.227") align 8 %6)
          to label %34 unwind label %45

34:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #9
  %35 = load i32, ptr %29, align 8, !tbaa !5
  store i32 %35, ptr %7, align 4, !tbaa !49
  %.not1424 = icmp ugt i32 %35, %1
  br i1 %.not1424, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %48, %34
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #9
  store i32 %1, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #9
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %10) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #9
  store i64 185, ptr %11, align 8, !tbaa !50
  %.fca.1.gep = getelementptr inbounds i8, ptr %11, i64 8
  store i64 0, ptr %.fca.1.gep, align 8, !tbaa !50
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #9
  %36 = getelementptr inbounds i8, ptr %0, i64 448
  %37 = load ptr, ptr %36, align 8, !tbaa !51
  %38 = call ptr @_ZSt3refIN7DynexCN5INodeEESt17reference_wrapperIT_ERS3_(ptr noundef nonnull align 8 dereferenceable(8) %37) #9
  store ptr %38, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #9
  %39 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt19__shared_ptr_accessISt6vectorIjSaIjEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %5) #9
  %40 = call ptr @_ZSt4crefISt6vectorIjSaIjEEESt17reference_wrapperIKT_ERS5_(ptr noundef nonnull align 8 dereferenceable(24) %39) #9
  store ptr %40, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #9
  %41 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt19__shared_ptr_accessISt6vectorIS0_IN7DynexCN12BlockDetailsESaIS2_EESaIS4_EELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %6) #9
  %42 = call ptr @_ZSt3refISt6vectorIS0_IN7DynexCN12BlockDetailsESaIS2_EESaIS4_EEESt17reference_wrapperIT_ERS8_(ptr noundef nonnull align 8 dereferenceable(24) %41) #9
  store ptr %42, ptr %14, align 8
  invoke void @_ZSt4bindIMN7DynexCN5INodeEFvRKSt6vectorIjSaIjEERS2_IS2_INS0_12BlockDetailsESaIS7_EESaIS9_EERKSt8functionIFvSt10error_codeEEEJSt17reference_wrapperIS1_ESL_IS5_ESL_ISB_ERKSt12_PlaceholderILi1EEEENSt12_Bind_helperIXsr15__is_socketlikeIT_EE5valueESU_JDpT0_EE4typeEOSU_DpOSV_(ptr dead_on_unwind nonnull writable sret(%"class.std::_Bind") align 8 %10, ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 1 dereferenceable(1) @_ZNSt12placeholders2_1E)
          to label %53 unwind label %62

43:                                               ; preds = %32
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %75

45:                                               ; preds = %33
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %74

.lr.ph:                                           ; preds = %34, %48
  %47 = call noundef ptr @_ZNKSt19__shared_ptr_accessISt6vectorIjSaIjEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %5) #9
  invoke void @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %47, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %48 unwind label %51

48:                                               ; preds = %.lr.ph
  %49 = load i32, ptr %7, align 4, !tbaa !49
  %50 = add i32 %49, 1
  store i32 %50, ptr %7, align 4, !tbaa !49
  %.not14 = icmp ugt i32 %50, %1
  br i1 %.not14, label %._crit_edge, label %.lr.ph, !llvm.loop !52

51:                                               ; preds = %.lr.ph
  %52 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #9
  br label %73

53:                                               ; preds = %._crit_edge
  invoke void @_ZNSt8functionIFvRKS_IFvSt10error_codeEEEEC2ISt5_BindIFMN7DynexCN5INodeEFvRKSt6vectorIjSaIjEERSB_ISB_INS9_12BlockDetailsESaISG_EESaISI_EES4_ESt17reference_wrapperISA_ESO_ISE_ESO_ISK_ESt12_PlaceholderILi1EEEEvEEOT_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(40) %10)
          to label %54 unwind label %62

54:                                               ; preds = %53
  invoke void @_ZN7DynexCN11NodeRequestC2ERKSt8functionIFvRKS1_IFvSt10error_codeEEEE(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %55 unwind label %64

55:                                               ; preds = %54
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #9
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %16) #9
  store ptr %0, ptr %16, align 8, !tbaa !54
  %56 = getelementptr inbounds i8, ptr %16, i64 8
  call void @_ZNSt10shared_ptrISt6vectorIjSaIjEEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %56, ptr noundef nonnull align 8 dereferenceable(16) %5) #9
  %57 = getelementptr inbounds i8, ptr %16, i64 24
  call void @_ZNSt10shared_ptrISt6vectorIS0_IN7DynexCN12BlockDetailsESaIS2_EESaIS4_EEEC2ERKS7_(ptr noundef nonnull align 8 dereferenceable(16) %57, ptr noundef nonnull align 8 dereferenceable(16) %6) #9
  invoke void @"_ZNSt8functionIFvSt10error_codeEEC2IZN7DynexCN18BlockchainExplorer22localBlockchainUpdatedEjE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(40) %16)
          to label %58 unwind label %67

58:                                               ; preds = %55
  %59 = getelementptr inbounds i8, ptr %0, i64 496
  invoke void @_ZN7DynexCN11NodeRequest12performAsyncERNS_25WalletAsyncContextCounterERKSt8functionIFvSt10error_codeEE(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(96) %59, ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %60 unwind label %69

60:                                               ; preds = %58
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #9
  call void @"_ZZN7DynexCN18BlockchainExplorer22localBlockchainUpdatedEjEN3$_0D2Ev"(ptr noundef nonnull align 8 dereferenceable(40) %16) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #9
  call void @_ZN7DynexCN11NodeRequestD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #9
  call void @_ZNSt12__shared_ptrISt6vectorIS0_IN7DynexCN12BlockDetailsESaIS2_EESaIS4_EELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #9
  call void @_ZNSt12__shared_ptrISt6vectorIjSaIjEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #9
  call void @_ZNSt11unique_lockISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(9) %4) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #9
  br label %61

61:                                               ; preds = %60, %23
  ret void

62:                                               ; preds = %53, %._crit_edge
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %66

64:                                               ; preds = %54
  %65 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #9
  br label %66

66:                                               ; preds = %64, %62
  %.pn = phi { ptr, i32 } [ %65, %64 ], [ %63, %62 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #9
  br label %72

67:                                               ; preds = %55
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %71

69:                                               ; preds = %58
  %70 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #9
  br label %71

71:                                               ; preds = %69, %67
  %.pn16 = phi { ptr, i32 } [ %70, %69 ], [ %68, %67 ]
  call void @"_ZZN7DynexCN18BlockchainExplorer22localBlockchainUpdatedEjEN3$_0D2Ev"(ptr noundef nonnull align 8 dereferenceable(40) %16) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #9
  call void @_ZN7DynexCN11NodeRequestD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #9
  br label %72

72:                                               ; preds = %71, %66
  %.pn16.pn = phi { ptr, i32 } [ %.pn16, %71 ], [ %.pn, %66 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #9
  br label %73

73:                                               ; preds = %72, %51
  %.pn19 = phi { ptr, i32 } [ %52, %51 ], [ %.pn16.pn, %72 ]
  call void @_ZNSt12__shared_ptrISt6vectorIS0_IN7DynexCN12BlockDetailsESaIS2_EESaIS4_EELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #9
  br label %74

74:                                               ; preds = %73, %45
  %.pn19.pn = phi { ptr, i32 } [ %.pn19, %73 ], [ %46, %45 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #9
  call void @_ZNSt12__shared_ptrISt6vectorIjSaIjEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #9
  br label %75

75:                                               ; preds = %74, %43
  %.pn19.pn.pn = phi { ptr, i32 } [ %.pn19.pn, %74 ], [ %44, %43 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #9
  call void @_ZNSt11unique_lockISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(9) %4) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #9
  br label %76

76:                                               ; preds = %75, %25
  %.pn19.pn.pn.pn = phi { ptr, i32 } [ %.pn19.pn.pn, %75 ], [ %26, %25 ]
  resume { ptr, i32 } %.pn19.pn.pn.pn
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @"_ZZN7DynexCN18BlockchainExplorer22localBlockchainUpdatedEjEN3$_0D2Ev"(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #6 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind "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 = { 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 #7 = { 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 #8 = { 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 #9 = { nounwind }
attributes #10 = { 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, !14, i64 264}
!6 = !{!"_ZTSN7DynexCN18BlockchainExplorerE", !7, i64 0, !8, i64 8, !9, i64 16, !14, i64 264, !22, i64 272, !27, i64 328, !29, i64 332, !31, i64 336, !33, i64 344, !38, i64 408, !21, i64 448, !40, i64 456, !43, i64 496, !46, i64 592}
!7 = !{!"_ZTSN7DynexCN19IBlockchainExplorerE"}
!8 = !{!"_ZTSN7DynexCN13INodeObserverE"}
!9 = !{!"_ZTSN7DynexCN12BlockDetailsE", !10, i64 0, !10, i64 1, !12, i64 8, !13, i64 16, !13, i64 48, !14, i64 80, !15, i64 84, !14, i64 88, !14, i64 92, !13, i64 96, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !12, i64 176, !12, i64 184, !12, i64 192, !12, i64 200, !16, i64 208, !12, i64 216, !17, i64 224}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"long", !10, i64 0}
!13 = !{!"_ZTSN6Crypto4HashE", !10, i64 0}
!14 = !{!"int", !10, i64 0}
!15 = !{!"bool", !10, i64 0}
!16 = !{!"double", !10, i64 0}
!17 = !{!"_ZTSSt6vectorIN7DynexCN18TransactionDetailsESaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIN7DynexCN18TransactionDetailsESaIS1_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIN7DynexCN18TransactionDetailsESaIS1_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIN7DynexCN18TransactionDetailsESaIS1_EE17_Vector_impl_dataE", !21, i64 0, !21, i64 8, !21, i64 16}
!21 = !{!"any pointer", !10, i64 0}
!22 = !{!"_ZTSSt13unordered_setIN6Crypto4HashESt4hashIS1_ESt8equal_toIS1_ESaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSSt10_HashtableIN6Crypto4HashES1_SaIS1_ENSt8__detail9_IdentityESt8equal_toIS1_ESt4hashIS1_ENS3_18_Mod_range_hashingENS3_20_Default_ranged_hashENS3_20_Prime_rehash_policyENS3_17_Hashtable_traitsILb1ELb1ELb1EEEE", !21, i64 0, !12, i64 8, !24, i64 16, !12, i64 24, !25, i64 32, !21, i64 48}
!24 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !21, i64 0}
!25 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !26, i64 0, !12, i64 8}
!26 = !{!"float", !10, i64 0}
!27 = !{!"_ZTSSt6atomicIN7DynexCN18BlockchainExplorer5StateEE", !28, i64 0}
!28 = !{!"_ZTSN7DynexCN18BlockchainExplorer5StateE", !10, i64 0}
!29 = !{!"_ZTSSt6atomicIbE", !30, i64 0}
!30 = !{!"_ZTSSt13__atomic_baseIbE", !15, i64 0}
!31 = !{!"_ZTSSt6atomicIjE", !32, i64 0}
!32 = !{!"_ZTSSt13__atomic_baseIjE", !14, i64 0}
!33 = !{!"_ZTSN5Tools15ObserverManagerIN7DynexCN19IBlockchainObserverEEE", !34, i64 0, !38, i64 24}
!34 = !{!"_ZTSSt6vectorIPN7DynexCN19IBlockchainObserverESaIS2_EE", !35, i64 0}
!35 = !{!"_ZTSSt12_Vector_baseIPN7DynexCN19IBlockchainObserverESaIS2_EE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIPN7DynexCN19IBlockchainObserverESaIS2_EE12_Vector_implE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIPN7DynexCN19IBlockchainObserverESaIS2_EE17_Vector_impl_dataE", !21, i64 0, !21, i64 8, !21, i64 16}
!38 = !{!"_ZTSSt5mutex", !39, i64 0}
!39 = !{!"_ZTSSt12__mutex_base", !10, i64 0}
!40 = !{!"_ZTSN7Logging9LoggerRefE", !21, i64 0, !41, i64 8}
!41 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !42, i64 0, !12, i64 8, !10, i64 16}
!42 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !21, i64 0}
!43 = !{!"_ZTSN7DynexCN25WalletAsyncContextCounterE", !14, i64 0, !44, i64 8, !38, i64 56}
!44 = !{!"_ZTSSt18condition_variable", !45, i64 0}
!45 = !{!"_ZTSSt9__condvar", !10, i64 0}
!46 = !{!"_ZTSN7DynexCN18BlockchainExplorer15PoolUpdateGuardE", !47, i64 0}
!47 = !{!"_ZTSSt6atomicIN7DynexCN18BlockchainExplorer15PoolUpdateGuard5StateEE", !48, i64 0}
!48 = !{!"_ZTSN7DynexCN18BlockchainExplorer15PoolUpdateGuard5StateE", !10, i64 0}
!49 = !{!14, !14, i64 0}
!50 = !{!10, !10, i64 0}
!51 = !{!6, !21, i64 448}
!52 = distinct !{!52, !53}
!53 = !{!"llvm.loop.mustprogress"}
!54 = !{!55, !21, i64 0}
!55 = !{!"_ZTSZN7DynexCN18BlockchainExplorer22localBlockchainUpdatedEjE3$_0", !21, i64 0, !56, i64 8, !59, i64 24}
!56 = !{!"_ZTSSt10shared_ptrISt6vectorIjSaIjEEE", !57, i64 0}
!57 = !{!"_ZTSSt12__shared_ptrISt6vectorIjSaIjEELN9__gnu_cxx12_Lock_policyE2EE", !21, i64 0, !58, i64 8}
!58 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !21, i64 0}
!59 = !{!"_ZTSSt10shared_ptrISt6vectorIS0_IN7DynexCN12BlockDetailsESaIS2_EESaIS4_EEE", !60, i64 0}
!60 = !{!"_ZTSSt12__shared_ptrISt6vectorIS0_IN7DynexCN12BlockDetailsESaIS2_EESaIS4_EELN9__gnu_cxx12_Lock_policyE2EE", !21, i64 0, !58, i64 8}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass