; ; EndPortalObject::setPosition from 0x1402093f0 to 0x14020954d (349 bytes) ; ; 2 xrefs: ; > @ 0x140754ea0 ; > @ 0x14091b338 ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:28:16 +0000 ; push rbx ; +0x0, 0x1402093f0 push rsi ; +0x2, 0x1402093f2 push rdi ; +0x3, 0x1402093f3 sub rsp, 40h ; +0x4, 0x1402093f4 movaps [rsp+58h+var_28], xmm6 ; +0x8, 0x1402093f8 movaps [rsp+58h+var_38], xmm8 ; +0xd, 0x1402093fd mov rsi, rdx ; +0x13, 0x140209403 mov rbx, rcx ; +0x16, 0x140209406 call GameObject__setPosition ; +0x19, 0x140209409 movss xmm6, cs:dword_140835C90 ; +0x1e, 0x14020940e cmp qword ptr [rbx+550h], 0 ; +0x26, 0x140209416 jz loc_1402094D6 ; +0x2e, 0x14020941e cmp byte ptr [rbx+558h], 0 ; +0x34, 0x140209424 jz short loc_140209433 ; +0x3b, 0x14020942b movaps xmm8, xmm6 ; +0x3d, 0x14020942d jmp short loc_14020943C ; +0x41, 0x140209431 movss xmm8, cs:flt_140835080 ; +0x43, 0x140209433 mov rax, cs:qword_14090BFD0 ; +0x4c, 0x14020943c test rax, rax ; +0x53, 0x140209443 jnz short loc_14020947A ; +0x56, 0x140209446 mov ecx, 6E8h; Size ; +0x58, 0x140209448 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x5d, 0x14020944d mov [rsp+58h+arg_10], rax ; +0x62, 0x140209452 mov rcx, rax ; +0x67, 0x140209457 call GameManager__GameManager ; +0x6a, 0x14020945a nop ; +0x6f, 0x14020945f mov cs:qword_14090BFD0, rax ; +0x70, 0x140209460 mov rcx, [rax] ; +0x77, 0x140209467 mov rdx, [rcx+48h] ; +0x7a, 0x14020946a mov rcx, rax ; +0x7e, 0x14020946e call rdx ; +0x81, 0x140209471 mov rax, cs:qword_14090BFD0 ; +0x83, 0x140209473 mov rax, [rax+230h] ; +0x8a, 0x14020947a movss xmm0, cs:dword_14083555C ; +0x91, 0x140209481 divss xmm0, dword ptr [rax+1A8h] ; +0x99, 0x140209489 movss xmm1, cs:dword_140835E0C ; +0xa1, 0x140209491 subss xmm1, xmm0 ; +0xa9, 0x140209499 mulss xmm1, xmm8 ; +0xad, 0x14020949d xorps xmm2, xmm2 ; +0xb2, 0x1402094a2 lea rcx, [rsp+58h+arg_18] ; +0xb5, 0x1402094a5 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xba, 0x1402094aa mov r8, rax ; +0xc0, 0x1402094b0 lea rdx, [rsp+58h+arg_0] ; +0xc3, 0x1402094b3 mov rcx, rsi ; +0xc8, 0x1402094b8 call cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0xcb, 0x1402094bb mov rcx, [rbx+550h] ; +0xd1, 0x1402094c1 mov rax, [rcx] ; +0xd8, 0x1402094c8 lea rdx, [rsp+58h+arg_0] ; +0xdb, 0x1402094cb call qword ptr [rax+0B8h] ; +0xe0, 0x1402094d0 cmp qword ptr [rbx+308h], 0 ; +0xe6, 0x1402094d6 jz short loc_14020953A ; +0xee, 0x1402094de cmp byte ptr [rbx+558h], 0 ; +0xf0, 0x1402094e0 jnz short loc_1402094F1 ; +0xf7, 0x1402094e7 movss xmm6, cs:flt_140835080 ; +0xf9, 0x1402094e9 lea rcx, [rbx+334h] ; +0x101, 0x1402094f1 movaps xmm2, xmm6 ; +0x108, 0x1402094f8 lea rdx, [rsp+58h+arg_0] ; +0x10b, 0x1402094fb call cs:??DCCPoint@cocos2d@@QEBA?AV01@M@Z; cocos2d::CCPoint::operator*(float) ; +0x110, 0x140209500 mov rax, [rbx] ; +0x116, 0x140209506 mov rcx, rbx ; +0x119, 0x140209509 call qword ptr [rax+0C8h] ; +0x11c, 0x14020950c lea r8, [rsp+58h+arg_0] ; +0x122, 0x140209512 lea rdx, [rsp+58h+arg_10] ; +0x127, 0x140209517 mov rcx, rax ; +0x12c, 0x14020951c call cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x12f, 0x14020951f mov rcx, [rbx+308h] ; +0x135, 0x140209525 mov rax, [rcx] ; +0x13c, 0x14020952c lea rdx, [rsp+58h+arg_10] ; +0x13f, 0x14020952f call qword ptr [rax+0B8h] ; +0x144, 0x140209534 movaps xmm6, [rsp+58h+var_28] ; +0x14a, 0x14020953a movaps xmm8, [rsp+58h+var_38] ; +0x14f, 0x14020953f add rsp, 40h ; +0x155, 0x140209545 pop rdi ; +0x159, 0x140209549 pop rsi ; +0x15a, 0x14020954a pop rbx ; +0x15b, 0x14020954b retn ; +0x15c, 0x14020954c