//
// sub_1800D22A0 from 0x1800d22a0 to 0x1800d22d5 (53 bytes)
//
// 1 xrefs:
// > FMOD::Geometry::getPolygonNumVertices @ 0x1800a44a7
//
// This function is hookable on this platform (idp: pc, 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 10:54:09 +0000
//
__int64 __fastcall sub_1800D22A0(__int64 a1, int a2, _DWORD *a3)
{
if ( a2 < 0 || a2 >= *(_DWORD *)(a1 + 44) )
return 31;
if ( a3 )
*a3 = *(unsigned __int16 *)(*(int *)(*(_QWORD *)(a1 + 48) + 4LL * a2) + *(_QWORD *)(a1 + 64) + 184LL);
return 0;
}