//
// __cxa_guard_abort from 0xccd0a4 to 0xccd108 (100 bytes)
//
// 2 xrefs:
// > sub_CCBA98 @ 0xccbb24
// > ??> @ 0x829e0
//
// 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
//
void _cxa_guard_abort(__guard *a1)
{
unsigned int v1; // w3
if ( &pthread_create )
{
do
v1 = __ldaxr((unsigned int *)a1);
while ( __stlxr(0, (unsigned int *)a1) );
if ( (v1 & 0x10000) != 0 )
syscall(98, a1, 1, 0x7FFFFFFF, 0);
}
else
{
*((_BYTE *)a1 + 1) = 0;
}
}