//
// AccountRegisterLayer::textChanged from 0x588a38 to 0x588c34 (508 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'AccountRegisterLayer::textChanged @ 0x588c50
//
// 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:53:00 +0000
//
int __fastcall AccountRegisterLayer::textChanged(AccountRegisterLayer *this, CCTextInputNode *a2)
{
int v4; // r0
int v5; // r3
int *v6; // r7
_BOOL4 v7; // r10
int v8; // r2
_BYTE *v9; // r3
int *v10; // r3
_BOOL4 v11; // r10
_BYTE *v12; // r3
_BYTE *v13; // r3
unsigned __int8 v15; // [sp+4h] [bp-4Ch] BYREF
_BYTE v16[3]; // [sp+5h] [bp-4Bh] BYREF
int v17; // [sp+8h] [bp-48h]
_BYTE *v18; // [sp+Ch] [bp-44h]
int v19[3]; // [sp+10h] [bp-40h] BYREF
int v20[3]; // [sp+1Ch] [bp-34h] BYREF
int v21[2]; // [sp+28h] [bp-28h] BYREF
_BYTE *v22; // [sp+30h] [bp-20h]
int v23[3]; // [sp+34h] [bp-1Ch] BYREF
int v24[2]; // [sp+40h] [bp-10h] BYREF
int *v25; // [sp+48h] [bp-8h]
CCTextInputNode::getString((CCTextInputNode *)&v15, (int)a2);
v4 = (*(int (__fastcall **)(CCTextInputNode *))(*(_DWORD *)a2 + 32))(a2);
if ( v4 == 2 )
{
if ( (v15 & 1) != 0 )
v5 = v17;
else
v5 = (int)v15 >> 1;
if ( v5 )
{
std::string::basic_string(v19, (int)&v15);
AccountRegisterLayer::updatePasswordInfo((int)this, (unsigned __int8 *)v19);
std::string::~string((int)v19);
}
else
{
(*(void (__fastcall **)(_DWORD, void *))(**((_DWORD **)this + 139) + 464))(*((_DWORD *)this + 139), &unk_B6B226);
}
AccountRegisterLayer::resetLabel((_DWORD **)this, 3);
v6 = v24;
CCTextInputNode::getString((CCTextInputNode *)v24, *((_DWORD *)this + 134));
memset(v20, 0, sizeof(v20));
std::string::__init(v20, "Confirm Password:", 0x11u);
if ( sub_5858BE((unsigned __int8 *)v24, (unsigned __int8 *)v20) )
{
v7 = 1;
}
else
{
v21[0] = 0;
v21[1] = 0;
v22 = nullptr;
std::string::__init(v21, "Password:", 9u);
v7 = sub_5858BE(&v15, (unsigned __int8 *)v21);
std::string::~string((int)v21);
}
std::string::~string((int)v20);
if ( !sub_5858BE(&v15, (unsigned __int8 *)v24) )
{
v9 = (v15 & 1) != 0 ? v18 : v16;
if ( *v9 )
{
v10 = (v24[0] & 1) != 0 ? v25 : (int *)((char *)v24 + 1);
if ( *(_BYTE *)v10 && !v7 )
AccountRegisterLayer::updateLabel((_DWORD **)this, -7, v8);
}
}
}
else
{
if ( v4 != 3 )
return std::string::~string((int)&v15);
v6 = v21;
CCTextInputNode::getString((CCTextInputNode *)v21, *((_DWORD *)this + 133));
memset(v23, 0, sizeof(v23));
std::string::__init(v23, "Password:", 9u);
if ( sub_5858BE(&v15, (unsigned __int8 *)v23) )
{
v11 = 1;
}
else
{
v24[0] = 0;
v24[1] = 0;
v25 = nullptr;
std::string::__init(v24, "Confirm Password:", 0x11u);
v11 = sub_5858BE((unsigned __int8 *)v21, (unsigned __int8 *)v24);
std::string::~string((int)v24);
}
std::string::~string((int)v23);
if ( !sub_5858BE(&v15, (unsigned __int8 *)v21) )
{
v12 = (v15 & 1) != 0 ? v18 : v16;
if ( *v12 )
{
if ( (v21[0] & 1) != 0 )
v13 = v22;
else
v13 = (char *)v21 + 1;
if ( *v13 && !v11 )
AccountRegisterLayer::updateLabel((_DWORD **)this, -7, v15 << 31);
}
}
}
std::string::~string((int)v6);
return std::string::~string((int)&v15);
}