{"type": "func", "start": 5371630816, "end": 5371630905, "name": "GridSettingsLayer::valueDidChange", "pseudocode": "// \n// GridSettingsLayer::valueDidChange from 0x1402c94e0 to 0x1402c9539 (89 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1407669b0\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 11:29:23 +0000\n// \n\n__int64 __fastcall GridSettingsLayer::valueDidChange(__int64 a1, int a2, float a3)\n{\n  __int64 v3; // rcx\n  __int64 result; // rax\n  __int64 v5; // rcx\n  float v6; // xmm1_4\n\n  if ( a2 == -2 )\n  {\n    v5 = *(_QWORD *)(a1 + 1000);\n    if ( v5 )\n    {\n      v6 = 5.0;\n      if ( a3 >= 5.0 )\n        v6 = fminf(120.0, a3);\n      return EditorUI::setCustomGridNodeSize(v5, v6);\n    }\n  }\n  else if ( a2 == -1 )\n  {\n    v3 = *(_QWORD *)(a1 + 1000);\n    if ( v3 )\n    {\n      if ( a3 == 0.0 )\n        return EditorUI::setCustomGridEnabled(v3, 0);\n      else\n        return EditorUI::setCustomGridEnabled(v3, 1u);\n    }\n  }\n  return result;\n}", "assembly": "; \n; GridSettingsLayer::valueDidChange from 0x1402c94e0 to 0x1402c9539 (89 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1407669b0\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 11:29:23 +0000\n; \ncmp     edx, 0FFFFFFFEh                                                ; +0x0, 0x1402c94e0\njz      short loc_1402C950E                                            ; +0x3, 0x1402c94e3\ncmp     edx, 0FFFFFFFFh                                                ; +0x5, 0x1402c94e5\njnz     short locret_1402C9538                                         ; +0x8, 0x1402c94e8\nmov     rcx, [rcx+3E8h]                                                ; +0xa, 0x1402c94ea\ntest    rcx, rcx                                                       ; +0x11, 0x1402c94f1\njz      short locret_1402C9538                                         ; +0x14, 0x1402c94f4\nxorps   xmm0, xmm0                                                     ; +0x16, 0x1402c94f6\nucomiss xmm2, xmm0                                                     ; +0x19, 0x1402c94f9\njp      short loc_1402C9507                                            ; +0x1c, 0x1402c94fc\njnz     short loc_1402C9507                                            ; +0x1e, 0x1402c94fe\nxor     edx, edx                                                       ; +0x20, 0x1402c9500\njmp     EditorUI__setCustomGridEnabled                                 ; +0x22, 0x1402c9502\nmov     dl, 1                                                          ; +0x27, 0x1402c9507\njmp     EditorUI__setCustomGridEnabled                                 ; +0x29, 0x1402c9509\nmov     rcx, [rcx+3E8h]                                                ; +0x2e, 0x1402c950e\ntest    rcx, rcx                                                       ; +0x35, 0x1402c9515\njz      short locret_1402C9538                                         ; +0x38, 0x1402c9518\nmovss   xmm1, cs:flt_140835470                                         ; +0x3a, 0x1402c951a\ncomiss  xmm1, xmm2                                                     ; +0x42, 0x1402c9522\nja      short loc_1402C9533                                            ; +0x45, 0x1402c9525\nmovss   xmm1, cs:dword_1408357F4                                       ; +0x47, 0x1402c9527\nminss   xmm1, xmm2                                                     ; +0x4f, 0x1402c952f\njmp     EditorUI__setCustomGridNodeSize                                ; +0x53, 0x1402c9533\nretn                                                                   ; +0x58, 0x1402c9538", "xrefs": ["<???> @ 0x1407669b0"], "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"}