// // __cxa_guard_acquire from 0x743b1c to 0x743c24 (264 bytes) // // 13 xrefs: // > cocos2d::CCCallFuncND::getClassTypeInfo @ 0x5b5274 // > cocos2d::CCCallFuncO::getClassTypeInfo @ 0x5b52c0 // > cocos2d::CCCallFuncN::getClassTypeInfo @ 0x5b530c // > cocos2d::CCDirector::getClassTypeInfo @ 0x5c2962 // > cocos2d::CCFileUtils::getClassTypeInfo @ 0x5deaaa // > cocos2d::CCEGLView::sharedOpenGLView @ 0x5e1012 // > sub_5E18FC @ 0x5e1910 // > cocos2d::CCIMEDispatcher::sharedDispatcher @ 0x5f2d32 // > sub_742C1C @ 0x742c2c // > sub_756A4C @ 0x756aa2 // > sub_757BA0 @ 0x757c46 // > sub_757DB4 @ 0x757e3e // > sub_773970 @ 0x773988 // // 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 // int _cxa_guard_acquire(__guard *a1) { __guard v2; // r9 __guard v3; // r6 __guard v4; // r8 unsigned int v5; // r2 bool v6; // zf unsigned int v7; // r3 unsigned int v9; // r3 bool v10; // zf unsigned int v11; // r1 _DWORD *exception; // r0 if ( &__google_potentially_blocking_region_begin ) _google_potentially_blocking_region_begin(); v2 = *a1 & 1; if ( v2 ) { v2 = 0; } else if ( &pthread_create ) { v3 = *a1 & 1 | 0x100; v4 = *a1 & 1 | 0x10100; while ( 1 ) { __dmb(0xFu); do { v5 = __ldrex((unsigned int *)a1); v6 = v5 == 0; if ( v5 ) break; v7 = __strex(v3, (unsigned int *)a1); v6 = v7 == 0; } while ( v7 ); __dmb(0xFu); if ( v6 ) break; if ( v5 == 1 ) goto LABEL_13; if ( v5 == v3 ) { __dmb(0xFu); do { v9 = __ldrex((unsigned int *)a1); v10 = v9 == v5; if ( v9 != v5 ) break; v11 = __strex(v4, (unsigned int *)a1); v10 = v11 == 0; } while ( v11 ); __dmb(0xFu); if ( !v10 ) { if ( v9 == 1 ) goto LABEL_13; if ( !v9 ) continue; } } syscall(240, a1, 0); } v2 = 1; } else if ( (*a1 & 1) == 0 ) { if ( *((_BYTE *)a1 + 1) ) { exception = _cxa_allocate_exception(4u); *exception = &off_AAF980; _cxa_throw( exception, (struct type_info *)&`typeinfo for'__gnu_cxx::recursive_init_error, (void (*)(void *))__gnu_cxx::recursive_init_error::~recursive_init_error); } v2 = 1; *((_BYTE *)a1 + 1) = 1; } LABEL_13: if ( &__google_potentially_blocking_region_end ) _google_potentially_blocking_region_end(); return v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source