//
// NumberInputLayer::inputNumber from 0x957124 to 0x957198 (116 bytes)
//
// 2 xrefs:
// > NumberInputLayer::onNumber @ 0x9571d8
// > ??> @ 0xc8a58
//
// This function is hookable on this platform (idp: arm, 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:57:25 +0000
//
__int64 __fastcall NumberInputLayer::inputNumber(__int64 this, const char *a2)
{
__int64 v2; // x20
unsigned __int64 v3; // x2
NumberInputLayer *v4; // x19
cocos2d::CCString *v5; // x0
size_t v6; // x0
char *CString; // [xsp+28h] [xbp+28h]
v2 = this + 720;
v3 = *(_BYTE *)(this + 720) >> 1;
if ( (*(_BYTE *)(this + 720) & 1) != 0 )
v3 = *(_QWORD *)(this + 728);
if ( *(int *)(this + 692) > v3 )
{
v4 = (NumberInputLayer *)this;
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", a2);
CString = (char *)cocos2d::CCString::getCString(v5);
v6 = strlen(CString);
std::string::append(v2, CString, v6);
return NumberInputLayer::updateNumberState(v4);
}
return this;
}