//
// std::__ndk1::future_error::future_error from 0xf87078 to 0xf87120 (168 bytes)
//
// 14 xrefs:
// > std::__ndk1::__assoc_sub_state::set_value @ 0xf87264
// > std::__ndk1::__assoc_sub_state::set_value_at_thread_exit @ 0xf873b8
// > std::__ndk1::__assoc_sub_state::set_exception @ 0xf87510
// > std::__ndk1::__assoc_sub_state::set_exception_at_thread_exit @ 0xf87668
// > std::__ndk1::__assoc_sub_state::__execute @ 0xf879e8
// > std::__ndk1::future::future @ 0xf87adc
// > std::__ndk1::promise::~promise @ 0xf87c9c
// > std::__ndk1::promise::get_future @ 0xf87e30
// > std::__ndk1::promise::set_value @ 0xf87ef4
// > std::__ndk1::promise::set_exception @ 0xf87ffc
// > std::__ndk1::promise::set_value_at_thread_exit @ 0xf880d8
// > std::__ndk1::promise::set_exception_at_thread_exit @ 0xf881e0
// > ??> @ 0xc9c40
// > ??> @ 0xe6a28
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:13:53 +0000
//
// Alternative name is '_ZNSt6__ndk112future_errorC1ENS_10error_codeE'
void __fastcall std::future_error::future_error(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v4[3]; // [xsp+0h] [xbp-40h] BYREF
__int128 v5; // [xsp+18h] [xbp-28h] BYREF
__int64 v6; // [xsp+28h] [xbp-18h]
v6 = *(_QWORD *)(_ReadStatusReg(TPIDR_EL0) + 40);
*(_QWORD *)&v5 = a2;
*((_QWORD *)&v5 + 1) = a3;
std::error_code::message(v4, (std::error_code *)&v5);
std::logic_error::logic_error((_QWORD *)a1, (__int64)v4);
if ( (v4[0] & 1) != 0 )
operator delete((void *)v4[2]);
*(_QWORD *)a1 = off_1535DF0;
*(_OWORD *)(a1 + 16) = v5;
_ReadStatusReg(TPIDR_EL0);
}