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