//
// sub_100494414 from 0x100494414 to 0x100494478 (100 bytes)
//
// 1 xrefs:
// > ??> @ 0x100851f78
//
// 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_100494414(__int64 *a1, int a2, int *a3, __int64 a4)
{
__int64 v5; // x8
int v6; // w9
if ( a2 )
return 31;
v5 = *a1;
v6 = *(_DWORD *)(*a1 + 564);
if ( v6 >= 6 )
v6 = 6;
if ( v6 <= 0 )
v6 = 0;
*a3 = v6;
if ( a4 )
sub_1004C6BD0(a4, off_100851EA0[*(int *)(v5 + 536)], 32);
return 0;
}