//
// MessageThreadsPage::friendPicked from 0x10092b8c0 to 0x10092ba88 (456 bytes)
//
// 2 xrefs:
// > sub_10092BAB0 @ 0x10092babc
// > ??> @ 0x100bc2338
//
// This function is hookable on this platform (idp: pc, 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 12:38:21 +0000
//
void __fastcall MessageThreadsPage::friendPicked(__int64 a1, __int64 a2)
{
__int64 v3; // rdi
unsigned int v4; // r15d
__int64 v5; // rbx
char *v6; // rax
__int64 v7; // rdi
int v8; // eax
__int64 v9; // rbx
char *v10; // rax
const char *CString; // rsi
__int128 v12; // [rsp+8h] [rbp-48h] BYREF
void *__p; // [rsp+18h] [rbp-38h]
__int128 v14[3]; // [rsp+20h] [rbp-30h] BYREF
if ( a2 )
{
if ( *(int *)(a2 + 376) > 0 )
{
v3 = *(_QWORD *)(a1 + 880);
if ( v3 )
{
if ( (int)sub_1007FEF90(v3) > 0 )
{
v4 = 0;
while ( *(_DWORD *)(sub_1007FEFE0(*(_QWORD *)(a1 + 880), v4) + 376) != *(_DWORD *)(a2 + 376) )
{
if ( (int)++v4 >= (int)sub_1007FEF90(*(_QWORD *)(a1 + 880)) )
goto LABEL_8;
}
sub_1007FF150(*(_QWORD *)(a1 + 880), v4, 1);
v7 = *(_QWORD *)(a1 + 880);
if ( !v7 )
{
LABEL_18:
v9 = *(_QWORD *)(a1 + 920);
if ( !v9 )
return;
goto LABEL_19;
}
LABEL_14:
v8 = sub_1007FEF90(v7);
v9 = *(_QWORD *)(a1 + 920);
if ( !v9 )
return;
if ( v8 > 0 )
{
v10 = sub_10088E820("%i", v8);
CString = (const char *)cocos2d::CCString::getCString((__int64)v10);
LABEL_20:
(*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v9 + 928LL))(v9, CString);
return;
}
LABEL_19:
CString = "";
goto LABEL_20;
}
LABEL_8:
if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 880)) < 0xA )
{
sub_1007FEBF0(*(_QWORD *)(a1 + 880), a2);
v7 = *(_QWORD *)(a1 + 880);
if ( !v7 )
goto LABEL_18;
goto LABEL_14;
}
v5 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector() + 272);
strcpy((char *)v14, "(Filter limit reached");
LOWORD(v12) = 0;
v6 = TextAlertPopup::create(v14, 0x96u, &v12, 0.5, 0.60000002);
(*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)v5 + 464LL))(v5, v6, 1000);
if ( (v12 & 1) != 0 )
operator delete(__p);
if ( (v14[0] & 1) != 0 )
operator delete(*(void **)&v14[1]);
}
}
}
}