	.file	"extr_msgreply.c_edns_opt_copy_alloc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	edns_opt_copy_alloc
	.type	edns_opt_copy_alloc, @function
edns_opt_copy_alloc:
.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
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	test	rdi, rdi
	je	.L7
	mov	rbx, rdi
	xor	ebp, ebp
	xor	r13d, r13d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L17:
	mov	QWORD PTR 8[r12], rbp
	mov	rbx, QWORD PTR 8[rbx]
	test	rbx, rbx
	je	.L1
.L6:
	mov	esi, 24
	mov	rdi, rbx
	mov	r12, rbp
	call	memdup@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L14
	mov	rdi, QWORD PTR 16[rax]
	mov	QWORD PTR 8[rax], 0
	test	rdi, rdi
	je	.L4
	mov	esi, DWORD PTR [rax]
	call	memdup@PLT
	mov	QWORD PTR 16[rbp], rax
	test	rax, rax
	je	.L16
.L4:
	test	r12, r12
	jne	.L17
	mov	rbx, QWORD PTR 8[rbx]
	mov	r13, rbp
	test	rbx, rbx
	jne	.L6
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r13
	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
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	rdi, rbp
	call	free@PLT
.L14:
	mov	rdi, r13
	xor	r13d, r13d
	call	edns_opt_list_free@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r13
	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
.L7:
	.cfi_restore_state
	xor	r13d, r13d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	edns_opt_copy_alloc, .-edns_opt_copy_alloc
	.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_msgreply.c_edns_opt_copy_alloc.c"
	.text
	.align	2
	.global	edns_opt_copy_alloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	edns_opt_copy_alloc, %function
edns_opt_copy_alloc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	subs	r5, r0, #0
	beq	.L7
	mov	r4, #0
	mov	r9, r4
	mov	r8, r4
	b	.L6
.L3:
	ldr	r0, [r4, #8]
	str	r8, [r4, #4]
	cmp	r0, #0
	beq	.L4
	ldr	r1, [r4]
	bl	memdup
	cmp	r0, #0
	mov	r7, r0
	str	r0, [r4, #8]
	beq	.L15
.L4:
	cmp	r6, #0
	strne	r4, [r6, #4]
	ldr	r5, [r5, #4]
	moveq	r9, r4
	cmp	r5, #0
	beq	.L1
.L6:
	mov	r1, #12
	mov	r0, r5
	bl	memdup
	mov	r6, r4
	subs	r4, r0, #0
	bne	.L3
	mov	r0, r9
	bl	edns_opt_list_free
	mov	r9, r4
.L1:
	mov	r0, r9
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L15:
	mov	r0, r4
	bl	free
	mov	r0, r9
	mov	r9, r7
	bl	edns_opt_list_free
	mov	r0, r9
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L7:
	mov	r9, r5
	b	.L1
	.size	edns_opt_copy_alloc, .-edns_opt_copy_alloc
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
