//
// sub_1001CF088 from 0x1001cf088 to 0x1001cf0f4 (108 bytes)
//
// 2 xrefs:
// > sub_1001CE6A8 @ 0x1001ceca8
// > sub_1001CE6A8 @ 0x1001ced88
//
// 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:00:22 +0000
//
__int64 __fastcall sub_1001CF088(__int64 a1, __int64 a2)
{
int v3; // w0
__n128 v4; // q0
float v5; // s1
*(_BYTE *)(a1 + 676) = 1;
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
v5 = 1.0;
if ( !v3 )
v5 = -1.0;
v4.n128_f32[0] = *(float *)(a1 + 664) + v5;
if ( *(float *)(a1 + 668) >= v4.n128_f32[0] )
v4.n128_u32[0] = *(_DWORD *)(a1 + 668);
if ( *(float *)(a1 + 672) <= v4.n128_f32[0] )
v4.n128_u32[0] = *(_DWORD *)(a1 + 672);
*(_DWORD *)(a1 + 664) = v4.n128_u32[0];
return sub_1001CF0F4(a1, v4);
}