//
// GameObject::updateStartPos from 0x35427c to 0x354336 (186 bytes)
//
// 10 xrefs:
// > GameObject::updateStartValues @ 0x354344
// > LevelEditorLayer::rotationForSlopeNearObject @ 0x367040
// > LevelEditorLayer::updateVisibility @ 0x3695f0
// > EditorUI::getGroupCenter @ 0x38179a
// > EditorUI::getGroupCenter @ 0x3817b6
// > EditorUI::flipObjectsX @ 0x385ad6
// > EditorUI::flipObjectsY @ 0x385bfe
// > EditorUI::findSnapObject @ 0x385e80
// > EditorUI::resetObjectEditorValues @ 0x39e26c
// > GJTransformControl::loadValues @ 0x3a0474
//
// 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; // r0
int v3; // r2
float x; // s7
double v5; // d4
double m_positionY; // d7
float v7; // s12
float y; // s13
double v9; // d5
float v10; // s14
cocos2d::CCPoint v11; // [sp+4h] [bp-Ch] BYREF
v2 = a1->getPosition(a1);
cocos2d::CCPoint::CCPoint(&v11, v2);
x = a1->m_startPosition.x;
v5 = a1->m_positionX - x;
m_positionY = a1->m_positionY;
v7 = v11.x - v5;
y = a1->m_startPosition.y;
v11.x = v7;
v9 = m_positionY - y;
v10 = v11.y - v9;
v11.y = v10;
if ( x != v7 || y != v10 )
{
a1->m_isObjectRectDirty = 1;
a1->m_isOrientedBoxDirty = 1;
a1->m_isDirty = 1;
a1->m_positionX = v7 + v5;
a1->m_positionY = v10 + v9;
cocos2d::CCPoint::operator=((PlayerObject *)&a1->m_startPosition, COERCE_FLOAT(&v11), v3, 1);
}
}