//
// GameManager::toggleGameVariable from 0x100318ebc to 0x100318efc (64 bytes)
//
// 39 xrefs:
// > UILayer::handleKeypress @ 0x100049ef4
// > OptionsLayer::onMenuMusic @ 0x1000ed414
// > MoreOptionsLayer::onToggle @ 0x1000ef44c
// > MoreVideoOptionsLayer::onToggle @ 0x1000f20f0
// > ParentalOptionsLayer::onToggle @ 0x1000f359c
// > SFXBrowser::onToggleCompactMode @ 0x10016987c
// > SearchSFXPopup::onSearchFolders @ 0x10016ab48
// > CreateParticlePopup::onTogglePerfLog @ 0x1002ce230
// > GJOptionsLayer::onToggle @ 0x1002d3b6c
// > GameOptionsLayer::didToggle @ 0x1002e21d4
// > GameOptionsLayer::didToggle @ 0x1002e2218
// > GameOptionsLayer::didToggle @ 0x1002e229c
// > GameOptionsLayer::didToggle @ 0x1002e22bc
// > GameOptionsLayer::didToggle @ 0x1002e22d0
// > GameOptionsLayer::didToggle @ 0x1002e2330
// > GameOptionsLayer::didToggle @ 0x1002e2358
// > UIOptionsLayer::valueDidChange @ 0x1002e4240
// > GJGarageLayer::onSpecial @ 0x1003058a4
// > InfoLayer::toggleExtendedMode @ 0x100351de8
// > InfoLayer::toggleSmallCommentMode @ 0x100351e18
// > EditorPauseLayer::toggleIgnoreDamage @ 0x10039e0f8
// > EditorPauseLayer::toggleSelectFilter @ 0x10039e114
// > EditorPauseLayer::toggleEditorGrid @ 0x10039e130
// > EditorPauseLayer::toggleShowObjectInfo @ 0x10039e150
// > EditorPauseLayer::toggleEditorGround @ 0x10039e188
// > EditorPauseLayer::togglePreviewShaders @ 0x10039e1c8
// > EditorPauseLayer::togglePreviewParticles @ 0x10039e1e8
// > EditorPauseLayer::togglePreviewAnim @ 0x10039e218
// > EditorPauseLayer::toggleEditorColorMode @ 0x10039e248
// > EditorPauseLayer::toggleHideInvisible @ 0x10039e274
// > EditorPauseLayer::toggleDebugDraw @ 0x10039e290
// > EditorUI::init @ 0x1003c6da8
// > EditorUI::init @ 0x1003c6db8
// > EditorUI::onStickyToggle @ 0x1003c7b2c
// > EditorUI::keyDown @ 0x1003f9d18
// > EditorUI::keyDown @ 0x1003f9ed0
// > EditorUI::keyDown @ 0x1003fa234
// > EditorUI::keyDown @ 0x1003fa37c
// > EditorUI::keyDown @ 0x1003fa3d0
//
// 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 __fastcall GameManager::toggleGameVariable(GameManager *a1, const char *a2)
{
GameManager *v3; // x0
bool GameVariable; // w20
GameManager *v5; // x0
v3 = GameManager::sharedState();
GameVariable = GameManager::getGameVariable(v3, a2);
v5 = GameManager::sharedState();
GameManager::setGameVariable(v5, a2, !GameVariable);
return !GameVariable;
}