	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_strlen                         ## -- Begin function strlen
	.p2align	4, 0x90
_strlen:                                ## @strlen
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_LONGPTR_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	notq	%rsi
	andq	%rdi, %rsi
	movq	(%rsi), %rax
	movq	_mask01@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movq	%rax, %r8
	subq	%rcx, %r8
	notq	%rax
	movq	_mask80@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	andq	%rdx, %rax
	leaq	8(%rsi), %rbx
	testq	%r8, %rax
	je	LBB0_5
## %bb.1:
	cmpq	%rdi, %rbx
	jbe	LBB0_5
## %bb.2:
	subq	%rdi, %rsi
	addq	$8, %rsi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$0, (%rdi,%rax)
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rax
	cmpq	%rax, %rsi
	jne	LBB0_3
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	addq	$8, %rbx
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movq	%rax, %rsi
	subq	%rcx, %rsi
	notq	%rax
	andq	%rdx, %rax
	testq	%rsi, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%edi, %edi
	callq	_testbyte
	movl	$1, %edi
	callq	_testbyte
	movl	$2, %edi
	callq	_testbyte
	movl	$3, %edi
	callq	_testbyte
	movq	(%r14), %rcx
	movq	(%r15), %rdx
	jmp	LBB0_7
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LONGPTR_MASK,8,3               ## @LONGPTR_MASK
	.comm	_mask01,8,3                     ## @mask01
	.comm	_mask80,8,3                     ## @mask80
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_strlen                         ; -- Begin function strlen
	.p2align	2
_strlen:                                ; @strlen
	.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
Lloh0:
	adrp	x8, _LONGPTR_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LONGPTR_MASK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	bic	x11, x0, x8
	mov	x19, x11
	ldr	x8, [x19], #8
Lloh3:
	adrp	x20, _mask01@GOTPAGE
Lloh4:
	ldr	x20, [x20, _mask01@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh5:
	adrp	x21, _mask80@GOTPAGE
Lloh6:
	ldr	x21, [x21, _mask80@GOTPAGEOFF]
	ldr	x10, [x21]
	bic	x12, x10, x8
	sub	x8, x8, x9
	and	x8, x12, x8
	cmp	x8, #0
	ccmp	x19, x0, #0, ne
	b.ls	LBB0_5
; %bb.1:
	mov	x8, #0
	sub	x11, x11, x0
	add	x11, x11, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w12, [x0, x8]
	cbz	w12, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, #1
	cmp	x11, x8
	b.ne	LBB0_2
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x19, x19, #8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	sub	x11, x8, x9
	bic	x8, x10, x8
	tst	x8, x11
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #0
	bl	_testbyte
	mov	w0, #1
	bl	_testbyte
	mov	w0, #2
	bl	_testbyte
	mov	w0, #3
	bl	_testbyte
	ldr	x9, [x20]
	ldr	x10, [x21]
	b	LBB0_4
LBB0_7:
	mov	x0, x8
	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
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LONGPTR_MASK,8,3               ; @LONGPTR_MASK
	.comm	_mask01,8,3                     ; @mask01
	.comm	_mask80,8,3                     ; @mask80
.subsections_via_symbols
