{"type": "func", "start": 4295025152, "end": 4295025337, "name": "EditorUI::adjustCustomGridSize", "pseudocode": "// \n// EditorUI::adjustCustomGridSize from 0x10000e200 to 0x10000e2b9 (185 bytes)\n// \n// 2 xrefs:\n// > EditorUI::handleEditorAction @ 0x10060cd13\n// > EditorUI::handleEditorAction @ 0x10060cd3d\n// \n// This function is hookable on this platform (idp: pc, 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:18:50 +0000\n// \n\n__int64 __fastcall EditorUI::adjustCustomGridSize(__int64 a1, __int64 a2, __int64 a3)\n{\n  float v4; // xmm0_4\n  float v5; // xmm1_4\n  __int64 v6; // rax\n  __int64 v7; // rdx\n  __int64 v8; // rdi\n  __int64 v9; // rdi\n  __int64 v10; // rdx\n  float v11; // xmm0_4\n\n  if ( *(_BYTE *)(a1 + 656) )\n  {\n    v4 = (float)(int)a2 + *(float *)(a1 + 652);\n    v5 = 0.0;\n    if ( v4 > 0.0 )\n      v5 = fmaxf(fminf(v4, 300.0), 5.0);\n    *(float *)(a1 + 652) = v5;\n    v6 = GameManager::sharedState(a1, a2, a3);\n    v7 = (unsigned int)(int)(float)(v5 * 10.0);\n    v8 = v6;\n  }\n  else\n  {\n    *(_BYTE *)(a1 + 656) = 1;\n    v9 = GameManager::sharedState(a1, a2, a3);\n    GameManager::setGameVariable(v9, \"0194\", 1);\n    *(_DWORD *)(a1 + 652) = 1106247680;\n    v8 = GameManager::sharedState(v9, \"0194\", v10);\n    v7 = 300;\n  }\n  v11 = GameManager::setIntGameVariable(v8, \"0193\", v7);\n  return EditorUI::updateGridNodeSize_1(a1, v11);\n}", "assembly": "; \n; EditorUI::adjustCustomGridSize from 0x10000e200 to 0x10000e2b9 (185 bytes)\n; \n; 2 xrefs:\n; > EditorUI::handleEditorAction @ 0x10060cd13\n; > EditorUI::handleEditorAction @ 0x10060cd3d\n; \n; This function is hookable on this platform (idp: pc, 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:18:50 +0000\n; \npush    rbp                                                            ; +0x0, 0x10000e200\nmov     rbp, rsp                                                       ; +0x1, 0x10000e201\npush    rbx                                                            ; +0x4, 0x10000e204\npush    rax                                                            ; +0x5, 0x10000e205\nmov     rbx, rdi                                                       ; +0x6, 0x10000e206\ncmp     byte ptr [rdi+290h], 0                                         ; +0x9, 0x10000e209\njz      short loc_10000E268                                            ; +0x10, 0x10000e210\ncvtsi2ss xmm0, esi                                                     ; +0x12, 0x10000e212\naddss   xmm0, dword ptr [rbx+28Ch]                                     ; +0x16, 0x10000e216\nxorps   xmm1, xmm1                                                     ; +0x1e, 0x10000e21e\nucomiss xmm0, xmm1                                                     ; +0x21, 0x10000e221\njbe     short loc_10000E239                                            ; +0x24, 0x10000e224\nminss   xmm0, cs:dword_100A03734                                       ; +0x26, 0x10000e226\nmaxss   xmm0, cs:flt_100A035C0                                         ; +0x2e, 0x10000e22e\nmovaps  xmm1, xmm0                                                     ; +0x36, 0x10000e236\nmovss   [rbp+var_C], xmm1                                              ; +0x39, 0x10000e239\nmovss   dword ptr [rbx+28Ch], xmm1                                     ; +0x3e, 0x10000e23e\ncall    GameManager__sharedState                                       ; +0x46, 0x10000e246\nmovss   xmm0, [rbp+var_C]                                              ; +0x4b, 0x10000e24b\nmulss   xmm0, cs:dword_100A035BC                                       ; +0x50, 0x10000e250\ncvttss2si edx, xmm0                                                    ; +0x58, 0x10000e258\nlea     rsi, a0193; \"0193\"                                             ; +0x5c, 0x10000e25c\nmov     rdi, rax                                                       ; +0x63, 0x10000e263\njmp     short loc_10000E2A6                                            ; +0x66, 0x10000e266\nmov     byte ptr [rbx+290h], 1                                         ; +0x68, 0x10000e268\ncall    GameManager__sharedState                                       ; +0x6f, 0x10000e26f\nlea     rsi, a0194; \"0194\"                                             ; +0x74, 0x10000e274\nmov     rdi, rax                                                       ; +0x7b, 0x10000e27b\nmov     edx, 1                                                         ; +0x7e, 0x10000e27e\ncall    GameManager__setGameVariable                                   ; +0x83, 0x10000e283\nmov     dword ptr [rbx+28Ch], 41F00000h                                ; +0x88, 0x10000e288\ncall    GameManager__sharedState                                       ; +0x92, 0x10000e292\nlea     rsi, a0193; \"0193\"                                             ; +0x97, 0x10000e297\nmov     rdi, rax                                                       ; +0x9e, 0x10000e29e\nmov     edx, 12Ch                                                      ; +0xa1, 0x10000e2a1\ncall    GameManager__setIntGameVariable                                ; +0xa6, 0x10000e2a6\nmov     rdi, rbx                                                       ; +0xab, 0x10000e2ab\nadd     rsp, 8                                                         ; +0xae, 0x10000e2ae\npop     rbx                                                            ; +0xb2, 0x10000e2b2\npop     rbp                                                            ; +0xb3, 0x10000e2b3\njmp     EditorUI__updateGridNodeSize_1                                 ; +0xb4, 0x10000e2b4", "xrefs": ["EditorUI::handleEditorAction @ 0x10060cd13", "EditorUI::handleEditorAction @ 0x10060cd3d"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}