The computation of quaternions during matrix decomposition looks like it's based off of the matrix transpose. The matrix data is actually column major order but the quaternion operations seem to assume row major order. More info in the equivalent chromium bug: https://bugs.chromium.org/p/chromium/issues/detail?id=929841
<rdar://problem/73747851>