{"type": "func", "start": 4298857600, "end": 4298857664, "name": "GameManager::toggleGameVariable", "pseudocode": "// \n// GameManager::toggleGameVariable from 0x1003b5c80 to 0x1003b5cc0 (64 bytes)\n// \n// 44 xrefs:\n// > UILayer::handleAction @ 0x100051ad4\n// > UILayer::handleAction @ 0x100051b6c\n// > UILayer::handleAction @ 0x100051bd8\n// > UILayer::handleAction @ 0x100051c98\n// > UILayer::handleAction @ 0x100051d3c\n// > UILayer::handleAction @ 0x100051db0\n// > UILayer::handleAction @ 0x100051f4c\n// > UILayer::handleAction @ 0x100051fc4\n// > UILayer::handleAction @ 0x100052180\n// > UILayer::handleAction @ 0x1000521fc\n// > UILayer::handleAction @ 0x100052258\n// > UILayer::handleAction @ 0x1000522cc\n// > OptionsLayer::onMenuMusic @ 0x1001137f4\n// > MoreVideoOptionsLayer::onToggle @ 0x100115fac\n// > sub_100117758 @ 0x100117770\n// > sub_100117F58 @ 0x100117fb8\n// > EditorUI::handleEditorAction @ 0x100162b98\n// > EditorUI::handleEditorAction @ 0x100163240\n// > EditorUI::handleEditorAction @ 0x100163318\n// > EditorUI::handleEditorAction @ 0x100163444\n// > EditorUI::toggleViewOption @ 0x100189468\n// > PauseLayer::onSideButtonPressed @ 0x1001bfbdc\n// > sub_1001F3598 @ 0x1001f35bc\n// > sub_10036D220 @ 0x10036d240\n// > GJOptionsLayer::onToggle @ 0x1003723e8\n// > sub_1003A259C @ 0x1003a25b4\n// > sub_1003F0334 @ 0x1003f0350\n// > sub_1003F0364 @ 0x1003f0380\n// > EditorUI::init @ 0x100470934\n// > EditorUI::init @ 0x100470944\n// > EditorUI::onStickyToggle @ 0x10047167c\n// > sub_1004AACDC @ 0x1004aacf4\n// > sub_1004B7ABC @ 0x1004b7ad0\n// > sub_1004B7AF8 @ 0x1004b7b0c\n// > sub_1004B7B34 @ 0x1004b7b4c\n// > sub_1004B7B50 @ 0x1004b7b68\n// > sub_1004B7B6C @ 0x1004b7b84\n// > sub_1004B7B88 @ 0x1004b7ba0\n// > sub_1004B7C40 @ 0x1004b7c58\n// > sub_1004B7CC8 @ 0x1004b7ce0\n// > sub_1004B7CE4 @ 0x1004b7cf8\n// > sub_1004B96D4 @ 0x1004b96ec\n// > TimeSpeedControl::onAudioTimeSpeedToggle @ 0x10052bb9c\n// > TouchControlEditLayer::valueDidChange @ 0x10052da1c\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:03:56 +0000\n// \n\nbool __fastcall GameManager::toggleGameVariable(__int64 a1, std::string::value_type *a2)\n{\n  __int64 v3; // x0\n  _BOOL4 GameVariable; // w20\n  __int64 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 0x1003b5c80 to 0x1003b5cc0 (64 bytes)\n; \n; 44 xrefs:\n; > UILayer::handleAction @ 0x100051ad4\n; > UILayer::handleAction @ 0x100051b6c\n; > UILayer::handleAction @ 0x100051bd8\n; > UILayer::handleAction @ 0x100051c98\n; > UILayer::handleAction @ 0x100051d3c\n; > UILayer::handleAction @ 0x100051db0\n; > UILayer::handleAction @ 0x100051f4c\n; > UILayer::handleAction @ 0x100051fc4\n; > UILayer::handleAction @ 0x100052180\n; > UILayer::handleAction @ 0x1000521fc\n; > UILayer::handleAction @ 0x100052258\n; > UILayer::handleAction @ 0x1000522cc\n; > OptionsLayer::onMenuMusic @ 0x1001137f4\n; > MoreVideoOptionsLayer::onToggle @ 0x100115fac\n; > sub_100117758 @ 0x100117770\n; > sub_100117F58 @ 0x100117fb8\n; > EditorUI::handleEditorAction @ 0x100162b98\n; > EditorUI::handleEditorAction @ 0x100163240\n; > EditorUI::handleEditorAction @ 0x100163318\n; > EditorUI::handleEditorAction @ 0x100163444\n; > EditorUI::toggleViewOption @ 0x100189468\n; > PauseLayer::onSideButtonPressed @ 0x1001bfbdc\n; > sub_1001F3598 @ 0x1001f35bc\n; > sub_10036D220 @ 0x10036d240\n; > GJOptionsLayer::onToggle @ 0x1003723e8\n; > sub_1003A259C @ 0x1003a25b4\n; > sub_1003F0334 @ 0x1003f0350\n; > sub_1003F0364 @ 0x1003f0380\n; > EditorUI::init @ 0x100470934\n; > EditorUI::init @ 0x100470944\n; > EditorUI::onStickyToggle @ 0x10047167c\n; > sub_1004AACDC @ 0x1004aacf4\n; > sub_1004B7ABC @ 0x1004b7ad0\n; > sub_1004B7AF8 @ 0x1004b7b0c\n; > sub_1004B7B34 @ 0x1004b7b4c\n; > sub_1004B7B50 @ 0x1004b7b68\n; > sub_1004B7B6C @ 0x1004b7b84\n; > sub_1004B7B88 @ 0x1004b7ba0\n; > sub_1004B7C40 @ 0x1004b7c58\n; > sub_1004B7CC8 @ 0x1004b7ce0\n; > sub_1004B7CE4 @ 0x1004b7cf8\n; > sub_1004B96D4 @ 0x1004b96ec\n; > TimeSpeedControl::onAudioTimeSpeedToggle @ 0x10052bb9c\n; > TouchControlEditLayer::valueDidChange @ 0x10052da1c\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:03:56 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1003b5c80\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1003b5c84\nADD             X29, SP, #0x10                                         ; +0x8, 0x1003b5c88\nMOV             X19, X1                                                ; +0xc, 0x1003b5c8c\nBL              GameManager__sharedState                               ; +0x10, 0x1003b5c90\nMOV             X1, X19                                                ; +0x14, 0x1003b5c94\nBL              GameManager__getGameVariable                           ; +0x18, 0x1003b5c98\nMOV             X20, X0                                                ; +0x1c, 0x1003b5c9c\nBL              GameManager__sharedState                               ; +0x20, 0x1003b5ca0\nEOR             W2, W20, #1                                            ; +0x24, 0x1003b5ca4\nMOV             X1, X19                                                ; +0x28, 0x1003b5ca8\nBL              GameManager__setGameVariable                           ; +0x2c, 0x1003b5cac\nEOR             W0, W20, #1                                            ; +0x30, 0x1003b5cb0\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x34, 0x1003b5cb4\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x38, 0x1003b5cb8\nRET                                                                    ; +0x3c, 0x1003b5cbc", "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"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}