//
// GJFollowCommandLayer::updateXModLabel from 0x920368 to 0x92049c (308 bytes)
//
// 3 xrefs:
// > GJFollowCommandLayer::init @ 0x921684
// > GJFollowCommandLayer::sliderXModChanged @ 0x921efc
// > ??> @ 0x75ea0
//
// 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 GJFollowCommandLayer::updateXModLabel(GJFollowCommandLayer *a1)
{
float m_xMod; // s0
const unsigned __int8 *v3; // x0
char *CString; // x1
CCTextInputNode *m_xModInput; // 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_xMod = a1->m_xMod;
v3 = (const unsigned __int8 *)_stack_chk_guard;
a1->m_disableTextDelegate = (unsigned __int8)&dword_0 + 1;
v10[1] = v3;
if ( m_xMod == -99999.0 )
{
CString = &byte_F288A0;
}
else
{
v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%0.2f",
(const char *)&dword_0 + 1,
m_xMod);
CString = (char *)cocos2d::CCString::getCString(v7);
}
m_xModInput = a1->m_xModInput;
sub_D153B8((int)v10, CString);
CCTextInputNode::setString(m_xModInput, 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;
}