; ; EndPortalObject::getSpawnPos from 0x1401381a0 to 0x140138256 (182 bytes) ; ; 3 xrefs: ; > PlayLayer::checkForEnd @ 0x1403b4d26 ; > PlayLayer::checkForEnd @ 0x1403b4d63 ; > @ 0x1406ca098 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; mov [rsp+arg_8], rbx ; +0x0, 0x1401381a0 push rdi ; +0x5, 0x1401381a5 sub rsp, 30h ; +0x6, 0x1401381a6 movaps [rsp+38h+var_18], xmm6 ; +0xa, 0x1401381aa mov rdi, rdx ; +0xf, 0x1401381af mov rbx, rcx ; +0x12, 0x1401381b2 cmp byte ptr [rcx+558h], 0 ; +0x15, 0x1401381b5 jz short loc_1401381C8 ; +0x1c, 0x1401381bc movss xmm6, cs:dword_1406236F0 ; +0x1e, 0x1401381be jmp short loc_1401381D0 ; +0x26, 0x1401381c6 movss xmm6, cs:flt_140622C24 ; +0x28, 0x1401381c8 mov rax, cs:qword_1406C2ED8 ; +0x30, 0x1401381d0 test rax, rax ; +0x37, 0x1401381d7 jnz short loc_14013820B ; +0x3a, 0x1401381da mov ecx, 668h; Size ; +0x3c, 0x1401381dc call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x41, 0x1401381e1 mov [rsp+38h+arg_0], rax ; +0x46, 0x1401381e6 mov rcx, rax ; +0x4b, 0x1401381eb call sub_14017AB00 ; +0x4e, 0x1401381ee nop ; +0x53, 0x1401381f3 mov cs:qword_1406C2ED8, rax ; +0x54, 0x1401381f4 mov rdx, [rax] ; +0x5b, 0x1401381fb mov rcx, rax ; +0x5e, 0x1401381fe call qword ptr [rdx+48h] ; +0x61, 0x140138201 mov rax, cs:qword_1406C2ED8 ; +0x64, 0x140138204 mov rax, [rax+208h] ; +0x6b, 0x14013820b movss xmm0, cs:dword_14062343C ; +0x72, 0x140138212 divss xmm0, dword ptr [rax+1A8h] ; +0x7a, 0x14013821a mulss xmm0, xmm6 ; +0x82, 0x140138222 movss xmm1, dword ptr [rbx+3C8h] ; +0x86, 0x140138226 subss xmm1, xmm0 ; +0x8e, 0x14013822e movss xmm2, dword ptr [rbx+3CCh] ; +0x92, 0x140138232 mov rcx, rdi ; +0x9a, 0x14013823a call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x9d, 0x14013823d mov rax, rdi ; +0xa3, 0x140138243 mov rbx, [rsp+38h+arg_8] ; +0xa6, 0x140138246 movaps xmm6, [rsp+38h+var_18] ; +0xab, 0x14013824b add rsp, 30h ; +0xb0, 0x140138250 pop rdi ; +0xb4, 0x140138254 retn ; +0xb5, 0x140138255