	.file	"4480.c"
	.intel_syntax noprefix
	.text
	.globl	strlcat
	.type	strlcat, @function
strlcat:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	push	rbx
	sub	rsp, 56
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	rbx, QWORD PTR -56[rbp]
	mov	r13, QWORD PTR -64[rbp]
	mov	r12, QWORD PTR -72[rbp]
	jmp	.L2
.L4:
	add	rbx, 1
.L2:
	movzx	eax, BYTE PTR [rbx]
	test	al, al
	je	.L3
	test	r12, r12
	jne	.L4
.L3:
	mov	rax, rbx
	sub	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -40[rbp], rax
	sub	r12, QWORD PTR -40[rbp]
	test	r12, r12
	jne	.L7
	mov	rdi, r13
	call	strlen@PLT
	mov	rdx, QWORD PTR -40[rbp]
	add	rax, rdx
	jmp	.L6
.L9:
	cmp	r12, 1
	je	.L8
	mov	rax, rbx
	lea	rbx, 1[rax]
	movzx	edx, BYTE PTR 0[r13]
	mov	BYTE PTR [rax], dl
	sub	r12, 1
.L8:
	add	r13, 1
.L7:
	movzx	eax, BYTE PTR 0[r13]
	test	al, al
	jne	.L9
	mov	BYTE PTR [rbx], 0
	mov	rax, r13
	sub	rax, QWORD PTR -64[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
.L6:
	add	rsp, 56
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	strlcat, .-strlcat
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"4480.c"
	.text
	.align	2
	.global	strlcat
	.syntax unified
	.arm
	.fpu softvfp
	.type	strlcat, %function
strlcat:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #28
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r5, [fp, #-32]
	ldr	r6, [fp, #-36]
	ldr	r4, [fp, #-40]
	b	.L2
.L4:
	add	r5, r5, #1
.L2:
	ldrb	r3, [r5]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L3
	cmp	r4, #0
	bne	.L4
.L3:
	ldr	r3, [fp, #-32]
	sub	r3, r5, r3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	sub	r4, r4, r3
	cmp	r4, #0
	bne	.L7
	mov	r0, r6
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	b	.L6
.L9:
	cmp	r4, #1
	beq	.L8
	mov	r3, r5
	add	r5, r3, #1
	ldrb	r2, [r6]	@ zero_extendqisi2
	strb	r2, [r3]
	sub	r4, r4, #1
.L8:
	add	r6, r6, #1
.L7:
	ldrb	r3, [r6]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L9
	mov	r3, #0
	strb	r3, [r5]
	ldr	r3, [fp, #-36]
	sub	r3, r6, r3
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
.L6:
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
	.size	strlcat, .-strlcat
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
