//
// sub_1006371F0 from 0x1006371f0 to 0x100637254 (100 bytes)
//
// 0 xrefs:
//
// 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:10:31 +0000
//
__int64 __fastcall sub_1006371F0(__int64 a1, int a2, _QWORD *a3, _DWORD *a4, _BYTE *a5)
{
__int64 v5; // x8
float v6; // s0
__int64 result; // x0
if ( a2 != 2 )
return 31;
if ( *(_DWORD *)(a1 + 552) == -1 )
{
v6 = 0.0;
}
else
{
v5 = *(_QWORD *)(a1 + 568);
if ( v5 )
v6 = *(float *)(v5 + 628);
else
v6 = 1.0;
}
*(float *)(a1 + 560) = v6 * *(float *)(a1 + 544);
*a3 = a1 + 556;
*a4 = 8;
result = 0;
if ( a5 )
*a5 = 0;
return result;
}