//
// GameObject::setPosition from 0x76c828 to 0x76c964 (316 bytes)
//
// 50 xrefs:
// > PlayerObject::setPosition @ 0x75052c
// > TeleportPortalObject::setPositionOverride @ 0x879ba4
// > TeleportPortalObject::setPosition @ 0x879de8
// > EndPortalObject::setPosition @ 0x8b48dc
// > ??> @ 0x66fb8
// > ??> @ 0x1434148
// > ??> @ 0x1434928
// > ??> @ 0x1435138
// > ??> @ 0x1443498
// > ??> @ 0x1443ca8
// > ??> @ 0x14444b8
// > ??> @ 0x1444cc8
// > ??> @ 0x14454d8
// > ??> @ 0x1445ce8
// > ??> @ 0x14464f8
// > ??> @ 0x1446d08
// > ??> @ 0x14474e8
// > ??> @ 0x1447cf8
// > ??> @ 0x1448508
// > ??> @ 0x1448d18
// > ??> @ 0x1449528
// > ??> @ 0x1449d78
// > ??> @ 0x144a588
// > ??> @ 0x144ad98
// > ??> @ 0x144b5a8
// > ??> @ 0x144c5d8
// > ??> @ 0x144cde8
// > ??> @ 0x144d5f8
// > ??> @ 0x144de08
// > ??> @ 0x144e618
// > ??> @ 0x144ee28
// > ??> @ 0x144f638
// > ??> @ 0x144fe48
// > ??> @ 0x1450658
// > ??> @ 0x1450e68
// > ??> @ 0x1451678
// > ??> @ 0x1451e88
// > ??> @ 0x1452698
// > ??> @ 0x1452ea8
// > ??> @ 0x14536b8
// > ??> @ 0x1453ec8
// > ??> @ 0x14546d8
// > ??> @ 0x1454ee8
// > ??> @ 0x14556f8
// > ??> @ 0x1455f08
// > ??> @ 0x1456718
// > ??> @ 0x1456f28
// > ??> @ 0x1457738
// > ??> @ 0x1457f48
// > ??> @ 0x1458758
//
// This function is hookable on this platform (idp: arm, 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 12:53:11 +0000
//
__int64 __fastcall GameObject::setPosition(cocos2d::CCArray **this, const cocos2d::CCPoint *a2)
{
__int64 v4; // x0
__int64 v5; // x23
void (__fastcall *v6)(__int64, _BYTE *); // x22
__int64 v7; // x0
__int64 v8; // x0
__int64 v10; // [xsp+50h] [xbp+50h] BYREF
__int64 v11; // [xsp+58h] [xbp+58h] BYREF
_BYTE v12[8]; // [xsp+60h] [xbp+60h] BYREF
CCSpritePlus::setPosition(this, a2);
v4 = (__int64)*(this + 97);
if ( v4 )
{
if ( *((float *)this + 203) == 0.0 && *((float *)this + 204) == 0.0 )
{
(*(void (__fastcall **)(__int64, const cocos2d::CCPoint *))(*(_QWORD *)v4 + 184LL))(v4, a2);
}
else
{
cocos2d::CCNode::convertToWorldSpace(
&v10,
(cocos2d::CCNode *)this,
(const cocos2d::CCPoint *)((char *)this + 812));
cocos2d::CCNode::convertToWorldSpace(&v11, (cocos2d::CCNode *)this, (const cocos2d::CCPoint *)&unk_155C668);
v5 = (__int64)*(this + 97);
v6 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v5 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v12,
(float)(*(float *)a2 + *(float *)&v10) - *(float *)&v11,
(float)(*((float *)a2 + 1) + *((float *)&v10 + 1)) - *((float *)&v11 + 1));
v6(v5, v12);
}
}
v7 = (__int64)*(this + 94);
if ( v7 )
(*(void (__fastcall **)(__int64, const cocos2d::CCPoint *))(*(_QWORD *)v7 + 184LL))(v7, a2);
v8 = (__int64)*(this + 111);
if ( v8 && !*((_BYTE *)this + 866) )
(*(void (__fastcall **)(__int64, const cocos2d::CCPoint *))(*(_QWORD *)v8 + 184LL))(v8, a2);
return _stack_chk_guard;
}