//
// std::__exception_ptr::exception_ptr::_M_addref from 0x779b58 to 0x779b76 (30 bytes)
//
// 2 xrefs:
// > std::__exception_ptr::exception_ptr::exception_ptr @ 0x779b7e
// > std::__exception_ptr::exception_ptr::exception_ptr @ 0x779b90
//
// 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
//
_DWORD *__fastcall std::__exception_ptr::exception_ptr::_M_addref(_DWORD *this)
{
unsigned int *v1; // r3
unsigned int v2; // r2
if ( *this )
{
v1 = (unsigned int *)(*this - 128);
__dmb(0xFu);
do
v2 = __ldrex(v1);
while ( __strex(v2 + 1, v1) );
__dmb(0xFu);
}
return this;
}