//
// __cxa_guard_acquire from 0xf88b88 to 0xf88c48 (192 bytes)
//
// 124 xrefs:
// > GameToolbox::gen_random @ 0x6a8804
// > EmoteSprite::replaceTokens @ 0x6e14ac
// > ScrollableContentLayer::persistScrollOffset @ 0x6e4ae0
// > ScrollableContentLayer::restoreScrollOffset @ 0x6e5b70
// > LevelSettingsObject::getIDUseOrder @ 0x792730
// > LevelSettingsObject::sanitizeIDName @ 0x7975c4
// > LevelSettingsObject::getIDNames @ 0x797874
// > sub_992870 @ 0x99307c
// > cocos2d::CCCallFuncND::getClassTypeInfo @ 0xd2f3c8
// > cocos2d::CCCallFuncO::getClassTypeInfo @ 0xd2f478
// > cocos2d::CCCallFuncN::getClassTypeInfo @ 0xd2f528
// > cocos2d::CCDirector::getClassTypeInfo @ 0xd48698
// > cocos2d::CCFileUtils::getClassTypeInfo @ 0xd74c40
// > cocos2d::CCEGLView::sharedOpenGLView @ 0xd7b8c8
// > Java_org_cocos2dx_lib_Cocos2dxBitmap_nativeInitBitmapDC @ 0xd7e204
// > cocos2d::CCImage::initWithStringShadowStroke @ 0xd7e84c
// > cocos2d::CCImage::initWithString @ 0xd7ec20
// > cocos2d::CCIMEDispatcher::sharedDispatcher @ 0xda0f14
// > cocos2d::CCTouchDispatcher::touchesBegan @ 0xdb2340
// > std::__ndk1::ios_base::clear @ 0xf4281c
// > std::__ndk1::iostream_category @ 0xf4e6d4
// > std::__ndk1::num_get
>>::do_get @ 0xf52f60
// > std::__ndk1::__cloc @ 0xf5353c
// > std::__ndk1::num_get>>::do_get @ 0xf55f94
// > std::__ndk1::num_put>>::do_put @ 0xf5717c
// > std::__ndk1::num_put>>::do_put @ 0xf578e8
// > std::__ndk1::num_put>>::do_put @ 0xf57b28
// > std::__ndk1::num_put>>::do_put @ 0xf57d64
// > std::__ndk1::num_put>>::do_put @ 0xf58004
// > std::__ndk1::num_put>>::do_put @ 0xf58094
// > std::__ndk1::num_put>>::do_put @ 0xf580f8
// > std::__ndk1::__num_put::__widen_and_group_float @ 0xf58634
// > std::__ndk1::__num_put::__widen_and_group_float @ 0xf586b0
// > std::__ndk1::num_put>>::do_put @ 0xf58af8
// > std::__ndk1::num_put>>::do_put @ 0xf58b88
// > std::__ndk1::num_put>>::do_put @ 0xf58bec
// > std::__ndk1::num_put>>::do_put @ 0xf58e58
// > std::__ndk1::num_put>>::do_put @ 0xf59314
// > std::__ndk1::num_put>>::do_put @ 0xf59a04
// > std::__ndk1::num_put>>::do_put @ 0xf59c44
// > std::__ndk1::num_put>>::do_put @ 0xf59e80
// > std::__ndk1::num_put>>::do_put @ 0xf5a120
// > std::__ndk1::num_put>>::do_put @ 0xf5a1b0
// > std::__ndk1::num_put>>::do_put @ 0xf5a214
// > std::__ndk1::__num_put::__widen_and_group_float @ 0xf5a588
// > std::__ndk1::__num_put::__widen_and_group_float @ 0xf5a604
// > std::__ndk1::num_put>>::do_put @ 0xf5aa54
// > std::__ndk1::num_put>>::do_put @ 0xf5aae4
// > std::__ndk1::num_put>>::do_put @ 0xf5ab48
// > std::__ndk1::num_put>>::do_put @ 0xf5adb4
// > sub_F5FFE8 @ 0xf60024
// > std::__ndk1::__time_put::~__time_put @ 0xf603a0
// > sub_F60884 @ 0xf608c0
// > std::__ndk1::money_put>>::do_put @ 0xf669c4
// > std::__ndk1::money_put>>::do_put @ 0xf67b24
// > sub_F69168 @ 0xf69d8c
// > sub_F69168 @ 0xf69e50
// > sub_F6A1A8 @ 0xf6a264
// > std::__ndk1::locale::classic @ 0xf6b01c
// > sub_F6D62C @ 0xf6d650
// > std::__ndk1::locale::__global @ 0xf6d6f4
// > std::__ndk1::locale::locale @ 0xf6d770
// > std::__ndk1::locale::global @ 0xf6dc54
// > std::__ndk1::ctype::do_toupper @ 0xf6eecc
// > std::__ndk1::ctype::do_toupper @ 0xf6ef94
// > std::__ndk1::ctype::do_tolower @ 0xf6f044
// > std::__ndk1::ctype::do_tolower @ 0xf6f10c
// > std::__ndk1::ctype::do_toupper @ 0xf6f2f8
// > std::__ndk1::ctype::do_toupper @ 0xf6f3b8
// > std::__ndk1::ctype::do_tolower @ 0xf6f46c
// > std::__ndk1::ctype::do_tolower @ 0xf6f52c
// > std::__ndk1::codecvt::codecvt @ 0xf706ec
// > std::__ndk1::__time_get_c_storage::__weeks @ 0xf74bd0
// > std::__ndk1::__time_get_c_storage::__weeks @ 0xf74bf0
// > std::__ndk1::__time_get_c_storage::__weeks @ 0xf74d7c
// > std::__ndk1::__time_get_c_storage::__weeks @ 0xf74d9c
// > std::__ndk1::__time_get_c_storage::__months @ 0xf74f28
// > std::__ndk1::__time_get_c_storage::__months @ 0xf74f48
// > std::__ndk1::__time_get_c_storage::__months @ 0xf75174
// > std::__ndk1::__time_get_c_storage::__months @ 0xf75194
// > std::__ndk1::__time_get_c_storage::__am_pm @ 0xf753c0
// > std::__ndk1::__time_get_c_storage::__am_pm @ 0xf753e0
// > std::__ndk1::__time_get_c_storage::__am_pm @ 0xf754ac
// > std::__ndk1::__time_get_c_storage::__am_pm @ 0xf754cc
// > std::__ndk1::__time_get_c_storage::__x @ 0xf75598
// > std::__ndk1::__time_get_c_storage::__x @ 0xf75638
// > std::__ndk1::__time_get_c_storage::__X @ 0xf756ec
// > std::__ndk1::__time_get_c_storage::__X @ 0xf7578c
// > std::__ndk1::__time_get_c_storage::__c @ 0xf75840
// > std::__ndk1::__time_get_c_storage::__c @ 0xf758e0
// > std::__ndk1::__time_get_c_storage::__r @ 0xf75994
// > std::__ndk1::__time_get_c_storage::__r @ 0xf75a34
// > std::__ndk1::codecvt::~codecvt @ 0xf7855c
// > std::__ndk1::__num_get_signed_integral @ 0xf78d58
// > std::__ndk1::__num_get_signed_integral @ 0xf78ea4
// > std::__ndk1::__num_get_unsigned_integral @ 0xf78ffc
// > std::__ndk1::__num_get_unsigned_integral @ 0xf79154
// > std::__ndk1::__num_get_unsigned_integral @ 0xf792ac
// > std::__ndk1::__num_get_unsigned_integral @ 0xf793fc
// > std::__ndk1::__num_get_float @ 0xf79538
// > std::__ndk1::__num_get_float @ 0xf7966c
// > std::__ndk1::__num_get_float @ 0xf797a0
// > std::__ndk1::__get_sp_mut @ 0xf79a9c
// > std::__ndk1::generic_category @ 0xf85a30
// > sub_F85B50 @ 0xf85b80
// > sub_F85B50 @ 0xf85bc4
// > std::__ndk1::system_category @ 0xf85c3c
// > std::__ndk1::__throw_system_error @ 0xf865b4
// > std::__ndk1::__thread_local_data @ 0xf8683c
// > std::__ndk1::future_category @ 0xf87028
// > std::__ndk1::__assoc_sub_state::set_value @ 0xf87214
// > std::__ndk1::__assoc_sub_state::set_value_at_thread_exit @ 0xf87368
// > std::__ndk1::__assoc_sub_state::set_exception @ 0xf874c0
// > std::__ndk1::__assoc_sub_state::set_exception_at_thread_exit @ 0xf87618
// > std::__ndk1::__assoc_sub_state::__execute @ 0xf87998
// > std::__ndk1::future::future @ 0xf87a8c
// > std::__ndk1::promise::~promise @ 0xf87c4c
// > std::__ndk1::promise::get_future @ 0xf87de0
// > std::__ndk1::promise::set_value @ 0xf87ea4
// > std::__ndk1::promise::set_exception @ 0xf87fac
// > std::__ndk1::promise::set_value_at_thread_exit @ 0xf88088
// > std::__ndk1::promise::set_exception_at_thread_exit @ 0xf88190
// > __cxa_thread_atexit @ 0xf89cdc
// > ??> @ 0xb5810
//
// 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:54 +0000
//
int _cxa_guard_acquire(__guard *a1)
{
int v2; // w1
int v3; // w2
int v4; // w3
int v5; // w4
int v6; // w5
int v7; // w6
int v8; // w7
_BOOL4 v9; // w20
int v10; // w1
int v11; // w2
int v12; // w3
int v13; // w4
int v14; // w5
int v15; // w6
int v16; // w7
int v17; // w1
int v18; // w2
int v19; // w3
int v20; // w4
int v21; // w5
int v22; // w6
int v23; // w7
char v25; // [xsp+0h] [xbp-20h]
if ( pthread_mutex_lock(&stru_1565EB8) )
sub_F8BF98("__cxa_guard_acquire failed to acquire mutex", v2, v3, v4, v5, v6, v7, v8, v25);
v9 = *(_BYTE *)a1 == 0;
if ( !*(_BYTE *)a1 )
{
while ( (*a1 & 0xFF00) != 0 )
{
if ( pthread_cond_wait(&stru_1565EE0, &stru_1565EB8) )
sub_F8BF98("__cxa_guard_acquire condition variable wait failed", v10, v11, v12, v13, v14, v15, v16, v25);
}
v9 = (unsigned __int8)*a1 == 0;
if ( !(unsigned __int8)*a1 )
*a1 = 256;
}
if ( pthread_mutex_unlock(&stru_1565EB8) )
sub_F8BF98("__cxa_guard_acquire failed to release mutex", v17, v18, v19, v20, v21, v22, v23, v25);
return v9;
}