{"type": "func", "start": 4295272336, "end": 4295272437, "name": "EditorUI::getLimitedPosition", "pseudocode": "// \n// EditorUI::getLimitedPosition from 0x10004a790 to 0x10004a7f5 (101 bytes)\n// \n// 0 xrefs:\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\ncocos2d::CCPoint __fastcall EditorUI::getLimitedPosition(EditorUI *a1, cocos2d::CCPoint a2)\n{\n  double *v2; // rdx\n  __int64 v3; // rsi\n  __m128 v4; // xmm0\n  cocos2d::CCPoint result; // 0:xmm0_8.8\n\n  if ( *(_BYTE *)(*(_QWORD *)(*(_QWORD *)(v3 + 1256) + 3248LL) + 453LL) )\n    v4 = (__m128)0x46EB1400u;\n  else\n    v4 = (__m128)0x451BA000u;\n  _mm_storel_ps(\n    v2,\n    _mm_min_ps(\n      _mm_max_ps((__m128)*(unsigned __int64 *)v2, (__m128)xmmword_100815470),\n      _mm_insert_ps((__m128)xmmword_100815490, v4, 16)));\n  *(double *)&result = sub_10028CC60(a1);\n  return result;\n}", "assembly": "; \n; EditorUI::getLimitedPosition from 0x10004a790 to 0x10004a7f5 (101 bytes)\n; \n; 0 xrefs:\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\npush    rbp                                                            ; +0x0, 0x10004a790\nmov     rbp, rsp                                                       ; +0x1, 0x10004a791\npush    rbx                                                            ; +0x4, 0x10004a794\npush    rax                                                            ; +0x5, 0x10004a795\nmov     rbx, rdi                                                       ; +0x6, 0x10004a796\nmov     rax, [rsi+4E8h]                                                ; +0x9, 0x10004a799\nmov     rax, [rax+0CB0h]                                               ; +0x10, 0x10004a7a0\ncmp     byte ptr [rax+1C5h], 0                                         ; +0x17, 0x10004a7a7\njnz     short loc_10004A7BA                                            ; +0x1e, 0x10004a7ae\nmovss   xmm0, cs:dword_1008152C4                                       ; +0x20, 0x10004a7b0\njmp     short loc_10004A7C2                                            ; +0x28, 0x10004a7b8\nmovss   xmm0, cs:dword_1008152C0                                       ; +0x2a, 0x10004a7ba\nmovsd   xmm1, qword ptr [rdx]                                          ; +0x32, 0x10004a7c2\nmaxps   xmm1, cs:xmmword_100815470                                     ; +0x36, 0x10004a7c6\nmovaps  xmm2, cs:xmmword_100815490                                     ; +0x3d, 0x10004a7cd\ninsertps xmm2, xmm0, 10h                                               ; +0x44, 0x10004a7d4\nminps   xmm1, xmm2                                                     ; +0x4a, 0x10004a7da\nmovlps  qword ptr [rdx], xmm1                                          ; +0x4d, 0x10004a7dd\nmov     rdi, rbx                                                       ; +0x50, 0x10004a7e0\nmov     rsi, rdx                                                       ; +0x53, 0x10004a7e3\ncall    sub_10028CC60                                                  ; +0x56, 0x10004a7e6\nmov     rax, rbx                                                       ; +0x5b, 0x10004a7eb\nadd     rsp, 8                                                         ; +0x5e, 0x10004a7ee\npop     rbx                                                            ; +0x62, 0x10004a7f2\npop     rbp                                                            ; +0x63, 0x10004a7f3\nretn                                                                   ; +0x64, 0x10004a7f4", "xrefs": [], "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"}