//
// sub_BACE4 from 0xbace4 to 0xbada8 (196 bytes)
//
// 1 xrefs:
// > sub_BB758 @ 0xbb75c
//
// 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:40 +0000
//
__int64 __fastcall sub_BACE4(__int64 a1)
{
__int64 v2; // x20
__int64 v3; // x8
__int64 result; // x0
float v5; // s0
float v6; // w20
float v7; // w21
long double v8; // q0
v2 = 0;
*(_QWORD *)(a1 + 548) = 1045220557;
*(_DWORD *)(a1 + 556) = 1065353216;
while ( 1 )
{
v3 = *(_QWORD *)(a1 + 232);
if ( v2 >= *(int *)(v3 + 96) )
break;
result = sub_CBD5C(a1, (unsigned int)v2, *(float *)(*(_QWORD *)(*(_QWORD *)(v3 + 104) + 8 * v2) + 56LL));
++v2;
if ( (_DWORD)result )
return result;
}
sub_BADA8(a1);
v5 = *(float *)(a1 + 1104);
v6 = *(float *)(a1 + 1096);
v7 = *(float *)(a1 + 1100);
*(float *)(a1 + 552) = v5;
*(float *)(a1 + 544) = v6;
*(float *)(a1 + 548) = v7;
*(float *)&v8 = powf(10.0, v5 * 0.05);
*(_DWORD *)(a1 + 556) = LODWORD(v8);
sub_BADD4(a1, v6, v7, v8);
return 0;
}