//
// FMOD::Geometry::getMaxPolygons from 0xd5130 to 0xd515c (44 bytes)
//
// 4 xrefs:
// > FMOD::Geometry::getMaxPolygons @ 0x107cdc
// > ??> @ 0x2428
// > FMOD::Geometry::getMaxPolygons @ 0x107cd4
// > ??> @ 0x110730
//
// This function is hookable on this platform (idp: arm, 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 12:14:52 +0000
//
__int64 __fastcall FMOD::Geometry::getMaxPolygons(FMOD::Geometry *this, int *a2, int *a3)
{
__int64 result; // x0
__int64 v4; // x0
_DWORD *v5; // x1
_DWORD *v6; // x2
_BYTE v7[8]; // [xsp+8h] [xbp-28h] BYREF
result = sub_D5470(this, v7, a3);
if ( !(_DWORD)result )
{
v4 = sub_D5494();
return sub_5DE10(v4, v5, v6);
}
return result;
}