//
// NumberInputLayer::updateNumberState from 0x4550f8 to 0x45516a (114 bytes)
//
// 3 xrefs:
// > NumberInputLayer::init @ 0x4554aa
// > NumberInputLayer::inputNumber @ 0x455568
// > NumberInputLayer::deleteLast @ 0x4555b0
//
// 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 v2; // r3
_BOOL4 v3; // r5
ButtonSprite *v4; // r0
char *v5; // r3
v2 = *((_DWORD *)a1->m_inputString.m_data.m_data - 3);
v3 = v2 >= a1->m_minimum && v2 <= a1->m_maximum;
v4 = (ButtonSprite *)a1->m_okButton->getNormalImage(a1->m_okButton);
if ( v3 )
v5 = &byte_9AB7AC;
else
v5 = &byte_9AB7AF;
ButtonSprite::setColor(
v4,
(cocos2d::ccColor3B)((unsigned __int8)*v5 | ((unsigned __int8)v5[1] << 8) | ((unsigned __int8)v5[2] << 16)));
a1->m_okButton->setEnabled(a1->m_okButton, v3);
a1->m_inputLabel->setString(a1->m_inputLabel, (const unsigned __int8 *)a1->m_inputString.m_data.m_data);
}