	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_memmem                         ## -- Begin function memmem
	.p2align	4, 0x90
_memmem:                                ## @memmem
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.1:
	movq	%rcx, %rbx
	movq	%rsi, %r12
	cmpq	%rcx, %rsi
	jb	LBB0_5
## %bb.2:
	movq	%rdx, %r14
	movzbl	(%rdx), %esi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_memchr
	cmpq	$1, %rbx
	je	LBB0_8
## %bb.3:
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	subq	%rax, %r15
	addq	%r12, %r15
	cmpq	%rbx, %r15
	jae	LBB0_9
LBB0_5:
	xorl	%r15d, %r15d
	jmp	LBB0_6
LBB0_8:
	movq	%rax, %r15
LBB0_6:
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	cmpq	$4, %rbx
	je	LBB0_13
## %bb.10:
	cmpq	$3, %rbx
	je	LBB0_14
## %bb.11:
	cmpq	$2, %rbx
	jne	LBB0_15
## %bb.12:
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_twobyte_memmem                 ## TAILCALL
LBB0_13:
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fourbyte_memmem                ## TAILCALL
LBB0_14:
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_threebyte_memmem               ## TAILCALL
LBB0_15:
	movq	%rax, %rsi
	addq	%r15, %rsi
	movq	%rax, %rdi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_twoway_memmem                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_memmem                         ; -- Begin function memmem
	.p2align	2
_memmem:                                ; @memmem
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x0
	cbz	x3, LBB0_7
; %bb.1:
	mov	x20, x3
	mov	x22, x1
	cmp	x1, x3
	b.lo	LBB0_5
; %bb.2:
	mov	x19, x2
	ldrb	w1, [x2]
	mov	x0, x21
	mov	x2, x22
	bl	_memchr
	cmp	x20, #1
	b.eq	LBB0_6
; %bb.3:
	cbz	x0, LBB0_6
; %bb.4:
	sub	x8, x21, x0
	add	x1, x8, x22
	cmp	x1, x20
	b.hs	LBB0_8
LBB0_5:
	mov	x21, #0
	b	LBB0_7
LBB0_6:
	mov	x21, x0
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
	cmp	x20, #4
	b.eq	LBB0_12
; %bb.9:
	cmp	x20, #3
	b.eq	LBB0_13
; %bb.10:
	cmp	x20, #2
	b.ne	LBB0_14
; %bb.11:
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_twobyte_memmem
LBB0_12:
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_fourbyte_memmem
LBB0_13:
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_threebyte_memmem
LBB0_14:
	add	x1, x0, x1
	mov	x2, x19
	mov	x3, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_twoway_memmem
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
