//
// LevelInfoLayer::numberInputClosed from 0x1402fd690 to 0x1402fd859 (457 bytes)
//
// 2 xrefs:
// > ??> @ 0x140586d70
// > ??> @ 0x1406d4238
//
// 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
//
// Hidden C++ exception states: #wind=2
void LevelInfoLayer::numberInputClosed(LevelInfoLayer *a1, NumberInputLayer *a2)
{
const char *v3; // rcx
int v4; // ebx
const char *v5; // rcx
int v6; // eax
int v7; // edx
__int64 v8; // rax
FLAlertLayer *v9; // rbx
__int128 v10; // [rsp+58h] [rbp-80h] BYREF
__int64 v11; // [rsp+68h] [rbp-70h]
__int64 v12; // [rsp+70h] [rbp-68h]
_BYTE v13[32]; // [rsp+80h] [rbp-58h] BYREF
char *String[3]; // [rsp+A0h] [rbp-38h] BYREF
unsigned __int64 v15; // [rsp+B8h] [rbp-20h]
sub_14003BDB0((__int64)String, (__int64)&a2->m_inputString);
v3 = (const char *)String;
if ( v15 > 0xF )
v3 = String[0];
v4 = atoi(v3) + 1000000;
v5 = (const char *)String;
if ( v15 > 0xF )
v5 = String[0];
v6 = atoi(v5) + 10000;
v7 = *(_DWORD *)(*(_QWORD *)&a1->m_unknown2 + 936LL) - *(_DWORD *)(*(_QWORD *)&a1->m_unknown2 + 940LL);
if ( v4 == v7 || v6 == v7 )
{
LevelInfoLayer::confirmClone((LevelInfoLayer *)((char *)a1 - 456), nullptr);
}
else
{
v10 = 0;
*(_QWORD *)&v10 = sub_14003AA10(0x20u);
v11 = 19;
v12 = 31;
strcpy((char *)v10, "Incorrect password!");
v8 = sub_14003BDB0((__int64)v13, (__int64)&v10);
v9 = FLAlertLayer::create(0, (int)"Error", v8, (__int64)"OK", 0, 1133903872, 0, 0, 1065353216);
sub_14003A830((__int64)&v10);
v9->show(v9);
++*(_DWORD *)(*(_QWORD *)&a1->m_unknown2 + 960LL);
}
sub_14003A830((__int64)String);
}