//
// sub_180077F30 from 0x180077f30 to 0x180077ff5 (197 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801ad7b0
// > ??> @ 0x1801f9c30
//
// 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
//
void __fastcall sub_180077F30(_QWORD *a1)
{
__int64 v1; // rdi
int v2; // ebx
float *v3; // rsi
float v4; // xmm0_4
__int64 v5; // rax
unsigned int v6; // ebx
__int64 v7; // rsi
int v8; // eax
v1 = *a1;
v2 = 0;
v3 = (float *)(*a1 + 544LL);
do
{
v4 = cosf((float)v2++ * 0.0001917476);
*v3++ = v4;
}
while ( v2 < 0x2000 );
v5 = *(_QWORD *)(v1 + 232);
v6 = 0;
*(_DWORD *)(v1 + 49704) = 4;
*(_QWORD *)(v1 + 49712) = 0;
*(_DWORD *)(v1 + 49696) = 1065353216;
if ( *(int *)(v5 + 96) > 0 )
{
v7 = 0;
do
{
sub_18009C0C0(v1, v6);
if ( v8 )
break;
++v6;
v7 += 8;
}
while ( (signed int)v6 < *(_DWORD *)(*(_QWORD *)(v1 + 232) + 96LL) );
}
}