//
// sub_B1770 from 0xb1770 to 0xb1814 (164 bytes)
//
// 1 xrefs:
// > sub_B1BE8 @ 0xb1bec
//
// 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_B1770(__int64 a1)
{
__int64 v2; // x20
__int64 v3; // x21
__int64 i; // x20
__int64 v5; // x8
_DWORD *v6; // x8
__int64 result; // x0
v2 = 0;
v3 = a1 + 1236;
while ( v2 != 0x2000 )
{
*(float *)(v3 + 4 * v2) = cosf((float)(int)v2 * 0.00019175);
++v2;
}
for ( i = 0; ; ++i )
{
v5 = *(_QWORD *)(a1 + 232);
if ( i >= *(int *)(v5 + 96) )
break;
v6 = *(_DWORD **)(*(_QWORD *)(v5 + 104) + 8 * i);
if ( *v6 == 1 )
{
result = sub_CBDCC(a1, (unsigned int)i, (unsigned int)v6[14]);
if ( (_DWORD)result )
return result;
}
}
return 0;
}