//
// sub_10046005C from 0x10046005c to 0x1004600a0 (68 bytes)
//
// 1 xrefs:
// > sub_10045FFDC @ 0x100460028
//
// 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_10046005C(__int64 a1, __int64 a2, unsigned __int64 a3)
{
__int64 v3; // x8
int v4; // w9
int v5; // w8
v3 = *(_QWORD *)(a1 + 8);
v4 = *(_DWORD *)(v3 + 12);
v5 = *(_DWORD *)(v3 + 8) - 1;
if ( (unsigned int)v5 <= 4 )
a3 = (qword_100649450[v5] * (unsigned __int64)(unsigned int)a3) >> 3;
return sub_1004AA8B8(*(_QWORD *)(a1 + 368), (unsigned int)(*(_DWORD *)(a1 + 272) + a3 * v4), 0);
}