//
// sub_1003B30B4 from 0x1003b30b4 to 0x1003b3124 (112 bytes)
//
// 2 xrefs:
// > PlayerObject::updateRotation @ 0x10021d560
// > PlayerObject::updateShipRotation @ 0x100224260
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
float __fastcall sub_1003B30B4(float a1, float a2, float a3)
{
float v5; // s0
float v6; // s1
float v7; // s0
_DWORD v9[2]; // [xsp+0h] [xbp-30h] BYREF
_DWORD v10[2]; // [xsp+8h] [xbp-28h] BYREF
__float2 v11; // 0:kr00_8.8
__float2 v12; // 0:kr08_8.8
v11 = __sincosf_stret(a1 * 0.5);
v10[0] = LODWORD(v11.__cosval);
v10[1] = LODWORD(v11.__sinval);
v12 = __sincosf_stret(a2 * 0.5);
v9[0] = LODWORD(v12.__cosval);
v9[1] = LODWORD(v12.__sinval);
v5 = sub_1003B3124(v10, v9, a3);
v7 = atan2f(v6, v5);
return v7 + v7;
}