//
// std::set_unexpected from 0xcccd90 to 0xcccdac (28 bytes)
//
// 1 xrefs:
// > ??> @ 0x99a08
//
// 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
//
unsigned __int64 __fastcall std::set_unexpected(void (*a1)())
{
unsigned __int64 result; // x0
do
result = __ldaxr((unsigned __int64 *)&__cxxabiv1::__unexpected_handler);
while ( __stlxr((unsigned __int64)a1, (unsigned __int64 *)&__cxxabiv1::__unexpected_handler) );
return result;
}