	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function xyz_to_barrel
LCPI0_0:
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
LCPI0_1:
	.long	0x3f000000                      ## float 0.5
	.long	0x3f000000                      ## float 0.5
	.space	4
	.space	4
LCPI0_2:
	.long	0x3f7d70a4                      ## float 0.990000009
	.long	0x3f7d70a4                      ## float 0.990000009
	.space	4
	.space	4
LCPI0_3:
	.long	0x3f800000                      ## float 1
	.long	0x3f800000                      ## float 1
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_xyz_to_barrel:                         ## @xyz_to_barrel
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%r8, -168(%rbp)                 ## 8-byte Spill
	movl	%ecx, %r12d
	movl	%edx, %r15d
	movq	%rdi, %r13
	movss	(%rsi), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movaps	%xmm0, -160(%rbp)               ## 16-byte Spill
	movss	4(%rsi), %xmm1                  ## xmm1 = mem[0],zero,zero,zero
	movss	8(%rsi), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	movaps	LCPI0_0(%rip), %xmm2            ## xmm2 = [-0.0E+0,-0.0E+0,-0.0E+0,-0.0E+0]
	xorps	%xmm2, %xmm0
	movaps	%xmm0, -96(%rbp)                ## 16-byte Spill
	movq	(%rdi), %rbx
	movss	(%rbx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movaps	%xmm0, -80(%rbp)                ## 16-byte Spill
	movaps	%xmm1, -144(%rbp)               ## 16-byte Spill
	movaps	%xmm1, %xmm0
	xorps	%xmm2, %xmm0
	callq	_asinf
	movss	4(%rbx), %xmm4                  ## xmm4 = mem[0],zero,zero,zero
	mulss	%xmm4, %xmm0
	movq	_M_PI_4@GOTPCREL(%rip), %rax
	movss	(%rax), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	movaps	LCPI0_0(%rip), %xmm2            ## xmm2 = [-0.0E+0,-0.0E+0,-0.0E+0,-0.0E+0]
	xorps	%xmm1, %xmm2
	ucomiss	%xmm2, %xmm0
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	jbe	LBB0_6
## %bb.1:
	ucomiss	%xmm0, %xmm1
	jbe	LBB0_6
## %bb.2:
	movaps	%xmm1, -144(%rbp)               ## 16-byte Spill
	movaps	%xmm0, -64(%rbp)                ## 16-byte Spill
	movaps	-160(%rbp), %xmm0               ## 16-byte Reload
	movaps	-96(%rbp), %xmm1                ## 16-byte Reload
	callq	_atan2f
	movaps	-80(%rbp), %xmm1                ## 16-byte Reload
	mulss	%xmm0, %xmm1
	leal	(,%r15,4), %eax
	cltq
	imulq	$1717986919, %rax, %rbx         ## imm = 0x66666667
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$33, %rbx
	addl	%eax, %ebx
	cmpq	$0, 8(%r13)
	je	LBB0_3
## %bb.4:
	movslq	%r15d, %rax
	imulq	$1717986919, %rax, %rcx         ## imm = 0x66666667
	movq	%rcx, %rax
	shrq	$63, %rax
	sarq	$33, %rcx
	addl	%eax, %ecx
	jmp	LBB0_5
LBB0_6:
	movl	%r12d, %eax
	shrl	$31, %eax
	addl	%r12d, %eax
	sarl	%eax
	movslq	%r15d, %rcx
	imulq	$1717986919, %rcx, %rbx         ## imm = 0x66666667
	movq	%rbx, %rcx
	shrq	$63, %rcx
	sarq	$33, %rbx
	addl	%ecx, %ebx
	movd	%ebx, %xmm1
	pinsrd	$1, %eax, %xmm1
	leal	(,%rbx,4), %ecx
	xorl	%r15d, %r15d
	cmpq	$0, 8(%r13)
	cmovnel	%r15d, %ecx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	xorps	%xmm2, %xmm2
	ucomiss	%xmm0, %xmm2
	movaps	LCPI0_0(%rip), %xmm3            ## xmm3 = [-0.0E+0,-0.0E+0,-0.0E+0,-0.0E+0]
	movaps	-160(%rbp), %xmm5               ## 16-byte Reload
	xorps	%xmm5, %xmm3
	cmpltss	%xmm2, %xmm0
	andps	%xmm0, %xmm5
	andnps	%xmm3, %xmm0
	orps	%xmm5, %xmm0
	movaps	-80(%rbp), %xmm3                ## 16-byte Reload
	mulss	%xmm4, %xmm3
	insertps	$16, -96(%rbp), %xmm0           ## 16-byte Folded Reload
                                        ## xmm0 = xmm0[0],mem[0],xmm0[2,3]
	movsldup	-144(%rbp), %xmm2               ## 16-byte Folded Reload
                                        ## xmm2 = mem[0,0,2,2]
	divps	%xmm2, %xmm0
	insertps	$16, %xmm4, %xmm3               ## xmm3 = xmm3[0],xmm4[0],xmm3[2,3]
	mulps	%xmm0, %xmm3
	cvtdq2ps	%xmm1, %xmm0
	mulps	LCPI0_1(%rip), %xmm0
	mulps	LCPI0_2(%rip), %xmm3
	addps	LCPI0_3(%rip), %xmm3
	mulps	%xmm0, %xmm3
	movslq	%eax, %rcx
	cmovbeq	%rcx, %r15
	movq	%r15, %rcx
	movl	%eax, %r12d
	movq	24(%rbp), %r15
	jmp	LBB0_7
LBB0_3:
	xorl	%ecx, %ecx
LBB0_5:
	movq	24(%rbp), %r15
	movaps	-64(%rbp), %xmm0                ## 16-byte Reload
	movaps	-144(%rbp), %xmm2               ## 16-byte Reload
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	_M_PI@GOTPCREL(%rip), %rax
	insertps	$16, %xmm0, %xmm1               ## xmm1 = xmm1[0],xmm0[0],xmm1[2,3]
	movss	(%rax), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	insertps	$16, %xmm2, %xmm0               ## xmm0 = xmm0[0],xmm2[0],xmm0[2,3]
	divps	%xmm0, %xmm1
	mulps	LCPI0_2(%rip), %xmm1
	addps	LCPI0_3(%rip), %xmm1
	movd	%ebx, %xmm0
	pinsrd	$1, %r12d, %xmm0
	cvtdq2ps	%xmm0, %xmm3
	mulps	%xmm1, %xmm3
	mulps	LCPI0_1(%rip), %xmm3
	xorl	%ecx, %ecx
LBB0_7:
	movq	%rcx, -160(%rbp)                ## 8-byte Spill
	movaps	%xmm3, %xmm0
	movaps	%xmm3, -80(%rbp)                ## 16-byte Spill
	callq	_floorf
	movl	%eax, %r14d
	movshdup	-80(%rbp), %xmm0                ## 16-byte Folded Reload
                                        ## xmm0 = mem[1,1,3,3]
	movaps	%xmm0, -96(%rbp)                ## 16-byte Spill
	callq	_floorf
	xorps	%xmm0, %xmm0
	cvtsi2ss	%r14d, %xmm0
	movl	%eax, %r13d
	xorps	%xmm1, %xmm1
	cvtsi2ss	%eax, %xmm1
	movaps	-80(%rbp), %xmm2                ## 16-byte Reload
	subss	%xmm0, %xmm2
	movq	16(%rbp), %rax
	movss	%xmm2, (%rax)
	movaps	-96(%rbp), %xmm0                ## 16-byte Reload
	subss	%xmm1, %xmm0
	movss	%xmm0, (%r15)
	movslq	-64(%rbp), %rax                 ## 4-byte Folded Reload
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	decl	%ebx
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	decl	%r12d
	movl	%r12d, -80(%rbp)                ## 4-byte Spill
	leal	-1(%r14), %eax
	movl	%eax, -116(%rbp)                ## 4-byte Spill
	leal	1(%r14), %eax
	movl	%eax, -112(%rbp)                ## 4-byte Spill
	movq	%r14, -144(%rbp)                ## 8-byte Spill
	movl	%r14d, %eax
	addl	$2, %eax
	movl	%eax, -108(%rbp)                ## 4-byte Spill
	decl	%r13d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	-116(%rbp), %edi                ## 4-byte Reload
	xorl	%esi, %esi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_av_clip
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	addq	%rcx, %rax
	movq	%rcx, %r14
	movq	-168(%rbp), %rcx                ## 8-byte Reload
	movq	%rax, (%rcx,%r12)
	movq	%rcx, %rbx
	movl	%r13d, %edi
	xorl	%esi, %esi
	movl	-80(%rbp), %edx                 ## 4-byte Reload
	callq	_av_clip
	addq	-160(%rbp), %rax                ## 8-byte Folded Reload
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	%rax, (%rcx,%r12)
	movq	-144(%rbp), %rdi                ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_av_clip
	addq	%r14, %rax
	movq	%r14, %r15
	movq	%rax, 8(%rbx,%r12)
	movl	%r13d, %edi
	xorl	%esi, %esi
	movl	-80(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edx
	callq	_av_clip
	movq	-160(%rbp), %rbx                ## 8-byte Reload
	addq	%rbx, %rax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	%rax, 8(%rcx,%r12)
	movl	-112(%rbp), %edi                ## 4-byte Reload
	xorl	%esi, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_av_clip
	addq	%r15, %rax
	movq	-168(%rbp), %r15                ## 8-byte Reload
	movq	%rax, 16(%r15,%r12)
	movl	%r13d, %edi
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_av_clip
	addq	%rbx, %rax
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movq	%rax, 16(%r14,%r12)
	movl	-108(%rbp), %edi                ## 4-byte Reload
	xorl	%esi, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_av_clip
	addq	-96(%rbp), %rax                 ## 8-byte Folded Reload
	movq	%rax, 24(%r15,%r12)
	movl	%r13d, %edi
	xorl	%esi, %esi
	movl	-80(%rbp), %edx                 ## 4-byte Reload
	callq	_av_clip
	addq	%rbx, %rax
	movq	%rax, 24(%r14,%r12)
	incl	%r13d
	addq	$32, %r12
	cmpq	$128, %r12
	jne	LBB0_8
## %bb.9:
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_PI_4,4,2                     ## @M_PI_4
	.comm	_M_PI,4,2                       ## @M_PI
	.no_dead_strip	_xyz_to_barrel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xyz_to_barrel
_xyz_to_barrel:                         ; @xyz_to_barrel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	d13, d12, [sp, #32]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #48]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #64]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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 w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	.cfi_offset b12, -136
	.cfi_offset b13, -144
	mov	x27, x7
	mov	x23, x6
	mov	x21, x5
	str	x4, [sp, #8]                    ; 8-byte Folded Spill
	mov	x22, x3
	mov	x25, x2
	mov	x24, x0
	ldp	s13, s0, [x1, #4]
	fneg	s8, s0
	ldr	x19, [x0]
	ldr	s11, [x19]
	ldr	s9, [x1]
	fneg	s0, s13
	bl	_asinf
	ldr	s1, [x19, #4]
	fmul	s10, s0, s1
Lloh0:
	adrp	x8, _M_PI_4@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_PI_4@GOTPAGEOFF]
Lloh2:
	ldr	s12, [x8]
	fneg	s0, s12
	fcmp	s10, s0
	fccmp	s10, s12, #0, gt
	b.mi	LBB0_2
; %bb.1:
	mov	w8, #26215
	movk	w8, #26214, lsl #16
	smull	x8, w25, w8
	lsr	x9, x8, #63
	asr	x8, x8, #33
	add	w26, w8, w9
	cmp	w22, #0
	cinc	w8, w22, lt
	asr	w22, w8, #1
	ldr	x9, [x24, #8]
	lsl	w10, w26, #2
	cmp	x9, #0
	csel	w19, w10, wzr, eq
	fneg	s0, s9
	fcmp	s10, #0.0
	fcsel	s0, s9, s0, mi
	fdiv	s2, s8, s13
	fdiv	s0, s0, s13
	fmul	s3, s11, s1
	fmul	s0, s3, s0
	fmul	s1, s2, s1
	scvtf	s2, w26
	fmov	s3, #0.50000000
	fmul	s2, s2, s3
	mov	w9, #28836
	movk	w9, #16253, lsl #16
	fmov	s4, w9
	fmov	s5, #1.00000000
	fmadd	s0, s0, s4, s5
	scvtf	s6, w22
	fmul	s9, s2, s0
	fmul	s0, s6, s3
	fmadd	s1, s1, s4, s5
	fmul	s8, s0, s1
	sbfx	x8, x8, #1, #31
	csel	x28, xzr, x8, mi
	b	LBB0_3
LBB0_2:
	fmov	s0, s9
	fmov	s1, s8
	bl	_atan2f
	mov	x28, #0
	lsl	w8, w25, #2
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	smull	x8, w8, w9
	lsr	x10, x8, #63
	asr	x8, x8, #33
	add	w26, w8, w10
	fmul	s0, s11, s0
	ldr	x8, [x24, #8]
	smull	x9, w25, w9
	lsr	x10, x9, #63
	asr	x9, x9, #33
	add	w9, w9, w10
	cmp	x8, #0
Lloh3:
	adrp	x8, _M_PI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _M_PI@GOTPAGEOFF]
	csel	w19, wzr, w9, eq
Lloh5:
	ldr	s1, [x8]
	fdiv	s0, s0, s1
	mov	w8, #28836
	movk	w8, #16253, lsl #16
	fmov	s1, w8
	fmov	s2, #1.00000000
	fmadd	s0, s0, s1, s2
	scvtf	s3, w26
	fmul	s0, s0, s3
	fmov	s3, #0.50000000
	fmul	s9, s0, s3
	fdiv	s0, s10, s12
	fmadd	s0, s0, s1, s2
	scvtf	s1, w22
	fmul	s0, s0, s1
	fmul	s8, s0, s3
LBB0_3:
	fmov	s0, s9
	bl	_floorf
	mov	x24, x0
	fmov	s0, s8
	bl	_floorf
	mov	x20, #0
	scvtf	s0, w24
	fsub	s0, s9, s0
	str	s0, [x23]
	scvtf	s0, w0
	sxtw	x19, w19
	sub	w23, w26, #1
	sub	w22, w22, #1
	sub	w9, w24, #1
	fsub	s0, s8, s0
	str	s0, [x27]
	add	w8, w24, #1
	stp	w8, w9, [sp, #20]               ; 8-byte Folded Spill
	str	w24, [sp, #28]                  ; 4-byte Folded Spill
	add	w8, w24, #2
	str	w8, [sp, #16]                   ; 4-byte Folded Spill
	sub	w27, w0, #1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x24, x8, #16
	mov	x26, x21
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [sp, #24]                   ; 4-byte Folded Reload
	mov	w1, #0
	mov	x2, x23
	bl	_av_clip
	add	x8, x0, x19
	add	x25, x24, x20
	stur	x8, [x25, #-16]
	mov	x0, x27
	mov	w1, #0
	mov	x2, x22
	bl	_av_clip
	add	x8, x0, x28
	add	x21, x26, x20
	str	x8, [x21]
	ldr	w0, [sp, #28]                   ; 4-byte Folded Reload
	mov	w1, #0
	mov	x2, x23
	bl	_av_clip
	add	x8, x0, x19
	stur	x8, [x25, #-8]
	mov	x0, x27
	mov	w1, #0
	mov	x2, x22
	bl	_av_clip
	add	x8, x0, x28
	str	x8, [x21, #8]
	ldr	w0, [sp, #20]                   ; 4-byte Folded Reload
	mov	w1, #0
	mov	x2, x23
	bl	_av_clip
	add	x8, x0, x19
	str	x8, [x25]
	mov	x0, x27
	mov	w1, #0
	mov	x2, x22
	bl	_av_clip
	add	x8, x0, x28
	str	x8, [x21, #16]
	ldr	w0, [sp, #16]                   ; 4-byte Folded Reload
	mov	w1, #0
	mov	x2, x23
	bl	_av_clip
	add	x8, x0, x19
	str	x8, [x25, #8]
	mov	x0, x27
	mov	w1, #0
	mov	x2, x22
	bl	_av_clip
	add	x8, x0, x28
	str	x8, [x21, #24]
	add	w27, w27, #1
	add	x20, x20, #32
	cmp	x20, #128
	b.ne	LBB0_4
; %bb.5:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #64]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #48]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_M_PI_4,4,2                     ; @M_PI_4
	.comm	_M_PI,4,2                       ; @M_PI
	.no_dead_strip	_xyz_to_barrel
.subsections_via_symbols
