//
// MessagesProfilePage::updateSelectUI from 0xa49d34 to 0xa49dc4 (144 bytes)
//
// 8 xrefs:
// > MessagesProfilePage::onToggleAllObjects @ 0xa49e74
// > MessagesProfilePage::onSelectionChanged @ 0xa49e90
// > MessagesProfilePage::loadMessagesFailed @ 0xa4a03c
// > MessagesProfilePage::loadMessagesFinished @ 0xa4a3cc
// > MessagesProfilePage::updateLevelsLabel @ 0xa4a500
// > MessagesProfilePage::deleteSelected @ 0xa4a850
// > MessagesProfilePage::init @ 0xa4b770
// > ??> @ 0xc7750
//
// 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:00:01 +0000
//
__int64 __fastcall MessagesProfilePage::updateSelectUI(MessagesProfilePage *this)
{
signed int v2; // w20
__int64 v3; // x0
__int64 v4; // x21
void (__fastcall *v5)(__int64, __int64); // x22
cocos2d::CCString *v6; // x0
__int64 CString; // x0
__int64 result; // x0
v2 = MessagesProfilePage::selectedCount(this);
v3 = *((_QWORD *)this + 100);
if ( v3 )
{
(*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v3 + 344LL))(v3, v2 > 0);
v4 = *((_QWORD *)this + 100);
v5 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 928LL);
v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"(%i)",
(const char *)(unsigned int)v2);
CString = cocos2d::CCString::getCString(v6);
v5(v4, CString);
}
result = *((_QWORD *)this + 101);
if ( result )
return (*(__int64 (__fastcall **)(__int64, bool))(*(_QWORD *)result + 344LL))(result, v2 > 0);
return result;
}