//
// NumberInputLayer::inputNumber from 0x568e78 to 0x568ebc (68 bytes)
//
// 1 xrefs:
// > NumberInputLayer::onNumber @ 0x569072
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:52:30 +0000
//
int __fastcall NumberInputLayer::inputNumber(int this, const char *a2)
{
NumberInputLayer *v2; // r4
int v3; // r3
unsigned int v4; // r3
cocos2d::CCString *v5; // r0
const char *CString; // r5
size_t v7; // r0
v2 = (NumberInputLayer *)this;
v3 = *(unsigned __int8 *)(this + 552);
if ( (v3 & 1) != 0 )
v4 = *(_DWORD *)(this + 556);
else
v4 = v3 >> 1;
if ( v4 < *(_DWORD *)(this + 536) )
{
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", a2);
CString = (const char *)cocos2d::CCString::getCString(v5);
v7 = strlen(CString);
std::string::append((_DWORD *)v2 + 138, CString, v7);
return NumberInputLayer::updateNumberState(v2);
}
return this;
}