//
// sub_1800764B0 from 0x1800764b0 to 0x18007650d (93 bytes)
//
// 1 xrefs:
// > ??> @ 0x1801ad6f0
//
// 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:53:32 +0000
//
__int64 __fastcall sub_1800764B0(float **a1, int a2, float a3)
{
float *v3; // r8
int v4; // ecx
int v5; // edx
__int64 result; // rax
v3 = *a1;
v4 = *(_DWORD *)(*((_QWORD *)*a1 + 21) + 1744LL);
if ( a2 )
{
v5 = a2 - 1;
if ( v5 )
{
result = 0;
if ( v5 == 1 )
v3[276] = a3;
}
else
{
v3[275] = a3;
return 0;
}
}
else
{
v3[274] = fminf((float)((float)v4 * 0.5) - 100.0, a3);
return 0;
}
return result;
}