//
// sub_4DAEC from 0x4daec to 0x4db10 (36 bytes)
//
// 2 xrefs:
// > sub_4E314 @ 0x4e47c
// > FMOD::Geometry::getPolygonNumVertices @ 0xb26c4
//
// 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
//
int __fastcall sub_4DAEC(_DWORD *a1, int a2, _DWORD *a3)
{
if ( a2 < 0 || a1[7] <= a2 )
return 31;
if ( a3 )
*a3 = *(unsigned __int16 *)(a1[10] + *(_DWORD *)(a1[8] + 4 * a2) + 144);
return 0;
}