	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_resolver_search_status    ## -- Begin function ldns_resolver_search_status
	.p2align	4, 0x90
_ldns_resolver_search_status:           ## @ldns_resolver_search_status
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r13d
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_LDNS_STATUS_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	$1, -96(%rbp)
	movq	_LDNS_RDF_TYPE_DNAME@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, -88(%rbp)
	leaq	L_.str(%rip), %rax
	movl	%eax, -80(%rbp)
	movq	%rdx, %rdi
	callq	_ldns_dname_absolute
	testq	%rax, %rax
	je	LBB0_1
## %bb.14:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movl	%r13d, %ecx
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ldns_resolver_query_status     ## TAILCALL
LBB0_1:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_ldns_resolver_dnsrch
	testq	%rax, %rax
	je	LBB0_13
## %bb.2:
	movq	%rbx, %rdi
	callq	_ldns_resolver_searchlist
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_ldns_resolver_searchlist_count
	xorl	%r13d, %r13d
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	callq	_ldns_pkt_free
	movq	$0, (%r14)
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	movq	%rbx, %rdi
	callq	_ldns_resolver_searchlist_count
	cmpq	%rax, %r13
	ja	LBB0_13
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_ldns_resolver_searchlist_count
	cmpq	%rax, %r13
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	leaq	-96(%rbp), %rsi
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r13,8), %rsi
	movq	%r12, %rdi
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	callq	_ldns_dname_cat_clone
	movq	%rax, %r12
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	callq	_ldns_resolver_query_status
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_ldns_rdf_free
	testq	%r14, %r14
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_LDNS_STATUS_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	callq	_ldns_pkt_get_rcode
	movq	_LDNS_RCODE_NOERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %rdi
	jmp	LBB0_11
LBB0_15:
	movq	_LDNS_STATUS_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
LBB0_13:
	movq	%r15, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_STATUS_OK,8,3             ## @LDNS_STATUS_OK
	.comm	_LDNS_RDF_TYPE_DNAME,4,2        ## @LDNS_RDF_TYPE_DNAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_LDNS_RCODE_NOERROR,8,3         ## @LDNS_RCODE_NOERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_resolver_search_status    ; -- Begin function ldns_resolver_search_status
	.p2align	2
_ldns_resolver_search_status:           ; @ldns_resolver_search_status
	.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	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
Lloh0:
	adrp	x9, _LDNS_STATUS_OK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LDNS_STATUS_OK@GOTPAGEOFF]
	mov	w8, #1
	str	w8, [sp, #8]
Lloh2:
	adrp	x8, _LDNS_RDF_TYPE_DNAME@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LDNS_RDF_TYPE_DNAME@GOTPAGEOFF]
Lloh4:
	ldr	x26, [x9]
Lloh5:
	ldrsw	x8, [x8]
	str	x8, [sp, #16]
Lloh6:
	adrp	x8, l_.str@PAGE
Lloh7:
	add	x8, x8, l_.str@PAGEOFF
	str	w8, [sp, #24]
	mov	x0, x2
	bl	_ldns_dname_absolute
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	mov	x5, x19
	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
	b	_ldns_resolver_query_status
LBB0_2:
	mov	x0, x23
	bl	_ldns_resolver_dnsrch
	cbz	x0, LBB0_15
; %bb.3:
	mov	x0, x23
	bl	_ldns_resolver_searchlist
	mov	x25, x0
	mov	x0, x23
	bl	_ldns_resolver_searchlist_count
	mov	x28, #0
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	bl	_ldns_pkt_free
	str	xzr, [x24]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x28, x28, #1
	mov	x0, x23
	bl	_ldns_resolver_searchlist_count
	cmp	x28, x0
	b.hi	LBB0_15
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_ldns_resolver_searchlist_count
	cmp	x28, x0
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x1, sp, #8
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [x25, x28, lsl #3]
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_ldns_dname_cat_clone
	mov	x27, x0
	mov	x0, x24
	mov	x1, x23
	mov	x2, x27
	mov	x3, x21
	mov	x4, x20
	mov	x5, x19
	bl	_ldns_resolver_query_status
	mov	x26, x0
	mov	x0, x27
	bl	_ldns_rdf_free
	cbz	x24, LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x24]
	cbz	x0, LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh8:
	adrp	x8, _LDNS_STATUS_OK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LDNS_STATUS_OK@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x26, x8
	b.ne	LBB0_4
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	bl	_ldns_pkt_get_rcode
Lloh11:
	adrp	x8, _LDNS_RCODE_NOERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LDNS_RCODE_NOERROR@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x24]
	b	LBB0_4
LBB0_14:
Lloh14:
	adrp	x8, _LDNS_STATUS_OK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LDNS_STATUS_OK@GOTPAGEOFF]
Lloh16:
	ldr	x26, [x8]
LBB0_15:
	mov	x0, x26
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_STATUS_OK,8,3             ; @LDNS_STATUS_OK
	.comm	_LDNS_RDF_TYPE_DNAME,4,2        ; @LDNS_RDF_TYPE_DNAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_LDNS_RCODE_NOERROR,8,3         ; @LDNS_RCODE_NOERROR
.subsections_via_symbols
