//
// sub_100132978 from 0x100132978 to 0x100132a3c (196 bytes)
//
// 2 xrefs:
// > CustomListView::reloadAll @ 0x1001325fc
// > LevelCell::loadCustomLevelCell @ 0x100134378
//
// 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 10:59:24 +0000
//
__int64 __fastcall sub_100132978(__int64 a1, int a2)
{
__int64 v3; // x20
__int64 result; // x0
__int64 v5; // x21
_BOOL8 v6; // x22
int v7; // w8
v3 = 0;
*(_DWORD *)(a1 + 604) = a2;
do
{
result = (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 592) + 480LL))(*(_QWORD *)(a1 + 592), v3);
if ( !result )
goto LABEL_13;
v5 = result;
if ( !(_DWORD)v3 )
{
v7 = 0;
LABEL_10:
v6 = *(_DWORD *)(a1 + 604) == v7;
goto LABEL_12;
}
if ( (v3 & 3) == 0 || *(_DWORD *)(a1 + 604) != 1 )
{
if ( (_DWORD)v3 != 4 )
{
v6 = 0;
goto LABEL_12;
}
v7 = 2;
goto LABEL_10;
}
v6 = 1;
LABEL_12:
(*(void (__fastcall **)(__int64, _BOOL8))(*(_QWORD *)result + 344LL))(result, v6);
result = (*(__int64 (__fastcall **)(__int64, _BOOL8))(*(_QWORD *)v5 + 1056LL))(v5, v6);
LABEL_13:
v3 = (unsigned int)(v3 + 1);
}
while ( (_DWORD)v3 != 5 );
return result;
}