	.file	"extr_dstr.c_dstr_ncopy_dstr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	dstr_ncopy_dstr
	.type	dstr_ncopy_dstr, @function
dstr_ncopy_dstr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	QWORD PTR 16[rdi], 0
	je	.L2
	call	dstr_free@PLT
.L2:
	test	rbp, rbp
	je	.L1
	mov	rsi, QWORD PTR [r12]
	mov	rdi, rbp
	call	size_min@PLT
	mov	rdi, QWORD PTR 16[r12]
	lea	r13, 1[rax]
	mov	rbp, rax
	mov	rsi, r13
	call	bmemdup@PLT
	mov	QWORD PTR [rbx], rbp
	mov	QWORD PTR 16[rbx], rax
	mov	QWORD PTR 8[rbx], r13
	mov	QWORD PTR [rax+rbp*8], 0
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	dstr_ncopy_dstr, .-dstr_ncopy_dstr
	.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_dstr.c_dstr_ncopy_dstr.c"
	.text
	.align	2
	.global	dstr_ncopy_dstr
	.syntax unified
	.arm
	.fpu softvfp
	.type	dstr_ncopy_dstr, %function
dstr_ncopy_dstr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #8]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r3, #0
	mov	r4, r0
	mov	r6, r1
	mov	r5, r2
	beq	.L2
	bl	dstr_free
.L2:
	cmp	r5, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r0, r5
	ldr	r1, [r6]
	bl	size_min
	add	r7, r0, #1
	mov	r5, r0
	mov	r1, r7
	ldr	r0, [r6, #8]
	bl	bmemdup
	mov	r3, #0
	stm	r4, {r5, r7}
	str	r0, [r4, #8]
	str	r3, [r0, r5, lsl #2]
	pop	{r4, r5, r6, r7, r8, pc}
	.size	dstr_ncopy_dstr, .-dstr_ncopy_dstr
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
