//
// sub_1004F9BD0 from 0x1004f9bd0 to 0x1004f9c48 (120 bytes)
//
// 1 xrefs:
// > sub_1004F962C @ 0x1004f965c
//
// 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_1004F9BD0(__int64 a1, int a2, int a3, int8x8_t *a4, _DWORD *a5)
{
__int64 result; // x0
unsigned int v10; // [xsp+Ch] [xbp-24h] BYREF
v10 = 0;
result = sub_1004AA8B8(*(_QWORD *)(a1 + 368), a2, 0);
if ( !(_DWORD)result )
{
LODWORD(result) = sub_1004AA0BC(*(_QWORD *)(a1 + 368), a4, 1u, a3, &v10);
if ( (_DWORD)result == 16 )
result = 0;
else
result = (unsigned int)result;
if ( !(_DWORD)result )
*a5 = v10;
}
return result;
}