//
// MessageThreadsPage::selectedCount from 0xc64f5c to 0xc64fd8 (124 bytes)
//
// 6 xrefs:
// > MessageThreadsPage::updateSelectUI @ 0xc64fec
// > MessageThreadsPage::onSelectAll @ 0xc6503c
// > MessageThreadsPage::onMarkRead @ 0xc73444
// > MessageThreadsPage::onDeleteSelected @ 0xc738d4
// > MessageThreadsPage::onInboxPoll @ 0xc767e4
// > ??> @ 0xe5348
//
// 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:24 +0000
//
__int64 __fastcall MessageThreadsPage::selectedCount(MessageThreadsPage *this)
{
cocos2d::CCArray *v2; // x0
int v3; // w19
unsigned int v4; // w20
int v5; // w1
bool v6; // cc
unsigned int v7; // w1
v2 = *((cocos2d::CCArray **)this + 100);
if ( !v2 )
return 0;
v3 = 0;
v4 = 0;
while ( 1 )
{
v6 = v3 < (int)cocos2d::CCArray::count(v2);
v7 = v3++;
if ( !v6 )
break;
v5 = *(unsigned __int8 *)(cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 100), v7) + 304);
v2 = *((cocos2d::CCArray **)this + 100);
if ( v5 )
++v4;
}
return v4;
}