//
// sub_180078300 from 0x180078300 to 0x180078428 (296 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801ad810
// > ??> @ 0x1801f9ce4
//
// 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_180078300(float **a1, int a2, float *a3, __int64 a4)
{
float *v5; // r9
int v6; // edx
int v7; // edx
v5 = *a1;
if ( a2 )
{
v6 = a2 - 1;
if ( v6 )
{
v7 = v6 - 1;
if ( v7 )
{
if ( v7 == 1 )
{
if ( a3 )
*a3 = (float)*((int *)v5 + 12427);
if ( a4 )
{
sub_1800B7CA0(a4, 32, "%d", *((_DWORD *)v5 + 12427));
return 0;
}
}
}
else
{
if ( a3 )
*a3 = (float)*((int *)v5 + 12426);
if ( a4 )
{
sub_1800B7CA0(a4, 32, "%d", *((_DWORD *)v5 + 12426));
return 0;
}
}
}
else
{
if ( a3 )
*a3 = (float)*((int *)v5 + 12425);
if ( a4 )
{
sub_1800B7CA0(a4, 32, "%d", *((_DWORD *)v5 + 12425));
return 0;
}
}
}
else
{
if ( a3 )
*a3 = v5[12424];
if ( a4 )
sub_1800B7CA0(a4, 32, "%.02f", v5[12424]);
}
return 0;
}