//
// std::__exception_ptr::exception_ptr::_M_release from 0x779b98 to 0x779bd4 (60 bytes)
//
// 1 xrefs:
// > std::__exception_ptr::exception_ptr::~exception_ptr @ 0x779bd8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall std::__exception_ptr::exception_ptr::_M_release(void **this)
{
_DWORD *v1; // r3
unsigned int *v2; // r2
unsigned int v3; // r1
unsigned int v4; // r1
void (__fastcall *v5)(void *); // r3
v1 = *this;
if ( *this )
{
v2 = v1 - 32;
__dmb(0xFu);
do
{
v3 = __ldrex(v2);
v4 = v3 - 1;
}
while ( __strex(v4, v2) );
__dmb(0xFu);
if ( !v4 )
{
v5 = (void (__fastcall *)(void *))*(v1 - 29);
if ( v5 )
v5(*this);
_cxa_free_exception(*this);
*this = nullptr;
}
}
}