{"type": "func", "start": 4725140, "end": 4725200, "name": "EditorUI::setCustomGridEnabled", "pseudocode": "// \n// EditorUI::setCustomGridEnabled from 0x481994 to 0x4819d0 (60 bytes)\n// \n// 2 xrefs:\n// > EditorUI::toggleCustomGridEnabled @ 0x4819e0\n// > GridSettingsLayer::valueDidChange @ 0x78e2f8\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:49:22 +0000\n// \n\nint __fastcall EditorUI::setCustomGridEnabled(EditorUI *this, const char *a2)\n{\n  GameManager *v4; // r0\n\n  *((_BYTE *)this + 480) = (_BYTE)a2;\n  v4 = (GameManager *)GameManager::sharedState(this);\n  GameManager::setGameVariable(v4, \"0194\", a2);\n  if ( a2 && *((float *)this + 119) <= 0.0 )\n    return EditorUI::setCustomGridNodeSize(this, 30.0);\n  else\n    return EditorUI::updateGridNodeSize((cocos2d::CCArray **)this);\n}", "assembly": "; \n; EditorUI::setCustomGridEnabled from 0x481994 to 0x4819d0 (60 bytes)\n; \n; 2 xrefs:\n; > EditorUI::toggleCustomGridEnabled @ 0x4819e0\n; > GridSettingsLayer::valueDidChange @ 0x78e2f8\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:49:22 +0000\n; \nPUSH            {R3-R5,LR}                                             ; +0x0, 0x481994\nMOV             R4, R0                                                 ; +0x2, 0x481996\nSTRB.W          R1, [R4,#0x1E0]                                        ; +0x4, 0x481998\nMOV             R5, R1                                                 ; +0x8, 0x48199c\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0xa, 0x48199e\nLDR             R1, =(a0194 - 0x4819AA); \"0194\"                        ; +0xe, 0x4819a2\nMOV             R2, R5; bool                                           ; +0x10, 0x4819a4\nADD             R1, PC; \"0194\"                                         ; +0x12, 0x4819a6\nBL              _ZN11GameManager15setGameVariableEPKcb; GameManager::setGameVariable(char const*,bool) ; +0x14, 0x4819a8\nMOV             R0, R4; this                                           ; +0x18, 0x4819ac\nCBZ             R5, loc_4819C8                                         ; +0x1a, 0x4819ae\nVLDR            S15, [R4,#0x1DC]                                       ; +0x1c, 0x4819b0\nVCMPE.F32       S15, #0.0                                              ; +0x20, 0x4819b4\nVMRS            APSR_nzcv, FPSCR                                       ; +0x24, 0x4819b8\nBHI             loc_4819C8                                             ; +0x28, 0x4819bc\nLDR             R1, flt_4819D0; float                                  ; +0x2a, 0x4819be\nPOP.W           {R3-R5,LR}                                             ; +0x2c, 0x4819c0\nB.W             _ZN8EditorUI21setCustomGridNodeSizeEf; EditorUI::setCustomGridNodeSize(float) ; +0x30, 0x4819c4\nPOP.W           {R3-R5,LR}                                             ; +0x34, 0x4819c8\nB.W             _ZN8EditorUI18updateGridNodeSizeEv; EditorUI::updateGridNodeSize(void) ; +0x38, 0x4819cc", "xrefs": ["EditorUI::toggleCustomGridEnabled @ 0x4819e0", "GridSettingsLayer::valueDidChange @ 0x78e2f8"], "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"}