//
// EditorPauseLayer::toggleGridOnTop from 0x10027f190 to 0x10027f20c (124 bytes)
//
// 0 xrefs:
//
// 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 12:27:42 +0000
//
__int64 __fastcall EditorPauseLayer::toggleGridOnTop(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v4; // rax
__int64 v5; // rdi
__int64 v6; // rdx
double v7; // xmm0_8
__int64 v8; // rax
char GameVariable; // r14
__int64 v10; // rax
__int64 v11; // rdx
GameManager::sharedState(a1, a2, a3);
v5 = v4;
GameManager::toggleGameVariable(v4, "0039");
*(_QWORD *)&v7 = GameManager::sharedState(v5, "0039", v6).u64[0];
GameVariable = GameManager::getGameVariable(v8, "0039");
v10 = (*(__int64 (__fastcall **)(_QWORD, double))(**(_QWORD **)(*(_QWORD *)(a1 + 576) + 14288LL) + 512LL))(
*(_QWORD *)(*(_QWORD *)(a1 + 576) + 14288LL),
v7);
v11 = 4294965697LL;
if ( GameVariable )
v11 = 1399;
return (*(__int64 (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)v10 + 592LL))(
v10,
*(_QWORD *)(*(_QWORD *)(a1 + 576) + 14288LL),
v11);
}