	.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_cube3x2
LCPI0_0:
	.long	0x40400000                      ## float 3
LCPI0_1:
	.long	0x3f000000                      ## float 0.5
LCPI0_2:
	.long	0x3f800000                      ## float 1
LCPI0_3:
	.long	0xbf000000                      ## float -0.5
LCPI0_4:
	.long	0xbf800000                      ## float -1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_xyz_to_cube3x2:                        ## @xyz_to_cube3x2
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -136(%rbp)                 ## 8-byte Spill
	movq	%r8, -128(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movss	(%rdi), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	xorps	%xmm1, %xmm1
	ucomiss	%xmm1, %xmm0
	jbe	LBB0_2
## %bb.1:
	movss	4(%r15), %xmm2                  ## xmm2 = mem[0],zero,zero,zero
	movss	12(%r15), %xmm3                 ## xmm3 = mem[0],zero,zero,zero
	divss	LCPI0_0(%rip), %xmm2
	movaps	%xmm0, %xmm1
	divss	%xmm2, %xmm1
	mulss	LCPI0_1(%rip), %xmm3
	divss	%xmm3, %xmm0
	jmp	LBB0_3
LBB0_2:
	movss	8(%r15), %xmm1                  ## xmm1 = mem[0],zero,zero,zero
	movaps	%xmm1, %xmm0
LBB0_3:
	movss	LCPI0_2(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	movaps	%xmm2, %xmm3
	subss	%xmm1, %xmm3
	movss	%xmm3, -64(%rbp)                ## 4-byte Spill
	xorps	%xmm1, %xmm1
	cvtsi2ss	%edx, %xmm1
	subss	%xmm0, %xmm2
	movss	%xmm2, -60(%rbp)                ## 4-byte Spill
	xorps	%xmm0, %xmm0
	cvtsi2ss	%ecx, %xmm0
	divss	LCPI0_0(%rip), %xmm1
	movss	%xmm1, -56(%rbp)                ## 4-byte Spill
	mulss	LCPI0_1(%rip), %xmm0
	movss	%xmm0, -52(%rbp)                ## 4-byte Spill
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	leaq	-72(%rbp), %r8
	movq	%r15, %rdi
	callq	_xyz_to_cube
	movss	-48(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	mulss	-64(%rbp), %xmm0                ## 4-byte Folded Reload
	movss	%xmm0, -48(%rbp)
	movss	-44(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	mulss	-60(%rbp), %xmm0                ## 4-byte Folded Reload
	movss	%xmm0, -44(%rbp)
	movq	16(%r15), %rax
	movslq	-72(%rbp), %rcx
	movslq	(%rax,%rcx,4), %rax
	movl	%eax, -68(%rbp)
	imulq	$1431655766, %rax, %rbx         ## imm = 0x55555556
	movq	%rbx, %r13
	shrq	$63, %r13
	shrq	$32, %rbx
	leal	(%rbx,%r13), %r14d
	leal	(%r14,%r14,2), %ecx
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	movl	%eax, %r15d
	subl	%ecx, %r15d
	negl	%ecx
	addl	%ecx, %eax
	incl	%eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	mulss	-56(%rbp), %xmm0                ## 4-byte Folded Reload
	callq	_ceilf
	movl	%eax, %r12d
	xorps	%xmm0, %xmm0
	cvtsi2ss	%r15d, %xmm0
	movq	-112(%rbp), %r15                ## 8-byte Reload
	mulss	-56(%rbp), %xmm0                ## 4-byte Folded Reload
	callq	_ceilf
	subl	%eax, %r12d
	leal	(%rbx,%r13), %eax
	incl	%eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	mulss	-52(%rbp), %xmm0                ## 4-byte Folded Reload
	callq	_ceilf
	movl	%eax, %r13d
	xorps	%xmm0, %xmm0
	cvtsi2ss	%r14d, %xmm0
	mulss	-52(%rbp), %xmm0                ## 4-byte Folded Reload
	callq	_ceilf
	subl	%eax, %r13d
	xorps	%xmm1, %xmm1
	cvtsi2ss	%r12d, %xmm1
	movss	%xmm1, -96(%rbp)                ## 4-byte Spill
	movss	LCPI0_1(%rip), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	mulss	%xmm3, %xmm1
	movss	-48(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movss	LCPI0_2(%rip), %xmm4            ## xmm4 = mem[0],zero,zero,zero
	addss	%xmm4, %xmm0
	mulss	%xmm1, %xmm0
	movss	LCPI0_3(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	xorps	%xmm2, %xmm2
	cvtsi2ss	%r13d, %xmm2
	addss	%xmm1, %xmm0
	movss	%xmm0, -48(%rbp)
	movss	%xmm2, -92(%rbp)                ## 4-byte Spill
	mulss	%xmm3, %xmm2
	movss	-44(%rbp), %xmm3                ## xmm3 = mem[0],zero,zero,zero
	addss	%xmm4, %xmm3
	mulss	%xmm2, %xmm3
	addss	%xmm1, %xmm3
	movss	%xmm3, -44(%rbp)
	callq	_floorf
	movl	%eax, %ebx
	movss	-44(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	callq	_floorf
	movss	-48(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	xorps	%xmm1, %xmm1
	cvtsi2ss	%ebx, %xmm1
	subss	%xmm1, %xmm0
	movq	16(%rbp), %rcx
	movss	%xmm0, (%rcx)
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	movss	-44(%rbp), %xmm1                ## xmm1 = mem[0],zero,zero,zero
	subss	%xmm0, %xmm1
	movq	24(%rbp), %rcx
	movss	%xmm1, (%rcx)
	movslq	%ebx, %rcx
	movslq	%r12d, %rdx
	movq	%rdx, -168(%rbp)                ## 8-byte Spill
	cltq
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	movslq	%r13d, %rax
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	leaq	-1(%rcx), %rax
	movq	%rax, -176(%rbp)                ## 8-byte Spill
	decl	%ecx
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	movq	$-1, %rcx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	addq	$16, -128(%rbp)                 ## 8-byte Folded Spill
	addq	$16, -136(%rbp)                 ## 8-byte Folded Spill
	movq	-152(%rbp), %rcx                ## 8-byte Reload
	cmpq	$3, %rcx
	je	LBB0_11
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	-144(%rbp), %rax                ## 8-byte Reload
	addq	%rcx, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	addss	%xmm0, %xmm0
	divss	-92(%rbp), %xmm0                ## 4-byte Folded Reload
	addss	LCPI0_4(%rip), %xmm0
	divss	-60(%rbp), %xmm0                ## 4-byte Folded Reload
	movss	%xmm0, -100(%rbp)               ## 4-byte Spill
	incq	%rcx
	movq	%rcx, -152(%rbp)                ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	-120(%rbp), %rax                ## 8-byte Reload
	addl	%r13d, %eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	addss	%xmm0, %xmm0
	divss	-96(%rbp), %xmm0                ## 4-byte Folded Reload
	addss	LCPI0_4(%rip), %xmm0
	divss	-64(%rbp), %xmm0                ## 4-byte Folded Reload
	movss	%xmm0, -48(%rbp)
	movss	-100(%rbp), %xmm1               ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	movss	%xmm1, -44(%rbp)
	movl	-72(%rbp), %esi
	movq	%r15, %rdi
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	leaq	-68(%rbp), %r8
	callq	_process_cube_coordinates
	movss	-48(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	mulss	-64(%rbp), %xmm0                ## 4-byte Folded Reload
	movss	%xmm0, -48(%rbp)
	movss	-44(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	mulss	-60(%rbp), %xmm0                ## 4-byte Folded Reload
	movss	%xmm0, -44(%rbp)
	movslq	-68(%rbp), %rbx
	imulq	$1431655766, %rbx, %r14         ## imm = 0x55555556
	movq	%r14, %r15
	shrq	$63, %r15
	shrq	$32, %r14
	leal	(%r14,%r15), %r12d
	leal	(%r12,%r12,2), %eax
	subl	%eax, %ebx
	xorps	%xmm0, %xmm0
	cvtsi2ss	%ebx, %xmm0
	mulss	-56(%rbp), %xmm0                ## 4-byte Folded Reload
	callq	_ceilf
	movq	%r13, -184(%rbp)                ## 8-byte Spill
	movl	%eax, %r13d
	xorps	%xmm0, %xmm0
	cvtsi2ss	%r12d, %xmm0
	mulss	-52(%rbp), %xmm0                ## 4-byte Folded Reload
	callq	_ceilf
	movl	%eax, %r12d
	incl	%ebx
	xorps	%xmm0, %xmm0
	cvtsi2ss	%ebx, %xmm0
	mulss	-56(%rbp), %xmm0                ## 4-byte Folded Reload
	callq	_ceilf
	movl	%eax, %ebx
	movl	%r13d, -76(%rbp)                ## 4-byte Spill
	subl	%r13d, %ebx
	movq	-184(%rbp), %r13                ## 8-byte Reload
	leal	(%r14,%r15), %eax
	incl	%eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	mulss	-52(%rbp), %xmm0                ## 4-byte Folded Reload
	callq	_ceilf
	movl	%eax, %r15d
	subl	%r12d, %r15d
	xorps	%xmm1, %xmm1
	cvtsi2ss	%ebx, %xmm1
	movss	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm1
	movss	-48(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movss	LCPI0_2(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	addss	%xmm2, %xmm0
	mulss	%xmm1, %xmm0
	callq	_roundf
	decl	%ebx
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_av_clip
	movl	%eax, %r14d
	xorps	%xmm1, %xmm1
	cvtsi2ss	%r15d, %xmm1
	mulss	LCPI0_1(%rip), %xmm1
	movss	-44(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	addss	LCPI0_2(%rip), %xmm0
	mulss	%xmm1, %xmm0
	callq	_roundf
	decl	%r15d
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	%r15d, %edx
	movq	-112(%rbp), %r15                ## 8-byte Reload
	callq	_av_clip
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=2
	addl	%r12d, %eax
	addl	-76(%rbp), %r14d                ## 4-byte Folded Reload
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	movl	%r14d, (%rcx,%r13,4)
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx,%r13,4)
	incq	%r13
	cmpq	$4, %r13
	je	LBB0_10
LBB0_5:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-176(%rbp), %rax                ## 8-byte Reload
	addq	%r13, %rax
	js	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	cmpq	-168(%rbp), %rax                ## 8-byte Folded Reload
	jge	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	cmpq	$0, -88(%rbp)                   ## 8-byte Folded Reload
	js	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	cmpq	-160(%rbp), %rax                ## 8-byte Folded Reload
	jge	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	16(%r15), %rax
	movslq	-72(%rbp), %rcx
	movslq	(%rax,%rcx,4), %rax
	movl	%eax, -68(%rbp)
	imulq	$1431655766, %rax, %rbx         ## imm = 0x55555556
	movq	%rbx, %rcx
	shrq	$63, %rcx
	shrq	$32, %rbx
	addl	%ecx, %ebx
	leal	(%rbx,%rbx,2), %ecx
	subl	%ecx, %eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	mulss	-56(%rbp), %xmm0                ## 4-byte Folded Reload
	callq	_ceilf
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	xorps	%xmm0, %xmm0
	cvtsi2ss	%ebx, %xmm0
	mulss	-52(%rbp), %xmm0                ## 4-byte Folded Reload
	callq	_ceilf
	movl	%eax, %r12d
	movq	-120(%rbp), %rax                ## 8-byte Reload
	leal	(%rax,%r13), %r14d
	movq	-88(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	jmp	LBB0_13
LBB0_11:
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_xyz_to_cube3x2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xyz_to_cube3x2
_xyz_to_cube3x2:                        ; @xyz_to_cube3x2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	d15, d14, [sp, #80]             ; 16-byte Folded Spill
	stp	d13, d12, [sp, #96]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #112]            ; 16-byte Folded Spill
	stp	d9, d8, [sp, #128]              ; 16-byte Folded Spill
	stp	x28, x27, [sp, #144]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #160]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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	x23, x6
	stp	x4, x5, [sp, #48]               ; 16-byte Folded Spill
	mov	x20, x0
	ldr	s1, [x0]
	fcmp	s1, #0.0
	b.le	LBB0_2
; %bb.1:
	ldr	s0, [x20, #4]
	fmov	s2, #3.00000000
	fdiv	s0, s0, s2
	fdiv	s0, s1, s0
	ldr	s2, [x20, #12]
	fmov	s3, #0.50000000
	fmul	s2, s2, s3
	fdiv	s1, s1, s2
	b	LBB0_3
LBB0_2:
	ldr	s0, [x20, #8]
	fmov	s1, s0
LBB0_3:
	fmov	s9, #1.00000000
	fsub	s10, s9, s0
	fsub	s11, s9, s1
	scvtf	s0, w2
	fmov	s1, #3.00000000
	fdiv	s12, s0, s1
	scvtf	s0, w3
	fmov	s13, #0.50000000
	fmul	s14, s0, s13
	add	x2, sp, #76
	add	x3, sp, #72
	add	x4, sp, #68
	mov	x0, x20
	bl	_xyz_to_cube
	ldr	s0, [sp, #76]
	fmul	s1, s10, s0
	ldr	s0, [sp, #72]
	fmul	s0, s11, s0
	stp	s0, s1, [sp, #72]
	ldr	x8, [x20, #16]
	ldrsw	x9, [sp, #68]
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [sp, #64]
	mov	w9, #21846
	movk	w9, #21845, lsl #16
	smull	x9, w8, w9
	lsr	x10, x9, #63
	lsr	x9, x9, #32
	add	w25, w9, w10
	add	w9, w25, w25, lsl #1
	sub	w26, w8, w9
	add	w8, w26, #1
	scvtf	s0, w8
	fmul	s0, s12, s0
	bl	_ceilf
	mov	x24, x0
	scvtf	s0, w26
	fmul	s0, s12, s0
	bl	_ceilf
	sub	w26, w24, w0
	add	w8, w25, #1
	scvtf	s0, w8
	fmul	s0, s14, s0
	bl	_ceilf
	mov	x24, x0
	scvtf	s0, w25
	fmul	s0, s14, s0
	bl	_ceilf
	sub	w25, w24, w0
	scvtf	s15, w26
	fmul	s0, s15, s13
	ldp	s3, s1, [sp, #72]
	fadd	s1, s1, s9
	fmov	s2, #-0.50000000
	fmadd	s0, s0, s1, s2
	scvtf	s1, w25
	str	s1, [sp, #20]                   ; 4-byte Folded Spill
	fmul	s1, s1, s13
	fadd	s3, s3, s9
	fmadd	s1, s1, s3, s2
	stp	s1, s0, [sp, #72]
	bl	_floorf
	mov	x24, x0
	ldr	s0, [sp, #72]
	bl	_floorf
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	s0, [sp, #76]
	scvtf	s1, w24
	fsub	s0, s0, s1
	str	s0, [x23]
	ldr	s0, [sp, #72]
	scvtf	s1, w0
	fsub	s0, s0, s1
	str	s0, [x22]
	sxtw	x8, w24
	sxtw	x11, w26
	sxtw	x9, w0
	str	x9, [sp, #8]                    ; 8-byte Folded Spill
	sxtw	x9, w25
	stp	x9, x11, [sp, #32]              ; 16-byte Folded Spill
	sub	x27, x8, #1
	sub	w25, w24, #1
	mov	x9, #-1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	add	x9, x8, #16
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	add	x8, x8, #16
	stp	x9, x8, [sp, #48]               ; 16-byte Folded Spill
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	cmp	x9, #3
	b.eq	LBB0_13
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	mov	x28, #0
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x26, x9, x8
	scvtf	s0, w26
	fadd	s0, s0, s0
	ldr	s1, [sp, #20]                   ; 4-byte Folded Reload
	fdiv	s0, s0, s1
	fmov	s1, #-1.00000000
	fadd	s0, s0, s1
	fdiv	s8, s0, s11
	add	x9, x9, #1
	str	x9, [sp, #24]                   ; 8-byte Folded Spill
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	w8, w25, w28
	scvtf	s0, w8
	fadd	s0, s0, s0
	fdiv	s0, s0, s15
	fmov	s1, #-1.00000000
	fadd	s0, s0, s1
	fdiv	s0, s0, s10
	stp	s8, s0, [sp, #72]
	ldr	w1, [sp, #68]
	add	x2, sp, #76
	add	x3, sp, #72
	add	x4, sp, #64
	mov	x0, x20
	fmov	s1, s8
	bl	_process_cube_coordinates
	ldr	s0, [sp, #76]
	fmul	s2, s10, s0
	ldr	s0, [sp, #72]
	fmul	s0, s11, s0
	stp	s0, s2, [sp, #72]
	ldr	w8, [sp, #64]
	mov	w9, #21846
	movk	w9, #21845, lsl #16
	smull	x9, w8, w9
	lsr	x10, x9, #63
	lsr	x9, x9, #32
	add	w24, w9, w10
	add	w9, w24, w24, lsl #1
	sub	w21, w8, w9
	scvtf	s0, w21
	fmul	s0, s12, s0
	bl	_ceilf
	mov	x22, x0
	scvtf	s0, w24
	fmul	s0, s14, s0
	bl	_ceilf
	mov	x23, x0
	add	w8, w21, #1
	scvtf	s0, w8
	fmul	s0, s12, s0
	bl	_ceilf
	sub	w21, w0, w22
	add	w8, w24, #1
	scvtf	s0, w8
	fmul	s0, s14, s0
	bl	_ceilf
	sub	w19, w0, w23
	scvtf	s0, w21
	fmul	s0, s0, s13
	ldr	s1, [sp, #76]
	fadd	s1, s1, s9
	fmul	s0, s0, s1
	bl	_roundf
	sub	w2, w21, #1
	mov	w1, #0
	bl	_av_clip
	mov	x24, x0
	scvtf	s0, w19
	fmul	s0, s0, s13
	ldr	s1, [sp, #72]
	fadd	s1, s1, s9
	fmul	s0, s0, s1
	bl	_roundf
	sub	w2, w19, #1
	mov	w1, #0
	bl	_av_clip
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	w8, w22, w24
	lsl	x9, x28, #2
	ldr	x10, [sp, #48]                  ; 8-byte Folded Reload
	str	w8, [x10, x9]
	add	w8, w23, w0
	ldr	x10, [sp, #56]                  ; 8-byte Folded Reload
	str	w8, [x10, x9]
	add	x28, x28, #1
	cmp	x28, #4
	b.eq	LBB0_4
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	adds	x8, x27, x28
	b.mi	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	cmp	x8, x9
	b.ge	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	tbnz	x26, #63, LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	cmp	x26, x8
	b.ge	LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [x20, #16]
	ldrsw	x9, [sp, #68]
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [sp, #64]
	mov	w9, #21846
	movk	w9, #21845, lsl #16
	smull	x9, w8, w9
	lsr	x10, x9, #63
	lsr	x9, x9, #32
	add	w23, w9, w10
	add	w9, w23, w23, lsl #1
	sub	w8, w8, w9
	scvtf	s0, w8
	fmul	s0, s12, s0
	bl	_ceilf
	mov	x22, x0
	scvtf	s0, w23
	fmul	s0, s14, s0
	bl	_ceilf
	mov	x23, x0
	add	w24, w25, w28
	mov	x0, x26
	b	LBB0_7
LBB0_13:
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #160]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #144]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #128]              ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #112]            ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #96]             ; 16-byte Folded Reload
	ldp	d15, d14, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_xyz_to_cube3x2
.subsections_via_symbols
