//
// sub_1800E9120 from 0x1800e9120 to 0x1800e91e9 (201 bytes)
//
// 4 xrefs:
// > ??> @ 0x18018de04
// > ??> @ 0x18018de14
// > ??> @ 0x1801afe28
// > ??> @ 0x180200008
//
// 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_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;
}