//
// GJPFollowCommandLayer::updateYModLabel from 0x922b44 to 0x922c78 (308 bytes)
//
// 3 xrefs:
// > GJPFollowCommandLayer::init @ 0x924318
// > GJPFollowCommandLayer::sliderYModChanged @ 0x924bac
// > ??> @ 0x5bf50
//
// 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::updateYModLabel(GJPFollowCommandLayer *a1)
{
float m_delay; // s0
const unsigned __int8 *v3; // x0
char *CString; // x1
CCTextInputNode *m_delayInput; // 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_delay = a1->m_delay;
v3 = (const unsigned __int8 *)_stack_chk_guard;
a1->m_disableTextDelegate = (unsigned __int8)&dword_0 + 1;
v10[1] = v3;
if ( m_delay == -99999.0 )
{
CString = &byte_F288A0;
}
else
{
v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%0.2f",
(const char *)&dword_0 + 1,
m_delay);
CString = (char *)cocos2d::CCString::getCString(v7);
}
m_delayInput = a1->m_delayInput;
sub_D153B8((int)v10, CString);
CCTextInputNode::setString(m_delayInput, 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;
}