//
// sub_1005D0B88 from 0x1005d0b88 to 0x1005d0c14 (140 bytes)
//
// 1 xrefs:
// > ??> @ 0x10083af58
//
// 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_1005D0B88(__int64 a1, __int64 a2, _QWORD *a3, __int64 a4, __int64 a5)
{
__int64 v9; // x23
__int64 v10; // x0
__int64 v11; // x0
__int64 result; // x0
unsigned int v13; // [xsp+Ch] [xbp-34h] BYREF
v9 = *(_QWORD *)(*(_QWORD *)(a1 + 16) + 32LL);
v10 = *(_QWORD *)(*(_QWORD *)(a1 + 40) + 24LL);
if ( v10 )
v11 = sub_1005EB2A0(v10);
else
v11 = 64;
result = sub_1005CEDBC(v11, a4, a5, a2, &v13, v9);
if ( (int)result >= 1 )
{
*a3 = v13;
return 1;
}
return result;
}