// // UILayer::updateCheckState from 0x6ee638 to 0x6ee7ec (436 bytes) // // 3 xrefs: // > UILayer::init @ 0x6f07f0 // > UIPOptionsLayer::onClose @ 0xa1eb84 // > @ 0x9d648 // // 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 12:51:47 +0000 // __int64 __fastcall UILayer::updateCheckState(UILayer *this) { cocos2d::CCDirector *v2; // x0 GameManager *WinSize; // x0 __int64 v4; // x0 cocos2d::CCDirector *v5; // x0 long double v6; // q0 unsigned int v7; // w19 GameManager *v8; // x0 unsigned int v9; // w23 const void *v10; // x0 const void *v11; // x21 void *v12; // x0 void *v14; // x0 float v15; // s8 cocos2d::CCDirector *v16; // x0 float v17; // s0 __int64 v18; // [xsp+70h] [xbp+70h] BYREF float v19; // [xsp+78h] [xbp+78h] BYREF float v20; // [xsp+7Ch] [xbp+7Ch] _BYTE v21[8]; // [xsp+80h] [xbp+80h] BYREF v2 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard); WinSize = (GameManager *)cocos2d::CCDirector::getWinSize(&v18, v2); v4 = GameManager::sharedState(WinSize); v5 = (cocos2d::CCDirector *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v19, (const cocos2d::CCPoint *)(v4 + 1704)); *(float *)&v6 = v19; if ( v19 == 0.0 ) { *(float *)&v6 = v20; if ( v20 == 0.0 ) { v15 = *(float *)&v18 * 0.5; v16 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v5); cocos2d::CCDirector::getScreenBottom(v16); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, v15, v17 + 40.0); *(__n128 *)&v6 = cocos2d::CCPoint::operator=(&v19, v21); } } v7 = 0; v8 = (GameManager *)(*(__int64 (__fastcall **)(_QWORD, float *, long double))(**((_QWORD **)this + 70) + 184LL))( *((_QWORD *)this + 70), &v19, v6); v9 = (unsigned int)(float)(*(float *)(GameManager::sharedState(v8) + 1712) * 255.0); while ( v7 < (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 79)) ) { v10 = (const void *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 79), v7); v11 = v10; if ( v10 ) { v12 = _dynamic_cast( v10, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCSprite, 0); if ( v12 ) { (*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v12 + 912LL))(v12, v9); } else { v14 = _dynamic_cast( v11, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCLabelBMFont, 0); if ( v14 ) { ++v7; (*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v14 + 1024LL))(v14, v9); continue; } } } ++v7; } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source