//
// sub_1005D2B08 from 0x1005d2b08 to 0x1005d2b78 (112 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009abac0
//
// 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_1005D2B08(_QWORD *a1, __int64 a2)
{
__int64 result; // x0
__int64 (__fastcall *v3)(_QWORD, __int64, _QWORD); // x9
if ( a1[67] || !a1[65] && *(_QWORD *)(a1[51] + 70152LL) )
return 0;
v3 = (__int64 (__fastcall *)(_QWORD, __int64, _QWORD))a1[66];
if ( !v3 )
{
v3 = *(__int64 (__fastcall **)(_QWORD, __int64, _QWORD))(a1[51] + 70144LL);
if ( !v3 )
return 0;
}
result = v3(a1[69], a2, a1[70]);
if ( !(_DWORD)result )
return 0;
return result;
}