//
// GameObject::updateStartPos from 0x1005a9860 to 0x1005a98eb (139 bytes)
//
// 9 xrefs:
// > EditorUI::getGroupCenter @ 0x10003bb27
// > EditorUI::getGroupCenter @ 0x10003bb9e
// > EditorUI::resetObjectEditorValues @ 0x100040721
// > GJTransformControl::loadValues @ 0x100040cc1
// > EditorUI::flipObjectsY @ 0x10004347b
// > EditorUI::flipObjectsX @ 0x10004364b
// > EditorUI::findSnapObject_1 @ 0x10004e825
// > LevelEditorLayer::rotationForSlopeNearObject @ 0x1000e0b08
// > LevelEditorLayer::updateVisibility @ 0x1000eae63
//
// 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 __fastcall GameObject::updateStartPos(GameObject *a1)
{
__m64 v1; // rax
double *v2; // rax
__m128 m_startPosition; // xmm2
__m128d v4; // xmm0
__m128 v5; // xmm1
__m128 v6; // xmm2
__m64 v7[2]; // [rsp+0h] [rbp-10h] BYREF
v7[0] = v1;
v2 = (double *)((__int64 (__fastcall *)(GameObject *))a1->getPosition)(a1);
sub_10028CC60(v7, v2);
m_startPosition = (__m128)(unsigned __int64)a1->m_startPosition;
v4 = _mm_sub_pd(*(__m128d *)&a1->m_positionX, _mm_cvtps_pd(m_startPosition));
v5 = _mm_cvtpd_ps(_mm_sub_pd(_mm_cvtps_pd(v7[0]), v4));
v7[0] = *(__m64 *)v5.f32;
v6 = _mm_cmpneq_ps(m_startPosition, v5);
if ( _mm_movemask_pd((__m128d)_mm_unpacklo_ps(v6, v6)) )
{
*(_WORD *)&a1->m_isObjectRectDirty = 257;
a1->m_isDirty = 1;
*(__m128d *)&a1->m_positionX = _mm_add_pd(v4, _mm_cvtps_pd(v5));
sub_10028CC90(&a1->m_startPosition, (double *)v7);
}
}