//
// FRequestProfilePage::textChanged from 0x5f2f38 to 0x5f302e (246 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'FRequestProfilePage::textChanged @ 0x5f3044
//
// 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:54:29 +0000
//
int __fastcall FRequestProfilePage::textChanged(FRequestProfilePage *this, CCTextInputNode *a2)
{
unsigned __int8 *v3; // r2
int v4; // r3
unsigned __int8 *v5; // r3
unsigned __int8 *v6; // r1
unsigned __int8 *v7; // r0
int v8; // r7
int v9; // r8
int v10; // r1
int v11; // r1
FRequestProfilePage *v12; // r0
int v14[3]; // [sp+10h] [bp-10h] BYREF
CCTextInputNode::getString((CCTextInputNode *)v14, (int)a2);
if ( (v14[0] & 1) != 0 )
{
v3 = (unsigned __int8 *)v14[2];
v4 = v14[1];
}
else
{
v4 = (int)LOBYTE(v14[0]) >> 1;
v3 = (unsigned __int8 *)v14 + 1;
}
if ( v4 )
{
v5 = &v3[v4];
v6 = v3;
while ( 1 )
{
v7 = v6;
if ( v6 == v5 )
break;
v8 = *v6++;
if ( v8 != 32 )
{
if ( v7 - v3 == -1 )
break;
goto LABEL_8;
}
}
}
std::string::assign(v14, (char *)&unk_B6B226);
LABEL_8:
v9 = *((unsigned __int8 *)this + 628);
FRequestProfilePage::exitGlobalMode((int)this);
if ( v9 && sub_5F0EEC((unsigned __int8 *)v14, (unsigned __int8 *)this + 556) )
{
v12 = this;
goto LABEL_23;
}
if ( !sub_5F0EEC((unsigned __int8 *)v14, (unsigned __int8 *)this + 556) )
{
std::string::operator=((unsigned __int8 *)this + 556, (unsigned __int8 *)v14);
cocos2d::CCNode::unschedule(this, FRequestProfilePage::doSearch, 0);
v10 = *((unsigned __int8 *)this + 556);
if ( (v10 & 1) != 0 )
v11 = *((_DWORD *)this + 140);
else
v11 = v10 >> 1;
if ( !v11 )
{
v12 = this;
LABEL_23:
FRequestProfilePage::loadPage(v12, nullptr);
return std::string::~string((int)v14);
}
cocos2d::CCNode::scheduleOnce((int)this, (int)FRequestProfilePage::doSearch, 0, 0.4);
}
return std::string::~string((int)v14);
}