//
// GameObject::setStartPos from 0x140190550 to 0x1401905e4 (148 bytes)
//
// 48 xrefs:
// > TeleportPortalObject::setStartPos @ 0x1404b232e
// > TeleportPortalObject::setStartPos @ 0x1404b238e
// > ??> @ 0x140556860
// > ??> @ 0x140556fd0
// > ??> @ 0x14055e008
// > ??> @ 0x14055e688
// > ??> @ 0x1405c8720
// > ??> @ 0x14060d8b0
// > ??> @ 0x14060e200
// > ??> @ 0x14060e920
// > ??> @ 0x14060f158
// > ??> @ 0x14060f800
// > ??> @ 0x14060fed0
// > ??> @ 0x140610588
// > ??> @ 0x140610cd0
// > ??> @ 0x140611c68
// > ??> @ 0x140612450
// > ??> @ 0x140612af8
// > ??> @ 0x1406131a0
// > ??> @ 0x140613910
// > ??> @ 0x140613fb8
// > ??> @ 0x1406147a0
// > ??> @ 0x140614fd8
// > ??> @ 0x140615720
// > ??> @ 0x140615dc8
// > ??> @ 0x140616510
// > ??> @ 0x140616cd0
// > ??> @ 0x140617378
// > ??> @ 0x140617a20
// > ??> @ 0x140618190
// > ??> @ 0x140618838
// > ??> @ 0x140618f80
// > ??> @ 0x140619a20
// > ??> @ 0x14061a0c8
// > ??> @ 0x14061a770
// > ??> @ 0x14061ae90
// > ??> @ 0x14061b538
// > ??> @ 0x14061bc80
// > ??> @ 0x14061c418
// > ??> @ 0x14061cac0
// > ??> @ 0x14061d168
// > ??> @ 0x14061d810
// > ??> @ 0x14061deb8
// > ??> @ 0x14061e560
// > ??> @ 0x14061ec08
// > ??> @ 0x14061f418
// > ??> @ 0x14061fbb0
// > ??> @ 0x1406cb8f8
//
// 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
//
void GameObject::setStartPos(GameObject *a1, cocos2d::CCPoint a2)
{
if ( !cocos2d::CCPoint::equals(&a1->m_startPosition) )
{
*(_WORD *)&a1->m_isObjectRectDirty = 257;
a1->m_isDirty = 1;
}
((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator=)(&a1->m_startPosition, a2);
a1->m_positionX = **(float **)&a2;
a1->m_positionY = *(float *)(*(_QWORD *)&a2 + 4LL);
((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator=)(&a1->m_lastPosition, a2);
a1->setPosition_0(a1, (const cocos2d::CCPoint *)a2);
}