//
// GameObject::updateStartPos from 0x642dac to 0x642ea4 (248 bytes)
//
// 11 xrefs:
// > GameObject::updateStartValues @ 0x642eb8
// > LevelEditorLayer::rotationForSlopeNearObject @ 0x65ec40
// > LevelEditorLayer::updateVisibility @ 0x663370
// > EditorUI::getGroupCenter @ 0x68f9f8
// > EditorUI::getGroupCenter @ 0x68fb60
// > EditorUI::flipObjectsX @ 0x693ba0
// > EditorUI::flipObjectsY @ 0x693d5c
// > EditorUI::findSnapObject @ 0x694128
// > EditorUI::resetObjectEditorValues @ 0x6b7570
// > GJTransformControl::loadValues @ 0x6ba6dc
// > ??> @ 0x654f0
//
// 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)
{
const cocos2d::CCPoint *v2; // x0
float x; // s5
float y; // s6
double v5; // d4
double v6; // d2
float v7; // s0
float v8; // s1
double v9; // d1
double v10; // d0
cocos2d::CCPoint v11; // [xsp+30h] [xbp+30h] BYREF
v2 = a1->getPosition(a1);
cocos2d::CCPoint::CCPoint(&v11, v2);
x = a1->m_startPosition.x;
y = a1->m_startPosition.y;
v5 = a1->m_positionX - x;
v6 = a1->m_positionY - y;
v7 = v11.x - v5;
v8 = v11.y - v6;
v11.x = v7;
v11.y = v8;
if ( x != v7 || y != v8 )
{
v9 = v8;
a1->m_isObjectRectDirty = 1;
a1->m_isOrientedBoxDirty = 1;
a1->m_isDirty = 1;
v10 = v5 + v7;
a1->m_positionY = v6 + v9;
a1->m_positionX = v10;
cocos2d::CCPoint::operator=(&a1->m_startPosition, *(float *)&v10, *(float *)&v9);
}
}