//
// sub_47A8C from 0x47a8c to 0x47ab2 (38 bytes)
//
// 7 xrefs:
// > sub_46B58 @ 0x475d2
// > sub_46B58 @ 0x47888
// > sub_8D6F4 @ 0x8d7b0
// > sub_8D6F4 @ 0x8d828
// > sub_8D6F4 @ 0x8dc4e
// > sub_8E048 @ 0x8e0aa
// > sub_8E048 @ 0x8e0be
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:40:39 +0000
//
void *__fastcall sub_47A8C(__int64 *a1, int a2)
{
__int64 v2; // kr00_8
int v3; // r3
v2 = *a1;
if ( SHIDWORD(v2) >= *(__int16 *)(v2 + 2) )
return &unk_F2434;
v3 = *(__int16 *)v2;
if ( v3 <= a2 )
return &unk_F2434;
else
return (void *)(*(_DWORD *)(v2 + 4) + 4 * (a2 + HIDWORD(v2) * v3));
}