//
// MessageThreadsPage::onSelectAll from 0x1400d62f0 to 0x1400d63e3 (243 bytes)
//
// 4 xrefs:
// > MessageThreadsPage::init @ 0x1400d5885
// > ??> @ 0x140891f04
// > ??> @ 0x140891f3c
// > ??> @ 0x1409145f4
//
// 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:26 +0000
//
void __fastcall MessageThreadsPage::onSelectAll(__int64 a1)
{
cocos2d::CCArray *v2; // rcx
int v3; // esi
signed int v4; // ebx
unsigned int v5; // ebp
bool v6; // si
struct cocos2d::CCObject *v7; // rax
__int64 v8; // rbx
unsigned int v9; // eax
__int64 v10; // r8
__int64 v11; // r9
__int64 v12; // rcx
v2 = *(cocos2d::CCArray **)(a1 + 800);
if ( v2 && cocos2d::CCArray::count(v2) )
{
v3 = MessageThreadsPage::selectedCount(a1);
v4 = 0;
v5 = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 800));
if ( (int)cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 800)) > 0 )
{
v6 = v3 != v5;
do
{
v7 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 800), v4++);
*((_BYTE *)v7 + 360) = v6;
}
while ( v4 < (int)cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 800)) );
}
if ( *(_QWORD *)(a1 + 752) )
{
v8 = *(_QWORD *)(a1 + 752);
v9 = MessageThreadsPage::selectedCount(a1);
GJSelectionStrip::setCount(v8, v9, v10, v11);
}
v12 = *(_QWORD *)(a1 + 688);
if ( v12 )
{
if ( *(_QWORD *)(v12 + 544) )
CustomListView::reloadAll();
}
}
}