{"type": "func", "start": 5279836, "end": 5279914, "name": "EditorPauseLayer::toggleGridOnTop", "pseudocode": "// \n// EditorPauseLayer::toggleGridOnTop from 0x50905c to 0x5090aa (78 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:51:26 +0000\n// \n\nint __fastcall EditorPauseLayer::toggleGridOnTop(EditorPauseLayer *this, cocos2d::CCObject *a2)\n{\n  GameManager *v3; // r0\n  GameManager *v4; // r0\n  GameManager *v5; // r0\n  int GameVariable; // r6\n  int v7; // r0\n  int v8; // r2\n\n  v3 = (GameManager *)GameManager::sharedState(this);\n  v4 = (GameManager *)GameManager::toggleGameVariable(v3, \"0039\");\n  v5 = (GameManager *)GameManager::sharedState(v4);\n  GameVariable = GameManager::getGameVariable(v5, \"0039\");\n  v7 = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(*((_DWORD *)this + 114) + 11880) + 256))(*(_DWORD *)(*((_DWORD *)this + 114) + 11880));\n  v8 = 1399;\n  if ( !GameVariable )\n    v8 = -1599;\n  return (*(int (__fastcall **)(int, _DWORD, int))(*(_DWORD *)v7 + 296))(\n           v7,\n           *(_DWORD *)(*((_DWORD *)this + 114) + 11880),\n           v8);\n}", "assembly": "; \n; EditorPauseLayer::toggleGridOnTop from 0x50905c to 0x5090aa (78 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:51:26 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x50905c\nMOV             R5, R0                                                 ; +0x2, 0x50905e\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x4, 0x509060\nLDR             R4, =(a0039 - 0x50906A); \"0039\"                        ; +0x8, 0x509064\nADD             R4, PC; \"0039\"                                         ; +0xa, 0x509066\nMOV             R1, R4; char *                                         ; +0xc, 0x509068\nBL              _ZN11GameManager18toggleGameVariableEPKc; GameManager::toggleGameVariable(char const*) ; +0xe, 0x50906a\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x12, 0x50906e\nMOV             R1, R4; char *                                         ; +0x16, 0x509072\nBL              _ZN11GameManager15getGameVariableEPKc; GameManager::getGameVariable(char const*) ; +0x18, 0x509074\nLDR.W           R3, [R5,#0x1C8]                                        ; +0x1c, 0x509078\nMOVW            R4, #0x2E68                                            ; +0x20, 0x50907c\nMOV             R6, R0                                                 ; +0x24, 0x509080\nLDR             R0, [R3,R4]                                            ; +0x26, 0x509082\nLDR             R3, [R0]                                               ; +0x28, 0x509084\nLDR.W           R3, [R3,#0x100]                                        ; +0x2a, 0x509086\nBLX             R3                                                     ; +0x2e, 0x50908a\nLDR.W           R2, [R5,#0x1C8]                                        ; +0x30, 0x50908c\nLDR             R1, [R2,R4]                                            ; +0x34, 0x509090\nMOVW            R2, #0x577                                             ; +0x36, 0x509092\nLDR             R4, =0xFFFFF9C1                                        ; +0x3a, 0x509096\nCMP             R6, #0                                                 ; +0x3c, 0x509098\nIT EQ                                                                  ; +0x3e, 0x50909a\nMOVEQ           R2, R4                                                 ; +0x40, 0x50909c\nPOP.W           {R4-R6,LR}                                             ; +0x42, 0x50909e\nLDR             R3, [R0]                                               ; +0x46, 0x5090a2\nLDR.W           R3, [R3,#0x128]                                        ; +0x48, 0x5090a4\nBX              R3                                                     ; +0x4c, 0x5090a8", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}