//
// sub_1005085F4 from 0x1005085f4 to 0x100508674 (128 bytes)
//
// 4 xrefs:
// > sub_10045C264 @ 0x10045c488
// > sub_10045C914 @ 0x10045cb18
// > sub_10045DC60 @ 0x10045de64
// > sub_10045DC60 @ 0x10045dec0
//
// 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_1005085F4(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6)
{
__int64 result; // x0
unsigned int v13; // w19
result = sub_100442B9C(*(_QWORD *)(a1 + 8), 0);
if ( !(_DWORD)result )
{
v13 = (*(__int64 (__fastcall **)(__int64, __int64, __int64, __int64, __int64))(a1 + 368))(a2, a3, a4, a5, a6);
LODWORD(result) = sub_100442C1C(*(_QWORD *)(a1 + 8));
if ( (_DWORD)result )
return (unsigned int)result;
else
return v13;
}
return result;
}