	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_resolver_send             ## -- Begin function ldns_resolver_send
	.p2align	4, 0x90
_ldns_resolver_send:                    ## @ldns_resolver_send
	.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
	movl	%r9d, %r15d
	movl	%r8d, %r13d
	movl	%ecx, %r14d
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	testq	%rsi, %rsi
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	movq	$0, -56(%rbp)
	testl	%r14d, %r14d
	jne	LBB0_2
## %bb.1:
	movq	_LDNS_RR_TYPE_A@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_2:
	testl	%r13d, %r13d
	jne	LBB0_4
## %bb.3:
	movq	_LDNS_RR_CLASS_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_4:
	movq	%r12, %rdi
	callq	_ldns_resolver_nameserver_count
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movq	%rbx, %rdi
	callq	_ldns_rdf_get_type
	movq	_LDNS_RDF_TYPE_DNAME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.6:
	leaq	-48(%rbp), %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	movl	%r13d, %r8d
	movl	%r15d, %r9d
	callq	_ldns_resolver_prepare_query_pkt
	movq	%rax, %rbx
	movq	_LDNS_STATUS_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_13
## %bb.7:
	movq	%r12, %rdi
	callq	_ldns_resolver_tsig_keyname
	testq	%rax, %rax
	je	LBB0_14
## %bb.8:
	movq	%r12, %rdi
	callq	_ldns_resolver_tsig_keydata
	testq	%rax, %rax
	je	LBB0_14
## %bb.9:
	movq	-48(%rbp), %rdi
	callq	_ldns_pkt_free
	movq	_LDNS_STATUS_CRYPTO_TSIG_ERR@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	movq	_LDNS_STATUS_RES_NO_NS@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	movq	_LDNS_STATUS_RES_QUERY@GOTPCREL(%rip), %rax
LBB0_12:
	movq	(%rax), %rbx
LBB0_13:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	-48(%rbp), %rdx
	leaq	-56(%rbp), %rdi
	movq	%r12, %rsi
	callq	_ldns_resolver_send_pkt
	movq	%rax, %rbx
	movq	-48(%rbp), %rdi
	callq	_ldns_pkt_free
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.15:
	movq	-56(%rbp), %rax
	movq	%rax, (%rcx)
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RR_TYPE_A,4,2             ## @LDNS_RR_TYPE_A
	.comm	_LDNS_RR_CLASS_IN,4,2           ## @LDNS_RR_CLASS_IN
	.comm	_LDNS_STATUS_RES_NO_NS,8,3      ## @LDNS_STATUS_RES_NO_NS
	.comm	_LDNS_RDF_TYPE_DNAME,8,3        ## @LDNS_RDF_TYPE_DNAME
	.comm	_LDNS_STATUS_RES_QUERY,8,3      ## @LDNS_STATUS_RES_QUERY
	.comm	_LDNS_STATUS_OK,8,3             ## @LDNS_STATUS_OK
	.comm	_LDNS_STATUS_CRYPTO_TSIG_ERR,8,3 ## @LDNS_STATUS_CRYPTO_TSIG_ERR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_resolver_send             ; -- Begin function ldns_resolver_send
	.p2align	2
_ldns_resolver_send:                    ; @ldns_resolver_send
	.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, x5
	mov	x24, x4
	mov	x23, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	cmp	x1, #0
	cset	w0, ne
	bl	_assert
	cmp	x22, #0
	cset	w0, ne
	bl	_assert
	str	xzr, [sp]
Lloh0:
	adrp	x8, _LDNS_RR_TYPE_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LDNS_RR_TYPE_A@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w23, #0
	csel	w23, w8, w23, eq
Lloh3:
	adrp	x8, _LDNS_RR_CLASS_IN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LDNS_RR_CLASS_IN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w24, #0
	csel	w24, w8, w24, eq
	mov	x0, x20
	bl	_ldns_resolver_nameserver_count
	cbz	x0, LBB0_6
; %bb.1:
	mov	x0, x22
	bl	_ldns_rdf_get_type
Lloh6:
	adrp	x8, _LDNS_RDF_TYPE_DNAME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LDNS_RDF_TYPE_DNAME@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.2:
	add	x0, sp, #8
	mov	x1, x20
	mov	x2, x22
	mov	x3, x23
	mov	x4, x24
	mov	x5, x21
	bl	_ldns_resolver_prepare_query_pkt
	mov	x21, x0
Lloh9:
	adrp	x8, _LDNS_STATUS_OK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LDNS_STATUS_OK@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.3:
	mov	x0, x20
	bl	_ldns_resolver_tsig_keyname
	cbz	x0, LBB0_10
; %bb.4:
	mov	x0, x20
	bl	_ldns_resolver_tsig_keydata
	cbz	x0, LBB0_10
; %bb.5:
	ldr	x0, [sp, #8]
	bl	_ldns_pkt_free
Lloh12:
	adrp	x8, _LDNS_STATUS_CRYPTO_TSIG_ERR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LDNS_STATUS_CRYPTO_TSIG_ERR@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh14:
	adrp	x8, _LDNS_STATUS_RES_NO_NS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LDNS_STATUS_RES_NO_NS@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh16:
	adrp	x8, _LDNS_STATUS_RES_QUERY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LDNS_STATUS_RES_QUERY@GOTPAGEOFF]
LBB0_8:
	ldr	x21, [x8]
LBB0_9:
	mov	x0, x21
	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
LBB0_10:
	ldr	x2, [sp, #8]
	mov	x0, sp
	mov	x1, x20
	bl	_ldns_resolver_send_pkt
	mov	x21, x0
	ldr	x0, [sp, #8]
	bl	_ldns_pkt_free
	cbz	x19, LBB0_9
; %bb.11:
	ldr	x8, [sp]
	str	x8, [x19]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_A,4,2             ; @LDNS_RR_TYPE_A
	.comm	_LDNS_RR_CLASS_IN,4,2           ; @LDNS_RR_CLASS_IN
	.comm	_LDNS_STATUS_RES_NO_NS,8,3      ; @LDNS_STATUS_RES_NO_NS
	.comm	_LDNS_RDF_TYPE_DNAME,8,3        ; @LDNS_RDF_TYPE_DNAME
	.comm	_LDNS_STATUS_RES_QUERY,8,3      ; @LDNS_STATUS_RES_QUERY
	.comm	_LDNS_STATUS_OK,8,3             ; @LDNS_STATUS_OK
	.comm	_LDNS_STATUS_CRYPTO_TSIG_ERR,8,3 ; @LDNS_STATUS_CRYPTO_TSIG_ERR
.subsections_via_symbols
