	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function calculate_rotation_matrix
LCPI0_0:
	.long	0x43340000                      ## float 180
LCPI0_1:
	.long	0xc3340000                      ## float -180
LCPI0_3:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_2:
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
LCPI0_4:
	.long	0x00000000                      ## float 0
	.long	0x00000000                      ## float 0
	.long	0x00000000                      ## float 0
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_calculate_rotation_matrix:             ## @calculate_rotation_matrix
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	subq	$248, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_M_PI@GOTPCREL(%rip), %rax
	movss	(%rax), %xmm3                   ## xmm3 = mem[0],zero,zero,zero
	mulss	%xmm3, %xmm0
	mulss	%xmm3, %xmm1
	movss	LCPI0_0(%rip), %xmm4            ## xmm4 = mem[0],zero,zero,zero
	divss	%xmm4, %xmm1
	movss	%xmm1, -224(%rbp)               ## 4-byte Spill
	mulss	%xmm2, %xmm3
	divss	%xmm4, %xmm3
	movss	%xmm3, -196(%rbp)               ## 4-byte Spill
	divss	LCPI0_1(%rip), %xmm0
	callq	___sincosf_stret
	movaps	%xmm0, -256(%rbp)               ## 16-byte Spill
	movshdup	%xmm0, %xmm0                    ## xmm0 = xmm0[1,1,3,3]
	movaps	%xmm0, -240(%rbp)               ## 16-byte Spill
	movss	-224(%rbp), %xmm0               ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	callq	___sincosf_stret
	movaps	%xmm0, -272(%rbp)               ## 16-byte Spill
	movshdup	%xmm0, %xmm1                    ## xmm1 = xmm0[1,1,3,3]
	movaps	%xmm1, -224(%rbp)               ## 16-byte Spill
	movss	-196(%rbp), %xmm0               ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	callq	___sincosf_stret
	movshdup	%xmm0, %xmm1                    ## xmm1 = xmm0[1,1,3,3]
	movaps	-240(%rbp), %xmm3               ## 16-byte Reload
	movss	%xmm3, -144(%rbp)
	movl	$0, -140(%rbp)
	movaps	-256(%rbp), %xmm4               ## 16-byte Reload
	movss	%xmm4, -136(%rbp)
	movabsq	$4575657221408423936, %rax      ## imm = 0x3F80000000000000
	movq	%rax, -132(%rbp)
	movl	$0, -124(%rbp)
	movaps	LCPI0_2(%rip), %xmm2            ## xmm2 = [-0.0E+0,-0.0E+0,-0.0E+0,-0.0E+0]
	xorps	%xmm2, %xmm4
	movss	%xmm4, -120(%rbp)
	movl	$0, -116(%rbp)
	movss	%xmm3, -112(%rbp)
	movss	LCPI0_3(%rip), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	movups	%xmm3, -108(%rbp)
	movaps	-224(%rbp), %xmm3               ## 16-byte Reload
	movss	%xmm3, -92(%rbp)
	movaps	-272(%rbp), %xmm4               ## 16-byte Reload
	movaps	%xmm4, %xmm3
	xorps	%xmm2, %xmm3
	movss	%xmm3, -88(%rbp)
	movl	$0, -84(%rbp)
	shufps	$212, %xmm0, %xmm4              ## xmm4 = xmm4[0,1],xmm0[1,3]
	movaps	%xmm0, %xmm3
	xorps	%xmm2, %xmm3
	insertps	$48, %xmm3, %xmm4               ## xmm4 = xmm4[0,1,2],xmm3[0]
	movaps	%xmm4, -80(%rbp)
	movl	$0, -64(%rbp)
	movss	%xmm0, -60(%rbp)
	movss	%xmm1, -56(%rbp)
	movaps	LCPI0_4(%rip), %xmm0            ## xmm0 = [0.0E+0,0.0E+0,0.0E+0,1.0E+0]
	movups	%xmm0, -52(%rbp)
	movslq	(%r15), %rax
	leaq	(%rax,%rax,8), %rax
	leaq	-144(%rbp,%rax,4), %rsi
	movslq	4(%r15), %rax
	leaq	(%rax,%rax,8), %rax
	leaq	-144(,%rax,4), %rdx
	addq	%rbp, %rdx
	leaq	-192(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_multiply_matrix
	movslq	8(%r15), %rax
	leaq	(%rax,%rax,8), %rax
	leaq	-144(,%rax,4), %rdx
	addq	%rbp, %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_multiply_matrix
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$248, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_M_PI,4,2                       ## @M_PI
	.no_dead_strip	_calculate_rotation_matrix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function calculate_rotation_matrix
lCPI0_0:
	.long	0x00000000                      ; float 0
	.long	0x3f800000                      ; float 1
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
lCPI0_1:
	.long	0x3f800000                      ; float 1
	.long	0x00000000                      ; float 0
	.long	0x00000000                      ; float 0
	.long	0x00000000                      ; float 0
lCPI0_2:
	.long	0x00000000                      ; float 0
	.long	0x00000000                      ; float 0
	.long	0x00000000                      ; float 0
	.long	0x3f800000                      ; float 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_calculate_rotation_matrix:             ; @calculate_rotation_matrix
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #272
	.cfi_def_cfa_offset 272
	stp	d13, d12, [sp, #160]            ; 16-byte Folded Spill
	stp	d11, d10, [sp, #176]            ; 16-byte Folded Spill
	stp	d9, d8, [sp, #192]              ; 16-byte Folded Spill
	stp	x28, x27, [sp, #208]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #224]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #240]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #256]            ; 16-byte Folded Spill
	add	x29, sp, #256
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w27, -56
	.cfi_offset w28, -64
	.cfi_offset b8, -72
	.cfi_offset b9, -80
	.cfi_offset b10, -88
	.cfi_offset b11, -96
	.cfi_offset b12, -104
	.cfi_offset b13, -112
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _M_PI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _M_PI@GOTPAGEOFF]
	stur	x8, [x29, #-104]
Lloh5:
	ldr	s3, [x9]
	fmul	s0, s3, s0
	fmul	s1, s3, s1
	mov	w8, #1127481344
	fmov	s4, w8
	fdiv	s8, s1, s4
	fmul	s1, s3, s2
	fdiv	s9, s1, s4
	mov	w8, #-1020002304
	fmov	s1, w8
	fdiv	s0, s0, s1
	bl	___sincosf_stret
	fmov	s10, s0
	fmov	s11, s1
	fmov	s0, s8
	bl	___sincosf_stret
	fmov	s8, s0
	fmov	s12, s1
	fmov	s0, s9
	bl	___sincosf_stret
	str	s11, [sp, #44]
	str	wzr, [sp, #48]
	str	s10, [sp, #52]
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	d2, [x8, lCPI0_0@PAGEOFF]
	stur	d2, [sp, #56]
	str	wzr, [sp, #64]
	fneg	s2, s10
	str	s2, [sp, #68]
	str	wzr, [sp, #72]
	str	s11, [sp, #76]
Lloh8:
	adrp	x8, lCPI0_1@PAGE
Lloh9:
	ldr	q2, [x8, lCPI0_1@PAGEOFF]
	stur	q2, [sp, #80]
	fneg	s2, s8
	stp	s12, s2, [sp, #96]
	str	wzr, [sp, #104]
	stp	s8, s12, [sp, #108]
	fneg	s2, s0
	stp	s1, s2, [sp, #116]
	str	wzr, [sp, #124]
Lloh10:
	adrp	x8, lCPI0_2@PAGE
Lloh11:
	ldr	q2, [x8, lCPI0_2@PAGEOFF]
	mov	w21, #36
	add	x22, sp, #44
	ldpsw	x8, x9, [x20]
	madd	x1, x8, x21, x22
	stp	s0, s1, [sp, #128]
	madd	x2, x9, x21, x22
	stur	q2, [sp, #136]
	add	x0, sp, #8
	bl	_multiply_matrix
	ldrsw	x8, [x20, #8]
	madd	x2, x8, x21, x22
	add	x1, sp, #8
	mov	x0, x19
	bl	_multiply_matrix
	ldur	x8, [x29, #-104]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #256]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #240]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #224]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #208]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #192]              ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #176]            ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #272
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdr	Lloh10, Lloh11
	.loh AdrpAdrp	Lloh8, Lloh10
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpAdrp	Lloh6, Lloh8
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_M_PI,4,2                       ; @M_PI
	.no_dead_strip	_calculate_rotation_matrix
.subsections_via_symbols
