{"type": "func", "start": 4299060784, "end": 4299061016, "name": "EditorUI::updateGridNodeSize", "pseudocode": "// \n// EditorUI::updateGridNodeSize from 0x1003e7630 to 0x1003e7718 (232 bytes)\n// \n// 3 xrefs:\n// > EditorUI::resetUI @ 0x1003e41ec\n// > EditorUI::toggleSpecialEditButtons @ 0x1003e661c\n// > EditorUI::onCreateButton @ 0x1003eb044\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 __fastcall EditorUI::updateGridNodeSize(EditorUI *a1)\n{\n  int m_selectedObjectIndex; // w20\n  GameObject *m_selectedObject; // x8\n  unsigned int v4; // w21\n  float v5; // s9\n  __int64 v6; // x22\n  ObjectToolbox *v7; // x0\n  float v8; // s0\n  ObjectToolbox *v9; // x0\n  float v10; // s0\n\n  if ( a1->m_selectedMode == 2 )\n  {\n    m_selectedObjectIndex = a1->m_selectedObjectIndex;\n  }\n  else\n  {\n    m_selectedObject = a1->m_selectedObject;\n    if ( m_selectedObject )\n    {\n      m_selectedObjectIndex = m_selectedObject->m_objectID;\n    }\n    else if ( (unsigned int)sub_10024A36C((__int64)a1->m_selectedObjects) )\n    {\n      m_selectedObjectIndex = 0;\n      if ( (unsigned int)sub_10024A36C((__int64)a1->m_selectedObjects) )\n      {\n        v4 = 0;\n        v5 = -1.0;\n        do\n        {\n          v6 = sub_10024A388((__int64)a1->m_selectedObjects, v4);\n          v7 = ObjectToolbox::sharedState();\n          v8 = ObjectToolbox::gridNodeSizeForKey(v7, *(_DWORD *)(v6 + 1028));\n          if ( v5 == -1.0 )\n          {\n            m_selectedObjectIndex = *(_DWORD *)(v6 + 1028);\n            v5 = v8;\n          }\n          else if ( v5 != v8 )\n          {\n            goto LABEL_13;\n          }\n          ++v4;\n        }\n        while ( v4 < (unsigned int)sub_10024A36C((__int64)a1->m_selectedObjects) );\n      }\n    }\n    else\n    {\nLABEL_13:\n      m_selectedObjectIndex = -1;\n    }\n  }\n  v9 = ObjectToolbox::sharedState();\n  v10 = ObjectToolbox::gridNodeSizeForKey(v9, m_selectedObjectIndex);\n  a1->m_gridSize = v10;\n  a1->m_editorLayer->m_drawGridLayer->m_gridSize = v10;\n}", "assembly": "; \n; EditorUI::updateGridNodeSize from 0x1003e7630 to 0x1003e7718 (232 bytes)\n; \n; 3 xrefs:\n; > EditorUI::resetUI @ 0x1003e41ec\n; > EditorUI::toggleSpecialEditButtons @ 0x1003e661c\n; > EditorUI::onCreateButton @ 0x1003eb044\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\nSTP             D9, D8, [SP,#-0x10+var_30]!                            ; +0x0, 0x1003e7630\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x1003e7634\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x1003e7638\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x1003e763c\nADD             X29, SP, #0x30                                         ; +0x10, 0x1003e7640\nMOV             X19, X0                                                ; +0x14, 0x1003e7644\nLDR             W8, [X0,#0x4E0]                                        ; +0x18, 0x1003e7648\nCMP             W8, #2                                                 ; +0x1c, 0x1003e764c\nB.NE            loc_1003E765C                                          ; +0x20, 0x1003e7650\nLDR             W20, [X19,#0x4C0]                                      ; +0x24, 0x1003e7654\nB               loc_1003E76E8                                          ; +0x28, 0x1003e7658\nLDR             X8, [X19,#0x520]                                       ; +0x2c, 0x1003e765c\nCBZ             X8, loc_1003E766C                                      ; +0x30, 0x1003e7660\nLDR             W20, [X8,#0x404]                                       ; +0x34, 0x1003e7664\nB               loc_1003E76E8                                          ; +0x38, 0x1003e7668\nLDR             X0, [X19,#0x328]                                       ; +0x3c, 0x1003e766c\nBL              sub_10024A36C                                          ; +0x40, 0x1003e7670\nCBZ             W0, loc_1003E76E4                                      ; +0x44, 0x1003e7674\nLDR             X0, [X19,#0x328]                                       ; +0x48, 0x1003e7678\nBL              sub_10024A36C                                          ; +0x4c, 0x1003e767c\nMOV             W20, #0                                                ; +0x50, 0x1003e7680\nCBZ             W0, loc_1003E76E8                                      ; +0x54, 0x1003e7684\nMOV             W21, #0                                                ; +0x58, 0x1003e7688\nFMOV            S8, #-1.0                                              ; +0x5c, 0x1003e768c\nFMOV            S9, #-1.0                                              ; +0x60, 0x1003e7690\nLDR             X0, [X19,#0x328]                                       ; +0x64, 0x1003e7694\nMOV             X1, X21                                                ; +0x68, 0x1003e7698\nBL              sub_10024A388                                          ; +0x6c, 0x1003e769c\nMOV             X22, X0                                                ; +0x70, 0x1003e76a0\nBL              ObjectToolbox__sharedState                             ; +0x74, 0x1003e76a4\nLDR             W1, [X22,#0x404]                                       ; +0x78, 0x1003e76a8\nBL              ObjectToolbox__gridNodeSizeForKey                      ; +0x7c, 0x1003e76ac\nFCMP            S9, S8                                                 ; +0x80, 0x1003e76b0\nB.NE            loc_1003E76C4                                          ; +0x84, 0x1003e76b4\nLDR             W20, [X22,#0x404]                                      ; +0x88, 0x1003e76b8\nFMOV            S9, S0                                                 ; +0x8c, 0x1003e76bc\nB               loc_1003E76CC                                          ; +0x90, 0x1003e76c0\nFCMP            S9, S0                                                 ; +0x94, 0x1003e76c4\nB.NE            loc_1003E76E4                                          ; +0x98, 0x1003e76c8\nADD             W21, W21, #1                                           ; +0x9c, 0x1003e76cc\nLDR             X0, [X19,#0x328]                                       ; +0xa0, 0x1003e76d0\nBL              sub_10024A36C                                          ; +0xa4, 0x1003e76d4\nCMP             W21, W0                                                ; +0xa8, 0x1003e76d8\nB.CC            loc_1003E7694                                          ; +0xac, 0x1003e76dc\nB               loc_1003E76E8                                          ; +0xb0, 0x1003e76e0\nMOV             W20, #0xFFFFFFFF                                       ; +0xb4, 0x1003e76e4\nBL              ObjectToolbox__sharedState                             ; +0xb8, 0x1003e76e8\nMOV             X1, X20                                                ; +0xbc, 0x1003e76ec\nBL              ObjectToolbox__gridNodeSizeForKey                      ; +0xc0, 0x1003e76f0\nSTR             S0, [X19,#0x260]                                       ; +0xc4, 0x1003e76f4\nLDR             X8, [X19,#0x4E8]                                       ; +0xc8, 0x1003e76f8\nLDR             X8, [X8,#0x36C8]                                       ; +0xcc, 0x1003e76fc\nSTR             S0, [X8,#0x25C]                                        ; +0xd0, 0x1003e7700\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xd4, 0x1003e7704\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xd8, 0x1003e7708\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0xdc, 0x1003e770c\nLDP             D9, D8, [SP+0x30+var_30],#0x40                         ; +0xe0, 0x1003e7710\nRET                                                                    ; +0xe4, 0x1003e7714", "xrefs": ["EditorUI::resetUI @ 0x1003e41ec", "EditorUI::toggleSpecialEditButtons @ 0x1003e661c", "EditorUI::onCreateButton @ 0x1003eb044"], "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"}