//
// MessagesProfilePage::updateSelectUI from 0x5ef6f4 to 0x5ef754 (96 bytes)
//
// 7 xrefs:
// > MessagesProfilePage::onToggleAllObjects @ 0x5ef7a4
// > MessagesProfilePage::onSelectionChanged @ 0x5ef7ce
// > MessagesProfilePage::updateLevelsLabel @ 0x5ef9e0
// > MessagesProfilePage::deleteSelected @ 0x5efd6e
// > MessagesProfilePage::loadMessagesFinished @ 0x5efed8
// > MessagesProfilePage::loadMessagesFailed @ 0x5eff4a
// > MessagesProfilePage::init @ 0x5f0940
//
// 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:54:26 +0000
//
int __fastcall MessagesProfilePage::updateSelectUI(MessagesProfilePage *this)
{
const char *v2; // r4
int v3; // r0
int v4; // r6
void (__fastcall *v5)(int, int); // r7
cocos2d::CCString *v6; // r0
int CString; // r0
int result; // r0
v2 = (const char *)MessagesProfilePage::selectedCount(this);
v3 = *((_DWORD *)this + 147);
if ( v3 )
{
(*(void (__fastcall **)(int, bool))(*(_DWORD *)v3 + 172))(v3, (int)v2 > 0);
v4 = *((_DWORD *)this + 147);
v5 = *(void (__fastcall **)(int, int))(*(_DWORD *)v4 + 464);
v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"(%i)", v2);
CString = cocos2d::CCString::getCString(v6);
v5(v4, CString);
}
result = *((_DWORD *)this + 148);
if ( result )
return (*(int (__fastcall **)(int, bool))(*(_DWORD *)result + 172))(result, (int)v2 > 0);
return result;
}