//
// sub_4DC98 from 0x4dc98 to 0x4dd08 (112 bytes)
//
// 2 xrefs:
// > sub_4E314 @ 0x4e576
// > FMOD::Geometry::getPolygonAttributes @ 0xb2778
//
// 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_4DC98(_DWORD *a1, int a2, _DWORD *a3, _DWORD *a4, _BYTE *a5)
{
int v9; // r0
int v11; // [sp+0h] [bp-18h] BYREF
char v12; // [sp+4h] [bp-14h]
if ( a2 < 0 || a1[7] <= a2 )
return 31;
v11 = *(_DWORD *)(a1[3] + 332);
j_FMOD_OS_CriticalSection_Enter(v11);
v12 = 1;
v9 = *(_DWORD *)(a1[8] + 4 * a2) + a1[10];
if ( a3 )
*a3 = *(_DWORD *)(v9 + 136);
if ( a4 )
*a4 = *(_DWORD *)(v9 + 140);
if ( a5 )
*a5 = *(_BYTE *)(v9 + 146) & 1;
sub_44984((int)&v11);
return 0;
}