//
// sub_1004AF1F0 from 0x1004af1f0 to 0x1004af230 (64 bytes)
//
// 1 xrefs:
// > FMOD::Geometry::getPolygonNumVertices @ 0x1004ad98c
//
// 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_1004AF1F0(__int64 a1, unsigned int a2, _DWORD *a3)
{
__int64 result; // x0
if ( (a2 & 0x80000000) != 0 || *(_DWORD *)(a1 + 44) <= (signed int)a2 )
return 31;
result = 0;
if ( a3 )
*a3 = *(unsigned __int16 *)(*(_QWORD *)(a1 + 64) + *(int *)(*(_QWORD *)(a1 + 48) + 4LL * a2) + 184LL);
return result;
}