//
// FRequestProfilePage::textChanged from 0xa4f114 to 0xa4f2e0 (460 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'FRequestProfilePage::textChanged @ 0xa4f2e8
// > ??> @ 0xcc4c0
// > ??> @ 0x148b9d0
//
// 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 13:00:04 +0000
//
__int64 __fastcall FRequestProfilePage::textChanged(FRequestProfilePage *this, CCTextInputNode *a2)
{
size_t v3; // x1
_BYTE *v4; // x3
int v5; // w22
__int64 *v6; // x22
size_t v7; // x2
char *v8; // x1
__int64 v9; // x1
_BYTE *v11; // x1
_BYTE *v12; // x0
__int64 v13; // [xsp+30h] [xbp+30h] BYREF
size_t v14; // [xsp+38h] [xbp+38h]
void *v15; // [xsp+40h] [xbp+40h]
CCTextInputNode::getString(a2, &v13);
if ( (v13 & 1) != 0 )
{
v3 = v14;
v4 = v15;
if ( !v14 )
{
LABEL_3:
std::string::assign(&v13, &byte_11B8890);
goto LABEL_4;
}
}
else
{
v3 = (unsigned __int8)v13 >> 1;
v4 = (char *)&v13 + 1;
if ( !((unsigned __int8)v13 >> 1) )
goto LABEL_3;
}
v11 = &v4[v3];
if ( v11 == v4 )
goto LABEL_3;
v12 = v4;
if ( *v4 == 32 )
{
while ( v11 != ++v12 )
{
if ( *v12 != 32 )
{
if ( v12 - v4 != -1 )
goto LABEL_4;
goto LABEL_3;
}
}
goto LABEL_3;
}
LABEL_4:
v5 = *((unsigned __int8 *)this + 880);
FRequestProfilePage::exitGlobalMode((__int64)this);
if ( v5 )
{
v6 = (__int64 *)((char *)this + 736);
if ( sub_A4C10C((__int64)&v13, (__int64)this + 736) )
{
LABEL_13:
FRequestProfilePage::loadPage(this, 0);
goto LABEL_14;
}
}
else
{
v6 = (__int64 *)((char *)this + 736);
if ( sub_A4C10C((__int64)&v13, (__int64)this + 736) )
{
if ( (v13 & 1) == 0 )
return _stack_chk_guard;
LABEL_25:
operator delete(v15);
return _stack_chk_guard;
}
}
if ( v6 != &v13 )
{
if ( (v13 & 1) != 0 )
{
v8 = (char *)v15;
v7 = v14;
}
else
{
v7 = (unsigned __int8)v13 >> 1;
v8 = (char *)&v13 + 1;
}
std::string::assign(v6, v8, v7);
}
cocos2d::CCNode::unschedule(this, FRequestProfilePage::doSearch, 0);
v9 = *((_BYTE *)this + 736) >> 1;
if ( (*((_BYTE *)this + 736) & 1) != 0 )
v9 = v6[1];
if ( !v9 )
goto LABEL_13;
cocos2d::CCNode::scheduleOnce(this, FRequestProfilePage::doSearch, 0, 0.4);
LABEL_14:
if ( (v13 & 1) != 0 )
goto LABEL_25;
return _stack_chk_guard;
}