//
// sub_AF334 from 0xaf334 to 0xaf33c (8 bytes)
//
// 1 xrefs:
// > ??> @ 0x118e88
//
// 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:36 +0000
//
__int64 __fastcall sub_AF334(__int64 *a1, int a2, unsigned int a3)
{
float v3; // s0
unsigned int v4; // w8
unsigned int v5; // w9
bool v6; // cf
unsigned int v7; // w9
__int64 v9; // x0
v9 = *a1;
v3 = *(float *)(v9 + 636);
if ( v3 >= 0.0 )
{
if ( a2 )
{
v5 = *(_DWORD *)(v9 + 632);
if ( !v5 )
return 11;
}
else
{
v5 = (unsigned int)(float)(v3 * (float)*(int *)(*(_QWORD *)(v9 + 168) + 1744LL));
*(_DWORD *)(v9 + 632) = v5;
}
v6 = v5 >= a3;
v7 = v5 - a3;
if ( !v6 )
v7 = 0;
v4 = 0;
*(_DWORD *)(v9 + 632) = v7;
}
else
{
return 0;
}
return v4;
}