//
// GameManager::toggleGameVariable from 0x1003b5c80 to 0x1003b5cc0 (64 bytes)
//
// 44 xrefs:
// > UILayer::handleAction @ 0x100051ad4
// > UILayer::handleAction @ 0x100051b6c
// > UILayer::handleAction @ 0x100051bd8
// > UILayer::handleAction @ 0x100051c98
// > UILayer::handleAction @ 0x100051d3c
// > UILayer::handleAction @ 0x100051db0
// > UILayer::handleAction @ 0x100051f4c
// > UILayer::handleAction @ 0x100051fc4
// > UILayer::handleAction @ 0x100052180
// > UILayer::handleAction @ 0x1000521fc
// > UILayer::handleAction @ 0x100052258
// > UILayer::handleAction @ 0x1000522cc
// > OptionsLayer::onMenuMusic @ 0x1001137f4
// > MoreVideoOptionsLayer::onToggle @ 0x100115fac
// > sub_100117758 @ 0x100117770
// > sub_100117F58 @ 0x100117fb8
// > EditorUI::handleEditorAction @ 0x100162b98
// > EditorUI::handleEditorAction @ 0x100163240
// > EditorUI::handleEditorAction @ 0x100163318
// > EditorUI::handleEditorAction @ 0x100163444
// > EditorUI::toggleViewOption @ 0x100189468
// > PauseLayer::onSideButtonPressed @ 0x1001bfbdc
// > sub_1001F3598 @ 0x1001f35bc
// > sub_10036D220 @ 0x10036d240
// > GJOptionsLayer::onToggle @ 0x1003723e8
// > sub_1003A259C @ 0x1003a25b4
// > sub_1003F0334 @ 0x1003f0350
// > sub_1003F0364 @ 0x1003f0380
// > EditorUI::init @ 0x100470934
// > EditorUI::init @ 0x100470944
// > EditorUI::onStickyToggle @ 0x10047167c
// > sub_1004AACDC @ 0x1004aacf4
// > sub_1004B7ABC @ 0x1004b7ad0
// > sub_1004B7AF8 @ 0x1004b7b0c
// > sub_1004B7B34 @ 0x1004b7b4c
// > sub_1004B7B50 @ 0x1004b7b68
// > sub_1004B7B6C @ 0x1004b7b84
// > sub_1004B7B88 @ 0x1004b7ba0
// > sub_1004B7C40 @ 0x1004b7c58
// > sub_1004B7CC8 @ 0x1004b7ce0
// > sub_1004B7CE4 @ 0x1004b7cf8
// > sub_1004B96D4 @ 0x1004b96ec
// > TimeSpeedControl::onAudioTimeSpeedToggle @ 0x10052bb9c
// > TouchControlEditLayer::valueDidChange @ 0x10052da1c
//
// 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:56 +0000
//
bool __fastcall GameManager::toggleGameVariable(__int64 a1, std::string::value_type *a2)
{
__int64 v3; // x0
_BOOL4 GameVariable; // w20
__int64 v5; // x0
v3 = GameManager::sharedState();
GameVariable = GameManager::getGameVariable(v3, a2);
v5 = GameManager::sharedState();
GameManager::setGameVariable(v5, a2, !GameVariable);
return !GameVariable;
}