//
// sub_1004704C0 from 0x1004704c0 to 0x100470568 (168 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_1004704C0(__int64 a1, int a2, _DWORD *a3, _DWORD *a4)
{
__int64 v7; // x0
int v8; // w8
if ( !byte_100886EE8 )
{
qword_100886EE0 = (unsigned __int64)&unk_100886EFB & 0xFFFFFFFFFFFFFFF0LL;
v7 = sub_10046F4B4(1);
if ( !(unsigned int)sub_10047184C(v7) )
sub_100472558(32);
byte_100886EE8 = 1;
}
if ( a3 )
{
if ( a2 + 1 >= 0 )
v8 = a2 + 1;
else
v8 = a2 + 2;
*a3 = 18640 * (v8 >> 1);
}
if ( a4 )
*a4 = 1152;
return 0;
}