//
// TeleportPortalObject::setPosition from 0x140653890 to 0x14065392a (154 bytes)
//
// 4 xrefs:
// > ??> @ 0x140822fc8
// > ??> @ 0x1408e8f2c
// > ??> @ 0x1408e8f3c
// > ??> @ 0x1409315b0
//
// 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:35:44 +0000
//
void __fastcall TeleportPortalObject::setPosition(__int64 a1, const struct cocos2d::CCPoint *a2)
{
__int64 v3; // rcx
float v4; // xmm6_4
float TeleportXOff; // xmm0_4
float *v6; // rax
float v7; // [rsp+40h] [rbp+8h] BYREF
char v8; // [rsp+50h] [rbp+18h] BYREF
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v7, a2);
if ( *(_BYTE *)(a1 + 1872) )
v7 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 200LL))(a1);
GameObject::setPosition(a1, &v7);
v3 = *(_QWORD *)(a1 + 1864);
if ( v3 )
{
v4 = *(float *)((*(__int64 (**)(void))(*(_QWORD *)v3 + 200LL))() + 4);
TeleportXOff = TeleportPortalObject::getTeleportXOff(a1, 0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v8, TeleportXOff + v7, v4);
GameObject::setPosition(*(_QWORD *)(a1 + 1864), v6);
}
}