//
// SetupCameraOffsetTrigger::updateMoveCommandPosX from 0x96940c to 0x969504 (248 bytes)
//
// 3 xrefs:
// > SetupCameraOffsetTrigger::sliderXChanged @ 0x96953c
// > SetupCameraOffsetTrigger::textChanged @ 0x9697e0
// > ??> @ 0x36f48
//
// 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; // x1
EffectGameObject *v3; // x19
float v4; // s0
float v5; // s1
unsigned int v6; // w19
unsigned int v7; // w1
const cocos2d::CCPoint *v8; // x21
float v9; // s0
float v10; // s1
cocos2d::CCPoint v11; // [xsp+58h] [xbp+58h] BYREF
cocos2d::CCPoint v12; // [xsp+60h] [xbp+60h] BYREF
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
cocos2d::CCPoint::CCPoint(&v11, &m_gameObject->m_moveOffset);
v3 = a1->m_gameObject;
cocos2d::CCPoint::CCPoint(&v12, (float)a1->m_offsetX, v11.y);
cocos2d::CCPoint::operator=(&v3->m_moveOffset, v4, v5);
}
else
{
v6 = 0;
while ( v6 < (unsigned int)cocos2d::CCArray::count(a1->m_gameObjects) )
{
v7 = v6++;
v8 = (const cocos2d::CCPoint *)(cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v7) + 1472);
cocos2d::CCPoint::CCPoint(&v11, v8);
cocos2d::CCPoint::CCPoint(&v12, (float)a1->m_offsetX, v11.y);
cocos2d::CCPoint::operator=(v8, v9, v10);
}
}
}