	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function is_cr_done
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_is_cr_done:                            ## @is_cr_done
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%edi, %edi
	je	LBB0_1
## %bb.2:
	movl	%edi, %ecx
	cmpl	$8, %edi
	jae	LBB0_4
## %bb.3:
	movl	$1, %eax
	xorl	%edx, %edx
	jmp	LBB0_11
LBB0_1:
	movl	$1, %eax
	popq	%rbp
	retq
LBB0_4:
	movl	%ecx, %edx
	andl	$-8, %edx
	leaq	-8(%rdx), %rax
	movq	%rax, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%r8, %rax
	andq	$-2, %rax
	movdqa	LCPI0_0(%rip), %xmm3            ## xmm3 = [1,1,1,1]
	xorl	%edi, %edi
	pxor	%xmm0, %xmm0
	movdqa	%xmm3, %xmm4
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rsi,%rdi,4), %xmm5
	movdqu	16(%rsi,%rdi,4), %xmm6
	movdqu	32(%rsi,%rdi,4), %xmm1
	movdqu	48(%rsi,%rdi,4), %xmm2
	pcmpeqd	%xmm0, %xmm5
	pcmpeqd	%xmm0, %xmm6
	pcmpeqd	%xmm0, %xmm1
	por	%xmm5, %xmm1
	pandn	%xmm3, %xmm1
	pcmpeqd	%xmm0, %xmm2
	por	%xmm6, %xmm2
	pandn	%xmm4, %xmm2
	addq	$16, %rdi
	movdqa	%xmm1, %xmm3
	movdqa	%xmm2, %xmm4
	addq	$-2, %rax
	jne	LBB0_7
## %bb.8:
	testb	$1, %r8b
	je	LBB0_10
LBB0_9:
	movdqu	(%rsi,%rdi,4), %xmm0
	movdqu	16(%rsi,%rdi,4), %xmm3
	pxor	%xmm4, %xmm4
	pcmpeqd	%xmm4, %xmm0
	pandn	%xmm1, %xmm0
	pcmpeqd	%xmm4, %xmm3
	pandn	%xmm2, %xmm3
	movdqa	%xmm0, %xmm1
	movdqa	%xmm3, %xmm2
LBB0_10:
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,1,1,1]
	pcmpeqd	%xmm1, %xmm0
	blendvps	%xmm0, %xmm2, %xmm1
	pcmpeqd	%xmm0, %xmm0
	paddd	%xmm1, %xmm0
	xorl	%eax, %eax
	ptest	%xmm0, %xmm0
	sete	%al
	cmpq	%rcx, %rdx
	je	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%rdx,4), %edi
	testl	%edi, %edi
	cmovel	%edi, %eax
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	LBB0_11
LBB0_12:
	popq	%rbp
	retq
LBB0_5:
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [1,1,1,1]
	xorl	%edi, %edi
	movdqa	%xmm1, %xmm2
	testb	$1, %r8b
	jne	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_is_cr_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function is_cr_done
_is_cr_done:                            ; @is_cr_done
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #16
	.cfi_def_cfa_offset 16
	cbz	w0, LBB0_3
; %bb.1:
	mov	w8, w0
	cmp	w0, #16
	b.hs	LBB0_4
; %bb.2:
	mov	x9, #0
	mov	w0, #1
	b	LBB0_7
LBB0_3:
	mov	w0, #1
	add	sp, sp, #16
	ret
LBB0_4:
	and	x9, x8, #0xfffffff0
	add	x10, x1, #32
	movi.4s	v0, #1
	mov	x11, x9
	movi.4s	v3, #1
	movi.4s	v2, #1
	movi.4s	v1, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x10, #-32]
	ldp	q6, q7, [x10], #64
	cmeq.4s	v4, v4, #0
	cmeq.4s	v5, v5, #0
	cmeq.4s	v6, v6, #0
	cmeq.4s	v7, v7, #0
	bic.16b	v0, v0, v4
	bic.16b	v3, v3, v5
	bic.16b	v2, v2, v6
	bic.16b	v1, v1, v7
	subs	x11, x11, #16
	b.ne	LBB0_5
; %bb.6:
	movi.4s	v4, #1
	cmeq.4s	v5, v0, v4
	bit.16b	v0, v3, v5
	cmeq.4s	v3, v0, v4
	bit.16b	v0, v2, v3
	cmeq.4s	v2, v0, v4
	bit.16b	v0, v1, v2
	cmeq.4s	v0, v0, v4
	mvn.16b	v0, v0
	xtn.4h	v0, v0
	umov.h	w10, v0[0]
	umov.h	w11, v0[1]
	and	w11, w11, #0x1
	bfi	w10, w11, #1, #1
	umov.h	w11, v0[2]
	and	w11, w11, #0x1
	bfi	w10, w11, #2, #1
	umov.h	w11, v0[3]
	bfi	w10, w11, #3, #29
	tst	w10, #0xf
	cset	w0, eq
	cmp	x9, x8
	b.eq	LBB0_9
LBB0_7:
	sub	x8, x8, x9
	add	x9, x1, x9, lsl #2
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9], #4
	cmp	w10, #0
	csel	w0, wzr, w0, eq
	subs	x8, x8, #1
	b.ne	LBB0_8
LBB0_9:
	add	sp, sp, #16
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_is_cr_done
.subsections_via_symbols
