//
// GJPFollowCommandLayer::updateXModLabel from 0x922a0c to 0x922b40 (308 bytes)
//
// 3 xrefs:
// > GJPFollowCommandLayer::init @ 0x924310
// > GJPFollowCommandLayer::sliderXModChanged @ 0x924b10
// > ??> @ 0xb5560
//
// 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 GJPFollowCommandLayer::updateXModLabel(GJPFollowCommandLayer *a1)
{
float m_speed; // s0
const unsigned __int8 *v3; // x0
char *CString; // x1
CCTextInputNode *m_speedInput; // x22
unsigned __int8 *v6; // x0
cocos2d::CCString *v7; // x0
unsigned int *v8; // x2
int v9; // w1
const unsigned __int8 *v10[2]; // [xsp+40h] [xbp+40h] BYREF
m_speed = a1->m_speed;
v3 = (const unsigned __int8 *)_stack_chk_guard;
a1->m_disableTextDelegate = (unsigned __int8)&dword_0 + 1;
v10[1] = v3;
if ( m_speed == -99999.0 )
{
CString = &byte_F288A0;
}
else
{
v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%0.3f",
(const char *)&dword_0 + 1,
m_speed);
CString = (char *)cocos2d::CCString::getCString(v7);
}
m_speedInput = a1->m_speedInput;
sub_D153B8((int)v10, CString);
CCTextInputNode::setString(m_speedInput, v10);
v6 = (unsigned __int8 *)(v10[0] - 24);
if ( (__int64 *)v10[0] - 3 != &qword_124B6B0 )
{
if ( &pthread_create )
{
v8 = (unsigned int *)(v10[0] - 8);
do
v9 = __ldaxr(v8);
while ( __stlxr(v9 - 1, v8) );
}
else
{
v9 = *((_DWORD *)v10[0] - 2);
*((_DWORD *)v10[0] - 2) = v9 - 1;
}
if ( v9 <= 0 )
operator delete(v6);
}
a1->m_disableTextDelegate = 0;
}