// // PlatformerControlsPopup::refreshModeUI from 0x140450aa0 to 0x140450e5d (957 bytes) // // 6 xrefs: // > PlatformerControlsPopup::init @ 0x14044fff4 // > PlatformerControlsPopup::syncSourceUI @ 0x140450a90 // > PlatformerControlsPopup::onToggleSource @ 0x1404517a6 // > @ 0x1408cc79c // > @ 0x1408cc82c // > @ 0x1409276e0 // // This function is hookable on this platform (idp: pc, 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 11:32:27 +0000 // __int64 __fastcall PlatformerControlsPopup::refreshModeUI(__int64 a1) { __int64 v2; // rax bool v3; // r15 bool v4; // bp __int64 v5; // rax __int64 v6; // rdx float v7; // xmm6_4 float v8; // xmm7_4 _QWORD *v9; // rax _QWORD *v10; // r12 __int64 *v11; // rdi _QWORD *v12; // r14 __int64 *v13; // r13 __int64 v14; // rbx __int64 v15; // rax __int64 v16; // rax __int64 v17; // rdi __int64 v18; // rbx __int64 v19; // rax __int64 v20; // rax __int64 v21; // rdi __int64 v22; // rbx __int64 v23; // rax __int64 v24; // rax __int64 v25; // rdx __int64 v26; // r8 __int64 v27; // rcx bool v28; // bl __int64 v29; // rdx __int64 v30; // rdi char v31; // cl __int64 v32; // rcx __int64 v33; // rcx __int64 v34; // rcx __int64 v35; // rcx __int64 v36; // rcx char v38[8]; // [rsp+20h] [rbp-88h] BYREF char v39[8]; // [rsp+28h] [rbp-80h] BYREF _QWORD *v40; // [rsp+30h] [rbp-78h] _QWORD *v41; // [rsp+B0h] [rbp+8h] BYREF float v42; // [rsp+B8h] [rbp+10h] BYREF float v43; // [rsp+BCh] [rbp+14h] _QWORD *v44; // [rsp+C0h] [rbp+18h] _QWORD *v45; // [rsp+C8h] [rbp+20h] v2 = *(_QWORD *)(a1 + 1032); v3 = v2 && *(_DWORD *)(v2 + 2096) == 1; v4 = *(_BYTE *)(a1 + 1192) && v3; v5 = cocos2d::CCDirector::sharedDirector(a1); cocos2d::CCDirector::getWinSize(v5, &v42); v7 = v42 * 0.5; v8 = (float)(*(float *)(a1 + 736) * 0.5) + (float)(v43 * 0.5); if ( v4 ) v7 = v7 - 45.0; v9 = *(_QWORD **)(a1 + 1120); v10 = (_QWORD *)(a1 + 1112); v11 = *(__int64 **)(a1 + 1112); v12 = (_QWORD *)(a1 + 1128); v13 = *(__int64 **)(a1 + 1128); v41 = v9; if ( v11 ) { v14 = *v11; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v38, v7, v8 - 108.0); cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 552), v39, v15); (*(void (__fastcall **)(__int64 *, __int64))(v14 + 184))(v11, v16); v9 = v41; } v44 = (_QWORD *)(a1 + 1128); v45 = (_QWORD *)(a1 + 1112); v40 = (_QWORD *)(a1 + 1128); if ( v9 ) { v17 = *v9; v18 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v38, v7, v8 - 140.0); cocos2d::CCNode::convertToNodeSpace(v18, v39, v19); (*(void (__fastcall **)(_QWORD *, __int64))(v17 + 184))(v41, v20); v10 = v45; v40 = v44; } if ( v13 ) { v21 = *v13; v22 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v38, v7, v8 - 172.0); cocos2d::CCNode::convertToNodeSpace(v22, v39, v23); (*(void (__fastcall **)(__int64 *, __int64))(v21 + 184))(v13, v24); v12 = v40; } if ( *v12 ) { (*(void (__fastcall **)(_QWORD, bool))(*(_QWORD *)*v12 + 336LL))(*v12, v3); (*(void (__fastcall **)(_QWORD, bool))(*(_QWORD *)*v12 + 936LL))(*v12, v3); } if ( *v10 ) { LOBYTE(v6) = 1; (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*v10 + 336LL))(*v10, v6); LOBYTE(v25) = 1; (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*v10 + 936LL))(*v10, v25); } v26 = *(_QWORD *)(a1 + 1200); if ( v26 ) { v27 = *(_QWORD *)(a1 + 1032); v28 = v27 && *(_DWORD *)(v27 + 328) - *(_DWORD *)(v27 + 332) > 0; (*(void (__fastcall **)(_QWORD, bool))(*(_QWORD *)v26 + 336LL))(*(_QWORD *)(a1 + 1200), v4); if ( v4 && v28 ) LOBYTE(v29) = 1; else v29 = 0; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1200) + 936LL))(*(_QWORD *)(a1 + 1200), v29); v30 = *(_QWORD *)(a1 + 1208); if ( v28 ) { LOWORD(v41) = -1; v31 = -1; } else { LOWORD(v41) = -26986; v31 = -106; } BYTE2(v41) = v31; v32 = *(_QWORD *)(v30 + 632); if ( v32 ) (**(void (__fastcall ***)(__int64, _QWORD **))(v32 + 368))(v32 + 368, &v41); v33 = *(_QWORD *)(v30 + 656); if ( v33 ) (**(void (__fastcall ***)(__int64, _QWORD **))(v33 + 320))(v33 + 320, &v41); } v34 = *(_QWORD *)(a1 + 1216); if ( v34 ) (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v34 + 336LL))(v34, v4); v35 = *(_QWORD *)(a1 + 1224); if ( v35 ) (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v35 + 336LL))(v35, v4); v36 = *(_QWORD *)(a1 + 1232); if ( v36 ) (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v36 + 336LL))(v36, v4); return PlatformerControlsPopup::refreshClassUI(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source