//
// 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!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
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));
}