//
// MessageThreadsPage::friendPickerClosed from 0x1004f6af8 to 0x1004f6bc8 (208 bytes)
//
// 2 xrefs:
// > sub_1004F6C34 @ 0x1004f6c38
// > ??> @ 0x100994fe8
//
// 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 11:06:48 +0000
//
void __fastcall MessageThreadsPage::friendPickerClosed(__int64 a1)
{
int v2; // w20
size_t v3; // x2
__int64 v4; // x9
int v5; // w8
void **v6; // x0
const void *v7; // x1
_BOOL4 v8; // w21
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
unsigned __int8 v10; // [xsp+1Fh] [xbp-21h]
sub_1004F52E0(a1);
if ( (sub_1004F6674(a1) & 1) == 0 )
{
sub_1004F5DD8(a1, (__int64)__p);
v2 = (char)v10;
if ( (v10 & 0x80u) == 0 )
v3 = v10;
else
v3 = (size_t)__p[1];
v4 = *(unsigned __int8 *)(a1 + 911);
v5 = (char)v4;
if ( (v4 & 0x80u) != 0LL )
v4 = *(_QWORD *)(a1 + 896);
if ( v3 == v4 )
{
if ( (v10 & 0x80u) == 0 )
v6 = __p;
else
v6 = (void **)__p[0];
if ( v5 >= 0 )
v7 = (const void *)(a1 + 888);
else
v7 = *(const void **)(a1 + 888);
v8 = memcmp(v6, v7, v3) != 0;
if ( (v2 & 0x80000000) == 0 )
{
LABEL_18:
if ( !v8 )
return;
goto LABEL_19;
}
}
else
{
v8 = 1;
if ( ((char)v10 & 0x80000000) == 0 )
goto LABEL_18;
}
operator delete(__p[0]);
goto LABEL_18;
}
LABEL_19:
sub_1004F5C34(a1, 0, 0);
}