//
// sub_73D48 from 0x73d48 to 0x73db8 (112 bytes)
//
// 3 xrefs:
// > sub_73DB8 @ 0x73dd4
// > sub_74480 @ 0x74674
// > sub_74480 @ 0x74688
//
// 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_73D48(__int64 a1, __int64 a2, __int64 a3)
{
unsigned int v3; // w8
float v4; // s0
float v5; // s1
float v6; // s2
float v7; // w8
float v8; // s3
bool v9; // cc
float v10; // s0
v3 = 31;
if ( a2 && a3 )
{
*(_QWORD *)a1 = a2;
*(_QWORD *)(a1 + 8) = a3;
v4 = *(float *)(a2 + 4);
v5 = *(float *)(a3 + 4);
v6 = (float)(v5 + v4) * 0.5;
if ( v4 > v5 )
{
if ( v6 >= 0.0 )
v7 = -180.0;
else
v7 = 180.0;
v6 = v6 + v7;
}
v8 = v5 - v4;
v9 = v4 <= v5;
v10 = (float)(v5 - v4) + 360.0;
v3 = 0;
if ( v9 )
v10 = v8;
*(float *)(a1 + 16) = v6;
*(float *)(a1 + 20) = v10;
}
return v3;
}