{"type": "func", "start": 4301319168, "end": 4301319269, "name": "EditorUI::getLimitedPosition", "pseudocode": "// \n// EditorUI::getLimitedPosition from 0x10060ec00 to 0x10060ec65 (101 bytes)\n// \n// 6 xrefs:\n// > EditorUI::onCreateObject @ 0x100010ee4\n// > EditorUI::getGridSnappedPos @ 0x100011bad\n// > EditorUI::createPrefab @ 0x100014902\n// > EditorUI::createGradientFromSelection @ 0x100017672\n// > EditorUI::findSnapObject_1 @ 0x10001a557\n// > EditorUI::findSnapObject_1 @ 0x10001a755\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:34:33 +0000\n// \n\n_QWORD *__fastcall EditorUI::getLimitedPosition(_QWORD *a1, __int64 a2, double *a3)\n{\n  __m128 v3; // xmm0\n\n  if ( *(_BYTE *)(*(_QWORD *)(*(_QWORD *)(a2 + 1440) + 3272LL) + 453LL) )\n    v3 = (__m128)0x46EB1400u;\n  else\n    v3 = (__m128)0x451BA000u;\n  _mm_storel_ps(\n    a3,\n    _mm_min_ps(\n      _mm_max_ps((__m128)*(unsigned __int64 *)a3, (__m128)xmmword_100A0D740),\n      _mm_insert_ps((__m128)xmmword_100A03890, v3, 16)));\n  sub_1002782D0(a1, a3);\n  return a1;\n}", "assembly": "; \n; EditorUI::getLimitedPosition from 0x10060ec00 to 0x10060ec65 (101 bytes)\n; \n; 6 xrefs:\n; > EditorUI::onCreateObject @ 0x100010ee4\n; > EditorUI::getGridSnappedPos @ 0x100011bad\n; > EditorUI::createPrefab @ 0x100014902\n; > EditorUI::createGradientFromSelection @ 0x100017672\n; > EditorUI::findSnapObject_1 @ 0x10001a557\n; > EditorUI::findSnapObject_1 @ 0x10001a755\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:34:33 +0000\n; \npush    rbp                                                            ; +0x0, 0x10060ec00\nmov     rbp, rsp                                                       ; +0x1, 0x10060ec01\npush    rbx                                                            ; +0x4, 0x10060ec04\npush    rax                                                            ; +0x5, 0x10060ec05\nmov     rbx, rdi                                                       ; +0x6, 0x10060ec06\nmov     rax, [rsi+5A0h]                                                ; +0x9, 0x10060ec09\nmov     rax, [rax+0CC8h]                                               ; +0x10, 0x10060ec10\ncmp     byte ptr [rax+1C5h], 0                                         ; +0x17, 0x10060ec17\njnz     short loc_10060EC2A                                            ; +0x1e, 0x10060ec1e\nmovss   xmm0, cs:dword_100A03830                                       ; +0x20, 0x10060ec20\njmp     short loc_10060EC32                                            ; +0x28, 0x10060ec28\nmovss   xmm0, cs:dword_100A0382C                                       ; +0x2a, 0x10060ec2a\nmovsd   xmm1, qword ptr [rdx]                                          ; +0x32, 0x10060ec32\nmaxps   xmm1, cs:xmmword_100A0D740                                     ; +0x36, 0x10060ec36\nmovaps  xmm2, cs:xmmword_100A03890                                     ; +0x3d, 0x10060ec3d\ninsertps xmm2, xmm0, 10h                                               ; +0x44, 0x10060ec44\nminps   xmm1, xmm2                                                     ; +0x4a, 0x10060ec4a\nmovlps  qword ptr [rdx], xmm1                                          ; +0x4d, 0x10060ec4d\nmov     rdi, rbx                                                       ; +0x50, 0x10060ec50\nmov     rsi, rdx                                                       ; +0x53, 0x10060ec53\ncall    sub_1002782D0                                                  ; +0x56, 0x10060ec56\nmov     rax, rbx                                                       ; +0x5b, 0x10060ec5b\nadd     rsp, 8                                                         ; +0x5e, 0x10060ec5e\npop     rbx                                                            ; +0x62, 0x10060ec62\npop     rbp                                                            ; +0x63, 0x10060ec63\nretn                                                                   ; +0x64, 0x10060ec64", "xrefs": ["EditorUI::onCreateObject @ 0x100010ee4", "EditorUI::getGridSnappedPos @ 0x100011bad", "EditorUI::createPrefab @ 0x100014902", "EditorUI::createGradientFromSelection @ 0x100017672", "EditorUI::findSnapObject_1 @ 0x10001a557", "EditorUI::findSnapObject_1 @ 0x10001a755"], "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"}