//
// sub_73DB8 from 0x73db8 to 0x73e84 (204 bytes)
//
// 3 xrefs:
// > sub_74480 @ 0x74608
// > sub_74480 @ 0x74660
// > sub_75F04 @ 0x75f10
//
// 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:01 +0000
//
__int64 __fastcall sub_73DB8(__int64 a1, float *a2, float *a3)
{
__int64 result; // x0
float v7; // s0
float v8; // s1
float v10; // s0
float v11; // s0
float v12; // s1
float v13; // s0
result = sub_73D48(a1, (__int64)a2, (__int64)a3);
if ( !(_DWORD)result )
{
v7 = a3[1];
v8 = a2[1];
if ( (float)(v7 - v8) > 181.0 )
return 31;
if ( v8 > v7 && (float)(v8 - v7) < 179.0 )
{
return 31;
}
else
{
v10 = *(float *)(a1 + 20);
if ( v10 > 179.0 || v10 <= 0.0 )
{
*(_QWORD *)(a1 + 24) = 0;
return 0;
}
else
{
v11 = -(float)((float)(a3[2] * a2[4]) - (float)(a3[4] * a2[2]));
v12 = 1.0 / v11;
if ( v11 <= 0.0 )
v13 = -1.0;
else
v13 = 1.0;
*(float *)(a1 + 24) = v12;
*(float *)(a1 + 28) = v13;
return 0;
}
}
}
return result;
}