	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iter_filter_unsuitable
_iter_filter_unsuitable:                ## @iter_filter_unsuitable
	.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
                                        ## kill: def $r9d killed $r9d def $r9
	movq	%rcx, %rbx
	movq	16(%rbp), %rcx
	movl	$-1, %eax
	cmpq	$0, 24(%rcx)
	jne	LBB0_4
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	%r8d, -68(%rbp)                 ## 4-byte Spill
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	movl	8(%rdi), %edi
	leaq	20(%rcx), %r13
	movl	16(%rcx), %edx
	movq	%r13, %rsi
	callq	_donotq_lookup
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%rbp), %rax
	movl	16(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdx
	callq	_log_addr
LBB0_3:
	movl	$-1, %eax
LBB0_4:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	cmpl	$0, 4(%r12)
	je	LBB0_11
LBB0_6:
	cmpl	$0, (%r12)
	jne	LBB0_8
## %bb.7:
	movq	16(%rbp), %rax
	movl	16(%rax), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_addr_is_ip6
	testq	%rax, %rax
	je	LBB0_3
LBB0_8:
	movl	(%r15), %edi
	movq	16(%rbp), %r13
	movl	16(%r13), %edx
	subq	$8, %rsp
	leaq	-56(%rbp), %rax
	leaq	-48(%rbp), %r10
	leaq	-44(%rbp), %r11
	leaq	-52(%rbp), %r15
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%r14, %rcx
	movq	%rbx, %r8
	movl	-68(%rbp), %r9d                 ## 4-byte Reload
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	%rax
	pushq	%r10
	pushq	%r11
	pushq	%r15
	callq	_infra_get_lame_rtt
	addq	$48, %rsp
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:
	movq	_VERB_ALGO@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	16(%r13), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdx
	callq	_log_addr
	cmpl	$0, -52(%rbp)
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.3(%rip), %rcx
	cmoveq	%rax, %rcx
	cmpl	$0, -44(%rbp)
	leaq	L_.str.5(%rip), %r8
	cmoveq	%rax, %r8
	movl	(%rbx), %edi
	cmpl	$0, -48(%rbp)
	leaq	L_.str.6(%rip), %r9
	cmoveq	%rax, %r9
	cmpq	$0, (%r13)
	movl	-56(%rbp), %edx
	leaq	L_.str.7(%rip), %rbx
	cmoveq	%rax, %rbx
	subq	$8, %rsp
	leaq	L_.str.2(%rip), %rsi
	pushq	%rbx
	callq	_verbose
	addq	$16, %rsp
	cmpl	$0, -52(%rbp)
	jne	LBB0_3
## %bb.15:
	movl	-56(%rbp), %edx
	movq	_USEFUL_SERVER_TOP_TIMEOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %edx
	movl	$-1, %eax
	jge	LBB0_4
## %bb.16:
	cmpl	$0, -48(%rbp)
	je	LBB0_22
## %bb.17:
	leal	(%rcx,%rcx,2), %eax
	addl	%edx, %eax
	jmp	LBB0_4
LBB0_11:
	movq	16(%rbp), %rax
	movl	16(%rax), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_addr_is_ip6
	testq	%rax, %rax
	jne	LBB0_3
	jmp	LBB0_6
LBB0_13:
	cmpq	$0, 8(%r13)
	je	LBB0_19
## %bb.14:
	movq	_UNKNOWN_SERVER_NICENESS@GOTPCREL(%rip), %rdx
	movq	_USEFUL_SERVER_TOP_TIMEOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	addl	%eax, %eax
	addl	(%rdx), %eax
	jmp	LBB0_4
LBB0_19:
	movq	%r13, %r12
	cmpq	$0, (%r13)
	je	LBB0_21
## %bb.20:
	movq	_USEFUL_SERVER_TOP_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_UNKNOWN_SERVER_NICENESS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%ecx, %eax
	incl	%eax
	jmp	LBB0_4
LBB0_21:
	movq	_UNKNOWN_SERVER_NICENESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_4
LBB0_22:
	cmpl	$0, -44(%rbp)
	jne	LBB0_24
## %bb.23:
	movq	16(%rbp), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_25
LBB0_24:
	leal	(%rdx,%rcx,2), %eax
	jmp	LBB0_4
LBB0_25:
	movq	16(%rbp), %rax
	cmpq	$0, (%rax)
	je	LBB0_27
## %bb.26:
	leal	(%rdx,%rcx), %eax
	incl	%eax
	jmp	LBB0_4
LBB0_27:
	movl	%edx, %eax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_VERB_ALGO,4,2                  ## @VERB_ALGO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"skip addr on the donotquery list"

L_.str.1:                               ## @.str.1
	.asciz	"servselect"

L_.str.2:                               ## @.str.2
	.asciz	"   rtt=%d%s%s%s%s"

L_.str.3:                               ## @.str.3
	.asciz	" LAME"

L_.str.4:                               ## @.str.4
	.space	1

L_.str.5:                               ## @.str.5
	.asciz	" DNSSEC_LAME"

L_.str.6:                               ## @.str.6
	.asciz	" REC_LAME"

L_.str.7:                               ## @.str.7
	.asciz	" ADDR_LAME"

	.comm	_USEFUL_SERVER_TOP_TIMEOUT,4,2  ## @USEFUL_SERVER_TOP_TIMEOUT
	.comm	_UNKNOWN_SERVER_NICENESS,4,2    ## @UNKNOWN_SERVER_NICENESS
	.no_dead_strip	_iter_filter_unsuitable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iter_filter_unsuitable
_iter_filter_unsuitable:                ; @iter_filter_unsuitable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	ldr	x8, [x6, #24]
	cbnz	x8, LBB0_3
; %bb.1:
	mov	x19, x6
	mov	x24, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x25, x1
	mov	x26, x0
	ldr	w0, [x0, #8]
	add	x20, x6, #20
	ldr	w2, [x6, #16]
	mov	x1, x20
	bl	_donotq_lookup
	cbz	x0, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _VERB_ALGO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VERB_ALGO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w3, [x19, #16]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_log_addr
LBB0_3:
	mov	w0, #-1
LBB0_4:
	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
	add	sp, sp, #128
	ret
LBB0_5:
	ldr	w8, [x26, #4]
	cbz	w8, LBB0_13
LBB0_6:
	ldr	w8, [x26]
	cbnz	w8, LBB0_8
; %bb.7:
	ldr	w1, [x19, #16]
	mov	x0, x20
	bl	_addr_is_ip6
	cbz	x0, LBB0_3
LBB0_8:
	ldr	w0, [x25]
	ldr	w2, [x19, #16]
	str	w24, [sp, #16]
	add	x8, sp, #44
	add	x9, sp, #36
	stp	x9, x8, [sp]
	add	x6, sp, #40
	add	x7, sp, #32
	mov	x1, x20
	mov	x3, x23
	mov	x4, x22
	mov	x5, x21
	bl	_infra_get_lame_rtt
	cbz	x0, LBB0_14
; %bb.9:
Lloh5:
	adrp	x21, _VERB_ALGO@GOTPAGE
Lloh6:
	ldr	x21, [x21, _VERB_ALGO@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	w3, [x19, #16]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_log_addr
	ldr	w0, [x21]
	ldp	w10, w2, [sp, #40]
Lloh9:
	adrp	x8, l_.str.3@PAGE
Lloh10:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh11:
	adrp	x9, l_.str.4@PAGE
Lloh12:
	add	x9, x9, l_.str.4@PAGEOFF
	cmp	w10, #0
	csel	x3, x9, x8, eq
	ldr	w8, [sp, #32]
Lloh13:
	adrp	x10, l_.str.5@PAGE
Lloh14:
	add	x10, x10, l_.str.5@PAGEOFF
	cmp	w8, #0
	csel	x4, x9, x10, eq
	ldr	w8, [sp, #36]
Lloh15:
	adrp	x10, l_.str.6@PAGE
Lloh16:
	add	x10, x10, l_.str.6@PAGEOFF
	cmp	w8, #0
	csel	x5, x9, x10, eq
	ldr	x8, [x19]
Lloh17:
	adrp	x10, l_.str.7@PAGE
Lloh18:
	add	x10, x10, l_.str.7@PAGEOFF
	cmp	x8, #0
	csel	x6, x9, x10, eq
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_verbose
	ldr	w8, [sp, #40]
	cbnz	w8, LBB0_3
; %bb.10:
	ldr	w0, [sp, #44]
Lloh21:
	adrp	x8, _USEFUL_SERVER_TOP_TIMEOUT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _USEFUL_SERVER_TOP_TIMEOUT@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_3
; %bb.11:
	ldr	w9, [sp, #36]
	cbz	w9, LBB0_19
; %bb.12:
	add	w8, w8, w8, lsl #1
	add	w0, w8, w0
	b	LBB0_4
LBB0_13:
	ldr	w1, [x19, #16]
	mov	x0, x20
	bl	_addr_is_ip6
	cbnz	x0, LBB0_3
	b	LBB0_6
LBB0_14:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_16
; %bb.15:
Lloh24:
	adrp	x8, _UNKNOWN_SERVER_NICENESS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _UNKNOWN_SERVER_NICENESS@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _USEFUL_SERVER_TOP_TIMEOUT@GOTPAGE
Lloh28:
	ldr	x9, [x9, _USEFUL_SERVER_TOP_TIMEOUT@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	add	w0, w8, w9, lsl #1
	b	LBB0_4
LBB0_16:
	ldr	x8, [x19]
	cbz	x8, LBB0_18
; %bb.17:
Lloh30:
	adrp	x8, _USEFUL_SERVER_TOP_TIMEOUT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _USEFUL_SERVER_TOP_TIMEOUT@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	adrp	x9, _UNKNOWN_SERVER_NICENESS@GOTPAGE
Lloh34:
	ldr	x9, [x9, _UNKNOWN_SERVER_NICENESS@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	add	w8, w8, w9
	add	w0, w8, #1
	b	LBB0_4
LBB0_18:
Lloh36:
	adrp	x8, _UNKNOWN_SERVER_NICENESS@GOTPAGE
Lloh37:
	ldr	x8, [x8, _UNKNOWN_SERVER_NICENESS@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	b	LBB0_4
LBB0_19:
	ldr	w9, [sp, #32]
	cbnz	w9, LBB0_21
; %bb.20:
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_22
LBB0_21:
	add	w0, w0, w8, lsl #1
	b	LBB0_4
LBB0_22:
	ldr	x9, [x19]
	cbz	x9, LBB0_4
; %bb.23:
	add	w8, w0, w8
	add	w0, w8, #1
	b	LBB0_4
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_VERB_ALGO,4,2                  ; @VERB_ALGO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"skip addr on the donotquery list"

l_.str.1:                               ; @.str.1
	.asciz	"servselect"

l_.str.2:                               ; @.str.2
	.asciz	"   rtt=%d%s%s%s%s"

l_.str.3:                               ; @.str.3
	.asciz	" LAME"

l_.str.4:                               ; @.str.4
	.space	1

l_.str.5:                               ; @.str.5
	.asciz	" DNSSEC_LAME"

l_.str.6:                               ; @.str.6
	.asciz	" REC_LAME"

l_.str.7:                               ; @.str.7
	.asciz	" ADDR_LAME"

	.comm	_USEFUL_SERVER_TOP_TIMEOUT,4,2  ; @USEFUL_SERVER_TOP_TIMEOUT
	.comm	_UNKNOWN_SERVER_NICENESS,4,2    ; @UNKNOWN_SERVER_NICENESS
	.no_dead_strip	_iter_filter_unsuitable
.subsections_via_symbols
