; LLVM IR from dynexcoin/Dynex :: src/Wallet (WalletGreen)

; 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.std::piecewise_construct_t" = type { i8 }
%"class.std::vector.461" = type { %"struct.std::_Vector_base.462" }
%"struct.std::_Vector_base.462" = type { %"struct.std::_Vector_base<std::pair<DynexCN::WalletRecord *, DynexCN::TransactionOutputInformation>, std::allocator<std::pair<DynexCN::WalletRecord *, DynexCN::TransactionOutputInformation>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<DynexCN::WalletRecord *, DynexCN::TransactionOutputInformation>, std::allocator<std::pair<DynexCN::WalletRecord *, DynexCN::TransactionOutputInformation>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<DynexCN::WalletRecord *, DynexCN::TransactionOutputInformation>, std::allocator<std::pair<DynexCN::WalletRecord *, DynexCN::TransactionOutputInformation>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<DynexCN::WalletRecord *, DynexCN::TransactionOutputInformation>, std::allocator<std::pair<DynexCN::WalletRecord *, DynexCN::TransactionOutputInformation>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.466" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.207" = type { ptr }
%"class.std::tuple.467" = type { %"struct.std::_Tuple_impl.468" }
%"struct.std::_Tuple_impl.468" = type { %"struct.std::_Head_base.469" }
%"struct.std::_Head_base.469" = type { ptr }
%"class.std::tuple.470" = type { %"struct.std::_Tuple_impl.471" }
%"struct.std::_Tuple_impl.471" = type { %"struct.std::_Head_base.472" }
%"struct.std::_Head_base.472" = type { ptr }
%class.ShuffleGenerator = type <{ %"class.std::unordered_map.475", i64, i64, [8 x i8] }>
%"class.std::unordered_map.475" = type { %"class.std::_Hashtable.476" }
%"class.std::_Hashtable.476" = 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.Crypto::random_engine" = type { i8 }
%"struct.DynexCN::WalletGreen::OutputToTransfer" = type { %"struct.DynexCN::TransactionOutputInformation", ptr }
%"struct.DynexCN::TransactionOutputInformation" = type { i8, i64, i32, i32, %"struct.Crypto::Hash", %"struct.Crypto::PublicKey", %union.anon.208 }
%"struct.Crypto::Hash" = type { [32 x i8] }
%"struct.Crypto::PublicKey" = type { [32 x i8] }
%union.anon.208 = type { i32, [28 x i8] }
%"struct.DynexCN::WalletGreen::WalletOuts" = type { ptr, %"class.std::vector.201" }
%"class.std::vector.201" = type { %"struct.std::_Vector_base.202" }
%"struct.std::_Vector_base.202" = type { %"struct.std::_Vector_base<DynexCN::TransactionOutputInformation, std::allocator<DynexCN::TransactionOutputInformation>>::_Vector_impl" }
%"struct.std::_Vector_base<DynexCN::TransactionOutputInformation, std::allocator<DynexCN::TransactionOutputInformation>>::_Vector_impl" = type { %"struct.std::_Vector_base<DynexCN::TransactionOutputInformation, std::allocator<DynexCN::TransactionOutputInformation>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DynexCN::TransactionOutputInformation, std::allocator<DynexCN::TransactionOutputInformation>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.473" = type { ptr, %"struct.DynexCN::TransactionOutputInformation" }

@_ZSt19piecewise_construct = external dso_local constant %"struct.std::piecewise_construct_t", align 1

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: 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 nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIN7DynexCN28TransactionOutputInformationESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPN7DynexCN28TransactionOutputInformationESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(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 @_ZNK9__gnu_cxx17__normal_iteratorIPN7DynexCN28TransactionOutputInformationESt6vectorIS2_SaIS2_EEEdeEv(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 @_ZN9__gnu_cxx17__normal_iteratorIPN7DynexCN28TransactionOutputInformationESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZN7DynexCN11WalletGreen15selectTransfersEmbmOSt6vectorINS0_10WalletOutsESaIS2_EERS1_INS0_16OutputToTransferESaIS6_EE(ptr noundef nonnull align 8 dereferenceable(1872) %0, i64 noundef %1, i1 noundef zeroext %2, i64 noundef %3, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5) #4 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i8, align 1
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca %"class.std::vector.461", align 8
  %15 = alloca %"class.std::vector.461", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.466", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator.466", align 8
  %18 = alloca i32, align 4
  %19 = alloca %"class.__gnu_cxx::__normal_iterator.207", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.207", align 8
  %21 = alloca %"class.std::tuple.467", align 8
  %22 = alloca %"class.std::tuple.470", align 8
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca %"class.std::tuple.467", align 8
  %26 = alloca %"class.std::tuple.470", align 8
  %27 = alloca %class.ShuffleGenerator, align 8
  %28 = alloca %"class.Crypto::random_engine", align 1
  %29 = alloca ptr, align 8
  %30 = alloca %"struct.DynexCN::WalletGreen::OutputToTransfer", align 8
  %31 = alloca %class.ShuffleGenerator, align 8
  %32 = alloca %"class.Crypto::random_engine", align 1
  %33 = alloca ptr, align 8
  %34 = alloca %"struct.DynexCN::WalletGreen::OutputToTransfer", align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i64 %1, ptr %8, align 8, !tbaa !9
  %35 = zext i1 %2 to i8
  store i8 %35, ptr %9, align 1, !tbaa !11
  store i64 %3, ptr %10, align 8, !tbaa !9
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  %36 = load ptr, ptr %7, align 8
  store i8 0, ptr %9, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  store i64 0, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #5
  call void @_ZNSt6vectorISt4pairIPN7DynexCN12WalletRecordENS1_28TransactionOutputInformationEESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #5
  call void @_ZNSt6vectorISt4pairIPN7DynexCN12WalletRecordENS1_28TransactionOutputInformationEESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %37 = load ptr, ptr %11, align 8, !tbaa !5
  %38 = call ptr @_ZNSt6vectorIN7DynexCN11WalletGreen10WalletOutsESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #5
  %39 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.466", ptr %16, i32 0, i32 0
  store ptr %38, ptr %39, align 8
  br label %40

40:                                               ; preds = %93, %6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %41 = load ptr, ptr %11, align 8, !tbaa !5
  %42 = call ptr @_ZNSt6vectorIN7DynexCN11WalletGreen10WalletOutsESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %41) #5
  %43 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.466", ptr %17, i32 0, i32 0
  store ptr %42, ptr %43, align 8
  %44 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7DynexCN11WalletGreen10WalletOutsESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br i1 %44, label %46, label %45

45:                                               ; preds = %40
  store i32 2, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %95

46:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %47 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7DynexCN11WalletGreen10WalletOutsESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  %48 = getelementptr inbounds %"struct.DynexCN::WalletGreen::WalletOuts", ptr %47, i32 0, i32 1
  %49 = call ptr @_ZNSt6vectorIN7DynexCN28TransactionOutputInformationESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %48) #5
  %50 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.207", ptr %19, i32 0, i32 0
  store ptr %49, ptr %50, align 8
  br label %51

51:                                               ; preds = %89, %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %52 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7DynexCN11WalletGreen10WalletOutsESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  %53 = getelementptr inbounds %"struct.DynexCN::WalletGreen::WalletOuts", ptr %52, i32 0, i32 1
  %54 = call ptr @_ZNSt6vectorIN7DynexCN28TransactionOutputInformationESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %53) #5
  %55 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.207", ptr %20, i32 0, i32 0
  store ptr %54, ptr %55, align 8
  %56 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7DynexCN28TransactionOutputInformationESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br i1 %56, label %58, label %57

57:                                               ; preds = %51
  store i32 5, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %92

58:                                               ; preds = %51
  %59 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7DynexCN28TransactionOutputInformationESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #5
  %60 = getelementptr inbounds %"struct.DynexCN::TransactionOutputInformation", ptr %59, i32 0, i32 1
  %61 = load i64, ptr %60, align 8, !tbaa !13
  %62 = load i64, ptr %10, align 8, !tbaa !9
  %63 = icmp ugt i64 %61, %62
  br i1 %63, label %64, label %74

64:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %65 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7DynexCN11WalletGreen10WalletOutsESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  %66 = getelementptr inbounds %"struct.DynexCN::WalletGreen::WalletOuts", ptr %65, i32 0, i32 0
  call void @_ZSt16forward_as_tupleIJRPN7DynexCN12WalletRecordEEESt5tupleIJDpOT_EES7_(ptr dead_on_unwind writable sret(%"class.std::tuple.467") align 8 %21, ptr noundef nonnull align 8 dereferenceable(8) %66) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %67 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7DynexCN28TransactionOutputInformationESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #5
  call void @_ZSt16forward_as_tupleIJRN7DynexCN28TransactionOutputInformationEEESt5tupleIJDpOT_EES6_(ptr dead_on_unwind writable sret(%"class.std::tuple.470") align 8 %22, ptr noundef nonnull align 8 dereferenceable(120) %67) #5
  %68 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6vectorISt4pairIPN7DynexCN12WalletRecordENS1_28TransactionOutputInformationEESaIS5_EE12emplace_backIJRKSt21piecewise_construct_tSt5tupleIJRS3_EESC_IJRS4_EEEEERS5_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 1 dereferenceable(1) @_ZSt19piecewise_construct, ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %69 unwind label %70

69:                                               ; preds = %64
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %88

70:                                               ; preds = %64
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %23, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %91

74:                                               ; preds = %58
  %75 = load i8, ptr %9, align 1, !tbaa !11, !range !19, !noundef !20
  %76 = trunc i8 %75 to i1
  br i1 %76, label %77, label %87

77:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  %78 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7DynexCN11WalletGreen10WalletOutsESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  %79 = getelementptr inbounds %"struct.DynexCN::WalletGreen::WalletOuts", ptr %78, i32 0, i32 0
  call void @_ZSt16forward_as_tupleIJRPN7DynexCN12WalletRecordEEESt5tupleIJDpOT_EES7_(ptr dead_on_unwind writable sret(%"class.std::tuple.467") align 8 %25, ptr noundef nonnull align 8 dereferenceable(8) %79) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  %80 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7DynexCN28TransactionOutputInformationESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #5
  call void @_ZSt16forward_as_tupleIJRN7DynexCN28TransactionOutputInformationEEESt5tupleIJDpOT_EES6_(ptr dead_on_unwind writable sret(%"class.std::tuple.470") align 8 %26, ptr noundef nonnull align 8 dereferenceable(120) %80) #5
  %81 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6vectorISt4pairIPN7DynexCN12WalletRecordENS1_28TransactionOutputInformationEESaIS5_EE12emplace_backIJRKSt21piecewise_construct_tSt5tupleIJRS3_EESC_IJRS4_EEEEERS5_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 1 dereferenceable(1) @_ZSt19piecewise_construct, ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %26)
          to label %82 unwind label %83

82:                                               ; preds = %77
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  br label %87

83:                                               ; preds = %77
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %23, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  br label %91

87:                                               ; preds = %82, %74
  br label %88

88:                                               ; preds = %87, %69
  br label %89

89:                                               ; preds = %88
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7DynexCN28TransactionOutputInformationESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #5
  br label %51, !llvm.loop !21

91:                                               ; preds = %83, %70
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %207

92:                                               ; preds = %57
  br label %93

93:                                               ; preds = %92
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7DynexCN11WalletGreen10WalletOutsESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  br label %40, !llvm.loop !23

95:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 80, ptr %27) #5
  %96 = call noundef i64 @_ZNKSt6vectorISt4pairIPN7DynexCN12WalletRecordENS1_28TransactionOutputInformationEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #5
  invoke void @_ZN16ShuffleGeneratorImN6Crypto13random_engineImEEEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(73) %27, i64 noundef %96, ptr noundef nonnull align 1 dereferenceable(1) %28)
          to label %97 unwind label %128

97:                                               ; preds = %95
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #5
  br label %98

98:                                               ; preds = %127, %97
  %99 = load i64, ptr %13, align 8, !tbaa !9
  %100 = load i64, ptr %8, align 8, !tbaa !9
  %101 = icmp ult i64 %99, %100
  br i1 %101, label %102, label %106

102:                                              ; preds = %98
  %103 = invoke noundef zeroext i1 @_ZNK16ShuffleGeneratorImN6Crypto13random_engineImEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(73) %27)
          to label %104 unwind label %132

104:                                              ; preds = %102
  %105 = xor i1 %103, true
  br label %106

106:                                              ; preds = %104, %98
  %107 = phi i1 [ false, %98 ], [ %105, %104 ]
  br i1 %107, label %108, label %145

108:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  %109 = invoke noundef i64 @_ZN16ShuffleGeneratorImN6Crypto13random_engineImEEEclEv(ptr noundef nonnull align 8 dereferenceable(73) %27)
          to label %110 unwind label %136

110:                                              ; preds = %108
  %111 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6vectorISt4pairIPN7DynexCN12WalletRecordENS1_28TransactionOutputInformationEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %109) #5
  store ptr %111, ptr %29, align 8, !tbaa !5
  %112 = load ptr, ptr %29, align 8, !tbaa !5
  %113 = getelementptr inbounds %"struct.std::pair.473", ptr %112, i32 0, i32 1
  %114 = getelementptr inbounds %"struct.DynexCN::TransactionOutputInformation", ptr %113, i32 0, i32 1
  %115 = load i64, ptr %114, align 8, !tbaa !24
  %116 = load i64, ptr %13, align 8, !tbaa !9
  %117 = add i64 %116, %115
  store i64 %117, ptr %13, align 8, !tbaa !9
  %118 = load ptr, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 128, ptr %30) #5
  %119 = getelementptr inbounds %"struct.DynexCN::WalletGreen::OutputToTransfer", ptr %30, i32 0, i32 0
  %120 = load ptr, ptr %29, align 8, !tbaa !5
  %121 = getelementptr inbounds %"struct.std::pair.473", ptr %120, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %119, ptr align 8 %121, i64 120, i1 false), !tbaa.struct !26
  %122 = getelementptr inbounds %"struct.DynexCN::WalletGreen::OutputToTransfer", ptr %30, i32 0, i32 1
  %123 = load ptr, ptr %29, align 8, !tbaa !5
  %124 = getelementptr inbounds %"struct.std::pair.473", ptr %123, i32 0, i32 0
  %125 = load ptr, ptr %124, align 8, !tbaa !5
  store ptr %125, ptr %122, align 8, !tbaa !30
  %126 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6vectorIN7DynexCN11WalletGreen16OutputToTransferESaIS2_EE12emplace_backIJS2_EEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %118, ptr noundef nonnull align 8 dereferenceable(128) %30)
          to label %127 unwind label %140

127:                                              ; preds = %110
  call void @llvm.lifetime.end.p0(i64 128, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  br label %98, !llvm.loop !32

128:                                              ; preds = %95
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %23, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #5
  br label %206

132:                                              ; preds = %102
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %23, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %24, align 4
  br label %205

136:                                              ; preds = %108
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %23, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %24, align 4
  br label %144

140:                                              ; preds = %110
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %23, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 128, ptr %30) #5
  br label %144

144:                                              ; preds = %140, %136
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  br label %205

145:                                              ; preds = %106
  %146 = load i8, ptr %9, align 1, !tbaa !11, !range !19, !noundef !20
  %147 = trunc i8 %146 to i1
  br i1 %147, label %148, label %203

148:                                              ; preds = %145
  %149 = call noundef zeroext i1 @_ZNKSt6vectorISt4pairIPN7DynexCN12WalletRecordENS1_28TransactionOutputInformationEESaIS5_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  br i1 %149, label %203, label %150

150:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 80, ptr %31) #5
  %151 = call noundef i64 @_ZNKSt6vectorISt4pairIPN7DynexCN12WalletRecordENS1_28TransactionOutputInformationEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %32) #5
  invoke void @_ZN16ShuffleGeneratorImN6Crypto13random_engineImEEEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(73) %31, i64 noundef %151, ptr noundef nonnull align 1 dereferenceable(1) %32)
          to label %152 unwind label %184

152:                                              ; preds = %150
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #5
  br label %153

153:                                              ; preds = %181, %152
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #5
  %154 = invoke noundef i64 @_ZN16ShuffleGeneratorImN6Crypto13random_engineImEEEclEv(ptr noundef nonnull align 8 dereferenceable(73) %31)
          to label %155 unwind label %188

155:                                              ; preds = %153
  %156 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6vectorISt4pairIPN7DynexCN12WalletRecordENS1_28TransactionOutputInformationEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %154) #5
  store ptr %156, ptr %33, align 8, !tbaa !5
  %157 = load ptr, ptr %33, align 8, !tbaa !5
  %158 = getelementptr inbounds %"struct.std::pair.473", ptr %157, i32 0, i32 1
  %159 = getelementptr inbounds %"struct.DynexCN::TransactionOutputInformation", ptr %158, i32 0, i32 1
  %160 = load i64, ptr %159, align 8, !tbaa !24
  %161 = load i64, ptr %13, align 8, !tbaa !9
  %162 = add i64 %161, %160
  store i64 %162, ptr %13, align 8, !tbaa !9
  %163 = load ptr, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 128, ptr %34) #5
  %164 = getelementptr inbounds %"struct.DynexCN::WalletGreen::OutputToTransfer", ptr %34, i32 0, i32 0
  %165 = load ptr, ptr %33, align 8, !tbaa !5
  %166 = getelementptr inbounds %"struct.std::pair.473", ptr %165, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %164, ptr align 8 %166, i64 120, i1 false), !tbaa.struct !26
  %167 = getelementptr inbounds %"struct.DynexCN::WalletGreen::OutputToTransfer", ptr %34, i32 0, i32 1
  %168 = load ptr, ptr %33, align 8, !tbaa !5
  %169 = getelementptr inbounds %"struct.std::pair.473", ptr %168, i32 0, i32 0
  %170 = load ptr, ptr %169, align 8, !tbaa !5
  store ptr %170, ptr %167, align 8, !tbaa !30
  %171 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6vectorIN7DynexCN11WalletGreen16OutputToTransferESaIS2_EE12emplace_backIJS2_EEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %163, ptr noundef nonnull align 8 dereferenceable(128) %34)
          to label %172 unwind label %192

172:                                              ; preds = %155
  call void @llvm.lifetime.end.p0(i64 128, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #5
  br label %173

173:                                              ; preds = %172
  %174 = load i64, ptr %13, align 8, !tbaa !9
  %175 = load i64, ptr %8, align 8, !tbaa !9
  %176 = icmp ult i64 %174, %175
  br i1 %176, label %177, label %181

177:                                              ; preds = %173
  %178 = invoke noundef zeroext i1 @_ZNK16ShuffleGeneratorImN6Crypto13random_engineImEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(73) %31)
          to label %179 unwind label %197

179:                                              ; preds = %177
  %180 = xor i1 %178, true
  br label %181

181:                                              ; preds = %179, %173
  %182 = phi i1 [ false, %173 ], [ %180, %179 ]
  br i1 %182, label %153, label %183, !llvm.loop !33

183:                                              ; preds = %181
  call void @_ZN16ShuffleGeneratorImN6Crypto13random_engineImEEED2Ev(ptr noundef nonnull align 8 dereferenceable(73) %31) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %31) #5
  br label %203

184:                                              ; preds = %150
  %185 = landingpad { ptr, i32 }
          cleanup
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %23, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #5
  br label %202

188:                                              ; preds = %153
  %189 = landingpad { ptr, i32 }
          cleanup
  %190 = extractvalue { ptr, i32 } %189, 0
  store ptr %190, ptr %23, align 8
  %191 = extractvalue { ptr, i32 } %189, 1
  store i32 %191, ptr %24, align 4
  br label %196

192:                                              ; preds = %155
  %193 = landingpad { ptr, i32 }
          cleanup
  %194 = extractvalue { ptr, i32 } %193, 0
  store ptr %194, ptr %23, align 8
  %195 = extractvalue { ptr, i32 } %193, 1
  store i32 %195, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 128, ptr %34) #5
  br label %196

196:                                              ; preds = %192, %188
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #5
  br label %201

197:                                              ; preds = %177
  %198 = landingpad { ptr, i32 }
          cleanup
  %199 = extractvalue { ptr, i32 } %198, 0
  store ptr %199, ptr %23, align 8
  %200 = extractvalue { ptr, i32 } %198, 1
  store i32 %200, ptr %24, align 4
  br label %201

201:                                              ; preds = %197, %196
  call void @_ZN16ShuffleGeneratorImN6Crypto13random_engineImEEED2Ev(ptr noundef nonnull align 8 dereferenceable(73) %31) #5
  br label %202

202:                                              ; preds = %201, %184
  call void @llvm.lifetime.end.p0(i64 80, ptr %31) #5
  br label %205

203:                                              ; preds = %183, %148, %145
  %204 = load i64, ptr %13, align 8, !tbaa !9
  store i32 1, ptr %18, align 4
  call void @_ZN16ShuffleGeneratorImN6Crypto13random_engineImEEED2Ev(ptr noundef nonnull align 8 dereferenceable(73) %27) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %27) #5
  call void @_ZNSt6vectorISt4pairIPN7DynexCN12WalletRecordENS1_28TransactionOutputInformationEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #5
  call void @_ZNSt6vectorISt4pairIPN7DynexCN12WalletRecordENS1_28TransactionOutputInformationEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  ret i64 %204

205:                                              ; preds = %202, %144, %132
  call void @_ZN16ShuffleGeneratorImN6Crypto13random_engineImEEED2Ev(ptr noundef nonnull align 8 dereferenceable(73) %27) #5
  br label %206

206:                                              ; preds = %205, %128
  call void @llvm.lifetime.end.p0(i64 80, ptr %27) #5
  br label %207

207:                                              ; preds = %206, %91
  call void @_ZNSt6vectorISt4pairIPN7DynexCN12WalletRecordENS1_28TransactionOutputInformationEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #5
  call void @_ZNSt6vectorISt4pairIPN7DynexCN12WalletRecordENS1_28TransactionOutputInformationEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %208

208:                                              ; preds = %207
  %209 = load ptr, ptr %23, align 8
  %210 = load i32, ptr %24, align 4
  %211 = insertvalue { ptr, i32 } poison, ptr %209, 0
  %212 = insertvalue { ptr, i32 } %211, i32 %210, 1
  resume { ptr, i32 } %212
}

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZSt16forward_as_tupleIJRPN7DynexCN12WalletRecordEEESt5tupleIJDpOT_EES7_(ptr dead_on_unwind noalias writable sret(%"class.std::tuple.467") align 8, ptr noundef nonnull align 8 dereferenceable(8)) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZSt16forward_as_tupleIJRN7DynexCN28TransactionOutputInformationEEESt5tupleIJDpOT_EES6_(ptr dead_on_unwind noalias writable sret(%"class.std::tuple.470") align 8, ptr noundef nonnull align 8 dereferenceable(120)) #2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN16ShuffleGeneratorImN6Crypto13random_engineImEEEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(73), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6vectorISt4pairIPN7DynexCN12WalletRecordENS1_28TransactionOutputInformationEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN16ShuffleGeneratorImN6Crypto13random_engineImEEEclEv(ptr noundef nonnull align 8 dereferenceable(73)) #4 align 2

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

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

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

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

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 = { 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 #4 = { 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 #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, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !10, i64 8}
!14 = !{!"_ZTSN7DynexCN28TransactionOutputInformationE", !15, i64 0, !10, i64 8, !16, i64 16, !16, i64 20, !17, i64 24, !18, i64 56, !7, i64 88}
!15 = !{!"_ZTSN7DynexCN16TransactionTypes10OutputTypeE", !7, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!"_ZTSN6Crypto4HashE", !7, i64 0}
!18 = !{!"_ZTSN6Crypto9PublicKeyE", !7, i64 0}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = !{!25, !10, i64 16}
!25 = !{!"_ZTSSt4pairIPN7DynexCN12WalletRecordENS0_28TransactionOutputInformationEE", !6, i64 0, !14, i64 8}
!26 = !{i64 0, i64 1, !27, i64 8, i64 8, !9, i64 16, i64 4, !28, i64 20, i64 4, !28, i64 24, i64 32, !29, i64 56, i64 32, !29, i64 88, i64 32, !29}
!27 = !{!15, !15, i64 0}
!28 = !{!16, !16, i64 0}
!29 = !{!7, !7, i64 0}
!30 = !{!31, !6, i64 120}
!31 = !{!"_ZTSN7DynexCN11WalletGreen16OutputToTransferE", !14, i64 0, !6, i64 120}
!32 = distinct !{!32, !22}
!33 = distinct !{!33, !22}


; 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.std::piecewise_construct_t" = type { i8 }
%"class.std::vector.461" = type { %"struct.std::_Vector_base.462" }
%"struct.std::_Vector_base.462" = type { %"struct.std::_Vector_base<std::pair<DynexCN::WalletRecord *, DynexCN::TransactionOutputInformation>, std::allocator<std::pair<DynexCN::WalletRecord *, DynexCN::TransactionOutputInformation>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<DynexCN::WalletRecord *, DynexCN::TransactionOutputInformation>, std::allocator<std::pair<DynexCN::WalletRecord *, DynexCN::TransactionOutputInformation>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<DynexCN::WalletRecord *, DynexCN::TransactionOutputInformation>, std::allocator<std::pair<DynexCN::WalletRecord *, DynexCN::TransactionOutputInformation>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<DynexCN::WalletRecord *, DynexCN::TransactionOutputInformation>, std::allocator<std::pair<DynexCN::WalletRecord *, DynexCN::TransactionOutputInformation>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.466" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.207" = type { ptr }
%"class.std::tuple.467" = type { %"struct.std::_Tuple_impl.468" }
%"struct.std::_Tuple_impl.468" = type { %"struct.std::_Head_base.469" }
%"struct.std::_Head_base.469" = type { ptr }
%"class.std::tuple.470" = type { %"struct.std::_Tuple_impl.471" }
%"struct.std::_Tuple_impl.471" = type { %"struct.std::_Head_base.472" }
%"struct.std::_Head_base.472" = type { ptr }
%class.ShuffleGenerator = type <{ %"class.std::unordered_map.475", i64, i64, [8 x i8] }>
%"class.std::unordered_map.475" = type { %"class.std::_Hashtable.476" }
%"class.std::_Hashtable.476" = 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.Crypto::random_engine" = type { i8 }
%"struct.DynexCN::WalletGreen::OutputToTransfer" = type { %"struct.DynexCN::TransactionOutputInformation", ptr }
%"struct.DynexCN::TransactionOutputInformation" = type { i8, i64, i32, i32, %"struct.Crypto::Hash", %"struct.Crypto::PublicKey", %union.anon.208 }
%"struct.Crypto::Hash" = type { [32 x i8] }
%"struct.Crypto::PublicKey" = type { [32 x i8] }
%union.anon.208 = type { i32, [28 x i8] }

@_ZSt19piecewise_construct = external dso_local constant %"struct.std::piecewise_construct_t", align 1

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: 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 nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIN7DynexCN28TransactionOutputInformationESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPN7DynexCN28TransactionOutputInformationESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(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 @_ZNK9__gnu_cxx17__normal_iteratorIPN7DynexCN28TransactionOutputInformationESt6vectorIS2_SaIS2_EEEdeEv(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 @_ZN9__gnu_cxx17__normal_iteratorIPN7DynexCN28TransactionOutputInformationESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZN7DynexCN11WalletGreen15selectTransfersEmbmOSt6vectorINS0_10WalletOutsESaIS2_EERS1_INS0_16OutputToTransferESaIS6_EE(ptr nocapture noundef nonnull readnone align 8 dereferenceable(1872) %0, i64 noundef %1, i1 noundef zeroext %2, i64 noundef %3, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"class.std::vector.461", align 8
  %8 = alloca %"class.std::vector.461", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.466", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.466", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.207", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.207", align 8
  %13 = alloca %"class.std::tuple.467", align 8
  %14 = alloca %"class.std::tuple.470", align 8
  %15 = alloca %class.ShuffleGenerator, align 8
  %16 = alloca %"class.Crypto::random_engine", align 1
  %17 = alloca %"struct.DynexCN::WalletGreen::OutputToTransfer", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #5
  call void @_ZNSt6vectorISt4pairIPN7DynexCN12WalletRecordENS1_28TransactionOutputInformationEESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #5
  call void @_ZNSt6vectorISt4pairIPN7DynexCN12WalletRecordENS1_28TransactionOutputInformationEESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %18 = call ptr @_ZNSt6vectorIN7DynexCN11WalletGreen10WalletOutsESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  store ptr %18, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  %19 = call ptr @_ZNSt6vectorIN7DynexCN11WalletGreen10WalletOutsESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  store ptr %19, ptr %10, align 8
  %20 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7DynexCN11WalletGreen10WalletOutsESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  br i1 %20, label %.lr.ph39, label %._crit_edge40

._crit_edge40:                                    ; preds = %._crit_edge, %6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %15) #5
  %21 = call noundef i64 @_ZNKSt6vectorISt4pairIPN7DynexCN12WalletRecordENS1_28TransactionOutputInformationEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #5
  call void @_ZN16ShuffleGeneratorImN6Crypto13random_engineImEEEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(73) %15, i64 noundef %21, ptr noundef nonnull align 1 dereferenceable(1) %16)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #5
  %.not = icmp eq i64 %1, 0
  br i1 %.not, label %.critedge, label %.lr.ph43

.lr.ph43:                                         ; preds = %._crit_edge40
  %22 = getelementptr inbounds i8, ptr %17, i64 120
  br label %50

.lr.ph39:                                         ; preds = %6, %._crit_edge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  %23 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7DynexCN11WalletGreen10WalletOutsESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  %24 = getelementptr inbounds i8, ptr %23, i64 8
  %25 = call ptr @_ZNSt6vectorIN7DynexCN28TransactionOutputInformationESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #5
  store ptr %25, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %26 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7DynexCN11WalletGreen10WalletOutsESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  %27 = getelementptr inbounds i8, ptr %26, i64 8
  %28 = call ptr @_ZNSt6vectorIN7DynexCN28TransactionOutputInformationESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #5
  store ptr %28, ptr %12, align 8
  %29 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7DynexCN28TransactionOutputInformationESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  br i1 %29, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %44, %.lr.ph39
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7DynexCN11WalletGreen10WalletOutsESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  %31 = call ptr @_ZNSt6vectorIN7DynexCN11WalletGreen10WalletOutsESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  store ptr %31, ptr %10, align 8
  %32 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7DynexCN11WalletGreen10WalletOutsESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  br i1 %32, label %.lr.ph39, label %._crit_edge40, !llvm.loop !5

.lr.ph:                                           ; preds = %.lr.ph39, %44
  %33 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7DynexCN28TransactionOutputInformationESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  %34 = getelementptr inbounds i8, ptr %33, i64 8
  %35 = load i64, ptr %34, align 8, !tbaa !7
  %36 = icmp ugt i64 %35, %3
  br i1 %36, label %37, label %44

37:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #5
  %38 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7DynexCN11WalletGreen10WalletOutsESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  call void @_ZSt16forward_as_tupleIJRPN7DynexCN12WalletRecordEEESt5tupleIJDpOT_EES7_(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple.467") align 8 %13, ptr noundef nonnull align 8 dereferenceable(8) %38) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #5
  %39 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7DynexCN28TransactionOutputInformationESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  call void @_ZSt16forward_as_tupleIJRN7DynexCN28TransactionOutputInformationEEESt5tupleIJDpOT_EES6_(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple.470") align 8 %14, ptr noundef nonnull align 8 dereferenceable(120) %39) #5
  %40 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6vectorISt4pairIPN7DynexCN12WalletRecordENS1_28TransactionOutputInformationEESaIS5_EE12emplace_backIJRKSt21piecewise_construct_tSt5tupleIJRS3_EESC_IJRS4_EEEEERS5_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 1 dereferenceable(1) @_ZSt19piecewise_construct, ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %41 unwind label %42

41:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  br label %44

42:                                               ; preds = %37
  %43 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  br label %69

44:                                               ; preds = %.lr.ph, %41
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7DynexCN28TransactionOutputInformationESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %46 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7DynexCN11WalletGreen10WalletOutsESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  %47 = getelementptr inbounds i8, ptr %46, i64 8
  %48 = call ptr @_ZNSt6vectorIN7DynexCN28TransactionOutputInformationESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %47) #5
  store ptr %48, ptr %12, align 8
  %49 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7DynexCN28TransactionOutputInformationESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  br i1 %49, label %.lr.ph, label %._crit_edge, !llvm.loop !16

50:                                               ; preds = %.lr.ph43, %61
  %.041 = phi i64 [ 0, %.lr.ph43 ], [ %62, %61 ]
  %51 = call noundef zeroext i1 @_ZNK16ShuffleGeneratorImN6Crypto13random_engineImEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(73) %15)
  br i1 %51, label %.critedge, label %52

52:                                               ; preds = %50
  %53 = invoke noundef i64 @_ZN16ShuffleGeneratorImN6Crypto13random_engineImEEEclEv(ptr noundef nonnull align 8 dereferenceable(73) %15)
          to label %54 unwind label %64

54:                                               ; preds = %52
  %55 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6vectorISt4pairIPN7DynexCN12WalletRecordENS1_28TransactionOutputInformationEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %53) #5
  %56 = getelementptr inbounds i8, ptr %55, i64 8
  %57 = getelementptr inbounds i8, ptr %55, i64 16
  %58 = load i64, ptr %57, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %17) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %17, ptr noundef nonnull align 8 dereferenceable(120) %56, i64 120, i1 false), !tbaa.struct !20
  %59 = load ptr, ptr %55, align 8, !tbaa !25
  store ptr %59, ptr %22, align 8, !tbaa !26
  %60 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6vectorIN7DynexCN11WalletGreen16OutputToTransferESaIS2_EE12emplace_backIJS2_EEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(128) %17)
          to label %61 unwind label %66

61:                                               ; preds = %54
  %62 = add i64 %58, %.041
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %17) #5
  %63 = icmp ult i64 %62, %1
  br i1 %63, label %50, label %.critedge, !llvm.loop !28

64:                                               ; preds = %52
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %68

66:                                               ; preds = %54
  %67 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %17) #5
  br label %68

.critedge:                                        ; preds = %61, %50, %._crit_edge40
  %.0.lcssa = phi i64 [ 0, %._crit_edge40 ], [ %.041, %50 ], [ %62, %61 ]
  call void @_ZN16ShuffleGeneratorImN6Crypto13random_engineImEEED2Ev(ptr noundef nonnull align 8 dereferenceable(73) %15) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %15) #5
  call void @_ZNSt6vectorISt4pairIPN7DynexCN12WalletRecordENS1_28TransactionOutputInformationEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  call void @_ZNSt6vectorISt4pairIPN7DynexCN12WalletRecordENS1_28TransactionOutputInformationEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  ret i64 %.0.lcssa

68:                                               ; preds = %64, %66
  %.pn = phi { ptr, i32 } [ %67, %66 ], [ %65, %64 ]
  call void @_ZN16ShuffleGeneratorImN6Crypto13random_engineImEEED2Ev(ptr noundef nonnull align 8 dereferenceable(73) %15) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %15) #5
  br label %69

69:                                               ; preds = %68, %42
  %.pn34 = phi { ptr, i32 } [ %43, %42 ], [ %.pn, %68 ]
  call void @_ZNSt6vectorISt4pairIPN7DynexCN12WalletRecordENS1_28TransactionOutputInformationEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  call void @_ZNSt6vectorISt4pairIPN7DynexCN12WalletRecordENS1_28TransactionOutputInformationEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  resume { ptr, i32 } %.pn34
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPN7DynexCN11WalletGreen10WalletOutsESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(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 ptr @_ZNSt6vectorIN7DynexCN11WalletGreen10WalletOutsESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZSt16forward_as_tupleIJRPN7DynexCN12WalletRecordEEESt5tupleIJDpOT_EES7_(ptr dead_on_unwind noalias writable sret(%"class.std::tuple.467") align 8, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZSt16forward_as_tupleIJRN7DynexCN28TransactionOutputInformationEEESt5tupleIJDpOT_EES6_(ptr dead_on_unwind noalias writable sret(%"class.std::tuple.470") align 8, ptr noundef nonnull align 8 dereferenceable(120)) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN16ShuffleGeneratorImN6Crypto13random_engineImEEEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(73), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6vectorISt4pairIPN7DynexCN12WalletRecordENS1_28TransactionOutputInformationEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN16ShuffleGeneratorImN6Crypto13random_engineImEEEclEv(ptr noundef nonnull align 8 dereferenceable(73)) local_unnamed_addr #4 align 2

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

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

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

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 = { 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 #4 = { 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 #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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !12, i64 8}
!8 = !{!"_ZTSN7DynexCN28TransactionOutputInformationE", !9, i64 0, !12, i64 8, !13, i64 16, !13, i64 20, !14, i64 24, !15, i64 56, !10, i64 88}
!9 = !{!"_ZTSN7DynexCN16TransactionTypes10OutputTypeE", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"long", !10, i64 0}
!13 = !{!"int", !10, i64 0}
!14 = !{!"_ZTSN6Crypto4HashE", !10, i64 0}
!15 = !{!"_ZTSN6Crypto9PublicKeyE", !10, i64 0}
!16 = distinct !{!16, !6}
!17 = !{!18, !12, i64 16}
!18 = !{!"_ZTSSt4pairIPN7DynexCN12WalletRecordENS0_28TransactionOutputInformationEE", !19, i64 0, !8, i64 8}
!19 = !{!"any pointer", !10, i64 0}
!20 = !{i64 0, i64 1, !21, i64 8, i64 8, !22, i64 16, i64 4, !23, i64 20, i64 4, !23, i64 24, i64 32, !24, i64 56, i64 32, !24, i64 88, i64 32, !24}
!21 = !{!9, !9, i64 0}
!22 = !{!12, !12, i64 0}
!23 = !{!13, !13, i64 0}
!24 = !{!10, !10, i64 0}
!25 = !{!19, !19, i64 0}
!26 = !{!27, !19, i64 120}
!27 = !{!"_ZTSN7DynexCN11WalletGreen16OutputToTransferE", !8, i64 0, !19, i64 120}
!28 = distinct !{!28, !6}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,PromotePass,ReassociatePass,SROAPass,SimplifyCFGPass