// // UILayer::updateCheckState from 0x100049638 to 0x1000497b0 (376 bytes) // // 2 xrefs: // > UILayer::init @ 0x100049488 // > UIPOptionsLayer::onClose @ 0x1002e61fc // // 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 // void __fastcall UILayer::updateCheckState(UILayer *a1) { cocos2d::CCDirector *v2; // x0 GameManager *v3; // x0 __n128 v4; // q0 float v5; // s8 cocos2d::CCDirector *v6; // x0 __n128 v7; // q0 __n128 v8; // q1 __int64 v9; // x20 const void *v10; // x0 const void *v11; // x25 _QWORD *v12; // x0 __int64 v13; // x8 double v14; // [xsp+8h] [xbp-68h] BYREF __int64 v15; // [xsp+10h] [xbp-60h] BYREF float v16; // [xsp+18h] [xbp-58h] v2 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v2); v3 = GameManager::sharedState(); sub_1000229B8(&v15, (__int64 *)&v3->m_practicePos); v4.n128_u32[0] = v15; if ( *(float *)&v15 == 0.0 ) { v4.n128_u32[0] = HIDWORD(v15); if ( *((float *)&v15 + 1) == 0.0 ) { v5 = v16 * 0.5; v6 = cocos2d::CCDirector::sharedDirector(); v7.n128_f64[0] = sub_1001768D0(v6); v8.n128_f32[0] = v7.n128_f32[0] + 40.0; v7.n128_f32[0] = v5; sub_100022980(v7, v8, &v14); v4.n128_f64[0] = sub_1000229D0(&v15, &v14); } } ((void (__fastcall *)(cocos2d::CCMenu *, __int64 *, __n128))a1->m_checkpointMenu->setPosition)( a1->m_checkpointMenu, &v15, v4); GameManager::sharedState(); if ( (unsigned int)sub_10024A36C(a1->m_controllerButtons) ) { v9 = 0; do { v10 = (const void *)sub_10024A388(a1->m_controllerButtons, v9); if ( v10 ) { v11 = 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 ) { v13 = 896; LABEL_11: (*(void (**)(void))(*v12 + v13))(); goto LABEL_12; } v12 = __dynamic_cast( v11, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCLabelBMFont, 0); if ( v12 ) { v13 = 1008; goto LABEL_11; } } LABEL_12: v9 = (unsigned int)(v9 + 1); } while ( (unsigned int)v9 < (unsigned int)sub_10024A36C(a1->m_controllerButtons) ); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source