//
// LevelCell::updateCellMode from 0x331bb4 to 0x331c1e (106 bytes)
//
// 2 xrefs:
// > LevelCell::loadCustomLevelCell @ 0x332264
// > CustomListView::reloadAll @ 0x33a592
//
// 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 LevelCell::updateCellMode(LevelCell *a1, int a2)
{
int v3; // r5
cocos2d::CCNode *v4; // r0
cocos2d::CCNode *v5; // r7
bool v6; // zf
int v7; // r4
v3 = 0;
a1->m_cellMode = a2;
do
{
v4 = a1->m_mainMenu->getChildByTag(a1->m_mainMenu, v3);
v5 = v4;
if ( !v4 )
goto LABEL_15;
if ( v3 || a1->m_cellMode )
{
if ( (unsigned int)(v3 - 1) <= 2 )
{
v6 = a1->m_cellMode == 1;
goto LABEL_9;
}
if ( v3 == 4 )
{
v6 = a1->m_cellMode == 2;
LABEL_9:
v7 = v6;
goto LABEL_14;
}
v7 = 0;
}
else
{
v7 = 1;
}
LABEL_14:
v4->setVisible(v4, v7);
((void (__fastcall *)(cocos2d::CCNode *, int))v5->__vftable[1].setScale)(v5, v7);
LABEL_15:
++v3;
}
while ( v3 != 5 );
}