	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	2                               ## -- Begin function barrel_to_xyz
LCPI0_0:
	.long	0xbf800000                      ## float -1
	.long	0x3f800000                      ## float 1
LCPI0_2:
	.long	0x3f7d70a4                      ## float 0.990000009
	.long	0xbf7d70a4                      ## float -0.990000009
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2
LCPI0_1:
	.long	0xbf800000                      ## float -1
LCPI0_3:
	.long	0x3f7d70a4                      ## float 0.990000009
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_4:
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_barrel_to_xyz:                         ## @barrel_to_xyz
	.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	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%r9, %r14
                                        ## kill: def $ecx killed $ecx def $rcx
	leal	(,%rcx,4), %eax
	cltq
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rdi
	shrq	$63, %rdi
	sarq	$33, %rax
	addl	%edi, %eax
	cmpl	%esi, %eax
	jle	LBB0_2
## %bb.1:
	movq	_M_PI_4@GOTPCREL(%rip), %rcx
	cvtsi2ss	%esi, %xmm0
	addss	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm1
	divss	%xmm1, %xmm0
	movss	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	addss	%xmm1, %xmm0
	movq	_M_PI@GOTPCREL(%rip), %rax
	mulss	(%rax), %xmm0
	movss	LCPI0_3(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	divss	%xmm2, %xmm0
	cvtsi2ss	%edx, %xmm4
	addss	%xmm4, %xmm4
	cvtsi2ss	%r8d, %xmm3
	divss	%xmm3, %xmm4
	addss	%xmm1, %xmm4
	mulss	(%rcx), %xmm4
	divss	%xmm2, %xmm4
	movss	%xmm4, -20(%rbp)                ## 4-byte Spill
	callq	___sincosf_stret
	movaps	%xmm0, -48(%rbp)                ## 16-byte Spill
	movshdup	%xmm0, %xmm0                    ## xmm0 = xmm0[1,1,3,3]
	movaps	%xmm0, -64(%rbp)                ## 16-byte Spill
	movss	-20(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	callq	___sincosf_stret
	movaps	-48(%rbp), %xmm3                ## 16-byte Reload
	movshdup	%xmm0, %xmm1                    ## xmm1 = xmm0[1,1,3,3]
	mulss	%xmm1, %xmm3
	movaps	LCPI0_4(%rip), %xmm2            ## xmm2 = [-0.0E+0,-0.0E+0,-0.0E+0,-0.0E+0]
	xorps	%xmm2, %xmm0
	xorps	%xmm2, %xmm1
	mulss	-64(%rbp), %xmm1                ## 16-byte Folded Reload
	jmp	LBB0_3
LBB0_2:
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rdi         ## imm = 0x66666667
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$33, %rdi
	addl	%eax, %edi
	movl	%r8d, %eax
	shrl	$31, %eax
	addl	%r8d, %eax
	sarl	%eax
	leal	(,%rdi,4), %ecx
	subl	%ecx, %esi
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	cvtsi2ss	%esi, %xmm3
	cmpl	%edx, %eax
	cvtsi2ss	%edi, %xmm0
	setg	%cl
	addss	%xmm3, %xmm3
	cmovlel	%eax, %ebx
	subl	%ebx, %edx
	cvtsi2ss	%edx, %xmm1
	divss	%xmm0, %xmm3
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	leaq	LCPI0_0(%rip), %rax
	addss	%xmm1, %xmm1
	divss	%xmm0, %xmm1
	movss	LCPI0_1(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	addss	%xmm2, %xmm1
	leaq	LCPI0_2(%rip), %rdx
	divss	(%rdx,%rcx,4), %xmm1
	movss	(%rax,%rcx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	addss	%xmm2, %xmm3
	divss	LCPI0_3(%rip), %xmm3
LBB0_3:
	movss	%xmm3, (%r14)
	movss	%xmm0, 4(%r14)
	movss	%xmm1, 8(%r14)
	movq	%r14, %rdi
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_normalize_vector               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_M_PI_4,4,2                     ## @M_PI_4
	.comm	_M_PI,4,2                       ## @M_PI
	.no_dead_strip	_barrel_to_xyz
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function barrel_to_xyz
_barrel_to_xyz:                         ; @barrel_to_xyz
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset b10, -56
	.cfi_offset b11, -64
	mov	x19, x5
	lsl	w9, w3, #2
	mov	w8, #26215
	movk	w8, #26214, lsl #16
	smull	x9, w9, w8
	lsr	x10, x9, #63
	asr	x9, x9, #33
	add	w9, w9, w10
	cmp	w9, w1
	b.le	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _M_PI_4@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_PI_4@GOTPAGEOFF]
Lloh2:
	ldr	s1, [x8]
	scvtf	s0, w1
	fadd	s0, s0, s0
	scvtf	s2, w9
	fdiv	s0, s0, s2
	fmov	s2, #-1.00000000
	fadd	s0, s0, s2
Lloh3:
	adrp	x8, _M_PI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _M_PI@GOTPAGEOFF]
Lloh5:
	ldr	s3, [x8]
	fmul	s0, s0, s3
	mov	w8, #28836
	movk	w8, #16253, lsl #16
	fmov	s3, w8
	fdiv	s0, s0, s3
	scvtf	s4, w2
	fadd	s4, s4, s4
	scvtf	s5, w4
	fdiv	s4, s4, s5
	fadd	s2, s4, s2
	fmul	s1, s2, s1
	fdiv	s8, s1, s3
	bl	___sincosf_stret
	fmov	s9, s0
	fmov	s10, s1
	fmov	s0, s8
	bl	___sincosf_stret
	fmul	s2, s1, s9
	fneg	s0, s0
	fneg	s1, s1
	fmul	s1, s10, s1
	b	LBB0_3
LBB0_2:
	smull	x8, w3, w8
	lsr	x9, x8, #63
	asr	x8, x8, #33
	add	w8, w8, w9
	cmp	w4, #0
	cinc	w9, w4, lt
	asr	w9, w9, #1
	sub	w10, w1, w8, lsl #2
	scvtf	s0, w10
	fadd	s0, s0, s0
	scvtf	s1, w8
	fdiv	s2, s0, s1
	cmp	w9, w2
	csel	w8, wzr, w9, gt
	mov	w10, #28836
	movk	w10, #16253, lsl #16
	fmov	s3, w10
	mov	w10, #28836
	movk	w10, #49021, lsl #16
	fmov	s0, w10
	fcsel	s1, s0, s3, gt
	fmov	s4, #-1.00000000
	fmov	s0, #1.00000000
	fcsel	s0, s0, s4, gt
	sub	w8, w2, w8
	scvtf	s5, w8
	scvtf	s6, w9
	fadd	s5, s5, s5
	fdiv	s5, s5, s6
	fadd	s5, s5, s4
	fdiv	s1, s5, s1
	fadd	s2, s2, s4
	fdiv	s2, s2, s3
LBB0_3:
	stp	s2, s0, [x19]
	str	s1, [x19, #8]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #64             ; 16-byte Folded Reload
	b	_normalize_vector
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_M_PI_4,4,2                     ; @M_PI_4
	.comm	_M_PI,4,2                       ; @M_PI
	.no_dead_strip	_barrel_to_xyz
.subsections_via_symbols
