	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function ball_to_xyz
LCPI0_0:
	.long	0xbf800000                      ## float -1
LCPI0_1:
	.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
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_ball_to_xyz:                           ## @ball_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%r9, %rbx
	cvtsi2ss	%esi, %xmm0
	addss	%xmm0, %xmm0
	cvtsi2ss	%ecx, %xmm1
	divss	%xmm1, %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2ss	%edx, %xmm1
	movss	LCPI0_0(%rip), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	cvtsi2ss	%r8d, %xmm2
	addss	%xmm3, %xmm0
	addss	%xmm1, %xmm1
	divss	%xmm2, %xmm1
	addss	%xmm3, %xmm1
	movss	%xmm0, -12(%rbp)                ## 4-byte Spill
	movss	%xmm1, -16(%rbp)                ## 4-byte Spill
	callq	_hypotf
	movss	LCPI0_1(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm2
	jae	LBB0_1
## %bb.2:
	movl	$0, (%rbx)
	xorps	%xmm1, %xmm1
	movss	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	jmp	LBB0_3
LBB0_1:
	movaps	%xmm0, %xmm1
	addss	%xmm0, %xmm1
	movaps	LCPI0_2(%rip), %xmm3            ## xmm3 = [-0.0E+0,-0.0E+0,-0.0E+0,-0.0E+0]
	movaps	%xmm0, %xmm4
	xorps	%xmm3, %xmm4
	movaps	%xmm0, %xmm5
	mulss	%xmm0, %xmm5
	movaps	%xmm2, %xmm6
	subss	%xmm5, %xmm6
	xorps	%xmm5, %xmm5
	sqrtss	%xmm6, %xmm5
	mulss	%xmm1, %xmm5
	movss	-12(%rbp), %xmm7                ## 4-byte Reload
                                        ## xmm7 = mem[0],zero,zero,zero
	mulss	%xmm5, %xmm7
	cmpltss	%xmm0, %xmm4
	movaps	%xmm4, %xmm6
	andps	%xmm0, %xmm6
	andnps	%xmm2, %xmm4
	orps	%xmm6, %xmm4
	divss	%xmm4, %xmm7
	movss	%xmm7, (%rbx)
	xorps	%xmm3, %xmm5
	movss	-16(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm5, %xmm2
	divss	%xmm4, %xmm2
	mulss	%xmm0, %xmm1
	addss	LCPI0_0(%rip), %xmm1
LBB0_3:
	movss	%xmm2, 4(%rbx)
	movss	%xmm1, 8(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ball_to_xyz
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ball_to_xyz
_ball_to_xyz:                           ; @ball_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
	fmov	s10, #-1.00000000
	scvtf	s0, w1
	fadd	s0, s0, s0
	scvtf	s1, w3
	fdiv	s0, s0, s1
	scvtf	s1, w2
	fadd	s9, s0, s10
	fadd	s0, s1, s1
	scvtf	s1, w4
	fdiv	s0, s0, s1
	fadd	s8, s0, s10
	fmov	s0, s9
	fmov	s1, s8
	bl	_hypotf
	fmov	s1, #1.00000000
	fcmp	s0, s1
	b.ls	LBB0_2
; %bb.1:
	str	wzr, [x19]
	movi	d0, #0000000000000000
	b	LBB0_3
LBB0_2:
	fadd	s2, s0, s0
	fmsub	s3, s0, s0, s1
	fsqrt	s3, s3
	fmul	s4, s2, s3
	fmul	s4, s9, s4
	fcmp	s0, #0.0
	fcsel	s1, s0, s1, gt
	fdiv	s4, s4, s1
	str	s4, [x19]
	fnmul	s3, s2, s3
	fmul	s3, s8, s3
	fmadd	s0, s2, s0, s10
	fdiv	s10, s3, s1
LBB0_3:
	stp	s10, s0, [x19, #4]
	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
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ball_to_xyz
.subsections_via_symbols
