// // UILayer::updateCheckState from 0x1404cd420 to 0x1404cd607 (487 bytes) // // 3 xrefs: // > UIPOptionsLayer::onClose @ 0x1402a5efe // > UILayer::init @ 0x1404cd3dc // > @ 0x1406dd418 // // 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 // // Hidden C++ exception states: #wind=2 void UILayer::updateCheckState(UILayer *a1) { cocos2d::CCDirector *v2; // rax __int64 v3; // rcx cocos2d::CCDirector *v4; // rax float v5; // xmm0_4 __int64 v6; // rax __int64 v7; // rax float v8; // xmm6_4 unsigned int v9; // ebx struct cocos2d::CCObject *v10; // rsi __int64 v11; // rax __int64 v12; // rcx __int64 v13; // rax cocos2d::CCPoint v14; // [rsp+60h] [rbp+8h] BYREF float v15; // [rsp+68h] [rbp+10h] void *v16; // [rsp+70h] [rbp+18h] v2 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(a1); cocos2d::CCDirector::getWinSize(v2); if ( !qword_1406C2ED8 ) { v16 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v16); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); } cocos2d::CCPoint::CCPoint(&v14); if ( v14.x == 0.0 && v14.y == 0.0 ) { v4 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v3); v5 = cocos2d::CCDirector::getScreenBottom(v4) + 40.0; cocos2d::CCPoint::CCPoint(v5, v15 * 0.5); cocos2d::CCPoint::operator=(&v14, v6); } a1->m_checkpointMenu->setPosition_0(a1->m_checkpointMenu, &v14); v7 = qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v16 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v16); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v7 = qword_1406C2ED8; } v8 = *(float *)(v7 + 1632) * 255.0; v9 = 0; if ( cocos2d::CCArray::count(a1->m_controllerButtons) ) { while ( 1 ) { v10 = cocos2d::CCArray::objectAtIndex(a1->m_controllerButtons, v9); v11 = _RTDynamicCast( v10, 0, &cocos2d::CCObject `RTTI Type Descriptor', &cocos2d::CCSprite `RTTI Type Descriptor', 0); if ( v11 ) break; v13 = _RTDynamicCast( v10, 0, &cocos2d::CCObject `RTTI Type Descriptor', &cocos2d::CCLabelBMFont `RTTI Type Descriptor', 0); if ( v13 ) { v12 = v13 + 368; goto LABEL_13; } LABEL_14: if ( ++v9 >= cocos2d::CCArray::count(a1->m_controllerButtons) ) return; } v12 = v11 + 320; LABEL_13: (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v12 + 40LL))(v12, (unsigned int)(int)v8); goto LABEL_14; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source