	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_memchr                         ## -- Begin function memchr
	.p2align	4, 0x90
_memchr:                                ## @memchr
	.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
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_ALIGN@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	testq	%rdx, %rdx
	setne	%al
	testq	%rdi, %rcx
	je	LBB0_7
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.2:
	leaq	1(%r15), %rsi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	%r14b, (%r15)
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	leaq	-1(%rbx), %rdx
	cmpq	$1, %rbx
	setne	%al
	testq	%rsi, %rcx
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rsi
	cmpq	$1, %rbx
	movq	%rdx, %rbx
	jne	LBB0_3
	jmp	LBB0_8
LBB0_7:
	movq	%rbx, %rdx
LBB0_8:
	movq	%rdx, %rbx
	testb	%al, %al
	je	LBB0_17
LBB0_9:
	cmpb	%r14b, (%r15)
	je	LBB0_14
## %bb.10:
	movq	_SS@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rbx
	jb	LBB0_14
## %bb.11:
	movzbl	%r14b, %eax
	movq	_ONES@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %r13
	imulq	%rax, %r13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	xorq	%r13, %rdi
	callq	_HASZERO
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	addq	$8, %r15
	movq	(%r12), %rax
	subq	%rax, %rbx
	cmpq	%rax, %rbx
	jae	LBB0_12
LBB0_14:
	testq	%rbx, %rbx
	je	LBB0_17
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	cmpb	%r14b, (%r15)
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	incq	%r15
	decq	%rbx
	jne	LBB0_15
LBB0_17:
	xorl	%r15d, %r15d
LBB0_18:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ALIGN,8,3                      ## @ALIGN
	.comm	_ONES,4,2                       ## @ONES
	.comm	_SS,8,3                         ## @SS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_memchr                         ; -- Begin function memchr
	.p2align	2
_memchr:                                ; @memchr
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ALIGN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ALIGN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	and	x10, x8, x0
	cmp	x2, #0
	cset	w9, ne
	cmp	x10, #0
	ccmp	x2, #0, #4, ne
	b.ne	LBB0_12
LBB0_1:
	mov	x20, x2
	cbz	w9, LBB0_10
LBB0_2:
	ldrb	w8, [x19]
	and	w21, w1, #0xff
	cmp	w8, w21
	b.eq	LBB0_7
; %bb.3:
Lloh3:
	adrp	x22, _SS@GOTPAGE
Lloh4:
	ldr	x22, [x22, _SS@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x20, x8
	b.lo	LBB0_7
; %bb.4:
	and	x8, x1, #0xff
Lloh5:
	adrp	x9, _ONES@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ONES@GOTPAGEOFF]
Lloh7:
	ldrsw	x9, [x9]
	mul	x23, x9, x8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	eor	x0, x8, x23
	bl	_HASZERO
	cbnz	w0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x19, x19, #8
	ldr	x8, [x22]
	sub	x20, x20, x8
	cmp	x20, x8
	b.hs	LBB0_5
LBB0_7:
	cbz	x20, LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x19]
	cmp	w8, w21
	b.eq	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x19, x19, #1
	subs	x20, x20, #1
	b.ne	LBB0_8
LBB0_10:
	mov	x19, #0
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
	add	x10, x19, #1
	mov	x20, x2
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x19]
	cmp	w9, w1, uxtb
	b.eq	LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x19, x19, #1
	subs	x2, x20, #1
	cset	w9, ne
	and	x11, x8, x10
	cbz	x11, LBB0_1
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x10, x10, #1
	cmp	x20, #1
	mov	x20, x2
	b.ne	LBB0_13
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ALIGN,8,3                      ; @ALIGN
	.comm	_ONES,4,2                       ; @ONES
	.comm	_SS,8,3                         ; @SS
.subsections_via_symbols
