//
// sub_4DAEC from 0x4daec to 0x4db10 (36 bytes)
//
// 2 xrefs:
// > sub_4E314 @ 0x4e47c
// > FMOD::Geometry::getPolygonNumVertices @ 0xb26c4
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:40:41 +0000
//
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;
}