	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_openpam_strlcpy                ## -- Begin function openpam_strlcpy
	.p2align	4, 0x90
_openpam_strlcpy:                       ## @openpam_strlcpy
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movb	(%rsi), %cl
	xorl	%eax, %eax
	testb	%cl, %cl
	je	LBB0_6
## %bb.1:
	cmpq	$2, %rdx
	jb	LBB0_6
## %bb.2:
	decq	%rdx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movb	%cl, (%rdi,%rax)
	movzbl	1(%rsi,%rax), %ecx
	incq	%rax
	testb	%cl, %cl
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	-1(%rdx), %r8
	cmpq	$1, %rdx
	movq	%r8, %rdx
	ja	LBB0_3
LBB0_5:
	addq	%rax, %rsi
	addq	%rax, %rdi
LBB0_6:
	movb	$0, (%rdi)
	cmpb	$0, (%rsi)
	je	LBB0_9
## %bb.7:
	incq	%rsi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	incq	%rax
	cmpb	$0, (%rsi)
	leaq	1(%rsi), %rsi
	jne	LBB0_8
LBB0_9:
	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	_openpam_strlcpy                ; -- Begin function openpam_strlcpy
	.p2align	2
_openpam_strlcpy:                       ; @openpam_strlcpy
	.cfi_startproc
; %bb.0:
	mov	x8, x0
	ldrb	w9, [x1]
	cmp	w9, #0
	mov	x0, #0
	ccmp	x2, #2, #0, ne
	b.lo	LBB0_4
; %bb.1:
	sub	x10, x2, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x11, x1, x0
	strb	w9, [x8, x0]
	add	x0, x0, #1
	ldrb	w9, [x11, #1]
	cmp	w9, #0
	ccmp	x10, #1, #0, ne
	sub	x10, x10, #1
	b.hi	LBB0_2
; %bb.3:
	add	x1, x1, x0
	add	x8, x8, x0
LBB0_4:
	strb	wzr, [x8]
	ldrb	w8, [x1]
	cbz	w8, LBB0_7
; %bb.5:
	add	x8, x1, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x0, #1
	ldrb	w9, [x8], #1
	cbnz	w9, LBB0_6
LBB0_7:
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
