	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function Refresh
LCPI0_0:
	.long	63                              ## 0x3f
	.long	63                              ## 0x3f
	.long	63                              ## 0x3f
	.long	63                              ## 0x3f
LCPI0_1:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_Refresh:                               ## @Refresh
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rsi), %r13d
	movq	%rsi, %rdi
	callq	_STATS
	leal	2(%r13), %ecx
	shrl	%ecx
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_ShrinkUnits
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_REF
	movl	%eax, 12(%r14)
	leal	16(,%r15,4), %eax
	andl	8(%r14), %eax
	xorl	%esi, %esi
	cmpl	$64, (%rbx)
	movl	4(%rbx), %edx
	setge	%sil
	movl	4(%r14), %edi
	subl	%edx, %edi
	addl	%r15d, %edx
	movl	%r15d, %ecx
	shrl	%cl, %edx
	leal	(%rax,%rsi,8), %r10d
	movl	%edx, 4(%rbx)
	leal	-1(%r13), %r8d
	cmpl	$7, %r8d
	jae	LBB0_2
## %bb.1:
	movq	%rbx, %r9
	jmp	LBB0_5
LBB0_2:
	incq	%r8
	movq	%r8, %rcx
	andq	$-8, %rcx
	subl	%ecx, %r13d
	leaq	(%rbx,%rcx,8), %r9
	movd	%edi, %xmm12
	movd	%edx, %xmm14
	movd	%r10d, %xmm3
	movd	%r15d, %xmm0
	pshufd	$0, %xmm0, %xmm10               ## xmm10 = xmm0[0,0,0,0]
	pxor	%xmm13, %xmm13
	xorl	%edx, %edx
	pmovzxdq	%xmm0, %xmm11                   ## xmm11 = xmm0[0],zero,xmm0[1],zero
	movdqa	LCPI0_0(%rip), %xmm8            ## xmm8 = [63,63,63,63]
	movdqa	LCPI0_1(%rip), %xmm9            ## xmm9 = [8,8,8,8]
	pxor	%xmm4, %xmm4
	pxor	%xmm7, %xmm7
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movups	8(%rbx,%rdx,8), %xmm6
	movups	24(%rbx,%rdx,8), %xmm15
	movups	40(%rbx,%rdx,8), %xmm5
	movups	56(%rbx,%rdx,8), %xmm2
	movaps	%xmm6, %xmm0
	movaps	%xmm5, %xmm1
	shufps	$221, %xmm15, %xmm6             ## xmm6 = xmm6[1,3],xmm15[1,3]
	shufps	$221, %xmm2, %xmm5              ## xmm5 = xmm5[1,3],xmm2[1,3]
	psubd	%xmm6, %xmm12
	psubd	%xmm5, %xmm13
	paddd	%xmm10, %xmm6
	psrld	%xmm11, %xmm6
	movd	%xmm6, 12(%rbx,%rdx,8)
	pextrd	$1, %xmm6, 20(%rbx,%rdx,8)
	pextrd	$2, %xmm6, 28(%rbx,%rdx,8)
	pextrd	$3, %xmm6, 36(%rbx,%rdx,8)
	paddd	%xmm10, %xmm5
	psrld	%xmm11, %xmm5
	movd	%xmm5, 44(%rbx,%rdx,8)
	pextrd	$1, %xmm5, 52(%rbx,%rdx,8)
	pextrd	$2, %xmm5, 60(%rbx,%rdx,8)
	pextrd	$3, %xmm5, 68(%rbx,%rdx,8)
	shufps	$136, %xmm15, %xmm0             ## xmm0 = xmm0[0,2],xmm15[0,2]
	shufps	$136, %xmm2, %xmm1              ## xmm1 = xmm1[0,2],xmm2[0,2]
	paddd	%xmm6, %xmm14
	paddd	%xmm5, %xmm4
	pcmpgtd	%xmm8, %xmm0
	pand	%xmm9, %xmm0
	por	%xmm0, %xmm3
	pcmpgtd	%xmm8, %xmm1
	pand	%xmm9, %xmm1
	por	%xmm1, %xmm7
	addq	$8, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_3
## %bb.4:
	por	%xmm3, %xmm7
	pshufd	$238, %xmm7, %xmm0              ## xmm0 = xmm7[2,3,2,3]
	por	%xmm7, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	por	%xmm0, %xmm1
	movd	%xmm1, %r10d
	paddd	%xmm14, %xmm4
	pshufd	$238, %xmm4, %xmm0              ## xmm0 = xmm4[2,3,2,3]
	paddd	%xmm4, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %edx
	paddd	%xmm12, %xmm13
	pshufd	$238, %xmm13, %xmm0             ## xmm0 = xmm13[2,3,2,3]
	paddd	%xmm13, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %edi
	cmpq	%rcx, %r8
	je	LBB0_7
LBB0_5:
	movl	%r13d, %r8d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r9,%rbx,8), %eax
	movl	12(%r9,%rbx,8), %esi
	subl	%esi, %edi
	addl	%r15d, %esi
	movl	%r15d, %ecx
	shrl	%cl, %esi
	movl	%esi, 12(%r9,%rbx,8)
	addl	%esi, %edx
	xorl	%ecx, %ecx
	cmpl	$64, %eax
	setge	%cl
	shll	$3, %ecx
	orl	%ecx, %r10d
	incq	%rbx
	cmpl	%ebx, %r8d
	jne	LBB0_6
LBB0_7:
	addl	%r15d, %edi
	movl	%r15d, %ecx
	shrl	%cl, %edi
	addl	%edx, %edi
	movl	%edi, 4(%r14)
	movl	%r10d, 8(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_Refresh
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Refresh
_Refresh:                               ; @Refresh
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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 b8, -72
	.cfi_offset b9, -80
	.cfi_offset b10, -88
	.cfi_offset b11, -96
	mov	x20, x3
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
	ldr	w23, [x1]
	mov	x0, x1
	bl	_STATS
	mov	x1, x0
	add	w8, w23, #2
	lsr	w3, w8, #1
	mov	x0, x22
	mov	x2, x21
	bl	_ShrinkUnits
	mov	x21, x0
	bl	_REF
	str	w0, [x19, #12]
	lsl	w8, w20, #2
	add	w8, w8, #16
	ldp	w10, w9, [x19, #4]
	and	w8, w9, w8
	ldp	w9, w12, [x21]
	cmp	w9, #63
	cset	w9, gt
	add	w11, w8, w9, lsl #3
	sub	w13, w10, w12
	add	w8, w12, w20
	lsr	w12, w8, w20
	str	w12, [x21, #4]
	sub	w8, w23, #1
	cmp	w8, #15
	b.hs	LBB0_2
; %bb.1:
	mov	x8, x21
	b	LBB0_5
LBB0_2:
	add	x9, x8, #1
	and	x10, x9, #0x1fffffff0
	sub	w23, w23, w10
	movi.2d	v0, #0000000000000000
	movi.2d	v1, #0000000000000000
	mov.s	v1[0], w13
	movi.2d	v2, #0000000000000000
	mov.s	v2[0], w12
	movi.2d	v5, #0000000000000000
	mov.s	v5[0], w11
	dup.4s	v17, w20
	add	x8, x21, x10, lsl #3
	neg.4s	v18, v17
	add	x11, x21, #68
	movi.4s	v19, #63
	movi.4s	v20, #8
	mov	x12, x10
	movi.2d	v3, #0000000000000000
	movi.2d	v4, #0000000000000000
	movi.2d	v6, #0000000000000000
	movi.2d	v7, #0000000000000000
	movi.2d	v16, #0000000000000000
	movi.2d	v21, #0000000000000000
	movi.2d	v22, #0000000000000000
	movi.2d	v23, #0000000000000000
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	x13, x11, #60
	ld2.4s	{ v24, v25 }, [x13]
	sub	x13, x11, #28
	ld2.4s	{ v26, v27 }, [x13]
	add	x13, x11, #4
	ld2.4s	{ v28, v29 }, [x13]
	add	x13, x11, #36
	ld2.4s	{ v30, v31 }, [x13]
	sub.4s	v1, v1, v25
	sub.4s	v0, v0, v27
	sub.4s	v3, v3, v29
	sub.4s	v4, v4, v31
	add.4s	v8, v25, v17
	sub	x13, x11, #48
	add.4s	v9, v27, v17
	sub	x14, x11, #40
	add.4s	v10, v29, v17
	sub	x15, x11, #32
	add.4s	v11, v31, v17
	sub	x16, x11, #16
	ushl.4s	v8, v8, v18
	sub	x17, x11, #8
	ushl.4s	v9, v9, v18
	add	x0, x11, #16
	ushl.4s	v10, v10, v18
	add	x1, x11, #24
	ushl.4s	v11, v11, v18
	st1.s	{ v8 }[1], [x13]
	st1.s	{ v8 }[2], [x14]
	st1.s	{ v8 }[3], [x15]
	st1.s	{ v9 }[1], [x16]
	st1.s	{ v9 }[2], [x17]
	st1.s	{ v9 }[3], [x11]
	st1.s	{ v10 }[1], [x0]
	add	x13, x11, #32
	add	x14, x11, #48
	add	x15, x11, #56
	add	x16, x11, #64
	stur	s8, [x11, #-56]
	stur	s9, [x11, #-24]
	str	s10, [x11, #8]
	st1.s	{ v10 }[2], [x1]
	st1.s	{ v10 }[3], [x13]
	str	s11, [x11, #40]
	st1.s	{ v11 }[1], [x14]
	st1.s	{ v11 }[2], [x15]
	st1.s	{ v11 }[3], [x16]
	add.4s	v2, v8, v2
	add.4s	v6, v9, v6
	add.4s	v7, v10, v7
	add.4s	v16, v11, v16
	cmgt.4s	v24, v24, v19
	cmgt.4s	v25, v26, v19
	cmgt.4s	v26, v28, v19
	cmgt.4s	v27, v30, v19
	and.16b	v24, v24, v20
	and.16b	v25, v25, v20
	and.16b	v26, v26, v20
	and.16b	v27, v27, v20
	orr.16b	v5, v24, v5
	orr.16b	v21, v25, v21
	orr.16b	v22, v26, v22
	add	x11, x11, #128
	orr.16b	v23, v27, v23
	subs	x12, x12, #16
	b.ne	LBB0_3
; %bb.4:
	orr.16b	v5, v21, v5
	orr.16b	v5, v22, v5
	orr.16b	v5, v23, v5
	ext.16b	v17, v5, v5, #8
	orr.8b	v5, v5, v17
	fmov	w11, s5
	mov.s	w12, v5[1]
	orr	w11, w11, w12
	add.4s	v2, v6, v2
	add.4s	v2, v7, v2
	add.4s	v2, v16, v2
	addv.4s	s2, v2
	fmov	w12, s2
	add.4s	v0, v0, v1
	add.4s	v0, v3, v0
	add.4s	v0, v4, v0
	addv.4s	s0, v0
	fmov	w13, s0
	cmp	x9, x10
	b.eq	LBB0_7
LBB0_5:
	add	x8, x8, #12
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x8]
	sub	w13, w13, w9
	add	w9, w9, w20
	lsr	w9, w9, w20
	str	w9, [x8]
	add	w12, w9, w12
	ldur	w9, [x8, #-4]
	cmp	w9, #63
	cset	w9, gt
	orr	w11, w11, w9, lsl #3
	add	x8, x8, #8
	subs	w23, w23, #1
	b.ne	LBB0_6
LBB0_7:
	add	w8, w13, w20
	lsr	w8, w8, w20
	add	w8, w12, w8
	stp	w8, w11, [x19, #4]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_Refresh
.subsections_via_symbols
