//
// MPLobbyLayer::updateComments from 0x9c9a98 to 0x9c9b8c (244 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'MPLobbyLayer::updateComments @ 0x9c9b90
// > ??> @ 0x74760
// > ??> @ 0x11c9930
//
// 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 MPLobbyLayer::updateComments(MPLobbyLayer *a1)
{
GJMultiplayerManager *v2; // x0
cocos2d::CCArray *v3; // x0
cocos2d::CCArray *v4; // x20
unsigned int v5; // w19
int v6; // w23
BoomListView *m_list; // x22
bool v8; // cf
unsigned int v9; // w1
cocos2d::CCArray *v10; // x0
cocos2d::CCNode *v11; // x21
v2 = GJMultiplayerManager::sharedState();
v3 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(v2->m_lobbyComments, a1->m_lobbyID);
v4 = v3;
if ( v3 && (unsigned int)cocos2d::CCArray::count(v3) )
{
v5 = 0;
v6 = 0;
m_list = a1->m_listLayer->m_list;
while ( 1 )
{
v8 = v5 >= (unsigned int)cocos2d::CCArray::count(v4);
v9 = v5;
v10 = v4;
++v5;
if ( v8 )
break;
while ( 1 )
{
v11 = (cocos2d::CCNode *)cocos2d::CCArray::objectAtIndex(v10, v9);
if ( (unsigned __int8)cocos2d::CCArray::containsObject(m_list->m_entries, v11) )
break;
v6 = 1;
BoomListView::addObjectToList(m_list, v11);
v8 = v5 >= (unsigned int)cocos2d::CCArray::count(v4);
v9 = v5;
v10 = v4;
++v5;
if ( v8 )
goto LABEL_8;
}
}
LABEL_8:
if ( v6 )
{
TableView::reloadData(m_list->m_tableView);
CCScrollLayerExt::doConstraintContent(m_list->m_tableView, 1);
a1->m_awaitingLobby = 1;
}
}
}