//
// sub_180053BD0 from 0x180053bd0 to 0x180053cc1 (241 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801ac190
// > ??> @ 0x1801f8bbc
//
// 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:18 +0000
//
void __fastcall sub_180053BD0(_QWORD *a1)
{
__int64 v1; // rbx
int v2; // edi
float *v3; // rsi
float v4; // xmm0_4
__int64 v5; // rax
unsigned int v6; // edi
__int64 v7; // rsi
int v8; // eax
v1 = *a1;
v2 = 0;
v3 = (float *)(*a1 + 640LL);
do
{
v4 = cosf((float)v2++ * 0.0001917476);
*v3++ = v4;
}
while ( v2 < 0x2000 );
if ( v1 != -612 )
*(_DWORD *)(v1 + 612) = *(_DWORD *)(*(_QWORD *)(v1 + 168) + 1744LL);
v5 = *(_QWORD *)(v1 + 232);
v6 = 0;
*(_DWORD *)(v1 + 616) = 0;
*(_QWORD *)(v1 + 576) = 0;
*(_QWORD *)(v1 + 592) = 0;
*(_DWORD *)(v1 + 604) = 0;
if ( *(int *)(v5 + 96) <= 0 )
{
LABEL_9:
sub_1800547E0(v1);
}
else
{
v7 = 0;
while ( 1 )
{
sub_18009C0C0(v1, v6);
if ( v8 )
break;
++v6;
v7 += 8;
if ( (signed int)v6 >= *(_DWORD *)(*(_QWORD *)(v1 + 232) + 96LL) )
goto LABEL_9;
}
}
}