//
// __cxa_guard_abort from 0x98006c to 0x9800ae (66 bytes)
//
// 21 xrefs:
// > GameToolbox::gen_random @ 0x3d3f38
// > LevelSettingsObject::sanitizeIDName @ 0x468dd8
// > std::__ndk1::__cloc @ 0x95f9b2
// > std::__ndk1::locale::classic @ 0x96dd06
// > std::__ndk1::locale::__global @ 0x96ebb6
// > std::__ndk1::__time_get_c_storage::__weeks @ 0x97360a
// > std::__ndk1::__time_get_c_storage::__weeks @ 0x9737fa
// > std::__ndk1::__time_get_c_storage::__months @ 0x973a7c
// > std::__ndk1::__time_get_c_storage::__months @ 0x973d50
// > std::__ndk1::__time_get_c_storage::__am_pm @ 0x973ee6
// > std::__ndk1::__time_get_c_storage::__am_pm @ 0x973fca
// > std::__ndk1::__time_get_c_storage::__x @ 0x974074
// > std::__ndk1::__time_get_c_storage::__x @ 0x974110
// > std::__ndk1::__time_get_c_storage::__X @ 0x9741a8
// > std::__ndk1::__time_get_c_storage::__X @ 0x974244
// > std::__ndk1::__time_get_c_storage::__c @ 0x9742dc
// > std::__ndk1::__time_get_c_storage::__c @ 0x974378
// > std::__ndk1::__time_get_c_storage::__r @ 0x974410
// > std::__ndk1::__time_get_c_storage::__r @ 0x9744ac
// > std::__ndk1::__thread_local_data @ 0x97ea72
// > __cxa_thread_atexit @ 0x980cec
//
// 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:06 +0000
//
void _cxa_guard_abort(__guard *a1)
{
if ( pthread_mutex_lock((pthread_mutex_t *)&unk_D33CD4) )
sub_981FC8("__cxa_guard_abort failed to acquire mutex");
*a1 = 0;
if ( pthread_mutex_unlock((pthread_mutex_t *)&unk_D33CD4) )
sub_981FC8("__cxa_guard_abort failed to release mutex");
if ( pthread_cond_broadcast((pthread_cond_t *)&unk_D33CD8) )
sub_981FC8("__cxa_guard_abort failed to broadcast condition variable");
}