//
// sub_1005149A0 from 0x1005149a0 to 0x1005149f0 (80 bytes)
//
// 1 xrefs:
// > ??> @ 0x100858a48
//
// 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_1005149A0(__int64 a1, int a2, unsigned int *a3, char *a4, int a5, int a6, int a7, int a8)
{
unsigned int v8; // w8
char vars0; // [xsp+0h] [xbp+0h]
if ( a2 == 5 )
{
v8 = *(_DWORD *)(*(_QWORD *)a1 + 9732LL);
*a3 = v8;
if ( a4 )
{
if ( v8 <= 2 )
sub_1004C7414(a4, 0x20u, off_10082A640[v8], (int)a4, a5, a6, a7, a8, vars0);
}
}
return 0;
}