{"type": "func", "start": 4297672544, "end": 4297672617, "name": "EditorPauseLayer::toggleEditorBackground", "pseudocode": "// \n// EditorPauseLayer::toggleEditorBackground from 0x100294760 to 0x1002947a9 (73 bytes)\n// \n// 0 xrefs:\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\nvoid __fastcall EditorPauseLayer::toggleEditorBackground(EditorPauseLayer *a1, cocos2d::CCObject *a2)\n{\n  GameManager *v2; // rax\n  LevelEditorLayer *m_editorLayer; // rbx\n  GameManager *v4; // rax\n  bool GameVariable; // al\n\n  v2 = GameManager::sharedState();\n  GameManager::toggleGameVariable(v2, \"0078\");\n  m_editorLayer = a1->m_editorLayer;\n  v4 = GameManager::sharedState();\n  GameVariable = GameManager::getGameVariable(v4, \"0078\");\n  LevelEditorLayer::toggleBackground(m_editorLayer, !GameVariable);\n}", "assembly": "; \n; EditorPauseLayer::toggleEditorBackground from 0x100294760 to 0x1002947a9 (73 bytes)\n; \n; 0 xrefs:\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\npush    rbp                                                            ; +0x0, 0x100294760\nmov     rbp, rsp                                                       ; +0x1, 0x100294761\npush    r14                                                            ; +0x4, 0x100294764\npush    rbx                                                            ; +0x6, 0x100294766\nmov     rbx, rdi                                                       ; +0x7, 0x100294767\ncall    GameManager__sharedState                                       ; +0xa, 0x10029476a\nlea     r14, a0078; \"0078\"                                             ; +0xf, 0x10029476f\nmov     rdi, rax                                                       ; +0x16, 0x100294776\nmov     rsi, r14                                                       ; +0x19, 0x100294779\ncall    GameManager__toggleGameVariable                                ; +0x1c, 0x10029477c\nmov     rbx, [rbx+248h]                                                ; +0x21, 0x100294781\ncall    GameManager__sharedState                                       ; +0x28, 0x100294788\nmov     rdi, rax                                                       ; +0x2d, 0x10029478d\nmov     rsi, r14                                                       ; +0x30, 0x100294790\ncall    GameManager__getGameVariable                                   ; +0x33, 0x100294793\nxor     al, 1                                                          ; +0x38, 0x100294798\nmovzx   esi, al                                                        ; +0x3a, 0x10029479a\nmov     rdi, rbx                                                       ; +0x3d, 0x10029479d\npop     rbx                                                            ; +0x40, 0x1002947a0\npop     r14                                                            ; +0x41, 0x1002947a1\npop     rbp                                                            ; +0x43, 0x1002947a3\njmp     LevelEditorLayer__toggleBackground                             ; +0x44, 0x1002947a4", "xrefs": [], "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"}