{"type": "func", "start": 7913944, "end": 7914068, "name": "EditorPauseLayer::toggleGridOnTop", "pseudocode": "// \n// EditorPauseLayer::toggleGridOnTop from 0x78c1d8 to 0x78c254 (124 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0xa9638\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 EditorPauseLayer::toggleGridOnTop(EditorPauseLayer *a1, cocos2d::CCObject *a2)\n{\n  GameManager *v3; // x0\n  GameManager *v4; // x0\n  _BOOL4 GameVariable; // w19\n  cocos2d::CCNode *v6; // x0\n  __int64 v7; // x2\n\n  v3 = GameManager::sharedState();\n  GameManager::toggleGameVariable(v3, \"0039\");\n  v4 = GameManager::sharedState();\n  GameVariable = GameManager::getGameVariable(v4, \"0039\");\n  v6 = a1->m_editorLayer->m_drawGridLayer->getParent(a1->m_editorLayer->m_drawGridLayer);\n  if ( GameVariable )\n    v7 = 1399;\n  else\n    v7 = 4294965697LL;\n  v6->reorderChild(v6, a1->m_editorLayer->m_drawGridLayer, v7);\n}", "assembly": "; \n; EditorPauseLayer::toggleGridOnTop from 0x78c1d8 to 0x78c254 (124 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0xa9638\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\nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x78c1d8\nMOV             X29, SP                                                ; +0x4, 0x78c1dc\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x78c1e0\nADRP            X19, #a0039@PAGE; \"0039\"                               ; +0xc, 0x78c1e4\nMOV             X20, X0                                                ; +0x10, 0x78c1e8\nADD             X19, X19, #a0039@PAGEOFF; \"0039\"                       ; +0x14, 0x78c1ec\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x18, 0x78c1f0\nMOV             X1, X19; char *                                        ; +0x1c, 0x78c1f4\nBL              _ZN11GameManager18toggleGameVariableEPKc; GameManager::toggleGameVariable(char const*) ; +0x20, 0x78c1f8\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x24, 0x78c1fc\nMOV             X1, X19; char *                                        ; +0x28, 0x78c200\nBL              _ZN11GameManager15getGameVariableEPKc; GameManager::getGameVariable(char const*) ; +0x2c, 0x78c204\nUXTB            W19, W0                                                ; +0x30, 0x78c208\nLDR             X1, [X20,#0x248]                                       ; +0x34, 0x78c20c\nLDR             X1, [X1,#0x38A8]                                       ; +0x38, 0x78c210\nMOV             X0, X1                                                 ; +0x3c, 0x78c214\nLDR             X1, [X1]                                               ; +0x40, 0x78c218\nLDR             X1, [X1,#0x1F0]                                        ; +0x44, 0x78c21c\nBLR             X1                                                     ; +0x48, 0x78c220\nLDR             X3, [X0]                                               ; +0x4c, 0x78c224\nLDR             X1, [X20,#0x248]                                       ; +0x50, 0x78c228\nCMP             W19, WZR                                               ; +0x54, 0x78c22c\nMOV             W4, #0x577                                             ; +0x58, 0x78c230\nMOV             W2, #0xFFFFF9C1                                        ; +0x5c, 0x78c234\nLDR             X3, [X3,#0x240]                                        ; +0x60, 0x78c238\nCSEL            W2, W4, W2, NE                                         ; +0x64, 0x78c23c\nLDR             X1, [X1,#0x38A8]                                       ; +0x68, 0x78c240\nBLR             X3                                                     ; +0x6c, 0x78c244\nLDP             X19, X20, [SP,#var_s10]                                ; +0x70, 0x78c248\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x74, 0x78c24c\nRET                                                                    ; +0x78, 0x78c250", "xrefs": ["<???> @ 0xa9638"], "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"}