//
// AccountLoginLayer::textInputClosed from 0x100492ea0 to 0x100492fc6 (294 bytes)
//
// 2 xrefs:
// > sub_100492FE0 @ 0x100492fec
// > ??> @ 0x100b4f008
//
// 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 12:30:47 +0000
//
void __fastcall AccountLoginLayer::textInputClosed(__int64 a1, __int64 a2)
{
int v3; // eax
const char *v4; // rsi
__int64 v5; // r15
int v6; // eax
_QWORD *v7; // rbx
__int64 v8; // [rsp+0h] [rbp-30h] BYREF
unsigned __int64 v9; // [rsp+8h] [rbp-28h]
void *__p; // [rsp+10h] [rbp-20h]
CCTextInputNode::getString(&v8, a2);
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
if ( v3 == 1 )
{
v4 = "Username:";
v5 = 696;
}
else
{
if ( v3 != 2 )
goto LABEL_6;
v4 = "Password:";
v5 = 704;
}
(*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + v5) + 928LL))(*(_QWORD *)(a1 + v5), v4);
(*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + v5) + 1072LL))(*(_QWORD *)(a1 + v5), &unk_100A0B963);
LABEL_6:
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
if ( v6 != 1 )
{
if ( v6 != 2 )
goto LABEL_19;
if ( (v8 & 1) != 0 )
{
if ( v9 > 5 )
goto LABEL_19;
}
else if ( (unsigned __int8)v8 >> 1 > 5uLL )
{
goto LABEL_19;
}
(*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + 704) + 928LL))(
*(_QWORD *)(a1 + 704),
"Too short. Minimum 6 characters");
v7 = (_QWORD *)(a1 + 704);
LABEL_18:
(*(void (__fastcall **)(_QWORD, void *))(*(_QWORD *)*v7 + 1072LL))(*v7, &unk_100A0B960);
goto LABEL_19;
}
if ( (v8 & 1) == 0 )
{
if ( (unsigned __int8)v8 >> 1 > 2uLL )
goto LABEL_19;
goto LABEL_17;
}
if ( v9 <= 2 )
{
LABEL_17:
(*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + 696) + 928LL))(
*(_QWORD *)(a1 + 696),
"Too short. Minimum 3 characters");
v7 = (_QWORD *)(a1 + 696);
goto LABEL_18;
}
LABEL_19:
if ( (v8 & 1) != 0 )
operator delete(__p);
}