//
// AccountLoginLayer::textInputClosed from 0x10008db80 to 0x10008dcdc (348 bytes)
//
// 2 xrefs:
// > sub_10008DCF8 @ 0x10008dcfc
// > ??> @ 0x1008ca028
//
// 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 10:58:22 +0000
//
void __fastcall AccountLoginLayer::textInputClosed(__int64 a1, __int64 a2)
{
int v4; // w0
const char *v5; // x1
__int64 v6; // x21
int v7; // w0
unsigned __int64 v8; // x8
_QWORD *v9; // x8
unsigned __int64 v10; // x8
void *__p; // [xsp+8h] [xbp-38h] BYREF
unsigned __int64 v12; // [xsp+10h] [xbp-30h]
unsigned __int8 v13; // [xsp+1Fh] [xbp-21h]
CCTextInputNode::getString(&__p);
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
if ( v4 == 1 )
{
v5 = "Username:";
v6 = 696;
}
else
{
if ( v4 != 2 )
goto LABEL_6;
v5 = "Password:";
v6 = 704;
}
(*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + v6) + 928LL))(*(_QWORD *)(a1 + v6), v5);
(*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + v6) + 1072LL))(*(_QWORD *)(a1 + v6), &unk_10075D6E2);
LABEL_6:
v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
if ( v7 == 1 )
{
v10 = v13;
if ( (v13 & 0x80u) != 0 )
v10 = v12;
if ( v10 <= 2 )
{
(*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + 696) + 928LL))(
*(_QWORD *)(a1 + 696),
"Too short. Minimum 3 characters");
v9 = (_QWORD *)(a1 + 696);
goto LABEL_16;
}
}
else if ( v7 == 2 )
{
v8 = v13;
if ( (v13 & 0x80u) != 0 )
v8 = v12;
if ( v8 <= 5 )
{
(*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + 704) + 928LL))(
*(_QWORD *)(a1 + 704),
"Too short. Minimum 6 characters");
v9 = (_QWORD *)(a1 + 704);
LABEL_16:
(*(void (__fastcall **)(_QWORD, void *))(*(_QWORD *)*v9 + 1072LL))(*v9, &unk_10075D6DF);
}
}
if ( (char)v13 < 0 )
operator delete(__p);
}