{"type": "func", "start": 4299641376, "end": 4299641464, "name": "EditorUI::adjustCustomGridSize", "pseudocode": "// \n// EditorUI::adjustCustomGridSize from 0x100475220 to 0x100475278 (88 bytes)\n// \n// 2 xrefs:\n// > EditorUI::handleEditorAction @ 0x100163670\n// > EditorUI::handleEditorAction @ 0x100163698\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 11:05:40 +0000\n// \n\n__int64 __fastcall EditorUI::adjustCustomGridSize(__int64 a1, int a2)\n{\n  float v3; // s0\n  __int64 v4; // x0\n\n  if ( (*(_BYTE *)(a1 + 656) & 1) != 0 )\n  {\n    v3 = *(float *)(a1 + 652) + (float)a2;\n  }\n  else\n  {\n    *(_BYTE *)(a1 + 656) = 1;\n    v4 = GameManager::sharedState();\n    GameManager::setGameVariable(v4, \"0194\", 1);\n    v3 = 30.0;\n  }\n  return sub_100475084(a1, v3);\n}", "assembly": "; \n; EditorUI::adjustCustomGridSize from 0x100475220 to 0x100475278 (88 bytes)\n; \n; 2 xrefs:\n; > EditorUI::handleEditorAction @ 0x100163670\n; > EditorUI::handleEditorAction @ 0x100163698\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 11:05:40 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x100475220\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100475224\nADD             X29, SP, #0x10                                         ; +0x8, 0x100475228\nMOV             X19, X0                                                ; +0xc, 0x10047522c\nLDRB            W8, [X0,#0x290]                                        ; +0x10, 0x100475230\nTBZ             W8, #0, loc_100475248                                  ; +0x14, 0x100475234\nLDR             S0, [X19,#0x28C]                                       ; +0x18, 0x100475238\nSCVTF           S1, W1                                                 ; +0x1c, 0x10047523c\nFADD            S0, S0, S1                                             ; +0x20, 0x100475240\nB               loc_100475268                                          ; +0x24, 0x100475244\nMOV             W8, #1                                                 ; +0x28, 0x100475248\nSTRB            W8, [X19,#0x290]                                       ; +0x2c, 0x10047524c\nBL              GameManager__sharedState                               ; +0x30, 0x100475250\nADRL            X1, a0194; \"0194\"                                      ; +0x34, 0x100475254\nMOV             W2, #1                                                 ; +0x3c, 0x10047525c\nBL              GameManager__setGameVariable                           ; +0x40, 0x100475260\nFMOV            S0, #30.0                                              ; +0x44, 0x100475264\nMOV             X0, X19                                                ; +0x48, 0x100475268\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4c, 0x10047526c\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x50, 0x100475270\nB               sub_100475084                                          ; +0x54, 0x100475274", "xrefs": ["EditorUI::handleEditorAction @ 0x100163670", "EditorUI::handleEditorAction @ 0x100163698"], "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"}