//
// sub_A668C from 0xa668c to 0xa6744 (184 bytes)
//
// 1 xrefs:
// > sub_A6F48 @ 0xa6f4c
//
// 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_A668C(__int64 a1)
{
__int64 i; // x20
__int64 v3; // x20
int v4; // w8
__int64 v5; // x8
__int64 result; // x0
for ( i = 0; i != 0x2000; ++i )
*(float *)(a1 + 4 * i + 640) = cosf((float)(int)i * 0.00019175);
v3 = 0;
v4 = *(_DWORD *)(*(_QWORD *)(a1 + 168) + 1744LL);
*(_DWORD *)(a1 + 616) = 0;
*(_QWORD *)(a1 + 576) = 0;
*(_QWORD *)(a1 + 592) = 0;
*(_DWORD *)(a1 + 612) = v4;
*(_DWORD *)(a1 + 604) = 0;
while ( 1 )
{
v5 = *(_QWORD *)(a1 + 232);
if ( v3 >= *(int *)(v5 + 96) )
break;
result = sub_CBD5C(a1, (unsigned int)v3, *(float *)(*(_QWORD *)(*(_QWORD *)(v5 + 104) + 8 * v3) + 56LL));
++v3;
if ( (_DWORD)result )
return result;
}
sub_A6744(a1);
return 0;
}