//
// sub_180069DE0 from 0x180069de0 to 0x180069e8a (170 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801acba0
// > ??> @ 0x1801f95c4
//
// 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_180069DE0(_QWORD *a1)
{
__int64 v1; // rsi
int v2; // ebx
float *v3; // rdi
float v4; // xmm0_4
__int64 v5; // rax
unsigned int v6; // ebx
__int64 i; // rdi
_DWORD *v8; // rcx
__int64 result; // rax
v1 = *a1;
v2 = 0;
v3 = (float *)(*a1 + 1236LL);
do
{
v4 = cosf((float)v2++ * 0.0001917476);
*v3++ = v4;
}
while ( v2 < 0x2000 );
v5 = *(_QWORD *)(v1 + 232);
v6 = 0;
if ( *(int *)(v5 + 96) <= 0 )
return 0;
for ( i = 0; ; i += 8 )
{
v8 = *(_DWORD **)(i + *(_QWORD *)(v5 + 104));
if ( *v8 == 1 )
{
result = sub_18009C140(v1, v6, (unsigned int)v8[14]);
if ( (_DWORD)result )
break;
}
v5 = *(_QWORD *)(v1 + 232);
if ( (signed int)++v6 >= *(_DWORD *)(v5 + 96) )
return 0;
}
return result;
}