{"type": "func", "start": 4298560144, "end": 4298560314, "name": "GameManager::toggleGameVariable", "pseudocode": "// \n// GameManager::toggleGameVariable from 0x10036d290 to 0x10036d33a (170 bytes)\n// \n// 71 xrefs:\n// > EditorUI::init @ 0x1000078be\n// > EditorUI::init @ 0x1000078d2\n// > EditorUI::onStickyToggle @ 0x100008b8c\n// > EditorPauseLayer::toggleFollowPlayer @ 0x10027ef54\n// > EditorPauseLayer::togglePlaytestMusic @ 0x10027ef74\n// > EditorPauseLayer::toggleIgnoreDamage @ 0x10027ef94\n// > EditorPauseLayer::toggleEditorColorMode @ 0x10027efb8\n// > EditorPauseLayer::toggleHideInvisible @ 0x10027efe4\n// > EditorPauseLayer::togglePreviewParticles @ 0x10027f008\n// > EditorPauseLayer::togglePreviewShaders @ 0x10027f034\n// > EditorPauseLayer::togglePreviewAnim @ 0x10027f058\n// > EditorPauseLayer::toggleDebugDraw @ 0x10027f084\n// > EditorPauseLayer::toggleEffectDuration @ 0x10027f0a4\n// > EditorPauseLayer::toggleEffectLines @ 0x10027f0c4\n// > EditorPauseLayer::toggleEditorGround @ 0x10027f0ec\n// > EditorPauseLayer::toggleEditorBackground @ 0x10027f13c\n// > EditorPauseLayer::toggleEditorGrid @ 0x10027f184\n// > EditorPauseLayer::toggleGridOnTop @ 0x10027f1ac\n// > EditorPauseLayer::toggleShowObjectInfo @ 0x10027f228\n// > EditorPauseLayer::toggleSelectFilter @ 0x10027f264\n// > EditorPauseLayer::toggleRecordOrder @ 0x10027f284\n// > GJOptionsLayer::onToggle @ 0x100287b80\n// > GameOptionsLayer::didToggle @ 0x10029f1c8\n// > GameOptionsLayer::didToggle @ 0x10029f202\n// > GameOptionsLayer::didToggle @ 0x10029f273\n// > GameOptionsLayer::didToggle @ 0x10029f29f\n// > GameOptionsLayer::didToggle @ 0x10029f2b3\n// > GameOptionsLayer::didToggle @ 0x10029f2db\n// > GameOptionsLayer::didToggle @ 0x10029f311\n// > UIOptionsLayer::valueDidChange @ 0x1002a261c\n// > GJGarageLayer::onSpecial @ 0x100357214\n// > PauseLayer::onSideButtonPressed @ 0x1003c173f\n// > SFXBrowser::onToggleCompactMode @ 0x10042e372\n// > CreateParticlePopup::onTogglePerfLog @ 0x100467f2c\n// > UILayer::handleAction @ 0x1004c3bd5\n// > UILayer::handleAction @ 0x1004c3ca5\n// > UILayer::handleAction @ 0x1004c3d39\n// > UILayer::handleAction @ 0x1004c3e48\n// > UILayer::handleAction @ 0x1004c3f2d\n// > UILayer::handleAction @ 0x1004c3fca\n// > UILayer::handleAction @ 0x1004c4214\n// > UILayer::handleAction @ 0x1004c42b2\n// > UILayer::handleAction @ 0x1004c450f\n// > UILayer::handleAction @ 0x1004c45b4\n// > UILayer::handleAction @ 0x1004c4631\n// > UILayer::handleAction @ 0x1004c46ce\n// > EditorUI::handleEditorAction @ 0x10060bf49\n// > EditorUI::handleEditorAction @ 0x10060c7ba\n// > EditorUI::handleEditorAction @ 0x10060c8d5\n// > EditorUI::handleEditorAction @ 0x10060ca52\n// > EditorUI::toggleViewOption @ 0x10063e852\n// > OptionsLayer::onMenuMusic @ 0x10087be53\n// > MoreOptionsLayer::onToggle @ 0x10087f27e\n// > MoreVideoOptionsLayer::onToggle @ 0x100883352\n// > sub_1008858B0 @ 0x1008858c4\n// > ParentalOptionsLayer::onToggle @ 0x1008866e2\n// > InfoLayer::toggleExtendedMode @ 0x1008942d8\n// > InfoLayer::toggleSmallCommentMode @ 0x100894308\n// > sub_1008B55B0 @ 0x1008b55c4\n// > sub_1008C7F70 @ 0x1008c7f83\n// > sub_1008C7FB0 @ 0x1008c7fc3\n// > sub_1008C7FF0 @ 0x1008c8004\n// > sub_1008C8010 @ 0x1008c8024\n// > sub_1008C8030 @ 0x1008c8044\n// > sub_1008C8050 @ 0x1008c8065\n// > sub_1008C8140 @ 0x1008c8155\n// > sub_1008C81F0 @ 0x1008c8204\n// > sub_1008C8210 @ 0x1008c8223\n// > sub_1008CA590 @ 0x1008ca5a4\n// > TimeSpeedControl::onAudioTimeSpeedToggle @ 0x100977c6c\n// > TouchControlEditLayer::valueDidChange @ 0x10097a792\n// \n// This function is hookable on this platform (idp: pc, 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 12:29:01 +0000\n// \n\n__int64 __fastcall GameManager::toggleGameVariable(__int64 a1, std::string::value_type *a2)\n{\n  __int64 v2; // rdi\n  void *v3; // r14\n  unsigned __int8 GameVariable; // al\n  __int64 v5; // rdi\n  unsigned __int8 v6; // r15\n  void *v7; // r14\n  unsigned int v8; // r14d\n\n  v2 = qword_100BE3098;\n  if ( !qword_100BE3098 )\n  {\n    v3 = operator new(0x6B8u);\n    sub_100377960(v3);\n    qword_100BE3098 = (__int64)v3;\n    (*(void (__fastcall **)(void *))(*(_QWORD *)v3 + 80LL))(v3);\n    v2 = qword_100BE3098;\n  }\n  GameVariable = GameManager::getGameVariable(v2, a2);\n  v5 = qword_100BE3098;\n  if ( !qword_100BE3098 )\n  {\n    v6 = GameVariable;\n    v7 = operator new(0x6B8u);\n    sub_100377960(v7);\n    qword_100BE3098 = (__int64)v7;\n    (*(void (__fastcall **)(void *))(*(_QWORD *)v7 + 80LL))(v7);\n    v5 = qword_100BE3098;\n    GameVariable = v6;\n  }\n  v8 = GameVariable ^ 1;\n  GameManager::setGameVariable(v5, a2);\n  return v8;\n}", "assembly": "; \n; GameManager::toggleGameVariable from 0x10036d290 to 0x10036d33a (170 bytes)\n; \n; 71 xrefs:\n; > EditorUI::init @ 0x1000078be\n; > EditorUI::init @ 0x1000078d2\n; > EditorUI::onStickyToggle @ 0x100008b8c\n; > EditorPauseLayer::toggleFollowPlayer @ 0x10027ef54\n; > EditorPauseLayer::togglePlaytestMusic @ 0x10027ef74\n; > EditorPauseLayer::toggleIgnoreDamage @ 0x10027ef94\n; > EditorPauseLayer::toggleEditorColorMode @ 0x10027efb8\n; > EditorPauseLayer::toggleHideInvisible @ 0x10027efe4\n; > EditorPauseLayer::togglePreviewParticles @ 0x10027f008\n; > EditorPauseLayer::togglePreviewShaders @ 0x10027f034\n; > EditorPauseLayer::togglePreviewAnim @ 0x10027f058\n; > EditorPauseLayer::toggleDebugDraw @ 0x10027f084\n; > EditorPauseLayer::toggleEffectDuration @ 0x10027f0a4\n; > EditorPauseLayer::toggleEffectLines @ 0x10027f0c4\n; > EditorPauseLayer::toggleEditorGround @ 0x10027f0ec\n; > EditorPauseLayer::toggleEditorBackground @ 0x10027f13c\n; > EditorPauseLayer::toggleEditorGrid @ 0x10027f184\n; > EditorPauseLayer::toggleGridOnTop @ 0x10027f1ac\n; > EditorPauseLayer::toggleShowObjectInfo @ 0x10027f228\n; > EditorPauseLayer::toggleSelectFilter @ 0x10027f264\n; > EditorPauseLayer::toggleRecordOrder @ 0x10027f284\n; > GJOptionsLayer::onToggle @ 0x100287b80\n; > GameOptionsLayer::didToggle @ 0x10029f1c8\n; > GameOptionsLayer::didToggle @ 0x10029f202\n; > GameOptionsLayer::didToggle @ 0x10029f273\n; > GameOptionsLayer::didToggle @ 0x10029f29f\n; > GameOptionsLayer::didToggle @ 0x10029f2b3\n; > GameOptionsLayer::didToggle @ 0x10029f2db\n; > GameOptionsLayer::didToggle @ 0x10029f311\n; > UIOptionsLayer::valueDidChange @ 0x1002a261c\n; > GJGarageLayer::onSpecial @ 0x100357214\n; > PauseLayer::onSideButtonPressed @ 0x1003c173f\n; > SFXBrowser::onToggleCompactMode @ 0x10042e372\n; > CreateParticlePopup::onTogglePerfLog @ 0x100467f2c\n; > UILayer::handleAction @ 0x1004c3bd5\n; > UILayer::handleAction @ 0x1004c3ca5\n; > UILayer::handleAction @ 0x1004c3d39\n; > UILayer::handleAction @ 0x1004c3e48\n; > UILayer::handleAction @ 0x1004c3f2d\n; > UILayer::handleAction @ 0x1004c3fca\n; > UILayer::handleAction @ 0x1004c4214\n; > UILayer::handleAction @ 0x1004c42b2\n; > UILayer::handleAction @ 0x1004c450f\n; > UILayer::handleAction @ 0x1004c45b4\n; > UILayer::handleAction @ 0x1004c4631\n; > UILayer::handleAction @ 0x1004c46ce\n; > EditorUI::handleEditorAction @ 0x10060bf49\n; > EditorUI::handleEditorAction @ 0x10060c7ba\n; > EditorUI::handleEditorAction @ 0x10060c8d5\n; > EditorUI::handleEditorAction @ 0x10060ca52\n; > EditorUI::toggleViewOption @ 0x10063e852\n; > OptionsLayer::onMenuMusic @ 0x10087be53\n; > MoreOptionsLayer::onToggle @ 0x10087f27e\n; > MoreVideoOptionsLayer::onToggle @ 0x100883352\n; > sub_1008858B0 @ 0x1008858c4\n; > ParentalOptionsLayer::onToggle @ 0x1008866e2\n; > InfoLayer::toggleExtendedMode @ 0x1008942d8\n; > InfoLayer::toggleSmallCommentMode @ 0x100894308\n; > sub_1008B55B0 @ 0x1008b55c4\n; > sub_1008C7F70 @ 0x1008c7f83\n; > sub_1008C7FB0 @ 0x1008c7fc3\n; > sub_1008C7FF0 @ 0x1008c8004\n; > sub_1008C8010 @ 0x1008c8024\n; > sub_1008C8030 @ 0x1008c8044\n; > sub_1008C8050 @ 0x1008c8065\n; > sub_1008C8140 @ 0x1008c8155\n; > sub_1008C81F0 @ 0x1008c8204\n; > sub_1008C8210 @ 0x1008c8223\n; > sub_1008CA590 @ 0x1008ca5a4\n; > TimeSpeedControl::onAudioTimeSpeedToggle @ 0x100977c6c\n; > TouchControlEditLayer::valueDidChange @ 0x10097a792\n; \n; This function is hookable on this platform (idp: pc, 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 12:29:01 +0000\n; \npush    rbp                                                            ; +0x0, 0x10036d290\nmov     rbp, rsp                                                       ; +0x1, 0x10036d291\npush    r15                                                            ; +0x4, 0x10036d294\npush    r14                                                            ; +0x6, 0x10036d296\npush    rbx                                                            ; +0x8, 0x10036d298\npush    rax                                                            ; +0x9, 0x10036d299\nmov     rbx, rsi                                                       ; +0xa, 0x10036d29a\nmov     rdi, cs:qword_100BE3098                                        ; +0xd, 0x10036d29d\ntest    rdi, rdi                                                       ; +0x14, 0x10036d2a4\njnz     short loc_10036D2D5                                            ; +0x17, 0x10036d2a7\nmov     edi, 6B8h; __sz                                                ; +0x19, 0x10036d2a9\ncall    __Znwm; operator new(ulong)                                    ; +0x1e, 0x10036d2ae\nmov     r14, rax                                                       ; +0x23, 0x10036d2b3\nmov     rdi, rax                                                       ; +0x26, 0x10036d2b6\ncall    sub_100377960                                                  ; +0x29, 0x10036d2b9\nmov     cs:qword_100BE3098, r14                                        ; +0x2e, 0x10036d2be\nmov     rax, [r14]                                                     ; +0x35, 0x10036d2c5\nmov     rdi, r14                                                       ; +0x38, 0x10036d2c8\ncall    qword ptr [rax+50h]                                            ; +0x3b, 0x10036d2cb\nmov     rdi, cs:qword_100BE3098                                        ; +0x3e, 0x10036d2ce\nmov     rsi, rbx                                                       ; +0x45, 0x10036d2d5\ncall    GameManager__getGameVariable                                   ; +0x48, 0x10036d2d8\nmov     rdi, cs:qword_100BE3098                                        ; +0x4d, 0x10036d2dd\ntest    rdi, rdi                                                       ; +0x54, 0x10036d2e4\njnz     short loc_10036D31B                                            ; +0x57, 0x10036d2e7\nmov     r15d, eax                                                      ; +0x59, 0x10036d2e9\nmov     edi, 6B8h; __sz                                                ; +0x5c, 0x10036d2ec\ncall    __Znwm; operator new(ulong)                                    ; +0x61, 0x10036d2f1\nmov     r14, rax                                                       ; +0x66, 0x10036d2f6\nmov     rdi, rax                                                       ; +0x69, 0x10036d2f9\ncall    sub_100377960                                                  ; +0x6c, 0x10036d2fc\nmov     cs:qword_100BE3098, r14                                        ; +0x71, 0x10036d301\nmov     rax, [r14]                                                     ; +0x78, 0x10036d308\nmov     rdi, r14                                                       ; +0x7b, 0x10036d30b\ncall    qword ptr [rax+50h]                                            ; +0x7e, 0x10036d30e\nmov     rdi, cs:qword_100BE3098                                        ; +0x81, 0x10036d311\nmov     eax, r15d                                                      ; +0x88, 0x10036d318\nxor     al, 1                                                          ; +0x8b, 0x10036d31b\nmovzx   r14d, al                                                       ; +0x8d, 0x10036d31d\nmov     rsi, rbx                                                       ; +0x91, 0x10036d321\nmov     edx, r14d                                                      ; +0x94, 0x10036d324\ncall    GameManager__setGameVariable                                   ; +0x97, 0x10036d327\nmov     eax, r14d                                                      ; +0x9c, 0x10036d32c\nadd     rsp, 8                                                         ; +0x9f, 0x10036d32f\npop     rbx                                                            ; +0xa3, 0x10036d333\npop     r14                                                            ; +0xa4, 0x10036d334\npop     r15                                                            ; +0xa6, 0x10036d336\npop     rbp                                                            ; +0xa8, 0x10036d338\nretn                                                                   ; +0xa9, 0x10036d339", "xrefs": ["EditorUI::init @ 0x1000078be", "EditorUI::init @ 0x1000078d2", "EditorUI::onStickyToggle @ 0x100008b8c", "EditorPauseLayer::toggleFollowPlayer @ 0x10027ef54", "EditorPauseLayer::togglePlaytestMusic @ 0x10027ef74", "EditorPauseLayer::toggleIgnoreDamage @ 0x10027ef94", "EditorPauseLayer::toggleEditorColorMode @ 0x10027efb8", "EditorPauseLayer::toggleHideInvisible @ 0x10027efe4", "EditorPauseLayer::togglePreviewParticles @ 0x10027f008", "EditorPauseLayer::togglePreviewShaders @ 0x10027f034", "EditorPauseLayer::togglePreviewAnim @ 0x10027f058", "EditorPauseLayer::toggleDebugDraw @ 0x10027f084", "EditorPauseLayer::toggleEffectDuration @ 0x10027f0a4", "EditorPauseLayer::toggleEffectLines @ 0x10027f0c4", "EditorPauseLayer::toggleEditorGround @ 0x10027f0ec", "EditorPauseLayer::toggleEditorBackground @ 0x10027f13c", "EditorPauseLayer::toggleEditorGrid @ 0x10027f184", "EditorPauseLayer::toggleGridOnTop @ 0x10027f1ac", "EditorPauseLayer::toggleShowObjectInfo @ 0x10027f228", "EditorPauseLayer::toggleSelectFilter @ 0x10027f264", "EditorPauseLayer::toggleRecordOrder @ 0x10027f284", "GJOptionsLayer::onToggle @ 0x100287b80", "GameOptionsLayer::didToggle @ 0x10029f1c8", "GameOptionsLayer::didToggle @ 0x10029f202", "GameOptionsLayer::didToggle @ 0x10029f273", "GameOptionsLayer::didToggle @ 0x10029f29f", "GameOptionsLayer::didToggle @ 0x10029f2b3", "GameOptionsLayer::didToggle @ 0x10029f2db", "GameOptionsLayer::didToggle @ 0x10029f311", "UIOptionsLayer::valueDidChange @ 0x1002a261c", "GJGarageLayer::onSpecial @ 0x100357214", "PauseLayer::onSideButtonPressed @ 0x1003c173f", "SFXBrowser::onToggleCompactMode @ 0x10042e372", "CreateParticlePopup::onTogglePerfLog @ 0x100467f2c", "UILayer::handleAction @ 0x1004c3bd5", "UILayer::handleAction @ 0x1004c3ca5", "UILayer::handleAction @ 0x1004c3d39", "UILayer::handleAction @ 0x1004c3e48", "UILayer::handleAction @ 0x1004c3f2d", "UILayer::handleAction @ 0x1004c3fca", "UILayer::handleAction @ 0x1004c4214", "UILayer::handleAction @ 0x1004c42b2", "UILayer::handleAction @ 0x1004c450f", "UILayer::handleAction @ 0x1004c45b4", "UILayer::handleAction @ 0x1004c4631", "UILayer::handleAction @ 0x1004c46ce", "EditorUI::handleEditorAction @ 0x10060bf49", "EditorUI::handleEditorAction @ 0x10060c7ba", "EditorUI::handleEditorAction @ 0x10060c8d5", "EditorUI::handleEditorAction @ 0x10060ca52", "EditorUI::toggleViewOption @ 0x10063e852", "OptionsLayer::onMenuMusic @ 0x10087be53", "MoreOptionsLayer::onToggle @ 0x10087f27e", "MoreVideoOptionsLayer::onToggle @ 0x100883352", "sub_1008858B0 @ 0x1008858c4", "ParentalOptionsLayer::onToggle @ 0x1008866e2", "InfoLayer::toggleExtendedMode @ 0x1008942d8", "InfoLayer::toggleSmallCommentMode @ 0x100894308", "sub_1008B55B0 @ 0x1008b55c4", "sub_1008C7F70 @ 0x1008c7f83", "sub_1008C7FB0 @ 0x1008c7fc3", "sub_1008C7FF0 @ 0x1008c8004", "sub_1008C8010 @ 0x1008c8024", "sub_1008C8030 @ 0x1008c8044", "sub_1008C8050 @ 0x1008c8065", "sub_1008C8140 @ 0x1008c8155", "sub_1008C81F0 @ 0x1008c8204", "sub_1008C8210 @ 0x1008c8223", "sub_1008CA590 @ 0x1008ca5a4", "TimeSpeedControl::onAudioTimeSpeedToggle @ 0x100977c6c", "TouchControlEditLayer::valueDidChange @ 0x10097a792"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}