//
// sub_10054EDBC from 0x10054edbc to 0x10054ee5c (160 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009aa3a0
//
// 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:07:52 +0000
//
__int64 __fastcall sub_10054EDBC(__int64 a1, __int64 a2, __int64 a3, __int64 a4)
{
_QWORD *v4; // x22
_QWORD *v5; // x24
__int64 v9; // x23
__int64 result; // x0
v4 = (_QWORD *)(a1 + 40);
v5 = *(_QWORD **)(a1 + 40);
if ( v5 == (_QWORD *)(a1 + 40) )
return 0;
while ( 1 )
{
v9 = v5 ? (__int64)(v5 - 1) : 0LL;
if ( (**(unsigned int (__fastcall ***)(__int64))v9)(v9) == (_DWORD)a3 )
{
result = (*(__int64 (__fastcall **)(__int64, __int64, __int64, __int64))(*(_QWORD *)v9 + 80LL))(v9, a2, a3, a4);
if ( (_DWORD)result )
break;
}
v5 = (_QWORD *)*v5;
if ( v5 == v4 )
return 0;
}
return result;
}