//
// sub_10054EEFC from 0x10054eefc to 0x10054ef98 (156 bytes)
//
// 0 xrefs:
//
// 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_10054EEFC(__int64 a1, __int64 a2, __int64 a3)
{
_QWORD *v3; // x21
_QWORD *v4; // x23
__int64 v7; // x22
__int64 result; // x0
v3 = (_QWORD *)(a1 + 40);
v4 = *(_QWORD **)(a1 + 40);
if ( v4 == (_QWORD *)(a1 + 40) )
return 0;
while ( 1 )
{
v7 = v4 ? (__int64)(v4 - 1) : 0LL;
if ( (**(unsigned int (__fastcall ***)(__int64))v7)(v7) == *(unsigned __int8 *)(a2 + 8) )
{
result = (*(__int64 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v7 + 40LL))(v7, a2, a3);
if ( (_DWORD)result )
break;
}
v4 = (_QWORD *)*v4;
if ( v4 == v3 )
return 0;
}
return result;
}