//
// sub_6F850 from 0x6f850 to 0x6f8f4 (164 bytes)
//
// 1 xrefs:
// > FMOD::System::createGeometry @ 0xde9b0
//
// 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:13:59 +0000
//
__int64 __fastcall sub_6F850(__int64 a1, int a2, int a3, __int64 *a4)
{
int v4; // w21
bool v6; // cc
__int64 result; // x0
__int64 v10; // x0
__int64 v11; // x0
__int64 v12; // x0
__int64 *v13; // x8
__int64 v14; // x9
v6 = a3 < 1 || a2 < 1;
result = 31;
if ( !v6 )
{
if ( a4 )
{
result = sub_70480(31);
if ( !(_DWORD)result )
{
v10 = sub_702DC();
v11 = sub_702C8(v10);
*a4 = v11;
if ( v11 )
{
sub_5D92C(v11, a1 + 73144);
result = sub_5DB60(*a4, a2, v4);
if ( !(_DWORD)result )
{
v12 = sub_704C0();
if ( v14 )
sub_70254(v12);
*v13 = *a4;
return 0;
}
}
else
{
return 38;
}
}
}
}
return result;
}