	.file	"extr_dname.c_dname_pkt_copy.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"bad dname in dname_pkt_copy"
	.text
	.p2align 4
	.globl	dname_pkt_copy
	.type	dname_pkt_copy, @function
dname_pkt_copy:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rbp, QWORD PTR [rdx]
	test	rbp, rbp
	je	.L2
	mov	r14, rdi
	lea	rbx, 8[rdx]
	xor	r13d, r13d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	xor	edi, edi
	cmp	QWORD PTR LDNS_MAX_LABELLEN[rip], rbp
	lea	r13, 1[rbp+r13]
	setge	dil
	call	log_assert@PLT
	cmp	QWORD PTR LDNS_MAX_DOMAINLEN[rip], r13
	jbe	.L13
	mov	QWORD PTR [r12], rbp
	lea	r15, 8[r12]
	mov	rdx, rbp
	mov	rsi, rbx
	sal	rbp, 3
	mov	rdi, r15
	lea	r12, [r15+rbp]
	call	memmove@PLT
	lea	rax, [rbx+rbp]
	mov	rbp, QWORD PTR [rax]
	lea	rbx, 8[rax]
	test	rbp, rbp
	je	.L2
.L6:
	mov	rdi, rbp
	call	LABEL_IS_PTR@PLT
	test	rax, rax
	je	.L3
	mov	rsi, QWORD PTR [rbx]
	mov	rdi, rbp
	call	PTR_OFFSET@PLT
	mov	rdi, r14
	mov	esi, eax
	call	sldns_buffer_at@PLT
	mov	rbp, QWORD PTR [rax]
	lea	rbx, 8[rax]
	test	rbp, rbp
	jne	.L6
.L2:
	mov	QWORD PTR [r12], 0
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	QWORD PTR [r12], 0
	add	rsp, 8
	.cfi_def_cfa_offset 56
	lea	rdi, .LC0[rip]
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	log_err@PLT
	.cfi_endproc
.LFE0:
	.size	dname_pkt_copy, .-dname_pkt_copy
	.comm	LDNS_MAX_LABELLEN,8,8
	.comm	LDNS_MAX_DOMAINLEN,8,8
	.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_dname.c_dname_pkt_copy.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"bad dname in dname_pkt_copy\000"
	.text
	.align	2
	.global	dname_pkt_copy
	.syntax unified
	.arm
	.fpu softvfp
	.type	dname_pkt_copy, %function
dname_pkt_copy:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r2
	ldr	r4, [r5], #4
	mov	r6, r1
	cmp	r4, #0
	beq	.L2
	mov	r10, r0
	mov	r7, #0
	ldr	r9, .L14
	ldr	r8, .L14+4
	b	.L6
.L3:
	ldr	r0, [r9]
	add	r7, r7, #1
	cmp	r0, r4
	movlt	r0, #0
	movge	r0, #1
	bl	log_assert
	ldr	r3, [r8]
	add	r7, r4, r7
	cmp	r3, r7
	bls	.L13
	mov	r0, r6
	mov	r2, r4
	str	r4, [r0], #4
	mov	r1, r5
	add	r5, r5, r4, lsl #2
	add	r6, r0, r4, lsl #2
	bl	memmove
	ldr	r4, [r5], #4
	cmp	r4, #0
	beq	.L2
.L6:
	mov	r0, r4
	bl	LABEL_IS_PTR
	subs	fp, r0, #0
	beq	.L3
	ldr	r1, [r5]
	mov	r0, r4
	bl	PTR_OFFSET
	mov	r1, r0
	mov	r0, r10
	bl	sldns_buffer_at
	mov	r5, r0
	ldr	r4, [r5], #4
	cmp	r4, #0
	bne	.L6
.L2:
	mov	r3, #0
	str	r3, [r6]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	str	fp, [r6]
	ldr	r0, .L14+8
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	log_err
.L15:
	.align	2
.L14:
	.word	LDNS_MAX_LABELLEN
	.word	LDNS_MAX_DOMAINLEN
	.word	.LC0
	.size	dname_pkt_copy, .-dname_pkt_copy
	.comm	LDNS_MAX_LABELLEN,4,4
	.comm	LDNS_MAX_DOMAINLEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
