{"type": "func", "start": 8131628, "end": 8131752, "name": "EditorUI::setCustomGridNodeSize", "pseudocode": "// \n// EditorUI::setCustomGridNodeSize from 0x7c142c to 0x7c14a8 (124 bytes)\n// \n// 9 xrefs:\n// > EditorUI::setCustomGridEnabled @ 0x7c1504\n// > EditorUI::cycleCustomGridPreset @ 0x7c1578\n// > EditorUI::cycleCustomGridPreset @ 0x7c15c0\n// > EditorUI::cycleCustomGridPreset @ 0x7c15f8\n// > EditorUI::adjustCustomGridSize @ 0x7c1630\n// > EditorUI::adjustCustomGridSize @ 0x7c1668\n// > GridSettingsLayer::onReset @ 0xcdbc5c\n// > GridSettingsLayer::valueDidChange @ 0xcdbcc4\n// > <???> @ 0xa6870\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:54:06 +0000\n// \n\n__int64 __fastcall EditorUI::setCustomGridNodeSize(EditorUI *this, float a2)\n{\n  float v3; // s1\n  GameManager *v4; // x0\n  float v6; // [xsp+20h] [xbp+20h]\n\n  if ( a2 <= 0.0 )\n  {\n    a2 = 0.0;\n  }\n  else\n  {\n    v3 = 300.0;\n    if ( a2 >= 300.0 || (v3 = 5.0, a2 <= 5.0) )\n      a2 = v3;\n  }\n  *((float *)this + 163) = a2;\n  v6 = a2;\n  v4 = (GameManager *)GameManager::sharedState(this);\n  GameManager::setIntGameVariable(v4, \"0193\", (int)(float)(v6 * 10.0));\n  return EditorUI::updateGridNodeSize((cocos2d::CCArray **)this);\n}", "assembly": "; \n; EditorUI::setCustomGridNodeSize from 0x7c142c to 0x7c14a8 (124 bytes)\n; \n; 9 xrefs:\n; > EditorUI::setCustomGridEnabled @ 0x7c1504\n; > EditorUI::cycleCustomGridPreset @ 0x7c1578\n; > EditorUI::cycleCustomGridPreset @ 0x7c15c0\n; > EditorUI::cycleCustomGridPreset @ 0x7c15f8\n; > EditorUI::adjustCustomGridSize @ 0x7c1630\n; > EditorUI::adjustCustomGridSize @ 0x7c1668\n; > GridSettingsLayer::onReset @ 0xcdbc5c\n; > GridSettingsLayer::valueDidChange @ 0xcdbcc4\n; > <???> @ 0xa6870\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:54:06 +0000\n; \nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x7c142c\nFCMPE           S0, #0.0                                               ; +0x4, 0x7c1430\nMOV             X29, SP                                                ; +0x8, 0x7c1434\nSTR             X19, [SP,#0x30+var_20]                                 ; +0xc, 0x7c1438\nMOV             X19, X0                                                ; +0x10, 0x7c143c\nB.LE            loc_7C14A0                                             ; +0x14, 0x7c1440\nLDR             S1, =0x43960000                                        ; +0x18, 0x7c1444\nFCMPE           S0, S1                                                 ; +0x1c, 0x7c1448\nB.PL            loc_7C1498                                             ; +0x20, 0x7c144c\nFMOV            S1, #5.0                                               ; +0x24, 0x7c1450\nFCMPE           S0, S1                                                 ; +0x28, 0x7c1454\nB.GT            loc_7C1460                                             ; +0x2c, 0x7c1458\nFMOV            S0, S1                                                 ; +0x30, 0x7c145c\nSTR             S0, [X19,#0x28C]                                       ; +0x34, 0x7c1460\nSTR             Q0, [X29,#0x30+var_10]                                 ; +0x38, 0x7c1464\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x3c, 0x7c1468\nFMOV            S1, #10.0                                              ; +0x40, 0x7c146c\nADRP            X1, #a0193@PAGE; \"0193\"                                ; +0x44, 0x7c1470\nLDR             Q0, [X29,#0x30+var_10]                                 ; +0x48, 0x7c1474\nADD             X1, X1, #a0193@PAGEOFF; \"0193\"                         ; +0x4c, 0x7c1478\nFMUL            S0, S0, S1                                             ; +0x50, 0x7c147c\nFCVTZS          W2, S0; int                                            ; +0x54, 0x7c1480\nBL              _ZN11GameManager18setIntGameVariableEPKci; GameManager::setIntGameVariable(char const*,int) ; +0x58, 0x7c1484\nMOV             X0, X19; this                                          ; +0x5c, 0x7c1488\nLDR             X19, [SP,#0x30+var_20]                                 ; +0x60, 0x7c148c\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x64, 0x7c1490\nB               _ZN8EditorUI18updateGridNodeSizeEv; EditorUI::updateGridNodeSize(void) ; +0x68, 0x7c1494\nB.MI            loc_7C1460                                             ; +0x6c, 0x7c1498\nB               loc_7C145C                                             ; +0x70, 0x7c149c\nFMOV            S0, WZR                                                ; +0x74, 0x7c14a0\nB               loc_7C1460                                             ; +0x78, 0x7c14a4", "xrefs": ["EditorUI::setCustomGridEnabled @ 0x7c1504", "EditorUI::cycleCustomGridPreset @ 0x7c1578", "EditorUI::cycleCustomGridPreset @ 0x7c15c0", "EditorUI::cycleCustomGridPreset @ 0x7c15f8", "EditorUI::adjustCustomGridSize @ 0x7c1630", "EditorUI::adjustCustomGridSize @ 0x7c1668", "GridSettingsLayer::onReset @ 0xcdbc5c", "GridSettingsLayer::valueDidChange @ 0xcdbcc4", "<???> @ 0xa6870"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}