//
// sub_1005D2730 from 0x1005d2730 to 0x1005d2834 (260 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009ab9b8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:09:32 +0000
//
__int64 __fastcall sub_1005D2730(__int64 a1, int a2)
{
__int64 result; // x0
_BYTE v5[2048]; // [xsp+18h] [xbp-848h] BYREF
bzero(v5, 0x800u);
result = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 72LL))(a1, 0);
if ( !(_DWORD)result )
{
result = sub_1005D10B8(
result,
a1 + 608,
a1 + 2656,
2047,
a1 + 4736,
4096,
(_WORD *)(a1 + 8832),
(__int64)v5,
2047,
nullptr);
if ( !(_DWORD)result )
{
result = sub_1005D1420(
a1,
(unsigned __int8)a1 + 96,
a1 + 2656,
(__int64)v5,
(_BYTE *)(a1 + 4736),
*(unsigned __int16 *)(a1 + 8832),
nullptr,
a2);
if ( !(_DWORD)result )
*(_DWORD *)(a1 + 504) = a2;
}
}
return result;
}