//
// GameManager::toggleGameVariable from 0x32400c to 0x324030 (36 bytes)
//
// 47 xrefs:
// > UILayer::handleKeypress @ 0x30d692
// > EditorUI::onStickyToggle @ 0x39cfea
// > EditorUI::init @ 0x3a28aa
// > EditorUI::init @ 0x3a28b6
// > EditorUI::keyDown @ 0x3a744c
// > EditorUI::keyDown @ 0x3a7472
// > EditorUI::keyDown @ 0x3a74a0
// > EditorUI::keyDown @ 0x3a74d2
// > EditorUI::keyDown @ 0x3a7512
// > EditorPauseLayer::toggleIgnoreDamage @ 0x3ff366
// > EditorPauseLayer::toggleHideInvisible @ 0x3ff37e
// > EditorPauseLayer::togglePreviewShaders @ 0x3ff396
// > EditorPauseLayer::toggleDebugDraw @ 0x3ff3ae
// > EditorPauseLayer::toggleEditorGrid @ 0x3ff3c6
// > EditorPauseLayer::toggleSelectFilter @ 0x3ff3de
// > EditorPauseLayer::toggleEditorColorMode @ 0x3ff3f4
// > EditorPauseLayer::togglePreviewParticles @ 0x3ff414
// > EditorPauseLayer::togglePreviewAnim @ 0x3ff434
// > EditorPauseLayer::toggleEditorGround @ 0x3ff456
// > EditorPauseLayer::toggleShowObjectInfo @ 0x3ff484
// > EditorPauseLayer::toggleFollowPlayer @ 0x3ffd4e
// > EditorPauseLayer::togglePlaytestMusic @ 0x3ffd66
// > EditorPauseLayer::toggleEffectDuration @ 0x3ffd7e
// > EditorPauseLayer::toggleEffectLines @ 0x3ffd96
// > EditorPauseLayer::toggleEditorBackground @ 0x3ffdae
// > EditorPauseLayer::toggleGridOnTop @ 0x3ffde2
// > EditorPauseLayer::toggleRecordOrder @ 0x3ffe3a
// > GJGarageLayer::onSpecial @ 0x4020e6
// > ParentalOptionsLayer::onToggle @ 0x421df8
// > OptionsLayer::onMenuMusic @ 0x4223fa
// > MoreOptionsLayer::onToggle @ 0x4224d6
// > MoreVideoOptionsLayer::onToggle @ 0x4262a6
// > InfoLayer::toggleExtendedMode @ 0x4316a4
// > InfoLayer::toggleSmallCommentMode @ 0x4316c4
// > KeybindingsLayer::onToggle @ 0x46b22a
// > GJOptionsLayer::onToggle @ 0x4a7c32
// > GameOptionsLayer::didToggle @ 0x4a9062
// > GameOptionsLayer::didToggle @ 0x4a9086
// > GameOptionsLayer::didToggle @ 0x4a90a4
// > GameOptionsLayer::didToggle @ 0x4a90ca
// > GameOptionsLayer::didToggle @ 0x4a90ec
// > GameOptionsLayer::didToggle @ 0x4a910e
// > GameOptionsLayer::didToggle @ 0x4a9134
// > UIOptionsLayer::valueDidChange @ 0x4b2f10
// > CreateParticlePopup::onTogglePerfLog @ 0x52f50a
// > SearchSFXPopup::onSearchFolders @ 0x582f32
// > SFXBrowser::onToggleCompactMode @ 0x58435e
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
bool GameManager::toggleGameVariable(GameManager *a1, const char *a2)
{
GameManager *v3; // r0
bool v4; // r4
GameManager *v5; // r0
v3 = GameManager::sharedState();
v4 = !GameManager::getGameVariable(v3, a2);
v5 = GameManager::sharedState();
GameManager::setGameVariable(v5, a2, v4);
return v4;
}