//
// kmQuaternionRotationYawPitchRoll from 0x7d0720 to 0x7d07fa (218 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:00:34 +0000
//
float *__fastcall kmQuaternionRotationYawPitchRoll(float *a1, int a2, int a3, int a4)
{
float v7; // s16
int v8; // r1
int v9; // r2
int v10; // r3
float v11; // s20
int v12; // r1
int v13; // r2
int v14; // r3
float v15; // s18
float v16; // s17
float v17; // s21
float v18; // s19
float v19; // s16
float v20; // s20
float v21; // r0
v7 = COERCE_FLOAT(kmDegreesToRadians(a3, a2, a3, a4)) * 0.5;
v11 = COERCE_FLOAT(kmDegreesToRadians(a2, v8, v9, v10)) * 0.5;
v15 = COERCE_FLOAT(kmDegreesToRadians(a4, v12, v13, v14)) * 0.5;
v16 = cosf(v7);
v17 = cosf(v11);
v18 = cosf(v15);
v19 = sinf(v7);
v20 = sinf(v11);
v21 = sinf(v15);
*a1 = (float)(v19 * (float)(v17 * v18)) - (float)(v16 * (float)(v20 * v21));
a1[3] = (float)(v19 * (float)(v20 * v21)) + (float)(v16 * (float)(v17 * v18));
a1[1] = (float)((float)(v19 * v17) * v21) + (float)((float)(v16 * v20) * v18);
a1[2] = (float)((float)(v16 * v17) * v21) - (float)((float)(v19 * v20) * v18);
kmQuaternionNormalize(a1, a1);
return a1;
}