//
// GameObject::setStartPos from 0x640bac to 0x640c3c (144 bytes)
//
// 49 xrefs:
// > TeleportPortalObject::setStartPosOverride @ 0x760ebc
// > TeleportPortalObject::setStartPos @ 0x761040
// > ??> @ 0xc8d78
// > ??> @ 0x1152c28
// > ??> @ 0x11539f8
// > ??> @ 0x11541c8
// > ??> @ 0x11549c8
// > ??> @ 0x1162378
// > ??> @ 0x1162b78
// > ??> @ 0x1163378
// > ??> @ 0x1163b78
// > ??> @ 0x1164378
// > ??> @ 0x1164b78
// > ??> @ 0x1165378
// > ??> @ 0x1165b78
// > ??> @ 0x1166348
// > ??> @ 0x1166b48
// > ??> @ 0x1167348
// > ??> @ 0x1167b48
// > ??> @ 0x1168348
// > ??> @ 0x1168b88
// > ??> @ 0x1169388
// > ??> @ 0x1169b88
// > ??> @ 0x116a388
// > ??> @ 0x116b398
// > ??> @ 0x116bb98
// > ??> @ 0x116c398
// > ??> @ 0x116cb98
// > ??> @ 0x116d398
// > ??> @ 0x116db98
// > ??> @ 0x116e398
// > ??> @ 0x116eb98
// > ??> @ 0x116f398
// > ??> @ 0x116fb98
// > ??> @ 0x1170398
// > ??> @ 0x1170b98
// > ??> @ 0x1171398
// > ??> @ 0x1171b98
// > ??> @ 0x1172398
// > ??> @ 0x1172b98
// > ??> @ 0x1173398
// > ??> @ 0x1173b98
// > ??> @ 0x1174398
// > ??> @ 0x1174b98
// > ??> @ 0x1175398
// > ??> @ 0x1175b98
// > ??> @ 0x1176398
// > ??> @ 0x1176b98
// > ??> @ 0x11773b8
//
// 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)
{
const cocos2d::CCPoint *v2; // x1
cocos2d::CCPoint *p_m_startPosition; // x21
const cocos2d::CCPoint *v5; // x20
float v6; // s0
float v7; // s1
double x; // d1
double y; // d0
p_m_startPosition = &a1->m_startPosition;
v5 = v2;
if ( !(unsigned __int8)cocos2d::CCPoint::equals(&a1->m_startPosition, v2) )
{
a1->m_isObjectRectDirty = 1;
a1->m_isOrientedBoxDirty = 1;
a1->m_isDirty = 1;
}
cocos2d::CCPoint::operator=(p_m_startPosition, v6, v7);
x = v5->x;
y = v5->y;
a1->m_positionX = x;
a1->m_positionY = y;
cocos2d::CCPoint::operator=(&a1->m_lastPosition, *(float *)&y, *(float *)&x);
a1->setPosition(a1, v5);
}