//
// sub_1005D2AB8 from 0x1005d2ab8 to 0x1005d2b08 (80 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009abab8
//
// 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_1005D2AB8(__int64 a1, __int64 a2, __int64 a3, __int64 a4)
{
__int64 (__fastcall *v5)(_QWORD, __int64, __int64, __int64, _QWORD); // x8
__int64 result; // x0
v5 = *(__int64 (__fastcall **)(_QWORD, __int64, __int64, __int64, _QWORD))(a1 + 520);
if ( v5
|| (v5 = *(__int64 (__fastcall **)(_QWORD, __int64, __int64, __int64, _QWORD))(*(_QWORD *)(a1 + 408) + 70136LL)) != nullptr )
{
result = v5(*(_QWORD *)(a1 + 552), a2, a3, a4, *(_QWORD *)(a1 + 560));
}
else
{
result = 0;
}
*(_DWORD *)(a1 + 476) = result;
return result;
}