//
// sub_180074FC0 from 0x180074fc0 to 0x18007503b (123 bytes)
//
// 1 xrefs:
// > ??> @ 0x1801ad4d0
//
// 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:31 +0000
//
__int64 __fastcall sub_180074FC0(__int64 *a1, int a2, float a3)
{
__int64 v3; // r8
int v4; // edx
float v5; // xmm1_4
__int64 result; // rax
v3 = *a1;
if ( a2 )
{
v4 = a2 - 1;
if ( v4 )
{
if ( v4 == 1 )
*(float *)(v3 + 564) = a3;
}
else
{
*(float *)(v3 + 560) = a3;
}
}
else
{
*(float *)(v3 + 556) = a3;
}
v5 = *(float *)(v3 + 556);
result = 0;
if ( v5 == 0.0 )
*(_DWORD *)(v3 + 568) = 1065353216;
else
*(float *)(v3 + 568) = 999.99994 / (float)((float)*(int *)(v3 + 552) * v5);
return result;
}