// // PlatformerControlsPopup::refreshModeUI from 0xcfa92c to 0xcfac04 (728 bytes) // // 4 xrefs: // > PlatformerControlsPopup::syncSourceUI @ 0xcfac44 // > PlatformerControlsPopup::onToggleSource @ 0xcfac7c // > PlatformerControlsPopup::init @ 0xcfb3d4 // > @ 0x716b0 // // 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 13:06:51 +0000 // __int64 __fastcall PlatformerControlsPopup::refreshModeUI(cocos2d::CCNode **this) { cocos2d::CCDirector *IsCustom; // x0 unsigned int v3; // w27 cocos2d::CCDirector *v4; // x0 unsigned int v5; // w26 float v6; // s9 float v7; // s8 __int64 v8; // x1 __int64 v9; // x20 __int64 v10; // x21 __int64 v11; // x21 cocos2d::CCNode *v12; // x24 void (__fastcall *v13)(__int64, __int64 *); // x25 __int64 v14; // x0 __int64 v15; // x0 __int64 v16; // x0 __int64 v17; // x1 __int64 v18; // x20 __int64 v19; // x0 __int64 v20; // x0 PlatformerControlsPopup *v21; // x20 cocos2d::CCDirector *v23; // x0 __int64 v24; // [xsp+88h] [xbp+88h] BYREF _BYTE v25[8]; // [xsp+90h] [xbp+90h] BYREF __int64 v26; // [xsp+98h] [xbp+98h] BYREF _QWORD v27[3]; // [xsp+A0h] [xbp+A0h] IsCustom = (cocos2d::CCDirector *)PlatformerControlsPopup::sourceIsCustom((PlatformerControlsPopup *)this); v3 = (unsigned __int8)IsCustom; if ( (_BYTE)IsCustom && (IsCustom = (cocos2d::CCDirector *)*((unsigned __int8 *)this + 1200), *((_BYTE *)this + 1200)) ) { v4 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(IsCustom); v5 = 1; cocos2d::CCDirector::getWinSize(&v24, v4); v6 = (float)(*((float *)this + 184) * 0.5) + (float)(*((float *)&v24 + 1) * 0.5); v7 = (float)(*(float *)&v24 * 0.5) + -45.0; } else { v23 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(IsCustom); v5 = 0; cocos2d::CCDirector::getWinSize(&v24, v23); v7 = *(float *)&v24 * 0.5; v6 = (float)(*((float *)this + 184) * 0.5) + (float)(*((float *)&v24 + 1) * 0.5); } v8 = (__int64)*(this + 140); v9 = 0; v10 = (__int64)*(this + 142); v27[1] = *(this + 141); v27[0] = v8; v27[2] = v10; do { v11 = v27[v9]; if ( v11 ) { v12 = *(this + 69); v13 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v11 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v25, v7, v6 - flt_11A54F0[v9]); cocos2d::CCNode::convertToNodeSpace(&v26, v12, (const cocos2d::CCPoint *)v25); v13(v11, &v26); } ++v9; } while ( v9 != 3 ); v14 = (__int64)*(this + 142); if ( v14 ) { (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v14 + 344LL))(v14, v3); (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*(this + 142) + 1056LL))(*(this + 142), v3); } v15 = (__int64)*(this + 140); if ( v15 ) { (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v15 + 344LL))(v15, v3); (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*(this + 140) + 1056LL))(*(this + 140), v3); } v16 = (__int64)*(this + 151); if ( v16 ) { v17 = (__int64)*(this + 131); if ( v17 && *(_DWORD *)(v17 + 328) - *(_DWORD *)(v17 + 332) > 0 ) { (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v16 + 344LL))(v16, v5); (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*(this + 151) + 1056LL))(*(this + 151), v5); v18 = (__int64)*(this + 152); LOWORD(v26) = -1; BYTE2(v26) = -1; } else { (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v16 + 344LL))(v16, v5); (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*(this + 151) + 1056LL))(*(this + 151), 0); v18 = (__int64)*(this + 152); LOWORD(v26) = -26986; BYTE2(v26) = -106; } v19 = *(_QWORD *)(v18 + 624); if ( v19 ) (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v19 + 1072LL))(v19, &v26); v20 = *(_QWORD *)(v18 + 648); if ( v20 ) (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v20 + 960LL))(v20, &v26); } v21 = (PlatformerControlsPopup *)(this + 153); do { if ( *(_QWORD *)v21 ) (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)v21 + 344LL))(*(_QWORD *)v21, v5); v21 = (PlatformerControlsPopup *)((char *)v21 + 8); } while ( v21 != (PlatformerControlsPopup *)(this + 156) ); PlatformerControlsPopup::refreshClassUI(this); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source