// // UILayer::updateCheckState from 0x1004c8560 to 0x1004c86e4 (388 bytes) // // 2 xrefs: // > UIPOptionsLayer::onClose @ 0x1002b76b9 // > UILayer::init @ 0x1004c82d7 // // 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) { GameManager *v1; // rax cocos2d::CCDirector *v2; // rax float v3; // xmm1_4 unsigned int v4; // r14d unsigned int v5; // r13d __int64 v6; // rcx const void *v7; // rax const void *v8; // r12 _QWORD *v9; // rax double v10; // [rsp+Ch] [rbp-44h] BYREF float v11; // [rsp+14h] [rbp-3Ch] BYREF __int64 v12; // [rsp+1Ch] [rbp-34h] BYREF float m_practiceOpacity; // [rsp+24h] [rbp-2Ch] cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v11); v1 = GameManager::sharedState(); sub_10028CC60(&v12, (double *)&v1->m_practicePos); if ( *(float *)&v12 == 0.0 && *((float *)&v12 + 1) == 0.0 ) { m_practiceOpacity = v11 * 0.5; v2 = cocos2d::CCDirector::sharedDirector(); v3 = sub_100484D80((__int64)v2) + 40.0; sub_10028CBE0((float *)&v10, m_practiceOpacity, v3); sub_10028CC90(&v12, &v10); } ((void (__fastcall *)(cocos2d::CCMenu *, __int64 *))a1->m_checkpointMenu->setPosition)(a1->m_checkpointMenu, &v12); m_practiceOpacity = GameManager::sharedState()->m_practiceOpacity; if ( (unsigned int)sub_100720070(a1->m_controllerButtons) ) { v4 = 0; v5 = (unsigned __int8)(int)(float)(m_practiceOpacity * 255.0); do { v7 = (const void *)sub_1007200C0(a1->m_controllerButtons, v4); if ( v7 ) { v8 = v7; v9 = __dynamic_cast( v7, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCSprite, 0); if ( v9 ) { v6 = 896; } else { v9 = __dynamic_cast( v8, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCLabelBMFont, 0); if ( !v9 ) goto LABEL_8; v6 = 1008; } (*(void (__fastcall **)(_QWORD *, _QWORD))(*v9 + v6))(v9, v5); } LABEL_8: ++v4; } while ( v4 < (unsigned int)sub_100720070(a1->m_controllerButtons) ); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source