	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_resolver_prepare_query_pkt ## -- Begin function ldns_resolver_prepare_query_pkt
	.p2align	4, 0x90
_ldns_resolver_prepare_query_pkt:       ## @ldns_resolver_prepare_query_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
	movl	%r9d, %r15d
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_LDNS_RR_TYPE_IXFR@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	jne	LBB0_13
## %bb.1:
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	xorl	%eax, %eax
	callq	_ldns_rr_new
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_ldns_rdf_clone
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_ldns_rr_set_owner
	movq	_LDNS_RR_TYPE_SOA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ldns_rr_set_type
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_ldns_rr_set_class
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ldns_rr_set_question
	leaq	L_.str(%rip), %rsi
	leaq	-64(%rbp), %rdi
	callq	_ldns_str2rdf_dname
	movq	_LDNS_STATUS_OK@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_10
## %bb.4:
	movq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_ldns_rr_push_rdf
	leaq	L_.str(%rip), %rsi
	leaq	-56(%rbp), %rdi
	callq	_ldns_str2rdf_dname
	cmpq	(%r15), %rax
	jne	LBB0_10
## %bb.5:
	movq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_ldns_rr_push_rdf
	movq	_LDNS_RDF_TYPE_INT32@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r14, %rdi
	callq	_ldns_resolver_get_ixfr_serial
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ldns_native2rdf_int32
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_ldns_rr_push_rdf
	movq	_LDNS_RDF_TYPE_INT32@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_ldns_native2rdf_int32
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_ldns_rr_push_rdf
	movq	_LDNS_RDF_TYPE_INT32@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_ldns_native2rdf_int32
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_ldns_rr_push_rdf
	movq	_LDNS_RDF_TYPE_INT32@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_ldns_native2rdf_int32
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_ldns_rr_push_rdf
	movq	_LDNS_RDF_TYPE_INT32@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_ldns_native2rdf_int32
	testq	%rax, %rax
	je	LBB0_10
## %bb.12:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_ldns_rr_push_rdf
	movq	%r13, %rdi
	callq	_ldns_rdf_clone
	movq	%rax, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edx
	movq	%rbx, %rcx
	callq	_ldns_pkt_ixfr_request_new
	movq	%rax, (%r12)
	jmp	LBB0_14
LBB0_13:
	movq	%rcx, %rbx
	movq	%r13, %rdi
	movl	%r8d, %r13d
	callq	_ldns_rdf_clone
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	movl	%r15d, %ecx
	callq	_ldns_pkt_query_new
	movq	%rax, (%r12)
	xorl	%ebx, %ebx
LBB0_14:
	testq	%rax, %rax
	je	LBB0_10
## %bb.15:
	movq	%r14, %rdi
	callq	_ldns_resolver_dnssec
	testq	%rax, %rax
	je	LBB0_21
## %bb.16:
	movq	%r14, %rdi
	callq	_ldns_resolver_edns_udp_size
	testq	%rax, %rax
	jne	LBB0_18
## %bb.17:
	movq	%r14, %rdi
	movl	$4096, %esi                     ## imm = 0x1000
	callq	_ldns_resolver_set_edns_udp_size
LBB0_18:
	movq	(%r12), %rdi
	movl	$1, %esi
	callq	_ldns_pkt_set_edns_do
	movq	%r14, %rdi
	callq	_ldns_resolver_dnssec_cd
	testq	%rax, %rax
	jne	LBB0_20
## %bb.19:
	movq	_LDNS_CD@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_21
LBB0_20:
	movq	(%r12), %rdi
	movl	$1, %esi
	callq	_ldns_pkt_set_cd
LBB0_21:
	movq	%r14, %rdi
	callq	_ldns_resolver_edns_udp_size
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	movq	(%r12), %rbx
	movq	%r14, %rdi
	callq	_ldns_resolver_edns_udp_size
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_ldns_pkt_set_edns_udp_size
LBB0_23:
	xorl	%edi, %edi
	callq	_time
	movq	(%r12), %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_ldns_pkt_set_timestamp
	movq	%r14, %rdi
	callq	_ldns_resolver_debug
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rsi
	callq	_ldns_pkt_print
LBB0_25:
	movq	(%r12), %rdi
	callq	_ldns_pkt_id
	testq	%rax, %rax
	jne	LBB0_27
## %bb.26:
	movq	(%r12), %rdi
	callq	_ldns_pkt_set_random_id
LBB0_27:
	movq	_LDNS_STATUS_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_10:
	movq	%rbx, %rdi
	callq	_ldns_rr_free
LBB0_11:
	movq	_LDNS_STATUS_ERR@GOTPCREL(%rip), %rax
LBB0_28:
	movq	(%rax), %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RR_TYPE_IXFR,8,3          ## @LDNS_RR_TYPE_IXFR
	.comm	_LDNS_STATUS_ERR,8,3            ## @LDNS_STATUS_ERR
	.comm	_LDNS_RR_TYPE_SOA,4,2           ## @LDNS_RR_TYPE_SOA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"."

	.comm	_LDNS_STATUS_OK,8,3             ## @LDNS_STATUS_OK
	.comm	_LDNS_RDF_TYPE_INT32,4,2        ## @LDNS_RDF_TYPE_INT32
	.comm	_LDNS_CD,4,2                    ## @LDNS_CD
	.comm	_stdout,4,2                     ## @stdout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_resolver_prepare_query_pkt ; -- Begin function ldns_resolver_prepare_query_pkt
	.p2align	2
_ldns_resolver_prepare_query_pkt:       ; @ldns_resolver_prepare_query_pkt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x5
	mov	x23, x4
	mov	x24, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _LDNS_RR_TYPE_IXFR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LDNS_RR_TYPE_IXFR@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x3
	b.ne	LBB0_11
; %bb.1:
	bl	_ldns_rr_new
	cbz	x0, LBB0_27
; %bb.2:
	mov	x22, x0
	mov	x0, x24
	bl	_ldns_rdf_clone
	cbz	x0, LBB0_26
; %bb.3:
	mov	x1, x0
	mov	x0, x22
	bl	_ldns_rr_set_owner
Lloh3:
	adrp	x8, _LDNS_RR_TYPE_SOA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LDNS_RR_TYPE_SOA@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_ldns_rr_set_type
	mov	x0, x22
	mov	x1, x23
	bl	_ldns_rr_set_class
	mov	x0, x22
	mov	w1, #0
	bl	_ldns_rr_set_question
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_ldns_str2rdf_dname
Lloh8:
	adrp	x25, _LDNS_STATUS_OK@GOTPAGE
Lloh9:
	ldr	x25, [x25, _LDNS_STATUS_OK@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_26
; %bb.4:
	ldr	x1, [sp, #8]
	mov	x0, x22
	bl	_ldns_rr_push_rdf
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, sp
	bl	_ldns_str2rdf_dname
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_26
; %bb.5:
	ldr	x1, [sp]
	mov	x0, x22
	bl	_ldns_rr_push_rdf
Lloh12:
	adrp	x26, _LDNS_RDF_TYPE_INT32@GOTPAGE
Lloh13:
	ldr	x26, [x26, _LDNS_RDF_TYPE_INT32@GOTPAGEOFF]
	ldr	w25, [x26]
	mov	x0, x20
	bl	_ldns_resolver_get_ixfr_serial
	mov	x1, x0
	mov	x0, x25
	bl	_ldns_native2rdf_int32
	cbz	x0, LBB0_26
; %bb.6:
	mov	x1, x0
	mov	x0, x22
	bl	_ldns_rr_push_rdf
	ldr	w0, [x26]
	mov	w1, #0
	bl	_ldns_native2rdf_int32
	cbz	x0, LBB0_26
; %bb.7:
	mov	x1, x0
	mov	x0, x22
	bl	_ldns_rr_push_rdf
	ldr	w0, [x26]
	mov	w1, #0
	bl	_ldns_native2rdf_int32
	cbz	x0, LBB0_26
; %bb.8:
	mov	x1, x0
	mov	x0, x22
	bl	_ldns_rr_push_rdf
	ldr	w0, [x26]
	mov	w1, #0
	bl	_ldns_native2rdf_int32
	cbz	x0, LBB0_26
; %bb.9:
	mov	x1, x0
	mov	x0, x22
	bl	_ldns_rr_push_rdf
	ldr	w0, [x26]
	mov	w1, #0
	bl	_ldns_native2rdf_int32
	cbz	x0, LBB0_26
; %bb.10:
	mov	x1, x0
	mov	x0, x22
	bl	_ldns_rr_push_rdf
	mov	x0, x24
	bl	_ldns_rdf_clone
	mov	x1, x23
	mov	x2, x21
	mov	x3, x22
	bl	_ldns_pkt_ixfr_request_new
	b	LBB0_12
LBB0_11:
	mov	x22, x3
	mov	x0, x24
	bl	_ldns_rdf_clone
	mov	x1, x22
	mov	x2, x23
	mov	x3, x21
	bl	_ldns_pkt_query_new
	mov	x22, #0
LBB0_12:
	str	x0, [x19]
	cbz	x0, LBB0_26
; %bb.13:
	mov	x0, x20
	bl	_ldns_resolver_dnssec
	cbz	x0, LBB0_19
; %bb.14:
	mov	x0, x20
	bl	_ldns_resolver_edns_udp_size
	cbnz	x0, LBB0_16
; %bb.15:
	mov	x0, x20
	mov	w1, #4096
	bl	_ldns_resolver_set_edns_udp_size
LBB0_16:
	ldr	x0, [x19]
	mov	w1, #1
	bl	_ldns_pkt_set_edns_do
	mov	x0, x20
	bl	_ldns_resolver_dnssec_cd
	cbnz	x0, LBB0_18
; %bb.17:
Lloh14:
	adrp	x8, _LDNS_CD@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LDNS_CD@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_19
LBB0_18:
	ldr	x0, [x19]
	mov	w1, #1
	bl	_ldns_pkt_set_cd
LBB0_19:
	mov	x0, x20
	bl	_ldns_resolver_edns_udp_size
	cbz	x0, LBB0_21
; %bb.20:
	ldr	x21, [x19]
	mov	x0, x20
	bl	_ldns_resolver_edns_udp_size
	mov	x1, x0
	mov	x0, x21
	bl	_ldns_pkt_set_edns_udp_size
LBB0_21:
	mov	x0, #0
	bl	_time
	mov	w2, w0
	ldr	x0, [x19]
	mov	x1, #0
	bl	_ldns_pkt_set_timestamp
	mov	x0, x20
	bl	_ldns_resolver_debug
	cbz	x0, LBB0_23
; %bb.22:
Lloh17:
	adrp	x8, _stdout@GOTPAGE
Lloh18:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldr	x1, [x19]
	bl	_ldns_pkt_print
LBB0_23:
	ldr	x0, [x19]
	bl	_ldns_pkt_id
	cbnz	x0, LBB0_25
; %bb.24:
	ldr	x0, [x19]
	bl	_ldns_pkt_set_random_id
LBB0_25:
Lloh20:
	adrp	x8, _LDNS_STATUS_OK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LDNS_STATUS_OK@GOTPAGEOFF]
	b	LBB0_28
LBB0_26:
	mov	x0, x22
	bl	_ldns_rr_free
LBB0_27:
Lloh22:
	adrp	x8, _LDNS_STATUS_ERR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _LDNS_STATUS_ERR@GOTPAGEOFF]
LBB0_28:
	ldr	x0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_IXFR,8,3          ; @LDNS_RR_TYPE_IXFR
	.comm	_LDNS_STATUS_ERR,8,3            ; @LDNS_STATUS_ERR
	.comm	_LDNS_RR_TYPE_SOA,4,2           ; @LDNS_RR_TYPE_SOA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"."

	.comm	_LDNS_STATUS_OK,8,3             ; @LDNS_STATUS_OK
	.comm	_LDNS_RDF_TYPE_INT32,4,2        ; @LDNS_RDF_TYPE_INT32
	.comm	_LDNS_CD,4,2                    ; @LDNS_CD
	.comm	_stdout,4,2                     ; @stdout
.subsections_via_symbols
