//
// sub_1003BC1E4 from 0x1003bc1e4 to 0x1003bc24c (104 bytes)
//
// 2 xrefs:
// > GameManager::unloadIcon @ 0x1003b4c80
// > GameManager::unloadIcons @ 0x1003b4e80
//
// 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:03:59 +0000
//
__int64 __fastcall sub_1003BC1E4(__int64 a1, int *a2)
{
__int64 v2; // x10
int v3; // w9
__int64 v4; // x1
v2 = *(_QWORD *)(a1 + 8);
if ( !v2 )
return 0;
v3 = *a2;
v4 = a1 + 8;
do
{
if ( *(_DWORD *)(v2 + 32) >= v3 )
v4 = v2;
v2 = *(_QWORD *)(v2 + 8LL * (*(_DWORD *)(v2 + 32) < v3));
}
while ( v2 );
if ( v4 == a1 + 8 || v3 < *(_DWORD *)(v4 + 32) )
return 0;
sub_1003BC24C();
return 1;
}