//
// std::set_new_handler from 0x9801a4 to 0x9801c2 (30 bytes)
//
// 0 xrefs:
//
// 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:07 +0000
//
unsigned int __fastcall std::set_new_handler(void (*a1)())
{
unsigned int v1; // r1
__dmb(0xBu);
do
v1 = __ldrex(&_cxa_new_handler);
while ( __strex((unsigned int)a1, &_cxa_new_handler) );
__dmb(0xBu);
return v1;
}