	.file	"404739.c"
	.intel_syntax noprefix
	.text
	.globl	strncpy
	.type	strncpy, @function
strncpy:
.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
	.cfi_offset 3, -24
	mov	QWORD PTR -16[rbp], rdi
	mov	rcx, rsi
	mov	rax, rdx
	mov	rbx, QWORD PTR -16[rbp]
	test	rax, rax
	je	.L2
	nop
.L4:
	mov	rsi, rcx
	lea	rcx, 1[rsi]
	mov	rdx, rbx
	lea	rbx, 1[rdx]
	movzx	esi, BYTE PTR [rsi]
	mov	BYTE PTR [rdx], sil
	movzx	edx, BYTE PTR [rdx]
	test	dl, dl
	je	.L3
	sub	rax, 1
	test	rax, rax
	jne	.L4
.L3:
	sub	rcx, 1
	movzx	edx, BYTE PTR [rcx]
	test	dl, dl
	jne	.L2
	sub	rax, 1
	test	rax, rax
	je	.L2
.L5:
	mov	rdx, rbx
	lea	rbx, 1[rdx]
	mov	BYTE PTR [rdx], 0
	sub	rax, 1
	test	rax, rax
	jne	.L5
.L2:
	mov	rax, QWORD PTR -16[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	strncpy, .-strncpy
	.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	"404739.c"
	.text
	.align	2
	.global	strncpy
	.syntax unified
	.arm
	.fpu softvfp
	.type	strncpy, %function
strncpy:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, fp}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	mov	r3, r2
	ldr	r4, [fp, #-8]
	cmp	r3, #0
	beq	.L2
	nop
.L4:
	mov	r0, r1
	add	r1, r0, #1
	mov	r2, r4
	add	r4, r2, #1
	ldrb	r0, [r0]	@ zero_extendqisi2
	strb	r0, [r2]
	ldrb	r2, [r2]	@ zero_extendqisi2
	cmp	r2, #0
	beq	.L3
	sub	r3, r3, #1
	cmp	r3, #0
	bne	.L4
.L3:
	sub	r1, r1, #1
	ldrb	r2, [r1]	@ zero_extendqisi2
	cmp	r2, #0
	bne	.L2
	sub	r3, r3, #1
	cmp	r3, #0
	beq	.L2
.L5:
	mov	r2, r4
	add	r4, r2, #1
	mov	r1, #0
	strb	r1, [r2]
	sub	r3, r3, #1
	cmp	r3, #0
	bne	.L5
.L2:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{r4, fp}
	bx	lr
	.size	strncpy, .-strncpy
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
