//
// NumberInputLayer::onNumber from 0x100489d30 to 0x100489dd6 (166 bytes)
//
// 7 xrefs:
// > NumberInputLayer::init @ 0x100489617
// > NumberInputLayer::init @ 0x1004896f4
// > NumberInputLayer::init @ 0x1004897c4
// > NumberInputLayer::init @ 0x100489898
// > NumberInputLayer::init @ 0x10048997a
// > NumberInputLayer::init @ 0x100489a43
// > NumberInputLayer::init @ 0x100489be0
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:30:44 +0000
//
__int64 __fastcall NumberInputLayer::onNumber(__int64 a1, __int64 a2)
{
__int64 result; // rax
unsigned int v3; // ecx
__int64 v4; // rax
const std::string::value_type *CString; // rax
char v6; // [rsp+0h] [rbp-10h]
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
if ( (_DWORD)result == 12 )
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1344LL))(a1, 0);
if ( (_DWORD)result == 10 )
return NumberInputLayer::deleteLast(a1);
v3 = *(unsigned __int8 *)(a1 + 720);
if ( (v3 & 1) == 0 )
{
if ( v3 >> 1 >= (unsigned __int64)*(int *)(a1 + 692) )
return result;
LABEL_9:
v4 = sub_10088E820("%i", v6);
CString = (const std::string::value_type *)cocos2d::CCString::getCString(v4);
std::string::append((std::string *)(a1 + 720), CString);
return NumberInputLayer::updateNumberState(a1);
}
if ( *(_QWORD *)(a1 + 728) < (unsigned __int64)*(int *)(a1 + 692) )
goto LABEL_9;
return result;
}