//
// std::set_unexpected from 0xf8c1d8 to 0xf8c200 (40 bytes)
//
// 1 xrefs:
// > ??> @ 0xcaba0
//
// 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:56 +0000
//
unsigned __int64 __fastcall std::set_unexpected(void (__noreturn *a1)())
{
void (__noreturn *v1)(); // x8
unsigned __int64 result; // x0
v1 = sub_F8C1BC;
if ( a1 )
v1 = a1;
do
result = __ldaxr((unsigned __int64 *)&_cxa_unexpected_handler);
while ( __stlxr((unsigned __int64)v1, (unsigned __int64 *)&_cxa_unexpected_handler) );
return result;
}