	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_strnlen                        ## -- Begin function strnlen
	.p2align	4, 0x90
_strnlen:                               ## @strnlen
	.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
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.1:
	leaq	(%rdi,%rsi), %rcx
	movq	%rdi, %rax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$0, (%rax)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rax
	decq	%rsi
	jne	LBB0_2
## %bb.4:
	movq	%rcx, %rax
LBB0_5:
	subq	%rdi, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_strnlen                        ; -- Begin function strnlen
	.p2align	2
_strnlen:                               ; @strnlen
	.cfi_startproc
; %bb.0:
	mov	x8, x0
	cbz	x1, LBB0_5
; %bb.1:
	add	x9, x0, x1
	mov	x8, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x8]
	cbz	w10, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, #1
	subs	x1, x1, #1
	b.ne	LBB0_2
; %bb.4:
	mov	x8, x9
LBB0_5:
	sub	x0, x8, x0
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
