// // SetupTouchTogglePopup::onTouchMode from 0x1405fab20 to 0x1405fabe4 (196 bytes) // // 3 xrefs: // > SetupTouchTogglePopup::init @ 0x1405fa549 // > SetupTouchTogglePopup::init @ 0x1405fa5f9 // > @ 0x14092f6e4 // // 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:35:08 +0000 // __int64 __fastcall SetupTouchTogglePopup::onTouchMode(__int64 a1, __int64 a2) { unsigned int v3; // edi bool v4; // zf __int64 v5; // rdx __int64 v6; // rax int v7; // ecx cocos2d::CCArray *v8; // rcx struct cocos2d::CCObject *v9; // rax __int64 v10; // rdx v3 = 0; v4 = (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) == 1; v6 = *(_QWORD *)(a1 + 680); v7 = !v4 + 1; if ( *(_DWORD *)(a1 + 1016) == v7 ) v7 = 0; *(_DWORD *)(a1 + 1016) = v7; if ( v6 ) { *(_DWORD *)(v6 + 1656) = v7; } else { v8 = *(cocos2d::CCArray **)(a1 + 688); if ( v8 && cocos2d::CCArray::count(v8) ) { do { v9 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 688), v3++); *((_DWORD *)v9 + 414) = *(_DWORD *)(a1 + 1016); } while ( v3 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 688)) ); } } LOBYTE(v5) = *(_DWORD *)(a1 + 1016) == 1; CCMenuItemToggler::toggle(*(_QWORD *)(a1 + 1024), v5); LOBYTE(v10) = *(_DWORD *)(a1 + 1016) == 2; return CCMenuItemToggler::toggle(*(_QWORD *)(a1 + 1032), v10); }
GD Web Decomp Icon

GD Web Decomp

Raw Source