//
// EditorPauseLayer::toggleGridOnTop from 0x8b6c68 to 0x8b6ce4 (124 bytes)
//
// 1 xrefs:
// > ??> @ 0xde1c0
//
// 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 12:56:25 +0000
//
__int64 __fastcall EditorPauseLayer::toggleGridOnTop(EditorPauseLayer *this, cocos2d::CCObject *a2)
{
GameManager *v3; // x0
GameManager *v4; // x0
GameManager *v5; // x0
int GameVariable; // w19
__int64 v7; // x0
__int64 v8; // x2
v3 = (GameManager *)GameManager::sharedState(this);
v4 = (GameManager *)GameManager::toggleGameVariable(v3, "0039");
v5 = (GameManager *)GameManager::sharedState(v4);
GameVariable = (unsigned __int8)GameManager::getGameVariable(v5, "0039");
v7 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(*((_QWORD *)this + 72) + 14288LL) + 512LL))(*(_QWORD *)(*((_QWORD *)this + 72) + 14288LL));
if ( GameVariable )
v8 = 1399;
else
v8 = 4294965697LL;
return (*(__int64 (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)v7 + 592LL))(
v7,
*(_QWORD *)(*((_QWORD *)this + 72) + 14288LL),
v8);
}