//
// LevelInfoLayer::numberInputClosed from 0x140422840 to 0x140422a0b (459 bytes)
//
// 3 xrefs:
// > ??> @ 0x14078c650
// > ??> @ 0x140926888
// > ??> @ 0x140926894
//
// 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:09 +0000
//
// Hidden C++ exception states: #wind=2
void __fastcall LevelInfoLayer::numberInputClosed(__int64 a1, __int64 a2)
{
const char *v3; // rcx
int v4; // ebx
const char *v5; // rcx
int v6; // eax
int v7; // edx
__int64 v8; // rax
cocos2d::CCObject *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_14003F4F0((__int64)String, a2 + 728);
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 + 48) + 1052LL) - *(_DWORD *)(*(_QWORD *)(a1 + 48) + 1056LL);
if ( v4 == v7 || v6 == v7 )
{
LevelInfoLayer::confirmClone(a1 - 456, 0);
}
else
{
v10 = 0;
*(_QWORD *)&v10 = sub_14003D460(0x20u);
v11 = 19;
v12 = 31;
strcpy((char *)v10, "Incorrect password!");
v8 = sub_14003F4F0((__int64)v13, (__int64)&v10);
v9 = FLAlertLayer::create(0, (int)"Error", v8, (__int64)"OK", 0, 1133903872, 0, 0, 1065353216);
sub_14003D310((__int64)&v10);
(*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v9 + 1064LL))(v9);
++*(_DWORD *)(*(_QWORD *)(a1 + 48) + 1076LL);
}
sub_14003D310((__int64)String);
}