//
// SetupShakePopup::updateShakeLabel from 0x4f9560 to 0x4f9608 (168 bytes)
//
// 2 xrefs:
// > SetupShakePopup::init @ 0x4f9ca2
// > SetupShakePopup::sliderChanged @ 0x4f9fa2
//
// 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 SetupShakePopup::updateShakeLabel(SetupShakePopup *a1, bool a2)
{
float m_strength; // s15
cocos2d::CCString *v4; // r0
char *CString; // r1
CCTextInputNode *m_strengthInput; // r7
char *v7; // r2
char v8[4]; // [sp+8h] [bp-Ch] BYREF
m_strength = a1->m_strength;
a1->m_disableTextDelegate = 1;
if ( m_strength == -99999.0 )
{
CString = "Mixed";
}
else
{
if ( a2 || (float)(m_strength - (float)(int)m_strength) != 0.0 )
v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%.02f",
(const char *)a2,
m_strength);
else
v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)(int)m_strength);
CString = (char *)cocos2d::CCString::getCString(v4);
}
m_strengthInput = a1->m_strengthInput;
sub_776584((int)v8, CString);
CCTextInputNode::setString((int)m_strengthInput, v8, v7);
sub_774008(v8);
a1->m_disableTextDelegate = 0;
}