	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function xmemmem
LCPI0_0:
	.long	1                               ## 0x1
	.long	4294967295                      ## 0xffffffff
	.long	4294967295                      ## 0xffffffff
	.long	4294967295                      ## 0xffffffff
LCPI0_1:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_xmemmem:                               ## @xmemmem
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.3:
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movsbl	(%rdx), %esi
	movq	%rbx, %rdi
	movq	%r13, %rdx
	callq	_memchr
	testq	%rax, %rax
	je	LBB0_31
## %bb.4:
	leaq	(%rbx,%r13), %rdx
	leaq	1(%rax), %rdi
	cmpq	%rdx, %rdi
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	jae	LBB0_30
## %bb.5:
	cmpq	$2, %rcx
	jl	LBB0_30
## %bb.6:
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	leaq	(%r12,%rcx), %r8
	movb	(%rax), %r11b
	leaq	2(%r12), %rcx
	cmpq	%rcx, %r8
	cmovaq	%r8, %rcx
	leaq	(%rbx,%r13), %rdx
	addq	$-2, %rdx
	subq	%r12, %rcx
	addq	$-2, %rcx
	movq	%rdx, %rsi
	subq	%rax, %rsi
	cmpq	%rsi, %rcx
	cmovbq	%rcx, %rsi
	incq	%rsi
	cmpq	%rax, %rdx
	movl	$1, %r10d
	cmovneq	%rsi, %r10
	movsbl	%r11b, %r14d
	leaq	1(%r12), %r9
	movl	$1, %ecx
	cmpq	$4, %r10
	movb	%r11b, -41(%rbp)                ## 1-byte Spill
	jae	LBB0_8
## %bb.7:
	movq	%rdi, %r15
	movq	%rdi, %rbx
	movl	%r14d, %r13d
	jmp	LBB0_18
LBB0_1:
	movq	%rbx, %rdi
	jmp	LBB0_2
LBB0_30:
	cmpq	$1, %rcx
	jg	LBB0_31
	jmp	LBB0_32
LBB0_8:
	movq	%rdi, %r15
	movq	%r10, %rdi
	andq	$-4, %rdi
	movd	%r14d, %xmm0
	leaq	-4(%rdi), %rcx
	movq	%rcx, %rdx
	shrq	$2, %rdx
	incq	%rdx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.10:
	movq	%rdx, %rcx
	andq	$-2, %rcx
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [1,4294967295,4294967295,4294967295]
	xorl	%ebx, %ebx
	movdqa	LCPI0_1(%rip), %xmm3            ## xmm3 = [1,1,1,1]
	movdqa	%xmm0, %xmm2
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movd	1(%rax,%rbx), %xmm4             ## xmm4 = mem[0],zero,zero,zero
	pmovsxbd	%xmm4, %xmm5
	pxor	%xmm2, %xmm5
	movd	1(%r12,%rbx), %xmm2             ## xmm2 = mem[0],zero,zero,zero
	pmovsxbd	%xmm2, %xmm6
	pxor	%xmm0, %xmm6
	pcmpeqb	%xmm2, %xmm4
	pmovzxbd	%xmm4, %xmm4                    ## xmm4 = xmm4[0],zero,zero,zero,xmm4[1],zero,zero,zero,xmm4[2],zero,zero,zero,xmm4[3],zero,zero,zero
	pand	%xmm1, %xmm4
	movd	5(%rax,%rbx), %xmm1             ## xmm1 = mem[0],zero,zero,zero
	pmovsxbd	%xmm1, %xmm2
	pxor	%xmm5, %xmm2
	movd	5(%r12,%rbx), %xmm5             ## xmm5 = mem[0],zero,zero,zero
	pmovsxbd	%xmm5, %xmm0
	pxor	%xmm6, %xmm0
	pcmpeqb	%xmm5, %xmm1
	pmovzxbd	%xmm1, %xmm1                    ## xmm1 = xmm1[0],zero,zero,zero,xmm1[1],zero,zero,zero,xmm1[2],zero,zero,zero,xmm1[3],zero,zero,zero
	pand	%xmm4, %xmm1
	pand	%xmm3, %xmm1
	addq	$8, %rbx
	addq	$-2, %rcx
	jne	LBB0_11
## %bb.12:
	leaq	-4(%rbx), %rcx
	testb	$1, %dl
	je	LBB0_15
LBB0_14:
	movd	(%r15,%rbx), %xmm3              ## xmm3 = mem[0],zero,zero,zero
	pmovsxbd	%xmm3, %xmm4
	pxor	%xmm4, %xmm2
	movd	(%r9,%rbx), %xmm4               ## xmm4 = mem[0],zero,zero,zero
	pmovsxbd	%xmm4, %xmm5
	pxor	%xmm5, %xmm0
	pcmpeqb	%xmm4, %xmm3
	pmovzxbd	%xmm3, %xmm3                    ## xmm3 = xmm3[0],zero,zero,zero,xmm3[1],zero,zero,zero,xmm3[2],zero,zero,zero,xmm3[3],zero,zero,zero
	pand	%xmm1, %xmm3
	pand	LCPI0_1(%rip), %xmm3
	movq	%rbx, %rcx
	movdqa	%xmm3, %xmm1
LBB0_15:
	movq	%r15, %rsi
	leaq	(%r15,%rdi), %rbx
	orq	$3, %rcx
	leaq	(%r9,%rcx), %rdx
	incq	%rdx
	leaq	1(%r15,%rcx), %r11
	pshufd	$238, %xmm2, %xmm3              ## xmm3 = xmm2[2,3,2,3]
	pxor	%xmm2, %xmm3
	pshufd	$85, %xmm3, %xmm2               ## xmm2 = xmm3[1,1,1,1]
	pxor	%xmm3, %xmm2
	movd	%xmm2, %r13d
	pshufd	$238, %xmm0, %xmm2              ## xmm2 = xmm0[2,3,2,3]
	pxor	%xmm0, %xmm2
	pshufd	$85, %xmm2, %xmm0               ## xmm0 = xmm2[1,1,1,1]
	pxor	%xmm2, %xmm0
	movd	%xmm0, %r14d
	pshufd	$238, %xmm1, %xmm0              ## xmm0 = xmm1[2,3,2,3]
	pand	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	pand	%xmm0, %xmm1
	movd	%xmm1, %ecx
	cmpq	-56(%rbp), %r11                 ## 8-byte Folded Reload
	setb	%r11b
	cmpq	%r8, %rdx
	setb	%dl
	cmpq	%rdi, %r10
	jne	LBB0_17
## %bb.16:
	movq	-56(%rbp), %r10                 ## 8-byte Reload
	jmp	LBB0_21
LBB0_17:
	addq	%rdi, %r9
LBB0_18:
	movq	-56(%rbp), %r10                 ## 8-byte Reload
	incq	%r9
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %edx
	movsbl	(%rbx), %edi
	xorl	%edi, %r13d
	movsbl	-1(%r9), %esi
	xorl	%esi, %r14d
	xorl	%ecx, %ecx
	cmpb	%sil, %dil
	sete	%cl
	andl	%edx, %ecx
	incq	%rbx
	cmpq	%r8, %r9
	setb	%dl
	cmpq	%r10, %rbx
	setb	%r11b
	jae	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	leaq	1(%r9), %rsi
	cmpq	%r8, %r9
	movq	%rsi, %r9
	jb	LBB0_19
LBB0_21:
	testb	%dl, %dl
	je	LBB0_22
LBB0_31:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	testl	%ecx, %ecx
	je	LBB0_23
LBB0_32:
	movq	%rax, %rdi
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_deconst                        ## TAILCALL
LBB0_9:
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [1,4294967295,4294967295,4294967295]
	xorl	%ebx, %ebx
                                        ## implicit-def: $rcx
	movdqa	%xmm0, %xmm2
	testb	$1, %dl
	jne	LBB0_14
	jmp	LBB0_15
LBB0_23:
	testb	%r11b, %r11b
	je	LBB0_31
## %bb.24:
	decq	-64(%rbp)                       ## 8-byte Folded Spill
	incq	%rbx
	movb	-41(%rbp), %al                  ## 1-byte Reload
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movsbl	%al, %eax
	xorl	%r13d, %eax
	movsbl	-1(%rbx), %r13d
	xorl	%eax, %r13d
	cmpl	%r14d, %r13d
	jne	LBB0_28
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_memcmp
	movq	-56(%rbp), %r10                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_27
LBB0_28:                                ##   in Loop: Header=BB0_25 Depth=1
	cmpq	%r10, %rbx
	jae	LBB0_31
## %bb.29:                              ##   in Loop: Header=BB0_25 Depth=1
	movzbl	(%r15), %eax
	incq	%r15
	incq	%rbx
	jmp	LBB0_25
LBB0_27:
	movq	%r15, %rdi
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_xmemmem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function xmemmem
lCPI0_0:
	.long	1                               ; 0x1
	.long	4294967295                      ; 0xffffffff
	.long	4294967295                      ; 0xffffffff
	.long	4294967295                      ; 0xffffffff
lCPI0_1:
	.quad	6                               ; 0x6
	.quad	7                               ; 0x7
lCPI0_2:
	.quad	4                               ; 0x4
	.quad	5                               ; 0x5
lCPI0_3:
	.quad	2                               ; 0x2
	.quad	3                               ; 0x3
lCPI0_4:
	.quad	0                               ; 0x0
	.quad	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_xmemmem:                               ; @xmemmem
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x0
	cbz	x3, LBB0_4
; %bb.1:
	mov	x23, x3
	mov	x19, x2
	mov	x22, x1
	ldrsb	w1, [x2]
	mov	x0, x21
	mov	x2, x22
	bl	_memchr
	cbz	x0, LBB0_17
; %bb.2:
	mov	x20, x0
	ldrsb	w8, [x20], #1
	add	x9, x21, x22
	cmp	x20, x9
	ccmp	x23, #2, #8, lo
	b.ge	LBB0_6
; %bb.3:
	cmp	x23, #1
	b.le	LBB0_5
	b	LBB0_17
LBB0_4:
	mov	x0, x21
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_deconst
LBB0_6:
	add	x10, x19, x23
	add	x11, x21, x22
	sub	x11, x11, #2
	subs	x12, x11, x0
	add	x13, x19, #2
	add	x14, x19, x23
	cmp	x14, x13
	csel	x13, x14, x13, hi
	sub	x13, x13, x19
	sub	x13, x13, #2
	cmp	x13, x12
	csel	x12, x13, x12, lo
	cmp	x11, x0
	add	x15, x19, #1
	mov	w11, #1
	csinc	x12, x11, x12, eq
	cmp	x12, #8
	b.hs	LBB0_8
; %bb.7:
	mov	x24, x20
	mov	x26, x8
	mov	x25, x8
	b	LBB0_13
LBB0_8:
	and	x13, x12, #0xfffffffffffffff8
	add	x24, x20, x13
	add	x14, x15, x13
	movi.2d	v4, #0000000000000000
	movi.2d	v6, #0000000000000000
	mov.s	v6[0], w8
	dup.2d	v0, x9
Lloh0:
	adrp	x11, lCPI0_0@PAGE
Lloh1:
	ldr	q5, [x11, lCPI0_0@PAGEOFF]
	dup.2d	v1, x10
	movi.2d	v3, #0xffffffffffffffff
Lloh2:
	adrp	x11, lCPI0_1@PAGE
Lloh3:
	ldr	q2, [x11, lCPI0_1@PAGEOFF]
Lloh4:
	adrp	x11, lCPI0_4@PAGE
Lloh5:
	ldr	q17, [x11, lCPI0_4@PAGEOFF]
	movi.4s	v18, #1
	mov	x11, x13
	mov	x16, x20
	mov.16b	v19, v6
	movi.2d	v20, #0000000000000000
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	dup.2d	v7, x16
	add.2d	v21, v7, v17
	dup.2d	v16, x15
	add.2d	v22, v16, v17
	fmov	x17, d21
	ldr	d21, [x17]
	sshll.8h	v23, v21, #0
	sshll.4s	v24, v23, #0
	sshll2.4s	v23, v23, #0
	eor.16b	v20, v20, v23
	eor.16b	v19, v19, v24
	fmov	x17, d22
	ldr	d22, [x17]
	sshll.8h	v23, v22, #0
	sshll.4s	v24, v23, #0
	sshll2.4s	v23, v23, #0
	eor.16b	v4, v4, v23
	eor.16b	v6, v6, v24
	cmeq.8b	v21, v21, v22
	ushll.8h	v21, v21, #0
	ushll.4s	v22, v21, #0
	and.16b	v5, v22, v5
	ushll2.4s	v21, v21, #0
	and.16b	v3, v21, v3
	and.16b	v3, v3, v18
	and.16b	v5, v5, v18
	add	x16, x16, #8
	add	x15, x15, #8
	subs	x11, x11, #8
	b.ne	LBB0_9
; %bb.10:
	eor.16b	v17, v19, v20
	ext.16b	v18, v17, v17, #8
	eor.8b	v17, v17, v18
	mov.s	w11, v17[1]
	fmov	w15, s17
	eor	w25, w15, w11
	eor.16b	v4, v6, v4
	ext.16b	v6, v4, v4, #8
	eor.8b	v4, v4, v6
	mov.s	w11, v4[1]
	fmov	w15, s4
	eor	w26, w15, w11
	and.16b	v3, v5, v3
	ext.16b	v4, v3, v3, #8
	and.8b	v3, v3, v4
	mov.s	w11, v3[1]
	fmov	w15, s3
	and	w11, w15, w11
	cmp	x12, x13
	b.ne	LBB0_12
; %bb.11:
	add.2d	v3, v7, v2
	add.2d	v2, v16, v2
	mov	w9, #1
	dup.2d	v4, x9
	add.2d	v2, v2, v4
	cmhi.2d	v1, v1, v2
	xtn2.4s	v1, v1
	xtn2.8h	v1, v1
	xtn.8b	v1, v1
	add.2d	v2, v3, v4
	cmhi.2d	v0, v0, v2
	xtn2.4s	v0, v0
	xtn2.8h	v0, v0
	xtn.8b	v0, v0
	umov.b	w12, v0[7]
	umov.b	w14, v1[7]
	b	LBB0_16
LBB0_12:
	mov	x15, x14
LBB0_13:
	add	x13, x15, #1
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w12, [x24], #1
	sxtb	w14, w12
	eor	w25, w25, w14
	ldurb	w14, [x13, #-1]
	sxtb	w15, w14
	eor	w26, w26, w15
	cmp	w12, w14
	cset	w12, eq
	and	w11, w11, w12
	cmp	x13, x10
	cset	w14, lo
	cmp	x24, x9
	cset	w12, lo
	b.hs	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x15, x13, #1
	cmp	x13, x10
	mov	x13, x15
	b.lo	LBB0_14
LBB0_16:
	tbz	w14, #0, LBB0_18
LBB0_17:
	mov	x0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_18:
	cbnz	w11, LBB0_5
; %bb.19:
	tbz	w12, #0, LBB0_17
; %bb.20:
	and	w8, w8, #0xff
	sub	x23, x23, #1
	mvn	x9, x24
	add	x10, x22, x21
	add	x21, x9, x10
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	sxtb	w8, w8
	eor	w8, w25, w8
	ldrsb	w9, [x24]
	eor	w25, w8, w9
	cmp	w25, w26
	b.ne	LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	bl	_memcmp
	cbz	x0, LBB0_25
LBB0_23:                                ;   in Loop: Header=BB0_21 Depth=1
	cbz	x21, LBB0_17
; %bb.24:                               ;   in Loop: Header=BB0_21 Depth=1
	add	x24, x24, #1
	ldrb	w8, [x20], #1
	sub	x21, x21, #1
	b	LBB0_21
LBB0_25:
	mov	x0, x20
	b	LBB0_5
	.loh AdrpLdr	Lloh4, Lloh5
	.loh AdrpAdrp	Lloh2, Lloh4
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpAdrp	Lloh0, Lloh2
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_xmemmem
.subsections_via_symbols
