//
// __cxa_increment_exception_refcount from 0xf887e4 to 0xf88800 (28 bytes)
//
// 4 xrefs:
// > std::exception_ptr::exception_ptr @ 0xf41ee8
// > std::exception_ptr::operator= @ 0xf41f10
// > std::nested_exception::rethrow_nested @ 0xf42014
// > ??> @ 0xa4788
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:13:54 +0000
//
__int64 __fastcall _cxa_increment_exception_refcount(__int64 result)
{
unsigned __int64 *v1; // x8
unsigned __int64 v2; // x9
if ( result )
{
v1 = (unsigned __int64 *)(result - 120);
do
v2 = __ldaxr(v1);
while ( __stlxr(v2 + 1, v1) );
}
return result;
}