	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function xyz_to_eac
LCPI0_0:
	.long	0x40000000                      ## float 2
LCPI0_1:
	.long	0x3f000000                      ## float 0.5
LCPI0_2:
	.long	0x3f800000                      ## float 1
LCPI0_3:
	.long	0x40400000                      ## float 3
LCPI0_4:
	.long	0xbf000000                      ## float -0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_xyz_to_eac:                            ## @xyz_to_eac
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -104(%rbp)                 ## 8-byte Spill
	movq	%r8, -96(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movq	%rdi, %r13
	cvtsi2ss	%edx, %xmm0
	movss	%xmm0, -64(%rbp)                ## 4-byte Spill
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	movaps	%xmm1, %xmm2
	divss	%xmm0, %xmm2
	movss	%xmm2, -56(%rbp)                ## 4-byte Spill
	xorps	%xmm0, %xmm0
	cvtsi2ss	%ecx, %xmm0
	movss	%xmm0, -80(%rbp)                ## 4-byte Spill
	divss	%xmm0, %xmm1
	movss	%xmm1, -60(%rbp)                ## 4-byte Spill
	leaq	-68(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	leaq	-84(%rbp), %r8
	callq	_xyz_to_cube
	movq	(%r13), %rax
	movslq	-84(%rbp), %rcx
	movslq	(%rax,%rcx,4), %r13
	imulq	$1431655766, %r13, %r14         ## imm = 0x55555556
	movq	%r14, %rax
	shrq	$63, %rax
	shrq	$32, %r14
	addl	%eax, %r14d
	leal	(%r14,%r14,2), %eax
	subl	%eax, %r13d
	movq	_M_2_PI@GOTPCREL(%rip), %rax
	movss	(%rax), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movss	-68(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	callq	_atanf
	mulss	-44(%rbp), %xmm0                ## 4-byte Folded Reload
	addss	LCPI0_1(%rip), %xmm0
	movss	%xmm0, -52(%rbp)                ## 4-byte Spill
	movss	-48(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	callq	_atanf
	movaps	%xmm0, %xmm1
	mulss	-44(%rbp), %xmm1                ## 4-byte Folded Reload
	movss	LCPI0_1(%rip), %xmm5            ## xmm5 = mem[0],zero,zero,zero
	addss	%xmm5, %xmm1
	xorps	%xmm2, %xmm2
	cvtsi2ss	%r13d, %xmm2
	addss	-52(%rbp), %xmm2                ## 4-byte Folded Reload
	movss	-56(%rbp), %xmm4                ## 4-byte Reload
                                        ## xmm4 = mem[0],zero,zero,zero
	movaps	%xmm4, %xmm3
	addss	%xmm4, %xmm3
	movss	LCPI0_2(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	subss	%xmm3, %xmm0
	mulss	%xmm2, %xmm0
	divss	LCPI0_3(%rip), %xmm0
	addss	%xmm4, %xmm0
	movss	-60(%rbp), %xmm4                ## 4-byte Reload
                                        ## xmm4 = mem[0],zero,zero,zero
	movaps	%xmm4, %xmm2
	addss	%xmm4, %xmm2
	movaps	%xmm5, %xmm3
	subss	%xmm2, %xmm3
	mulss	%xmm1, %xmm3
	addss	%xmm4, %xmm3
	xorps	%xmm1, %xmm1
	cvtsi2ss	%r14d, %xmm1
	mulss	%xmm5, %xmm1
	addss	%xmm3, %xmm1
	mulss	-64(%rbp), %xmm0                ## 4-byte Folded Reload
	mulss	-80(%rbp), %xmm1                ## 4-byte Folded Reload
	movss	LCPI0_4(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	addss	%xmm2, %xmm0
	movss	%xmm0, -68(%rbp)
	addss	%xmm2, %xmm1
	movss	%xmm1, -48(%rbp)
	callq	_floorf
	movl	%eax, %ebx
	movss	-48(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	callq	_floorf
	movl	%eax, %r13d
	xorps	%xmm0, %xmm0
	cvtsi2ss	%ebx, %xmm0
	movss	-68(%rbp), %xmm1                ## xmm1 = mem[0],zero,zero,zero
	subss	%xmm0, %xmm1
	movq	16(%rbp), %rax
	movss	%xmm1, (%rax)
	movss	-48(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	xorps	%xmm1, %xmm1
	cvtsi2ss	%r13d, %xmm1
	subss	%xmm1, %xmm0
	movq	24(%rbp), %rax
	movss	%xmm0, (%rax)
	decl	%r12d
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	decl	%r15d
	movl	%r15d, -64(%rbp)                ## 4-byte Spill
	leal	-1(%rbx), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	leal	1(%rbx), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	%ebx, %eax
	addl	$2, %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	decl	%r13d
	xorl	%r14d, %r14d
	movl	-64(%rbp), %r15d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	xorl	%esi, %esi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_av_clip
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r14)
	movq	%rcx, %r12
	movl	%r13d, %edi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_av_clip
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx,%r14)
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_av_clip
	movl	%eax, 4(%r12,%r14)
	movl	%r13d, %edi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_av_clip
	movq	-104(%rbp), %r12                ## 8-byte Reload
	movl	%eax, 4(%r12,%r14)
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_av_clip
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, 8(%rbx,%r14)
	movl	%r13d, %edi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_av_clip
	movl	%eax, 8(%r12,%r14)
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	xorl	%esi, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_av_clip
	movl	%eax, 12(%rbx,%r14)
	movl	%r13d, %edi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_av_clip
	movl	%eax, 12(%r12,%r14)
	incl	%r13d
	addq	$16, %r14
	cmpq	$64, %r14
	jne	LBB0_1
## %bb.2:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_2_PI,4,2                     ## @M_2_PI
	.no_dead_strip	_xyz_to_eac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xyz_to_eac
_xyz_to_eac:                            ; @xyz_to_eac
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	d15, d14, [sp, #32]             ; 16-byte Folded Spill
	stp	d13, d12, [sp, #48]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #64]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #80]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	.cfi_offset b14, -152
	.cfi_offset b15, -160
	mov	x22, x7
	mov	x25, x6
	str	x5, [sp, #8]                    ; 8-byte Folded Spill
	mov	x21, x4
	mov	x24, x3
	mov	x23, x2
	mov	x20, x0
	scvtf	s8, w2
	fmov	s0, #2.00000000
	fdiv	s9, s0, s8
	scvtf	s10, w3
	fdiv	s11, s0, s10
	add	x2, sp, #28
	add	x3, sp, #24
	add	x4, sp, #20
	bl	_xyz_to_cube
	ldr	x8, [x20]
	ldrsw	x9, [sp, #20]
	ldr	w8, [x8, x9, lsl #2]
	mov	w9, #21846
	movk	w9, #21845, lsl #16
	smull	x9, w8, w9
	lsr	x10, x9, #63
	lsr	x9, x9, #32
	add	w20, w9, w10
	add	w9, w20, w20, lsl #1
	sub	w26, w8, w9
Lloh0:
	adrp	x8, _M_2_PI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_2_PI@GOTPAGEOFF]
Lloh2:
	ldr	s12, [x8]
	ldr	s0, [sp, #28]
	bl	_atanf
	fmov	s13, #0.50000000
	fmadd	s14, s12, s0, s13
	ldr	s0, [sp, #24]
	bl	_atanf
	fmadd	s0, s12, s0, s13
	scvtf	s1, w26
	fadd	s1, s14, s1
	fmov	s2, #1.00000000
	fmov	s3, #-2.00000000
	fmadd	s2, s9, s3, s2
	fmul	s1, s2, s1
	fmov	s2, #3.00000000
	fdiv	s1, s1, s2
	fadd	s1, s9, s1
	fmadd	s2, s11, s3, s13
	fmadd	s0, s0, s2, s11
	scvtf	s2, w20
	fmadd	s0, s2, s13, s0
	fmul	s1, s1, s8
	fmul	s2, s0, s10
	fmov	s3, #-0.50000000
	fadd	s0, s1, s3
	fadd	s1, s2, s3
	stp	s1, s0, [sp, #24]
	bl	_floorf
	mov	x19, x0
	ldr	s0, [sp, #24]
	bl	_floorf
	mov	x28, #0
	ldr	s0, [sp, #28]
	scvtf	s1, w19
	fsub	s0, s0, s1
	str	s0, [x25]
	ldr	s0, [sp, #24]
	scvtf	s1, w0
	sub	w23, w23, #1
	sub	w24, w24, #1
	sub	w8, w19, #1
	str	w8, [sp, #4]                    ; 4-byte Folded Spill
	fsub	s0, s0, s1
	str	s0, [x22]
	add	w22, w19, #1
	mov	x25, x19
	add	w26, w19, #2
	sub	w27, w0, #1
	add	x21, x21, #8
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [sp, #4]                    ; 4-byte Folded Reload
	mov	w1, #0
	mov	x2, x23
	bl	_av_clip
	add	x19, x21, x28
	stur	w0, [x19, #-8]
	mov	x0, x27
	mov	w1, #0
	mov	x2, x24
	bl	_av_clip
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x20, x8, x28
	str	w0, [x20]
	mov	x0, x25
	mov	w1, #0
	mov	x2, x23
	bl	_av_clip
	stur	w0, [x19, #-4]
	mov	x0, x27
	mov	w1, #0
	mov	x2, x24
	bl	_av_clip
	str	w0, [x20, #4]
	mov	x0, x22
	mov	w1, #0
	mov	x2, x23
	bl	_av_clip
	str	w0, [x19]
	mov	x0, x27
	mov	w1, #0
	mov	x2, x24
	bl	_av_clip
	str	w0, [x20, #8]
	mov	x0, x26
	mov	w1, #0
	mov	x2, x23
	bl	_av_clip
	str	w0, [x19, #4]
	mov	x0, x27
	mov	w1, #0
	mov	x2, x24
	bl	_av_clip
	str	w0, [x20, #12]
	add	w27, w27, #1
	add	x28, x28, #16
	cmp	x28, #64
	b.ne	LBB0_1
; %bb.2:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #80]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #64]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #48]             ; 16-byte Folded Reload
	ldp	d15, d14, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_M_2_PI,4,2                     ; @M_2_PI
	.no_dead_strip	_xyz_to_eac
.subsections_via_symbols
