//
// sub_100586A38 from 0x100586a38 to 0x100586a7c (68 bytes)
//
// 0 xrefs:
//
// 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 11:08:32 +0000
//
__int64 __fastcall sub_100586A38(__int64 a1, __int64 a2, unsigned __int64 a3)
{
__int64 v3; // x8
int v4; // w9
unsigned int v5; // w8
v3 = *(_QWORD *)(a1 + 8);
v4 = *(_DWORD *)(v3 + 12);
v5 = *(_DWORD *)(v3 + 8) - 1;
if ( v5 <= 4 )
a3 = (qword_100772450[v5] * (unsigned __int64)(unsigned int)a3) >> 3;
return sub_1005D0A20(*(_QWORD *)(a1 + 368), (unsigned int)(*(_DWORD *)(a1 + 272) + a3 * v4), 0);
}