//
// LevelCell::updateCellMode from 0x10010be74 to 0x10010bf38 (196 bytes)
//
// 2 xrefs:
// > CustomListView::reloadAll @ 0x10010bbd0
// > LevelCell::loadCustomLevelCell @ 0x10010d294
//
// 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 LevelCell::updateCellMode(LevelCell *a1, int a2)
{
__int64 v3; // x20
__int64 v4; // x0
__int64 v5; // x21
_BOOL8 v6; // x22
int v7; // w8
v3 = 0;
a1->m_cellMode = a2;
do
{
v4 = ((__int64 (__fastcall *)(cocos2d::CCMenu *, __int64))a1->m_mainMenu->getChildByTag)(a1->m_mainMenu, v3);
if ( !v4 )
goto LABEL_13;
v5 = v4;
if ( !(_DWORD)v3 )
{
v7 = 0;
LABEL_10:
v6 = a1->m_cellMode == v7;
goto LABEL_12;
}
if ( (v3 & 3) == 0 || a1->m_cellMode != 1 )
{
if ( (_DWORD)v3 != 4 )
{
v6 = 0;
goto LABEL_12;
}
v7 = 2;
goto LABEL_10;
}
v6 = 1;
LABEL_12:
(*(void (__fastcall **)(__int64, _BOOL8))(*(_QWORD *)v4 + 328LL))(v4, v6);
(*(void (__fastcall **)(__int64, _BOOL8))(*(_QWORD *)v5 + 1040LL))(v5, v6);
LABEL_13:
v3 = (unsigned int)(v3 + 1);
}
while ( (_DWORD)v3 != 5 );
}