	.file	"372663.c"
	.intel_syntax noprefix
	.text
	.globl	strlcpy
	.type	strlcpy, @function
strlcpy:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 72
	.cfi_offset 3, -24
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, -1[rax]
	mov	QWORD PTR -72[rbp], rdx
	test	rax, rax
	je	.L15
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, rdx
	and	eax, 7
	test	rax, rax
	jne	.L11
	jmp	.L5
.L7:
	sub	QWORD PTR -72[rbp], 1
	add	QWORD PTR -64[rbp], 1
	add	QWORD PTR -56[rbp], 1
.L5:
	mov	rax, QWORD PTR -64[rbp]
	and	eax, 7
	test	rax, rax
	je	.L6
	cmp	QWORD PTR -72[rbp], 0
	je	.L6
	mov	rax, QWORD PTR -64[rbp]
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L7
.L6:
	cmp	QWORD PTR -72[rbp], 0
	je	.L11
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L11
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -32[rbp], rax
	jmp	.L8
.L10:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], rdx
	sub	QWORD PTR -72[rbp], 8
	add	QWORD PTR -32[rbp], 8
	add	QWORD PTR -40[rbp], 8
.L8:
	cmp	QWORD PTR -72[rbp], 7
	jbe	.L9
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	movabs	rdx, -72340172838076673
	add	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	not	rax
	and	rdx, rax
	movabs	rax, -9187201950435737472
	and	rax, rdx
	test	rax, rax
	je	.L10
.L9:
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -64[rbp], rax
	jmp	.L11
.L13:
	sub	QWORD PTR -72[rbp], 1
	add	QWORD PTR -64[rbp], 1
	add	QWORD PTR -56[rbp], 1
.L11:
	cmp	QWORD PTR -72[rbp], 0
	je	.L12
	mov	rax, QWORD PTR -64[rbp]
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L13
.L12:
	mov	rax, QWORD PTR -56[rbp]
	mov	BYTE PTR [rax], 0
	jmp	.L3
.L15:
	nop
.L3:
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, QWORD PTR -24[rbp]
	mov	rbx, rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, rbx
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	strlcpy, .-strlcpy
	.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	"372663.c"
	.text
	.align	2
	.global	strlcpy
	.syntax unified
	.arm
	.fpu softvfp
	.type	strlcpy, %function
strlcpy:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-40]
	sub	r2, r3, #1
	str	r2, [fp, #-40]
	cmp	r3, #0
	beq	.L15
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-32]
	eor	r3, r3, r2
	and	r3, r3, #3
	cmp	r3, #0
	bne	.L11
	b	.L5
.L7:
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L5:
	ldr	r3, [fp, #-36]
	and	r3, r3, #3
	cmp	r3, #0
	beq	.L6
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L6
	ldr	r3, [fp, #-36]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-32]
	strb	r2, [r3]
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L7
.L6:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L11
	ldr	r3, [fp, #-36]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L11
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-20]
	b	.L8
.L10:
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #-40]
	sub	r3, r3, #4
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	str	r3, [fp, #-24]
.L8:
	ldr	r3, [fp, #-40]
	cmp	r3, #3
	bls	.L9
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldr	r3, .L16
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	ldr	r2, [r2]
	mvn	r2, r2
	and	r2, r2, r3
	ldr	r3, .L16+4
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L10
.L9:
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-36]
	b	.L11
.L13:
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L11:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L12
	ldr	r3, [fp, #-36]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-32]
	strb	r2, [r3]
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L13
.L12:
	ldr	r3, [fp, #-32]
	mov	r2, #0
	strb	r2, [r3]
	b	.L3
.L15:
	nop
.L3:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	mov	r4, r3
	ldr	r0, [fp, #-36]
	bl	strlen
	mov	r3, r0
	add	r3, r4, r3
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L17:
	.align	2
.L16:
	.word	-16843009
	.word	-2139062144
	.size	strlcpy, .-strlcpy
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
