//
// sub_BCA88 from 0xbca88 to 0xbcb3c (180 bytes)
//
// 1 xrefs:
// > sub_BB7C4 @ 0xbb7c8
//
// This function is hookable on this platform (idp: arm, 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 12:14:41 +0000
//
__int64 __fastcall sub_BCA88(__int64 a1)
{
__int64 v2; // x20
__int64 v3; // x21
__int64 v4; // x22
__int64 v5; // x20
__int64 v6; // x8
__int64 result; // x0
v2 = 0;
v3 = a1 + 49696;
v4 = a1 + 544;
while ( v2 != 0x2000 )
{
*(float *)(v4 + 4 * v2) = cosf((float)(int)v2 * 0.00019175);
++v2;
}
v5 = 0;
*(_QWORD *)(v3 + 16) = 0;
*(_DWORD *)(v3 + 8) = 4;
*(_DWORD *)v3 = 1065353216;
while ( 1 )
{
v6 = *(_QWORD *)(a1 + 232);
if ( v5 >= *(int *)(v6 + 96) )
break;
result = sub_CBD5C(a1, (unsigned int)v5, *(float *)(*(_QWORD *)(*(_QWORD *)(v6 + 104) + 8 * v5) + 56LL));
++v5;
if ( (_DWORD)result )
return result;
}
return 0;
}