//
// MPLobbyLayer::updateComments from 0x100494510 to 0x100494618 (264 bytes)
//
// 2 xrefs:
// > sub_100494620 @ 0x10049462c
// > ??> @ 0x100943c70
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall MPLobbyLayer::updateComments(MPLobbyLayer *a1)
{
GJMultiplayerManager *v1; // rax
cocos2d::CCObject *v2; // rax
cocos2d::CCObject *v3; // r14
BoomListView *m_list; // r15
char v5; // cl
unsigned int v6; // r12d
cocos2d::CCNode *v7; // r13
unsigned int v8; // eax
char v9; // [rsp+0h] [rbp-2Ch]
v1 = GJMultiplayerManager::sharedState();
v2 = cocos2d::CCDictionary::objectForKey(v1->m_lobbyComments, a1->m_lobbyID);
if ( v2 )
{
v3 = v2;
if ( (unsigned int)sub_100720070(v2) )
{
m_list = a1->m_listLayer->m_list;
if ( (unsigned int)sub_100720070(v3) )
{
v5 = 0;
v6 = 0;
LABEL_5:
v9 = v5;
do
{
v7 = (cocos2d::CCNode *)sub_1007200C0(v3, v6);
if ( !(unsigned __int8)sub_100720160(m_list->m_entries, v7) )
{
BoomListView::addObjectToList(m_list, v7);
++v6;
v8 = sub_100720070(v3);
v5 = 1;
if ( v6 < v8 )
goto LABEL_5;
goto LABEL_12;
}
++v6;
}
while ( v6 < (unsigned int)sub_100720070(v3) );
if ( (v9 & 1) == 0 )
return;
LABEL_12:
TableView::reloadData(m_list->m_tableView);
CCScrollLayerExt::doConstraintContent(m_list->m_tableView, 1);
a1->m_awaitingLobby = 1;
}
}
}
}