// // LevelSettingsLayer::onSelectSpeed from 0xa35600 to 0xa35758 (344 bytes) // // 1 xrefs: // > @ 0xc6180 // // 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 LevelSettingsLayer::onSelectSpeed(LevelSettingsLayer *a1, cocos2d::CCObject *a2) { LevelSettingsObject *m_settingsObject; // x19 unsigned int v4; // w20 Speed m_startSpeed; // w23 __int64 v6; // x21 __int64 v7; // x0 unsigned int (__fastcall *v8)(__int64); // x1 void (__fastcall *v9)(__int64, __int64); // x19 __int64 v10; // x1 __int64 v11; // x19 __int64 v12; // x21 void (__fastcall *v13)(__int64, char *); // x28 char v14; // [xsp+60h] [xbp+60h] BYREF char v15; // [xsp+61h] [xbp+61h] char v16; // [xsp+62h] [xbp+62h] if ( a2 ) { m_settingsObject = a1->m_settingsObject; m_settingsObject->m_startSpeed = a2->getTag(a2); } v4 = 0; m_startSpeed = a1->m_settingsObject->m_startSpeed; while ( v4 < (unsigned int)cocos2d::CCArray::count(a1->m_speedButtons) ) { v11 = cocos2d::CCArray::objectAtIndex(a1->m_speedButtons, v4); v12 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 1056LL))(v11); v13 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v12 + 944LL); if ( m_startSpeed == (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v11 + 64LL))(v11) ) { v14 = -1; v15 = -1; v16 = -1; } else { v14 = 0; v15 = 0; v16 = 0; } ++v4; v13(v12, &v14); v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 1056LL))(v11); v7 = v11; v8 = *(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v11 + 64LL); v9 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 896LL); if ( m_startSpeed == v8(v7) ) v10 = 255; else v10 = 85; v9(v6, v10); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source