	.file	"extr_resolver.c_ldns_resolver_send_pkt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ldns_resolver_send_pkt
	.type	ldns_resolver_send_pkt, @function
ldns_resolver_send_pkt:
.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
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	r14, rsp
	mov	QWORD PTR [rsp], 0
	mov	rdi, r14
	call	ldns_send@PLT
	cmp	QWORD PTR LDNS_STATUS_OK[rip], rax
	mov	r12, rax
	je	.L2
	mov	rdi, QWORD PTR [rsp]
	test	rdi, rdi
	je	.L3
	call	ldns_pkt_free@PLT
	mov	QWORD PTR [rsp], 0
.L3:
	test	rbx, rbx
	je	.L1
	mov	rax, QWORD PTR [rsp]
	mov	QWORD PTR [rbx], rax
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L23
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	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
.L2:
	.cfi_restore_state
	mov	rdi, rbp
	call	ldns_resolver_usevc@PLT
	test	eax, eax
	jne	.L3
	mov	rdi, rbp
	call	ldns_resolver_fallback@PLT
	test	rax, rax
	je	.L3
	mov	rdi, QWORD PTR [rsp]
	call	ldns_pkt_tc@PLT
	test	rax, rax
	je	.L3
	mov	rdi, r13
	call	ldns_pkt_edns_udp_size@PLT
	test	rax, rax
	je	.L24
.L4:
	cmp	QWORD PTR LDNS_STATUS_OK[rip], r12
	je	.L5
.L6:
	mov	esi, 1
	mov	rdi, rbp
	call	ldns_resolver_set_usevc@PLT
	mov	rdi, QWORD PTR [rsp]
	call	ldns_pkt_free@PLT
	mov	rsi, rbp
	mov	rdi, r14
	mov	rdx, r13
	call	ldns_send@PLT
	xor	esi, esi
	mov	rdi, rbp
	mov	r12, rax
	call	ldns_resolver_set_usevc@PLT
	jmp	.L3
.L5:
	mov	rdi, QWORD PTR [rsp]
	call	ldns_pkt_tc@PLT
	test	rax, rax
	jne	.L6
	jmp	.L3
.L24:
	mov	esi, 4096
	mov	rdi, r13
	call	ldns_pkt_set_edns_udp_size@PLT
	mov	rdi, QWORD PTR [rsp]
	call	ldns_pkt_free@PLT
	mov	rdi, rbp
	mov	QWORD PTR [rsp], 0
	call	ldns_resolver_backup_rtt@PLT
	mov	rsi, rbp
	mov	rdi, r14
	mov	rdx, r13
	mov	r15, rax
	call	ldns_send@PLT
	mov	rsi, r15
	mov	rdi, rbp
	mov	r12, rax
	call	ldns_resolver_restore_rtt@PLT
	jmp	.L4
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ldns_resolver_send_pkt, .-ldns_resolver_send_pkt
	.comm	LDNS_STATUS_OK,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_resolver.c_ldns_resolver_send_pkt.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ldns_resolver_send_pkt
	.syntax unified
	.arm
	.fpu softvfp
	.type	ldns_resolver_send_pkt, %function
ldns_resolver_send_pkt:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r8, #0
	sub	sp, sp, #12
	ldr	r3, .L25
	mov	r6, r0
	mov	r0, sp
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r7, r1
	mov	r9, r2
	str	r8, [sp]
	bl	ldns_send
	ldr	r5, .L25+4
	mov	r4, r0
	ldr	r3, [r5]
	cmp	r3, r0
	beq	.L2
	ldr	r0, [sp]
	cmp	r0, r8
	beq	.L3
	bl	ldns_pkt_free
	str	r8, [sp]
.L3:
	cmp	r6, #0
	ldrne	r3, [sp]
	strne	r3, [r6]
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L2:
	mov	r0, r7
	bl	ldns_resolver_usevc
	cmp	r0, #0
	bne	.L3
	mov	r0, r7
	bl	ldns_resolver_fallback
	cmp	r0, #0
	beq	.L3
	ldr	r0, [sp]
	bl	ldns_pkt_tc
	cmp	r0, #0
	beq	.L3
	mov	r0, r9
	bl	ldns_pkt_edns_udp_size
	subs	r8, r0, #0
	beq	.L24
.L4:
	ldr	r3, [r5]
	cmp	r3, r4
	beq	.L5
.L6:
	mov	r1, #1
	mov	r0, r7
	bl	ldns_resolver_set_usevc
	ldr	r0, [sp]
	bl	ldns_pkt_free
	mov	r1, r7
	mov	r2, r9
	mov	r0, sp
	bl	ldns_send
	mov	r1, #0
	mov	r4, r0
	mov	r0, r7
	bl	ldns_resolver_set_usevc
	b	.L3
.L5:
	ldr	r0, [sp]
	bl	ldns_pkt_tc
	cmp	r0, #0
	bne	.L6
	b	.L3
.L24:
	mov	r1, #4096
	mov	r0, r9
	bl	ldns_pkt_set_edns_udp_size
	ldr	r0, [sp]
	bl	ldns_pkt_free
	mov	r0, r7
	str	r8, [sp]
	bl	ldns_resolver_backup_rtt
	mov	r1, r7
	mov	r8, r0
	mov	r2, r9
	mov	r0, sp
	bl	ldns_send
	mov	r1, r8
	mov	r4, r0
	mov	r0, r7
	bl	ldns_resolver_restore_rtt
	b	.L4
.L23:
	bl	__stack_chk_fail
.L26:
	.align	2
.L25:
	.word	.LC0
	.word	LDNS_STATUS_OK
	.size	ldns_resolver_send_pkt, .-ldns_resolver_send_pkt
	.comm	LDNS_STATUS_OK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
