//
// AccountLoginLayer::textInputClosed from 0x990530 to 0x990654 (292 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'AccountLoginLayer::textInputClosed @ 0x990658
// > ??> @ 0x4a0c8
// > ??> @ 0x1474670
//
// 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 12:57:58 +0000
//
__int64 __fastcall AccountLoginLayer::textInputClosed(AccountLoginLayer *this, CCTextInputNode *a2)
{
int v4; // w0
int v5; // w0
__int64 v7; // [xsp+30h] [xbp+30h] BYREF
unsigned __int64 v8; // [xsp+38h] [xbp+38h]
void *v9; // [xsp+40h] [xbp+40h]
CCTextInputNode::getString(a2, &v7);
v4 = (*(__int64 (__fastcall **)(CCTextInputNode *))(*(_QWORD *)a2 + 64LL))(a2);
AccountLoginLayer::resetLabel((__int64)this, v4);
v5 = (*(__int64 (__fastcall **)(CCTextInputNode *))(*(_QWORD *)a2 + 64LL))(a2);
if ( v5 == 1 )
{
if ( (v7 & 1) != 0 )
{
if ( v8 > 2 )
goto LABEL_7;
}
else if ( (unsigned __int8)v7 > 5u )
{
return _stack_chk_guard;
}
AccountLoginLayer::updateLabel((__int64)this, -9);
}
else if ( v5 == 2 )
{
if ( (v7 & 1) != 0 )
{
if ( v8 > 5 )
goto LABEL_7;
}
else if ( (unsigned __int8)v7 > 0xBu )
{
return _stack_chk_guard;
}
AccountLoginLayer::updateLabel((__int64)this, -8);
}
if ( (v7 & 1) != 0 )
LABEL_7:
operator delete(v9);
return _stack_chk_guard;
}