	.file	"extr_util.c_strlcpy.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	strlcpy
	.type	strlcpy, @function
strlcpy:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdx, rdx
	je	.L8
	lea	rcx, -1[rdi+rdx]
	mov	rax, rsi
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	movzx	edx, BYTE PTR -1[rax]
	add	rdi, 1
	mov	BYTE PTR -1[rdi], dl
	test	dl, dl
	je	.L4
.L3:
	mov	rdx, rax
	add	rax, 1
	cmp	rdi, rcx
	jne	.L5
	mov	rax, rdx
	mov	BYTE PTR [rdi], 0
	add	rax, 1
	cmp	BYTE PTR -1[rax], 0
	jne	.L7
.L4:
	sub	rax, rsi
	sub	rax, 1
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rax, rsi
	.p2align 4,,10
	.p2align 3
.L7:
	add	rax, 1
	cmp	BYTE PTR -1[rax], 0
	jne	.L7
	sub	rax, rsi
	sub	rax, 1
	ret
	.cfi_endproc
.LFE0:
	.size	strlcpy, .-strlcpy
	.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_util.c_strlcpy.c"
	.text
	.align	2
	.global	strlcpy
	.syntax unified
	.arm
	.fpu softvfp
	.type	strlcpy, %function
strlcpy:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r2, #0
	beq	.L8
	sub	r2, r2, #1
	str	lr, [sp, #-4]!
	mov	ip, r0
	mov	r3, r1
	add	lr, r0, r2
	b	.L3
.L5:
	ldrb	r2, [r3, #-1]	@ zero_extendqisi2
	cmp	r2, #0
	strb	r2, [ip], #1
	beq	.L4
.L3:
	cmp	lr, ip
	mov	r2, r3
	add	r3, r3, #1
	bne	.L5
	mov	r0, #0
	mov	r3, r2
	strb	r0, [lr]
.L7:
	ldrb	r2, [r3], #1	@ zero_extendqisi2
	cmp	r2, #0
	bne	.L7
.L4:
	sub	r0, r3, r1
	sub	r0, r0, #1
	ldr	pc, [sp], #4
.L8:
	mov	r3, r1
.L16:
	ldrb	r2, [r3], #1	@ zero_extendqisi2
	cmp	r2, #0
	bne	.L16
	sub	r0, r3, r1
	sub	r0, r0, #1
	bx	lr
	.size	strlcpy, .-strlcpy
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
