//
// sub_1005DA92C from 0x1005da92c to 0x1005daa18 (236 bytes)
//
// 7 xrefs:
// > sub_1005FD49C @ 0x1005fd530
// > sub_1005FD49C @ 0x1005fd5d0
// > sub_1005FD49C @ 0x1005fd700
// > sub_1005FD49C @ 0x1005fd7b8
// > sub_1005FD49C @ 0x1005fd968
// > sub_1005FD49C @ 0x1005fda3c
// > sub_100611CB0 @ 0x100611d84
//
// 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_1005DA92C(__int64 a1, __int64 a2, __int64 a3)
{
__int64 (__fastcall *v6)(__int64, __int64, __int64, __int64, _QWORD, __int64); // x22
__int64 result; // x0
__int64 v8; // x2
__int64 v9; // x4
if ( !a1 || !*(_QWORD *)a1 || !*(_QWORD *)(*(_QWORD *)a1 + 40LL) )
{
v8 = 121;
v9 = 289;
goto LABEL_10;
}
v6 = *(__int64 (__fastcall **)(__int64, __int64, __int64, __int64, _QWORD, __int64))(a1 + 8);
if ( !v6 || (result = v6(a1, 5, a2, a3, 0, 1), (int)result >= 1) )
{
if ( *(_DWORD *)(a1 + 24) )
{
result = (*(__int64 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 40LL))(a1, a2, a3);
if ( v6 )
return v6(a1, 133, a2, a3, 0, (int)result);
return result;
}
v8 = 120;
v9 = 299;
LABEL_10:
sub_1005E0E48(32, 104, v8, "bio_lib.c", v9);
return 4294967294LL;
}
return result;
}