//
// __cxa_increment_exception_refcount from 0x97fd62 to 0x97fd7e (28 bytes)
//
// 3 xrefs:
// > std::exception_ptr::exception_ptr @ 0x954250
// > std::exception_ptr::operator= @ 0x954268
// > std::nested_exception::rethrow_nested @ 0x95430c
//
// 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
//
unsigned int *__fastcall _cxa_increment_exception_refcount(unsigned int *result)
{
unsigned int v1; // r1
if ( result )
{
result -= 32;
__dmb(0xBu);
do
v1 = __ldrex(result);
while ( __strex(v1 + 1, result) );
__dmb(0xBu);
}
return result;
}