//
// sub_4DBDC from 0x4dbdc to 0x4dc1e (66 bytes)
//
// 2 xrefs:
// > sub_4E314 @ 0x4e4fe
// > FMOD::Geometry::getPolygonVertex @ 0xb2718
//
// 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_4DBDC(_DWORD *a1, int a2, int a3, _DWORD *a4)
{
int result; // r0
int v6; // r0
int *v7; // r0
int v8; // r1
int v9; // r2
int v10; // r4
if ( a2 < 0 )
return 31;
result = 31;
if ( a4 && a1[7] > a2 )
{
if ( a3 >= 0 )
{
v6 = *(_DWORD *)(a1[8] + 4 * a2) + a1[10];
if ( *(unsigned __int16 *)(v6 + 144) > a3 )
{
v7 = (int *)(v6 + 12 * a3 + 148);
v8 = *v7;
v9 = v7[1];
v10 = v7[2];
result = 0;
*a4 = v8;
a4[1] = v9;
a4[2] = v10;
return result;
}
}
return 31;
}
return result;
}