{"type": "func", "start": 4298215100, "end": 4298215164, "name": "GameManager::toggleGameVariable", "pseudocode": "// \n// GameManager::toggleGameVariable from 0x100318ebc to 0x100318efc (64 bytes)\n// \n// 39 xrefs:\n// > UILayer::handleKeypress @ 0x100049ef4\n// > OptionsLayer::onMenuMusic @ 0x1000ed414\n// > MoreOptionsLayer::onToggle @ 0x1000ef44c\n// > MoreVideoOptionsLayer::onToggle @ 0x1000f20f0\n// > ParentalOptionsLayer::onToggle @ 0x1000f359c\n// > SFXBrowser::onToggleCompactMode @ 0x10016987c\n// > SearchSFXPopup::onSearchFolders @ 0x10016ab48\n// > CreateParticlePopup::onTogglePerfLog @ 0x1002ce230\n// > GJOptionsLayer::onToggle @ 0x1002d3b6c\n// > GameOptionsLayer::didToggle @ 0x1002e21d4\n// > GameOptionsLayer::didToggle @ 0x1002e2218\n// > GameOptionsLayer::didToggle @ 0x1002e229c\n// > GameOptionsLayer::didToggle @ 0x1002e22bc\n// > GameOptionsLayer::didToggle @ 0x1002e22d0\n// > GameOptionsLayer::didToggle @ 0x1002e2330\n// > GameOptionsLayer::didToggle @ 0x1002e2358\n// > UIOptionsLayer::valueDidChange @ 0x1002e4240\n// > GJGarageLayer::onSpecial @ 0x1003058a4\n// > InfoLayer::toggleExtendedMode @ 0x100351de8\n// > InfoLayer::toggleSmallCommentMode @ 0x100351e18\n// > EditorPauseLayer::toggleIgnoreDamage @ 0x10039e0f8\n// > EditorPauseLayer::toggleSelectFilter @ 0x10039e114\n// > EditorPauseLayer::toggleEditorGrid @ 0x10039e130\n// > EditorPauseLayer::toggleShowObjectInfo @ 0x10039e150\n// > EditorPauseLayer::toggleEditorGround @ 0x10039e188\n// > EditorPauseLayer::togglePreviewShaders @ 0x10039e1c8\n// > EditorPauseLayer::togglePreviewParticles @ 0x10039e1e8\n// > EditorPauseLayer::togglePreviewAnim @ 0x10039e218\n// > EditorPauseLayer::toggleEditorColorMode @ 0x10039e248\n// > EditorPauseLayer::toggleHideInvisible @ 0x10039e274\n// > EditorPauseLayer::toggleDebugDraw @ 0x10039e290\n// > EditorUI::init @ 0x1003c6da8\n// > EditorUI::init @ 0x1003c6db8\n// > EditorUI::onStickyToggle @ 0x1003c7b2c\n// > EditorUI::keyDown @ 0x1003f9d18\n// > EditorUI::keyDown @ 0x1003f9ed0\n// > EditorUI::keyDown @ 0x1003fa234\n// > EditorUI::keyDown @ 0x1003fa37c\n// > EditorUI::keyDown @ 0x1003fa3d0\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nbool __fastcall GameManager::toggleGameVariable(GameManager *a1, const char *a2)\n{\n  GameManager *v3; // x0\n  bool GameVariable; // w20\n  GameManager *v5; // x0\n\n  v3 = GameManager::sharedState();\n  GameVariable = GameManager::getGameVariable(v3, a2);\n  v5 = GameManager::sharedState();\n  GameManager::setGameVariable(v5, a2, !GameVariable);\n  return !GameVariable;\n}", "assembly": "; \n; GameManager::toggleGameVariable from 0x100318ebc to 0x100318efc (64 bytes)\n; \n; 39 xrefs:\n; > UILayer::handleKeypress @ 0x100049ef4\n; > OptionsLayer::onMenuMusic @ 0x1000ed414\n; > MoreOptionsLayer::onToggle @ 0x1000ef44c\n; > MoreVideoOptionsLayer::onToggle @ 0x1000f20f0\n; > ParentalOptionsLayer::onToggle @ 0x1000f359c\n; > SFXBrowser::onToggleCompactMode @ 0x10016987c\n; > SearchSFXPopup::onSearchFolders @ 0x10016ab48\n; > CreateParticlePopup::onTogglePerfLog @ 0x1002ce230\n; > GJOptionsLayer::onToggle @ 0x1002d3b6c\n; > GameOptionsLayer::didToggle @ 0x1002e21d4\n; > GameOptionsLayer::didToggle @ 0x1002e2218\n; > GameOptionsLayer::didToggle @ 0x1002e229c\n; > GameOptionsLayer::didToggle @ 0x1002e22bc\n; > GameOptionsLayer::didToggle @ 0x1002e22d0\n; > GameOptionsLayer::didToggle @ 0x1002e2330\n; > GameOptionsLayer::didToggle @ 0x1002e2358\n; > UIOptionsLayer::valueDidChange @ 0x1002e4240\n; > GJGarageLayer::onSpecial @ 0x1003058a4\n; > InfoLayer::toggleExtendedMode @ 0x100351de8\n; > InfoLayer::toggleSmallCommentMode @ 0x100351e18\n; > EditorPauseLayer::toggleIgnoreDamage @ 0x10039e0f8\n; > EditorPauseLayer::toggleSelectFilter @ 0x10039e114\n; > EditorPauseLayer::toggleEditorGrid @ 0x10039e130\n; > EditorPauseLayer::toggleShowObjectInfo @ 0x10039e150\n; > EditorPauseLayer::toggleEditorGround @ 0x10039e188\n; > EditorPauseLayer::togglePreviewShaders @ 0x10039e1c8\n; > EditorPauseLayer::togglePreviewParticles @ 0x10039e1e8\n; > EditorPauseLayer::togglePreviewAnim @ 0x10039e218\n; > EditorPauseLayer::toggleEditorColorMode @ 0x10039e248\n; > EditorPauseLayer::toggleHideInvisible @ 0x10039e274\n; > EditorPauseLayer::toggleDebugDraw @ 0x10039e290\n; > EditorUI::init @ 0x1003c6da8\n; > EditorUI::init @ 0x1003c6db8\n; > EditorUI::onStickyToggle @ 0x1003c7b2c\n; > EditorUI::keyDown @ 0x1003f9d18\n; > EditorUI::keyDown @ 0x1003f9ed0\n; > EditorUI::keyDown @ 0x1003fa234\n; > EditorUI::keyDown @ 0x1003fa37c\n; > EditorUI::keyDown @ 0x1003fa3d0\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x100318ebc\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100318ec0\nADD             X29, SP, #0x10                                         ; +0x8, 0x100318ec4\nMOV             X19, X1                                                ; +0xc, 0x100318ec8\nBL              GameManager__sharedState                               ; +0x10, 0x100318ecc\nMOV             X1, X19                                                ; +0x14, 0x100318ed0\nBL              GameManager__getGameVariable                           ; +0x18, 0x100318ed4\nMOV             X20, X0                                                ; +0x1c, 0x100318ed8\nBL              GameManager__sharedState                               ; +0x20, 0x100318edc\nEOR             W2, W20, #1                                            ; +0x24, 0x100318ee0\nMOV             X1, X19                                                ; +0x28, 0x100318ee4\nBL              GameManager__setGameVariable                           ; +0x2c, 0x100318ee8\nEOR             W0, W20, #1                                            ; +0x30, 0x100318eec\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x34, 0x100318ef0\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x38, 0x100318ef4\nRET                                                                    ; +0x3c, 0x100318ef8", "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"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}