{"type": "func", "start": 5370844144, "end": 5370844493, "name": "EndPortalObject::setPosition", "pseudocode": "// \n// EndPortalObject::setPosition from 0x1402093f0 to 0x14020954d (349 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140754ea0\n// > <???> @ 0x14091b338\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:16 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall EndPortalObject::setPosition(__int64 a1, __int64 a2)\n{\n  __int64 result; // rax\n  float v5; // xmm8_4\n  __int64 v6; // rax\n  __int64 v7; // rax\n  __int64 v8; // rax\n  char v9; // [rsp+60h] [rbp+8h] BYREF\n  void *v10; // [rsp+70h] [rbp+18h] BYREF\n  char v11; // [rsp+78h] [rbp+20h] BYREF\n\n  result = GameObject::setPosition();\n  if ( *(_QWORD *)(a1 + 1360) )\n  {\n    if ( *(_BYTE *)(a1 + 1368) )\n      v5 = -1.0;\n    else\n      v5 = 1.0;\n    v6 = qword_14090BFD0;\n    if ( !qword_14090BFD0 )\n    {\n      v10 = operator new(0x6E8u);\n      qword_14090BFD0 = GameManager::GameManager(v10);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n      v6 = qword_14090BFD0;\n    }\n    cocos2d::CCPoint::CCPoint(\n      (cocos2d::CCPoint *)&v11,\n      (float)(-14.0 - (float)(15.0 / *(float *)(*(_QWORD *)(v6 + 560) + 424LL))) * v5,\n      0.0);\n    cocos2d::CCPoint::operator+(a2, &v9, v7);\n    result = (*(__int64 (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 1360) + 184LL))(*(_QWORD *)(a1 + 1360), &v9);\n  }\n  if ( *(_QWORD *)(a1 + 776) )\n  {\n    cocos2d::CCPoint::operator*(a1 + 820, &v9);\n    v8 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 200LL))(a1);\n    cocos2d::CCPoint::operator+(v8, &v10, &v9);\n    return (*(__int64 (__fastcall **)(_QWORD, void **))(**(_QWORD **)(a1 + 776) + 184LL))(*(_QWORD *)(a1 + 776), &v10);\n  }\n  return result;\n}", "assembly": "; \n; EndPortalObject::setPosition from 0x1402093f0 to 0x14020954d (349 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140754ea0\n; > <???> @ 0x14091b338\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:16 +0000\n; \npush    rbx                                                            ; +0x0, 0x1402093f0\npush    rsi                                                            ; +0x2, 0x1402093f2\npush    rdi                                                            ; +0x3, 0x1402093f3\nsub     rsp, 40h                                                       ; +0x4, 0x1402093f4\nmovaps  [rsp+58h+var_28], xmm6                                         ; +0x8, 0x1402093f8\nmovaps  [rsp+58h+var_38], xmm8                                         ; +0xd, 0x1402093fd\nmov     rsi, rdx                                                       ; +0x13, 0x140209403\nmov     rbx, rcx                                                       ; +0x16, 0x140209406\ncall    GameObject__setPosition                                        ; +0x19, 0x140209409\nmovss   xmm6, cs:dword_140835C90                                       ; +0x1e, 0x14020940e\ncmp     qword ptr [rbx+550h], 0                                        ; +0x26, 0x140209416\njz      loc_1402094D6                                                  ; +0x2e, 0x14020941e\ncmp     byte ptr [rbx+558h], 0                                         ; +0x34, 0x140209424\njz      short loc_140209433                                            ; +0x3b, 0x14020942b\nmovaps  xmm8, xmm6                                                     ; +0x3d, 0x14020942d\njmp     short loc_14020943C                                            ; +0x41, 0x140209431\nmovss   xmm8, cs:flt_140835080                                         ; +0x43, 0x140209433\nmov     rax, cs:qword_14090BFD0                                        ; +0x4c, 0x14020943c\ntest    rax, rax                                                       ; +0x53, 0x140209443\njnz     short loc_14020947A                                            ; +0x56, 0x140209446\nmov     ecx, 6E8h; Size                                                ; +0x58, 0x140209448\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x5d, 0x14020944d\nmov     [rsp+58h+arg_10], rax                                          ; +0x62, 0x140209452\nmov     rcx, rax                                                       ; +0x67, 0x140209457\ncall    GameManager__GameManager                                       ; +0x6a, 0x14020945a\nnop                                                                    ; +0x6f, 0x14020945f\nmov     cs:qword_14090BFD0, rax                                        ; +0x70, 0x140209460\nmov     rcx, [rax]                                                     ; +0x77, 0x140209467\nmov     rdx, [rcx+48h]                                                 ; +0x7a, 0x14020946a\nmov     rcx, rax                                                       ; +0x7e, 0x14020946e\ncall    rdx                                                            ; +0x81, 0x140209471\nmov     rax, cs:qword_14090BFD0                                        ; +0x83, 0x140209473\nmov     rax, [rax+230h]                                                ; +0x8a, 0x14020947a\nmovss   xmm0, cs:dword_14083555C                                       ; +0x91, 0x140209481\ndivss   xmm0, dword ptr [rax+1A8h]                                     ; +0x99, 0x140209489\nmovss   xmm1, cs:dword_140835E0C                                       ; +0xa1, 0x140209491\nsubss   xmm1, xmm0                                                     ; +0xa9, 0x140209499\nmulss   xmm1, xmm8                                                     ; +0xad, 0x14020949d\nxorps   xmm2, xmm2                                                     ; +0xb2, 0x1402094a2\nlea     rcx, [rsp+58h+arg_18]                                          ; +0xb5, 0x1402094a5\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xba, 0x1402094aa\nmov     r8, rax                                                        ; +0xc0, 0x1402094b0\nlea     rdx, [rsp+58h+arg_0]                                           ; +0xc3, 0x1402094b3\nmov     rcx, rsi                                                       ; +0xc8, 0x1402094b8\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0xcb, 0x1402094bb\nmov     rcx, [rbx+550h]                                                ; +0xd1, 0x1402094c1\nmov     rax, [rcx]                                                     ; +0xd8, 0x1402094c8\nlea     rdx, [rsp+58h+arg_0]                                           ; +0xdb, 0x1402094cb\ncall    qword ptr [rax+0B8h]                                           ; +0xe0, 0x1402094d0\ncmp     qword ptr [rbx+308h], 0                                        ; +0xe6, 0x1402094d6\njz      short loc_14020953A                                            ; +0xee, 0x1402094de\ncmp     byte ptr [rbx+558h], 0                                         ; +0xf0, 0x1402094e0\njnz     short loc_1402094F1                                            ; +0xf7, 0x1402094e7\nmovss   xmm6, cs:flt_140835080                                         ; +0xf9, 0x1402094e9\nlea     rcx, [rbx+334h]                                                ; +0x101, 0x1402094f1\nmovaps  xmm2, xmm6                                                     ; +0x108, 0x1402094f8\nlea     rdx, [rsp+58h+arg_0]                                           ; +0x10b, 0x1402094fb\ncall    cs:??DCCPoint@cocos2d@@QEBA?AV01@M@Z; cocos2d::CCPoint::operator*(float) ; +0x110, 0x140209500\nmov     rax, [rbx]                                                     ; +0x116, 0x140209506\nmov     rcx, rbx                                                       ; +0x119, 0x140209509\ncall    qword ptr [rax+0C8h]                                           ; +0x11c, 0x14020950c\nlea     r8, [rsp+58h+arg_0]                                            ; +0x122, 0x140209512\nlea     rdx, [rsp+58h+arg_10]                                          ; +0x127, 0x140209517\nmov     rcx, rax                                                       ; +0x12c, 0x14020951c\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x12f, 0x14020951f\nmov     rcx, [rbx+308h]                                                ; +0x135, 0x140209525\nmov     rax, [rcx]                                                     ; +0x13c, 0x14020952c\nlea     rdx, [rsp+58h+arg_10]                                          ; +0x13f, 0x14020952f\ncall    qword ptr [rax+0B8h]                                           ; +0x144, 0x140209534\nmovaps  xmm6, [rsp+58h+var_28]                                         ; +0x14a, 0x14020953a\nmovaps  xmm8, [rsp+58h+var_38]                                         ; +0x14f, 0x14020953f\nadd     rsp, 40h                                                       ; +0x155, 0x140209545\npop     rdi                                                            ; +0x159, 0x140209549\npop     rsi                                                            ; +0x15a, 0x14020954a\npop     rbx                                                            ; +0x15b, 0x14020954b\nretn                                                                   ; +0x15c, 0x14020954c", "xrefs": ["<???> @ 0x140754ea0", "<???> @ 0x14091b338"], "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"}