//
// sub_1005BBB70 from 0x1005bbb70 to 0x1005bbce8 (376 bytes)
//
// 1 xrefs:
// > sub_1005BF808 @ 0x1005bf9a8
//
// 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 11:09:16 +0000
//
__int64 __fastcall sub_1005BBB70(__int64 a1, int a2)
{
int v2; // w17
dword_100A2AF78 = a2 >> 1;
dword_100A2AF7C = 1;
qword_100A28F78 = 1065353216;
*(float32x2_t *)((char *)&qword_100A28F78 + 4 * (a2 >> 2)) = vld1_dup_f32((const float *)(*(_QWORD *)(a1 + 81976)
+ 0x4000LL));
if ( a2 < 12 )
return sub_1005BBCE8();
v2 = vcvts_n_s32_f32((float)(1.0 / (float)((float)(a2 >> 2) * 8.0)) * (float)2, 0xFu);
if ( v2 < 0 )
v2 = -v2;
return ((__int64 (*)(void))((char *)&loc_1005BBC60 + 4 * byte_100773570[(unsigned __int16)(v2 & 0x7FFF) >> 13]))();
}