//
// GJFollowCommandLayer::updateYModLabel from 0x9204a0 to 0x9205d4 (308 bytes)
//
// 3 xrefs:
// > GJFollowCommandLayer::init @ 0x92168c
// > GJFollowCommandLayer::sliderYModChanged @ 0x921fa4
// > ??> @ 0x64950
//
// 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::updateYModLabel(GJFollowCommandLayer *a1)
{
float m_yMod; // s0
const unsigned __int8 *v3; // x0
char *CString; // x1
CCTextInputNode *m_yModInput; // 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_yMod = a1->m_yMod;
v3 = (const unsigned __int8 *)_stack_chk_guard;
a1->m_disableTextDelegate = (unsigned __int8)&dword_0 + 1;
v10[1] = v3;
if ( m_yMod == -99999.0 )
{
CString = &byte_F288A0;
}
else
{
v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%0.2f",
(const char *)&dword_0 + 1,
m_yMod);
CString = (char *)cocos2d::CCString::getCString(v7);
}
m_yModInput = a1->m_yModInput;
sub_D153B8((int)v10, CString);
CCTextInputNode::setString(m_yModInput, 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;
}