	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_strlcat                        ## -- Begin function strlcat
	.p2align	4, 0x90
_strlcat:                               ## @strlcat
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rcx
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.1:
	leaq	(%rdi,%rdx), %rax
	movq	%rdx, %rbx
	movq	%rdi, %rcx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$0, (%rcx)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rcx
	decq	%rbx
	jne	LBB0_2
## %bb.4:
	movq	%rax, %rcx
LBB0_5:
	movq	%rcx, %r14
	subq	%rdi, %r14
	subq	%r14, %rdx
	je	LBB0_14
## %bb.6:
	movb	(%rsi), %bl
	movq	%rsi, %rax
	testb	%bl, %bl
	je	LBB0_12
## %bb.7:
	movl	$1, %edi
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movb	%bl, (%rcx)
	incq	%rcx
	decq	%rdx
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movzbl	1(%rax), %ebx
	incq	%rax
	testb	%bl, %bl
	je	LBB0_12
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$1, %rdx
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%rdi, %rdx
	jmp	LBB0_11
LBB0_12:
	movb	$0, (%rcx)
	subq	%rsi, %rax
	jmp	LBB0_13
LBB0_14:
	movq	%rsi, %rdi
	callq	_strlen
LBB0_13:
	addq	%r14, %rax
	popq	%rbx
	popq	%r14
	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	_strlcat                        ; -- Begin function strlcat
	.p2align	2
_strlcat:                               ; @strlcat
	.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
	mov	x8, x0
	cbz	x2, LBB0_5
; %bb.1:
	add	x9, x0, x2
	mov	x10, x2
	mov	x8, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x8]
	cbz	w11, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, #1
	subs	x10, x10, #1
	b.ne	LBB0_2
; %bb.4:
	mov	x8, x9
LBB0_5:
	sub	x19, x8, x0
	subs	x9, x2, x19
	b.eq	LBB0_11
; %bb.6:
	ldrb	w11, [x1]
	cbz	w11, LBB0_12
; %bb.7:
	mov	x10, x1
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	strb	w11, [x8], #1
	ldrb	w11, [x10, #1]!
	cbz	w11, LBB0_13
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	subs	x9, x9, #1
	b.ne	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w9, #1
	ldrb	w11, [x10, #1]!
	cbnz	w11, LBB0_9
	b	LBB0_13
LBB0_11:
	mov	x0, x1
	bl	_strlen
	b	LBB0_14
LBB0_12:
	mov	x10, x1
LBB0_13:
	strb	wzr, [x8]
	sub	x0, x10, x1
LBB0_14:
	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
