//
// MessageThreadsPage::userFilterCSV from 0x74fe84 to 0x74fefa (118 bytes)
//
// 3 xrefs:
// > MessageThreadsPage::loadPage @ 0x74ff3c
// > MessageThreadsPage::loadPage @ 0x74ff6a
// > MessageThreadsPage::friendPickerClosed @ 0x753318
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:58:50 +0000
//
MessageThreadsPage *__fastcall MessageThreadsPage::userFilterCSV(MessageThreadsPage *this, int a2)
{
signed int v4; // r5
cocos2d::CCArray *v5; // r0
int v6; // r3
int v7; // r3
int v8; // r0
cocos2d::CCString *v9; // r0
char *CString; // r0
v4 = 0;
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
*((_DWORD *)this + 2) = 0;
while ( 1 )
{
v5 = *(cocos2d::CCArray **)(a2 + 636);
if ( v5 )
v5 = (cocos2d::CCArray *)cocos2d::CCArray::count(v5);
if ( v4 >= (int)v5 )
break;
v6 = *(unsigned __int8 *)this;
if ( (v6 & 1) != 0 )
v7 = *((_DWORD *)this + 1);
else
v7 = v6 >> 1;
if ( v7 )
std::string::append(this, ",");
v8 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a2 + 636), v4);
v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", *(const char **)(v8 + 296));
CString = (char *)cocos2d::CCString::getCString(v9);
std::string::append(this, CString);
++v4;
}
return this;
}