//
// GameManager::toggleGameVariable from 0x71ebd8 to 0x71ec1c (68 bytes)
//
// 76 xrefs:
// > UILayer::handleAction @ 0x6f0e28
// > UILayer::handleAction @ 0x6f0eb4
// > UILayer::handleAction @ 0x6f0f2c
// > UILayer::handleAction @ 0x6f0fe4
// > UILayer::handleAction @ 0x6f1080
// > UILayer::handleAction @ 0x6f1104
// > UILayer::handleAction @ 0x6f1170
// > UILayer::handleAction @ 0x6f1218
// > UILayer::handleAction @ 0x6f1300
// > UILayer::handleAction @ 0x6f1380
// > UILayer::handleAction @ 0x6f1858
// > UILayer::handleAction @ 0x6f18b4
// > EditorUI::onStickyToggle @ 0x7c89e8
// > EditorUI::init @ 0x7d0fd8
// > EditorUI::init @ 0x7d0fe8
// > PauseLayer::onSideButtonPressed @ 0x7d4cac
// > EditorPauseLayer::toggleFollowPlayer @ 0x8b6a60
// > EditorPauseLayer::togglePlaytestMusic @ 0x8b6a7c
// > EditorPauseLayer::toggleIgnoreDamage @ 0x8b6a98
// > EditorPauseLayer::toggleEditorColorMode @ 0x8b6ab8
// > EditorPauseLayer::toggleHideInvisible @ 0x8b6ae4
// > EditorPauseLayer::togglePreviewParticles @ 0x8b6b04
// > EditorPauseLayer::togglePreviewShaders @ 0x8b6b30
// > EditorPauseLayer::togglePreviewAnim @ 0x8b6b50
// > EditorPauseLayer::toggleDebugDraw @ 0x8b6b7c
// > EditorPauseLayer::toggleEffectDuration @ 0x8b6b98
// > EditorPauseLayer::toggleEffectLines @ 0x8b6bb4
// > EditorPauseLayer::toggleEditorGround @ 0x8b6bd8
// > EditorPauseLayer::toggleEditorBackground @ 0x8b6c20
// > EditorPauseLayer::toggleEditorGrid @ 0x8b6c64
// > EditorPauseLayer::toggleGridOnTop @ 0x8b6c88
// > EditorPauseLayer::toggleShowObjectInfo @ 0x8b6d00
// > EditorPauseLayer::toggleSelectFilter @ 0x8b6d30
// > EditorPauseLayer::toggleRecordOrder @ 0x8b6d4c
// > GJGarageLayer::onSpecial @ 0x8b9340
// > ParentalOptionsLayer::onLockToggle @ 0x8ed684
// > OptionsLayer::onMenuMusic @ 0x8ee06c
// > ParentalOptionsLayer::onToggle @ 0x8f3da8
// > MoreOptionsLayer::onToggle @ 0x8f5af4
// > MoreVideoOptionsLayer::onToggle @ 0x8f5f74
// > InfoLayer::toggleExtendedMode @ 0x90d3d4
// > InfoLayer::toggleSmallCommentMode @ 0x90d404
// > GameOptionsLayer::didToggle @ 0xa1e2f0
// > GameOptionsLayer::didToggle @ 0xa1e328
// > GameOptionsLayer::didToggle @ 0xa1e360
// > GameOptionsLayer::didToggle @ 0xa1e378
// > GameOptionsLayer::didToggle @ 0xa1e388
// > GameOptionsLayer::didToggle @ 0xa1e3a0
// > GameOptionsLayer::didToggle @ 0xa1e3d4
// > GameOptionsLayer::didToggle @ 0xa1e3fc
// > GameOptionsLayer::didToggle @ 0xa1e410
// > GameOptionsLayer::didToggle @ 0xa1e438
// > GJOptionsLayer::onToggle @ 0xa244c0
// > UIOptionsLayer::valueDidChange @ 0xa2e9d4
// > CreateParticlePopup::onTogglePerfLog @ 0xafc850
// > SFXBrowser::onToggleCompactMode @ 0xb92af8
// > EditorUI::handleEditorAction @ 0xbd7270
// > EditorUI::handleEditorAction @ 0xbd7340
// > EditorUI::handleEditorAction @ 0xbd7a9c
// > EditorUI::handleEditorAction @ 0xbd7f38
// > EditorUI::toggleViewOption @ 0xbfe85c
// > EditorUI::toggleViewOption @ 0xbfead4
// > ClearPlatformerSavesOptionsPopup::onBackupToggle @ 0xc8ebe4
// > DeathMarkerSettingsPopup::onToggleColor @ 0xca5808
// > DeathMarkerSettingsPopup::onToggleAnimation @ 0xca5824
// > DeathMarkerSettingsPopup::onToggleSound @ 0xca5840
// > DeathMarkerSettingsPopup::onToggleLimited @ 0xca585c
// > DeathMarkerSettingsPopup::onToggleLocal @ 0xca5874
// > DeathMarkerSettingsPopup::onToggleGlobal @ 0xca58b0
// > DeathMarkerSettingsPopup::onToggleDisabled @ 0xca58f0
// > DeathMarkerSettingsPopup::onToggleLive @ 0xca59c0
// > DeathMarkerSettingsPopup::onToggleLabels @ 0xca5a00
// > DeathTrackerOptionsPopup::onToggleAutoScroll @ 0xca8a84
// > TimeSpeedControl::onAudioTimeSpeedToggle @ 0xd03a4c
// > TouchControlEditLayer::valueDidChange @ 0xd074f8
// > ??> @ 0x92758
//
// 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 12:52:22 +0000
//
__int64 __fastcall GameManager::toggleGameVariable(GameManager *this, char *a2)
{
GameManager *v3; // x0
unsigned __int8 GameVariable; // w0
unsigned int v5; // w19
GameManager *v6; // x0
v3 = (GameManager *)GameManager::sharedState(this);
GameVariable = GameManager::getGameVariable(v3, a2);
v5 = GameVariable ^ 1;
v6 = (GameManager *)GameManager::sharedState((GameManager *)GameVariable);
GameManager::setGameVariable(v6, a2, v5);
return v5;
}