//
// sub_10036D220 from 0x10036d220 to 0x10036d278 (88 bytes)
//
// 1 xrefs:
// > sub_100369218 @ 0x10036a4ac
//
// 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 11:03:21 +0000
//
__int64 __fastcall sub_10036D220(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x0
__int64 v4; // x0
__n128 GameVariable; // q0
__int64 v6; // x0
v2 = GameManager::sharedState(a1);
v3 = GameManager::toggleGameVariable(v2, "0178");
v4 = GameManager::sharedState(v3);
GameVariable = GameManager::getGameVariable(v4, "0178");
*(_BYTE *)(a1 + 976) = v6;
*(_DWORD *)(a1 + 980) = 1065353216;
return (*(__int64 (__fastcall **)(_QWORD, __int64, __n128))(**(_QWORD **)(a1 + 984) + 344LL))(
*(_QWORD *)(a1 + 984),
v6,
GameVariable);
}