//
// TeleportPortalObject::setPosition from 0x4e8a3c to 0x4e8ac4 (136 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:51:07 +0000
//
int __fastcall TeleportPortalObject::setPosition(TeleportPortalObject *this, const cocos2d::CCPoint *a2)
{
int result; // r0
float v4; // s16
int TeleportXOff; // r0
cocos2d::CCArray **v6; // r4
float v7; // s15
int v8; // r0
_DWORD v9[2]; // [sp+4h] [bp-14h] BYREF
_BYTE v10[8]; // [sp+Ch] [bp-Ch] BYREF
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, a2);
if ( *((_BYTE *)this + 1656) )
v9[0] = *(_DWORD *)(*(int (__fastcall **)(TeleportPortalObject *))(*(_DWORD *)this + 96))(this);
result = GameObject::setPosition((cocos2d::CCArray **)this, (const cocos2d::CCPoint *)v9);
if ( *((_DWORD *)this + 413) )
{
v4 = *(float *)v9;
TeleportXOff = TeleportPortalObject::getTeleportXOff(this, nullptr);
v6 = *((cocos2d::CCArray ***)this + 413);
v7 = *(float *)&TeleportXOff;
v8 = (*((int (__fastcall **)(cocos2d::CCArray **))*v6 + 24))(v6);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, v4 + v7, *(float *)(v8 + 4));
return TeleportPortalObject::setPositionOverride(v6, (const cocos2d::CCPoint *)v10);
}
return result;
}