//
// sub_1005D3CCC from 0x1005d3ccc to 0x1005d3d58 (140 bytes)
//
// 2 xrefs:
// > ??> @ 0x10083b330
// > ??> @ 0x10083b400
//
// 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_1005D3CCC(__int64 a1, __int64 a2, int a3)
{
int v3; // w19
__int64 v4; // x0
v3 = a1;
if ( *(_UNKNOWN **)(a1 + 16) == &unk_10083B398 )
v4 = sub_1005D227C(nullptr, a2, a3);
else
v4 = sub_1005D2264(0, a2, a3);
if ( v4 )
{
sub_1005E97F4(v3);
return 1;
}
else
{
sub_1005E0E48(5, 107, 5, "dh_ameth.c", 321);
return 0;
}
}