	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_resolver_send_pkt         ## -- Begin function ldns_resolver_send_pkt
	.p2align	4, 0x90
_ldns_resolver_send_pkt:                ## @ldns_resolver_send_pkt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	$0, -48(%rbp)
	leaq	-48(%rbp), %rdi
	callq	_ldns_send
	movq	%rax, %rbx
	movq	_LDNS_STATUS_OK@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_1
## %bb.3:
	movq	%r12, %rdi
	callq	_ldns_resolver_usevc
	testl	%eax, %eax
	jne	LBB0_11
## %bb.4:
	movq	%r12, %rdi
	callq	_ldns_resolver_fallback
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	movq	-48(%rbp), %rdi
	callq	_ldns_pkt_tc
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:
	movq	%r15, %rdi
	callq	_ldns_pkt_edns_udp_size
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	cmpq	(%r13), %rbx
	je	LBB0_9
	jmp	LBB0_10
LBB0_1:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.2:
	callq	_ldns_pkt_free
	movq	$0, -48(%rbp)
LBB0_11:
	testq	%r14, %r14
	je	LBB0_13
## %bb.12:
	movq	-48(%rbp), %rax
	movq	%rax, (%r14)
LBB0_13:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r15, %rdi
	movl	$4096, %esi                     ## imm = 0x1000
	callq	_ldns_pkt_set_edns_udp_size
	movq	-48(%rbp), %rdi
	callq	_ldns_pkt_free
	movq	$0, -48(%rbp)
	movq	%r12, %rdi
	callq	_ldns_resolver_backup_rtt
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	-48(%rbp), %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_ldns_send
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_ldns_resolver_restore_rtt
	cmpq	(%r13), %rbx
	jne	LBB0_10
LBB0_9:
	movq	-48(%rbp), %rdi
	callq	_ldns_pkt_tc
	testq	%rax, %rax
	je	LBB0_11
LBB0_10:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_ldns_resolver_set_usevc
	movq	-48(%rbp), %rdi
	callq	_ldns_pkt_free
	leaq	-48(%rbp), %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_ldns_send
	movq	%rax, %rbx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_ldns_resolver_set_usevc
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_STATUS_OK,8,3             ## @LDNS_STATUS_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_resolver_send_pkt         ; -- Begin function ldns_resolver_send_pkt
	.p2align	2
_ldns_resolver_send_pkt:                ; @ldns_resolver_send_pkt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	str	xzr, [sp, #8]
	add	x0, sp, #8
	bl	_ldns_send
	mov	x22, x0
Lloh0:
	adrp	x24, _LDNS_STATUS_OK@GOTPAGE
Lloh1:
	ldr	x24, [x24, _LDNS_STATUS_OK@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.1:
	mov	x0, x20
	bl	_ldns_resolver_usevc
	cbnz	w0, LBB0_11
; %bb.2:
	mov	x0, x20
	bl	_ldns_resolver_fallback
	cbz	x0, LBB0_11
; %bb.3:
	ldr	x0, [sp, #8]
	bl	_ldns_pkt_tc
	cbz	x0, LBB0_11
; %bb.4:
	mov	x0, x21
	bl	_ldns_pkt_edns_udp_size
	cbnz	x0, LBB0_6
; %bb.5:
	mov	x0, x21
	mov	w1, #4096
	bl	_ldns_pkt_set_edns_udp_size
	ldr	x0, [sp, #8]
	bl	_ldns_pkt_free
	str	xzr, [sp, #8]
	mov	x0, x20
	bl	_ldns_resolver_backup_rtt
	mov	x23, x0
	add	x0, sp, #8
	mov	x1, x20
	mov	x2, x21
	bl	_ldns_send
	mov	x22, x0
	mov	x0, x20
	mov	x1, x23
	bl	_ldns_resolver_restore_rtt
LBB0_6:
	ldr	x8, [x24]
	cmp	x22, x8
	b.ne	LBB0_8
; %bb.7:
	ldr	x0, [sp, #8]
	bl	_ldns_pkt_tc
	cbz	x0, LBB0_11
LBB0_8:
	mov	x0, x20
	mov	w1, #1
	bl	_ldns_resolver_set_usevc
	ldr	x0, [sp, #8]
	bl	_ldns_pkt_free
	add	x0, sp, #8
	mov	x1, x20
	mov	x2, x21
	bl	_ldns_send
	mov	x22, x0
	mov	x0, x20
	mov	w1, #0
	bl	_ldns_resolver_set_usevc
	b	LBB0_11
LBB0_9:
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_11
; %bb.10:
	bl	_ldns_pkt_free
	str	xzr, [sp, #8]
LBB0_11:
	cbz	x19, LBB0_13
; %bb.12:
	ldr	x8, [sp, #8]
	str	x8, [x19]
LBB0_13:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_STATUS_OK,8,3             ; @LDNS_STATUS_OK
.subsections_via_symbols
