//
// NumberInputLayer::updateNumberState from 0x1404a1990 to 0x1404a1b05 (373 bytes)
//
// 4 xrefs:
// > NumberInputLayer::init @ 0x1404a17cd
// > NumberInputLayer::onNumber @ 0x1404a196c
// > ParentalGateLayer::generateChallenge @ 0x1404d3ecf
// > ??> @ 0x140929540
//
// 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 11:32:57 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall NumberInputLayer::updateNumberState(__int64 a1)
{
int v2; // eax
unsigned __int8 v3; // si
__int16 v4; // ax
char v5; // cl
_QWORD *v6; // rdi
__int64 v7; // rcx
__int64 v8; // rcx
__int64 v9; // rcx
_QWORD *v10; // rax
_QWORD *v11; // rdx
__int16 v12; // [rsp+20h] [rbp-48h] BYREF
char v13; // [rsp+22h] [rbp-46h]
_QWORD v14[4]; // [rsp+30h] [rbp-38h] BYREF
v2 = *(_DWORD *)(a1 + 744);
if ( v2 < *(_DWORD *)(a1 + 688) || v2 > *(_DWORD *)(a1 + 692) )
{
v3 = 0;
v4 = -22874;
v5 = -90;
}
else
{
v3 = 1;
v4 = -1;
v5 = -1;
}
v12 = v4;
v13 = v5;
v6 = (_QWORD *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 680) + 952LL))(*(_QWORD *)(a1 + 680));
v7 = v6[79];
if ( v7 )
(**(void (__fastcall ***)(__int64, __int16 *))(v7 + 368))(v7 + 368, &v12);
v8 = v6[80];
if ( v8 )
(**(void (__fastcall ***)(__int64, __int16 *))(v8 + 320))(v8 + 320, &v12);
v9 = v6[82];
if ( v9 || (v9 = v6[81]) != 0 )
(**(void (__fastcall ***)(__int64, __int16 *))(v9 + 320))(v9 + 320, &v12);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 680) + 936LL))(*(_QWORD *)(a1 + 680), v3);
v10 = sub_140075860(v14, (_QWORD *)(a1 + 696), (_QWORD *)(a1 + 728));
v11 = v10;
if ( v10[3] > 0xFu )
v11 = (_QWORD *)*v10;
(**(void (__fastcall ***)(__int64, _QWORD *))(*(_QWORD *)(a1 + 664) + 360LL))(*(_QWORD *)(a1 + 664) + 360LL, v11);
sub_14003D310((__int64)v14);
cocos2d::CCLabelBMFont::limitLabelWidth(*(cocos2d::CCLabelBMFont **)(a1 + 664), 240.0, 0.80000001, 0.0);
}