//
// sub_1005D0A54 from 0x1005d0a54 to 0x1005d0b04 (176 bytes)
//
// 1 xrefs:
// > ??> @ 0x10083af38
//
// 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
//
bool __fastcall sub_1005D0A54(__int64 a1, int a2)
{
int *v3; // x21
_BYTE *v4; // x22
_QWORD *v5; // x0
__int64 v6; // x20
_BOOL8 v7; // x21
_BYTE v9[24]; // [xsp+18h] [xbp-38h] BYREF
v3 = *(int **)(a1 + 40);
if ( *(_QWORD *)(a1 + 56) )
{
v4 = v9;
sub_1005ED21C(v9, a1);
}
else
{
v4 = nullptr;
}
v5 = (_QWORD *)sub_1005CE9A8();
v6 = (__int64)v5;
if ( !v5 )
return 0;
v7 = sub_1005CD3AC(v5, *v3, v3[1], *((_QWORD *)v3 + 1), 0, 0, nullptr, nullptr, nullptr, (__int64)v4);
if ( !v7 )
{
sub_1005CEB40(v6);
return 0;
}
sub_1005E97F4(a2);
return v7;
}