//
// sub_BA87C from 0xba87c to 0xba920 (164 bytes)
//
// 1 xrefs:
// > sub_BA998 @ 0xba99c
//
// 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_BA87C(__int64 a1, int a2, _QWORD *a3, _DWORD *a4, _BYTE *a5)
{
__int64 result; // x0
if ( a2 != 19 )
return 31;
sub_75BF4(
*(unsigned int *)(a1 + 956),
(float *)(a1 + 580),
*(float *)(a1 + 1008),
*(float *)(a1 + 960),
*(float *)(a1 + 964),
*(float *)(*(_QWORD *)(a1 + 168) + 69112LL));
result = 0;
*(float *)(a1 + 580) = (float)(1.0 - *(float *)(a1 + 976)) + (float)(*(float *)(a1 + 580) * *(float *)(a1 + 976));
*a3 = a1 + 580;
*a4 = 8;
if ( a5 )
*a5 = 0;
return result;
}