//
// LevelBrowserLayer::updateSelectUI from 0x1004973ac to 0x100497408 (92 bytes)
//
// 4 xrefs:
// > LevelBrowserLayer::init @ 0x100495bd4
// > LevelBrowserLayer::onToggleAllObjects @ 0x100497178
// > LevelBrowserLayer::onSelectionChanged @ 0x100497408
// > LevelBrowserLayer::loadLevelsFinished @ 0x100499e04
//
// 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 11:05:56 +0000
//
__int64 __fastcall LevelBrowserLayer::updateSelectUI(__int64 a1)
{
__int64 result; // x0
__int64 v3; // x8
unsigned int *v4; // x8
__int64 v5; // x9
int v6; // w1
unsigned __int64 v7; // x8
unsigned __int64 v8; // x9
result = *(_QWORD *)(a1 + 712);
if ( result )
{
v3 = *(_QWORD *)(a1 + 656);
if ( v3 && (v4 = *(unsigned int **)(v3 + 56), v5 = *v4, (_DWORD)v5) )
{
v6 = 0;
v7 = *((_QWORD *)v4 + 2);
v8 = v7 + 8 * v5 - 8;
do
{
if ( !*(_QWORD *)v7 )
break;
v6 += *(unsigned __int8 *)(*(_QWORD *)v7 + 771LL);
v7 += 8LL;
}
while ( v7 <= v8 );
}
else
{
v6 = 0;
}
return sub_10037E57C(result, v6);
}
return result;
}