//
// std::set_new_handler from 0xf88e18 to 0xf88e34 (28 bytes)
//
// 1 xrefs:
// > ??> @ 0xf9ee0
//
// 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
//
unsigned __int64 __fastcall std::set_new_handler(void (*a1)())
{
unsigned __int64 v1; // x8
do
v1 = __ldaxr((unsigned __int64 *)&_cxa_new_handler);
while ( __stlxr((unsigned __int64)a1, (unsigned __int64 *)&_cxa_new_handler) );
return v1;
}