//
// sub_B1E14 from 0xb1e14 to 0xb1ec4 (176 bytes)
//
// 1 xrefs:
// > sub_B2530 @ 0xb2534
//
// 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:37 +0000
//
__int64 __fastcall sub_B1E14(__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 + 620) = cosf((float)(int)i * 0.00019175);
v3 = 0;
v4 = *(_DWORD *)(*(_QWORD *)(a1 + 168) + 1744LL);
*(_DWORD *)(a1 + 616) = 0;
*(_OWORD *)(a1 + 576) = 0u;
*(_DWORD *)(a1 + 612) = v4;
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_B1EC4(a1);
return 0;
}