	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function query_for_targets
_query_for_targets:                     ## @query_for_targets
	.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
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rsi), %rax
	xorl	%ebx, %ebx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	cmpq	(%rdx), %rax
	je	LBB0_26
## %bb.1:
	movl	%r8d, %r13d
	movq	%rsi, %r15
	testq	%rax, %rax
	jle	LBB0_5
## %bb.2:
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	8(%rax), %rax
	movq	_MAX_TARGET_COUNT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jle	LBB0_5
## %bb.4:
	movq	%rsp, %r12
	movq	_LDNS_MAX_DOMAINLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	incl	%eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %edi
	movq	%r14, %rsi
	callq	_dname_str
	movq	_VERB_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r15), %rax
	movq	8(%rax), %rcx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_verbose
	movq	%r12, %rsp
	jmp	LBB0_26
LBB0_5:
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	24(%r15), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_iter_mark_cycle_targets
	movq	24(%r15), %rdi
	callq	_delegpt_count_missing_targets
	movq	%rax, %r14
	cmpl	%r13d, %r14d
	movl	%r13d, %r12d
	cmovll	%r14d, %r12d
	xorl	%edi, %edi
	testl	%r13d, %r13d
	setne	%dil
	cmovsl	%r14d, %r12d
	callq	_log_assert
	testl	%r12d, %r12d
	je	LBB0_6
## %bb.7:
	xorl	%edi, %edi
	cmpl	%r14d, %r12d
	setle	%dil
	callq	_log_assert
	movq	24(%r15), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.8:
	xorl	%r13d, %r13d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	$1, (%rbx)
	decl	%r12d
	je	LBB0_23
LBB0_21:                                ##   in Loop: Header=BB0_9 Depth=1
	decl	%r14d
LBB0_22:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	24(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_23
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rbx)
	jne	LBB0_22
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	_iter_ns_probability
	testl	%eax, %eax
	je	LBB0_21
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 16(%rax)
	je	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$0, 16(%rbx)
	jne	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	4(%rbx), %r8d
	movl	8(%rbx), %ecx
	movq	_LDNS_RR_TYPE_AAAA@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	16(%r15), %eax
	subq	$8, %rsp
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	pushq	%rax
	callq	_generate_target_query
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=1
	incl	%r13d
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 8(%rax)
	je	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$0, 12(%rbx)
	jne	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	4(%rbx), %r8d
	movl	8(%rbx), %ecx
	movq	_LDNS_RR_TYPE_A@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	16(%r15), %eax
	subq	$8, %rsp
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	pushq	%rax
	callq	_generate_target_query
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_14
## %bb.19:                              ##   in Loop: Header=BB0_9 Depth=1
	incl	%r13d
	jmp	LBB0_20
LBB0_6:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movl	$1, %ebx
	jmp	LBB0_26
LBB0_23:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%r13d, (%rax)
	movl	$1, %ebx
	testl	%r13d, %r13d
	jle	LBB0_26
LBB0_25:
	movq	_module_wait_subquery@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movslq	-52(%rbp), %rdx                 ## 4-byte Folded Reload
	movq	%rax, (%rcx,%rdx,8)
LBB0_26:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_28
## %bb.27:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%r13d, (%rax)
	xorl	%ebx, %ebx
	testl	%r13d, %r13d
	jg	LBB0_25
	jmp	LBB0_26
LBB0_28:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_TARGET_COUNT,8,3           ## @MAX_TARGET_COUNT
	.comm	_LDNS_MAX_DOMAINLEN,4,2         ## @LDNS_MAX_DOMAINLEN
	.comm	_VERB_QUERY,4,2                 ## @VERB_QUERY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"request %s has exceeded the maximum number of glue fetches %d"

	.comm	_LDNS_RR_TYPE_AAAA,4,2          ## @LDNS_RR_TYPE_AAAA
	.comm	_module_wait_subquery,8,3       ## @module_wait_subquery
	.comm	_LDNS_RR_TYPE_A,4,2             ## @LDNS_RR_TYPE_A
	.no_dead_strip	_query_for_targets
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function query_for_targets
_query_for_targets:                     ; @query_for_targets
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x8, [x1]
	ldr	x9, [x2]
	cmp	x8, x9
	b.ne	LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_26
LBB0_2:
	mov	x22, x5
	mov	x25, x4
	mov	x20, x3
	mov	x23, x2
	mov	x21, x1
	mov	x19, x0
	cmp	x8, #1
	b.lt	LBB0_6
; %bb.3:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	x8, [x8, #8]
Lloh3:
	adrp	x9, _MAX_TARGET_COUNT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX_TARGET_COUNT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_6
; %bb.5:
	mov	x22, sp
Lloh6:
	adrp	x8, _LDNS_MAX_DOMAINLEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LDNS_MAX_DOMAINLEN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	add	w8, w8, #1
	mov	x9, x8
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	w0, [x19, #16]
	mov	x1, x20
	bl	_dname_str
Lloh11:
	adrp	x8, _VERB_QUERY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VERB_QUERY@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	x8, [x21, #8]
	ldr	x3, [x8, #8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_verbose
	mov	sp, x22
	mov	w0, #0
	b	LBB0_26
LBB0_6:
	ldr	x1, [x21, #24]
	mov	x0, x19
	bl	_iter_mark_cycle_targets
	ldr	x0, [x21, #24]
	bl	_delegpt_count_missing_targets
	mov	x24, x0
	cmp	w25, #0
	cset	w0, ne
	bl	_log_assert
	cmp	w24, w25
	ccmp	w25, #0, #8, ge
	csel	w25, w24, w25, lt
	cbz	w25, LBB0_22
; %bb.7:
	cmp	w25, w24
	cset	w0, le
	bl	_log_assert
	ldr	x8, [x21, #24]
	ldr	x27, [x8]
	cbz	x27, LBB0_22
; %bb.8:
	mov	w26, #0
	mov	w28, #1
	b	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_12 Depth=1
	str	w28, [x27]
	subs	w25, w25, #1
	b.eq	LBB0_23
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	sub	w24, w24, #1
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x27, [x27, #24]
	cbz	x27, LBB0_23
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x27]
	cbnz	w8, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	mov	x1, x25
	mov	x2, x24
	bl	_iter_ns_probability
	cbz	w0, LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x23, #16]
	cbz	x8, LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [x27, #16]
	cbnz	w8, LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	ldp	w4, w3, [x27, #4]
Lloh16:
	adrp	x8, _LDNS_RR_TYPE_AAAA@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LDNS_RR_TYPE_AAAA@GOTPAGEOFF]
Lloh18:
	ldr	w5, [x8]
	ldr	w6, [x21, #16]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_generate_target_query
	cbz	w0, LBB0_28
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=1
	add	w26, w26, #1
LBB0_18:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_9
; %bb.19:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [x27, #12]
	cbnz	w8, LBB0_9
; %bb.20:                               ;   in Loop: Header=BB0_12 Depth=1
	ldp	w4, w3, [x27, #4]
Lloh19:
	adrp	x8, _LDNS_RR_TYPE_A@GOTPAGE
Lloh20:
	ldr	x8, [x8, _LDNS_RR_TYPE_A@GOTPAGEOFF]
Lloh21:
	ldr	w5, [x8]
	ldr	w6, [x21, #16]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_generate_target_query
	cbz	w0, LBB0_28
; %bb.21:                               ;   in Loop: Header=BB0_12 Depth=1
	add	w26, w26, #1
	b	LBB0_9
LBB0_22:
	str	wzr, [x22]
	b	LBB0_25
LBB0_23:
	str	w26, [x22]
	cmp	w26, #1
	b.lt	LBB0_25
; %bb.24:
Lloh22:
	adrp	x8, _module_wait_subquery@GOTPAGE
Lloh23:
	ldr	x8, [x8, _module_wait_subquery@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	ldr	x9, [x19]
	str	x8, [x9, w20, sxtw #3]
LBB0_25:
	mov	w0, #1
LBB0_26:
	ldur	x8, [x29, #-88]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_30
; %bb.27:
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_28:
	str	w26, [x22]
	cmp	w26, #1
	b.lt	LBB0_1
; %bb.29:
	mov	w0, #0
Lloh28:
	adrp	x8, _module_wait_subquery@GOTPAGE
Lloh29:
	ldr	x8, [x8, _module_wait_subquery@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	ldr	x9, [x19]
	str	x8, [x9, w20, sxtw #3]
	b	LBB0_26
LBB0_30:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_TARGET_COUNT,8,3           ; @MAX_TARGET_COUNT
	.comm	_LDNS_MAX_DOMAINLEN,4,2         ; @LDNS_MAX_DOMAINLEN
	.comm	_VERB_QUERY,4,2                 ; @VERB_QUERY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"request %s has exceeded the maximum number of glue fetches %d"

	.comm	_LDNS_RR_TYPE_AAAA,4,2          ; @LDNS_RR_TYPE_AAAA
	.comm	_module_wait_subquery,8,3       ; @module_wait_subquery
	.comm	_LDNS_RR_TYPE_A,4,2             ; @LDNS_RR_TYPE_A
	.no_dead_strip	_query_for_targets
.subsections_via_symbols
