//
// LevelCell::updateCellMode from 0x7374cc to 0x73757c (176 bytes)
//
// 3 xrefs:
// > LevelCell::loadCustomLevelCell @ 0x748070
// > CustomListView::reloadAll @ 0x748dd4
// > ??> @ 0x87730
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:52:39 +0000
//
__int64 __fastcall LevelCell::updateCellMode(LevelCell *this, int a2)
{
unsigned int v2; // w19
__int64 result; // x0
__int64 v5; // x20
int v6; // w0
_BOOL4 v7; // w21
v2 = 0;
*((_DWORD *)this + 151) = a2;
do
{
result = (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 74) + 480LL))(*((_QWORD *)this + 74), v2);
v5 = result;
if ( result )
{
v6 = *((_DWORD *)this + 151);
if ( v2 )
{
if ( v2 == 4 )
v7 = v6 == 2;
else
v7 = v6 == 1;
}
else
{
v7 = v6 == 0;
}
(*(void (__fastcall **)(__int64, _BOOL4))(*(_QWORD *)v5 + 344LL))(v5, v7);
result = (*(__int64 (__fastcall **)(__int64, _BOOL4))(*(_QWORD *)v5 + 1056LL))(v5, v7);
}
++v2;
}
while ( v2 != 5 );
return result;
}