//
// sub_55D90 from 0x55d90 to 0x55dcc (60 bytes)
//
// 7 xrefs:
// > sub_54DB0 @ 0x55828
// > sub_54DB0 @ 0x55b0c
// > sub_AB350 @ 0xab46c
// > sub_AB350 @ 0xab504
// > sub_AB350 @ 0xab98c
// > sub_ABEB0 @ 0xabf30
// > sub_ABEB0 @ 0xabf48
//
// 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 12:13:49 +0000
//
void *__fastcall sub_55D90(_DWORD *a1, int a2)
{
__int16 *v2; // x9
int v3; // w8
int v4; // w10
v2 = *(__int16 **)a1;
v3 = a1[2];
if ( v3 >= *(__int16 *)(*(_QWORD *)a1 + 2LL) )
return &unk_11F778;
v4 = *v2;
if ( v4 <= a2 )
return &unk_11F778;
else
return (void *)(*((_QWORD *)v2 + 1) + 4LL * (a2 + v3 * v4));
}