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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.Crypto::Hash" = type { [32 x i8] }
%"struct.Crypto::SecretKey" = type { [32 x i8] }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }
%"struct.DynexCN::WalletLegacyTransaction" = type <{ i64, i64, i64, i64, i64, i64, %"struct.Crypto::Hash", %"class.boost::optional.109", i8, [2 x i8], i32, i64, %"class.std::__cxx11::basic_string", i8, [7 x i8] }>
%"class.boost::optional.109" = type { %"class.boost::optional_detail::optional_base.110" }
%"class.boost::optional_detail::optional_base.110" = type { i8, %"class.boost::optional_detail::aligned_storage.111" }
%"class.boost::optional_detail::aligned_storage.111" = type { %"union.boost::optional_detail::aligned_storage<Crypto::SecretKey>::dummy_u" }
%"union.boost::optional_detail::aligned_storage<Crypto::SecretKey>::dummy_u" = type { [32 x i8] }
%"class.std::locale" = type { ptr }
%"struct.DynexCN::WalletLegacyTransfer" = type { %"class.std::__cxx11::basic_string", i64 }
%"struct.Tools::wallet_rpc::Transfer" = type { i64, i8, %"class.std::__cxx11::basic_string", i64, i64, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i64, i64, i64, %"class.std::__cxx11::basic_string" }
%"class.std::vector.47" = type { %"struct.std::_Vector_base.48" }
%"struct.std::_Vector_base.48" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.113" = type { ptr }
%class.anon.125 = type { ptr }
%"struct.Tools::wallet_rpc::transfer_destination" = type { i64, %"class.std::__cxx11::basic_string" }
%"struct.Tools::wallet_rpc::COMMAND_RPC_GET_TRANSACTION::response" = type { %"struct.Tools::wallet_rpc::Transfer", %"class.std::__cxx11::list" }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<Tools::wallet_rpc::transfer_destination, std::allocator<Tools::wallet_rpc::transfer_destination>>::_List_impl" }
%"struct.std::__cxx11::_List_base<Tools::wallet_rpc::transfer_destination, std::allocator<Tools::wallet_rpc::transfer_destination>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%"class.Tools::wallet_rpc_server" = type { %"class.DynexCN::HttpServer", %"class.Logging::LoggerRef", ptr, ptr, i16, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", ptr, %"class.std::__cxx11::basic_string", ptr, %"class.System::Event" }
%"class.DynexCN::HttpServer" = type { ptr, ptr, %"class.System::ContextGroup", %"class.Logging::LoggerRef", %"class.System::TcpListener", %"class.std::unordered_set", %"class.std::__cxx11::basic_string" }
%"class.System::ContextGroup" = type { ptr, %"struct.System::NativeContextGroup" }
%"struct.System::NativeContextGroup" = type { ptr, ptr, ptr, ptr }
%"class.System::TcpListener" = type { ptr, i32, ptr }
%"class.std::unordered_set" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.Logging::LoggerRef" = type { ptr, %"class.std::__cxx11::basic_string" }
%"class.System::Event" = type { ptr, i8, ptr, ptr }
%"struct.Tools::wallet_rpc::COMMAND_RPC_GET_TRANSACTION::request" = type { %"class.std::__cxx11::basic_string" }

@_ZN7DynexCNL9NULL_HASHE = external hidden global %"struct.Crypto::Hash", align 1
@_ZN7DynexCNL15NULL_SECRET_KEYE = external hidden global %"struct.Crypto::SecretKey", align 1
@.str.16 = external hidden unnamed_addr constant [1 x i8], align 1
@_ZTISt9exception = external constant ptr
@_ZTIN7DynexCN7JsonRpc12JsonRpcErrorE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.53 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [39 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #1

declare ptr @__cxa_begin_catch(ptr)

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #2 align 2

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

declare void @__cxa_end_catch()

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN5Tools17wallet_rpc_server18on_get_transactionERKNS_10wallet_rpc27COMMAND_RPC_GET_TRANSACTION7requestERNS2_8responseE(ptr noundef nonnull align 8 dereferenceable(448) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(208) %2) #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::allocator", align 1
  %15 = alloca i1, align 1
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i32, align 4
  %19 = alloca %"struct.DynexCN::WalletLegacyTransaction", align 8
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca %"class.std::locale", align 8
  %22 = alloca %"class.std::__cxx11::basic_string", align 8
  %23 = alloca %"class.std::allocator", align 1
  %24 = alloca %"struct.DynexCN::WalletLegacyTransfer", align 8
  %25 = alloca %"struct.Tools::wallet_rpc::Transfer", align 8
  %26 = alloca %"class.std::__cxx11::basic_string", align 8
  %27 = alloca %"class.std::vector.47", align 8
  %28 = alloca %"class.__gnu_cxx::__normal_iterator.113", align 8
  %29 = alloca %"class.__gnu_cxx::__normal_iterator.113", align 8
  %30 = alloca %class.anon.125, align 8
  %31 = alloca %class.anon.125, align 8
  %32 = alloca %"struct.Crypto::Hash", align 1
  %33 = alloca %"class.std::__cxx11::basic_string", align 8
  %34 = alloca %"class.std::allocator", align 1
  %35 = alloca i1, align 1
  %36 = alloca i1, align 1
  %37 = alloca %"class.std::__cxx11::basic_string", align 8
  %38 = alloca %"class.std::allocator", align 1
  %39 = alloca i1, align 1
  %40 = alloca i1, align 1
  %41 = alloca i64, align 8
  %42 = alloca %"struct.DynexCN::WalletLegacyTransfer", align 8
  %43 = alloca %"struct.Tools::wallet_rpc::transfer_destination", align 8
  %44 = alloca %"class.std::__cxx11::basic_string", align 8
  %45 = alloca %"class.std::__cxx11::basic_string", align 8
  %46 = alloca %"class.std::allocator", align 1
  %47 = alloca i1, align 1
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %48 = load ptr, ptr %5, align 8
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.Tools::wallet_rpc::COMMAND_RPC_GET_TRANSACTION::response", ptr %49, i32 0, i32 1
  call void @_ZNSt7__cxx114listIN5Tools10wallet_rpc20transfer_destinationESaIS3_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %50) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
  %51 = getelementptr inbounds %"class.Tools::wallet_rpc_server", ptr %48, i32 0, i32 3
  %52 = load ptr, ptr %51, align 8, !tbaa !9
  %53 = load ptr, ptr %52, align 8, !tbaa !28
  %54 = getelementptr inbounds ptr, ptr %53, i64 10
  %55 = load ptr, ptr %54, align 8
  %56 = invoke noundef i32 %55(ptr noundef nonnull align 8 dereferenceable(8) %52)
          to label %57 unwind label %59

57:                                               ; preds = %3
  %58 = zext i32 %56 to i64
  store i64 %58, ptr %8, align 8, !tbaa !30
  br label %97

59:                                               ; preds = %3
  %60 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %9, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %10, align 4
  br label %63

63:                                               ; preds = %59
  %64 = load i32, ptr %10, align 4
  %65 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #9
  %66 = icmp eq i32 %64, %65
  br i1 %66, label %67, label %416

67:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #9
  %68 = load ptr, ptr %9, align 8
  %69 = call ptr @__cxa_begin_catch(ptr %68) #9
  store ptr %69, ptr %11, align 8
  store i1 true, ptr %15, align 1
  %70 = call ptr @__cxa_allocate_exception(i64 48) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef @.str.53, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %71 unwind label %79

71:                                               ; preds = %67
  %72 = load ptr, ptr %11, align 8, !tbaa !5
  %73 = load ptr, ptr %72, align 8, !tbaa !28
  %74 = getelementptr inbounds ptr, ptr %73, i64 2
  %75 = load ptr, ptr %74, align 8
  %76 = call noundef ptr %75(ptr noundef nonnull align 8 dereferenceable(8) %72) #9
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %12, ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef %76)
          to label %77 unwind label %83

77:                                               ; preds = %71
  invoke void @_ZN7DynexCN7JsonRpc12JsonRpcErrorC1EiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(48) %70, i32 noundef -1, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %78 unwind label %87

78:                                               ; preds = %77
  store i1 false, ptr %15, align 1
  invoke void @__cxa_throw(ptr %70, ptr @_ZTIN7DynexCN7JsonRpc12JsonRpcErrorE, ptr @_ZN7DynexCN7JsonRpc12JsonRpcErrorD2Ev) #10
          to label %425 unwind label %87

79:                                               ; preds = %67
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %9, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %10, align 4
  br label %92

83:                                               ; preds = %71
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %9, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %10, align 4
  br label %91

87:                                               ; preds = %78, %77
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %9, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %10, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #9
  br label %91

91:                                               ; preds = %87, %83
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #9
  br label %92

92:                                               ; preds = %91, %79
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #9
  %93 = load i1, ptr %15, align 1
  br i1 %93, label %94, label %95

94:                                               ; preds = %92
  call void @__cxa_free_exception(ptr %70) #9
  br label %95

95:                                               ; preds = %94, %92
  invoke void @__cxa_end_catch()
          to label %96 unwind label %422

96:                                               ; preds = %95
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  br label %416

97:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  %98 = getelementptr inbounds %"class.Tools::wallet_rpc_server", ptr %48, i32 0, i32 2
  %99 = load ptr, ptr %98, align 8, !tbaa !31
  %100 = load ptr, ptr %99, align 8, !tbaa !28
  %101 = getelementptr inbounds ptr, ptr %100, i64 18
  %102 = load ptr, ptr %101, align 8
  %103 = call noundef i64 %102(ptr noundef nonnull align 8 dereferenceable(8) %99)
  store i64 %103, ptr %16, align 8, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  store i64 0, ptr %17, align 8, !tbaa !30
  br label %104

104:                                              ; preds = %383, %97
  %105 = load i64, ptr %17, align 8, !tbaa !30
  %106 = load i64, ptr %16, align 8, !tbaa !30
  %107 = icmp ult i64 %105, %106
  br i1 %107, label %109, label %108

108:                                              ; preds = %104
  store i32 2, ptr %18, align 4
  br label %387

109:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 168, ptr %19) #9
  call void @_ZN7DynexCN23WalletLegacyTransactionC2Ev(ptr noundef nonnull align 8 dereferenceable(161) %19)
  %110 = getelementptr inbounds %"class.Tools::wallet_rpc_server", ptr %48, i32 0, i32 2
  %111 = load ptr, ptr %110, align 8, !tbaa !31
  %112 = load i64, ptr %17, align 8, !tbaa !30
  %113 = load ptr, ptr %111, align 8, !tbaa !28
  %114 = getelementptr inbounds ptr, ptr %113, i64 24
  %115 = load ptr, ptr %114, align 8
  %116 = invoke noundef zeroext i1 %115(ptr noundef nonnull align 8 dereferenceable(8) %111, i64 noundef %112, ptr noundef nonnull align 8 dereferenceable(161) %19)
          to label %117 unwind label %130

117:                                              ; preds = %109
  %118 = getelementptr inbounds %"struct.DynexCN::WalletLegacyTransaction", ptr %19, i32 0, i32 13
  %119 = load i8, ptr %118, align 8, !tbaa !32
  %120 = icmp eq i8 %119, 3
  br i1 %120, label %129, label %121

121:                                              ; preds = %117
  %122 = getelementptr inbounds %"struct.DynexCN::WalletLegacyTransaction", ptr %19, i32 0, i32 13
  %123 = load i8, ptr %122, align 8, !tbaa !32
  %124 = icmp eq i8 %123, 1
  br i1 %124, label %129, label %125

125:                                              ; preds = %121
  %126 = getelementptr inbounds %"struct.DynexCN::WalletLegacyTransaction", ptr %19, i32 0, i32 13
  %127 = load i8, ptr %126, align 8, !tbaa !32
  %128 = icmp eq i8 %127, 4
  br i1 %128, label %129, label %134

129:                                              ; preds = %125, %121, %117
  store i32 4, ptr %18, align 4
  br label %380

130:                                              ; preds = %109
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %9, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %10, align 4
  br label %386

134:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #9
  %135 = getelementptr inbounds %"struct.DynexCN::WalletLegacyTransaction", ptr %19, i32 0, i32 6
  invoke void @_ZN6Common8podToHexIN6Crypto4HashEEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %20, ptr noundef nonnull align 1 dereferenceable(32) %135)
          to label %136 unwind label %163

136:                                              ; preds = %134
  %137 = load ptr, ptr %6, align 8, !tbaa !5
  %138 = getelementptr inbounds %"struct.Tools::wallet_rpc::COMMAND_RPC_GET_TRANSACTION::request", ptr %137, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #9
  call void @_ZNSt6localeC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #9
  %139 = invoke noundef zeroext i1 @_ZN5boost9algorithm7iequalsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_EEbRKT_RKT0_RKSt6locale(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(32) %138, ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %140 unwind label %167

140:                                              ; preds = %136
  call void @_ZNSt6localeD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #9
  br i1 %139, label %141, label %379

141:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef @.str.16, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %142 unwind label %172

142:                                              ; preds = %141
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #9
  %143 = getelementptr inbounds %"struct.DynexCN::WalletLegacyTransaction", ptr %19, i32 0, i32 2
  %144 = load i64, ptr %143, align 8, !tbaa !39
  %145 = icmp slt i64 %144, 0
  br i1 %145, label %146, label %180

146:                                              ; preds = %142
  %147 = getelementptr inbounds %"struct.DynexCN::WalletLegacyTransaction", ptr %19, i32 0, i32 1
  %148 = load i64, ptr %147, align 8, !tbaa !40
  %149 = icmp ugt i64 %148, 0
  br i1 %149, label %150, label %180

150:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 40, ptr %24) #9
  call void @_ZN7DynexCN20WalletLegacyTransferC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %24) #9
  %151 = getelementptr inbounds %"class.Tools::wallet_rpc_server", ptr %48, i32 0, i32 2
  %152 = load ptr, ptr %151, align 8, !tbaa !31
  %153 = getelementptr inbounds %"struct.DynexCN::WalletLegacyTransaction", ptr %19, i32 0, i32 0
  %154 = load i64, ptr %153, align 8, !tbaa !41
  %155 = load ptr, ptr %152, align 8, !tbaa !28
  %156 = getelementptr inbounds ptr, ptr %155, i64 25
  %157 = load ptr, ptr %156, align 8
  %158 = invoke noundef zeroext i1 %157(ptr noundef nonnull align 8 dereferenceable(8) %152, i64 noundef %154, ptr noundef nonnull align 8 dereferenceable(40) %24)
          to label %159 unwind label %176

159:                                              ; preds = %150
  %160 = getelementptr inbounds %"struct.DynexCN::WalletLegacyTransfer", ptr %24, i32 0, i32 0
  %161 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(32) %160)
          to label %162 unwind label %176

162:                                              ; preds = %159
  call void @_ZN7DynexCN20WalletLegacyTransferD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %24) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %24) #9
  br label %180

163:                                              ; preds = %134
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %9, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %10, align 4
  br label %171

167:                                              ; preds = %136
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %9, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %10, align 4
  call void @_ZNSt6localeD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #9
  br label %171

171:                                              ; preds = %167, %163
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #9
  br label %386

172:                                              ; preds = %141
  %173 = landingpad { ptr, i32 }
          cleanup
  %174 = extractvalue { ptr, i32 } %173, 0
  store ptr %174, ptr %9, align 8
  %175 = extractvalue { ptr, i32 } %173, 1
  store i32 %175, ptr %10, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #9
  br label %378

176:                                              ; preds = %159, %150
  %177 = landingpad { ptr, i32 }
          cleanup
  %178 = extractvalue { ptr, i32 } %177, 0
  store ptr %178, ptr %9, align 8
  %179 = extractvalue { ptr, i32 } %177, 1
  store i32 %179, ptr %10, align 4
  call void @_ZN7DynexCN20WalletLegacyTransferD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %24) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %24) #9
  br label %377

180:                                              ; preds = %162, %146, %142
  call void @llvm.lifetime.start.p0(i64 184, ptr %25) #9
  call void @_ZN5Tools10wallet_rpc8TransferC2Ev(ptr noundef nonnull align 8 dereferenceable(184) %25) #9
  %181 = getelementptr inbounds %"struct.DynexCN::WalletLegacyTransaction", ptr %19, i32 0, i32 11
  %182 = load i64, ptr %181, align 8, !tbaa !42
  %183 = getelementptr inbounds %"struct.Tools::wallet_rpc::Transfer", ptr %25, i32 0, i32 0
  store i64 %182, ptr %183, align 8, !tbaa !43
  %184 = getelementptr inbounds %"struct.DynexCN::WalletLegacyTransaction", ptr %19, i32 0, i32 2
  %185 = load i64, ptr %184, align 8, !tbaa !39
  %186 = icmp slt i64 %185, 0
  %187 = getelementptr inbounds %"struct.Tools::wallet_rpc::Transfer", ptr %25, i32 0, i32 1
  %188 = zext i1 %186 to i8
  store i8 %188, ptr %187, align 8, !tbaa !45
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #9
  %189 = getelementptr inbounds %"struct.DynexCN::WalletLegacyTransaction", ptr %19, i32 0, i32 6
  invoke void @_ZN6Common8podToHexIN6Crypto4HashEEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %26, ptr noundef nonnull align 1 dereferenceable(32) %189)
          to label %190 unwind label %296

190:                                              ; preds = %180
  %191 = getelementptr inbounds %"struct.Tools::wallet_rpc::Transfer", ptr %25, i32 0, i32 2
  %192 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %191, ptr noundef nonnull align 8 dereferenceable(32) %26) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #9
  %193 = getelementptr inbounds %"struct.DynexCN::WalletLegacyTransaction", ptr %19, i32 0, i32 2
  %194 = load i64, ptr %193, align 8, !tbaa !39
  %195 = invoke noundef i64 @_ZSt3absl(i64 noundef %194)
          to label %196 unwind label %300

196:                                              ; preds = %190
  %197 = getelementptr inbounds %"struct.Tools::wallet_rpc::Transfer", ptr %25, i32 0, i32 3
  store i64 %195, ptr %197, align 8, !tbaa !46
  %198 = getelementptr inbounds %"struct.DynexCN::WalletLegacyTransaction", ptr %19, i32 0, i32 3
  %199 = load i64, ptr %198, align 8, !tbaa !47
  %200 = getelementptr inbounds %"struct.Tools::wallet_rpc::Transfer", ptr %25, i32 0, i32 4
  store i64 %199, ptr %200, align 8, !tbaa !48
  %201 = getelementptr inbounds %"struct.Tools::wallet_rpc::Transfer", ptr %25, i32 0, i32 6
  %202 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %201, ptr noundef nonnull align 8 dereferenceable(32) %22)
          to label %203 unwind label %300

203:                                              ; preds = %196
  %204 = getelementptr inbounds %"struct.DynexCN::WalletLegacyTransaction", ptr %19, i32 0, i32 10
  %205 = load i32, ptr %204, align 4, !tbaa !49
  %206 = zext i32 %205 to i64
  %207 = getelementptr inbounds %"struct.Tools::wallet_rpc::Transfer", ptr %25, i32 0, i32 7
  store i64 %206, ptr %207, align 8, !tbaa !50
  %208 = getelementptr inbounds %"struct.DynexCN::WalletLegacyTransaction", ptr %19, i32 0, i32 5
  %209 = load i64, ptr %208, align 8, !tbaa !51
  %210 = getelementptr inbounds %"struct.Tools::wallet_rpc::Transfer", ptr %25, i32 0, i32 8
  store i64 %209, ptr %210, align 8, !tbaa !52
  %211 = getelementptr inbounds %"struct.Tools::wallet_rpc::Transfer", ptr %25, i32 0, i32 5
  %212 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %211, ptr noundef @.str.16)
          to label %213 unwind label %300

213:                                              ; preds = %203
  %214 = getelementptr inbounds %"struct.DynexCN::WalletLegacyTransaction", ptr %19, i32 0, i32 10
  %215 = load i32, ptr %214, align 4, !tbaa !49
  %216 = icmp ne i32 %215, -1
  br i1 %216, label %217, label %223

217:                                              ; preds = %213
  %218 = load i64, ptr %8, align 8, !tbaa !30
  %219 = getelementptr inbounds %"struct.DynexCN::WalletLegacyTransaction", ptr %19, i32 0, i32 10
  %220 = load i32, ptr %219, align 4, !tbaa !49
  %221 = zext i32 %220 to i64
  %222 = sub i64 %218, %221
  br label %224

223:                                              ; preds = %213
  br label %224

224:                                              ; preds = %223, %217
  %225 = phi i64 [ %222, %217 ], [ 0, %223 ]
  %226 = getelementptr inbounds %"struct.Tools::wallet_rpc::Transfer", ptr %25, i32 0, i32 9
  store i64 %225, ptr %226, align 8, !tbaa !53
  call void @llvm.lifetime.start.p0(i64 24, ptr %27) #9
  call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #9
  %227 = getelementptr inbounds %"struct.DynexCN::WalletLegacyTransaction", ptr %19, i32 0, i32 12
  %228 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %227) #9
  invoke void @_ZNSt6vectorIhSaIhEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %228)
          to label %229 unwind label %304

229:                                              ; preds = %224
  %230 = getelementptr inbounds %"struct.DynexCN::WalletLegacyTransaction", ptr %19, i32 0, i32 12
  %231 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %230) #9
  %232 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.113", ptr %28, i32 0, i32 0
  store ptr %231, ptr %232, align 8
  %233 = getelementptr inbounds %"struct.DynexCN::WalletLegacyTransaction", ptr %19, i32 0, i32 12
  %234 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %233) #9
  %235 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.113", ptr %29, i32 0, i32 0
  store ptr %234, ptr %235, align 8
  %236 = getelementptr inbounds %class.anon.125, ptr %30, i32 0, i32 0
  store ptr %27, ptr %236, align 8, !tbaa !5
  %237 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.113", ptr %28, i32 0, i32 0
  %238 = load ptr, ptr %237, align 8
  %239 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.113", ptr %29, i32 0, i32 0
  %240 = load ptr, ptr %239, align 8
  %241 = getelementptr inbounds %class.anon.125, ptr %30, i32 0, i32 0
  %242 = load ptr, ptr %241, align 8
  %243 = invoke ptr @"_ZSt8for_eachIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEZN5Tools17wallet_rpc_server18on_get_transactionERKNSA_10wallet_rpc27COMMAND_RPC_GET_TRANSACTION7requestERNSD_8responseEE3$_0ET0_T_SL_SK_"(ptr %238, ptr %240, ptr %242)
          to label %244 unwind label %304

244:                                              ; preds = %229
  %245 = getelementptr inbounds %class.anon.125, ptr %31, i32 0, i32 0
  store ptr %243, ptr %245, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %32) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr %33) #9
  store i1 false, ptr %35, align 1
  store i1 false, ptr %36, align 1
  %246 = invoke noundef zeroext i1 @_ZN7DynexCN23getPaymentIdFromTxExtraERKSt6vectorIhSaIhEERN6Crypto4HashE(ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef nonnull align 1 dereferenceable(32) %32)
          to label %247 unwind label %308

247:                                              ; preds = %244
  br i1 %246, label %248, label %253

248:                                              ; preds = %247
  %249 = invoke noundef zeroext i1 @_ZN6CryptoneERKNS_4HashES2_(ptr noundef nonnull align 1 dereferenceable(32) %32, ptr noundef nonnull align 1 dereferenceable(32) @_ZN7DynexCNL9NULL_HASHE)
          to label %250 unwind label %308

250:                                              ; preds = %248
  br i1 %249, label %251, label %253

251:                                              ; preds = %250
  invoke void @_ZN6Common8podToHexIN6Crypto4HashEEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %33, ptr noundef nonnull align 1 dereferenceable(32) %32)
          to label %252 unwind label %308

252:                                              ; preds = %251
  br label %255

253:                                              ; preds = %250, %247
  call void @llvm.lifetime.start.p0(i64 1, ptr %34) #9
  store i1 true, ptr %35, align 1
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #9
  store i1 true, ptr %36, align 1
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef @.str.16, ptr noundef nonnull align 1 dereferenceable(1) %34)
          to label %254 unwind label %312

254:                                              ; preds = %253
  br label %255

255:                                              ; preds = %254, %252
  %256 = getelementptr inbounds %"struct.Tools::wallet_rpc::Transfer", ptr %25, i32 0, i32 5
  %257 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %256, ptr noundef nonnull align 8 dereferenceable(32) %33) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #9
  %258 = load i1, ptr %36, align 1
  br i1 %258, label %259, label %260

259:                                              ; preds = %255
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #9
  br label %260

260:                                              ; preds = %259, %255
  %261 = load i1, ptr %35, align 1
  br i1 %261, label %262, label %263

262:                                              ; preds = %260
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #9
  br label %263

263:                                              ; preds = %262, %260
  call void @llvm.lifetime.end.p0(i64 32, ptr %33) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr %37) #9
  %264 = getelementptr inbounds %"struct.DynexCN::WalletLegacyTransaction", ptr %19, i32 0, i32 7
  store i1 false, ptr %39, align 1
  store i1 false, ptr %40, align 1
  %265 = invoke noundef zeroext i1 @_ZN5boostneIN6Crypto9SecretKeyEEEbRKNS_8optionalIT_EERKS4_(ptr noundef nonnull align 1 dereferenceable(33) %264, ptr noundef nonnull align 1 dereferenceable(32) @_ZN7DynexCNL15NULL_SECRET_KEYE)
          to label %266 unwind label %323

266:                                              ; preds = %263
  br i1 %265, label %267, label %270

267:                                              ; preds = %266
  %268 = getelementptr inbounds %"struct.DynexCN::WalletLegacyTransaction", ptr %19, i32 0, i32 7
  invoke void @_ZN6Common8podToHexIN5boost8optionalIN6Crypto9SecretKeyEEEEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %37, ptr noundef nonnull align 1 dereferenceable(33) %268)
          to label %269 unwind label %323

269:                                              ; preds = %267
  br label %272

270:                                              ; preds = %266
  call void @llvm.lifetime.start.p0(i64 1, ptr %38) #9
  store i1 true, ptr %39, align 1
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %38) #9
  store i1 true, ptr %40, align 1
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %37, ptr noundef @.str.16, ptr noundef nonnull align 1 dereferenceable(1) %38)
          to label %271 unwind label %327

271:                                              ; preds = %270
  br label %272

272:                                              ; preds = %271, %269
  %273 = getelementptr inbounds %"struct.Tools::wallet_rpc::Transfer", ptr %25, i32 0, i32 10
  %274 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %273, ptr noundef nonnull align 8 dereferenceable(32) %37) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #9
  %275 = load i1, ptr %40, align 1
  br i1 %275, label %276, label %277

276:                                              ; preds = %272
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %38) #9
  br label %277

277:                                              ; preds = %276, %272
  %278 = load i1, ptr %39, align 1
  br i1 %278, label %279, label %280

279:                                              ; preds = %277
  call void @llvm.lifetime.end.p0(i64 1, ptr %38) #9
  br label %280

280:                                              ; preds = %279, %277
  call void @llvm.lifetime.end.p0(i64 32, ptr %37) #9
  %281 = load ptr, ptr %7, align 8, !tbaa !5
  %282 = getelementptr inbounds %"struct.Tools::wallet_rpc::COMMAND_RPC_GET_TRANSACTION::response", ptr %281, i32 0, i32 0
  %283 = invoke noundef nonnull align 8 dereferenceable(184) ptr @_ZN5Tools10wallet_rpc8TransferaSERKS1_(ptr noundef nonnull align 8 dereferenceable(184) %282, ptr noundef nonnull align 8 dereferenceable(184) %25)
          to label %284 unwind label %338

284:                                              ; preds = %280
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #9
  %285 = getelementptr inbounds %"struct.DynexCN::WalletLegacyTransaction", ptr %19, i32 0, i32 0
  %286 = load i64, ptr %285, align 8, !tbaa !41
  store i64 %286, ptr %41, align 8, !tbaa !30
  br label %287

287:                                              ; preds = %361, %284
  %288 = load i64, ptr %41, align 8, !tbaa !30
  %289 = getelementptr inbounds %"struct.DynexCN::WalletLegacyTransaction", ptr %19, i32 0, i32 0
  %290 = load i64, ptr %289, align 8, !tbaa !41
  %291 = getelementptr inbounds %"struct.DynexCN::WalletLegacyTransaction", ptr %19, i32 0, i32 1
  %292 = load i64, ptr %291, align 8, !tbaa !40
  %293 = add i64 %290, %292
  %294 = icmp ult i64 %288, %293
  br i1 %294, label %342, label %295

295:                                              ; preds = %287
  store i32 5, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #9
  br label %373

296:                                              ; preds = %180
  %297 = landingpad { ptr, i32 }
          cleanup
  %298 = extractvalue { ptr, i32 } %297, 0
  store ptr %298, ptr %9, align 8
  %299 = extractvalue { ptr, i32 } %297, 1
  store i32 %299, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #9
  br label %376

300:                                              ; preds = %203, %196, %190
  %301 = landingpad { ptr, i32 }
          cleanup
  %302 = extractvalue { ptr, i32 } %301, 0
  store ptr %302, ptr %9, align 8
  %303 = extractvalue { ptr, i32 } %301, 1
  store i32 %303, ptr %10, align 4
  br label %376

304:                                              ; preds = %229, %224
  %305 = landingpad { ptr, i32 }
          cleanup
  %306 = extractvalue { ptr, i32 } %305, 0
  store ptr %306, ptr %9, align 8
  %307 = extractvalue { ptr, i32 } %305, 1
  store i32 %307, ptr %10, align 4
  br label %375

308:                                              ; preds = %251, %248, %244
  %309 = landingpad { ptr, i32 }
          cleanup
  %310 = extractvalue { ptr, i32 } %309, 0
  store ptr %310, ptr %9, align 8
  %311 = extractvalue { ptr, i32 } %309, 1
  store i32 %311, ptr %10, align 4
  br label %322

312:                                              ; preds = %253
  %313 = landingpad { ptr, i32 }
          cleanup
  %314 = extractvalue { ptr, i32 } %313, 0
  store ptr %314, ptr %9, align 8
  %315 = extractvalue { ptr, i32 } %313, 1
  store i32 %315, ptr %10, align 4
  %316 = load i1, ptr %36, align 1
  br i1 %316, label %317, label %318

317:                                              ; preds = %312
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #9
  br label %318

318:                                              ; preds = %317, %312
  %319 = load i1, ptr %35, align 1
  br i1 %319, label %320, label %321

320:                                              ; preds = %318
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #9
  br label %321

321:                                              ; preds = %320, %318
  br label %322

322:                                              ; preds = %321, %308
  call void @llvm.lifetime.end.p0(i64 32, ptr %33) #9
  br label %374

323:                                              ; preds = %267, %263
  %324 = landingpad { ptr, i32 }
          cleanup
  %325 = extractvalue { ptr, i32 } %324, 0
  store ptr %325, ptr %9, align 8
  %326 = extractvalue { ptr, i32 } %324, 1
  store i32 %326, ptr %10, align 4
  br label %337

327:                                              ; preds = %270
  %328 = landingpad { ptr, i32 }
          cleanup
  %329 = extractvalue { ptr, i32 } %328, 0
  store ptr %329, ptr %9, align 8
  %330 = extractvalue { ptr, i32 } %328, 1
  store i32 %330, ptr %10, align 4
  %331 = load i1, ptr %40, align 1
  br i1 %331, label %332, label %333

332:                                              ; preds = %327
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %38) #9
  br label %333

333:                                              ; preds = %332, %327
  %334 = load i1, ptr %39, align 1
  br i1 %334, label %335, label %336

335:                                              ; preds = %333
  call void @llvm.lifetime.end.p0(i64 1, ptr %38) #9
  br label %336

336:                                              ; preds = %335, %333
  br label %337

337:                                              ; preds = %336, %323
  call void @llvm.lifetime.end.p0(i64 32, ptr %37) #9
  br label %374

338:                                              ; preds = %280
  %339 = landingpad { ptr, i32 }
          cleanup
  %340 = extractvalue { ptr, i32 } %339, 0
  store ptr %340, ptr %9, align 8
  %341 = extractvalue { ptr, i32 } %339, 1
  store i32 %341, ptr %10, align 4
  br label %374

342:                                              ; preds = %287
  call void @llvm.lifetime.start.p0(i64 40, ptr %42) #9
  call void @_ZN7DynexCN20WalletLegacyTransferC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %42) #9
  %343 = getelementptr inbounds %"class.Tools::wallet_rpc_server", ptr %48, i32 0, i32 2
  %344 = load ptr, ptr %343, align 8, !tbaa !31
  %345 = load i64, ptr %41, align 8, !tbaa !30
  %346 = load ptr, ptr %344, align 8, !tbaa !28
  %347 = getelementptr inbounds ptr, ptr %346, i64 25
  %348 = load ptr, ptr %347, align 8
  %349 = invoke noundef zeroext i1 %348(ptr noundef nonnull align 8 dereferenceable(8) %344, i64 noundef %345, ptr noundef nonnull align 8 dereferenceable(40) %42)
          to label %350 unwind label %364

350:                                              ; preds = %342
  call void @llvm.lifetime.start.p0(i64 40, ptr %43) #9
  call void @_ZN5Tools10wallet_rpc20transfer_destinationC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %43) #9
  %351 = getelementptr inbounds %"struct.DynexCN::WalletLegacyTransfer", ptr %42, i32 0, i32 1
  %352 = load i64, ptr %351, align 8, !tbaa !54
  %353 = getelementptr inbounds %"struct.Tools::wallet_rpc::transfer_destination", ptr %43, i32 0, i32 0
  store i64 %352, ptr %353, align 8, !tbaa !56
  %354 = getelementptr inbounds %"struct.DynexCN::WalletLegacyTransfer", ptr %42, i32 0, i32 0
  %355 = getelementptr inbounds %"struct.Tools::wallet_rpc::transfer_destination", ptr %43, i32 0, i32 1
  %356 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %355, ptr noundef nonnull align 8 dereferenceable(32) %354)
          to label %357 unwind label %368

357:                                              ; preds = %350
  %358 = load ptr, ptr %7, align 8, !tbaa !5
  %359 = getelementptr inbounds %"struct.Tools::wallet_rpc::COMMAND_RPC_GET_TRANSACTION::response", ptr %358, i32 0, i32 1
  invoke void @_ZNSt7__cxx114listIN5Tools10wallet_rpc20transfer_destinationESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %359, ptr noundef nonnull align 8 dereferenceable(40) %43)
          to label %360 unwind label %368

360:                                              ; preds = %357
  call void @_ZN5Tools10wallet_rpc20transfer_destinationD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %43) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %43) #9
  call void @_ZN7DynexCN20WalletLegacyTransferD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %42) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %42) #9
  br label %361

361:                                              ; preds = %360
  %362 = load i64, ptr %41, align 8, !tbaa !30
  %363 = add i64 %362, 1
  store i64 %363, ptr %41, align 8, !tbaa !30
  br label %287, !llvm.loop !58

364:                                              ; preds = %342
  %365 = landingpad { ptr, i32 }
          cleanup
  %366 = extractvalue { ptr, i32 } %365, 0
  store ptr %366, ptr %9, align 8
  %367 = extractvalue { ptr, i32 } %365, 1
  store i32 %367, ptr %10, align 4
  br label %372

368:                                              ; preds = %357, %350
  %369 = landingpad { ptr, i32 }
          cleanup
  %370 = extractvalue { ptr, i32 } %369, 0
  store ptr %370, ptr %9, align 8
  %371 = extractvalue { ptr, i32 } %369, 1
  store i32 %371, ptr %10, align 4
  call void @_ZN5Tools10wallet_rpc20transfer_destinationD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %43) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %43) #9
  br label %372

372:                                              ; preds = %368, %364
  call void @_ZN7DynexCN20WalletLegacyTransferD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %42) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %42) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #9
  br label %374

373:                                              ; preds = %295
  store i1 true, ptr %4, align 1
  store i32 1, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #9
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #9
  call void @_ZN5Tools10wallet_rpc8TransferD2Ev(ptr noundef nonnull align 8 dereferenceable(184) %25) #9
  call void @llvm.lifetime.end.p0(i64 184, ptr %25) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #9
  br label %380

374:                                              ; preds = %372, %338, %337, %322
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #9
  br label %375

375:                                              ; preds = %374, %304
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #9
  br label %376

376:                                              ; preds = %375, %300, %296
  call void @_ZN5Tools10wallet_rpc8TransferD2Ev(ptr noundef nonnull align 8 dereferenceable(184) %25) #9
  call void @llvm.lifetime.end.p0(i64 184, ptr %25) #9
  br label %377

377:                                              ; preds = %376, %176
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #9
  br label %378

378:                                              ; preds = %377, %172
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #9
  br label %386

379:                                              ; preds = %140
  store i32 0, ptr %18, align 4
  br label %380

380:                                              ; preds = %379, %373, %129
  call void @_ZN7DynexCN23WalletLegacyTransactionD2Ev(ptr noundef nonnull align 8 dereferenceable(161) %19) #9
  call void @llvm.lifetime.end.p0(i64 168, ptr %19) #9
  %381 = load i32, ptr %18, align 4
  switch i32 %381, label %387 [
    i32 0, label %382
    i32 4, label %383
  ]

382:                                              ; preds = %380
  br label %383

383:                                              ; preds = %382, %380
  %384 = load i64, ptr %17, align 8, !tbaa !30
  %385 = add i64 %384, 1
  store i64 %385, ptr %17, align 8, !tbaa !30
  br label %104, !llvm.loop !60

386:                                              ; preds = %378, %171, %130
  call void @_ZN7DynexCN23WalletLegacyTransactionD2Ev(ptr noundef nonnull align 8 dereferenceable(161) %19) #9
  call void @llvm.lifetime.end.p0(i64 168, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  br label %415

387:                                              ; preds = %380, %108
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  %388 = load i32, ptr %18, align 4
  switch i32 %388, label %413 [
    i32 2, label %389
  ]

389:                                              ; preds = %387
  store i1 true, ptr %47, align 1
  %390 = call ptr @__cxa_allocate_exception(i64 48) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr %44) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr %45) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr %46) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %46) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %45, ptr noundef @.str.54, ptr noundef nonnull align 1 dereferenceable(1) %46)
          to label %391 unwind label %396

391:                                              ; preds = %389
  %392 = load ptr, ptr %6, align 8, !tbaa !5
  %393 = getelementptr inbounds %"struct.Tools::wallet_rpc::COMMAND_RPC_GET_TRANSACTION::request", ptr %392, i32 0, i32 0
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_RKS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %44, ptr noundef nonnull align 8 dereferenceable(32) %45, ptr noundef nonnull align 8 dereferenceable(32) %393)
          to label %394 unwind label %400

394:                                              ; preds = %391
  invoke void @_ZN7DynexCN7JsonRpc12JsonRpcErrorC1EiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(48) %390, i32 noundef -1, ptr noundef nonnull align 8 dereferenceable(32) %44)
          to label %395 unwind label %404

395:                                              ; preds = %394
  store i1 false, ptr %47, align 1
  invoke void @__cxa_throw(ptr %390, ptr @_ZTIN7DynexCN7JsonRpc12JsonRpcErrorE, ptr @_ZN7DynexCN7JsonRpc12JsonRpcErrorD2Ev) #10
          to label %425 unwind label %404

396:                                              ; preds = %389
  %397 = landingpad { ptr, i32 }
          cleanup
  %398 = extractvalue { ptr, i32 } %397, 0
  store ptr %398, ptr %9, align 8
  %399 = extractvalue { ptr, i32 } %397, 1
  store i32 %399, ptr %10, align 4
  br label %409

400:                                              ; preds = %391
  %401 = landingpad { ptr, i32 }
          cleanup
  %402 = extractvalue { ptr, i32 } %401, 0
  store ptr %402, ptr %9, align 8
  %403 = extractvalue { ptr, i32 } %401, 1
  store i32 %403, ptr %10, align 4
  br label %408

404:                                              ; preds = %395, %394
  %405 = landingpad { ptr, i32 }
          cleanup
  %406 = extractvalue { ptr, i32 } %405, 0
  store ptr %406, ptr %9, align 8
  %407 = extractvalue { ptr, i32 } %405, 1
  store i32 %407, ptr %10, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %44) #9
  br label %408

408:                                              ; preds = %404, %400
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %45) #9
  br label %409

409:                                              ; preds = %408, %396
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %46) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %46) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %45) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %44) #9
  %410 = load i1, ptr %47, align 1
  br i1 %410, label %411, label %412

411:                                              ; preds = %409
  call void @__cxa_free_exception(ptr %390) #9
  br label %412

412:                                              ; preds = %411, %409
  br label %415

413:                                              ; preds = %387
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  %414 = load i1, ptr %4, align 1
  ret i1 %414

415:                                              ; preds = %412, %386
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  br label %416

416:                                              ; preds = %415, %96, %63
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  br label %417

417:                                              ; preds = %416
  %418 = load ptr, ptr %9, align 8
  %419 = load i32, ptr %10, align 4
  %420 = insertvalue { ptr, i32 } poison, ptr %418, 0
  %421 = insertvalue { ptr, i32 } %420, i32 %419, 1
  resume { ptr, i32 } %421

422:                                              ; preds = %95
  %423 = landingpad { ptr, i32 }
          catch ptr null
  %424 = extractvalue { ptr, i32 } %423, 0
  call void @__clang_call_terminate(ptr %424) #11
  unreachable

425:                                              ; preds = %395, %78
  unreachable
}

declare ptr @__cxa_allocate_exception(i64)

declare void @__cxa_free_exception(ptr)

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

declare void @__cxa_throw(ptr, ptr, ptr)

; Function Attrs: nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #5

declare void @_ZN7DynexCN7JsonRpc12JsonRpcErrorC1EiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef, ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #7

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7DynexCN23WalletLegacyTransactionC2Ev(ptr noundef nonnull align 8 dereferenceable(161)) unnamed_addr #7 align 2

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

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

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

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

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

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

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

declare noundef zeroext i1 @_ZN7DynexCN23getPaymentIdFromTxExtraERKSt6vectorIhSaIhEERN6Crypto4HashE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 1 dereferenceable(32)) #6

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZSt3absl(i64 noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6CryptoneERKNS_4HashES2_(ptr noundef nonnull align 1 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(32)) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5boostneIN6Crypto9SecretKeyEEEbRKNS_8optionalIT_EERKS4_(ptr noundef nonnull align 1 dereferenceable(33), ptr noundef nonnull align 1 dereferenceable(32)) #7

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5boost9algorithm7iequalsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_EEbRKT_RKT0_RKSt6locale(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) #7

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

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

; Function Attrs: mustprogress uwtable
declare hidden ptr @"_ZSt8for_eachIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEZN5Tools17wallet_rpc_server18on_get_transactionERKNSA_10wallet_rpc27COMMAND_RPC_GET_TRANSACTION7requestERNSD_8responseEE3$_0ET0_T_SL_SK_"(ptr, ptr, ptr) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(184) ptr @_ZN5Tools10wallet_rpc8TransferaSERKS1_(ptr noundef nonnull align 8 dereferenceable(184), ptr noundef nonnull align 8 dereferenceable(184)) #7 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_RKS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #7

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noinline noreturn nounwind uwtable "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { nounwind memory(none) }
attributes #6 = { "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 = { 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 #8 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { nounwind }
attributes #10 = { noreturn }
attributes #11 = { noreturn 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, !6, i64 256}
!10 = !{!"_ZTSN5Tools17wallet_rpc_serverE", !11, i64 0, !14, i64 208, !6, i64 248, !6, i64 256, !25, i64 264, !15, i64 272, !15, i64 304, !15, i64 336, !6, i64 368, !15, i64 376, !6, i64 408, !26, i64 416}
!11 = !{!"_ZTSN7DynexCN10HttpServerE", !6, i64 8, !12, i64 16, !14, i64 56, !18, i64 96, !20, i64 120, !15, i64 176}
!12 = !{!"_ZTSN6System12ContextGroupE", !6, i64 0, !13, i64 8}
!13 = !{!"_ZTSN6System18NativeContextGroupE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!14 = !{!"_ZTSN7Logging9LoggerRefE", !6, i64 0, !15, i64 8}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !16, i64 0, !17, i64 8, !7, i64 16}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!"_ZTSN6System11TcpListenerE", !6, i64 0, !19, i64 8, !6, i64 16}
!19 = !{!"int", !7, i64 0}
!20 = !{!"_ZTSSt13unordered_setIPN6System13TcpConnectionESt4hashIS2_ESt8equal_toIS2_ESaIS2_EE", !21, i64 0}
!21 = !{!"_ZTSSt10_HashtableIPN6System13TcpConnectionES2_SaIS2_ENSt8__detail9_IdentityESt8equal_toIS2_ESt4hashIS2_ENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb1ELb1EEEE", !6, i64 0, !17, i64 8, !22, i64 16, !17, i64 24, !23, i64 32, !6, i64 48}
!22 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!23 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !24, i64 0, !17, i64 8}
!24 = !{!"float", !7, i64 0}
!25 = !{!"short", !7, i64 0}
!26 = !{!"_ZTSN6System5EventE", !6, i64 0, !27, i64 8, !6, i64 16, !6, i64 24}
!27 = !{!"bool", !7, i64 0}
!28 = !{!29, !29, i64 0}
!29 = !{!"vtable pointer", !8, i64 0}
!30 = !{!17, !17, i64 0}
!31 = !{!10, !6, i64 248}
!32 = !{!33, !38, i64 160}
!33 = !{!"_ZTSN7DynexCN23WalletLegacyTransactionE", !17, i64 0, !17, i64 8, !17, i64 16, !17, i64 24, !17, i64 32, !17, i64 40, !34, i64 48, !35, i64 80, !27, i64 113, !19, i64 116, !17, i64 120, !15, i64 128, !38, i64 160}
!34 = !{!"_ZTSN6Crypto4HashE", !7, i64 0}
!35 = !{!"_ZTSN5boost8optionalIN6Crypto9SecretKeyEEE", !36, i64 0}
!36 = !{!"_ZTSN5boost15optional_detail13optional_baseIN6Crypto9SecretKeyEEE", !27, i64 0, !37, i64 1}
!37 = !{!"_ZTSN5boost15optional_detail15aligned_storageIN6Crypto9SecretKeyEEE", !7, i64 0}
!38 = !{!"_ZTSN7DynexCN28WalletLegacyTransactionStateE", !7, i64 0}
!39 = !{!33, !17, i64 16}
!40 = !{!33, !17, i64 8}
!41 = !{!33, !17, i64 0}
!42 = !{!33, !17, i64 120}
!43 = !{!44, !17, i64 0}
!44 = !{!"_ZTSN5Tools10wallet_rpc8TransferE", !17, i64 0, !27, i64 8, !15, i64 16, !17, i64 48, !17, i64 56, !15, i64 64, !15, i64 96, !17, i64 128, !17, i64 136, !17, i64 144, !15, i64 152}
!45 = !{!44, !27, i64 8}
!46 = !{!44, !17, i64 48}
!47 = !{!33, !17, i64 24}
!48 = !{!44, !17, i64 56}
!49 = !{!33, !19, i64 116}
!50 = !{!44, !17, i64 128}
!51 = !{!33, !17, i64 40}
!52 = !{!44, !17, i64 136}
!53 = !{!44, !17, i64 144}
!54 = !{!55, !17, i64 32}
!55 = !{!"_ZTSN7DynexCN20WalletLegacyTransferE", !15, i64 0, !17, i64 32}
!56 = !{!57, !17, i64 0}
!57 = !{!"_ZTSN5Tools10wallet_rpc20transfer_destinationE", !17, i64 0, !15, i64 8}
!58 = distinct !{!58, !59}
!59 = !{!"llvm.loop.mustprogress"}
!60 = distinct !{!60, !59}


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

%"struct.Crypto::Hash" = type { [32 x i8] }
%"struct.Crypto::SecretKey" = type { [32 x i8] }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }
%"struct.DynexCN::WalletLegacyTransaction" = type <{ i64, i64, i64, i64, i64, i64, %"struct.Crypto::Hash", %"class.boost::optional.109", i8, [2 x i8], i32, i64, %"class.std::__cxx11::basic_string", i8, [7 x i8] }>
%"class.boost::optional.109" = type { %"class.boost::optional_detail::optional_base.110" }
%"class.boost::optional_detail::optional_base.110" = type { i8, %"class.boost::optional_detail::aligned_storage.111" }
%"class.boost::optional_detail::aligned_storage.111" = type { %"union.boost::optional_detail::aligned_storage<Crypto::SecretKey>::dummy_u" }
%"union.boost::optional_detail::aligned_storage<Crypto::SecretKey>::dummy_u" = type { [32 x i8] }
%"class.std::locale" = type { ptr }
%"struct.DynexCN::WalletLegacyTransfer" = type { %"class.std::__cxx11::basic_string", i64 }
%"struct.Tools::wallet_rpc::Transfer" = type { i64, i8, %"class.std::__cxx11::basic_string", i64, i64, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i64, i64, i64, %"class.std::__cxx11::basic_string" }
%"class.std::vector.47" = type { %"struct.std::_Vector_base.48" }
%"struct.std::_Vector_base.48" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.Tools::wallet_rpc::transfer_destination" = type { i64, %"class.std::__cxx11::basic_string" }

@_ZN7DynexCNL9NULL_HASHE = external hidden global %"struct.Crypto::Hash", align 1
@_ZN7DynexCNL15NULL_SECRET_KEYE = external hidden global %"struct.Crypto::SecretKey", align 1
@.str.16 = external hidden unnamed_addr constant [1 x i8], align 1
@_ZTISt9exception = external constant ptr
@_ZTIN7DynexCN7JsonRpc12JsonRpcErrorE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.53 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [39 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #1

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #2 align 2

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

declare void @__cxa_end_catch() local_unnamed_addr

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN5Tools17wallet_rpc_server18on_get_transactionERKNS_10wallet_rpc27COMMAND_RPC_GET_TRANSACTION7requestERNS2_8responseE(ptr nocapture noundef nonnull readonly align 8 dereferenceable(448) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(208) %2) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::allocator", align 1
  %7 = alloca %"struct.DynexCN::WalletLegacyTransaction", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::locale", align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::allocator", align 1
  %12 = alloca %"struct.DynexCN::WalletLegacyTransfer", align 8
  %13 = alloca %"struct.Tools::wallet_rpc::Transfer", align 8
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::vector.47", align 8
  %16 = alloca %"struct.Crypto::Hash", align 1
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca %"class.std::allocator", align 1
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca %"class.std::allocator", align 1
  %21 = alloca %"struct.DynexCN::WalletLegacyTransfer", align 8
  %22 = alloca %"struct.Tools::wallet_rpc::transfer_destination", align 8
  %23 = alloca %"class.std::__cxx11::basic_string", align 8
  %24 = alloca %"class.std::__cxx11::basic_string", align 8
  %25 = alloca %"class.std::allocator", align 1
  %26 = getelementptr inbounds i8, ptr %2, i64 184
  tail call void @_ZNSt7__cxx114listIN5Tools10wallet_rpc20transfer_destinationESaIS3_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #9
  %27 = getelementptr inbounds i8, ptr %0, i64 256
  %28 = load ptr, ptr %27, align 8, !tbaa !5
  %29 = load ptr, ptr %28, align 8, !tbaa !27
  %30 = getelementptr inbounds i8, ptr %29, i64 80
  %31 = load ptr, ptr %30, align 8
  %32 = invoke noundef i32 %31(ptr noundef nonnull align 8 dereferenceable(8) %28)
          to label %33 unwind label %43

33:                                               ; preds = %3
  %34 = zext i32 %32 to i64
  %35 = getelementptr inbounds i8, ptr %0, i64 248
  %36 = load ptr, ptr %35, align 8, !tbaa !29
  %37 = load ptr, ptr %36, align 8, !tbaa !27
  %38 = getelementptr inbounds i8, ptr %37, i64 144
  %39 = load ptr, ptr %38, align 8
  %40 = tail call noundef i64 %39(ptr noundef nonnull align 8 dereferenceable(8) %36)
  %.not89111.not = icmp eq i64 %40, 0
  br i1 %.not89111.not, label %.critedge97, label %.lr.ph

.lr.ph:                                           ; preds = %33
  %41 = getelementptr inbounds i8, ptr %7, i64 160
  %42 = getelementptr inbounds i8, ptr %7, i64 48
  br label %67

43:                                               ; preds = %3
  %44 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %45 = extractvalue { ptr, i32 } %44, 1
  %46 = tail call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #9
  %47 = icmp eq i32 %45, %46
  br i1 %47, label %48, label %232

48:                                               ; preds = %43
  %49 = extractvalue { ptr, i32 } %44, 0
  %50 = tail call ptr @__cxa_begin_catch(ptr %49) #9
  %51 = tail call ptr @__cxa_allocate_exception(i64 48) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull @.str.53, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %52 unwind label %.thread

52:                                               ; preds = %48
  %53 = load ptr, ptr %50, align 8, !tbaa !27
  %54 = getelementptr inbounds i8, ptr %53, i64 16
  %55 = load ptr, ptr %54, align 8
  %56 = call noundef ptr %55(ptr noundef nonnull align 8 dereferenceable(8) %50) #9
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %4, ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef %56)
          to label %57 unwind label %60

57:                                               ; preds = %52
  invoke void @_ZN7DynexCN7JsonRpc12JsonRpcErrorC1EiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(48) %51, i32 noundef -1, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %58 unwind label %62

58:                                               ; preds = %57
  invoke void @__cxa_throw(ptr nonnull %51, ptr nonnull @_ZTIN7DynexCN7JsonRpc12JsonRpcErrorE, ptr nonnull @_ZN7DynexCN7JsonRpc12JsonRpcErrorD2Ev) #10
          to label %236 unwind label %62

.thread:                                          ; preds = %48
  %59 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #9
  br label %65

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

62:                                               ; preds = %58, %57
  %.066 = phi i1 [ false, %58 ], [ true, %57 ]
  %63 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #9
  br label %64

64:                                               ; preds = %60, %62
  %.167 = phi i1 [ %.066, %62 ], [ true, %60 ]
  %.pn = phi { ptr, i32 } [ %63, %62 ], [ %61, %60 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #9
  br i1 %.167, label %65, label %66

65:                                               ; preds = %.thread, %64
  %.pn.pn102 = phi { ptr, i32 } [ %59, %.thread ], [ %.pn, %64 ]
  call void @__cxa_free_exception(ptr %51) #9
  br label %66

66:                                               ; preds = %65, %64
  %.pn.pn101 = phi { ptr, i32 } [ %.pn.pn102, %65 ], [ %.pn, %64 ]
  invoke void @__cxa_end_catch()
          to label %232 unwind label %233

67:                                               ; preds = %.lr.ph, %218
  %.069112 = phi i64 [ 0, %.lr.ph ], [ %219, %218 ]
  call void @llvm.lifetime.start.p0(i64 168, ptr nonnull %7) #9
  call void @_ZN7DynexCN23WalletLegacyTransactionC2Ev(ptr noundef nonnull align 8 dereferenceable(161) %7)
  %68 = load ptr, ptr %35, align 8, !tbaa !29
  %69 = load ptr, ptr %68, align 8, !tbaa !27
  %70 = getelementptr inbounds i8, ptr %69, i64 192
  %71 = load ptr, ptr %70, align 8
  %72 = invoke noundef zeroext i1 %71(ptr noundef nonnull align 8 dereferenceable(8) %68, i64 noundef %.069112, ptr noundef nonnull align 8 dereferenceable(161) %7)
          to label %73 unwind label %75

73:                                               ; preds = %67
  %74 = load i8, ptr %41, align 8
  switch i8 %74, label %77 [
    i8 4, label %218
    i8 3, label %218
    i8 1, label %218
  ]

75:                                               ; preds = %67
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %220

77:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #9
  invoke void @_ZN6Common8podToHexIN6Crypto4HashEEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %8, ptr noundef nonnull align 1 dereferenceable(32) %42)
          to label %78 unwind label %99

78:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #9
  call void @_ZNSt6localeC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #9
  %79 = invoke noundef zeroext i1 @_ZN5boost9algorithm7iequalsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_EEbRKT_RKT0_RKSt6locale(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %80 unwind label %101

80:                                               ; preds = %78
  call void @_ZNSt6localeD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #9
  br i1 %79, label %81, label %218

81:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull @.str.16, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %82 unwind label %104

82:                                               ; preds = %81
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #9
  %83 = getelementptr inbounds i8, ptr %7, i64 16
  %84 = load i64, ptr %83, align 8, !tbaa !30
  %85 = icmp slt i64 %84, 0
  %86 = getelementptr inbounds i8, ptr %7, i64 8
  %87 = load i64, ptr %86, align 8
  %88 = icmp ne i64 %87, 0
  %or.cond8 = select i1 %85, i1 %88, i1 false
  br i1 %or.cond8, label %89, label %108

89:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %12) #9
  call void @_ZN7DynexCN20WalletLegacyTransferC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #9
  %90 = load ptr, ptr %35, align 8, !tbaa !29
  %91 = load i64, ptr %7, align 8, !tbaa !37
  %92 = load ptr, ptr %90, align 8, !tbaa !27
  %93 = getelementptr inbounds i8, ptr %92, i64 200
  %94 = load ptr, ptr %93, align 8
  %95 = invoke noundef zeroext i1 %94(ptr noundef nonnull align 8 dereferenceable(8) %90, i64 noundef %91, ptr noundef nonnull align 8 dereferenceable(40) %12)
          to label %96 unwind label %106

96:                                               ; preds = %89
  %97 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %98 unwind label %106

98:                                               ; preds = %96
  call void @_ZN7DynexCN20WalletLegacyTransferD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #9
  br label %108

99:                                               ; preds = %77
  %100 = landingpad { ptr, i32 }
          cleanup
  br label %103

101:                                              ; preds = %78
  %102 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6localeD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #9
  br label %103

103:                                              ; preds = %101, %99
  %.pn75 = phi { ptr, i32 } [ %102, %101 ], [ %100, %99 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #9
  br label %220

104:                                              ; preds = %81
  %105 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #9
  br label %217

106:                                              ; preds = %96, %89
  %107 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7DynexCN20WalletLegacyTransferD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #9
  br label %216

108:                                              ; preds = %98, %82
  call void @llvm.lifetime.start.p0(i64 184, ptr nonnull %13) #9
  call void @_ZN5Tools10wallet_rpc8TransferC2Ev(ptr noundef nonnull align 8 dereferenceable(184) %13) #9
  %109 = getelementptr inbounds i8, ptr %7, i64 120
  %110 = load i64, ptr %109, align 8, !tbaa !38
  store i64 %110, ptr %13, align 8, !tbaa !39
  %111 = load i64, ptr %83, align 8, !tbaa !30
  %112 = getelementptr inbounds i8, ptr %13, i64 8
  %.lobit = lshr i64 %111, 63
  %113 = trunc nuw nsw i64 %.lobit to i8
  store i8 %113, ptr %112, align 8, !tbaa !41
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #9
  invoke void @_ZN6Common8podToHexIN6Crypto4HashEEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %14, ptr noundef nonnull align 1 dereferenceable(32) %42)
          to label %114 unwind label %174

114:                                              ; preds = %108
  %115 = getelementptr inbounds i8, ptr %13, i64 16
  %116 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %115, ptr noundef nonnull align 8 dereferenceable(32) %14) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #9
  %117 = load i64, ptr %83, align 8, !tbaa !30
  %118 = call noundef i64 @_ZSt3absl(i64 noundef %117)
  %119 = getelementptr inbounds i8, ptr %13, i64 48
  store i64 %118, ptr %119, align 8, !tbaa !42
  %120 = getelementptr inbounds i8, ptr %7, i64 24
  %121 = load i64, ptr %120, align 8, !tbaa !43
  %122 = getelementptr inbounds i8, ptr %13, i64 56
  store i64 %121, ptr %122, align 8, !tbaa !44
  %123 = getelementptr inbounds i8, ptr %13, i64 96
  %124 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %123, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %125 unwind label %176

125:                                              ; preds = %114
  %126 = getelementptr inbounds i8, ptr %7, i64 116
  %127 = load i32, ptr %126, align 4, !tbaa !45
  %128 = zext i32 %127 to i64
  %129 = getelementptr inbounds i8, ptr %13, i64 128
  store i64 %128, ptr %129, align 8, !tbaa !46
  %130 = getelementptr inbounds i8, ptr %7, i64 40
  %131 = load i64, ptr %130, align 8, !tbaa !47
  %132 = getelementptr inbounds i8, ptr %13, i64 136
  store i64 %131, ptr %132, align 8, !tbaa !48
  %133 = getelementptr inbounds i8, ptr %13, i64 64
  %134 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %133, ptr noundef nonnull @.str.16)
          to label %135 unwind label %176

135:                                              ; preds = %125
  %136 = load i32, ptr %126, align 4
  %.not = icmp eq i32 %136, -1
  %137 = zext i32 %136 to i64
  %138 = sub nsw i64 %34, %137
  %139 = select i1 %.not, i64 0, i64 %138
  %140 = getelementptr inbounds i8, ptr %13, i64 144
  store i64 %139, ptr %140, align 8, !tbaa !49
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #9
  call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #9
  %141 = getelementptr inbounds i8, ptr %7, i64 128
  %142 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %141) #9
  invoke void @_ZNSt6vectorIhSaIhEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %142)
          to label %143 unwind label %178

143:                                              ; preds = %135
  %144 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %141) #9
  %145 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %141) #9
  %146 = invoke ptr @"_ZSt8for_eachIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEZN5Tools17wallet_rpc_server18on_get_transactionERKNSA_10wallet_rpc27COMMAND_RPC_GET_TRANSACTION7requestERNSD_8responseEE3$_0ET0_T_SL_SK_"(ptr %144, ptr %145, ptr nonnull %15)
          to label %147 unwind label %178

147:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %17) #9
  %148 = invoke noundef zeroext i1 @_ZN7DynexCN23getPaymentIdFromTxExtraERKSt6vectorIhSaIhEERN6Crypto4HashE(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 1 dereferenceable(32) %16)
          to label %149 unwind label %180

149:                                              ; preds = %147
  br i1 %148, label %150, label %153

150:                                              ; preds = %149
  %151 = call noundef zeroext i1 @_ZN6CryptoneERKNS_4HashES2_(ptr noundef nonnull align 1 dereferenceable(32) %16, ptr noundef nonnull align 1 dereferenceable(32) @_ZN7DynexCNL9NULL_HASHE)
  br i1 %151, label %152, label %153

152:                                              ; preds = %150
  invoke void @_ZN6Common8podToHexIN6Crypto4HashEEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %17, ptr noundef nonnull align 1 dereferenceable(32) %16)
          to label %.critedge.critedge unwind label %180

153:                                              ; preds = %150, %149
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %18) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull @.str.16, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %154 unwind label %182

154:                                              ; preds = %153
  %155 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %133, ptr noundef nonnull align 8 dereferenceable(32) %17) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #9
  br label %.critedge

.critedge.critedge:                               ; preds = %152
  %156 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %133, ptr noundef nonnull align 8 dereferenceable(32) %17) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #9
  br label %.critedge

.critedge:                                        ; preds = %.critedge.critedge, %154
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %19) #9
  %157 = getelementptr inbounds i8, ptr %7, i64 80
  %158 = invoke noundef zeroext i1 @_ZN5boostneIN6Crypto9SecretKeyEEEbRKNS_8optionalIT_EERKS4_(ptr noundef nonnull align 1 dereferenceable(33) %157, ptr noundef nonnull align 1 dereferenceable(32) @_ZN7DynexCNL15NULL_SECRET_KEYE)
          to label %159 unwind label %185

159:                                              ; preds = %.critedge
  br i1 %158, label %160, label %161

160:                                              ; preds = %159
  invoke void @_ZN6Common8podToHexIN5boost8optionalIN6Crypto9SecretKeyEEEEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %19, ptr noundef nonnull align 1 dereferenceable(33) %157)
          to label %162 unwind label %185

161:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %20) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull @.str.16, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %162 unwind label %187

162:                                              ; preds = %161, %160
  %163 = getelementptr inbounds i8, ptr %13, i64 152
  %164 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %163, ptr noundef nonnull align 8 dereferenceable(32) %19) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #9
  br i1 %158, label %.critedge95, label %165

165:                                              ; preds = %162
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #9
  br label %.critedge95

.critedge95:                                      ; preds = %162, %165
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #9
  %166 = invoke noundef nonnull align 8 dereferenceable(184) ptr @_ZN5Tools10wallet_rpc8TransferaSERKS1_(ptr noundef nonnull align 8 dereferenceable(184) %2, ptr noundef nonnull align 8 dereferenceable(184) %13)
          to label %167 unwind label %190

167:                                              ; preds = %.critedge95
  %168 = load i64, ptr %7, align 8, !tbaa !37
  %169 = load i64, ptr %86, align 8, !tbaa !50
  %170 = add i64 %169, %168
  %171 = icmp ult i64 %168, %170
  br i1 %171, label %.lr.ph114, label %._crit_edge

.lr.ph114:                                        ; preds = %167
  %172 = getelementptr inbounds i8, ptr %21, i64 32
  %173 = getelementptr inbounds i8, ptr %22, i64 8
  br label %192

174:                                              ; preds = %108
  %175 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #9
  br label %215

176:                                              ; preds = %125, %114
  %177 = landingpad { ptr, i32 }
          cleanup
  br label %215

178:                                              ; preds = %143, %135
  %179 = landingpad { ptr, i32 }
          cleanup
  br label %214

180:                                              ; preds = %152, %147
  %181 = landingpad { ptr, i32 }
          cleanup
  br label %184

182:                                              ; preds = %153
  %183 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #9
  br label %184

184:                                              ; preds = %182, %180
  %.pn77 = phi { ptr, i32 } [ %181, %180 ], [ %183, %182 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #9
  br label %213

185:                                              ; preds = %160, %.critedge
  %186 = landingpad { ptr, i32 }
          cleanup
  br label %189

187:                                              ; preds = %161
  %188 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #9
  br label %189

189:                                              ; preds = %187, %185
  %.pn79 = phi { ptr, i32 } [ %186, %185 ], [ %188, %187 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #9
  br label %213

190:                                              ; preds = %.critedge95
  %191 = landingpad { ptr, i32 }
          cleanup
  br label %213

192:                                              ; preds = %.lr.ph114, %202
  %.042113 = phi i64 [ %168, %.lr.ph114 ], [ %203, %202 ]
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %21) #9
  call void @_ZN7DynexCN20WalletLegacyTransferC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %21) #9
  %193 = load ptr, ptr %35, align 8, !tbaa !29
  %194 = load ptr, ptr %193, align 8, !tbaa !27
  %195 = getelementptr inbounds i8, ptr %194, i64 200
  %196 = load ptr, ptr %195, align 8
  %197 = invoke noundef zeroext i1 %196(ptr noundef nonnull align 8 dereferenceable(8) %193, i64 noundef %.042113, ptr noundef nonnull align 8 dereferenceable(40) %21)
          to label %198 unwind label %208

198:                                              ; preds = %192
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %22) #9
  call void @_ZN5Tools10wallet_rpc20transfer_destinationC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %22) #9
  %199 = load i64, ptr %172, align 8, !tbaa !51
  store i64 %199, ptr %22, align 8, !tbaa !53
  %200 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %173, ptr noundef nonnull align 8 dereferenceable(32) %21)
          to label %201 unwind label %210

201:                                              ; preds = %198
  invoke void @_ZNSt7__cxx114listIN5Tools10wallet_rpc20transfer_destinationESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %26, ptr noundef nonnull align 8 dereferenceable(40) %22)
          to label %202 unwind label %210

202:                                              ; preds = %201
  call void @_ZN5Tools10wallet_rpc20transfer_destinationD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %22) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %22) #9
  call void @_ZN7DynexCN20WalletLegacyTransferD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %21) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %21) #9
  %203 = add nuw i64 %.042113, 1
  %204 = load i64, ptr %7, align 8, !tbaa !37
  %205 = load i64, ptr %86, align 8, !tbaa !50
  %206 = add i64 %205, %204
  %207 = icmp ult i64 %203, %206
  br i1 %207, label %192, label %._crit_edge, !llvm.loop !55

208:                                              ; preds = %192
  %209 = landingpad { ptr, i32 }
          cleanup
  br label %212

210:                                              ; preds = %201, %198
  %211 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5Tools10wallet_rpc20transfer_destinationD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %22) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %22) #9
  br label %212

212:                                              ; preds = %210, %208
  %.pn81 = phi { ptr, i32 } [ %211, %210 ], [ %209, %208 ]
  call void @_ZN7DynexCN20WalletLegacyTransferD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %21) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %21) #9
  br label %213

213:                                              ; preds = %212, %190, %189, %184
  %.pn81.pn = phi { ptr, i32 } [ %.pn81, %212 ], [ %191, %190 ], [ %.pn79, %189 ], [ %.pn77, %184 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #9
  br label %214

214:                                              ; preds = %213, %178
  %.pn81.pn.pn = phi { ptr, i32 } [ %.pn81.pn, %213 ], [ %179, %178 ]
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #9
  br label %215

215:                                              ; preds = %214, %176, %174
  %.pn81.pn.pn.pn = phi { ptr, i32 } [ %.pn81.pn.pn, %214 ], [ %177, %176 ], [ %175, %174 ]
  call void @_ZN5Tools10wallet_rpc8TransferD2Ev(ptr noundef nonnull align 8 dereferenceable(184) %13) #9
  call void @llvm.lifetime.end.p0(i64 184, ptr nonnull %13) #9
  br label %216

216:                                              ; preds = %215, %106
  %.pn81.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn81.pn.pn.pn, %215 ], [ %107, %106 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #9
  br label %217

217:                                              ; preds = %216, %104
  %.pn81.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn81.pn.pn.pn.pn, %216 ], [ %105, %104 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #9
  br label %220

218:                                              ; preds = %73, %73, %73, %80
  call void @_ZN7DynexCN23WalletLegacyTransactionD2Ev(ptr noundef nonnull align 8 dereferenceable(161) %7) #9
  call void @llvm.lifetime.end.p0(i64 168, ptr nonnull %7) #9
  %219 = add nuw i64 %.069112, 1
  %exitcond.not = icmp eq i64 %219, %40
  br i1 %exitcond.not, label %.critedge97, label %67, !llvm.loop !57

220:                                              ; preds = %217, %103, %75
  %.pn81.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn81.pn.pn.pn.pn.pn, %217 ], [ %.pn75, %103 ], [ %76, %75 ]
  call void @_ZN7DynexCN23WalletLegacyTransactionD2Ev(ptr noundef nonnull align 8 dereferenceable(161) %7) #9
  call void @llvm.lifetime.end.p0(i64 168, ptr nonnull %7) #9
  br label %232

.critedge97:                                      ; preds = %218, %33
  %221 = call ptr @__cxa_allocate_exception(i64 48) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %23) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %24) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %25) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull @.str.54, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %222 unwind label %.thread105

222:                                              ; preds = %.critedge97
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_RKS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %23, ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %223 unwind label %226

223:                                              ; preds = %222
  invoke void @_ZN7DynexCN7JsonRpc12JsonRpcErrorC1EiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(48) %221, i32 noundef -1, ptr noundef nonnull align 8 dereferenceable(32) %23)
          to label %224 unwind label %228

224:                                              ; preds = %223
  invoke void @__cxa_throw(ptr nonnull %221, ptr nonnull @_ZTIN7DynexCN7JsonRpc12JsonRpcErrorE, ptr nonnull @_ZN7DynexCN7JsonRpc12JsonRpcErrorD2Ev) #10
          to label %236 unwind label %228

.thread105:                                       ; preds = %.critedge97
  %225 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %25) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %24) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %23) #9
  br label %231

226:                                              ; preds = %222
  %227 = landingpad { ptr, i32 }
          cleanup
  br label %230

228:                                              ; preds = %224, %223
  %.0 = phi i1 [ false, %224 ], [ true, %223 ]
  %229 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #9
  br label %230

230:                                              ; preds = %226, %228
  %.pn90 = phi { ptr, i32 } [ %229, %228 ], [ %227, %226 ]
  %.1 = phi i1 [ %.0, %228 ], [ true, %226 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %25) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %24) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %23) #9
  br i1 %.1, label %231, label %232

231:                                              ; preds = %.thread105, %230
  %.pn90.pn108 = phi { ptr, i32 } [ %225, %.thread105 ], [ %.pn90, %230 ]
  call void @__cxa_free_exception(ptr %221) #9
  br label %232

._crit_edge:                                      ; preds = %202, %167
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #9
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #9
  call void @_ZN5Tools10wallet_rpc8TransferD2Ev(ptr noundef nonnull align 8 dereferenceable(184) %13) #9
  call void @llvm.lifetime.end.p0(i64 184, ptr nonnull %13) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #9
  call void @_ZN7DynexCN23WalletLegacyTransactionD2Ev(ptr noundef nonnull align 8 dereferenceable(161) %7) #9
  call void @llvm.lifetime.end.p0(i64 168, ptr nonnull %7) #9
  ret i1 true

232:                                              ; preds = %220, %231, %230, %66, %43
  %.merged = phi { ptr, i32 } [ %44, %43 ], [ %.pn.pn101, %66 ], [ %.pn90.pn108, %231 ], [ %.pn90, %230 ], [ %.pn81.pn.pn.pn.pn.pn.pn, %220 ]
  resume { ptr, i32 } %.merged

233:                                              ; preds = %66
  %234 = landingpad { ptr, i32 }
          catch ptr null
  %235 = extractvalue { ptr, i32 } %234, 0
  call void @__clang_call_terminate(ptr %235) #11
  unreachable

236:                                              ; preds = %224, %58
  unreachable
}

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @__cxa_free_exception(ptr) local_unnamed_addr

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

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

; Function Attrs: nofree nosync nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #5

declare void @_ZN7DynexCN7JsonRpc12JsonRpcErrorC1EiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef, ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #7

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7DynexCN23WalletLegacyTransactionC2Ev(ptr noundef nonnull align 8 dereferenceable(161)) unnamed_addr #7 align 2

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

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

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

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

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

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

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

declare noundef zeroext i1 @_ZN7DynexCN23getPaymentIdFromTxExtraERKSt6vectorIhSaIhEERN6Crypto4HashE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 1 dereferenceable(32)) local_unnamed_addr #6

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZSt3absl(i64 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6CryptoneERKNS_4HashES2_(ptr noundef nonnull align 1 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(32)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5boostneIN6Crypto9SecretKeyEEEbRKNS_8optionalIT_EERKS4_(ptr noundef nonnull align 1 dereferenceable(33), ptr noundef nonnull align 1 dereferenceable(32)) local_unnamed_addr #7

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5boost9algorithm7iequalsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_EEbRKT_RKT0_RKSt6locale(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #7

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

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

; Function Attrs: mustprogress uwtable
declare hidden ptr @"_ZSt8for_eachIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEZN5Tools17wallet_rpc_server18on_get_transactionERKNSA_10wallet_rpc27COMMAND_RPC_GET_TRANSACTION7requestERNSD_8responseEE3$_0ET0_T_SL_SK_"(ptr, ptr, ptr) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(184) ptr @_ZN5Tools10wallet_rpc8TransferaSERKS1_(ptr noundef nonnull align 8 dereferenceable(184), ptr noundef nonnull align 8 dereferenceable(184)) local_unnamed_addr #7 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_RKS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #7

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noinline noreturn nounwind uwtable "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { nofree nosync nounwind memory(none) }
attributes #6 = { "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 = { 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 #8 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { nounwind }
attributes #10 = { noreturn }
attributes #11 = { noreturn 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, !8, i64 256}
!6 = !{!"_ZTSN5Tools17wallet_rpc_serverE", !7, i64 0, !13, i64 208, !8, i64 248, !8, i64 256, !24, i64 264, !14, i64 272, !14, i64 304, !14, i64 336, !8, i64 368, !14, i64 376, !8, i64 408, !25, i64 416}
!7 = !{!"_ZTSN7DynexCN10HttpServerE", !8, i64 8, !11, i64 16, !13, i64 56, !17, i64 96, !19, i64 120, !14, i64 176}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTSN6System12ContextGroupE", !8, i64 0, !12, i64 8}
!12 = !{!"_ZTSN6System18NativeContextGroupE", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24}
!13 = !{!"_ZTSN7Logging9LoggerRefE", !8, i64 0, !14, i64 8}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !15, i64 0, !16, i64 8, !9, i64 16}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !8, i64 0}
!16 = !{!"long", !9, i64 0}
!17 = !{!"_ZTSN6System11TcpListenerE", !8, i64 0, !18, i64 8, !8, i64 16}
!18 = !{!"int", !9, i64 0}
!19 = !{!"_ZTSSt13unordered_setIPN6System13TcpConnectionESt4hashIS2_ESt8equal_toIS2_ESaIS2_EE", !20, i64 0}
!20 = !{!"_ZTSSt10_HashtableIPN6System13TcpConnectionES2_SaIS2_ENSt8__detail9_IdentityESt8equal_toIS2_ESt4hashIS2_ENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb1ELb1EEEE", !8, i64 0, !16, i64 8, !21, i64 16, !16, i64 24, !22, i64 32, !8, i64 48}
!21 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !8, i64 0}
!22 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !23, i64 0, !16, i64 8}
!23 = !{!"float", !9, i64 0}
!24 = !{!"short", !9, i64 0}
!25 = !{!"_ZTSN6System5EventE", !8, i64 0, !26, i64 8, !8, i64 16, !8, i64 24}
!26 = !{!"bool", !9, i64 0}
!27 = !{!28, !28, i64 0}
!28 = !{!"vtable pointer", !10, i64 0}
!29 = !{!6, !8, i64 248}
!30 = !{!31, !16, i64 16}
!31 = !{!"_ZTSN7DynexCN23WalletLegacyTransactionE", !16, i64 0, !16, i64 8, !16, i64 16, !16, i64 24, !16, i64 32, !16, i64 40, !32, i64 48, !33, i64 80, !26, i64 113, !18, i64 116, !16, i64 120, !14, i64 128, !36, i64 160}
!32 = !{!"_ZTSN6Crypto4HashE", !9, i64 0}
!33 = !{!"_ZTSN5boost8optionalIN6Crypto9SecretKeyEEE", !34, i64 0}
!34 = !{!"_ZTSN5boost15optional_detail13optional_baseIN6Crypto9SecretKeyEEE", !26, i64 0, !35, i64 1}
!35 = !{!"_ZTSN5boost15optional_detail15aligned_storageIN6Crypto9SecretKeyEEE", !9, i64 0}
!36 = !{!"_ZTSN7DynexCN28WalletLegacyTransactionStateE", !9, i64 0}
!37 = !{!31, !16, i64 0}
!38 = !{!31, !16, i64 120}
!39 = !{!40, !16, i64 0}
!40 = !{!"_ZTSN5Tools10wallet_rpc8TransferE", !16, i64 0, !26, i64 8, !14, i64 16, !16, i64 48, !16, i64 56, !14, i64 64, !14, i64 96, !16, i64 128, !16, i64 136, !16, i64 144, !14, i64 152}
!41 = !{!40, !26, i64 8}
!42 = !{!40, !16, i64 48}
!43 = !{!31, !16, i64 24}
!44 = !{!40, !16, i64 56}
!45 = !{!31, !18, i64 116}
!46 = !{!40, !16, i64 128}
!47 = !{!31, !16, i64 40}
!48 = !{!40, !16, i64 136}
!49 = !{!40, !16, i64 144}
!50 = !{!31, !16, i64 8}
!51 = !{!52, !16, i64 32}
!52 = !{!"_ZTSN7DynexCN20WalletLegacyTransferE", !14, i64 0, !16, i64 32}
!53 = !{!54, !16, i64 0}
!54 = !{!"_ZTSN5Tools10wallet_rpc20transfer_destinationE", !16, i64 0, !14, i64 8}
!55 = distinct !{!55, !56}
!56 = !{!"llvm.loop.mustprogress"}
!57 = distinct !{!57, !56}


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