//
// sub_10054D0F0 from 0x10054d0f0 to 0x10054d164 (116 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009aa300
//
// 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:51 +0000
//
__int64 __fastcall sub_10054D0F0(__int64 a1, __int64 a2)
{
int v2; // w9
__int64 result; // x0
if ( !*(_QWORD *)(a1 + 88) )
return 0;
v2 = *(_DWORD *)(a2 + 8);
if ( v2 > 0 )
return 28;
*(_DWORD *)(a2 + 8) = v2 + 1;
result = (***(__int64 (__fastcall ****)(_QWORD))a2)(*(_QWORD *)a2);
if ( (_DWORD)result == 45 || (_DWORD)result == 0 )
{
*(_QWORD *)(a1 + 88) = 0;
return 0;
}
return result;
}