//
// sub_5DE2C from 0x5de2c to 0x5de68 (60 bytes)
//
// 2 xrefs:
// > sub_5E794 @ 0x5e944
// > FMOD::Geometry::getPolygonNumVertices @ 0xd5184
//
// 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 12:13:52 +0000
//
__int64 __fastcall sub_5DE2C(__int64 a1, int a2, _DWORD *a3)
{
__int64 result; // x0
if ( a2 < 0 || *(_DWORD *)(a1 + 44) <= a2 )
return 31;
result = 0;
if ( a3 )
*a3 = *(unsigned __int16 *)(*(_QWORD *)(a1 + 64) + *(int *)(*(_QWORD *)(a1 + 48) + 4LL * a2) + 184LL);
return result;
}