//
// AccountLoginLayer::textInputClosed from 0x140092130 to 0x140092298 (360 bytes)
//
// 2 xrefs:
// > ??> @ 0x1407179c8
// > ??> @ 0x140912ae8
//
// 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:26:01 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall AccountLoginLayer::textInputClosed(__int64 a1, _QWORD *a2)
{
_BYTE *v4; // rax
size_t v5; // r8
int v6; // eax
int v7; // eax
__int64 v8; // rcx
void *v9; // rcx
void *Block[2]; // [rsp+38h] [rbp-30h] BYREF
__int128 v11; // [rsp+48h] [rbp-20h]
v4 = (_BYTE *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(a2[74] + 600LL) + 8LL))(a2[74] + 600LL);
*(_OWORD *)Block = 0;
v11 = 0;
v5 = -1;
do
++v5;
while ( v4[v5] );
sub_14003D230(Block, v4, v5);
v6 = (*(__int64 (__fastcall **)(_QWORD *))(*a2 + 56LL))(a2);
AccountLoginLayer::resetLabel(a1 - 544, v6);
v7 = (*(__int64 (__fastcall **)(_QWORD *))(*a2 + 56LL))(a2) - 1;
if ( !v7 )
{
if ( (unsigned __int64)v11 >= 3 )
goto LABEL_10;
(**(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)(a1 + 152) + 360LL))(
*(_QWORD *)(a1 + 152) + 360LL,
"Too short. Minimum 3 characters");
v8 = *(_QWORD *)(a1 + 152);
goto LABEL_9;
}
if ( v7 == 1 && (unsigned __int64)v11 < 6 )
{
(**(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)(a1 + 160) + 360LL))(
*(_QWORD *)(a1 + 160) + 360LL,
"Too short. Minimum 6 characters");
v8 = *(_QWORD *)(a1 + 160);
LABEL_9:
(**(void (__fastcall ***)(__int64, __int16 *))(v8 + 368))(v8 + 368, &word_140702D00);
}
LABEL_10:
if ( *((_QWORD *)&v11 + 1) > 0xFu )
{
v9 = Block[0];
if ( (unsigned __int64)(*((_QWORD *)&v11 + 1) + 1LL) >= 0x1000 )
{
v9 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v9 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v9);
}
}