//
// GameObject::updateStartPos from 0x1401905f0 to 0x1401906d0 (224 bytes)
//
// 12 xrefs:
// > EditorUI::updateTransformControl @ 0x140115572
// > EditorUI::updateTransformControl @ 0x140115791
// > EditorUI::flipObjectsX @ 0x140120cf1
// > EditorUI::flipObjectsY @ 0x140120ed1
// > EditorUI::getGroupCenter @ 0x140122d7f
// > EditorUI::getGroupCenter @ 0x140122e41
// > EditorUI::findSnapObject_1 @ 0x1401233f2
// > GameObject::updateStartValues @ 0x140190933
// > LevelEditorLayer::rotationForSlopeNearObject @ 0x1402d4ede
// > LevelEditorLayer::updateVisibility @ 0x1402d914a
// > RotateGameplayGameObject::updateStartValues @ 0x1404c4823
// > ??> @ 0x1406cb904
//
// 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::updateStartPos(GameObject *a1)
{
float x; // xmm2_4
float y; // xmm6_4
double v4; // xmm4_8
double v5; // xmm5_8
float v6; // xmm7_4
float v7; // xmm3_4
cocos2d::CCPoint v8; // [rsp+50h] [rbp+8h] BYREF
a1->getPosition_0(a1);
cocos2d::CCPoint::CCPoint(&v8);
x = a1->m_startPosition.x;
y = a1->m_startPosition.y;
v4 = a1->m_positionX - x;
v5 = a1->m_positionY - y;
v6 = v8.x - v4;
v8.x = v6;
v7 = v8.y - v5;
v8.y = v7;
if ( x != v6 || y != v7 )
{
*(_WORD *)&a1->m_isObjectRectDirty = 257;
a1->m_isDirty = 1;
a1->m_positionX = v6 + v4;
a1->m_positionY = v7 + v5;
cocos2d::CCPoint::operator=(&a1->m_startPosition, &v8);
}
}