	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nameserver_read
_nameserver_read:                       ## @nameserver_read
	.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
	movl	$6152, %eax                     ## imm = 0x1808
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$4, -6188(%rbp)
	movl	(%rdi), %edi
	callq	_ASSERT_LOCKED
	movl	20(%rbx), %edi
	leaq	-6048(%rbp), %rsi
	leaq	-6184(%rbp), %r8
	leaq	-6188(%rbp), %r9
	movl	$6000, %edx                     ## imm = 0x1770
	xorl	%ecx, %ecx
	callq	_recvfrom
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movl	%eax, %r13d
	leaq	16(%rbx), %r14
	leaq	-6184(%rbp), %r15
	leaq	-6048(%rbp), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_evutil_sockaddr_cmp
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, 8(%rbx)
	movl	(%rbx), %edi
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_reply_parse
	movl	20(%rbx), %edi
	movq	%r12, %rsi
	movl	$6000, %edx                     ## imm = 0x1770
	xorl	%ecx, %ecx
	movq	%r15, %r8
	leaq	-6188(%rbp), %r9
	callq	_recvfrom
	movl	%eax, %r13d
	testl	%eax, %eax
	jns	LBB0_2
LBB0_5:
	movl	20(%rbx), %edi
	callq	_evutil_socket_geterror
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_EVUTIL_ERR_RW_RETRIABLE
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movl	%r14d, %edi
	callq	_evutil_socket_error_to_string
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_nameserver_failed
	jmp	LBB0_7
LBB0_3:
	movq	_EVDNS_LOG_WARN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	-6184(%rbp), %rdi
	leaq	-6176(%rbp), %rsi
	movl	$128, %edx
	callq	_evutil_format_sockaddr_port_
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_log
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	addq	$6152, %rsp                     ## imm = 0x1808
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EVDNS_LOG_WARN,4,2             ## @EVDNS_LOG_WARN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Address mismatch on received DNS packet.  Apparent source was %s"

	.no_dead_strip	_nameserver_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nameserver_read
_nameserver_read:                       ; @nameserver_read
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	w9, #6160
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #2064
	mov	x19, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	mov	w8, #4
	str	w8, [sp, #12]
	ldr	w0, [x0]
	bl	_ASSERT_LOCKED
	ldr	w0, [x19, #20]
	add	x1, sp, #152
	add	x4, sp, #16
	add	x5, sp, #12
	mov	w2, #6000
	mov	w3, #0
	bl	_recvfrom
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	x21, x0
	add	x20, x19, #16
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #16
	mov	x1, x20
	mov	w2, #0
	bl	_evutil_sockaddr_cmp
	cbnz	x0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	str	xzr, [x19, #8]
	ldr	w0, [x19]
	add	x1, sp, #152
	mov	x2, x21
	bl	_reply_parse
	ldr	w0, [x19, #20]
	add	x1, sp, #152
	add	x4, sp, #16
	add	x5, sp, #12
	mov	w2, #6000
	mov	w3, #0
	bl	_recvfrom
	mov	x21, x0
	tbz	w0, #31, LBB0_2
LBB0_4:
	ldr	w0, [x19, #20]
	bl	_evutil_socket_geterror
	mov	x20, x0
	bl	_EVUTIL_ERR_RW_RETRIABLE
	cbnz	x0, LBB0_7
; %bb.5:
	mov	x0, x20
	bl	_evutil_socket_error_to_string
	mov	x1, x0
	mov	x0, x19
	bl	_nameserver_failed
	b	LBB0_7
LBB0_6:
Lloh5:
	adrp	x8, _EVDNS_LOG_WARN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EVDNS_LOG_WARN@GOTPAGEOFF]
Lloh7:
	ldr	w19, [x8]
	add	x0, sp, #16
	add	x1, sp, #24
	mov	w2, #128
	bl	_evutil_format_sockaddr_port_
	mov	x2, x0
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_log
LBB0_7:
	ldur	x8, [x29, #-40]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #2064
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EVDNS_LOG_WARN,4,2             ; @EVDNS_LOG_WARN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Address mismatch on received DNS packet.  Apparent source was %s"

	.no_dead_strip	_nameserver_read
.subsections_via_symbols
