	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iter_server_selection          ## -- Begin function iter_server_selection
	.p2align	4, 0x90
_iter_server_selection:                 ## @iter_server_selection
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %eax
	movq	%rdx, %r14
	movq	%rsi, %r12
	movl	32(%rbp), %r10d
	movl	48(%rbp), %ebx
	movq	8(%rsi), %rdx
	movl	(%rdx), %r9d
	subq	$8, %rsp
	leaq	-44(%rbp), %r11
	movq	%rcx, %rdx
	movq	%r8, %rcx
	movl	%eax, %r8d
	pushq	%rbx
	pushq	40(%rbp)
	pushq	%r10
	pushq	%r11
	pushq	%r14
	callq	_iter_filter_order
	addq	$48, %rsp
	testl	%eax, %eax
	je	LBB0_25
## %bb.1:
	movl	%eax, %r15d
	movq	_VERB_ALGO@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	-44(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_verbose
	movl	-44(%rbp), %eax
	movq	_BLACKLIST_PENALTY@GOTPCREL(%rip), %r13
	movl	%eax, %ecx
	subl	(%r13), %ecx
	jle	LBB0_7
## %bb.2:
	movq	_USEFUL_SERVER_TOP_TIMEOUT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	leal	(%rax,%rax,2), %edx
	cmpl	%edx, %ecx
	jle	LBB0_4
## %bb.3:
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_verbose
	movq	24(%rbp), %rax
	movl	$1, (%rax)
	movl	-44(%rbp), %ecx
	movl	(%rbx), %eax
	subl	(%r13), %ecx
LBB0_4:
	addl	%eax, %eax
	cmpl	%eax, %ecx
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	jle	LBB0_13
## %bb.5:
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_verbose
	movq	16(%rbp), %rax
	movl	$1, (%rax)
	jmp	LBB0_13
LBB0_7:
	movq	_USEFUL_SERVER_TOP_TIMEOUT@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	leal	(%rcx,%rcx,2), %edx
	cmpl	%edx, %eax
	jle	LBB0_9
## %bb.8:
	movl	(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_verbose
	movq	24(%rbp), %rax
	movl	$1, (%rax)
	movl	-44(%rbp), %eax
	movl	(%r13), %ecx
LBB0_9:
	leal	(%rcx,%rcx), %edx
	cmpl	%edx, %eax
	jle	LBB0_11
## %bb.10:
	movl	(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_verbose
	movq	16(%rbp), %rax
	movl	$1, (%rax)
	movl	-44(%rbp), %eax
	movl	(%r13), %ecx
LBB0_11:
	cmpl	%ecx, %eax
	jne	LBB0_13
## %bb.12:
	movl	(%rbx), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_verbose
	jmp	LBB0_26
LBB0_13:
	cmpl	$1, %r15d
	jne	LBB0_17
## %bb.14:
	movq	(%r14), %rbx
	movq	(%rbx), %rax
	incq	%rax
	movq	%rax, (%rbx)
	movq	_OUTBOUND_MSG_RETRY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_26
## %bb.15:
	movq	8(%rbx), %rax
LBB0_16:
	movq	%rax, (%r14)
	jmp	LBB0_26
LBB0_17:
	setg	%al
	movzbl	%al, %edi
	callq	_log_assert
	movl	(%r12), %edi
	movl	%r15d, %esi
	callq	_ub_random_max
	movq	(%r14), %rbx
	testq	%rbx, %rbx
	setne	%dl
	xorl	%ecx, %ecx
	testl	%eax, %eax
	jle	LBB0_21
	.p2align	4, 0x90
## %bb.18:
	testq	%rbx, %rbx
	je	LBB0_21
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rcx
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	setne	%dl
	cmpl	$2, %eax
	jb	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	decl	%eax
	testq	%rbx, %rbx
	jne	LBB0_19
LBB0_21:
	testb	%dl, %dl
	je	LBB0_25
## %bb.22:
	movq	(%rbx), %rax
	incq	%rax
	movq	%rax, (%rbx)
	movq	_OUTBOUND_MSG_RETRY@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jl	LBB0_26
## %bb.23:
	movq	8(%rbx), %rax
	testq	%rcx, %rcx
	je	LBB0_16
## %bb.24:
	movq	%rax, 8(%rcx)
	jmp	LBB0_26
LBB0_25:
	xorl	%ebx, %ebx
LBB0_26:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VERB_ALGO,4,2                  ## @VERB_ALGO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"selrtt %d"

	.comm	_BLACKLIST_PENALTY,4,2          ## @BLACKLIST_PENALTY
	.comm	_USEFUL_SERVER_TOP_TIMEOUT,4,2  ## @USEFUL_SERVER_TOP_TIMEOUT
L_.str.1:                               ## @.str.1
	.asciz	"chase to blacklisted recursion lame server"

L_.str.2:                               ## @.str.2
	.asciz	"chase to blacklisted dnssec lame server"

L_.str.3:                               ## @.str.3
	.asciz	"chase to recursion lame server"

L_.str.4:                               ## @.str.4
	.asciz	"chase to dnssec lame server"

L_.str.5:                               ## @.str.5
	.asciz	"chase to blacklisted lame server"

	.comm	_OUTBOUND_MSG_RETRY,8,3         ## @OUTBOUND_MSG_RETRY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iter_server_selection          ; -- Begin function iter_server_selection
	.p2align	2
_iter_server_selection:                 ; @iter_server_selection
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x23, x7
	mov	x21, x6
	mov	x8, x5
	mov	x19, x2
	mov	x20, x1
	ldr	w9, [x29, #16]
	ldr	x10, [x29, #24]
	ldr	w11, [x29, #32]
	ldr	x12, [x1, #8]
	ldr	w5, [x12]
	str	w11, [sp, #16]
	str	x10, [sp, #8]
	add	x7, sp, #28
	str	w9, [sp]
	mov	x2, x3
	mov	x3, x4
	mov	x4, x8
	mov	x6, x19
	bl	_iter_filter_order
	cbz	w0, LBB0_24
; %bb.1:
	mov	x22, x0
Lloh0:
	adrp	x24, _VERB_ALGO@GOTPAGE
Lloh1:
	ldr	x24, [x24, _VERB_ALGO@GOTPAGEOFF]
	ldr	w0, [x24]
	ldr	w8, [sp, #28]
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_verbose
	ldr	w8, [sp, #28]
Lloh4:
	adrp	x25, _BLACKLIST_PENALTY@GOTPAGE
Lloh5:
	ldr	x25, [x25, _BLACKLIST_PENALTY@GOTPAGEOFF]
	ldr	w9, [x25]
	subs	w9, w8, w9
	b.le	LBB0_6
; %bb.2:
Lloh6:
	adrp	x26, _USEFUL_SERVER_TOP_TIMEOUT@GOTPAGE
Lloh7:
	ldr	x26, [x26, _USEFUL_SERVER_TOP_TIMEOUT@GOTPAGEOFF]
	ldr	w8, [x26]
	add	w10, w8, w8, lsl #1
	cmp	w9, w10
	b.le	LBB0_4
; %bb.3:
	ldr	w0, [x24]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_verbose
	mov	w8, #1
	str	w8, [x23]
	ldr	w9, [sp, #28]
	ldr	w10, [x25]
	ldr	w8, [x26]
	sub	w9, w9, w10
LBB0_4:
	cmp	w9, w8, lsl #1
	b.le	LBB0_12
; %bb.5:
	ldr	w0, [x24]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_verbose
	mov	w8, #1
	str	w8, [x21]
	b	LBB0_12
LBB0_6:
Lloh12:
	adrp	x25, _USEFUL_SERVER_TOP_TIMEOUT@GOTPAGE
Lloh13:
	ldr	x25, [x25, _USEFUL_SERVER_TOP_TIMEOUT@GOTPAGEOFF]
	ldr	w9, [x25]
	add	w10, w9, w9, lsl #1
	cmp	w8, w10
	b.le	LBB0_10
; %bb.7:
	ldr	w0, [x24]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_verbose
	mov	w8, #1
	str	w8, [x23]
	ldr	w8, [sp, #28]
	ldr	w9, [x25]
	cmp	w8, w9, lsl #1
	b.gt	LBB0_11
LBB0_8:
	cmp	w8, w9
	b.ne	LBB0_12
LBB0_9:
	ldr	w0, [x24]
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_verbose
	b	LBB0_24
LBB0_10:
	cmp	w8, w9, lsl #1
	b.le	LBB0_8
LBB0_11:
	ldr	w0, [x24]
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_verbose
	mov	w8, #1
	str	w8, [x21]
	ldr	w8, [sp, #28]
	ldr	w9, [x25]
	cmp	w8, w9
	b.eq	LBB0_9
LBB0_12:
	cmp	w22, #1
	b.ne	LBB0_16
; %bb.13:
	ldr	x0, [x19]
	ldr	x8, [x0]
	add	x8, x8, #1
	str	x8, [x0]
Lloh20:
	adrp	x9, _OUTBOUND_MSG_RETRY@GOTPAGE
Lloh21:
	ldr	x9, [x9, _OUTBOUND_MSG_RETRY@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_25
; %bb.14:
	ldr	x8, [x0, #8]
LBB0_15:
	str	x8, [x19]
	b	LBB0_25
LBB0_16:
	cset	w0, gt
	bl	_log_assert
	ldr	w0, [x20]
	mov	x1, x22
	bl	_ub_random_max
	mov	x8, x0
	ldr	x0, [x19]
	cmp	x0, #0
	cset	w10, ne
	cmp	w8, #1
	ccmp	x0, #0, #4, ge
	b.ne	LBB0_18
; %bb.17:
	mov	x9, #0
	b	LBB0_20
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	mov	x9, x0
	ldr	x0, [x0, #8]
	cmp	x0, #0
	cset	w10, ne
	cmp	w8, #2
	b.lo	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	sub	w8, w8, #1
	cbnz	x0, LBB0_18
LBB0_20:
	cbz	w10, LBB0_24
; %bb.21:
	ldr	x8, [x0]
	add	x8, x8, #1
	str	x8, [x0]
Lloh23:
	adrp	x10, _OUTBOUND_MSG_RETRY@GOTPAGE
Lloh24:
	ldr	x10, [x10, _OUTBOUND_MSG_RETRY@GOTPAGEOFF]
Lloh25:
	ldr	x10, [x10]
	cmp	x8, x10
	b.lt	LBB0_25
; %bb.22:
	ldr	x8, [x0, #8]
	cbz	x9, LBB0_15
; %bb.23:
	str	x8, [x9, #8]
	b	LBB0_25
LBB0_24:
	mov	x0, #0
LBB0_25:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_VERB_ALGO,4,2                  ; @VERB_ALGO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"selrtt %d"

	.comm	_BLACKLIST_PENALTY,4,2          ; @BLACKLIST_PENALTY
	.comm	_USEFUL_SERVER_TOP_TIMEOUT,4,2  ; @USEFUL_SERVER_TOP_TIMEOUT
l_.str.1:                               ; @.str.1
	.asciz	"chase to blacklisted recursion lame server"

l_.str.2:                               ; @.str.2
	.asciz	"chase to blacklisted dnssec lame server"

l_.str.3:                               ; @.str.3
	.asciz	"chase to recursion lame server"

l_.str.4:                               ; @.str.4
	.asciz	"chase to dnssec lame server"

l_.str.5:                               ; @.str.5
	.asciz	"chase to blacklisted lame server"

	.comm	_OUTBOUND_MSG_RETRY,8,3         ; @OUTBOUND_MSG_RETRY
.subsections_via_symbols
