//
// sub_5DE2C from 0x5de2c to 0x5de68 (60 bytes)
//
// 2 xrefs:
// > sub_5E794 @ 0x5e944
// > FMOD::Geometry::getPolygonNumVertices @ 0xd5184
//
// 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
//
__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;
}