//
// sub_10056FE7C from 0x10056fe7c to 0x10056feec (112 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009d5598
//
// 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:08:17 +0000
//
__int64 __fastcall sub_10056FE7C(__int64 *a1, int a2, int a3)
{
__int64 v3; // x8
int v4; // w9
float v6; // s1
float v7; // s0
if ( a2 != 10 )
return 31;
v3 = *a1;
v4 = a3 != 0;
if ( *(unsigned __int8 *)(*a1 + 649) == v4 )
return 0;
*(_BYTE *)(v3 + 649) = v4;
if ( a3 )
{
v6 = *(float *)(v3 + 560);
v7 = *(float *)(v3 + 564);
if ( v6 >= v7 )
v6 = *(float *)(v3 + 564);
}
else
{
v6 = *(float *)(v3 + 552);
v7 = *(float *)(v3 + 556);
}
*(float *)(v3 + 672) = v6;
*(float *)(v3 + 676) = v7;
++*(_DWORD *)(v3 + 636);
return 0;
}