//
// sub_180076390 from 0x180076390 to 0x18007648d (253 bytes)
//
// 4 xrefs:
// > ??> @ 0x180183bc4
// > ??> @ 0x180183bd4
// > ??> @ 0x1801ad6b0
// > ??> @ 0x1801f9ba0
//
// 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
//
void __fastcall sub_180076390(__int64 *a1)
{
__int64 v1; // rdi
unsigned int v2; // ebx
__int64 v3; // rax
__int64 v4; // rsi
int v5; // eax
float v6; // xmm1_4
int v7; // xmm7_4
int v8; // xmm6_4
v1 = *a1;
v2 = 0;
v3 = *(_QWORD *)(*a1 + 232);
*(_QWORD *)(v1 + 548) = 1045220557;
*(_DWORD *)(v1 + 556) = 1065353216;
if ( *(int *)(v3 + 96) <= 0 )
{
LABEL_5:
sub_180077C80(v1);
v6 = *(float *)(v1 + 1104);
v7 = *(_DWORD *)(v1 + 1096);
v8 = *(_DWORD *)(v1 + 1100);
*(float *)(v1 + 552) = v6;
*(_DWORD *)(v1 + 544) = v7;
*(_DWORD *)(v1 + 548) = v8;
*(float *)(v1 + 556) = powf(10.0, v6 * 0.050000001);
sub_180077E50(v1);
}
else
{
v4 = 0;
while ( 1 )
{
sub_18009C0C0(v1, v2);
if ( v5 )
break;
++v2;
v4 += 8;
if ( (signed int)v2 >= *(_DWORD *)(*(_QWORD *)(v1 + 232) + 96LL) )
goto LABEL_5;
}
}
}