//
// FriendsProfilePage::textChanged from 0xa529e8 to 0xa52b34 (332 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'FriendsProfilePage::textChanged @ 0xa52b38
// > ??> @ 0xb5f78
// > ??> @ 0x148c6b0
//
// 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:06 +0000
//
__int64 __fastcall FriendsProfilePage::textChanged(FriendsProfilePage *this, CCTextInputNode *a2)
{
char *v3; // x20
char *v4; // x23
char *v5; // x0
int v6; // w22
__int64 v7; // x2
size_t v8; // x2
__int64 v9; // x2
__int64 v10; // x3
unsigned __int64 v12; // x0
unsigned __int64 v13; // x0
unsigned __int8 v14; // w2
__int64 v16[3]; // [xsp+50h] [xbp+50h] BYREF
v3 = (char *)this + 880;
*((_BYTE *)this + 920) = 0;
PagedListPopup::clearStatus(this);
CCTextInputNode::getString(a2, v16);
if ( (*((_BYTE *)this + 880) & 1) == 0 )
goto LABEL_9;
**((_BYTE **)v3 + 2) = 0;
*((_QWORD *)v3 + 1) = 0;
if ( (*((_BYTE *)this + 880) & 1) == 0 )
{
v12 = *((_BYTE *)this + 880) >> 1;
if ( v12 <= 0x16 )
goto LABEL_9;
v13 = (v12 + 16) & 0xFFFFFFFFFFFFFFF0LL;
if ( v13 == 23 )
goto LABEL_9;
if ( v13 - 1 > 0x16 )
{
v5 = (char *)operator new(v13);
v14 = *((_BYTE *)this + 880);
v6 = v14 & 1;
if ( (v14 & 1) == 0 )
{
LABEL_17:
v4 = (char *)this + 881;
v7 = v14 >> 1;
goto LABEL_5;
}
}
else
{
v5 = (char *)operator new(v13);
v14 = *((_BYTE *)this + 880);
v6 = v14 & 1;
if ( (v14 & 1) == 0 )
goto LABEL_17;
}
v4 = *((char **)v3 + 2);
goto LABEL_4;
}
v4 = *((char **)v3 + 2);
v5 = (char *)this + 881;
v6 = 1;
LABEL_4:
v7 = *((_QWORD *)v3 + 1);
LABEL_5:
v8 = v7 + 1;
if ( v8 )
memcpy(v5, v4, v8);
if ( v6 )
operator delete(v4);
LABEL_9:
v9 = v16[0];
v10 = v16[1];
*((_QWORD *)v3 + 2) = v16[2];
*(_QWORD *)v3 = v9;
*((_QWORD *)v3 + 1) = v10;
FriendsProfilePage::filterUsersWithQuery((__int64)this, (__int64)v3);
FriendsProfilePage::rebuildList((cocos2d::CCArray **)this);
return _stack_chk_guard;
}