; LLVM IR from dynexcoin/Dynex :: src/WalletLegacy (WalletTransactionSender)

; 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::shared_ptr.74" = type { %"class.std::__shared_ptr.75" }
%"class.std::__shared_ptr.75" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"struct.std::_List_const_iterator" = type { ptr }
%"struct.DynexCN::TransactionOutputInformation" = type { i8, i64, i32, i32, %"struct.Crypto::Hash", %"struct.Crypto::PublicKey", %union.anon.122 }
%"struct.Crypto::Hash" = type { [32 x i8] }
%"struct.Crypto::PublicKey" = type { [32 x i8] }
%union.anon.122 = type { i32, [28 x i8] }
%"struct.DynexCN::SendTransactionContext" = type { i64, %"class.std::vector.77", i64, %"class.std::__cxx11::list", %"struct.DynexCN::TxDustPolicy", i64, %"struct.Crypto::SecretKey" }
%"class.std::vector.77" = type { %"struct.std::_Vector_base.78" }
%"struct.std::_Vector_base.78" = type { %"struct.std::_Vector_base<DynexCN::COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_outs_for_amount, std::allocator<DynexCN::COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_outs_for_amount>>::_Vector_impl" }
%"struct.std::_Vector_base<DynexCN::COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_outs_for_amount, std::allocator<DynexCN::COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_outs_for_amount>>::_Vector_impl" = type { %"struct.std::_Vector_base<DynexCN::COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_outs_for_amount, std::allocator<DynexCN::COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_outs_for_amount>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DynexCN::COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_outs_for_amount, std::allocator<DynexCN::COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_outs_for_amount>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<DynexCN::TransactionOutputInformation, std::allocator<DynexCN::TransactionOutputInformation>>::_List_impl" }
%"struct.std::__cxx11::_List_base<DynexCN::TransactionOutputInformation, std::allocator<DynexCN::TransactionOutputInformation>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%"struct.DynexCN::TxDustPolicy" = type <{ i64, i8, %"struct.DynexCN::AccountPublicAddress", [7 x i8] }>
%"struct.DynexCN::AccountPublicAddress" = type { %"struct.Crypto::PublicKey", %"struct.Crypto::PublicKey" }
%"struct.Crypto::SecretKey" = type { [32 x i8] }
%"class.DynexCN::WalletTransactionSender" = type { ptr, %"struct.DynexCN::AccountKeys", ptr, i64, i8, ptr }
%"struct.DynexCN::AccountKeys" = type { %"struct.DynexCN::AccountPublicAddress", %"struct.Crypto::SecretKey", %"struct.Crypto::SecretKey" }

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7DynexCN23WalletTransactionSender26validateTransfersAddressesERKSt6vectorINS_20WalletLegacyTransferESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7DynexCN7throwIfEbNS_5error16WalletErrorCodesE(i1 noundef zeroext, i32 noundef) #2

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i64 @_ZN12_GLOBAL__N_116countNeededMoneyEmRKSt6vectorIN7DynexCN20WalletLegacyTransferESaIS2_EE(i64 noundef, ptr noundef nonnull align 8 dereferenceable(24)) #1

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

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

declare noundef i64 @_ZN7DynexCN27WalletUserTransactionsCache17addNewTransactionEmmRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorINS_20WalletLegacyTransferESaISA_EEm(ptr noundef nonnull align 8 dereferenceable(224), i64 noundef, i64 noundef, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7DynexCN23WalletTransactionSender24makeGetRandomOutsRequestESt10shared_ptrINS_22SendTransactionContextEE(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(168), ptr noundef) #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7DynexCN23WalletTransactionSender17doSendTransactionESt10shared_ptrINS_22SendTransactionContextEERSt5dequeIS1_INS_17WalletLegacyEventEESaIS6_EE(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(168), ptr noundef, ptr noundef nonnull align 8 dereferenceable(80)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7DynexCN23WalletTransactionSender21makeSendFusionRequestERmRSt5dequeISt10shared_ptrINS_17WalletLegacyEventEESaIS5_EERKSt6vectorINS_20WalletLegacyTransferESaISA_EERKNSt7__cxx114listINS_28TransactionOutputInformationESaISH_EEEmRKNSF_12basic_stringIcSt11char_traitsIcESaIcEEEmm(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr") align 8 %0, ptr noundef nonnull align 8 dereferenceable(168) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(80) %3, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %6, ptr noundef nonnull align 8 dereferenceable(32) %7, i64 noundef %8, i64 noundef %9) #1 align 2 personality ptr @__gxx_personality_v0 {
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i64, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca %"class.std::shared_ptr.74", align 8
  %23 = alloca ptr, align 8
  %24 = alloca %"struct.std::_List_const_iterator", align 8
  %25 = alloca %"struct.std::_List_const_iterator", align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca i32, align 4
  %29 = alloca i1, align 1
  %30 = alloca %"class.std::shared_ptr.74", align 8
  %31 = alloca i32, align 4
  %32 = alloca %"class.std::shared_ptr.74", align 8
  store ptr %0, ptr %11, align 8
  store ptr %1, ptr %12, align 8, !tbaa !5
  store ptr %2, ptr %13, align 8, !tbaa !5
  store ptr %3, ptr %14, align 8, !tbaa !5
  store ptr %4, ptr %15, align 8, !tbaa !5
  store ptr %5, ptr %16, align 8, !tbaa !5
  store i64 %6, ptr %17, align 8, !tbaa !9
  store ptr %7, ptr %18, align 8, !tbaa !5
  store i64 %8, ptr %19, align 8, !tbaa !9
  store i64 %9, ptr %20, align 8, !tbaa !9
  %33 = load ptr, ptr %12, align 8
  %34 = load ptr, ptr %15, align 8, !tbaa !5
  %35 = call noundef zeroext i1 @_ZNKSt6vectorIN7DynexCN20WalletLegacyTransferESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %34) #5
  call void @_ZN7DynexCN7throwIfEbNS_5error16WalletErrorCodesE(i1 noundef zeroext %35, i32 noundef 11)
  %36 = load ptr, ptr %15, align 8, !tbaa !5
  call void @_ZN7DynexCN23WalletTransactionSender26validateTransfersAddressesERKSt6vectorINS_20WalletLegacyTransferESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(168) %33, ptr noundef nonnull align 8 dereferenceable(24) %36)
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %37 = load i64, ptr %17, align 8, !tbaa !9
  %38 = load ptr, ptr %15, align 8, !tbaa !5
  %39 = call noundef i64 @_ZN12_GLOBAL__N_116countNeededMoneyEmRKSt6vectorIN7DynexCN20WalletLegacyTransferESaIS2_EE(i64 noundef %37, ptr noundef nonnull align 8 dereferenceable(24) %38)
  store i64 %39, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #5
  call void @_ZSt11make_sharedIN7DynexCN22SendTransactionContextEJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES4_E4typeEEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.74") align 8 %22)
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %40 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %40, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  %41 = load ptr, ptr %23, align 8, !tbaa !5
  %42 = call ptr @_ZNKSt7__cxx114listIN7DynexCN28TransactionOutputInformationESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %41) #5
  %43 = getelementptr inbounds %"struct.std::_List_const_iterator", ptr %24, i32 0, i32 0
  store ptr %42, ptr %43, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  %44 = load ptr, ptr %23, align 8, !tbaa !5
  %45 = call ptr @_ZNKSt7__cxx114listIN7DynexCN28TransactionOutputInformationESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %44) #5
  %46 = getelementptr inbounds %"struct.std::_List_const_iterator", ptr %25, i32 0, i32 0
  store ptr %45, ptr %46, align 8
  br label %47

47:                                               ; preds = %59, %10
  %48 = call noundef zeroext i1 @_ZStneRKSt20_List_const_iteratorIN7DynexCN28TransactionOutputInformationEES4_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %25) #5
  br i1 %48, label %50, label %49

49:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  br label %61

50:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  %51 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNKSt20_List_const_iteratorIN7DynexCN28TransactionOutputInformationEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #5
  store ptr %51, ptr %26, align 8, !tbaa !5
  %52 = load ptr, ptr %26, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.DynexCN::TransactionOutputInformation", ptr %52, i32 0, i32 1
  %54 = load i64, ptr %53, align 8, !tbaa !11
  %55 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN7DynexCN22SendTransactionContextELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %22) #5
  %56 = getelementptr inbounds %"struct.DynexCN::SendTransactionContext", ptr %55, i32 0, i32 2
  %57 = load i64, ptr %56, align 8, !tbaa !17
  %58 = add i64 %57, %54
  store i64 %58, ptr %56, align 8, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  br label %59

59:                                               ; preds = %50
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt20_List_const_iteratorIN7DynexCN28TransactionOutputInformationEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #5
  br label %47

61:                                               ; preds = %49
  %62 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN7DynexCN22SendTransactionContextELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %22) #5
  %63 = getelementptr inbounds %"struct.DynexCN::SendTransactionContext", ptr %62, i32 0, i32 2
  %64 = load i64, ptr %63, align 8, !tbaa !17
  %65 = load i64, ptr %21, align 8, !tbaa !9
  %66 = icmp ult i64 %64, %65
  invoke void @_ZN7DynexCN7throwIfEbNS_5error16WalletErrorCodesE(i1 noundef zeroext %66, i32 noundef 9)
          to label %67 unwind label %97

67:                                               ; preds = %61
  %68 = load ptr, ptr %16, align 8, !tbaa !5
  %69 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN7DynexCN22SendTransactionContextELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %22) #5
  %70 = getelementptr inbounds %"struct.DynexCN::SendTransactionContext", ptr %69, i32 0, i32 3
  %71 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt7__cxx114listIN7DynexCN28TransactionOutputInformationESaIS2_EEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %70, ptr noundef nonnull align 8 dereferenceable(24) %68)
          to label %72 unwind label %97

72:                                               ; preds = %67
  %73 = getelementptr inbounds %"class.DynexCN::WalletTransactionSender", ptr %33, i32 0, i32 2
  %74 = load ptr, ptr %73, align 8, !tbaa !32
  %75 = load i64, ptr %21, align 8, !tbaa !9
  %76 = load i64, ptr %17, align 8, !tbaa !9
  %77 = load ptr, ptr %18, align 8, !tbaa !5
  %78 = load ptr, ptr %15, align 8, !tbaa !5
  %79 = load i64, ptr %20, align 8, !tbaa !9
  %80 = invoke noundef i64 @_ZN7DynexCN27WalletUserTransactionsCache17addNewTransactionEmmRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorINS_20WalletLegacyTransferESaISA_EEm(ptr noundef nonnull align 8 dereferenceable(224) %74, i64 noundef %75, i64 noundef %76, ptr noundef nonnull align 8 dereferenceable(32) %77, ptr noundef nonnull align 8 dereferenceable(24) %78, i64 noundef %79)
          to label %81 unwind label %97

81:                                               ; preds = %72
  %82 = load ptr, ptr %13, align 8, !tbaa !5
  store i64 %80, ptr %82, align 8, !tbaa !9
  %83 = load ptr, ptr %13, align 8, !tbaa !5
  %84 = load i64, ptr %83, align 8, !tbaa !9
  %85 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN7DynexCN22SendTransactionContextELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %22) #5
  %86 = getelementptr inbounds %"struct.DynexCN::SendTransactionContext", ptr %85, i32 0, i32 0
  store i64 %84, ptr %86, align 8, !tbaa !35
  %87 = load i64, ptr %19, align 8, !tbaa !9
  %88 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN7DynexCN22SendTransactionContextELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %22) #5
  %89 = getelementptr inbounds %"struct.DynexCN::SendTransactionContext", ptr %88, i32 0, i32 5
  store i64 %87, ptr %89, align 8, !tbaa !36
  %90 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN7DynexCN22SendTransactionContextELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %22) #5
  %91 = getelementptr inbounds %"struct.DynexCN::SendTransactionContext", ptr %90, i32 0, i32 5
  %92 = load i64, ptr %91, align 8, !tbaa !36
  %93 = icmp ne i64 %92, 0
  br i1 %93, label %94, label %107

94:                                               ; preds = %81
  store i1 false, ptr %29, align 1
  call void @_ZNSt10shared_ptrIN7DynexCN22SendTransactionContextEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 8 dereferenceable(16) %22) #5
  invoke void @_ZN7DynexCN23WalletTransactionSender24makeGetRandomOutsRequestESt10shared_ptrINS_22SendTransactionContextEE(ptr dead_on_unwind writable sret(%"class.std::shared_ptr") align 8 %0, ptr noundef nonnull align 8 dereferenceable(168) %33, ptr noundef %30)
          to label %95 unwind label %101

95:                                               ; preds = %94
  call void @_ZNSt12__shared_ptrIN7DynexCN22SendTransactionContextELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %30) #5
  store i1 true, ptr %29, align 1
  store i32 1, ptr %31, align 4
  %96 = load i1, ptr %29, align 1
  br i1 %96, label %106, label %105

97:                                               ; preds = %72, %67, %61
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %27, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %28, align 4
  br label %115

101:                                              ; preds = %94
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %27, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %28, align 4
  call void @_ZNSt12__shared_ptrIN7DynexCN22SendTransactionContextELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %30) #5
  br label %115

105:                                              ; preds = %95
  call void @_ZNSt12__shared_ptrIN7DynexCN13WalletRequestELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #5
  br label %106

106:                                              ; preds = %105, %95
  br label %114

107:                                              ; preds = %81
  call void @_ZNSt10shared_ptrIN7DynexCN22SendTransactionContextEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef nonnull align 8 dereferenceable(16) %22) #5
  %108 = load ptr, ptr %14, align 8, !tbaa !5
  invoke void @_ZN7DynexCN23WalletTransactionSender17doSendTransactionESt10shared_ptrINS_22SendTransactionContextEERSt5dequeIS1_INS_17WalletLegacyEventEESaIS6_EE(ptr dead_on_unwind writable sret(%"class.std::shared_ptr") align 8 %0, ptr noundef nonnull align 8 dereferenceable(168) %33, ptr noundef %32, ptr noundef nonnull align 8 dereferenceable(80) %108)
          to label %109 unwind label %110

109:                                              ; preds = %107
  call void @_ZNSt12__shared_ptrIN7DynexCN22SendTransactionContextELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %32) #5
  store i32 1, ptr %31, align 4
  br label %114

110:                                              ; preds = %107
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %27, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %28, align 4
  call void @_ZNSt12__shared_ptrIN7DynexCN22SendTransactionContextELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %32) #5
  br label %115

114:                                              ; preds = %109, %106
  call void @_ZNSt12__shared_ptrIN7DynexCN22SendTransactionContextELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  ret void

115:                                              ; preds = %110, %101, %97
  call void @_ZNSt12__shared_ptrIN7DynexCN22SendTransactionContextELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %116

116:                                              ; preds = %115
  %117 = load ptr, ptr %27, align 8
  %118 = load i32, ptr %28, align 4
  %119 = insertvalue { ptr, i32 } poison, ptr %117, 0
  %120 = insertvalue { ptr, i32 } %119, i32 %118, 1
  resume { ptr, i32 } %120
}

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

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"_ZTSN7DynexCN28TransactionOutputInformationE", !13, i64 0, !10, i64 8, !14, i64 16, !14, i64 20, !15, i64 24, !16, i64 56, !7, i64 88}
!13 = !{!"_ZTSN7DynexCN16TransactionTypes10OutputTypeE", !7, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!"_ZTSN6Crypto4HashE", !7, i64 0}
!16 = !{!"_ZTSN6Crypto9PublicKeyE", !7, i64 0}
!17 = !{!18, !10, i64 32}
!18 = !{!"_ZTSN7DynexCN22SendTransactionContextE", !10, i64 0, !19, i64 8, !10, i64 32, !23, i64 40, !28, i64 64, !10, i64 144, !31, i64 152}
!19 = !{!"_ZTSSt6vectorIN7DynexCN58COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_outs_for_amountESaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIN7DynexCN58COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_outs_for_amountESaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN7DynexCN58COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_outs_for_amountESaIS1_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN7DynexCN58COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_outs_for_amountESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!"_ZTSNSt7__cxx114listIN7DynexCN28TransactionOutputInformationESaIS2_EEE", !24, i64 0}
!24 = !{!"_ZTSNSt7__cxx1110_List_baseIN7DynexCN28TransactionOutputInformationESaIS2_EEE", !25, i64 0}
!25 = !{!"_ZTSNSt7__cxx1110_List_baseIN7DynexCN28TransactionOutputInformationESaIS2_EE10_List_implE", !26, i64 0}
!26 = !{!"_ZTSNSt8__detail17_List_node_headerE", !27, i64 0, !10, i64 16}
!27 = !{!"_ZTSNSt8__detail15_List_node_baseE", !6, i64 0, !6, i64 8}
!28 = !{!"_ZTSN7DynexCN12TxDustPolicyE", !10, i64 0, !29, i64 8, !30, i64 9}
!29 = !{!"bool", !7, i64 0}
!30 = !{!"_ZTSN7DynexCN20AccountPublicAddressE", !16, i64 0, !16, i64 32}
!31 = !{!"_ZTSN6Crypto9SecretKeyE", !7, i64 0}
!32 = !{!33, !6, i64 136}
!33 = !{!"_ZTSN7DynexCN23WalletTransactionSenderE", !6, i64 0, !34, i64 8, !6, i64 136, !10, i64 144, !29, i64 152, !6, i64 160}
!34 = !{!"_ZTSN7DynexCN11AccountKeysE", !30, i64 0, !31, i64 64, !31, i64 96}
!35 = !{!18, !10, i64 0}
!36 = !{!18, !10, i64 144}


; 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::shared_ptr.74" = type { %"class.std::__shared_ptr.75" }
%"class.std::__shared_ptr.75" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"struct.std::_List_const_iterator" = 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7DynexCN23WalletTransactionSender26validateTransfersAddressesERKSt6vectorINS_20WalletLegacyTransferESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7DynexCN7throwIfEbNS_5error16WalletErrorCodesE(i1 noundef zeroext, i32 noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i64 @_ZN12_GLOBAL__N_116countNeededMoneyEmRKSt6vectorIN7DynexCN20WalletLegacyTransferESaIS2_EE(i64 noundef, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

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

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

declare noundef i64 @_ZN7DynexCN27WalletUserTransactionsCache17addNewTransactionEmmRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorINS_20WalletLegacyTransferESaISA_EEm(ptr noundef nonnull align 8 dereferenceable(224), i64 noundef, i64 noundef, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7DynexCN23WalletTransactionSender24makeGetRandomOutsRequestESt10shared_ptrINS_22SendTransactionContextEE(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(168), ptr noundef) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7DynexCN23WalletTransactionSender17doSendTransactionESt10shared_ptrINS_22SendTransactionContextEERSt5dequeIS1_INS_17WalletLegacyEventEESaIS6_EE(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(168), ptr noundef, ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7DynexCN23WalletTransactionSender21makeSendFusionRequestERmRSt5dequeISt10shared_ptrINS_17WalletLegacyEventEESaIS5_EERKSt6vectorINS_20WalletLegacyTransferESaISA_EERKNSt7__cxx114listINS_28TransactionOutputInformationESaISH_EEEmRKNSF_12basic_stringIcSt11char_traitsIcESaIcEEEmm(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr") align 8 %0, ptr noundef nonnull align 8 dereferenceable(168) %1, ptr nocapture noundef nonnull writeonly align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(80) %3, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %6, ptr noundef nonnull align 8 dereferenceable(32) %7, i64 noundef %8, i64 noundef %9) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %11 = alloca %"class.std::shared_ptr.74", align 8
  %12 = alloca %"struct.std::_List_const_iterator", align 8
  %13 = alloca %"struct.std::_List_const_iterator", align 8
  %14 = alloca %"class.std::shared_ptr.74", align 8
  %15 = alloca %"class.std::shared_ptr.74", align 8
  %16 = tail call noundef zeroext i1 @_ZNKSt6vectorIN7DynexCN20WalletLegacyTransferESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  tail call void @_ZN7DynexCN7throwIfEbNS_5error16WalletErrorCodesE(i1 noundef zeroext %16, i32 noundef 11)
  tail call void @_ZN7DynexCN23WalletTransactionSender26validateTransfersAddressesERKSt6vectorINS_20WalletLegacyTransferESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(168) %1, ptr noundef nonnull align 8 dereferenceable(24) %4)
  %17 = tail call noundef i64 @_ZN12_GLOBAL__N_116countNeededMoneyEmRKSt6vectorIN7DynexCN20WalletLegacyTransferESaIS2_EE(i64 noundef %6, ptr noundef nonnull align 8 dereferenceable(24) %4)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #5
  call void @_ZSt11make_sharedIN7DynexCN22SendTransactionContextEJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES4_E4typeEEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.74") align 8 %11)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %18 = call ptr @_ZNKSt7__cxx114listIN7DynexCN28TransactionOutputInformationESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  store ptr %18, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #5
  %19 = call ptr @_ZNKSt7__cxx114listIN7DynexCN28TransactionOutputInformationESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  store ptr %19, ptr %13, align 8
  %20 = call noundef zeroext i1 @_ZStneRKSt20_List_const_iteratorIN7DynexCN28TransactionOutputInformationEES4_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  br i1 %20, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  %21 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN7DynexCN22SendTransactionContextELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
  %22 = getelementptr inbounds i8, ptr %21, i64 32
  %23 = load i64, ptr %22, align 8, !tbaa !5
  %24 = icmp ult i64 %23, %17
  invoke void @_ZN7DynexCN7throwIfEbNS_5error16WalletErrorCodesE(i1 noundef zeroext %24, i32 noundef 9)
          to label %34 unwind label %50

.lr.ph:                                           ; preds = %10, %.lr.ph
  %25 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNKSt20_List_const_iteratorIN7DynexCN28TransactionOutputInformationEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  %26 = getelementptr inbounds i8, ptr %25, i64 8
  %27 = load i64, ptr %26, align 8, !tbaa !25
  %28 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN7DynexCN22SendTransactionContextELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
  %29 = getelementptr inbounds i8, ptr %28, i64 32
  %30 = load i64, ptr %29, align 8, !tbaa !5
  %31 = add i64 %30, %27
  store i64 %31, ptr %29, align 8, !tbaa !5
  %32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt20_List_const_iteratorIN7DynexCN28TransactionOutputInformationEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  %33 = call noundef zeroext i1 @_ZStneRKSt20_List_const_iteratorIN7DynexCN28TransactionOutputInformationEES4_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  br i1 %33, label %.lr.ph, label %._crit_edge

34:                                               ; preds = %._crit_edge
  %35 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN7DynexCN22SendTransactionContextELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
  %36 = getelementptr inbounds i8, ptr %35, i64 40
  %37 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt7__cxx114listIN7DynexCN28TransactionOutputInformationESaIS2_EEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %36, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %38 unwind label %50

38:                                               ; preds = %34
  %39 = getelementptr inbounds i8, ptr %1, i64 136
  %40 = load ptr, ptr %39, align 8, !tbaa !30
  %41 = invoke noundef i64 @_ZN7DynexCN27WalletUserTransactionsCache17addNewTransactionEmmRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorINS_20WalletLegacyTransferESaISA_EEm(ptr noundef nonnull align 8 dereferenceable(224) %40, i64 noundef %17, i64 noundef %6, ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %9)
          to label %42 unwind label %50

42:                                               ; preds = %38
  store i64 %41, ptr %2, align 8, !tbaa !33
  %43 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN7DynexCN22SendTransactionContextELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
  store i64 %41, ptr %43, align 8, !tbaa !34
  %44 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN7DynexCN22SendTransactionContextELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
  %45 = getelementptr inbounds i8, ptr %44, i64 144
  store i64 %8, ptr %45, align 8, !tbaa !35
  %46 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN7DynexCN22SendTransactionContextELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
  %47 = getelementptr inbounds i8, ptr %46, i64 144
  %48 = load i64, ptr %47, align 8, !tbaa !35
  %.not = icmp eq i64 %48, 0
  br i1 %.not, label %54, label %49

49:                                               ; preds = %42
  call void @_ZNSt10shared_ptrIN7DynexCN22SendTransactionContextEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(16) %11) #5
  invoke void @_ZN7DynexCN23WalletTransactionSender24makeGetRandomOutsRequestESt10shared_ptrINS_22SendTransactionContextEE(ptr dead_on_unwind writable sret(%"class.std::shared_ptr") align 8 %0, ptr noundef nonnull align 8 dereferenceable(168) %1, ptr noundef nonnull %14)
          to label %57 unwind label %52

50:                                               ; preds = %38, %34, %._crit_edge
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %58

52:                                               ; preds = %49
  %53 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN7DynexCN22SendTransactionContextELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #5
  br label %58

54:                                               ; preds = %42
  call void @_ZNSt10shared_ptrIN7DynexCN22SendTransactionContextEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %11) #5
  invoke void @_ZN7DynexCN23WalletTransactionSender17doSendTransactionESt10shared_ptrINS_22SendTransactionContextEERSt5dequeIS1_INS_17WalletLegacyEventEESaIS6_EE(ptr dead_on_unwind writable sret(%"class.std::shared_ptr") align 8 %0, ptr noundef nonnull align 8 dereferenceable(168) %1, ptr noundef nonnull %15, ptr noundef nonnull align 8 dereferenceable(80) %3)
          to label %57 unwind label %55

55:                                               ; preds = %54
  %56 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN7DynexCN22SendTransactionContextELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #5
  br label %58

57:                                               ; preds = %54, %49
  %.sink = phi ptr [ %14, %49 ], [ %15, %54 ]
  call void @_ZNSt12__shared_ptrIN7DynexCN22SendTransactionContextELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %.sink) #5
  call void @_ZNSt12__shared_ptrIN7DynexCN22SendTransactionContextELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #5
  ret void

58:                                               ; preds = %55, %52, %50
  %.pn = phi { ptr, i32 } [ %53, %52 ], [ %56, %55 ], [ %51, %50 ]
  call void @_ZNSt12__shared_ptrIN7DynexCN22SendTransactionContextELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #5
  resume { ptr, i32 } %.pn
}

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

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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, !7, i64 32}
!6 = !{!"_ZTSN7DynexCN22SendTransactionContextE", !7, i64 0, !10, i64 8, !7, i64 32, !15, i64 40, !20, i64 64, !7, i64 144, !24, i64 152}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt6vectorIN7DynexCN58COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_outs_for_amountESaIS1_EE", !11, i64 0}
!11 = !{!"_ZTSSt12_Vector_baseIN7DynexCN58COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_outs_for_amountESaIS1_EE", !12, i64 0}
!12 = !{!"_ZTSNSt12_Vector_baseIN7DynexCN58COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_outs_for_amountESaIS1_EE12_Vector_implE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIN7DynexCN58COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_outs_for_amountESaIS1_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"_ZTSNSt7__cxx114listIN7DynexCN28TransactionOutputInformationESaIS2_EEE", !16, i64 0}
!16 = !{!"_ZTSNSt7__cxx1110_List_baseIN7DynexCN28TransactionOutputInformationESaIS2_EEE", !17, i64 0}
!17 = !{!"_ZTSNSt7__cxx1110_List_baseIN7DynexCN28TransactionOutputInformationESaIS2_EE10_List_implE", !18, i64 0}
!18 = !{!"_ZTSNSt8__detail17_List_node_headerE", !19, i64 0, !7, i64 16}
!19 = !{!"_ZTSNSt8__detail15_List_node_baseE", !14, i64 0, !14, i64 8}
!20 = !{!"_ZTSN7DynexCN12TxDustPolicyE", !7, i64 0, !21, i64 8, !22, i64 9}
!21 = !{!"bool", !8, i64 0}
!22 = !{!"_ZTSN7DynexCN20AccountPublicAddressE", !23, i64 0, !23, i64 32}
!23 = !{!"_ZTSN6Crypto9PublicKeyE", !8, i64 0}
!24 = !{!"_ZTSN6Crypto9SecretKeyE", !8, i64 0}
!25 = !{!26, !7, i64 8}
!26 = !{!"_ZTSN7DynexCN28TransactionOutputInformationE", !27, i64 0, !7, i64 8, !28, i64 16, !28, i64 20, !29, i64 24, !23, i64 56, !8, i64 88}
!27 = !{!"_ZTSN7DynexCN16TransactionTypes10OutputTypeE", !8, i64 0}
!28 = !{!"int", !8, i64 0}
!29 = !{!"_ZTSN6Crypto4HashE", !8, i64 0}
!30 = !{!31, !14, i64 136}
!31 = !{!"_ZTSN7DynexCN23WalletTransactionSenderE", !14, i64 0, !32, i64 8, !14, i64 136, !7, i64 144, !21, i64 152, !14, i64 160}
!32 = !{!"_ZTSN7DynexCN11AccountKeysE", !22, i64 0, !24, i64 64, !24, i64 96}
!33 = !{!7, !7, i64 0}
!34 = !{!6, !7, i64 0}
!35 = !{!6, !7, i64 144}


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