//
// sub_1005543E8 from 0x1005543e8 to 0x100554414 (44 bytes)
//
// 6 xrefs:
// > sub_1006146B0 @ 0x10061485c
// > sub_1006146B0 @ 0x10061486c
// > sub_100614D44 @ 0x100614e20
// > sub_100614D44 @ 0x100614f7c
// > sub_100615218 @ 0x1006152f4
// > sub_100615218 @ 0x10061544c
//
// 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:55 +0000
//
__int64 __fastcall sub_1005543E8(_QWORD *a1, int a2)
{
int v2; // w8
v2 = *(_DWORD *)(a1[14] + 4LL * a2);
if ( v2 < 1 )
return 0;
else
return sub_1006164DC((unsigned int)(v2 - *(_DWORD *)(*(_QWORD *)(*a1 + 32LL) + 4904LL)));
}