	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nameserver_failed
_nameserver_failed:                     ## @nameserver_failed
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	24(%rdi), %r14
	movq	%r14, %rdi
	callq	_ASSERT_LOCKED
	cmpq	$0, 16(%r13)
	je	LBB0_16
## %bb.1:
	movq	_EVDNS_LOG_MSG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	4(%r13), %r15
	leaq	-176(%rbp), %rsi
	movq	%r15, %rdi
	movl	$128, %edx
	callq	_evutil_format_sockaddr_port_
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_log
	movq	(%r14), %rax
	leaq	-1(%rax), %rcx
	movq	%rcx, (%r14)
	xorl	%edi, %edi
	testq	%rax, %rax
	setg	%dil
	callq	_EVUTIL_ASSERT
	cmpq	$0, (%r14)
	jne	LBB0_3
## %bb.2:
	movq	_EVDNS_LOG_MSG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_log
LBB0_3:
	movq	$0, 16(%r13)
	movl	$1, (%r13)
	leaq	8(%r13), %rdi
	leaq	24(%r14), %rsi
	callq	_evtimer_add
	testq	%rax, %rax
	jns	LBB0_5
## %bb.4:
	movq	_EVDNS_LOG_WARN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	-176(%rbp), %rsi
	movq	%r15, %rdi
	movl	$128, %edx
	callq	_evutil_format_sockaddr_port_
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_log
LBB0_5:
	cmpq	$0, (%r14)
	je	LBB0_16
## %bb.6:
	movl	8(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_16
## %bb.7:
	xorl	%r15d, %r15d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	8(%r14), %eax
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r15
	movslq	%eax, %rcx
	cmpq	%rcx, %r15
	jge	LBB0_16
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	16(%r14), %rcx
	movq	(%rcx,%r15,8), %r12
	testq	%r12, %r12
	je	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%r12, %rbx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	8(%rbx), %rbx
	cmpq	%r12, %rbx
	je	LBB0_14
LBB0_10:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	$0, (%rbx)
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	cmpq	%r13, 16(%rbx)
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	%r14, %rdi
	callq	_nameserver_pick
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_request_swap_ns
	jmp	LBB0_13
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EVDNS_LOG_MSG,4,2              ## @EVDNS_LOG_MSG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Nameserver %s has failed: %s"

L_.str.1:                               ## @.str.1
	.asciz	"All nameservers have failed"

	.comm	_EVDNS_LOG_WARN,4,2             ## @EVDNS_LOG_WARN
L_.str.2:                               ## @.str.2
	.asciz	"Error from libevent when adding timer event for %s"

	.no_dead_strip	_nameserver_failed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nameserver_failed
_nameserver_failed:                     ; @nameserver_failed
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x20, [x0, #24]
	mov	x0, x20
	bl	_ASSERT_LOCKED
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_16
; %bb.1:
Lloh3:
	adrp	x24, _EVDNS_LOG_MSG@GOTPAGE
Lloh4:
	ldr	x24, [x24, _EVDNS_LOG_MSG@GOTPAGEOFF]
	ldr	w23, [x24]
	add	x21, x19, #4
	add	x1, sp, #24
	mov	x0, x21
	mov	w2, #128
	bl	_evutil_format_sockaddr_port_
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x0, x22, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_log
	ldr	x8, [x20]
	sub	x9, x8, #1
	str	x9, [x20]
	cmp	x8, #0
	cset	w0, gt
	bl	_EVUTIL_ASSERT
	ldr	x8, [x20]
	cbnz	x8, LBB0_3
; %bb.2:
	ldr	w0, [x24]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_log
LBB0_3:
	str	xzr, [x19, #16]
	mov	w8, #1
	str	w8, [x19]
	add	x0, x19, #8
	add	x1, x20, #24
	bl	_evtimer_add
	tbz	x0, #63, LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _EVDNS_LOG_WARN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EVDNS_LOG_WARN@GOTPAGEOFF]
Lloh11:
	ldr	w22, [x8]
	add	x1, sp, #24
	mov	x0, x21
	mov	w2, #128
	bl	_evutil_format_sockaddr_port_
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_log
LBB0_5:
	ldr	x8, [x20]
	cbz	x8, LBB0_16
; %bb.6:
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.7:
	mov	x22, #0
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x20, #8]
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x22, x22, #1
	cmp	x22, w8, sxtw
	b.ge	LBB0_16
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	ldr	x9, [x20, #16]
	ldr	x23, [x9, x22, lsl #3]
	cbz	x23, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x21, x23
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	x21, [x21, #8]
	cmp	x21, x23
	b.eq	LBB0_8
LBB0_13:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x21]
	cbnz	x8, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	x8, [x21, #16]
	cmp	x8, x19
	b.ne	LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=2
	mov	x0, x20
	bl	_nameserver_pick
	mov	x1, x0
	mov	x0, x21
	bl	_request_swap_ns
	b	LBB0_12
LBB0_16:
	ldur	x8, [x29, #-56]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EVDNS_LOG_MSG,4,2              ; @EVDNS_LOG_MSG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Nameserver %s has failed: %s"

l_.str.1:                               ; @.str.1
	.asciz	"All nameservers have failed"

	.comm	_EVDNS_LOG_WARN,4,2             ; @EVDNS_LOG_WARN
l_.str.2:                               ; @.str.2
	.asciz	"Error from libevent when adding timer event for %s"

	.no_dead_strip	_nameserver_failed
.subsections_via_symbols
