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

%"class.__gnu_cxx::__normal_iterator.459" = type { ptr }
%"struct.DynexCN::TransactionTypes::InputKeyInfo" = type { i64, %"class.std::vector.443", %"struct.DynexCN::TransactionTypes::OutputKeyInfo" }
%"class.std::vector.443" = type { %"struct.std::_Vector_base.444" }
%"struct.std::_Vector_base.444" = type { %"struct.std::_Vector_base<DynexCN::TransactionTypes::GlobalOutput, std::allocator<DynexCN::TransactionTypes::GlobalOutput>>::_Vector_impl" }
%"struct.std::_Vector_base<DynexCN::TransactionTypes::GlobalOutput, std::allocator<DynexCN::TransactionTypes::GlobalOutput>>::_Vector_impl" = type { %"struct.std::_Vector_base<DynexCN::TransactionTypes::GlobalOutput, std::allocator<DynexCN::TransactionTypes::GlobalOutput>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DynexCN::TransactionTypes::GlobalOutput, std::allocator<DynexCN::TransactionTypes::GlobalOutput>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.DynexCN::TransactionTypes::OutputKeyInfo" = type { %"struct.Crypto::PublicKey", i64, i64 }
%"struct.Crypto::PublicKey" = type { [32 x i8] }
%"class.__gnu_cxx::__normal_iterator.489" = type { ptr }
%class.anon.490 = type { i8 }
%"struct.DynexCN::TransactionTypes::GlobalOutput" = type { %"struct.Crypto::PublicKey", i32 }
%"class.__gnu_cxx::__normal_iterator.497" = type { ptr }
%class.anon.498 = type { ptr }
%"class.__gnu_cxx::__normal_iterator.499" = type { ptr }
%"struct.DynexCN::WalletGreen::InputInfo" = type { %"struct.DynexCN::TransactionTypes::InputKeyInfo", ptr, %"struct.DynexCN::KeyPair" }
%"struct.DynexCN::KeyPair" = type { %"struct.Crypto::PublicKey", %"struct.Crypto::SecretKey" }
%"struct.Crypto::SecretKey" = type { [32 x 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] }
%union.anon.208 = type { i32, [28 x i8] }
%"struct.DynexCN::COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_outs_for_amount" = type { i64, %"class.std::vector.492" }
%"class.std::vector.492" = type { %"struct.std::_Vector_base.493" }
%"struct.std::_Vector_base.493" = type { %"struct.std::_Vector_base<DynexCN::COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_out_entry, std::allocator<DynexCN::COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_out_entry>>::_Vector_impl" }
%"struct.std::_Vector_base<DynexCN::COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_out_entry, std::allocator<DynexCN::COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_out_entry>>::_Vector_impl" = type { %"struct.std::_Vector_base<DynexCN::COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_out_entry, std::allocator<DynexCN::COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_out_entry>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DynexCN::COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_out_entry, std::allocator<DynexCN::COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_out_entry>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.DynexCN::COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_out_entry" = type { i64, %"struct.Crypto::PublicKey" }

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: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7DynexCN11WalletGreen13prepareInputsERKSt6vectorINS0_16OutputToTransferESaIS2_EERS1_INS_58COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_outs_for_amountESaIS7_EEmRS1_INS0_9InputInfoESaISB_EE(ptr noundef nonnull align 8 dereferenceable(1872) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %3, ptr noundef nonnull align 8 dereferenceable(24) %4) #3 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator.459", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.459", align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca %"struct.DynexCN::TransactionTypes::InputKeyInfo", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator.489", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator.489", align 8
  %20 = alloca %class.anon.490, align 1
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator.489", align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator.489", align 8
  %26 = alloca ptr, align 8
  %27 = alloca %"struct.DynexCN::TransactionTypes::GlobalOutput", align 4
  %28 = alloca %"class.__gnu_cxx::__normal_iterator.497", align 8
  %29 = alloca %"class.__gnu_cxx::__normal_iterator.497", align 8
  %30 = alloca %"class.__gnu_cxx::__normal_iterator.497", align 8
  %31 = alloca %class.anon.498, align 8
  %32 = alloca %"struct.DynexCN::TransactionTypes::GlobalOutput", align 4
  %33 = alloca %"class.__gnu_cxx::__normal_iterator.497", align 8
  %34 = alloca %"class.__gnu_cxx::__normal_iterator.499", align 8
  %35 = alloca %"class.__gnu_cxx::__normal_iterator.497", align 8
  %36 = alloca %"struct.DynexCN::WalletGreen::InputInfo", align 8
  %37 = alloca %"struct.DynexCN::KeyPair", align 1
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i64 %3, ptr %9, align 8, !tbaa !9
  store ptr %4, ptr %10, align 8, !tbaa !5
  %38 = load ptr, ptr %6, align 8
  store i64 0, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  store i64 0, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %39 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %39, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %40 = load ptr, ptr %12, align 8, !tbaa !5
  %41 = call ptr @_ZNKSt6vectorIN7DynexCN11WalletGreen16OutputToTransferESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #7
  %42 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.459", ptr %13, i32 0, i32 0
  store ptr %41, ptr %42, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %43 = load ptr, ptr %12, align 8, !tbaa !5
  %44 = call ptr @_ZNKSt6vectorIN7DynexCN11WalletGreen16OutputToTransferESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #7
  %45 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.459", ptr %14, i32 0, i32 0
  store ptr %44, ptr %45, align 8
  br label %46

46:                                               ; preds = %203, %5
  %47 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN7DynexCN11WalletGreen16OutputToTransferESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  br i1 %47, label %49, label %48

48:                                               ; preds = %46
  store i32 2, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %220

49:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %50 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN7DynexCN11WalletGreen16OutputToTransferESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  store ptr %50, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 80, ptr %17) #7
  call void @_ZN7DynexCN16TransactionTypes12InputKeyInfoC2Ev(ptr noundef nonnull align 8 dereferenceable(80) %17) #7
  %51 = load ptr, ptr %16, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.DynexCN::WalletGreen::OutputToTransfer", ptr %51, i32 0, i32 0
  %53 = getelementptr inbounds %"struct.DynexCN::TransactionOutputInformation", ptr %52, i32 0, i32 1
  %54 = load i64, ptr %53, align 8, !tbaa !11
  %55 = getelementptr inbounds %"struct.DynexCN::TransactionTypes::InputKeyInfo", ptr %17, i32 0, i32 0
  store i64 %54, ptr %55, align 8, !tbaa !18
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  %57 = call noundef i64 @_ZNKSt6vectorIN7DynexCN58COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_outs_for_amountESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %56) #7
  %58 = icmp ne i64 %57, 0
  br i1 %58, label %59, label %137

59:                                               ; preds = %49
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  %61 = load i64, ptr %11, align 8, !tbaa !9
  %62 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7DynexCN58COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_outs_for_amountESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %60, i64 noundef %61) #7
  %63 = getelementptr inbounds %"struct.DynexCN::COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_outs_for_amount", ptr %62, i32 0, i32 1
  %64 = call ptr @_ZNSt6vectorIN7DynexCN52COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_out_entryESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %63) #7
  %65 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.489", ptr %18, i32 0, i32 0
  store ptr %64, ptr %65, align 8
  %66 = load ptr, ptr %8, align 8, !tbaa !5
  %67 = load i64, ptr %11, align 8, !tbaa !9
  %68 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7DynexCN58COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_outs_for_amountESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %66, i64 noundef %67) #7
  %69 = getelementptr inbounds %"struct.DynexCN::COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_outs_for_amount", ptr %68, i32 0, i32 1
  %70 = call ptr @_ZNSt6vectorIN7DynexCN52COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_out_entryESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %69) #7
  %71 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.489", ptr %19, i32 0, i32 0
  store ptr %70, ptr %71, align 8
  %72 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.489", ptr %18, i32 0, i32 0
  %73 = load ptr, ptr %72, align 8
  %74 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.489", ptr %19, i32 0, i32 0
  %75 = load ptr, ptr %74, align 8
  invoke void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPN7DynexCN52COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_out_entryESt6vectorIS3_SaIS3_EEEEZNS2_11WalletGreen13prepareInputsERKS5_INS9_16OutputToTransferESaISA_EERS5_INS2_58COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_outs_for_amountESaISF_EEmRS5_INS9_9InputInfoESaISJ_EEE3$_0EvT_SO_T0_"(ptr %73, ptr %75)
          to label %76 unwind label %90

76:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %77 = load ptr, ptr %8, align 8, !tbaa !5
  %78 = load i64, ptr %11, align 8, !tbaa !9
  %79 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7DynexCN58COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_outs_for_amountESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %77, i64 noundef %78) #7
  %80 = getelementptr inbounds %"struct.DynexCN::COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_outs_for_amount", ptr %79, i32 0, i32 1
  store ptr %80, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %81 = load ptr, ptr %23, align 8, !tbaa !5
  %82 = call ptr @_ZNSt6vectorIN7DynexCN52COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_out_entryESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %81) #7
  %83 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.489", ptr %24, i32 0, i32 0
  store ptr %82, ptr %83, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %84 = load ptr, ptr %23, align 8, !tbaa !5
  %85 = call ptr @_ZNSt6vectorIN7DynexCN52COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_out_entryESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %84) #7
  %86 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.489", ptr %25, i32 0, i32 0
  store ptr %85, ptr %86, align 8
  br label %87

87:                                               ; preds = %133, %76
  %88 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7DynexCN52COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_out_entryESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %25) #7
  br i1 %88, label %94, label %89

89:                                               ; preds = %87
  store i32 4, ptr %15, align 4
  br label %135

90:                                               ; preds = %59
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %21, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %22, align 4
  br label %219

94:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %95 = call noundef nonnull align 1 dereferenceable(40) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7DynexCN52COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_out_entryESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #7
  store ptr %95, ptr %26, align 8, !tbaa !5
  %96 = load ptr, ptr %16, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.DynexCN::WalletGreen::OutputToTransfer", ptr %96, i32 0, i32 0
  %98 = getelementptr inbounds %"struct.DynexCN::TransactionOutputInformation", ptr %97, i32 0, i32 2
  %99 = load i32, ptr %98, align 8, !tbaa !25
  %100 = zext i32 %99 to i64
  %101 = load ptr, ptr %26, align 8, !tbaa !5
  %102 = getelementptr inbounds %"struct.DynexCN::COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_out_entry", ptr %101, i32 0, i32 0
  %103 = load i64, ptr %102, align 1, !tbaa !26
  %104 = icmp eq i64 %100, %103
  br i1 %104, label %105, label %106

105:                                              ; preds = %94
  store i32 5, ptr %15, align 4
  br label %130

106:                                              ; preds = %94
  call void @llvm.lifetime.start.p0(i64 36, ptr %27) #7
  %107 = load ptr, ptr %26, align 8, !tbaa !5
  %108 = getelementptr inbounds %"struct.DynexCN::COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_out_entry", ptr %107, i32 0, i32 0
  %109 = load i64, ptr %108, align 1, !tbaa !26
  %110 = trunc i64 %109 to i32
  %111 = getelementptr inbounds %"struct.DynexCN::TransactionTypes::GlobalOutput", ptr %27, i32 0, i32 1
  store i32 %110, ptr %111, align 4, !tbaa !28
  %112 = load ptr, ptr %26, align 8, !tbaa !5
  %113 = getelementptr inbounds %"struct.DynexCN::COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_out_entry", ptr %112, i32 0, i32 1
  %114 = getelementptr inbounds %"struct.DynexCN::TransactionTypes::GlobalOutput", ptr %27, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %114, ptr align 1 %113, i64 32, i1 false), !tbaa.struct !30
  %115 = getelementptr inbounds %"struct.DynexCN::TransactionTypes::InputKeyInfo", ptr %17, i32 0, i32 1
  invoke void @_ZNSt6vectorIN7DynexCN16TransactionTypes12GlobalOutputESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %115, ptr noundef nonnull align 4 dereferenceable(36) %27)
          to label %116 unwind label %122

116:                                              ; preds = %106
  %117 = getelementptr inbounds %"struct.DynexCN::TransactionTypes::InputKeyInfo", ptr %17, i32 0, i32 1
  %118 = call noundef i64 @_ZNKSt6vectorIN7DynexCN16TransactionTypes12GlobalOutputESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %117) #7
  %119 = load i64, ptr %9, align 8, !tbaa !9
  %120 = icmp uge i64 %118, %119
  br i1 %120, label %121, label %126

121:                                              ; preds = %116
  store i32 4, ptr %15, align 4
  br label %127

122:                                              ; preds = %106
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %21, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 36, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %219

126:                                              ; preds = %116
  store i32 0, ptr %15, align 4
  br label %127

127:                                              ; preds = %126, %121
  call void @llvm.lifetime.end.p0(i64 36, ptr %27) #7
  %128 = load i32, ptr %15, align 4
  switch i32 %128, label %130 [
    i32 0, label %129
  ]

129:                                              ; preds = %127
  store i32 0, ptr %15, align 4
  br label %130

130:                                              ; preds = %129, %127, %105
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  %131 = load i32, ptr %15, align 4
  switch i32 %131, label %135 [
    i32 0, label %132
    i32 5, label %133
  ]

132:                                              ; preds = %130
  br label %133

133:                                              ; preds = %132, %130
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7DynexCN52COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_out_entryESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #7
  br label %87

135:                                              ; preds = %130, %89
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %136

136:                                              ; preds = %135
  br label %137

137:                                              ; preds = %136, %49
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %138 = getelementptr inbounds %"struct.DynexCN::TransactionTypes::InputKeyInfo", ptr %17, i32 0, i32 1
  %139 = call ptr @_ZNSt6vectorIN7DynexCN16TransactionTypes12GlobalOutputESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %138) #7
  %140 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.497", ptr %29, i32 0, i32 0
  store ptr %139, ptr %140, align 8
  %141 = getelementptr inbounds %"struct.DynexCN::TransactionTypes::InputKeyInfo", ptr %17, i32 0, i32 1
  %142 = call ptr @_ZNSt6vectorIN7DynexCN16TransactionTypes12GlobalOutputESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %141) #7
  %143 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.497", ptr %30, i32 0, i32 0
  store ptr %142, ptr %143, align 8
  %144 = getelementptr inbounds %class.anon.498, ptr %31, i32 0, i32 0
  %145 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %145, ptr %144, align 8, !tbaa !5
  %146 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.497", ptr %29, i32 0, i32 0
  %147 = load ptr, ptr %146, align 8
  %148 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.497", ptr %30, i32 0, i32 0
  %149 = load ptr, ptr %148, align 8
  %150 = getelementptr inbounds %class.anon.498, ptr %31, i32 0, i32 0
  %151 = load ptr, ptr %150, align 8
  %152 = invoke ptr @"_ZSt7find_ifIN9__gnu_cxx17__normal_iteratorIPN7DynexCN16TransactionTypes12GlobalOutputESt6vectorIS4_SaIS4_EEEEZNS2_11WalletGreen13prepareInputsERKS6_INSA_16OutputToTransferESaISB_EERS6_INS2_58COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_outs_for_amountESaISG_EEmRS6_INSA_9InputInfoESaISK_EEE3$_1ET_SP_SP_T0_"(ptr %147, ptr %149, ptr %151)
          to label %153 unwind label %205

153:                                              ; preds = %137
  %154 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.497", ptr %28, i32 0, i32 0
  store ptr %152, ptr %154, align 8
  call void @llvm.lifetime.start.p0(i64 36, ptr %32) #7
  %155 = load ptr, ptr %16, align 8, !tbaa !5
  %156 = getelementptr inbounds %"struct.DynexCN::WalletGreen::OutputToTransfer", ptr %155, i32 0, i32 0
  %157 = getelementptr inbounds %"struct.DynexCN::TransactionOutputInformation", ptr %156, i32 0, i32 2
  %158 = load i32, ptr %157, align 8, !tbaa !25
  %159 = getelementptr inbounds %"struct.DynexCN::TransactionTypes::GlobalOutput", ptr %32, i32 0, i32 1
  store i32 %158, ptr %159, align 4, !tbaa !28
  %160 = load ptr, ptr %16, align 8, !tbaa !5
  %161 = getelementptr inbounds %"struct.DynexCN::WalletGreen::OutputToTransfer", ptr %160, i32 0, i32 0
  %162 = getelementptr inbounds %"struct.DynexCN::TransactionOutputInformation", ptr %161, i32 0, i32 6
  %163 = getelementptr inbounds %"struct.DynexCN::TransactionTypes::GlobalOutput", ptr %32, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %163, ptr align 8 %162, i64 32, i1 false), !tbaa.struct !30
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #7
  %164 = getelementptr inbounds %"struct.DynexCN::TransactionTypes::InputKeyInfo", ptr %17, i32 0, i32 1
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKN7DynexCN16TransactionTypes12GlobalOutputESt6vectorIS3_SaIS3_EEEC2IPS3_vEERKNS0_IT_S8_EE(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull align 8 dereferenceable(8) %28) #7
  %165 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.499", ptr %34, i32 0, i32 0
  %166 = load ptr, ptr %165, align 8
  %167 = invoke ptr @_ZNSt6vectorIN7DynexCN16TransactionTypes12GlobalOutputESaIS2_EE6insertEN9__gnu_cxx17__normal_iteratorIPKS2_S4_EERS7_(ptr noundef nonnull align 8 dereferenceable(24) %164, ptr %166, ptr noundef nonnull align 4 dereferenceable(36) %32)
          to label %168 unwind label %209

168:                                              ; preds = %153
  %169 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.497", ptr %33, i32 0, i32 0
  store ptr %167, ptr %169, align 8
  %170 = load ptr, ptr %16, align 8, !tbaa !5
  %171 = getelementptr inbounds %"struct.DynexCN::WalletGreen::OutputToTransfer", ptr %170, i32 0, i32 0
  %172 = getelementptr inbounds %"struct.DynexCN::TransactionOutputInformation", ptr %171, i32 0, i32 5
  %173 = getelementptr inbounds %"struct.DynexCN::TransactionTypes::InputKeyInfo", ptr %17, i32 0, i32 2
  %174 = getelementptr inbounds %"struct.DynexCN::TransactionTypes::OutputKeyInfo", ptr %173, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %174, ptr align 8 %172, i64 32, i1 false), !tbaa.struct !30
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #7
  %175 = getelementptr inbounds %"struct.DynexCN::TransactionTypes::InputKeyInfo", ptr %17, i32 0, i32 1
  %176 = call ptr @_ZNSt6vectorIN7DynexCN16TransactionTypes12GlobalOutputESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %175) #7
  %177 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.497", ptr %35, i32 0, i32 0
  store ptr %176, ptr %177, align 8
  %178 = call noundef i64 @_ZN9__gnu_cxxmiIPN7DynexCN16TransactionTypes12GlobalOutputESt6vectorIS3_SaIS3_EEEENS_17__normal_iteratorIT_T0_E15difference_typeERKSB_SE_(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull align 8 dereferenceable(8) %35) #7
  %179 = getelementptr inbounds %"struct.DynexCN::TransactionTypes::InputKeyInfo", ptr %17, i32 0, i32 2
  %180 = getelementptr inbounds %"struct.DynexCN::TransactionTypes::OutputKeyInfo", ptr %179, i32 0, i32 1
  store i64 %178, ptr %180, align 8, !tbaa !32
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #7
  %181 = load ptr, ptr %16, align 8, !tbaa !5
  %182 = getelementptr inbounds %"struct.DynexCN::WalletGreen::OutputToTransfer", ptr %181, i32 0, i32 0
  %183 = getelementptr inbounds %"struct.DynexCN::TransactionOutputInformation", ptr %182, i32 0, i32 3
  %184 = load i32, ptr %183, align 4, !tbaa !33
  %185 = zext i32 %184 to i64
  %186 = getelementptr inbounds %"struct.DynexCN::TransactionTypes::InputKeyInfo", ptr %17, i32 0, i32 2
  %187 = getelementptr inbounds %"struct.DynexCN::TransactionTypes::OutputKeyInfo", ptr %186, i32 0, i32 2
  store i64 %185, ptr %187, align 8, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 152, ptr %36) #7
  call void @_ZN7DynexCN11WalletGreen9InputInfoC2Ev(ptr noundef nonnull align 8 dereferenceable(152) %36) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %37) #7
  call void @llvm.memset.p0.i64(ptr align 1 %37, i8 0, i64 64, i1 false)
  %188 = getelementptr inbounds %"struct.DynexCN::KeyPair", ptr %37, i32 0, i32 0
  %189 = getelementptr inbounds %"struct.Crypto::PublicKey", ptr %188, i32 0, i32 0
  %190 = getelementptr inbounds %"struct.DynexCN::KeyPair", ptr %37, i32 0, i32 1
  %191 = getelementptr inbounds %"struct.Crypto::SecretKey", ptr %190, i32 0, i32 0
  %192 = getelementptr inbounds %"struct.DynexCN::WalletGreen::InputInfo", ptr %36, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %192, ptr align 1 %37, i64 64, i1 false), !tbaa.struct !35
  call void @llvm.lifetime.end.p0(i64 64, ptr %37) #7
  %193 = getelementptr inbounds %"struct.DynexCN::WalletGreen::InputInfo", ptr %36, i32 0, i32 0
  %194 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZN7DynexCN16TransactionTypes12InputKeyInfoaSEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %193, ptr noundef nonnull align 8 dereferenceable(80) %17) #7
  %195 = load ptr, ptr %16, align 8, !tbaa !5
  %196 = getelementptr inbounds %"struct.DynexCN::WalletGreen::OutputToTransfer", ptr %195, i32 0, i32 1
  %197 = load ptr, ptr %196, align 8, !tbaa !36
  %198 = getelementptr inbounds %"struct.DynexCN::WalletGreen::InputInfo", ptr %36, i32 0, i32 1
  store ptr %197, ptr %198, align 8, !tbaa !37
  %199 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIN7DynexCN11WalletGreen9InputInfoESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %199, ptr noundef nonnull align 8 dereferenceable(152) %36)
          to label %200 unwind label %213

200:                                              ; preds = %168
  %201 = load i64, ptr %11, align 8, !tbaa !9
  %202 = add i64 %201, 1
  store i64 %202, ptr %11, align 8, !tbaa !9
  call void @_ZN7DynexCN11WalletGreen9InputInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %36) #7
  call void @llvm.lifetime.end.p0(i64 152, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 36, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @_ZN7DynexCN16TransactionTypes12InputKeyInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %17) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %203

203:                                              ; preds = %200
  %204 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN7DynexCN11WalletGreen16OutputToTransferESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  br label %46

205:                                              ; preds = %137
  %206 = landingpad { ptr, i32 }
          cleanup
  %207 = extractvalue { ptr, i32 } %206, 0
  store ptr %207, ptr %21, align 8
  %208 = extractvalue { ptr, i32 } %206, 1
  store i32 %208, ptr %22, align 4
  br label %218

209:                                              ; preds = %153
  %210 = landingpad { ptr, i32 }
          cleanup
  %211 = extractvalue { ptr, i32 } %210, 0
  store ptr %211, ptr %21, align 8
  %212 = extractvalue { ptr, i32 } %210, 1
  store i32 %212, ptr %22, align 4
  br label %217

213:                                              ; preds = %168
  %214 = landingpad { ptr, i32 }
          cleanup
  %215 = extractvalue { ptr, i32 } %214, 0
  store ptr %215, ptr %21, align 8
  %216 = extractvalue { ptr, i32 } %214, 1
  store i32 %216, ptr %22, align 4
  call void @_ZN7DynexCN11WalletGreen9InputInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %36) #7
  call void @llvm.lifetime.end.p0(i64 152, ptr %36) #7
  br label %217

217:                                              ; preds = %213, %209
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 36, ptr %32) #7
  br label %218

218:                                              ; preds = %217, %205
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  br label %219

219:                                              ; preds = %218, %122, %90
  call void @_ZN7DynexCN16TransactionTypes12InputKeyInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %17) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %221

220:                                              ; preds = %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  ret void

221:                                              ; preds = %219
  %222 = load ptr, ptr %21, align 8
  %223 = load i32, ptr %22, align 4
  %224 = insertvalue { ptr, i32 } poison, ptr %222, 0
  %225 = insertvalue { ptr, i32 } %224, i32 %223, 1
  resume { ptr, i32 } %225
}

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7DynexCN16TransactionTypes12InputKeyInfoC2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #5 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPN7DynexCN52COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_out_entryESt6vectorIS3_SaIS3_EEEEZNS2_11WalletGreen13prepareInputsERKS5_INS9_16OutputToTransferESaISA_EERS5_INS2_58COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_outs_for_amountESaISF_EEmRS5_INS9_9InputInfoESaISJ_EEE3$_0EvT_SO_T0_"(ptr, ptr) #6

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden ptr @"_ZSt7find_ifIN9__gnu_cxx17__normal_iteratorIPN7DynexCN16TransactionTypes12GlobalOutputESt6vectorIS4_SaIS4_EEEEZNS2_11WalletGreen13prepareInputsERKS6_INSA_16OutputToTransferESaISB_EERS6_INS2_58COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_outs_for_amountESaISG_EEmRS6_INSA_9InputInfoESaISK_EEE3$_1ET_SP_SP_T0_"(ptr, ptr, ptr) #6

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN9__gnu_cxxmiIPN7DynexCN16TransactionTypes12GlobalOutputESt6vectorIS3_SaIS3_EEEENS_17__normal_iteratorIT_T0_E15difference_typeERKSB_SE_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7DynexCN11WalletGreen9InputInfoC2Ev(ptr noundef nonnull align 8 dereferenceable(152)) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(80) ptr @_ZN7DynexCN16TransactionTypes12InputKeyInfoaSEOS1_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(80)) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN7DynexCN11WalletGreen9InputInfoESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(152)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7DynexCN11WalletGreen9InputInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(152)) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7DynexCN16TransactionTypes12InputKeyInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #5 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { 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 #5 = { 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 #6 = { 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 #7 = { 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 = !{!"_ZTSN7DynexCN11WalletGreen16OutputToTransferE", !13, i64 0, !6, i64 120}
!13 = !{!"_ZTSN7DynexCN28TransactionOutputInformationE", !14, i64 0, !10, i64 8, !15, i64 16, !15, i64 20, !16, i64 24, !17, i64 56, !7, i64 88}
!14 = !{!"_ZTSN7DynexCN16TransactionTypes10OutputTypeE", !7, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTSN6Crypto4HashE", !7, i64 0}
!17 = !{!"_ZTSN6Crypto9PublicKeyE", !7, i64 0}
!18 = !{!19, !10, i64 0}
!19 = !{!"_ZTSN7DynexCN16TransactionTypes12InputKeyInfoE", !10, i64 0, !20, i64 8, !24, i64 32}
!20 = !{!"_ZTSSt6vectorIN7DynexCN16TransactionTypes12GlobalOutputESaIS2_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIN7DynexCN16TransactionTypes12GlobalOutputESaIS2_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN7DynexCN16TransactionTypes12GlobalOutputESaIS2_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIN7DynexCN16TransactionTypes12GlobalOutputESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!"_ZTSN7DynexCN16TransactionTypes13OutputKeyInfoE", !17, i64 0, !10, i64 32, !10, i64 40}
!25 = !{!12, !15, i64 16}
!26 = !{!27, !10, i64 0}
!27 = !{!"_ZTSN7DynexCN52COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_out_entryE", !10, i64 0, !17, i64 8}
!28 = !{!29, !15, i64 32}
!29 = !{!"_ZTSN7DynexCN16TransactionTypes12GlobalOutputE", !17, i64 0, !15, i64 32}
!30 = !{i64 0, i64 32, !31}
!31 = !{!7, !7, i64 0}
!32 = !{!19, !10, i64 64}
!33 = !{!12, !15, i64 20}
!34 = !{!19, !10, i64 72}
!35 = !{i64 0, i64 32, !31, i64 32, i64 32, !31}
!36 = !{!12, !6, i64 120}
!37 = !{!38, !6, i64 80}
!38 = !{!"_ZTSN7DynexCN11WalletGreen9InputInfoE", !19, i64 0, !6, i64 80, !39, i64 88}
!39 = !{!"_ZTSN7DynexCN7KeyPairE", !17, i64 0, !40, i64 32}
!40 = !{!"_ZTSN6Crypto9SecretKeyE", !7, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.__gnu_cxx::__normal_iterator.459" = type { ptr }
%"struct.DynexCN::TransactionTypes::InputKeyInfo" = type { i64, %"class.std::vector.443", %"struct.DynexCN::TransactionTypes::OutputKeyInfo" }
%"class.std::vector.443" = type { %"struct.std::_Vector_base.444" }
%"struct.std::_Vector_base.444" = type { %"struct.std::_Vector_base<DynexCN::TransactionTypes::GlobalOutput, std::allocator<DynexCN::TransactionTypes::GlobalOutput>>::_Vector_impl" }
%"struct.std::_Vector_base<DynexCN::TransactionTypes::GlobalOutput, std::allocator<DynexCN::TransactionTypes::GlobalOutput>>::_Vector_impl" = type { %"struct.std::_Vector_base<DynexCN::TransactionTypes::GlobalOutput, std::allocator<DynexCN::TransactionTypes::GlobalOutput>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DynexCN::TransactionTypes::GlobalOutput, std::allocator<DynexCN::TransactionTypes::GlobalOutput>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.DynexCN::TransactionTypes::OutputKeyInfo" = type { %"struct.Crypto::PublicKey", i64, i64 }
%"struct.Crypto::PublicKey" = type { [32 x i8] }
%"class.__gnu_cxx::__normal_iterator.489" = type { ptr }
%"struct.DynexCN::TransactionTypes::GlobalOutput" = type { %"struct.Crypto::PublicKey", i32 }
%"class.__gnu_cxx::__normal_iterator.497" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.499" = type { ptr }
%"struct.DynexCN::WalletGreen::InputInfo" = type { %"struct.DynexCN::TransactionTypes::InputKeyInfo", ptr, %"struct.DynexCN::KeyPair" }
%"struct.DynexCN::KeyPair" = type { %"struct.Crypto::PublicKey", %"struct.Crypto::SecretKey" }
%"struct.Crypto::SecretKey" = type { [32 x i8] }

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 nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7DynexCN11WalletGreen13prepareInputsERKSt6vectorINS0_16OutputToTransferESaIS2_EERS1_INS_58COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_outs_for_amountESaIS7_EEmRS1_INS0_9InputInfoESaISB_EE(ptr nocapture noundef nonnull readnone align 8 dereferenceable(1872) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %3, ptr noundef nonnull align 8 dereferenceable(24) %4) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.459", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.459", align 8
  %8 = alloca %"struct.DynexCN::TransactionTypes::InputKeyInfo", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.489", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.489", align 8
  %11 = alloca %"struct.DynexCN::TransactionTypes::GlobalOutput", align 4
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.497", align 8
  %13 = alloca %"struct.DynexCN::TransactionTypes::GlobalOutput", align 4
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.497", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.499", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.497", align 8
  %17 = alloca %"struct.DynexCN::WalletGreen::InputInfo", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %18 = tail call ptr @_ZNKSt6vectorIN7DynexCN11WalletGreen16OutputToTransferESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  store ptr %18, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %19 = tail call ptr @_ZNKSt6vectorIN7DynexCN11WalletGreen16OutputToTransferESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  store ptr %19, ptr %7, align 8
  %20 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN7DynexCN11WalletGreen16OutputToTransferESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  br i1 %20, label %.lr.ph47, label %._crit_edge

.lr.ph47:                                         ; preds = %5
  %21 = getelementptr inbounds i8, ptr %11, i64 32
  %22 = getelementptr inbounds i8, ptr %8, i64 8
  %23 = getelementptr inbounds i8, ptr %13, i64 32
  %24 = getelementptr inbounds i8, ptr %8, i64 32
  %25 = getelementptr inbounds i8, ptr %8, i64 64
  %26 = getelementptr inbounds i8, ptr %8, i64 72
  %27 = getelementptr inbounds i8, ptr %17, i64 88
  %28 = getelementptr inbounds i8, ptr %17, i64 80
  br label %29

._crit_edge:                                      ; preds = %86, %5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  ret void

29:                                               ; preds = %.lr.ph47, %86
  %.046 = phi i64 [ 0, %.lr.ph47 ], [ %87, %86 ]
  %30 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN7DynexCN11WalletGreen16OutputToTransferESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %8) #7
  call void @_ZN7DynexCN16TransactionTypes12InputKeyInfoC2Ev(ptr noundef nonnull align 8 dereferenceable(80) %8) #7
  %31 = getelementptr inbounds i8, ptr %30, i64 8
  %32 = load i64, ptr %31, align 8, !tbaa !5
  store i64 %32, ptr %8, align 8, !tbaa !16
  %33 = call noundef i64 @_ZNKSt6vectorIN7DynexCN58COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_outs_for_amountESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  %.not = icmp eq i64 %33, 0
  br i1 %.not, label %66, label %34

34:                                               ; preds = %29
  %35 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7DynexCN58COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_outs_for_amountESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.046) #7
  %36 = getelementptr inbounds i8, ptr %35, i64 8
  %37 = call ptr @_ZNSt6vectorIN7DynexCN52COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_out_entryESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #7
  %38 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7DynexCN58COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_outs_for_amountESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.046) #7
  %39 = getelementptr inbounds i8, ptr %38, i64 8
  %40 = call ptr @_ZNSt6vectorIN7DynexCN52COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_out_entryESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #7
  invoke void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPN7DynexCN52COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_out_entryESt6vectorIS3_SaIS3_EEEEZNS2_11WalletGreen13prepareInputsERKS5_INS9_16OutputToTransferESaISA_EERS5_INS2_58COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_outs_for_amountESaISF_EEmRS5_INS9_9InputInfoESaISJ_EEE3$_0EvT_SO_T0_"(ptr %37, ptr %40)
          to label %41 unwind label %48

41:                                               ; preds = %34
  %42 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN7DynexCN58COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_outs_for_amountESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.046) #7
  %43 = getelementptr inbounds i8, ptr %42, i64 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %44 = call ptr @_ZNSt6vectorIN7DynexCN52COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_out_entryESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #7
  store ptr %44, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %45 = call ptr @_ZNSt6vectorIN7DynexCN52COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_out_entryESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #7
  store ptr %45, ptr %10, align 8
  %46 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7DynexCN52COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_out_entryESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  br i1 %46, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %41
  %47 = getelementptr inbounds i8, ptr %30, i64 16
  br label %50

48:                                               ; preds = %34
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %98

50:                                               ; preds = %.lr.ph, %63
  %51 = call noundef nonnull align 1 dereferenceable(40) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7DynexCN52COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_out_entryESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %52 = load i32, ptr %47, align 8, !tbaa !23
  %53 = zext i32 %52 to i64
  %54 = load i64, ptr %51, align 1, !tbaa !24
  %55 = icmp eq i64 %54, %53
  br i1 %55, label %63, label %56

56:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %11) #7
  %57 = trunc i64 %54 to i32
  store i32 %57, ptr %21, align 4, !tbaa !26
  %58 = getelementptr inbounds i8, ptr %51, i64 8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(32) %11, ptr noundef nonnull align 1 dereferenceable(32) %58, i64 32, i1 false), !tbaa.struct !28
  invoke void @_ZNSt6vectorIN7DynexCN16TransactionTypes12GlobalOutputESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 4 dereferenceable(36) %11)
          to label %61 unwind label %59

59:                                               ; preds = %56
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  br label %98

61:                                               ; preds = %56
  %62 = call noundef i64 @_ZNKSt6vectorIN7DynexCN16TransactionTypes12GlobalOutputESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #7
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %11) #7
  br label %.loopexit

63:                                               ; preds = %50
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7DynexCN52COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_out_entryESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %65 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7DynexCN52COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_out_entryESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  br i1 %65, label %50, label %.loopexit

.loopexit:                                        ; preds = %63, %41, %61
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  br label %66

66:                                               ; preds = %.loopexit, %29
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  %67 = call ptr @_ZNSt6vectorIN7DynexCN16TransactionTypes12GlobalOutputESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #7
  %68 = call ptr @_ZNSt6vectorIN7DynexCN16TransactionTypes12GlobalOutputESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #7
  %69 = invoke ptr @"_ZSt7find_ifIN9__gnu_cxx17__normal_iteratorIPN7DynexCN16TransactionTypes12GlobalOutputESt6vectorIS4_SaIS4_EEEEZNS2_11WalletGreen13prepareInputsERKS6_INSA_16OutputToTransferESaISB_EERS6_INS2_58COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_outs_for_amountESaISG_EEmRS6_INSA_9InputInfoESaISK_EEE3$_1ET_SP_SP_T0_"(ptr %67, ptr %68, ptr nonnull %30)
          to label %70 unwind label %90

70:                                               ; preds = %66
  store ptr %69, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %13) #7
  %71 = getelementptr inbounds i8, ptr %30, i64 16
  %72 = load i32, ptr %71, align 8, !tbaa !23
  store i32 %72, ptr %23, align 4, !tbaa !26
  %73 = getelementptr inbounds i8, ptr %30, i64 88
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(32) %73, i64 32, i1 false), !tbaa.struct !28
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKN7DynexCN16TransactionTypes12GlobalOutputESt6vectorIS3_SaIS3_EEEC2IPS3_vEERKNS0_IT_S8_EE(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  %74 = load ptr, ptr %15, align 8
  %75 = invoke ptr @_ZNSt6vectorIN7DynexCN16TransactionTypes12GlobalOutputESaIS2_EE6insertEN9__gnu_cxx17__normal_iteratorIPKS2_S4_EERS7_(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr %74, ptr noundef nonnull align 4 dereferenceable(36) %13)
          to label %76 unwind label %92

76:                                               ; preds = %70
  store ptr %75, ptr %14, align 8
  %77 = getelementptr inbounds i8, ptr %30, i64 56
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull align 8 dereferenceable(32) %77, i64 32, i1 false), !tbaa.struct !28
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #7
  %78 = call ptr @_ZNSt6vectorIN7DynexCN16TransactionTypes12GlobalOutputESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #7
  store ptr %78, ptr %16, align 8
  %79 = call noundef i64 @_ZN9__gnu_cxxmiIPN7DynexCN16TransactionTypes12GlobalOutputESt6vectorIS3_SaIS3_EEEENS_17__normal_iteratorIT_T0_E15difference_typeERKSB_SE_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  store i64 %79, ptr %25, align 8, !tbaa !30
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  %80 = getelementptr inbounds i8, ptr %30, i64 20
  %81 = load i32, ptr %80, align 4, !tbaa !31
  %82 = zext i32 %81 to i64
  store i64 %82, ptr %26, align 8, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 152, ptr nonnull %17) #7
  call void @_ZN7DynexCN11WalletGreen9InputInfoC2Ev(ptr noundef nonnull align 8 dereferenceable(152) %17) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %27, i8 0, i64 64, i1 false)
  %83 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZN7DynexCN16TransactionTypes12InputKeyInfoaSEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %17, ptr noundef nonnull align 8 dereferenceable(80) %8) #7
  %84 = getelementptr inbounds i8, ptr %30, i64 120
  %85 = load ptr, ptr %84, align 8, !tbaa !33
  store ptr %85, ptr %28, align 8, !tbaa !34
  invoke void @_ZNSt6vectorIN7DynexCN11WalletGreen9InputInfoESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(152) %17)
          to label %86 unwind label %94

86:                                               ; preds = %76
  %87 = add i64 %.046, 1
  call void @_ZN7DynexCN11WalletGreen9InputInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %17) #7
  call void @llvm.lifetime.end.p0(i64 152, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @_ZN7DynexCN16TransactionTypes12InputKeyInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %8) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %8) #7
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN7DynexCN11WalletGreen16OutputToTransferESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  %89 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN7DynexCN11WalletGreen16OutputToTransferESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  br i1 %89, label %29, label %._crit_edge

90:                                               ; preds = %66
  %91 = landingpad { ptr, i32 }
          cleanup
  br label %97

92:                                               ; preds = %70
  %93 = landingpad { ptr, i32 }
          cleanup
  br label %96

94:                                               ; preds = %76
  %95 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7DynexCN11WalletGreen9InputInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %17) #7
  call void @llvm.lifetime.end.p0(i64 152, ptr nonnull %17) #7
  br label %96

96:                                               ; preds = %94, %92
  %.pn = phi { ptr, i32 } [ %95, %94 ], [ %93, %92 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %13) #7
  br label %97

97:                                               ; preds = %96, %90
  %.pn.pn = phi { ptr, i32 } [ %.pn, %96 ], [ %91, %90 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  br label %98

98:                                               ; preds = %97, %59, %48
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %97 ], [ %60, %59 ], [ %49, %48 ]
  call void @_ZN7DynexCN16TransactionTypes12InputKeyInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %8) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  resume { ptr, i32 } %.pn.pn.pn
}

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7DynexCN16TransactionTypes12InputKeyInfoC2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #5 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPN7DynexCN52COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_out_entryESt6vectorIS3_SaIS3_EEEEZNS2_11WalletGreen13prepareInputsERKS5_INS9_16OutputToTransferESaISA_EERS5_INS2_58COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_outs_for_amountESaISF_EEmRS5_INS9_9InputInfoESaISJ_EEE3$_0EvT_SO_T0_"(ptr, ptr) local_unnamed_addr #6

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden ptr @"_ZSt7find_ifIN9__gnu_cxx17__normal_iteratorIPN7DynexCN16TransactionTypes12GlobalOutputESt6vectorIS4_SaIS4_EEEEZNS2_11WalletGreen13prepareInputsERKS6_INSA_16OutputToTransferESaISB_EERS6_INS2_58COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_outs_for_amountESaISG_EEmRS6_INSA_9InputInfoESaISK_EEE3$_1ET_SP_SP_T0_"(ptr, ptr, ptr) local_unnamed_addr #6

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN9__gnu_cxxmiIPN7DynexCN16TransactionTypes12GlobalOutputESt6vectorIS3_SaIS3_EEEENS_17__normal_iteratorIT_T0_E15difference_typeERKSB_SE_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7DynexCN11WalletGreen9InputInfoC2Ev(ptr noundef nonnull align 8 dereferenceable(152)) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(80) ptr @_ZN7DynexCN16TransactionTypes12InputKeyInfoaSEOS1_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN7DynexCN11WalletGreen9InputInfoESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7DynexCN11WalletGreen9InputInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(152)) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7DynexCN16TransactionTypes12InputKeyInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #5 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 nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { 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 #5 = { 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 #6 = { 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 #7 = { 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, !11, i64 8}
!6 = !{!"_ZTSN7DynexCN11WalletGreen16OutputToTransferE", !7, i64 0, !15, i64 120}
!7 = !{!"_ZTSN7DynexCN28TransactionOutputInformationE", !8, i64 0, !11, i64 8, !12, i64 16, !12, i64 20, !13, i64 24, !14, i64 56, !9, i64 88}
!8 = !{!"_ZTSN7DynexCN16TransactionTypes10OutputTypeE", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"long", !9, i64 0}
!12 = !{!"int", !9, i64 0}
!13 = !{!"_ZTSN6Crypto4HashE", !9, i64 0}
!14 = !{!"_ZTSN6Crypto9PublicKeyE", !9, i64 0}
!15 = !{!"any pointer", !9, i64 0}
!16 = !{!17, !11, i64 0}
!17 = !{!"_ZTSN7DynexCN16TransactionTypes12InputKeyInfoE", !11, i64 0, !18, i64 8, !22, i64 32}
!18 = !{!"_ZTSSt6vectorIN7DynexCN16TransactionTypes12GlobalOutputESaIS2_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIN7DynexCN16TransactionTypes12GlobalOutputESaIS2_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIN7DynexCN16TransactionTypes12GlobalOutputESaIS2_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN7DynexCN16TransactionTypes12GlobalOutputESaIS2_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!22 = !{!"_ZTSN7DynexCN16TransactionTypes13OutputKeyInfoE", !14, i64 0, !11, i64 32, !11, i64 40}
!23 = !{!6, !12, i64 16}
!24 = !{!25, !11, i64 0}
!25 = !{!"_ZTSN7DynexCN52COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS_out_entryE", !11, i64 0, !14, i64 8}
!26 = !{!27, !12, i64 32}
!27 = !{!"_ZTSN7DynexCN16TransactionTypes12GlobalOutputE", !14, i64 0, !12, i64 32}
!28 = !{i64 0, i64 32, !29}
!29 = !{!9, !9, i64 0}
!30 = !{!17, !11, i64 64}
!31 = !{!6, !12, i64 20}
!32 = !{!17, !11, i64 72}
!33 = !{!6, !15, i64 120}
!34 = !{!35, !15, i64 80}
!35 = !{!"_ZTSN7DynexCN11WalletGreen9InputInfoE", !17, i64 0, !15, i64 80, !36, i64 88}
!36 = !{!"_ZTSN7DynexCN7KeyPairE", !14, i64 0, !37, i64 32}
!37 = !{!"_ZTSN6Crypto9SecretKeyE", !9, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass