//
// MessageThreadsPage::selectedCount from 0x74681c to 0x746850 (52 bytes)
//
// 5 xrefs:
// > MessageThreadsPage::updateSelectUI @ 0x746858
// > MessageThreadsPage::onSelectAll @ 0x74687e
// > MessageThreadsPage::onMarkRead @ 0x74fdbc
// > MessageThreadsPage::onInboxPoll @ 0x751152
// > MessageThreadsPage::onDeleteSelected @ 0x7517fe
//
// 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:42 +0000
//
int __fastcall MessageThreadsPage::selectedCount(MessageThreadsPage *this)
{
int result; // r0
signed int v3; // r5
int v4; // r4
result = *((_DWORD *)this + 147);
if ( result )
{
v3 = 0;
v4 = 0;
while ( v3 < cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 147)) )
{
if ( *(_BYTE *)(cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 147), v3) + 208) )
++v4;
++v3;
}
return v4;
}
return result;
}