//
// NumberInputLayer::updateNumberState from 0x82386c to 0x823928 (188 bytes)
//
// 4 xrefs:
// > NumberInputLayer::init @ 0x823e70
// > NumberInputLayer::inputNumber @ 0x824060
// > NumberInputLayer::deleteLast @ 0x8240fc
// > ??> @ 0x534f0
//
// 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 NumberInputLayer::updateNumberState(NumberInputLayer *a1)
{
int m_minimum; // w1
__int64 v3; // x0
_BOOL4 v4; // w20
ButtonSprite *v5; // x0
__int64 *v6; // x1
m_minimum = a1->m_minimum;
v3 = *((_QWORD *)a1->m_inputString.m_data.m_data - 3);
if ( (int)v3 >= m_minimum && (int)v3 <= a1->m_maximum )
{
v4 = 1;
v5 = (ButtonSprite *)a1->m_okButton->getNormalImage(a1->m_okButton);
v6 = (__int64 *)&off_EEA200;
}
else
{
v4 = 0;
v5 = (ButtonSprite *)a1->m_okButton->getNormalImage(a1->m_okButton);
v6 = &qword_EEA208;
}
ButtonSprite::setColor(v5, (cocos2d::ccColor3B)*v6);
a1->m_okButton->setEnabled(a1->m_okButton, v4);
a1->m_inputLabel->setString(a1->m_inputLabel, (const unsigned __int8 *)a1->m_inputString.m_data.m_data);
}