{"type": "func", "start": 5369615184, "end": 5369615367, "name": "EditorPauseLayer::toggleEditorGround", "pseudocode": "// \n// EditorPauseLayer::toggleEditorGround from 0x1400dd350 to 0x1400dd407 (183 bytes)\n// \n// 2 xrefs:\n// > EditorPauseLayer::customSetup @ 0x1400dbfc6\n// > <???> @ 0x1406c89dc\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=2\nvoid EditorPauseLayer::toggleEditorGround(EditorPauseLayer *a1, cocos2d::CCObject *a2)\n{\n  GameManager *v3; // rcx\n  bool GameVariable; // al\n  LevelEditorLayer *m_editorLayer; // rcx\n  void *v6; // [rsp+30h] [rbp+8h]\n  void *v7; // [rsp+30h] [rbp+8h]\n\n  if ( !qword_1406C2ED8 )\n  {\n    v6 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00(v6);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n  }\n  GameManager::toggleGameVariable((GameManager *)a1, \"0037\");\n  v3 = (GameManager *)qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v7 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00(v7);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v3 = (GameManager *)qword_1406C2ED8;\n  }\n  GameVariable = GameManager::getGameVariable(v3, \"0037\");\n  m_editorLayer = a1->m_editorLayer;\n  m_editorLayer->m_hideGround = !GameVariable;\n  m_editorLayer->m_groundLayer->setVisible(m_editorLayer->m_groundLayer, GameVariable);\n}", "assembly": "; \n; EditorPauseLayer::toggleEditorGround from 0x1400dd350 to 0x1400dd407 (183 bytes)\n; \n; 2 xrefs:\n; > EditorPauseLayer::customSetup @ 0x1400dbfc6\n; > <???> @ 0x1406c89dc\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, 0x1400dd350\nsub     rsp, 20h                                                       ; +0x2, 0x1400dd352\nmov     rbx, rcx                                                       ; +0x6, 0x1400dd356\ncmp     cs:qword_1406C2ED8, 0                                          ; +0x9, 0x1400dd359\njnz     short loc_1400DD38B                                            ; +0x11, 0x1400dd361\nmov     ecx, 668h; Size                                                ; +0x13, 0x1400dd363\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x18, 0x1400dd368\nmov     [rsp+28h+arg_0], rax                                           ; +0x1d, 0x1400dd36d\nmov     rcx, rax                                                       ; +0x22, 0x1400dd372\ncall    sub_14017AB00                                                  ; +0x25, 0x1400dd375\nnop                                                                    ; +0x2a, 0x1400dd37a\nmov     cs:qword_1406C2ED8, rax                                        ; +0x2b, 0x1400dd37b\nmov     rdx, [rax]                                                     ; +0x32, 0x1400dd382\nmov     rcx, rax                                                       ; +0x35, 0x1400dd385\ncall    qword ptr [rdx+48h]                                            ; +0x38, 0x1400dd388\nlea     rdx, a0037; \"0037\"                                             ; +0x3b, 0x1400dd38b\ncall    GameManager__toggleGameVariable                                ; +0x42, 0x1400dd392\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x47, 0x1400dd397\ntest    rcx, rcx                                                       ; +0x4e, 0x1400dd39e\njnz     short loc_1400DD3D3                                            ; +0x51, 0x1400dd3a1\nmov     ecx, 668h; Size                                                ; +0x53, 0x1400dd3a3\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x58, 0x1400dd3a8\nmov     [rsp+28h+arg_0], rax                                           ; +0x5d, 0x1400dd3ad\nmov     rcx, rax                                                       ; +0x62, 0x1400dd3b2\ncall    sub_14017AB00                                                  ; +0x65, 0x1400dd3b5\nnop                                                                    ; +0x6a, 0x1400dd3ba\nmov     cs:qword_1406C2ED8, rax                                        ; +0x6b, 0x1400dd3bb\nmov     r8, [rax]                                                      ; +0x72, 0x1400dd3c2\nmov     rcx, rax                                                       ; +0x75, 0x1400dd3c5\ncall    qword ptr [r8+48h]                                             ; +0x78, 0x1400dd3c8\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x7c, 0x1400dd3cc\nlea     rdx, a0037; \"0037\"                                             ; +0x83, 0x1400dd3d3\ncall    GameManager__getGameVariable                                   ; +0x8a, 0x1400dd3da\nmovzx   edx, al                                                        ; +0x8f, 0x1400dd3df\nmov     rcx, [rbx+248h]                                                ; +0x92, 0x1400dd3e2\nxor     al, 1                                                          ; +0x99, 0x1400dd3e9\nmov     [rcx+3490h], al                                                ; +0x9b, 0x1400dd3eb\nmov     rcx, [rcx+1010h]                                               ; +0xa1, 0x1400dd3f1\nmov     rax, [rcx]                                                     ; +0xa8, 0x1400dd3f8\nadd     rsp, 20h                                                       ; +0xab, 0x1400dd3fb\npop     rbx                                                            ; +0xaf, 0x1400dd3ff\njmp     qword ptr [rax+140h]                                           ; +0xb0, 0x1400dd400", "xrefs": ["EditorPauseLayer::customSetup @ 0x1400dbfc6", "<???> @ 0x1406c89dc"], "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"}