//
// MessageThreadsPage::userFilterCSV from 0x1400d7c70 to 0x1400d7d60 (240 bytes)
//
// 5 xrefs:
// > MessageThreadsPage::loadPage @ 0x1400d5dc0
// > MessageThreadsPage::loadPage @ 0x1400d5e40
// > MessageThreadsPage::friendPickerClosed @ 0x1400d7b6a
// > ??> @ 0x1409146fc
// > ??> @ 0x140914708
//
// 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 11:26:27 +0000
//
// Hidden C++ exception states: #wind=1
_QWORD *__fastcall MessageThreadsPage::userFilterCSV(__int64 a1, _QWORD *a2)
{
signed int i; // edi
cocos2d::CCArray *v5; // rcx
signed int v6; // eax
struct cocos2d::CCObject *v7; // rax
cocos2d::CCString *v8; // rax
char *CString; // rax
size_t v10; // r8
*(_OWORD *)a2 = 0;
a2[2] = 0;
a2[3] = 15;
*(_BYTE *)a2 = 0;
for ( i = 0; ; ++i )
{
v5 = *(cocos2d::CCArray **)(a1 + 888);
v6 = v5 ? cocos2d::CCArray::count(v5) : 0;
if ( i >= v6 )
break;
if ( a2[2] )
sub_140044D80(a2, byte_14070ECF8, 1u);
v7 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 888), i);
v8 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, *((unsigned int *)v7 + 98));
CString = (char *)cocos2d::CCString::getCString(v8);
v10 = -1;
do
++v10;
while ( CString[v10] );
sub_140044D80(a2, CString, v10);
}
return a2;
}