	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function d3drm_matrix_set_rotation
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_d3drm_matrix_set_rotation:             ## @d3drm_matrix_set_rotation
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movss	%xmm0, -20(%rbp)                ## 4-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_D3DRMVectorNormalize
	movss	-20(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	callq	___sincosf_stret
	movshdup	%xmm0, %xmm8                    ## xmm8 = xmm0[1,1,3,3]
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	subss	%xmm8, %xmm1
	movss	4(%r14), %xmm3                  ## xmm3 = mem[0],zero,zero,zero
	movaps	%xmm1, %xmm7
	mulss	%xmm3, %xmm7
	movaps	%xmm7, %xmm4
	mulss	%xmm3, %xmm4
	addss	%xmm8, %xmm4
	movss	%xmm4, (%rbx)
	movss	(%r14), %xmm9                   ## xmm9 = mem[0],zero,zero,zero
	movss	8(%r14), %xmm5                  ## xmm5 = mem[0],zero,zero,zero
	movaps	%xmm7, %xmm6
	mulss	%xmm5, %xmm6
	movaps	%xmm0, %xmm4
	mulss	%xmm9, %xmm4
	subss	%xmm4, %xmm6
	movss	%xmm6, 4(%rbx)
	movaps	%xmm0, %xmm6
	mulss	%xmm5, %xmm6
	mulss	%xmm9, %xmm7
	addss	%xmm6, %xmm7
	movss	%xmm7, 8(%rbx)
	movl	$0, 12(%rbx)
	movaps	%xmm1, %xmm2
	mulss	%xmm5, %xmm2
	movaps	%xmm2, %xmm7
	mulss	%xmm3, %xmm7
	addss	%xmm4, %xmm7
	movss	%xmm7, 16(%rbx)
	movaps	%xmm2, %xmm4
	mulss	%xmm5, %xmm4
	addss	%xmm8, %xmm4
	movss	%xmm4, 20(%rbx)
	mulss	%xmm9, %xmm2
	mulss	%xmm3, %xmm0
	subss	%xmm0, %xmm2
	movss	%xmm2, 24(%rbx)
	movl	$0, 28(%rbx)
	mulss	%xmm9, %xmm1
	mulss	%xmm1, %xmm3
	subss	%xmm6, %xmm3
	movss	%xmm3, 32(%rbx)
	mulss	%xmm1, %xmm5
	addss	%xmm0, %xmm5
	movss	%xmm5, 36(%rbx)
	mulss	%xmm9, %xmm1
	addss	%xmm8, %xmm1
	movss	%xmm1, 40(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 44(%rbx)
	movl	$1065353216, 60(%rbx)           ## imm = 0x3F800000
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_d3drm_matrix_set_rotation
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function d3drm_matrix_set_rotation
_d3drm_matrix_set_rotation:             ; @d3drm_matrix_set_rotation
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-48]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset b8, -40
	.cfi_offset b9, -48
	fmov	s8, s0
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_D3DRMVectorNormalize
	fmov	s0, s8
	bl	___sincosf_stret
	fmov	s2, #1.00000000
	fsub	s2, s2, s1
	ldp	s4, s3, [x19]
	fmul	s5, s2, s3
	fmadd	s6, s5, s3, s1
	ldr	s7, [x19, #8]
	fneg	s16, s0
	fmul	s17, s4, s16
	fmadd	s17, s5, s7, s17
	stp	s6, s17, [x20]
	fmul	s6, s0, s7
	fmadd	s5, s5, s4, s6
	str	s5, [x20, #8]
	str	wzr, [x20, #12]
	fmul	s5, s2, s7
	fmul	s6, s0, s4
	fmadd	s6, s5, s3, s6
	fmadd	s17, s5, s7, s1
	stp	s6, s17, [x20, #16]
	fmul	s6, s3, s16
	fmadd	s5, s5, s4, s6
	str	s5, [x20, #24]
	str	wzr, [x20, #28]
	fmul	s2, s2, s4
	fmul	s5, s7, s16
	fmadd	s5, s2, s3, s5
	fmul	s0, s0, s3
	fmadd	s0, s2, s7, s0
	stp	s5, s0, [x20, #32]
	fmadd	s0, s2, s4, s1
	str	s0, [x20, #40]
	stur	xzr, [x20, #44]
	stur	xzr, [x20, #52]
	mov	w8, #1065353216
	str	w8, [x20, #60]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #48               ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_d3drm_matrix_set_rotation
.subsections_via_symbols
