	.file	"extr_strlcat.c_strlcat.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	strlcat
	.type	strlcat, @function
strlcat:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	test	rdx, rdx
	je	.L10
	lea	rcx, [rdi+rdx]
	mov	rax, rdi
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	add	rax, 1
	cmp	rax, rcx
	je	.L4
.L3:
	cmp	BYTE PTR [rax], 0
	jne	.L5
.L4:
	mov	r12, rax
	sub	r12, rdi
	sub	rdx, r12
	je	.L2
	movzx	r8d, BYTE PTR [rsi]
	mov	rcx, rsi
	test	r8b, r8b
	je	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	cmp	rdx, 1
	je	.L9
	mov	BYTE PTR [rax], r8b
	sub	rdx, 1
	add	rax, 1
.L9:
	movzx	r8d, BYTE PTR 1[rcx]
	add	rcx, 1
	test	r8b, r8b
	jne	.L6
	sub	rcx, rsi
	add	r12, rcx
.L7:
	mov	BYTE PTR [rax], 0
	mov	rax, r12
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L10:
	.cfi_restore_state
	xor	r12d, r12d
.L2:
	mov	rdi, rsi
	call	strlen@PLT
	add	r12, rax
	mov	rax, r12
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	strlcat, .-strlcat
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_strlcat.c_strlcat.c"
	.text
	.align	2
	.global	strlcat
	.syntax unified
	.arm
	.fpu softvfp
	.type	strlcat, %function
strlcat:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r2, #0
	push	{r4, r5, r6, lr}
	beq	.L10
	mov	r4, r0
	mov	ip, r0
	add	r5, r2, r0
	b	.L3
.L5:
	cmp	r5, ip
	mov	r3, ip
	beq	.L4
.L3:
	ldrb	lr, [ip]	@ zero_extendqisi2
	mov	r3, ip
	cmp	lr, #0
	add	ip, ip, #1
	bne	.L5
.L4:
	sub	r4, r3, r4
	subs	r2, r2, r4
	beq	.L2
	ldrb	ip, [r1]	@ zero_extendqisi2
	cmp	ip, #0
	movne	lr, r1
	beq	.L7
.L6:
	cmp	r2, #1
	strbne	ip, [r3], #1
	ldrb	ip, [lr, #1]!	@ zero_extendqisi2
	subne	r2, r2, #1
	cmp	ip, #0
	bne	.L6
	sub	lr, lr, r1
	add	r4, r4, lr
.L7:
	mov	r2, #0
	mov	r0, r4
	strb	r2, [r3]
	pop	{r4, r5, r6, pc}
.L10:
	mov	r4, r2
.L2:
	mov	r0, r1
	bl	strlen
	add	r4, r4, r0
	mov	r0, r4
	pop	{r4, r5, r6, pc}
	.size	strlcat, .-strlcat
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
