//
// LevelCell::updateCellMode from 0x60fb74 to 0x60fc24 (176 bytes)
//
// 3 xrefs:
// > LevelCell::loadCustomLevelCell @ 0x612098
// > CustomListView::reloadAll @ 0x61e0b8
// > ??> @ 0x63768
//
// 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)
{
unsigned int v2; // w19
cocos2d::CCNode *v4; // x20
int m_cellMode; // w0
_BOOL4 v6; // w21
v2 = 0;
a1->m_cellMode = a2;
do
{
v4 = a1->m_mainMenu->getChildByTag(a1->m_mainMenu, v2);
if ( v4 )
{
m_cellMode = a1->m_cellMode;
if ( v2 )
{
if ( v2 == 4 )
v6 = m_cellMode == 2;
else
v6 = m_cellMode == 1;
}
else
{
v6 = m_cellMode == 0;
}
v4->setVisible(v4, v6);
((void (__fastcall *)(cocos2d::CCNode *, _BOOL4))v4->__vftable[1].setScale)(v4, v6);
}
++v2;
}
while ( v2 != 5 );
}