//
// sub_10000D824 from 0x10000d824 to 0x10000d888 (100 bytes)
//
// 2 xrefs:
// > sub_10001033C @ 0x100010368
// > sub_100402770 @ 0x100402bd4
//
// 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 10:57:15 +0000
//
__int64 __fastcall sub_10000D824(__int64 result, float a2)
{
float v2; // s0
float v3; // s0
float v4; // s1
float v5; // s2
if ( (*(_BYTE *)(result + 12) & 1) == 0 && (*(_BYTE *)(result + 13) & 1) == 0 )
{
v2 = *(float *)(result + 16) + a2;
*(float *)(result + 16) = v2;
v3 = v2 + *(float *)(result + 36);
v4 = *(float *)result;
v5 = 1.0;
if ( v3 < *(float *)result )
{
v5 = 0.0;
if ( v3 > 0.0 )
v5 = v3 / v4;
}
*(float *)(result + 24) = *(float *)(result + 4)
+ (float)((float)(*(float *)(result + 8) - *(float *)(result + 4)) * v5);
*(_BYTE *)(result + 12) = v3 >= v4;
}
return result;
}