//
// MessageThreadsPage::friendPickerClosed from 0xc78788 to 0xc788cc (324 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'MessageThreadsPage::friendPickerClosed @ 0xc788d0
// > ??> @ 0xa55c8
// > ??> @ 0x14ec1f0
//
// 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:05:34 +0000
//
__int64 __fastcall MessageThreadsPage::friendPickerClosed(MessageThreadsPage *this)
{
int v3; // w4
size_t v4; // x2
unsigned __int8 v5; // w1
int v6; // w5
__int64 v7; // x0
_BOOL4 v8; // w21
unsigned __int8 *v9; // x0
unsigned __int8 *v10; // x1
unsigned __int8 *v11; // x3
unsigned __int8 *v12; // x2
int v13; // t1
size_t v14[2]; // [xsp+30h] [xbp+30h] BYREF
void *v15; // [xsp+40h] [xbp+40h]
MessageThreadsPage::refreshUserFilterBtn(this);
if ( (unsigned __int8)MessageThreadsPage::syncSearchFromBox(this) )
goto LABEL_2;
MessageThreadsPage::userFilterCSV(this, v14);
v3 = v14[0] & 1;
v4 = LOBYTE(v14[0]) >> 1;
if ( v3 )
v4 = v14[1];
v5 = *((_BYTE *)this + 888);
v6 = v5 & 1;
v7 = v5 >> 1;
if ( (v5 & 1) != 0 )
v7 = *((_QWORD *)this + 112);
if ( v4 != v7 )
{
if ( !v3 )
{
LABEL_2:
MessageThreadsPage::loadPage(this, 0, 0);
return _stack_chk_guard;
}
v8 = 1;
LABEL_24:
operator delete(v15);
if ( !v8 )
return _stack_chk_guard;
goto LABEL_2;
}
v9 = (unsigned __int8 *)v14 + 1;
if ( v3 )
v9 = (unsigned __int8 *)v15;
v10 = (unsigned __int8 *)this + 889;
if ( v6 )
v10 = *((unsigned __int8 **)this + 113);
if ( v3 )
{
v8 = 0;
if ( v4 )
v8 = memcmp(v9, v10, v4) != 0;
goto LABEL_24;
}
if ( !v4 )
return _stack_chk_guard;
if ( *v9 != *v10 )
goto LABEL_2;
v11 = v9 + 1;
v12 = &v9[v4];
while ( 1 )
{
++v10;
if ( v11 == v12 )
return _stack_chk_guard;
v13 = *v11++;
if ( *v10 != v13 )
goto LABEL_2;
}
}