{"type": "func", "start": 4193748, "end": 4193826, "name": "EditorPauseLayer::toggleGridOnTop", "pseudocode": "// \n// EditorPauseLayer::toggleGridOnTop from 0x3ffdd4 to 0x3ffe22 (78 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 EditorPauseLayer::toggleGridOnTop(EditorPauseLayer *a1, cocos2d::CCObject *a2)\n{\n  GameManager *v3; // r0\n  GameManager *v4; // r0\n  _BOOL4 GameVariable; // r6\n  cocos2d::CCNode *v6; // r0\n  int v7; // r2\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  v7 = 1399;\n  if ( !GameVariable )\n    v7 = -1599;\n  v6->reorderChild(v6, a1->m_editorLayer->m_drawGridLayer, v7);\n}", "assembly": "; \n; EditorPauseLayer::toggleGridOnTop from 0x3ffdd4 to 0x3ffe22 (78 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            {R4-R6,LR}                                             ; +0x0, 0x3ffdd4\nMOV             R5, R0                                                 ; +0x2, 0x3ffdd6\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x4, 0x3ffdd8\nLDR             R4, =(a0039 - 0x3FFDE2); \"0039\"                        ; +0x8, 0x3ffddc\nADD             R4, PC; \"0039\"                                         ; +0xa, 0x3ffdde\nMOV             R1, R4; char *                                         ; +0xc, 0x3ffde0\nBL              _ZN11GameManager18toggleGameVariableEPKc; GameManager::toggleGameVariable(char const*) ; +0xe, 0x3ffde2\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x12, 0x3ffde6\nMOV             R1, R4; char *                                         ; +0x16, 0x3ffdea\nBL              _ZN11GameManager15getGameVariableEPKc; GameManager::getGameVariable(char const*) ; +0x18, 0x3ffdec\nLDR.W           R3, [R5,#0x1CC]                                        ; +0x1c, 0x3ffdf0\nMOVW            R4, #0x2EAC                                            ; +0x20, 0x3ffdf4\nMOV             R6, R0                                                 ; +0x24, 0x3ffdf8\nLDR             R0, [R3,R4]                                            ; +0x26, 0x3ffdfa\nLDR             R3, [R0]                                               ; +0x28, 0x3ffdfc\nLDR.W           R3, [R3,#0xF8]                                         ; +0x2a, 0x3ffdfe\nBLX             R3                                                     ; +0x2e, 0x3ffe02\nLDR.W           R2, [R5,#0x1CC]                                        ; +0x30, 0x3ffe04\nLDR             R1, [R2,R4]                                            ; +0x34, 0x3ffe08\nMOVW            R2, #0x577                                             ; +0x36, 0x3ffe0a\nLDR             R4, =0xFFFFF9C1                                        ; +0x3a, 0x3ffe0e\nCMP             R6, #0                                                 ; +0x3c, 0x3ffe10\nIT EQ                                                                  ; +0x3e, 0x3ffe12\nMOVEQ           R2, R4                                                 ; +0x40, 0x3ffe14\nPOP.W           {R4-R6,LR}                                             ; +0x42, 0x3ffe16\nLDR             R3, [R0]                                               ; +0x46, 0x3ffe1a\nLDR.W           R3, [R3,#0x120]                                        ; +0x48, 0x3ffe1c\nBX              R3                                                     ; +0x4c, 0x3ffe20", "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"}