//
// std::__ndk1::promise::~promise from 0x97f60c to 0x97f6a4 (152 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
//
// Alternative name is '_ZNSt6__ndk17promiseIvED1Ev'
std::__shared_count **__fastcall std::promise::~promise(std::__shared_count **a1)
{
std::__shared_count *v2; // r0
int v3; // r5
_BYTE v5[16]; // [sp+0h] [bp-28h] BYREF
_BYTE v6[4]; // [sp+10h] [bp-18h] BYREF
int v7; // [sp+14h] [bp-14h] BYREF
v2 = *a1;
if ( v2 )
{
if ( (*((_BYTE *)v2 + 20) & 1) == 0 )
{
v7 = 0;
v3 = *((_DWORD *)v2 + 2);
std::exception_ptr::~exception_ptr((std::exception_ptr *)&v7);
if ( !v3 && *((int *)*a1 + 1) >= 1 )
{
std::future_category();
std::future_error::future_error((int)v5, 4u, (unsigned int)&dword_D33CC4);
std::make_exception_ptr(v6, v5);
}
}
std::__shared_count::__release_shared(*a1);
}
return a1;
}