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

%"struct.DynexCN::AccountPublicAddress" = type { %"struct.Crypto::PublicKey", %"struct.Crypto::PublicKey" }
%"struct.Crypto::PublicKey" = type { [32 x i8] }
%"class.std::error_code" = type { i32, ptr }
%class.anon.145 = type { ptr, ptr }
%class.anon.146 = type { ptr, ptr }
%class.anon.147 = type { ptr, ptr }
%class.anon.148 = type { ptr }
%"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" }
%"struct.Crypto::SecretKey" = type { [32 x i8] }
%"struct.DynexCN::WalletLegacyTransfer" = type { %"class.std::__cxx11::basic_string", i64 }
%"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.DynexCN::TransactionDestinationEntry" = type { i64, %"struct.DynexCN::AccountPublicAddress" }

@_ZTISt12system_error = external constant 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare i32 @__gxx_personality_v0(...)

declare noundef zeroext i1 @_ZNK7DynexCN8Currency25parseAccountAddressStringERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERNS_20AccountPublicAddressE(ptr noundef nonnull align 8 dereferenceable(984), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(64)) #1

declare ptr @__cxa_allocate_exception(i64)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local { i32, ptr } @_Z15make_error_codeN7DynexCN5error16WalletErrorCodesE(i32 noundef) #2

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

declare void @__cxa_free_exception(ptr)

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

declare void @__cxa_throw(ptr, ptr, ptr)

declare noundef nonnull align 8 dereferenceable(40) ptr @_ZN7DynexCN27WalletUserTransactionsCache11getTransferEm(ptr noundef nonnull align 8 dereferenceable(224), i64 noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7DynexCN23WalletTransactionSender18digitSplitStrategyEmmRKNS_27TransactionDestinationEntryEmRSt6vectorIS1_SaIS1_EERm(ptr noundef nonnull align 8 dereferenceable(168) %0, i64 noundef %1, i64 noundef %2, ptr noundef nonnull align 8 dereferenceable(72) %3, i64 noundef %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #3 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"struct.DynexCN::AccountPublicAddress", align 1
  %18 = alloca %"class.std::error_code", align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca %class.anon.145, align 8
  %22 = alloca %class.anon.146, align 8
  %23 = alloca %class.anon.147, align 8
  %24 = alloca %class.anon.148, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i64 %1, ptr %9, align 8, !tbaa !9
  store i64 %2, ptr %10, align 8, !tbaa !9
  store ptr %3, ptr %11, align 8, !tbaa !5
  store i64 %4, ptr %12, align 8, !tbaa !9
  store ptr %5, ptr %13, align 8, !tbaa !5
  store ptr %6, ptr %14, align 8, !tbaa !5
  %25 = load ptr, ptr %8, align 8
  %26 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZNSt6vectorIN7DynexCN27TransactionDestinationEntryESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #6
  %27 = load ptr, ptr %14, align 8, !tbaa !5
  store i64 0, ptr %27, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %28 = load i64, ptr %9, align 8, !tbaa !9
  store i64 %28, ptr %15, align 8, !tbaa !9
  br label %29

29:                                               ; preds = %74, %7
  %30 = load i64, ptr %15, align 8, !tbaa !9
  %31 = load i64, ptr %9, align 8, !tbaa !9
  %32 = load i64, ptr %10, align 8, !tbaa !9
  %33 = add i64 %31, %32
  %34 = icmp ult i64 %30, %33
  br i1 %34, label %36, label %35

35:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %77

36:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %37 = getelementptr inbounds %"class.DynexCN::WalletTransactionSender", ptr %25, i32 0, i32 2
  %38 = load ptr, ptr %37, align 8, !tbaa !11
  %39 = load i64, ptr %15, align 8, !tbaa !9
  %40 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN7DynexCN27WalletUserTransactionsCache11getTransferEm(ptr noundef nonnull align 8 dereferenceable(224) %38, i64 noundef %39)
  store ptr %40, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 64, ptr %17) #6
  %41 = getelementptr inbounds %"class.DynexCN::WalletTransactionSender", ptr %25, i32 0, i32 0
  %42 = load ptr, ptr %41, align 8, !tbaa !18
  %43 = load ptr, ptr %16, align 8, !tbaa !5
  %44 = getelementptr inbounds %"struct.DynexCN::WalletLegacyTransfer", ptr %43, i32 0, i32 0
  %45 = call noundef zeroext i1 @_ZNK7DynexCN8Currency25parseAccountAddressStringERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERNS_20AccountPublicAddressE(ptr noundef nonnull align 8 dereferenceable(984) %42, ptr noundef nonnull align 8 dereferenceable(32) %44, ptr noundef nonnull align 1 dereferenceable(64) %17)
  br i1 %45, label %63, label %46

46:                                               ; preds = %36
  %47 = call ptr @__cxa_allocate_exception(i64 32) #6
  %48 = invoke { i32, ptr } @_Z15make_error_codeN7DynexCN5error16WalletErrorCodesE(i32 noundef 7)
          to label %49 unwind label %59

49:                                               ; preds = %46
  %50 = getelementptr inbounds { i32, ptr }, ptr %18, i32 0, i32 0
  %51 = extractvalue { i32, ptr } %48, 0
  store i32 %51, ptr %50, align 8
  %52 = getelementptr inbounds { i32, ptr }, ptr %18, i32 0, i32 1
  %53 = extractvalue { i32, ptr } %48, 1
  store ptr %53, ptr %52, align 8
  %54 = getelementptr inbounds { i32, ptr }, ptr %18, i32 0, i32 0
  %55 = load i32, ptr %54, align 8
  %56 = getelementptr inbounds { i32, ptr }, ptr %18, i32 0, i32 1
  %57 = load ptr, ptr %56, align 8
  invoke void @_ZNSt12system_errorC2ESt10error_code(ptr noundef nonnull align 8 dereferenceable(32) %47, i32 %55, ptr %57)
          to label %58 unwind label %59

58:                                               ; preds = %49
  call void @__cxa_throw(ptr %47, ptr @_ZTISt12system_error, ptr @_ZNSt12system_errorD1Ev) #7
  unreachable

59:                                               ; preds = %49, %46
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %19, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %20, align 4
  call void @__cxa_free_exception(ptr %47) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %88

63:                                               ; preds = %36
  %64 = load ptr, ptr %16, align 8, !tbaa !5
  %65 = getelementptr inbounds %"struct.DynexCN::WalletLegacyTransfer", ptr %64, i32 0, i32 1
  %66 = load i64, ptr %65, align 8, !tbaa !19
  %67 = load i64, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #6
  %68 = getelementptr inbounds %class.anon.145, ptr %21, i32 0, i32 0
  %69 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %69, ptr %68, align 8, !tbaa !5
  %70 = getelementptr inbounds %class.anon.145, ptr %21, i32 0, i32 1
  store ptr %17, ptr %70, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #6
  %71 = getelementptr inbounds %class.anon.146, ptr %22, i32 0, i32 0
  %72 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %72, ptr %71, align 8, !tbaa !5
  %73 = getelementptr inbounds %class.anon.146, ptr %22, i32 0, i32 1
  store ptr %17, ptr %73, align 8, !tbaa !5
  call void @"_ZN7DynexCN28decompose_amount_into_digitsIZNS_23WalletTransactionSender18digitSplitStrategyEmmRKNS_27TransactionDestinationEntryEmRSt6vectorIS2_SaIS2_EERmE3$_0ZNS1_18digitSplitStrategyEmmS4_mS8_S9_E3$_1EEvmmRKT_RKT0_"(i64 noundef %66, i64 noundef %67, ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(16) %22)
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %74

74:                                               ; preds = %63
  %75 = load i64, ptr %15, align 8, !tbaa !9
  %76 = add i64 %75, 1
  store i64 %76, ptr %15, align 8, !tbaa !9
  br label %29, !llvm.loop !23

77:                                               ; preds = %35
  %78 = load ptr, ptr %11, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.DynexCN::TransactionDestinationEntry", ptr %78, i32 0, i32 0
  %80 = load i64, ptr %79, align 8, !tbaa !25
  %81 = load i64, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #6
  %82 = getelementptr inbounds %class.anon.147, ptr %23, i32 0, i32 0
  %83 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %83, ptr %82, align 8, !tbaa !5
  %84 = getelementptr inbounds %class.anon.147, ptr %23, i32 0, i32 1
  %85 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %85, ptr %84, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %86 = getelementptr inbounds %class.anon.148, ptr %24, i32 0, i32 0
  %87 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %87, ptr %86, align 8, !tbaa !5
  call void @"_ZN7DynexCN28decompose_amount_into_digitsIZNS_23WalletTransactionSender18digitSplitStrategyEmmRKNS_27TransactionDestinationEntryEmRSt6vectorIS2_SaIS2_EERmE3$_2ZNS1_18digitSplitStrategyEmmS4_mS8_S9_E3$_3EEvmmRKT_RKT0_"(i64 noundef %80, i64 noundef %81, ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 8 dereferenceable(8) %24)
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #6
  ret void

88:                                               ; preds = %59
  %89 = load ptr, ptr %19, align 8
  %90 = load i32, ptr %20, align 4
  %91 = insertvalue { ptr, i32 } poison, ptr %89, 0
  %92 = insertvalue { ptr, i32 } %91, i32 %90, 1
  resume { ptr, i32 } %92
}

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN7DynexCN28decompose_amount_into_digitsIZNS_23WalletTransactionSender18digitSplitStrategyEmmRKNS_27TransactionDestinationEntryEmRSt6vectorIS2_SaIS2_EERmE3$_0ZNS1_18digitSplitStrategyEmmS4_mS8_S9_E3$_1EEvmmRKT_RKT0_"(i64 noundef, i64 noundef, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #3

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN7DynexCN28decompose_amount_into_digitsIZNS_23WalletTransactionSender18digitSplitStrategyEmmRKNS_27TransactionDestinationEntryEmRSt6vectorIS2_SaIS2_EERmE3$_2ZNS1_18digitSplitStrategyEmmS4_mS8_S9_E3$_3EEvmmRKT_RKT0_"(i64 noundef, i64 noundef, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #3

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

!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, !6, i64 136}
!12 = !{!"_ZTSN7DynexCN23WalletTransactionSenderE", !6, i64 0, !13, i64 8, !6, i64 136, !10, i64 144, !17, i64 152, !6, i64 160}
!13 = !{!"_ZTSN7DynexCN11AccountKeysE", !14, i64 0, !16, i64 64, !16, i64 96}
!14 = !{!"_ZTSN7DynexCN20AccountPublicAddressE", !15, i64 0, !15, i64 32}
!15 = !{!"_ZTSN6Crypto9PublicKeyE", !7, i64 0}
!16 = !{!"_ZTSN6Crypto9SecretKeyE", !7, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = !{!12, !6, i64 0}
!19 = !{!20, !10, i64 32}
!20 = !{!"_ZTSN7DynexCN20WalletLegacyTransferE", !21, i64 0, !10, i64 32}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !22, i64 0, !10, i64 8, !7, i64 16}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!26, !10, i64 0}
!26 = !{!"_ZTSN7DynexCN27TransactionDestinationEntryE", !10, i64 0, !14, 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"

%"struct.DynexCN::AccountPublicAddress" = type { %"struct.Crypto::PublicKey", %"struct.Crypto::PublicKey" }
%"struct.Crypto::PublicKey" = type { [32 x i8] }
%class.anon.145 = type { ptr, ptr }
%class.anon.146 = type { ptr, ptr }
%class.anon.147 = type { ptr, ptr }
%class.anon.148 = type { ptr }

@_ZTISt12system_error = external constant 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(...)

declare noundef zeroext i1 @_ZNK7DynexCN8Currency25parseAccountAddressStringERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERNS_20AccountPublicAddressE(ptr noundef nonnull align 8 dereferenceable(984), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(64)) local_unnamed_addr #1

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local { i32, ptr } @_Z15make_error_codeN7DynexCN5error16WalletErrorCodesE(i32 noundef) local_unnamed_addr #2

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

declare void @__cxa_free_exception(ptr) local_unnamed_addr

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

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

declare noundef nonnull align 8 dereferenceable(40) ptr @_ZN7DynexCN27WalletUserTransactionsCache11getTransferEm(ptr noundef nonnull align 8 dereferenceable(224), i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7DynexCN23WalletTransactionSender18digitSplitStrategyEmmRKNS_27TransactionDestinationEntryEmRSt6vectorIS1_SaIS1_EERm(ptr nocapture noundef nonnull readonly align 8 dereferenceable(168) %0, i64 noundef %1, i64 noundef %2, ptr noundef nonnull align 8 dereferenceable(72) %3, i64 noundef %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca %"struct.DynexCN::AccountPublicAddress", align 1
  %9 = alloca %class.anon.145, align 8
  %10 = alloca %class.anon.146, align 8
  %11 = alloca %class.anon.147, align 8
  %12 = alloca %class.anon.148, align 8
  tail call void @_ZNSt6vectorIN7DynexCN27TransactionDestinationEntryESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  store i64 0, ptr %6, align 8, !tbaa !5
  %13 = add i64 %2, %1
  %14 = icmp ugt i64 %13, %1
  br i1 %14, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %7
  %15 = getelementptr inbounds i8, ptr %0, i64 136
  %16 = getelementptr inbounds i8, ptr %9, i64 8
  %17 = getelementptr inbounds i8, ptr %10, i64 8
  br label %20

._crit_edge:                                      ; preds = %33, %7
  %18 = load i64, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #6
  store ptr %5, ptr %11, align 8, !tbaa !13
  %19 = getelementptr inbounds i8, ptr %11, i64 8
  store ptr %3, ptr %19, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  store ptr %6, ptr %12, align 8, !tbaa !13
  call void @"_ZN7DynexCN28decompose_amount_into_digitsIZNS_23WalletTransactionSender18digitSplitStrategyEmmRKNS_27TransactionDestinationEntryEmRSt6vectorIS2_SaIS2_EERmE3$_2ZNS1_18digitSplitStrategyEmmS4_mS8_S9_E3$_3EEvmmRKT_RKT0_"(i64 noundef %18, i64 noundef %4, ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(8) %12)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  ret void

20:                                               ; preds = %.lr.ph, %33
  %.020 = phi i64 [ %1, %.lr.ph ], [ %36, %33 ]
  %21 = load ptr, ptr %15, align 8, !tbaa !15
  %22 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN7DynexCN27WalletUserTransactionsCache11getTransferEm(ptr noundef nonnull align 8 dereferenceable(224) %21, i64 noundef %.020)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #6
  %23 = load ptr, ptr %0, align 8, !tbaa !20
  %24 = call noundef zeroext i1 @_ZNK7DynexCN8Currency25parseAccountAddressStringERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERNS_20AccountPublicAddressE(ptr noundef nonnull align 8 dereferenceable(984) %23, ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 1 dereferenceable(64) %8)
  br i1 %24, label %33, label %25

25:                                               ; preds = %20
  %26 = call ptr @__cxa_allocate_exception(i64 32) #6
  %27 = call { i32, ptr } @_Z15make_error_codeN7DynexCN5error16WalletErrorCodesE(i32 noundef 7)
  %28 = extractvalue { i32, ptr } %27, 0
  %29 = extractvalue { i32, ptr } %27, 1
  invoke void @_ZNSt12system_errorC2ESt10error_code(ptr noundef nonnull align 8 dereferenceable(32) %26, i32 %28, ptr %29)
          to label %30 unwind label %31

30:                                               ; preds = %25
  call void @__cxa_throw(ptr nonnull %26, ptr nonnull @_ZTISt12system_error, ptr nonnull @_ZNSt12system_errorD1Ev) #7
  unreachable

31:                                               ; preds = %25
  %32 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #6
  resume { ptr, i32 } %32

33:                                               ; preds = %20
  %34 = getelementptr inbounds i8, ptr %22, i64 32
  %35 = load i64, ptr %34, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #6
  store ptr %5, ptr %9, align 8, !tbaa !13
  store ptr %8, ptr %16, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #6
  store ptr %5, ptr %10, align 8, !tbaa !13
  store ptr %8, ptr %17, align 8, !tbaa !13
  call void @"_ZN7DynexCN28decompose_amount_into_digitsIZNS_23WalletTransactionSender18digitSplitStrategyEmmRKNS_27TransactionDestinationEntryEmRSt6vectorIS2_SaIS2_EERmE3$_0ZNS1_18digitSplitStrategyEmmS4_mS8_S9_E3$_1EEvmmRKT_RKT0_"(i64 noundef %35, i64 noundef %4, ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %10)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #6
  %36 = add i64 %.020, 1
  %exitcond.not = icmp eq i64 %36, %13
  br i1 %exitcond.not, label %._crit_edge, label %20, !llvm.loop !25
}

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN7DynexCN28decompose_amount_into_digitsIZNS_23WalletTransactionSender18digitSplitStrategyEmmRKNS_27TransactionDestinationEntryEmRSt6vectorIS2_SaIS2_EERmE3$_0ZNS1_18digitSplitStrategyEmmS4_mS8_S9_E3$_1EEvmmRKT_RKT0_"(i64 noundef, i64 noundef, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN7DynexCN28decompose_amount_into_digitsIZNS_23WalletTransactionSender18digitSplitStrategyEmmRKNS_27TransactionDestinationEntryEmRSt6vectorIS2_SaIS2_EERmE3$_2ZNS1_18digitSplitStrategyEmmS4_mS8_S9_E3$_3EEvmmRKT_RKT0_"(i64 noundef, i64 noundef, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

!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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTSN7DynexCN27TransactionDestinationEntryE", !6, i64 0, !11, i64 8}
!11 = !{!"_ZTSN7DynexCN20AccountPublicAddressE", !12, i64 0, !12, i64 32}
!12 = !{!"_ZTSN6Crypto9PublicKeyE", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!16, !14, i64 136}
!16 = !{!"_ZTSN7DynexCN23WalletTransactionSenderE", !14, i64 0, !17, i64 8, !14, i64 136, !6, i64 144, !19, i64 152, !14, i64 160}
!17 = !{!"_ZTSN7DynexCN11AccountKeysE", !11, i64 0, !18, i64 64, !18, i64 96}
!18 = !{!"_ZTSN6Crypto9SecretKeyE", !7, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{!16, !14, i64 0}
!21 = !{!22, !6, i64 32}
!22 = !{!"_ZTSN7DynexCN20WalletLegacyTransferE", !23, i64 0, !6, i64 32}
!23 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !24, i64 0, !6, i64 8, !7, i64 16}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !14, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass