	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dosoa
_dosoa:                                 ## @dosoa
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ecx
	movq	%rdi, %r13
	leaq	-72(%rbp), %rdx
	movl	$1, %r8d
	callq	_search
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_18
## %bb.1:
	movq	-72(%rbp), %rdi
	callq	_ldns_pkt_answer
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_ldns_rr_list_rr_count
	movq	%rax, %r15
	leaq	(,%rax,8), %rdi
	callq	_alloca
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%r15, %r15
	je	LBB0_19
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	cmpq	%r12, %r15
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_ldns_rr_list_rr
	movq	%rax, %rdi
	callq	_ldns_rr_ns_nsdname
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_LDNS_RR_CLASS_IN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r13, %rdi
	movq	%rax, %rsi
	xorl	%ecx, %ecx
	callq	_ldns_get_rr_list_addr_by_name
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	jmp	LBB0_5
LBB0_6:
	movq	_o_print_pkt_server@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_o_recursive@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_LDNS_RR_TYPE_SOA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_o_rrtype@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.7:
	xorl	%r15d, %r15d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r15
	cmpq	-56(%rbp), %r15                 ## 8-byte Folded Reload
	je	LBB0_18
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r15,8), %rdi
	callq	_ldns_rr_list_rr_count
	testq	%rax, %rax
	je	LBB0_17
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, %r12
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=2
	incq	%rbx
	cmpq	%rbx, %r12
	je	LBB0_17
LBB0_10:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	callq	_ldns_resolver_remove_nameservers
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r15,8), %rdi
	movq	%rbx, %rsi
	callq	_ldns_rr_list_rr
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_ldns_resolver_ip6
	movq	_LDNS_RESOLV_INET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	%r14, %rdi
	callq	_ldns_rr_get_type
	movq	_LDNS_RR_TYPE_AAAA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_16
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	%r13, %rdi
	callq	_ldns_resolver_ip6
	movq	_LDNS_RESOLV_INET6@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	%r14, %rdi
	callq	_ldns_rr_get_type
	movq	_LDNS_RR_TYPE_A@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_16
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_ldns_resolver_push_nameserver_rr
	movq	_LDNS_STATUS_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_doquery
	jmp	LBB0_16
LBB0_19:
	movq	_o_print_pkt_server@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_o_recursive@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_LDNS_RR_TYPE_SOA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_o_rrtype@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_18:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RR_CLASS_IN,4,2           ## @LDNS_RR_CLASS_IN
	.comm	_o_print_pkt_server,4,2         ## @o_print_pkt_server
	.comm	_o_recursive,4,2                ## @o_recursive
	.comm	_LDNS_RR_TYPE_SOA,4,2           ## @LDNS_RR_TYPE_SOA
	.comm	_o_rrtype,4,2                   ## @o_rrtype
	.comm	_LDNS_RESOLV_INET,8,3           ## @LDNS_RESOLV_INET
	.comm	_LDNS_RR_TYPE_AAAA,8,3          ## @LDNS_RR_TYPE_AAAA
	.comm	_LDNS_RESOLV_INET6,8,3          ## @LDNS_RESOLV_INET6
	.comm	_LDNS_RR_TYPE_A,8,3             ## @LDNS_RR_TYPE_A
	.comm	_LDNS_STATUS_OK,8,3             ## @LDNS_STATUS_OK
	.no_dead_strip	_dosoa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dosoa
_dosoa:                                 ; @dosoa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x3, x2
	mov	x19, x0
	add	x2, sp, #24
	mov	w4, #1
	bl	_search
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	cbz	x0, LBB0_19
; %bb.1:
	ldr	x0, [sp, #24]
	bl	_ldns_pkt_answer
	mov	x22, x0
	bl	_ldns_rr_list_rr_count
	mov	x23, x0
	lsl	x0, x0, #3
	bl	_alloca
	cbz	x23, LBB0_18
; %bb.2:
	mov	x21, x0
	mov	x25, #0
	mov	x24, #0
Lloh0:
	adrp	x20, _LDNS_RR_CLASS_IN@GOTPAGE
Lloh1:
	ldr	x20, [x20, _LDNS_RR_CLASS_IN@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	cmp	x23, x24
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x24
	bl	_ldns_rr_list_rr
	bl	_ldns_rr_ns_nsdname
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x0
	ldr	w2, [x20]
	mov	x0, x19
	mov	w3, #0
	bl	_ldns_get_rr_list_addr_by_name
	str	x0, [x21, x25, lsl #3]
	add	x25, x25, #1
	b	LBB0_3
LBB0_6:
Lloh2:
	adrp	x8, _o_print_pkt_server@GOTPAGE
Lloh3:
	ldr	x8, [x8, _o_print_pkt_server@GOTPAGEOFF]
Lloh4:
	str	wzr, [x8]
Lloh5:
	adrp	x8, _o_recursive@GOTPAGE
Lloh6:
	ldr	x8, [x8, _o_recursive@GOTPAGEOFF]
Lloh7:
	str	wzr, [x8]
Lloh8:
	adrp	x8, _LDNS_RR_TYPE_SOA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LDNS_RR_TYPE_SOA@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _o_rrtype@GOTPAGE
Lloh12:
	ldr	x9, [x9, _o_rrtype@GOTPAGEOFF]
Lloh13:
	str	w8, [x9]
	str	x25, [sp, #8]                   ; 8-byte Folded Spill
	cbz	x25, LBB0_19
; %bb.7:
	mov	x26, #0
Lloh14:
	adrp	x27, _LDNS_RESOLV_INET@GOTPAGE
Lloh15:
	ldr	x27, [x27, _LDNS_RESOLV_INET@GOTPAGEOFF]
Lloh16:
	adrp	x28, _LDNS_RR_TYPE_AAAA@GOTPAGE
Lloh17:
	ldr	x28, [x28, _LDNS_RR_TYPE_AAAA@GOTPAGEOFF]
Lloh18:
	adrp	x25, _LDNS_RESOLV_INET6@GOTPAGE
Lloh19:
	ldr	x25, [x25, _LDNS_RESOLV_INET6@GOTPAGEOFF]
Lloh20:
	adrp	x20, _LDNS_STATUS_OK@GOTPAGE
Lloh21:
	ldr	x20, [x20, _LDNS_STATUS_OK@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x26, x26, #1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x26, x8
	b.eq	LBB0_19
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	ldr	x0, [x21, x26, lsl #3]
	bl	_ldns_rr_list_rr_count
	cbz	x0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x22, x0
	mov	x23, #0
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	add	x23, x23, #1
	cmp	x22, x23
	b.eq	LBB0_8
LBB0_12:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	bl	_ldns_resolver_remove_nameservers
	ldr	x0, [x21, x26, lsl #3]
	mov	x1, x23
	bl	_ldns_rr_list_rr
	mov	x24, x0
	mov	x0, x19
	bl	_ldns_resolver_ip6
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	mov	x0, x24
	bl	_ldns_rr_get_type
	ldr	x8, [x28]
	cmp	x0, x8
	b.eq	LBB0_11
LBB0_14:                                ;   in Loop: Header=BB0_12 Depth=2
	mov	x0, x19
	bl	_ldns_resolver_ip6
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=2
	mov	x0, x24
	bl	_ldns_rr_get_type
Lloh22:
	adrp	x8, _LDNS_RR_TYPE_A@GOTPAGE
Lloh23:
	ldr	x8, [x8, _LDNS_RR_TYPE_A@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_11
LBB0_16:                                ;   in Loop: Header=BB0_12 Depth=2
	mov	x0, x19
	mov	x1, x24
	bl	_ldns_resolver_push_nameserver_rr
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=2
	mov	x0, x19
	ldr	x1, [sp, #16]                   ; 8-byte Folded Reload
	bl	_doquery
	b	LBB0_11
LBB0_18:
Lloh25:
	adrp	x8, _o_print_pkt_server@GOTPAGE
Lloh26:
	ldr	x8, [x8, _o_print_pkt_server@GOTPAGEOFF]
Lloh27:
	str	wzr, [x8]
Lloh28:
	adrp	x8, _o_recursive@GOTPAGE
Lloh29:
	ldr	x8, [x8, _o_recursive@GOTPAGEOFF]
Lloh30:
	str	wzr, [x8]
Lloh31:
	adrp	x8, _LDNS_RR_TYPE_SOA@GOTPAGE
Lloh32:
	ldr	x8, [x8, _LDNS_RR_TYPE_SOA@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _o_rrtype@GOTPAGE
Lloh35:
	ldr	x9, [x9, _o_rrtype@GOTPAGEOFF]
Lloh36:
	str	w8, [x9]
LBB0_19:
	mov	w0, #0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotStr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotStr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotStr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_CLASS_IN,4,2           ; @LDNS_RR_CLASS_IN
	.comm	_o_print_pkt_server,4,2         ; @o_print_pkt_server
	.comm	_o_recursive,4,2                ; @o_recursive
	.comm	_LDNS_RR_TYPE_SOA,4,2           ; @LDNS_RR_TYPE_SOA
	.comm	_o_rrtype,4,2                   ; @o_rrtype
	.comm	_LDNS_RESOLV_INET,8,3           ; @LDNS_RESOLV_INET
	.comm	_LDNS_RR_TYPE_AAAA,8,3          ; @LDNS_RR_TYPE_AAAA
	.comm	_LDNS_RESOLV_INET6,8,3          ; @LDNS_RESOLV_INET6
	.comm	_LDNS_RR_TYPE_A,8,3             ; @LDNS_RR_TYPE_A
	.comm	_LDNS_STATUS_OK,8,3             ; @LDNS_STATUS_OK
	.no_dead_strip	_dosoa
.subsections_via_symbols
