//
// SetupCameraOffsetTrigger::updateValueXLabel from 0x501c6c to 0x501d02 (150 bytes)
//
// 2 xrefs:
// > SetupCameraOffsetTrigger::init @ 0x502a06
// > SetupCameraOffsetTrigger::sliderXChanged @ 0x502df0
//
// 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::updateValueXLabel(SetupCameraOffsetTrigger *a1)
{
int m_offsetX; // r2
float v3; // r0
cocos2d::CCString *v4; // r0
char *CString; // r1
CCTextInputNode *m_offsetXInput; // r7
char *v7; // r2
char v8[4]; // [sp+8h] [bp-Ch] BYREF
a1->m_disableTextDelegate = 1;
m_offsetX = a1->m_offsetX;
if ( m_offsetX == -99999 )
{
CString = (char *)&unk_939830;
}
else
{
v3 = floorf((float)m_offsetX / 3.0);
v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)(int)v3);
CString = (char *)cocos2d::CCString::getCString(v4);
}
m_offsetXInput = a1->m_offsetXInput;
sub_776584((int)v8, CString);
CCTextInputNode::setString((int)m_offsetXInput, v8, v7);
sub_774008(v8);
a1->m_disableTextDelegate = 0;
}