//
// SetupCameraOffsetTrigger::updateMoveCommandPosX from 0x502d2c to 0x502dd4 (168 bytes)
//
// 2 xrefs:
// > SetupCameraOffsetTrigger::sliderXChanged @ 0x502dfa
// > SetupCameraOffsetTrigger::textChanged @ 0x502fa2
//
// 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 SetupCameraOffsetTrigger::updateMoveCommandPosX(SetupCameraOffsetTrigger *a1)
{
EffectGameObject *m_gameObject; // r1
unsigned int v3; // r4
int v4; // r0
PlayerObject *v5; // r8
int v6; // r2
bool v7; // r3
EffectGameObject *v8; // r7
int v9; // r2
bool v10; // r3
cocos2d::CCPoint v11; // [sp+4h] [bp-8h] BYREF
cocos2d::CCPoint v12; // [sp+Ch] [bp+0h] BYREF
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
cocos2d::CCPoint::CCPoint(&v11, &m_gameObject->m_moveOffset);
v8 = a1->m_gameObject;
cocos2d::CCPoint::CCPoint(&v12, (float)a1->m_offsetX, v11.y);
cocos2d::CCPoint::operator=((PlayerObject *)&v8->m_moveOffset, COERCE_FLOAT(&v12), v9, v10);
}
else
{
v3 = 0;
while ( v3 < cocos2d::CCArray::count(a1->m_gameObjects) )
{
v4 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v3++);
v5 = (PlayerObject *)(v4 + 1300);
cocos2d::CCPoint::CCPoint(&v11, (const cocos2d::CCPoint *)(v4 + 1300));
cocos2d::CCPoint::CCPoint(&v12, (float)a1->m_offsetX, v11.y);
cocos2d::CCPoint::operator=(v5, COERCE_FLOAT(&v12), v6, v7);
}
}
}