//
// sub_10047B7A4 from 0x10047b7a4 to 0x10047b7f8 (84 bytes)
//
// 0 xrefs:
//
// 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
//
__int64 __fastcall sub_10047B7A4(__int64 a1, __int64 a2, unsigned __int64 a3, int a4)
{
unsigned int v4; // w9
if ( (_DWORD)a3 && a4 != 8 )
{
v4 = *(_DWORD *)(*(_QWORD *)(a1 + 8) + 8LL) - 1;
if ( v4 <= 4 )
a3 = (qword_10064A108[v4] * (unsigned __int64)(unsigned int)a3) >> 3;
LODWORD(a3) = a3 * *(_DWORD *)(*(_QWORD *)(a1 + 8) + 12LL);
}
return sub_1004AA8B8(*(_QWORD *)(a1 + 368), (unsigned int)(*(_DWORD *)(a1 + 272) + a3), 0);
}