//
// std::__ndk1::future_error::future_error from 0x97efcc to 0x97f048 (124 bytes)
//
// 12 xrefs:
// > std::__ndk1::__assoc_sub_state::set_value @ 0x97f0e6
// > std::__ndk1::__assoc_sub_state::set_value_at_thread_exit @ 0x97f1a2
// > std::__ndk1::__assoc_sub_state::set_exception @ 0x97f266
// > std::__ndk1::__assoc_sub_state::set_exception_at_thread_exit @ 0x97f32a
// > std::__ndk1::__assoc_sub_state::__execute @ 0x97f4f4
// > std::__ndk1::future::future @ 0x97f570
// > std::__ndk1::promise::~promise @ 0x97f64c
// > std::__ndk1::promise::get_future @ 0x97f72e
// > std::__ndk1::promise::set_value @ 0x97f784
// > std::__ndk1::promise::set_exception @ 0x97f808
// > std::__ndk1::promise::set_value_at_thread_exit @ 0x97f870
// > std::__ndk1::promise::set_exception_at_thread_exit @ 0x97f8f4
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:06:05 +0000
//
// Alternative name is '_ZNSt6__ndk112future_errorC1ENS_10error_codeE'
int __fastcall std::future_error::future_error(int a1, unsigned int a2, unsigned int a3)
{
_BYTE v5[8]; // [sp+4h] [bp-24h] BYREF
void *v6; // [sp+Ch] [bp-1Ch]
unsigned __int64 v7; // [sp+10h] [bp-18h] BYREF
v7 = __PAIR64__(a3, a2);
std::error_code::message((std::error_code *)v5, (int)&v7);
std::logic_error::logic_error((_DWORD *)a1, (int)v5);
if ( (v5[0] & 1) != 0 )
operator delete(v6);
*(_DWORD *)a1 = &off_D14D24;
*(_QWORD *)(a1 + 8) = v7;
return a1;
}