//
// sub_58B74 from 0x58b74 to 0x58be0 (108 bytes)
//
// 1 xrefs:
// > ??> @ 0x10c4c0
//
// 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_58B74(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6)
{
__int64 v7; // x0
__int64 v8; // x1
signed int v9; // w2
signed int v10; // w3
unsigned int v11; // w4
char v12; // w5
__int64 result; // x0
__int64 v14; // x0
if ( (a6 & 1) == 0
|| (v7 = sub_59420(a1, a2, a3, a4, a5, 1), result = sub_5614C(v7, v8, v9, v10, v11, v12), !(_DWORD)result) )
{
v14 = sub_59420(*(_QWORD *)(a1 + 112), a2, a3, a4, a5, a6);
return sub_B0C20(v14);
}
return result;
}