{"type": "func", "start": 5370815824, "end": 5370815966, "name": "EditorUI::getLimitedPosition", "pseudocode": "// \n// EditorUI::getLimitedPosition from 0x140202550 to 0x1402025de (142 bytes)\n// \n// 2 xrefs:\n// > EditorUI::getGridSnappedPos @ 0x1401bf9b4\n// > <???> @ 0x14091aedc\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:28:13 +0000\n// \n\ncocos2d::CCPoint *__fastcall EditorUI::getLimitedPosition(__int64 a1, cocos2d::CCPoint *a2, float *a3)\n{\n  __int64 v3; // rax\n  float v5; // xmm2_4\n  float v6; // xmm1_4\n  __int64 v7; // rcx\n  int v8; // eax\n\n  v3 = *(_QWORD *)(a1 + 1512);\n  v5 = fmaxf(-3000.0, a3[1]);\n  v6 = fmaxf(-3000.0, *a3);\n  a3[1] = v5;\n  *a3 = fminf(240000.0, v6);\n  v7 = *(_QWORD *)(v3 + 3528);\n  v8 = 80;\n  if ( *(_BYTE *)(v7 + 461) )\n    v8 = 1000;\n  a3[1] = fminf((float)((float)v8 * 30.0) + 90.0, v5);\n  cocos2d::CCPoint::CCPoint(a2, (const struct cocos2d::CCPoint *)a3);\n  return a2;\n}", "assembly": "; \n; EditorUI::getLimitedPosition from 0x140202550 to 0x1402025de (142 bytes)\n; \n; 2 xrefs:\n; > EditorUI::getGridSnappedPos @ 0x1401bf9b4\n; > <???> @ 0x14091aedc\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:28:13 +0000\n; \npush    rbx                                                            ; +0x0, 0x140202550\nsub     rsp, 20h                                                       ; +0x2, 0x140202552\nmov     rax, [rcx+5E8h]                                                ; +0x6, 0x140202556\nmov     rbx, rdx                                                       ; +0xd, 0x14020255d\nmovss   xmm2, cs:dword_1408360B4                                       ; +0x10, 0x140202560\nmov     edx, 3E8h                                                      ; +0x18, 0x140202568\nmovss   xmm0, cs:dword_140835C08                                       ; +0x1d, 0x14020256d\nmovaps  xmm1, xmm2                                                     ; +0x25, 0x140202575\nmaxss   xmm2, dword ptr [r8+4]                                         ; +0x28, 0x140202578\nmaxss   xmm1, dword ptr [r8]                                           ; +0x2e, 0x14020257e\nmovss   dword ptr [r8+4], xmm2                                         ; +0x33, 0x140202583\nminss   xmm0, xmm1                                                     ; +0x39, 0x140202589\nmovss   dword ptr [r8], xmm0                                           ; +0x3d, 0x14020258d\nmov     rcx, [rax+0DC8h]                                               ; +0x42, 0x140202592\nmov     eax, 50h ; 'P'                                                 ; +0x49, 0x140202599\ncmp     byte ptr [rcx+1CDh], 0                                         ; +0x4e, 0x14020259e\nmov     rcx, rbx                                                       ; +0x55, 0x1402025a5\ncmovnz  eax, edx                                                       ; +0x58, 0x1402025a8\nmov     rdx, r8                                                        ; +0x5b, 0x1402025ab\nmovd    xmm0, eax                                                      ; +0x5e, 0x1402025ae\ncvtdq2ps xmm0, xmm0                                                    ; +0x62, 0x1402025b2\nmulss   xmm0, cs:dword_140835624                                       ; +0x65, 0x1402025b5\naddss   xmm0, cs:flt_140835780                                         ; +0x6d, 0x1402025bd\nminss   xmm0, xmm2                                                     ; +0x75, 0x1402025c5\nmovss   dword ptr [r8+4], xmm0                                         ; +0x79, 0x1402025c9\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x7f, 0x1402025cf\nmov     rax, rbx                                                       ; +0x85, 0x1402025d5\nadd     rsp, 20h                                                       ; +0x88, 0x1402025d8\npop     rbx                                                            ; +0x8c, 0x1402025dc\nretn                                                                   ; +0x8d, 0x1402025dd", "xrefs": ["EditorUI::getGridSnappedPos @ 0x1401bf9b4", "<???> @ 0x14091aedc"], "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"}