; ; EndPortalObject::setPosition from 0x140138260 to 0x1401383ba (346 bytes) ; ; 2 xrefs: ; > @ 0x140556bd8 ; > @ 0x1406ca0a4 ; ; 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 ; push rbx ; +0x0, 0x140138260 push rsi ; +0x2, 0x140138262 push rdi ; +0x3, 0x140138263 sub rsp, 40h ; +0x4, 0x140138264 movaps [rsp+58h+var_28], xmm6 ; +0x8, 0x140138268 movaps [rsp+58h+var_38], xmm8 ; +0xd, 0x14013826d mov rsi, rdx ; +0x13, 0x140138273 mov rbx, rcx ; +0x16, 0x140138276 call GameObject__setPosition ; +0x19, 0x140138279 movss xmm6, cs:dword_1406236F0 ; +0x1e, 0x14013827e cmp qword ptr [rbx+550h], 0 ; +0x26, 0x140138286 jz loc_140138343 ; +0x2e, 0x14013828e cmp byte ptr [rbx+558h], 0 ; +0x34, 0x140138294 jz short loc_1401382A3 ; +0x3b, 0x14013829b movaps xmm8, xmm6 ; +0x3d, 0x14013829d jmp short loc_1401382AC ; +0x41, 0x1401382a1 movss xmm8, cs:flt_140622C24 ; +0x43, 0x1401382a3 mov rax, cs:qword_1406C2ED8 ; +0x4c, 0x1401382ac test rax, rax ; +0x53, 0x1401382b3 jnz short loc_1401382E7 ; +0x56, 0x1401382b6 mov ecx, 668h; Size ; +0x58, 0x1401382b8 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x5d, 0x1401382bd mov [rsp+58h+arg_10], rax ; +0x62, 0x1401382c2 mov rcx, rax ; +0x67, 0x1401382c7 call sub_14017AB00 ; +0x6a, 0x1401382ca nop ; +0x6f, 0x1401382cf mov cs:qword_1406C2ED8, rax ; +0x70, 0x1401382d0 mov rdx, [rax] ; +0x77, 0x1401382d7 mov rcx, rax ; +0x7a, 0x1401382da call qword ptr [rdx+48h] ; +0x7d, 0x1401382dd mov rax, cs:qword_1406C2ED8 ; +0x80, 0x1401382e0 mov rax, [rax+208h] ; +0x87, 0x1401382e7 movss xmm0, cs:dword_1406230E0 ; +0x8e, 0x1401382ee divss xmm0, dword ptr [rax+1A8h] ; +0x96, 0x1401382f6 movss xmm1, cs:dword_140623864 ; +0x9e, 0x1401382fe subss xmm1, xmm0 ; +0xa6, 0x140138306 mulss xmm1, xmm8 ; +0xaa, 0x14013830a xorps xmm2, xmm2 ; +0xaf, 0x14013830f lea rcx, [rsp+58h+arg_18] ; +0xb2, 0x140138312 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xb7, 0x140138317 mov r8, rax ; +0xbd, 0x14013831d lea rdx, [rsp+58h+arg_0] ; +0xc0, 0x140138320 mov rcx, rsi ; +0xc5, 0x140138325 call cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0xc8, 0x140138328 mov rcx, [rbx+550h] ; +0xce, 0x14013832e mov rax, [rcx] ; +0xd5, 0x140138335 lea rdx, [rsp+58h+arg_0] ; +0xd8, 0x140138338 call qword ptr [rax+0B8h] ; +0xdd, 0x14013833d cmp qword ptr [rbx+308h], 0 ; +0xe3, 0x140138343 jz short loc_1401383A7 ; +0xeb, 0x14013834b cmp byte ptr [rbx+558h], 0 ; +0xed, 0x14013834d jnz short loc_14013835E ; +0xf4, 0x140138354 movss xmm6, cs:flt_140622C24 ; +0xf6, 0x140138356 lea rcx, [rbx+334h] ; +0xfe, 0x14013835e movaps xmm2, xmm6 ; +0x105, 0x140138365 lea rdx, [rsp+58h+arg_0] ; +0x108, 0x140138368 call cs:??DCCPoint@cocos2d@@QEBA?AV01@M@Z; cocos2d::CCPoint::operator*(float) ; +0x10d, 0x14013836d mov rax, [rbx] ; +0x113, 0x140138373 mov rcx, rbx ; +0x116, 0x140138376 call qword ptr [rax+0C8h] ; +0x119, 0x140138379 lea r8, [rsp+58h+arg_0] ; +0x11f, 0x14013837f lea rdx, [rsp+58h+arg_10] ; +0x124, 0x140138384 mov rcx, rax ; +0x129, 0x140138389 call cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x12c, 0x14013838c mov rcx, [rbx+308h] ; +0x132, 0x140138392 mov rax, [rcx] ; +0x139, 0x140138399 lea rdx, [rsp+58h+arg_10] ; +0x13c, 0x14013839c call qword ptr [rax+0B8h] ; +0x141, 0x1401383a1 movaps xmm6, [rsp+58h+var_28] ; +0x147, 0x1401383a7 movaps xmm8, [rsp+58h+var_38] ; +0x14c, 0x1401383ac add rsp, 40h ; +0x152, 0x1401383b2 pop rdi ; +0x156, 0x1401383b6 pop rsi ; +0x157, 0x1401383b7 pop rbx ; +0x158, 0x1401383b8 retn ; +0x159, 0x1401383b9