{"type": "func", "start": 4297672624, "end": 4297672748, "name": "EditorPauseLayer::toggleGridOnTop", "pseudocode": "// \n// EditorPauseLayer::toggleGridOnTop from 0x1002947b0 to 0x10029482c (124 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::toggleGridOnTop(EditorPauseLayer *a1, cocos2d::CCObject *a2)\n{\n  GameManager *v2; // rax\n  GameManager *v3; // rax\n  bool GameVariable; // r14\n  __int64 v5; // rax\n  __int64 v6; // rdx\n\n  v2 = GameManager::sharedState();\n  GameManager::toggleGameVariable(v2, \"0039\");\n  v3 = GameManager::sharedState();\n  GameVariable = GameManager::getGameVariable(v3, \"0039\");\n  v5 = ((__int64 (__fastcall *)(DrawGridLayer *))a1->m_editorLayer->m_drawGridLayer->getParent)(a1->m_editorLayer->m_drawGridLayer);\n  v6 = 4294965697LL;\n  if ( GameVariable )\n    v6 = 1399;\n  (*(void (__fastcall **)(__int64, DrawGridLayer *, __int64))(*(_QWORD *)v5 + 576LL))(\n    v5,\n    a1->m_editorLayer->m_drawGridLayer,\n    v6);\n}", "assembly": "; \n; EditorPauseLayer::toggleGridOnTop from 0x1002947b0 to 0x10029482c (124 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, 0x1002947b0\nmov     rbp, rsp                                                       ; +0x1, 0x1002947b1\npush    r14                                                            ; +0x4, 0x1002947b4\npush    rbx                                                            ; +0x6, 0x1002947b6\nmov     rbx, rdi                                                       ; +0x7, 0x1002947b7\ncall    GameManager__sharedState                                       ; +0xa, 0x1002947ba\nlea     r14, a0039; \"0039\"                                             ; +0xf, 0x1002947bf\nmov     rdi, rax                                                       ; +0x16, 0x1002947c6\nmov     rsi, r14                                                       ; +0x19, 0x1002947c9\ncall    GameManager__toggleGameVariable                                ; +0x1c, 0x1002947cc\ncall    GameManager__sharedState                                       ; +0x21, 0x1002947d1\nmov     rdi, rax                                                       ; +0x26, 0x1002947d6\nmov     rsi, r14                                                       ; +0x29, 0x1002947d9\ncall    GameManager__getGameVariable                                   ; +0x2c, 0x1002947dc\nmov     r14d, eax                                                      ; +0x31, 0x1002947e1\nmov     rax, [rbx+248h]                                                ; +0x34, 0x1002947e4\nmov     rdi, [rax+3698h]                                               ; +0x3b, 0x1002947eb\nmov     rax, [rdi]                                                     ; +0x42, 0x1002947f2\ncall    qword ptr [rax+1F0h]                                           ; +0x45, 0x1002947f5\nmov     rcx, [rbx+248h]                                                ; +0x4b, 0x1002947fb\nmov     rsi, [rcx+3698h]                                               ; +0x52, 0x100294802\ntest    r14b, r14b                                                     ; +0x59, 0x100294809\nmov     ecx, 577h                                                      ; +0x5c, 0x10029480c\nmov     edx, 0FFFFF9C1h                                                ; +0x61, 0x100294811\ncmovnz  edx, ecx                                                       ; +0x66, 0x100294816\nmov     rcx, [rax]                                                     ; +0x69, 0x100294819\nmov     rcx, [rcx+240h]                                                ; +0x6c, 0x10029481c\nmov     rdi, rax                                                       ; +0x73, 0x100294823\npop     rbx                                                            ; +0x76, 0x100294826\npop     r14                                                            ; +0x77, 0x100294827\npop     rbp                                                            ; +0x79, 0x100294829\njmp     rcx                                                            ; +0x7a, 0x10029482a", "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"}