//
// AccountLoginLayer::textInputClosed from 0x851a3c to 0x851bac (368 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'AccountLoginLayer::textInputClosed @ 0x851bb0
// > ??> @ 0x31e48
// > ??> @ 0x118f4e0
//
// 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
//
void AccountLoginLayer::textInputClosed(AccountLoginLayer *a1, CCTextInputNode *a2)
{
int v4; // w0
int v5; // w0
__int64 v6; // x2
void *v7; // x0
unsigned int *v8; // x2
int v9; // w1
__int64 v10; // [xsp+40h] [xbp+40h] BYREF
CCTextInputNode::getString(a2, (__int64)&v10);
v4 = a2->getTag(a2);
AccountLoginLayer::resetLabel(a1, v4);
v5 = a2->getTag(a2);
v6 = v10;
if ( v5 == 1 )
{
if ( *(_QWORD *)(v10 - 24) <= 2u )
{
AccountLoginLayer::updateLabel(a1, TooShortLessThan3);
v6 = v10;
LABEL_7:
v7 = (void *)(v6 - 24);
if ( (__int64 *)(v6 - 24) == &qword_124B6B0 )
return;
goto LABEL_8;
}
}
else if ( v5 == 2 && *(_QWORD *)(v10 - 24) <= 5u )
{
AccountLoginLayer::updateLabel(a1, TooShortLessThan6);
v6 = v10;
goto LABEL_7;
}
v7 = (void *)(v10 - 24);
if ( (__int64 *)(v10 - 24) == &qword_124B6B0 )
return;
LABEL_8:
if ( &pthread_create )
{
v8 = (unsigned int *)(v6 - 8);
do
v9 = __ldaxr(v8);
while ( __stlxr(v9 - 1, v8) );
}
else
{
v9 = *(_DWORD *)(v6 - 8);
*(_DWORD *)(v6 - 8) = v9 - 1;
}
if ( v9 <= 0 )
operator delete(v7);
}