//
// sub_1800E9120 from 0x1800e9120 to 0x1800e91e9 (201 bytes)
//
// 4 xrefs:
// > ??> @ 0x18018de04
// > ??> @ 0x18018de14
// > ??> @ 0x1801afe28
// > ??> @ 0x180200008
//
// 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
//
__int64 __fastcall sub_1800E9120(__int64 *a1, int a2, float **a3, _DWORD *a4, _BYTE *a5)
{
__int64 v8; // rbx
float *v9; // rdi
if ( a2 != 19 )
return 31;
v8 = *a1;
v9 = (float *)(*a1 + 580);
sub_1800F7420(
*(_DWORD *)(*a1 + 956),
19,
(_DWORD)a3,
(_DWORD)a4,
(__int64)v9,
*(_DWORD *)(*(_QWORD *)(*a1 + 168) + 69112LL));
*v9 = (float)(*(float *)(v8 + 976) * *v9) + (float)(1.0 - *(float *)(v8 + 976));
*a3 = v9;
*a4 = 8;
if ( a5 )
*a5 = 0;
return 0;
}