//
// std::__ndk1::promise::set_exception_at_thread_exit from 0x97f8a0 to 0x97f924 (132 bytes)
//
// 0 xrefs:
//
// 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:06 +0000
//
int __fastcall std::promise::set_exception_at_thread_exit(int *a1, const std::exception_ptr *a2)
{
int v2; // r4
void *exception; // r4
_DWORD v5[2]; // [sp+0h] [bp-10h] BYREF
v2 = *a1;
if ( !*a1 )
{
exception = _cxa_allocate_exception(0x10u);
std::future_category();
std::future_error::future_error((int)exception, 3u, (unsigned int)&dword_D33CC4);
_cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::future_error,
(void (*)(void *))std::future_error::~future_error);
}
std::exception_ptr::exception_ptr((std::exception_ptr *)v5, a2);
std::__assoc_sub_state::set_exception_at_thread_exit(v2, v5);
std::exception_ptr::~exception_ptr((std::exception_ptr *)v5);
return _stack_chk_guard - v5[1];
}