//
// sub_72AE4 from 0x72ae4 to 0x72b60 (124 bytes)
//
// 2 xrefs:
// > sub_727EC @ 0x728d0
// > ??> @ 0x114730
//
// 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:00 +0000
//
__int64 __fastcall sub_72AE4(__int64 a1, int a2)
{
__int64 v2; // x19
__int64 v3; // x0
float v4; // s0
float v5; // s1
char v6; // zf
char v7; // nf
char v8; // vf
__int64 result; // x0
__int64 v10; // x0
float v11; // s0
float v12; // s1
v2 = *(_QWORD *)(a1 + 8);
if ( a2 == 2 )
{
v10 = sub_73938(0.05);
sub_73918(v10);
result = 0;
if ( v7 ^ v8 | v6 )
v11 = v12;
*(float *)(v2 + 44) = v11;
}
else if ( a2 == 1 )
{
v3 = sub_73938(0.05);
sub_73918(v3);
if ( v7 ^ v8 | v6 )
v4 = v5;
*(float *)(v2 + 40) = v4;
return 0;
}
else
{
return 31;
}
return result;
}