//
// FMOD::Geometry::addPolygon from 0x1004ad868 to 0x1004ad8dc (116 bytes)
//
// 1 xrefs:
// > sub_100454458 @ 0x100454464
//
// 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
//
// local variable allocation has failed, the output may be wrong!
FMOD_RESULT __fastcall FMOD::Geometry::addPolygon(
FMOD::Geometry *a1,
float a2,
float a3,
bool a4,
int a5,
const FMOD_VECTOR *a6,
int *a7)
{
__int64 v9; // x21
_BOOL8 v10; // x22
FMOD_RESULT result; // w0
__int64 v14; // [xsp+8h] [xbp-38h] BYREF
v9 = *(_QWORD *)&a5;
v10 = a4;
result = (unsigned int)sub_1004B0E44(a1, &v14);
if ( result == FMOD_OK )
return (unsigned int)sub_1004AF024(v14, v10, v9, a6, a7, a2, a3);
return result;
}