//
// NumberInputLayer::onNumber from 0x100492e70 to 0x100492ee3 (115 bytes)
//
// 7 xrefs:
// > NumberInputLayer::init @ 0x1004926c8
// > NumberInputLayer::init @ 0x1004927a5
// > NumberInputLayer::init @ 0x100492875
// > NumberInputLayer::init @ 0x100492949
// > NumberInputLayer::init @ 0x100492a2b
// > NumberInputLayer::init @ 0x100492af4
// > NumberInputLayer::init @ 0x100492c90
//
// 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 __fastcall NumberInputLayer::onNumber(NumberInputLayer *a1, cocos2d::CCObject *a2)
{
int v3; // eax
NumberInputDelegate *m_delegate; // rdi
v3 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
if ( v3 == 12 )
{
m_delegate = a1->m_delegate;
if ( m_delegate )
((void (__fastcall *)(NumberInputDelegate *, NumberInputLayer *))m_delegate->numberInputClosed)(m_delegate, a1);
((void (__fastcall *)(NumberInputLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0);
((void (__fastcall *)(NumberInputLayer *, __int64))a1->removeFromParentAndCleanup)(a1, 1);
}
else if ( v3 == 10 )
{
NumberInputLayer::deleteLast(a1);
}
else
{
NumberInputLayer::inputNumber(a1, v3);
}
}