//
// AccountLoginLayer::textInputClosed from 0x586834 to 0x5868c2 (142 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'AccountLoginLayer::textInputClosed @ 0x5868cc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:52:58 +0000
//
int __fastcall AccountLoginLayer::textInputClosed(AccountLoginLayer *this, CCTextInputNode *a2)
{
int v4; // r0
int v5; // r0
unsigned int v6; // r3
AccountLoginLayer *v7; // r0
int v8; // r1
unsigned int v9; // r3
_BYTE v11[4]; // [sp+0h] [bp-14h] BYREF
int v12; // [sp+4h] [bp-10h]
CCTextInputNode::getString((CCTextInputNode *)v11, (int)a2);
v4 = (*(int (__fastcall **)(CCTextInputNode *))(*(_DWORD *)a2 + 32))(a2);
AccountLoginLayer::resetLabel((int)this, v4);
v5 = (*(int (__fastcall **)(CCTextInputNode *))(*(_DWORD *)a2 + 32))(a2);
if ( v5 == 1 )
{
if ( (v11[0] & 1) != 0 )
v6 = v12;
else
v6 = (int)v11[0] >> 1;
if ( v6 <= 2 )
{
v7 = this;
v8 = -9;
LABEL_14:
AccountLoginLayer::updateLabel((int)v7, v8);
}
}
else if ( v5 == 2 )
{
v9 = (v11[0] & 1) != 0 ? v12 : (int)v11[0] >> 1;
if ( v9 <= 5 )
{
v7 = this;
v8 = -8;
goto LABEL_14;
}
}
return std::string::~string((int)v11);
}