	.file	"extr_resolved-dns-packet.c_dns_packet_append_key.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	dns_packet_append_key
	.type	dns_packet_append_key, @function
dns_packet_append_key:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	assert@PLT
	mov	rdi, rbx
	call	assert@PLT
	mov	rdi, rbx
	mov	r14, QWORD PTR [r15]
	call	dns_resource_key_name@PLT
	xor	r8d, r8d
	mov	ecx, 1
	mov	rdi, r15
	mov	esi, eax
	mov	edx, 1
	call	dns_packet_append_name@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L2
	mov	esi, DWORD PTR 8[rbx]
	xor	edx, edx
	mov	rdi, r15
	call	dns_packet_append_uint16@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L2
	mov	esi, DWORD PTR 12[rbx]
	test	DWORD PTR DNS_ANSWER_CACHE_FLUSH[rip], r13d
	je	.L3
	or	esi, DWORD PTR MDNS_RR_CACHE_FLUSH[rip]
.L3:
	xor	edx, edx
	mov	rdi, r15
	call	dns_packet_append_uint16@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L2
	xor	r12d, r12d
	test	rbp, rbp
	je	.L1
	mov	QWORD PTR 0[rbp], r14
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rsi, r14
	mov	rdi, r15
	call	dns_packet_truncate@PLT
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
	.cfi_endproc
.LFE0:
	.size	dns_packet_append_key, .-dns_packet_append_key
	.comm	MDNS_RR_CACHE_FLUSH,4,4
	.comm	DNS_ANSWER_CACHE_FLUSH,4,4
	.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_resolved-dns-packet.c_dns_packet_append_key.c"
	.text
	.align	2
	.global	dns_packet_append_key
	.syntax unified
	.arm
	.fpu softvfp
	.type	dns_packet_append_key, %function
dns_packet_append_key:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r1
	mov	r5, r0
	sub	sp, sp, #8
	mov	r9, r2
	mov	r7, r3
	bl	assert
	mov	r0, r6
	bl	assert
	mov	r0, r6
	mov	r10, #0
	ldr	r8, [r5]
	bl	dns_resource_key_name
	mov	r3, #1
	mov	r1, r0
	mov	r2, r3
	mov	r0, r5
	str	r10, [sp]
	bl	dns_packet_append_name
	subs	r4, r0, #0
	blt	.L2
	mov	r2, r10
	mov	r0, r5
	ldr	r1, [r6, #4]
	bl	dns_packet_append_uint16
	subs	r4, r0, #0
	blt	.L2
	ldr	r3, .L11
	ldr	r1, [r6, #8]
	ldr	r3, [r3]
	mov	r2, #0
	tst	r9, r3
	ldrne	r3, .L11+4
	mov	r0, r5
	ldrne	r3, [r3]
	orrne	r1, r1, r3
	bl	dns_packet_append_uint16
	subs	r4, r0, #0
	blt	.L2
	cmp	r7, #0
	moveq	r4, r7
	beq	.L1
	mov	r4, #0
	mov	r0, r4
	str	r8, [r7]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	mov	r1, r8
	mov	r0, r5
	bl	dns_packet_truncate
.L1:
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	.align	2
.L11:
	.word	DNS_ANSWER_CACHE_FLUSH
	.word	MDNS_RR_CACHE_FLUSH
	.size	dns_packet_append_key, .-dns_packet_append_key
	.comm	MDNS_RR_CACHE_FLUSH,4,4
	.comm	DNS_ANSWER_CACHE_FLUSH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
