	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function server_port_flush
_server_port_flush:                     ## @server_port_flush
	.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
	movq	%rdi, %r14
	movq	16(%rdi), %rbx
	callq	_ASSERT_LOCKED
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.1:
	leaq	L_.str(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r14), %edi
	movl	24(%rbx), %esi
	movl	(%rbx), %r9d
	movl	16(%rbx), %edx
	leaq	8(%rbx), %r8
	xorl	%ecx, %ecx
	callq	_sendto
	testl	%eax, %eax
	jns	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r14), %edi
	callq	_evutil_socket_geterror
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_EVUTIL_ERR_RW_RETRIABLE
	testq	%rax, %rax
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_EVDNS_LOG_WARN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r12d, %edi
	callq	_evutil_socket_error_to_string
	movl	%r13d, %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_log
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_server_request_free
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	cmpq	16(%r14), %rbx
	setne	%dil
	callq	_EVUTIL_ASSERT
	movq	16(%r14), %rbx
	testq	%rbx, %rbx
	jne	LBB0_2
LBB0_7:
	movq	%r14, %rdi
	callq	_event_del
	movl	4(%r14), %edx
	movl	8(%r14), %esi
	movq	_EV_READ@GOTPCREL(%rip), %rax
	movq	_EV_PERSIST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_server_port_ready_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movq	%r14, %r9
	callq	_event_assign
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_event_add
	testq	%rax, %rax
	js	LBB0_9
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_EVDNS_LOG_WARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_log                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EVDNS_LOG_WARN,4,2             ## @EVDNS_LOG_WARN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error %s (%d) while writing response to port; dropping"

	.comm	_EV_READ,4,2                    ## @EV_READ
	.comm	_EV_PERSIST,4,2                 ## @EV_PERSIST
	.comm	_server_port_ready_callback,4,2 ## @server_port_ready_callback
L_.str.1:                               ## @.str.1
	.asciz	"Error from libevent when adding event for DNS server."

	.no_dead_strip	_server_port_flush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function server_port_flush
_server_port_flush:                     ; @server_port_flush
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	ldr	x20, [x0, #16]
	bl	_ASSERT_LOCKED
	cbz	x20, LBB0_7
; %bb.1:
Lloh0:
	adrp	x24, _EVDNS_LOG_WARN@GOTPAGE
Lloh1:
	ldr	x24, [x24, _EVDNS_LOG_WARN@GOTPAGEOFF]
Lloh2:
	adrp	x21, l_.str@PAGE
Lloh3:
	add	x21, x21, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #4]
	ldr	w1, [x20, #24]
	ldr	w2, [x20, #16]
	add	x4, x20, #8
	ldr	w5, [x20]
	mov	w3, #0
	bl	_sendto
	tbz	w0, #31, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x19, #4]
	bl	_evutil_socket_geterror
	mov	x22, x0
	bl	_EVUTIL_ERR_RW_RETRIABLE
	cbnz	x0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w23, [x24]
	mov	x0, x22
	bl	_evutil_socket_error_to_string
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x0, x22, [sp]
	mov	x0, x23
	mov	x1, x21
	bl	_log
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_server_request_free
	cbnz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #16]
	cmp	x20, x8
	cset	w0, ne
	bl	_EVUTIL_ASSERT
	ldr	x20, [x19, #16]
	cbnz	x20, LBB0_2
LBB0_7:
	mov	x0, x19
	bl	_event_del
	ldp	w2, w1, [x19, #4]
Lloh4:
	adrp	x8, _EV_READ@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EV_READ@GOTPAGEOFF]
Lloh6:
	adrp	x9, _EV_PERSIST@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EV_PERSIST@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh10:
	adrp	x8, _server_port_ready_callback@GOTPAGE
Lloh11:
	ldr	x8, [x8, _server_port_ready_callback@GOTPAGEOFF]
Lloh12:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x5, x19
	bl	_event_assign
	mov	x0, x19
	mov	x1, #0
	bl	_event_add
	tbnz	x0, #63, LBB0_9
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_9:
Lloh13:
	adrp	x8, _EVDNS_LOG_WARN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EVDNS_LOG_WARN@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_log
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh8
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EVDNS_LOG_WARN,4,2             ; @EVDNS_LOG_WARN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error %s (%d) while writing response to port; dropping"

	.comm	_EV_READ,4,2                    ; @EV_READ
	.comm	_EV_PERSIST,4,2                 ; @EV_PERSIST
	.comm	_server_port_ready_callback,4,2 ; @server_port_ready_callback
l_.str.1:                               ; @.str.1
	.asciz	"Error from libevent when adding event for DNS server."

	.no_dead_strip	_server_port_flush
.subsections_via_symbols
