	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_strlcpy                     ## -- Begin function av_strlcpy
	.p2align	4, 0x90
_av_strlcpy:                            ## @av_strlcpy
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	$1, %ecx
	cmpq	$2, %rdx
	jb	LBB0_7
## %bb.1:
	movb	(%rsi), %al
	testb	%al, %al
	je	LBB0_7
## %bb.2:
	leaq	-1(%rdx), %r8
	leaq	-2(%rdx), %rcx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movb	%al, (%rdi,%rbx)
	cmpq	%rbx, %rcx
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movzbl	1(%rsi,%rbx), %eax
	incq	%rbx
	testb	%al, %al
	jne	LBB0_3
## %bb.5:
	addq	%rbx, %rsi
	addq	%rbx, %rdi
	leaq	1(%rbx), %rcx
	cmpq	%rdx, %rcx
	jbe	LBB0_9
	jmp	LBB0_10
LBB0_7:
	xorl	%ebx, %ebx
	cmpq	%rdx, %rcx
	jbe	LBB0_9
	jmp	LBB0_10
LBB0_8:
	addq	%rbx, %rsi
	incq	%rsi
	addq	%rbx, %rdi
	incq	%rdi
	movq	%r8, %rbx
LBB0_9:
	movb	$0, (%rdi)
LBB0_10:
	movq	%rsi, %rdi
	callq	_strlen
	addq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	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	_av_strlcpy                     ; -- Begin function av_strlcpy
	.p2align	2
_av_strlcpy:                            ; @av_strlcpy
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	subs	x9, x2, #2
	b.lo	LBB0_6
; %bb.1:
	ldrb	w10, [x1]
	cbz	w10, LBB0_6
; %bb.2:
	mov	x19, #0
	sub	x8, x2, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x11, x1, x19
	strb	w10, [x0, x19]
	cmp	x9, x19
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w10, [x11, #1]
	add	x19, x19, #1
	cbnz	w10, LBB0_3
; %bb.5:
	add	x1, x1, x19
	add	x0, x0, x19
	add	x8, x19, #1
	cmp	x8, x2
	b.ls	LBB0_8
	b	LBB0_9
LBB0_6:
	mov	x19, #0
	mov	w8, #1
	cmp	x8, x2
	b.ls	LBB0_8
	b	LBB0_9
LBB0_7:
	add	x1, x11, #1
	add	x9, x0, x19
	add	x0, x9, #1
	mov	x19, x8
LBB0_8:
	strb	wzr, [x0]
LBB0_9:
	mov	x0, x1
	bl	_strlen
	add	x0, x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
