	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function cube_to_xyz
LCPI0_0:
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2
LCPI0_1:
	.long	0x3f800000                      ## float 1
LCPI0_2:
	.long	0xbf800000                      ## float -1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_cube_to_xyz:                           ## @cube_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	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	(%rdi), %rax
	movslq	%esi, %rcx
	movl	(%rax,%rcx,4), %ebx
	divss	%xmm2, %xmm0
	movss	%xmm0, -24(%rbp)
	divss	%xmm3, %xmm1
	movss	%xmm1, -20(%rbp)
	movq	8(%rdi), %rax
	movl	(%rax,%rcx,4), %edx
	leaq	-24(%rbp), %rdi
	leaq	-20(%rbp), %rsi
	callq	_rotate_cube_face_inverse
	addl	$-128, %ebx
	cmpl	$5, %ebx
	ja	LBB0_8
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_4:
	movss	-24(%rbp), %xmm1                ## xmm1 = mem[0],zero,zero,zero
	movss	-20(%rbp), %xmm2                ## xmm2 = mem[0],zero,zero,zero
	xorps	LCPI0_0(%rip), %xmm2
	movss	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	jmp	LBB0_9
LBB0_8:
	xorl	%edi, %edi
	callq	_av_assert0
                                        ## implicit-def: $xmm1
                                        ## implicit-def: $xmm0
                                        ## implicit-def: $xmm2
	jmp	LBB0_9
LBB0_2:
	movss	-20(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	xorps	LCPI0_0(%rip), %xmm0
	movss	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	movss	-24(%rbp), %xmm2                ## xmm2 = mem[0],zero,zero,zero
	jmp	LBB0_9
LBB0_3:
	movss	-20(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movaps	LCPI0_0(%rip), %xmm1            ## xmm1 = [-0.0E+0,-0.0E+0,-0.0E+0,-0.0E+0]
	xorps	%xmm1, %xmm0
	movss	-24(%rbp), %xmm2                ## xmm2 = mem[0],zero,zero,zero
	xorps	%xmm1, %xmm2
	movss	LCPI0_2(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	jmp	LBB0_9
LBB0_6:
	movss	-24(%rbp), %xmm1                ## xmm1 = mem[0],zero,zero,zero
	movss	-20(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	xorps	LCPI0_0(%rip), %xmm0
	movss	LCPI0_2(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	jmp	LBB0_9
LBB0_5:
	movss	-24(%rbp), %xmm1                ## xmm1 = mem[0],zero,zero,zero
	movss	LCPI0_2(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	-20(%rbp), %xmm2                ## xmm2 = mem[0],zero,zero,zero
	jmp	LBB0_9
LBB0_7:
	movss	-24(%rbp), %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	%xmm2, %xmm1
	movss	-20(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	xorps	%xmm2, %xmm0
	movss	LCPI0_1(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
LBB0_9:
	movss	%xmm1, (%r14)
	movss	%xmm0, 4(%r14)
	movss	%xmm2, 8(%r14)
	movq	%r14, %rdi
	callq	_normalize_vector
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.no_dead_strip	_cube_to_xyz
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cube_to_xyz
_cube_to_xyz:                           ; @cube_to_xyz
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
                                        ; kill: def $w1 killed $w1 def $x1
	sbfiz	x8, x1, #2, #32
	ldp	x9, x10, [x0]
	ldr	w20, [x9, x8]
	fdiv	s4, s0, s2
	fdiv	s0, s1, s3
	stp	s0, s4, [sp, #8]
	ldr	w2, [x10, x8]
	add	x0, sp, #12
	add	x1, sp, #8
	bl	_rotate_cube_face_inverse
	sub	w8, w20, #128
	cmp	w8, #5
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldp	s1, s0, [sp, #8]
	fneg	s2, s1
	fmov	s1, #1.00000000
	b	LBB0_9
LBB0_3:
	mov	w0, #0
	bl	_av_assert0
                                        ; implicit-def: $s0
                                        ; implicit-def: $s1
                                        ; implicit-def: $s2
	b	LBB0_9
LBB0_4:
	ldp	s0, s2, [sp, #8]
	fneg	s1, s0
	fmov	s0, #1.00000000
	b	LBB0_9
LBB0_5:
	ldr	s0, [sp, #8]
	fneg	s1, s0
	ldr	s0, [sp, #12]
	fneg	s2, s0
	fmov	s0, #-1.00000000
	b	LBB0_9
LBB0_6:
	ldp	s1, s0, [sp, #8]
	fneg	s1, s1
	fmov	s2, #-1.00000000
	b	LBB0_9
LBB0_7:
	ldp	s2, s0, [sp, #8]
	fmov	s1, #-1.00000000
	b	LBB0_9
LBB0_8:
	ldp	s1, s0, [sp, #8]
	fneg	s0, s0
	fneg	s1, s1
	fmov	s2, #1.00000000
LBB0_9:
	stp	s0, s1, [x19]
	str	s2, [x19, #8]
	mov	x0, x19
	bl	_normalize_vector
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
                                        ; -- End function
	.no_dead_strip	_cube_to_xyz
.subsections_via_symbols
