//
// LevelCell::updateCellMode from 0x4253c0 to 0x42542a (106 bytes)
//
// 2 xrefs:
// > LevelCell::loadCustomLevelCell @ 0x42f3f8
// > CustomListView::reloadAll @ 0x431250
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:48:04 +0000
//
int __fastcall LevelCell::updateCellMode(LevelCell *this, int a2)
{
int v3; // r5
int result; // r0
int v5; // r7
bool v6; // zf
int v7; // r4
v3 = 0;
*((_DWORD *)this + 113) = a2;
do
{
result = (*(int (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 240))(*((_DWORD *)this + 111), v3);
v5 = result;
if ( !result )
goto LABEL_15;
if ( v3 || *((_DWORD *)this + 113) )
{
if ( (unsigned int)(v3 - 1) <= 2 )
{
v6 = *((_DWORD *)this + 113) == 1;
goto LABEL_9;
}
if ( v3 == 4 )
{
v6 = *((_DWORD *)this + 113) == 2;
LABEL_9:
v7 = v6;
goto LABEL_14;
}
v7 = 0;
}
else
{
v7 = 1;
}
LABEL_14:
(*(void (__fastcall **)(int, int))(*(_DWORD *)result + 172))(result, v7);
result = (*(int (__fastcall **)(int, int))(*(_DWORD *)v5 + 528))(v5, v7);
LABEL_15:
++v3;
}
while ( v3 != 5 );
return result;
}