//
// MessageThreadsPage::onSelectAll from 0xc65010 to 0xc650b8 (168 bytes)
//
// 3 xrefs:
// > ??> @ 0x41680
// > MessageThreadsPage::init @ 0xc76198
// > ??> @ 0x1541270
//
// 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
//
cocos2d::CCArray *__fastcall MessageThreadsPage::onSelectAll(MessageThreadsPage *this, cocos2d::CCObject *a2)
{
cocos2d::CCArray *result; // x0
int v4; // w19
int v5; // w22
int i; // w21
bool v7; // cc
unsigned int v8; // w1
result = *((cocos2d::CCArray **)this + 100);
if ( result )
{
result = (cocos2d::CCArray *)cocos2d::CCArray::count(result);
if ( (_DWORD)result )
{
v4 = 0;
v5 = MessageThreadsPage::selectedCount(this);
for ( i = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 100));
;
*(_BYTE *)(cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 100), v8) + 304) = v5 != i )
{
v7 = v4 < (int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 100));
v8 = v4++;
if ( !v7 )
break;
}
MessageThreadsPage::updateSelectUI((GJSelectionStrip **)this);
result = *((cocos2d::CCArray **)this + 86);
if ( result )
{
result = *((cocos2d::CCArray **)result + 68);
if ( result )
return (cocos2d::CCArray *)CustomListView::reloadAll((__int64)result);
}
}
}
return result;
}