{"type": "func", "start": 5369614304, "end": 5369614392, "name": "EditorPauseLayer::toggleEditorColorMode", "pseudocode": "// \n// EditorPauseLayer::toggleEditorColorMode from 0x1400dcfe0 to 0x1400dd038 (88 bytes)\n// \n// 2 xrefs:\n// > EditorPauseLayer::customSetup @ 0x1400dc489\n// > <???> @ 0x1406c8994\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\n// Hidden C++ exception states: #wind=1\nvoid EditorPauseLayer::toggleEditorColorMode(EditorPauseLayer *a1, cocos2d::CCObject *a2)\n{\n  void *v3; // [rsp+30h] [rbp+8h]\n\n  if ( !qword_1406C2ED8 )\n  {\n    v3 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00(v3);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n  }\n  GameManager::toggleGameVariable((GameManager *)a1, \"0036\");\n  LevelEditorLayer::updateEditorMode(a1->m_editorLayer);\n}", "assembly": "; \n; EditorPauseLayer::toggleEditorColorMode from 0x1400dcfe0 to 0x1400dd038 (88 bytes)\n; \n; 2 xrefs:\n; > EditorPauseLayer::customSetup @ 0x1400dc489\n; > <???> @ 0x1406c8994\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    rbx                                                            ; +0x0, 0x1400dcfe0\nsub     rsp, 20h                                                       ; +0x2, 0x1400dcfe2\nmov     rbx, rcx                                                       ; +0x6, 0x1400dcfe6\ncmp     cs:qword_1406C2ED8, 0                                          ; +0x9, 0x1400dcfe9\njnz     short loc_1400DD01B                                            ; +0x11, 0x1400dcff1\nmov     ecx, 668h; Size                                                ; +0x13, 0x1400dcff3\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x18, 0x1400dcff8\nmov     [rsp+28h+arg_0], rax                                           ; +0x1d, 0x1400dcffd\nmov     rcx, rax                                                       ; +0x22, 0x1400dd002\ncall    sub_14017AB00                                                  ; +0x25, 0x1400dd005\nnop                                                                    ; +0x2a, 0x1400dd00a\nmov     cs:qword_1406C2ED8, rax                                        ; +0x2b, 0x1400dd00b\nmov     rdx, [rax]                                                     ; +0x32, 0x1400dd012\nmov     rcx, rax                                                       ; +0x35, 0x1400dd015\ncall    qword ptr [rdx+48h]                                            ; +0x38, 0x1400dd018\nlea     rdx, a0036; \"0036\"                                             ; +0x3b, 0x1400dd01b\ncall    GameManager__toggleGameVariable                                ; +0x42, 0x1400dd022\nmov     rcx, [rbx+248h]                                                ; +0x47, 0x1400dd027\nadd     rsp, 20h                                                       ; +0x4e, 0x1400dd02e\npop     rbx                                                            ; +0x52, 0x1400dd032\njmp     LevelEditorLayer__updateEditorMode                             ; +0x53, 0x1400dd033", "xrefs": ["EditorPauseLayer::customSetup @ 0x1400dc489", "<???> @ 0x1406c8994"], "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"}