; LLVM IR from dynexcoin/Dynex :: src/Transfers (TransfersConsumer)

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

%"struct.Crypto::Hash" = type { [32 x i8] }
%"struct.std::__detail::_Node_iterator.99" = type { %"struct.std::__detail::_Node_iterator_base.100" }
%"struct.std::__detail::_Node_iterator_base.100" = type { ptr }
%"class.DynexCN::IObservableImpl" = type { %"class.DynexCN::IBlockchainConsumer", %"class.Tools::ObserverManager" }
%"class.DynexCN::IBlockchainConsumer" = type { %"class.DynexCN::IObservable" }
%"class.DynexCN::IObservable" = type { ptr }
%"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::IBlockchainConsumerObserver *, std::allocator<DynexCN::IBlockchainConsumerObserver *>>::_Vector_impl" }
%"struct.std::_Vector_base<DynexCN::IBlockchainConsumerObserver *, std::allocator<DynexCN::IBlockchainConsumerObserver *>>::_Vector_impl" = type { %"struct.std::_Vector_base<DynexCN::IBlockchainConsumerObserver *, std::allocator<DynexCN::IBlockchainConsumerObserver *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DynexCN::IBlockchainConsumerObserver *, std::allocator<DynexCN::IBlockchainConsumerObserver *>>::_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.DynexCN::TransfersConsumer" = type { %"class.DynexCN::IObservableImpl", %"struct.DynexCN::SynchronizationStart", %"struct.Crypto::SecretKey", %"class.std::unordered_map", %"class.std::unordered_set.6", %"class.std::unordered_set", ptr, ptr, %"class.Logging::LoggerRef" }
%"struct.DynexCN::SynchronizationStart" = type { i64, i64 }
%"struct.Crypto::SecretKey" = type { [32 x i8] }
%"class.std::unordered_map" = type { %"class.std::_Hashtable.28" }
%"class.std::_Hashtable.28" = 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 }
%"class.std::unordered_set.6" = type { %"class.std::_Hashtable.7" }
%"class.std::_Hashtable.7" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", 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 }
%"class.Logging::LoggerRef" = type { ptr, %"class.std::__cxx11::basic_string" }
%"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::pair.101" = type { %"struct.Crypto::PublicKey", %"class.std::unique_ptr" }
%"struct.Crypto::PublicKey" = type { [32 x i8] }
%"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.71" }
%"struct.std::_Head_base.71" = type { ptr }

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Tools15ObserverManagerIN7DynexCN27IBlockchainConsumerObserverEE6notifyIMS2_FvPNS1_19IBlockchainConsumerEN6Crypto4HashEEJPNS1_17TransfersConsumerES8_EEEvT_DpT0_(ptr noundef nonnull align 8 dereferenceable(64), i64, i64, ptr noundef, ptr noundef byval(%"struct.Crypto::Hash") align 8) #3 align 2

declare void @_ZN7DynexCN21TransfersSubscription28deleteUnconfirmedTransactionERKN6Crypto4HashE(ptr noundef nonnull align 8 dereferenceable(920), ptr noundef nonnull align 1 dereferenceable(32)) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7DynexCN17TransfersConsumer28removeUnconfirmedTransactionERKN6Crypto4HashE(ptr noundef nonnull align 8 dereferenceable(344) %0, ptr noundef nonnull align 1 dereferenceable(32) %1) unnamed_addr #3 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.Crypto::Hash", align 8
  %6 = alloca { i64, i64 }, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"struct.std::__detail::_Node_iterator.99", align 8
  %9 = alloca %"struct.std::__detail::_Node_iterator.99", align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"struct.Crypto::Hash", align 8
  %12 = alloca { i64, i64 }, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %13 = load ptr, ptr %3, align 8
  %14 = getelementptr inbounds %"class.DynexCN::IObservableImpl", ptr %13, i32 0, i32 1
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %5, ptr align 1 %15, i64 32, i1 false), !tbaa.struct !9
  store { i64, i64 } { i64 17, i64 0 }, ptr %6, align 8, !tbaa !10
  %16 = getelementptr inbounds { i64, i64 }, ptr %6, i32 0, i32 0
  %17 = load i64, ptr %16, align 8
  %18 = getelementptr inbounds { i64, i64 }, ptr %6, i32 0, i32 1
  %19 = load i64, ptr %18, align 8
  call void @_ZN5Tools15ObserverManagerIN7DynexCN27IBlockchainConsumerObserverEE6notifyIMS2_FvPNS1_19IBlockchainConsumerEN6Crypto4HashEEJPNS1_17TransfersConsumerES8_EEEvT_DpT0_(ptr noundef nonnull align 8 dereferenceable(64) %14, i64 %17, i64 %19, ptr noundef %13, ptr noundef byval(%"struct.Crypto::Hash") align 8 %5)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %20 = getelementptr inbounds %"class.DynexCN::TransfersConsumer", ptr %13, i32 0, i32 3
  store ptr %20, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %21 = load ptr, ptr %7, align 8, !tbaa !5
  %22 = call ptr @_ZNSt13unordered_mapIN6Crypto9PublicKeyESt10unique_ptrIN7DynexCN21TransfersSubscriptionESt14default_deleteIS4_EESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S7_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %21) #5
  %23 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.99", ptr %8, i32 0, i32 0
  %24 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.100", ptr %23, i32 0, i32 0
  store ptr %22, ptr %24, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = call ptr @_ZNSt13unordered_mapIN6Crypto9PublicKeyESt10unique_ptrIN7DynexCN21TransfersSubscriptionESt14default_deleteIS4_EESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S7_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %25) #5
  %27 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.99", ptr %9, i32 0, i32 0
  %28 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.100", ptr %27, i32 0, i32 0
  store ptr %26, ptr %28, align 8
  br label %29

29:                                               ; preds = %38, %2
  %30 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKN6Crypto9PublicKeyESt10unique_ptrIN7DynexCN21TransfersSubscriptionESt14default_deleteIS7_EEELb1EEESE_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  br i1 %30, label %32, label %31

31:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %40

32:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %33 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKN6Crypto9PublicKeyESt10unique_ptrIN7DynexCN21TransfersSubscriptionESt14default_deleteIS7_EEELb0ELb1EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  store ptr %33, ptr %10, align 8, !tbaa !5
  %34 = load ptr, ptr %10, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.std::pair.101", ptr %34, i32 0, i32 1
  %36 = call noundef ptr @_ZNKSt10unique_ptrIN7DynexCN21TransfersSubscriptionESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #5
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN7DynexCN21TransfersSubscription28deleteUnconfirmedTransactionERKN6Crypto4HashE(ptr noundef nonnull align 8 dereferenceable(920) %36, ptr noundef nonnull align 1 dereferenceable(32) %37)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %38

38:                                               ; preds = %32
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKN6Crypto9PublicKeyESt10unique_ptrIN7DynexCN21TransfersSubscriptionESt14default_deleteIS7_EEELb0ELb1EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  br label %29

40:                                               ; preds = %31
  %41 = getelementptr inbounds %"class.DynexCN::IObservableImpl", ptr %13, i32 0, i32 1
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %11, ptr align 1 %42, i64 32, i1 false), !tbaa.struct !9
  store { i64, i64 } { i64 25, i64 0 }, ptr %12, align 8, !tbaa !10
  %43 = getelementptr inbounds { i64, i64 }, ptr %12, i32 0, i32 0
  %44 = load i64, ptr %43, align 8
  %45 = getelementptr inbounds { i64, i64 }, ptr %12, i32 0, i32 1
  %46 = load i64, ptr %45, align 8
  call void @_ZN5Tools15ObserverManagerIN7DynexCN27IBlockchainConsumerObserverEE6notifyIMS2_FvPNS1_19IBlockchainConsumerEN6Crypto4HashEEJPNS1_17TransfersConsumerES8_EEEvT_DpT0_(ptr noundef nonnull align 8 dereferenceable(64) %41, i64 %44, i64 %46, ptr noundef %13, ptr noundef byval(%"struct.Crypto::Hash") align 8 %11)
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { "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 }

!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 = !{i64 0, i64 32, !10}
!10 = !{!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"

%"struct.Crypto::Hash" = type { [32 x i8] }
%"struct.std::__detail::_Node_iterator.99" = type { %"struct.std::__detail::_Node_iterator_base.100" }
%"struct.std::__detail::_Node_iterator_base.100" = type { ptr }

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Tools15ObserverManagerIN7DynexCN27IBlockchainConsumerObserverEE6notifyIMS2_FvPNS1_19IBlockchainConsumerEN6Crypto4HashEEJPNS1_17TransfersConsumerES8_EEEvT_DpT0_(ptr noundef nonnull align 8 dereferenceable(64), i64, i64, ptr noundef, ptr noundef byval(%"struct.Crypto::Hash") align 8) local_unnamed_addr #3 align 2

declare void @_ZN7DynexCN21TransfersSubscription28deleteUnconfirmedTransactionERKN6Crypto4HashE(ptr noundef nonnull align 8 dereferenceable(920), ptr noundef nonnull align 1 dereferenceable(32)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7DynexCN17TransfersConsumer28removeUnconfirmedTransactionERKN6Crypto4HashE(ptr noundef nonnull align 8 dereferenceable(344) %0, ptr noundef nonnull align 1 dereferenceable(32) %1) unnamed_addr #3 align 2 {
  %3 = alloca %"struct.Crypto::Hash", align 8
  %4 = alloca %"struct.std::__detail::_Node_iterator.99", align 8
  %5 = alloca %"struct.std::__detail::_Node_iterator.99", align 8
  %6 = alloca %"struct.Crypto::Hash", align 8
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 1 dereferenceable(32) %1, i64 32, i1 false), !tbaa.struct !5
  tail call void @_ZN5Tools15ObserverManagerIN7DynexCN27IBlockchainConsumerObserverEE6notifyIMS2_FvPNS1_19IBlockchainConsumerEN6Crypto4HashEEJPNS1_17TransfersConsumerES8_EEEvT_DpT0_(ptr noundef nonnull align 8 dereferenceable(64) %7, i64 17, i64 0, ptr noundef nonnull %0, ptr noundef nonnull byval(%"struct.Crypto::Hash") align 8 %3)
  %8 = getelementptr inbounds i8, ptr %0, i64 120
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %9 = tail call ptr @_ZNSt13unordered_mapIN6Crypto9PublicKeyESt10unique_ptrIN7DynexCN21TransfersSubscriptionESt14default_deleteIS4_EESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S7_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %8) #5
  store ptr %9, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %10 = tail call ptr @_ZNSt13unordered_mapIN6Crypto9PublicKeyESt10unique_ptrIN7DynexCN21TransfersSubscriptionESt14default_deleteIS4_EESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S7_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %8) #5
  store ptr %10, ptr %5, align 8
  %11 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKN6Crypto9PublicKeyESt10unique_ptrIN7DynexCN21TransfersSubscriptionESt14default_deleteIS7_EEELb1EEESE_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  br i1 %11, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 1 dereferenceable(32) %1, i64 32, i1 false), !tbaa.struct !5
  call void @_ZN5Tools15ObserverManagerIN7DynexCN27IBlockchainConsumerObserverEE6notifyIMS2_FvPNS1_19IBlockchainConsumerEN6Crypto4HashEEJPNS1_17TransfersConsumerES8_EEEvT_DpT0_(ptr noundef nonnull align 8 dereferenceable(64) %7, i64 25, i64 0, ptr noundef nonnull %0, ptr noundef nonnull byval(%"struct.Crypto::Hash") align 8 %6)
  ret void

.lr.ph:                                           ; preds = %2, %.lr.ph
  %12 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKN6Crypto9PublicKeyESt10unique_ptrIN7DynexCN21TransfersSubscriptionESt14default_deleteIS7_EEELb0ELb1EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  %13 = getelementptr inbounds i8, ptr %12, i64 32
  %14 = call noundef ptr @_ZNKSt10unique_ptrIN7DynexCN21TransfersSubscriptionESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  call void @_ZN7DynexCN21TransfersSubscription28deleteUnconfirmedTransactionERKN6Crypto4HashE(ptr noundef nonnull align 8 dereferenceable(920) %14, ptr noundef nonnull align 1 dereferenceable(32) %1)
  %15 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKN6Crypto9PublicKeyESt10unique_ptrIN7DynexCN21TransfersSubscriptionESt14default_deleteIS7_EEELb0ELb1EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  %16 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKN6Crypto9PublicKeyESt10unique_ptrIN7DynexCN21TransfersSubscriptionESt14default_deleteIS7_EEELb1EEESE_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  br i1 %16, label %.lr.ph, label %._crit_edge
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { "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 }

!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 = !{i64 0, i64 32, !6}
!6 = !{!7, !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


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