//
// GameObject::updateStartPos from 0x100255d00 to 0x100255da0 (160 bytes)
//
// 10 xrefs:
// > GameObject::updateStartValues @ 0x100256104
// > LevelEditorLayer::rotationForSlopeNearObject @ 0x10035a764
// > LevelEditorLayer::updateVisibility @ 0x10035e95c
// > EditorUI::getGroupCenter @ 0x1003ecfec
// > EditorUI::getGroupCenter @ 0x1003ed070
// > EditorUI::resetObjectEditorValues @ 0x1003f014c
// > GJTransformControl::loadValues @ 0x1003f060c
// > EditorUI::flipObjectsY @ 0x1003f1f88
// > EditorUI::flipObjectsX @ 0x1003f2110
// > EditorUI::findSnapObject_1 @ 0x1003f83e4
//
// 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)
{
__int64 *v2; // x0
cocos2d::CCPoint m_startPosition; // d2
float64x2_t v4; // q0
float32x2_t v5; // d1
int8x8_t v6; // d2
float32x2_t v7; // [xsp+8h] [xbp-18h] BYREF
v2 = (__int64 *)((__int64 (__fastcall *)(GameObject *))a1->getPosition)(a1);
sub_1000229B8((__int64 *)&v7, v2);
m_startPosition = a1->m_startPosition;
v4 = vsubq_f64(*(float64x2_t *)&a1->m_positionX, vcvtq_f64_f32((float32x2_t)m_startPosition));
v5 = vcvt_f32_f64(vsubq_f64(vcvtq_f64_f32(v7), v4));
v7 = v5;
v6 = vmvn_s8((int8x8_t)vceq_f32((float32x2_t)m_startPosition, v5));
if ( ((v6.i32[0] | v6.i32[1]) & 1) != 0 )
{
*(_WORD *)&a1->m_isObjectRectDirty = 257;
a1->m_isDirty = 1;
*(float64x2_t *)&a1->m_positionX = vaddq_f64(v4, vcvtq_f64_f32(v5));
sub_1000229D0(&a1->m_startPosition, (double *)&v7);
}
}