	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function filter_text
LCPI0_0:
	.space	16,32
LCPI0_1:
	.space	16,9
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_filter_text:                           ## @filter_text
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdi, %rax
	testl	%edx, %edx
	jle	LBB0_14
## %bb.1:
	movslq	%edx, %r11
	addq	%rax, %r11
	leaq	1(%rax), %r10
	cmpq	%r10, %r11
	cmovaq	%r11, %r10
	subq	%rax, %r10
	cmpq	$32, %r10
	jb	LBB0_2
## %bb.3:
	movq	%rax, %rdx
	subq	%rsi, %rdx
	cmpq	$32, %rdx
	jb	LBB0_4
## %bb.5:
	movq	%r10, %r8
	andq	$-32, %r8
	leaq	-32(%r8), %rdx
	movq	%rdx, %r9
	shrq	$5, %r9
	incq	%r9
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.7:
	movq	%r9, %rdx
	andq	$-2, %rdx
	xorl	%edi, %edi
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = [32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32]
	movdqa	LCPI0_1(%rip), %xmm3            ## xmm3 = [9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9]
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rsi,%rdi), %xmm4
	movdqu	16(%rsi,%rdi), %xmm5
	movdqa	%xmm4, %xmm1
	pmaxub	%xmm2, %xmm1
	pcmpeqb	%xmm4, %xmm1
	movdqa	%xmm5, %xmm6
	pmaxub	%xmm2, %xmm6
	pcmpeqb	%xmm5, %xmm6
	movdqa	%xmm4, %xmm0
	pcmpeqb	%xmm3, %xmm0
	por	%xmm1, %xmm0
	movdqa	%xmm5, %xmm1
	pcmpeqb	%xmm3, %xmm1
	por	%xmm6, %xmm1
	movdqa	%xmm2, %xmm6
	pblendvb	%xmm0, %xmm4, %xmm6
	movdqa	%xmm2, %xmm4
	movdqa	%xmm1, %xmm0
	pblendvb	%xmm0, %xmm5, %xmm4
	movdqu	%xmm6, (%rax,%rdi)
	movdqu	%xmm4, 16(%rax,%rdi)
	movdqu	32(%rsi,%rdi), %xmm4
	movdqu	48(%rsi,%rdi), %xmm5
	movdqa	%xmm4, %xmm1
	pmaxub	%xmm2, %xmm1
	pcmpeqb	%xmm4, %xmm1
	movdqa	%xmm5, %xmm6
	pmaxub	%xmm2, %xmm6
	pcmpeqb	%xmm5, %xmm6
	movdqa	%xmm4, %xmm0
	pcmpeqb	%xmm3, %xmm0
	por	%xmm1, %xmm0
	movdqa	%xmm5, %xmm1
	pcmpeqb	%xmm3, %xmm1
	por	%xmm6, %xmm1
	movdqa	%xmm2, %xmm6
	pblendvb	%xmm0, %xmm4, %xmm6
	movdqa	%xmm2, %xmm4
	movdqa	%xmm1, %xmm0
	pblendvb	%xmm0, %xmm5, %xmm4
	movdqu	%xmm6, 32(%rax,%rdi)
	movdqu	%xmm4, 48(%rax,%rdi)
	addq	$64, %rdi
	addq	$-2, %rdx
	jne	LBB0_8
## %bb.9:
	testb	$1, %r9b
	je	LBB0_11
LBB0_10:
	movdqu	(%rsi,%rdi), %xmm2
	movdqu	16(%rsi,%rdi), %xmm3
	movdqa	LCPI0_0(%rip), %xmm4            ## xmm4 = [32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32]
	movdqa	%xmm2, %xmm5
	pmaxub	%xmm4, %xmm5
	pcmpeqb	%xmm2, %xmm5
	movdqa	%xmm3, %xmm6
	pmaxub	%xmm4, %xmm6
	pcmpeqb	%xmm3, %xmm6
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = [9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9]
	movdqa	%xmm2, %xmm0
	pcmpeqb	%xmm1, %xmm0
	por	%xmm5, %xmm0
	pcmpeqb	%xmm3, %xmm1
	por	%xmm6, %xmm1
	movdqa	%xmm4, %xmm5
	pblendvb	%xmm0, %xmm2, %xmm5
	movdqa	%xmm1, %xmm0
	pblendvb	%xmm0, %xmm3, %xmm4
	movdqu	%xmm5, (%rax,%rdi)
	movdqu	%xmm4, 16(%rax,%rdi)
LBB0_11:
	leaq	(%rax,%r8), %rdi
	cmpq	%r8, %r10
	je	LBB0_14
## %bb.12:
	addq	%r8, %rsi
	jmp	LBB0_13
LBB0_2:
	movq	%rax, %rdi
	jmp	LBB0_13
LBB0_4:
	movq	%rax, %rdi
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rsi), %edx
	cmpb	$9, %dl
	movl	$32, %ecx
	cmovel	%edx, %ecx
	cmpb	$32, %dl
	cmovael	%edx, %ecx
	movb	%cl, (%rdi)
	incq	%rsi
	incq	%rdi
	cmpq	%r11, %rdi
	jb	LBB0_13
LBB0_14:
	movb	$0, (%rdi)
	popq	%rbp
	retq
LBB0_6:
	xorl	%edi, %edi
	testb	$1, %r9b
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_filter_text
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function filter_text
_filter_text:                           ; @filter_text
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x9, x0
	cmp	w2, #1
	b.lt	LBB0_8
; %bb.1:
	sxtw	x8, w2
	add	x9, x0, #1
	add	x8, x0, x8
	cmp	x8, x9
	csinc	x9, x8, x0, hi
	sub	x11, x9, x0
	sub	x9, x0, x1
	cmp	x11, #16
	ccmp	x9, #16, #0, hs
	b.hs	LBB0_3
; %bb.2:
	mov	x10, x1
	mov	x9, x0
	b	LBB0_6
LBB0_3:
	and	x12, x11, #0xfffffffffffffff0
	add	x10, x1, x12
	add	x9, x0, x12
	movi.16b	v0, #31
	movi.16b	v1, #9
	movi.16b	v2, #32
	mov	x13, x12
	mov	x14, x0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	q3, [x1], #16
	cmhi.16b	v4, v3, v0
	cmeq.16b	v5, v3, v1
	orr.16b	v4, v4, v5
	bif.16b	v3, v2, v4
	str	q3, [x14], #16
	subs	x13, x13, #16
	b.ne	LBB0_4
; %bb.5:
	cmp	x11, x12
	b.eq	LBB0_8
LBB0_6:
	mov	w11, #32
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w12, [x10], #1
	cmp	w12, #9
	ccmp	w12, #31, #2, ne
	csel	w12, w12, w11, hi
	strb	w12, [x9], #1
	cmp	x9, x8
	b.lo	LBB0_7
LBB0_8:
	strb	wzr, [x9]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_filter_text
.subsections_via_symbols
