{"type": "func", "start": 4725440, "end": 4725504, "name": "EditorUI::adjustCustomGridSize", "pseudocode": "// \n// EditorUI::adjustCustomGridSize from 0x481ac0 to 0x481b00 (64 bytes)\n// \n// 2 xrefs:\n// > EditorUI::handleEditorAction @ 0x6f1c0a\n// > EditorUI::handleEditorAction @ 0x6f1c16\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::adjustCustomGridSize(EditorUI *this, int a2)\n{\n  EditorUI *v2; // r4\n  GameManager *v3; // r0\n  float v4; // r1\n\n  v2 = this;\n  if ( *((_BYTE *)this + 480) )\n  {\n    v4 = (float)a2 + *((float *)this + 119);\n  }\n  else\n  {\n    *((_BYTE *)this + 480) = 1;\n    v3 = (GameManager *)GameManager::sharedState(this);\n    GameManager::setGameVariable(v3, \"0194\", (_BYTE *)&dword_0 + 1);\n    this = v2;\n    v4 = 30.0;\n  }\n  return EditorUI::setCustomGridNodeSize(this, v4);\n}", "assembly": "; \n; EditorUI::adjustCustomGridSize from 0x481ac0 to 0x481b00 (64 bytes)\n; \n; 2 xrefs:\n; > EditorUI::handleEditorAction @ 0x6f1c0a\n; > EditorUI::handleEditorAction @ 0x6f1c16\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, 0x481ac0\nVMOV            S15, R1                                                ; +0x2, 0x481ac2\nLDRB.W          R3, [R0,#0x1E0]                                        ; +0x6, 0x481ac6\nMOV             R4, R0                                                 ; +0xa, 0x481aca\nCBNZ            R3, loc_481AE8                                         ; +0xc, 0x481acc\nMOVS            R5, #1                                                 ; +0xe, 0x481ace\nSTRB.W          R5, [R0,#0x1E0]                                        ; +0x10, 0x481ad0\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x14, 0x481ad4\nLDR             R1, =(a0194 - 0x481AE0); \"0194\"                        ; +0x18, 0x481ad8\nMOV             R2, R5; bool                                           ; +0x1a, 0x481ada\nADD             R1, PC; \"0194\"                                         ; +0x1c, 0x481adc\nBL              _ZN11GameManager15setGameVariableEPKcb; GameManager::setGameVariable(char const*,bool) ; +0x1e, 0x481ade\nMOV             R0, R4; this                                           ; +0x22, 0x481ae2\nLDR             R1, =0x41F00000                                        ; +0x24, 0x481ae4\nB               loc_481AF8                                             ; +0x26, 0x481ae6\nVCVT.F32.S32    S15, S15                                               ; +0x28, 0x481ae8\nVLDR            S14, [R0,#0x1DC]                                       ; +0x2c, 0x481aec\nVADD.F32        S15, S15, S14                                          ; +0x30, 0x481af0\nVMOV            R1, S15; float                                         ; +0x34, 0x481af4\nPOP.W           {R3-R5,LR}                                             ; +0x38, 0x481af8\nB.W             _ZN8EditorUI21setCustomGridNodeSizeEf; EditorUI::setCustomGridNodeSize(float) ; +0x3c, 0x481afc", "xrefs": ["EditorUI::handleEditorAction @ 0x6f1c0a", "EditorUI::handleEditorAction @ 0x6f1c16"], "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"}