	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ComputeAxisBase
LCPI0_0:
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ComputeAxisBase
	.p2align	4, 0x90
_ComputeAxisBase:                       ## @ComputeAxisBase
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movss	(%rdi), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	callq	_fabs
	testl	%eax, %eax
	jg	LBB0_2
## %bb.1:
	movl	$0, (%rbx)
LBB0_2:
	movss	4(%rbx), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	callq	_fabs
	testl	%eax, %eax
	jg	LBB0_4
## %bb.3:
	movl	$0, 4(%rbx)
LBB0_4:
	movss	8(%rbx), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	callq	_fabs
	testl	%eax, %eax
	jle	LBB0_6
## %bb.5:
	movss	8(%rbx), %xmm2                  ## xmm2 = mem[0],zero,zero,zero
	jmp	LBB0_7
LBB0_6:
	movl	$0, 8(%rbx)
	xorps	%xmm2, %xmm2
LBB0_7:
	movss	(%rbx), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	movss	4(%rbx), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm1
	mulss	%xmm0, %xmm0
	addss	%xmm1, %xmm0
	xorps	%xmm1, %xmm1
	ucomiss	%xmm1, %xmm0
	jb	LBB0_9
## %bb.8:
	xorps	%xmm1, %xmm1
	sqrtss	%xmm0, %xmm1
	jmp	LBB0_10
LBB0_9:
	movss	%xmm2, -48(%rbp)                ## 4-byte Spill
	callq	_sqrt
	movss	-48(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	movaps	%xmm0, %xmm1
LBB0_10:
	movaps	%xmm2, %xmm0
	callq	_atan2
	movl	%eax, %r12d
	negl	%r12d
	movss	(%rbx), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	movss	4(%rbx), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	callq	_atan2
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_sin
	xorps	LCPI0_0(%rip), %xmm0
	movss	%xmm0, (%r15)
	movl	%ebx, %edi
	callq	_cos
	movss	%xmm0, 4(%r15)
	movl	$0, 8(%r15)
	movl	%r12d, %edi
	callq	_sin
	xorps	LCPI0_0(%rip), %xmm0
	movaps	%xmm0, -48(%rbp)                ## 16-byte Spill
	movl	%ebx, %edi
	callq	_cos
	mulss	-48(%rbp), %xmm0                ## 16-byte Folded Reload
	movss	%xmm0, (%r14)
	movl	%r12d, %edi
	callq	_sin
	xorps	LCPI0_0(%rip), %xmm0
	movaps	%xmm0, -48(%rbp)                ## 16-byte Spill
	movl	%ebx, %edi
	callq	_sin
	mulss	-48(%rbp), %xmm0                ## 16-byte Folded Reload
	movss	%xmm0, 4(%r14)
	movl	%r12d, %edi
	callq	_cos
	xorps	LCPI0_0(%rip), %xmm0
	movss	%xmm0, 8(%r14)
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ComputeAxisBase                ; -- Begin function ComputeAxisBase
	.p2align	2
_ComputeAxisBase:                       ; @ComputeAxisBase
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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 b8, -56
	.cfi_offset b9, -64
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	s0, [x0]
	bl	_fabs
	cmp	w0, #0
	b.gt	LBB0_2
; %bb.1:
	str	wzr, [x21]
LBB0_2:
	ldr	s0, [x21, #4]
	bl	_fabs
	cmp	w0, #0
	b.gt	LBB0_4
; %bb.3:
	str	wzr, [x21, #4]
LBB0_4:
	ldr	s0, [x21, #8]
	bl	_fabs
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.5:
	ldr	s0, [x21, #8]
	b	LBB0_7
LBB0_6:
	str	wzr, [x21, #8]
	movi	d0, #0000000000000000
LBB0_7:
	ldp	s2, s1, [x21]
	fmul	s2, s2, s2
	fmadd	s2, s1, s1, s2
	fsqrt	s1, s2
	fcmp	s1, s1
	b.vs	LBB0_9
LBB0_8:
	bl	_atan2
	neg	w22, w0
	ldp	s1, s0, [x21]
	bl	_atan2
	mov	x21, x0
	bl	_sin
	fneg	s0, s0
	str	s0, [x20]
	mov	x0, x21
	bl	_cos
	str	s0, [x20, #4]
	str	wzr, [x20, #8]
	mov	x0, x22
	bl	_sin
	fneg	s8, s0
	mov	x0, x21
	bl	_cos
	fmul	s0, s0, s8
	str	s0, [x19]
	mov	x0, x22
	bl	_sin
	fneg	s8, s0
	mov	x0, x21
	bl	_sin
	fmul	s0, s0, s8
	str	s0, [x19, #4]
	mov	x0, x22
	bl	_cos
	fneg	s0, s0
	str	s0, [x19, #8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_9:
	str	s0, [sp, #12]                   ; 4-byte Folded Spill
	fmov	s0, s2
	bl	_sqrt
	fmov	s1, s0
	ldr	s0, [sp, #12]                   ; 4-byte Folded Reload
	b	LBB0_8
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
