	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_OPENSSL_strlcpy                ## -- Begin function OPENSSL_strlcpy
	.p2align	4, 0x90
_OPENSSL_strlcpy:                       ## @OPENSSL_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
	movq	%rdx, %rbx
	cmpq	$2, %rdx
	jb	LBB0_8
## %bb.1:
	decq	%rbx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rsi,%rax), %ecx
	testb	%cl, %cl
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movb	%cl, (%rdi,%rax)
	incq	%rax
	cmpq	%rax, %rbx
	jne	LBB0_2
## %bb.4:
	addq	%rax, %rsi
	addq	%rax, %rdi
	jmp	LBB0_6
LBB0_8:
	testq	%rbx, %rbx
	movl	$0, %ebx
	jne	LBB0_6
	jmp	LBB0_7
LBB0_5:
	addq	%rax, %rsi
	addq	%rax, %rdi
	movq	%rax, %rbx
LBB0_6:
	movb	$0, (%rdi)
LBB0_7:
	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	_OPENSSL_strlcpy                ; -- Begin function OPENSSL_strlcpy
	.p2align	2
_OPENSSL_strlcpy:                       ; @OPENSSL_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
	cmp	x2, #2
	b.lo	LBB0_5
; %bb.1:
	mov	x8, #0
	sub	x19, x2, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x1, x8]
	cbz	w9, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	strb	w9, [x0, x8]
	add	x8, x8, #1
	cmp	x19, x8
	b.ne	LBB0_2
; %bb.4:
	add	x1, x1, x8
	add	x0, x0, x8
	b	LBB0_7
LBB0_5:
	mov	x19, #0
	cbnz	x2, LBB0_7
	b	LBB0_8
LBB0_6:
	add	x1, x1, x8
	add	x0, x0, x8
	mov	x19, x8
LBB0_7:
	strb	wzr, [x0]
LBB0_8:
	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
