//
// MessagesProfilePage::updateSelectUI from 0x1404764b0 to 0x140476551 (161 bytes)
//
// 9 xrefs:
// > MessagesProfilePage::init @ 0x140475f7a
// > MessagesProfilePage::onToggleAllObjects @ 0x1404763d0
// > MessagesProfilePage::onSelectionChanged @ 0x140476560
// > MessagesProfilePage::deleteSelected @ 0x140476c6c
// > MessagesProfilePage::loadMessagesFinished @ 0x1404778e4
// > MessagesProfilePage::loadMessagesFailed @ 0x14047797c
// > ??> @ 0x1408ced08
// > ??> @ 0x1408ced40
// > ??> @ 0x140928388
//
// 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:32:40 +0000
//
__int64 __fastcall MessagesProfilePage::updateSelectUI(__int64 a1)
{
__int64 result; // rax
__int64 v3; // rdx
__int64 v4; // rcx
int v5; // ebp
__int64 v6; // rdi
__int64 (__fastcall **v7)(__int64, const char *); // rbx
cocos2d::CCString *v8; // rax
const char *CString; // rax
__int64 v10; // rcx
result = MessagesProfilePage::selectedCount(a1);
v4 = *(_QWORD *)(a1 + 808);
v5 = result;
if ( v4 )
{
LOBYTE(v3) = (int)result > 0;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 336LL))(v4, v3);
v6 = *(_QWORD *)(a1 + 808);
v7 = *(__int64 (__fastcall ***)(__int64, const char *))(v6 + 360);
v8 = cocos2d::CCString::createWithFormat("(%i)", v5);
CString = cocos2d::CCString::getCString(v8);
result = (*v7)(v6 + 360, CString);
}
v10 = *(_QWORD *)(a1 + 816);
if ( v10 )
{
LOBYTE(v3) = v5 > 0;
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v10 + 336LL))(v10, v3);
}
return result;
}