//
// SetupCameraOffsetTrigger::updateMoveCommandPosX from 0x100190a24 to 0x100190aec (200 bytes)
//
// 2 xrefs:
// > SetupCameraOffsetTrigger::sliderXChanged @ 0x1001901bc
// > SetupCameraOffsetTrigger::textChanged @ 0x100190d5c
//
// 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 SetupCameraOffsetTrigger::updateMoveCommandPosX(SetupCameraOffsetTrigger *a1)
{
EffectGameObject *m_gameObject; // x8
EffectGameObject *v3; // x20
__n128 v4; // q0
__n128 v5; // q1
__int64 v6; // x20
__int64 v7; // x21
__n128 v8; // q0
__n128 v9; // q1
double v10; // [xsp+0h] [xbp-30h] BYREF
__int64 v11; // [xsp+8h] [xbp-28h] BYREF
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
sub_1000229B8(&v11, (__int64 *)&m_gameObject->m_moveOffset);
v3 = a1->m_gameObject;
v4.n128_f32[0] = (float)a1->m_offsetX;
v5.n128_u32[0] = HIDWORD(v11);
sub_100022980(v4, v5, &v10);
sub_1000229D0(&v3->m_moveOffset, &v10);
}
else if ( (unsigned int)sub_10024A36C(a1->m_gameObjects) )
{
v6 = 0;
do
{
v7 = sub_10024A388(a1->m_gameObjects, v6);
sub_1000229B8(&v11, (__int64 *)(v7 + 1488));
v8.n128_f32[0] = (float)a1->m_offsetX;
v9.n128_u32[0] = HIDWORD(v11);
sub_100022980(v8, v9, &v10);
sub_1000229D0((_QWORD *)(v7 + 1488), &v10);
v6 = (unsigned int)(v6 + 1);
}
while ( (unsigned int)v6 < (unsigned int)sub_10024A36C(a1->m_gameObjects) );
}
}