//
// sub_1800E7460 from 0x1800e7460 to 0x1800e7522 (194 bytes)
//
// 4 xrefs:
// > FMOD::System::setGeometrySettings @ 0x1800b12d3
// > ??> @ 0x18018da84
// > ??> @ 0x18018da94
// > ??> @ 0x1801ffed0
//
// This function is hookable on this platform (idp: pc, 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 10:54:18 +0000
//
__int64 __fastcall sub_1800E7460(__int64 a1, float a2)
{
__int64 result; // rax
_QWORD *v4; // rdi
_QWORD *v5; // rbx
if ( (LODWORD(a2) & 0x7F800000) == 0x7F800000 )
return 29;
if ( a2 <= 0.0 )
return 31;
result = sub_1800D1590(a1 + 73264, a2);
if ( !(_DWORD)result )
{
v4 = *(_QWORD **)(a1 + 73256);
if ( v4 )
{
do
{
sub_1800D2C70((__int64)v4);
v4 = (_QWORD *)*v4;
v5 = *(_QWORD **)(a1 + 73256);
}
while ( v4 != v5 );
while ( 1 )
{
result = sub_1800D4140((__int64)v5);
if ( (_DWORD)result )
break;
v5 = (_QWORD *)*v5;
if ( v5 == *(_QWORD **)(a1 + 73256) )
return 0;
}
}
else
{
return 0;
}
}
return result;
}