//
// sub_1005678EC from 0x1005678ec to 0x100567930 (68 bytes)
//
// 1 xrefs:
// > sub_100565B84 @ 0x1005674d4
//
// 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:12 +0000
//
__int64 __fastcall sub_1005678EC(__int64 a1, unsigned int a2, unsigned int *a3)
{
unsigned int v3; // w8
unsigned int v4; // w9
v3 = *(_DWORD *)(a1 + 104);
if ( !v3 )
return 31;
v4 = *(_DWORD *)(a1 + 40) - 1;
if ( v4 <= 4 )
a2 = (unsigned int)(8 * (unsigned __int64)a2 / qword_1007722E8[v4]) / v3;
*a3 = a2;
return 0;
}