//
// __cxa_guard_release from 0x980010 to 0x980052 (66 bytes)
//
// 46 xrefs:
// > GameToolbox::gen_random @ 0x3d3ec8
// > EmoteSprite::replaceTokens @ 0x3f420e
// > sub_3F46FC @ 0x3f4726
// > LevelSettingsObject::getIDUseOrder @ 0x465b86
// > LevelSettingsObject::sanitizeIDName @ 0x468c5c
// > LevelSettingsObject::getIDNames @ 0x468ecc
// > sub_587CFC @ 0x587d62
// > cocos2d::CCCallFuncN::getClassTypeInfo @ 0x7bbaca
// > cocos2d::CCCallFuncND::getClassTypeInfo @ 0x7bbb0e
// > cocos2d::CCCallFuncO::getClassTypeInfo @ 0x7bbb52
// > cocos2d::CCDirector::getClassTypeInfo @ 0x7c9c16
// > cocos2d::CCFileUtils::getClassTypeInfo @ 0x7e6efe
// > cocos2d::CCEGLView::sharedOpenGLView @ 0x7eab9a
// > sub_7EB71C @ 0x7eb73e
// > cocos2d::CCIMEDispatcher::sharedDispatcher @ 0x7fe59a
// > cocos2d::CCTouchDispatcher::touchesBegan @ 0x8084c4
// > std::__ndk1::iostream_category @ 0x95c4c6
// > std::__ndk1::__cloc @ 0x95f9a0
// > std::__ndk1::locale::classic @ 0x96dcf4
// > std::__ndk1::locale::__global @ 0x96eba4
// > std::__ndk1::__time_get_c_storage::__weeks @ 0x973524
// > std::__ndk1::__time_get_c_storage::__weeks @ 0x9735f8
// > std::__ndk1::__time_get_c_storage::__weeks @ 0x973714
// > std::__ndk1::__time_get_c_storage::__weeks @ 0x9737e8
// > std::__ndk1::__time_get_c_storage::__months @ 0x973906
// > std::__ndk1::__time_get_c_storage::__months @ 0x973a6a
// > std::__ndk1::__time_get_c_storage::__months @ 0x973bda
// > std::__ndk1::__time_get_c_storage::__months @ 0x973d3e
// > std::__ndk1::__time_get_c_storage::__am_pm @ 0x973ea8
// > std::__ndk1::__time_get_c_storage::__am_pm @ 0x973ed4
// > std::__ndk1::__time_get_c_storage::__am_pm @ 0x973f8c
// > std::__ndk1::__time_get_c_storage::__am_pm @ 0x973fb8
// > std::__ndk1::__time_get_c_storage::__x @ 0x974064
// > std::__ndk1::__time_get_c_storage::__x @ 0x974100
// > std::__ndk1::__time_get_c_storage::__X @ 0x974198
// > std::__ndk1::__time_get_c_storage::__X @ 0x974234
// > std::__ndk1::__time_get_c_storage::__c @ 0x9742cc
// > std::__ndk1::__time_get_c_storage::__c @ 0x974368
// > std::__ndk1::__time_get_c_storage::__r @ 0x974400
// > std::__ndk1::__time_get_c_storage::__r @ 0x97449c
// > std::__ndk1::__get_sp_mut @ 0x97702a
// > std::__ndk1::generic_category @ 0x97e1ae
// > std::__ndk1::system_category @ 0x97e27e
// > std::__ndk1::__thread_local_data @ 0x97ea62
// > std::__ndk1::future_category @ 0x97efa2
// > __cxa_thread_atexit @ 0x980c8e
//
// 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_release(__guard *a1)
{
if ( pthread_mutex_lock((pthread_mutex_t *)&unk_D33CD4) )
sub_981FC8("__cxa_guard_release failed to acquire mutex");
*a1 = 1;
if ( pthread_mutex_unlock((pthread_mutex_t *)&unk_D33CD4) )
sub_981FC8("__cxa_guard_release failed to release mutex");
if ( pthread_cond_broadcast((pthread_cond_t *)&unk_D33CD8) )
sub_981FC8("__cxa_guard_release failed to broadcast condition variable");
}