	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dispatch                       ## -- Begin function dispatch
	.p2align	4, 0x90
_dispatch:                              ## @dispatch
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_protocols@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%ecx, %ecx
	testq	%rax, %rax
	je	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ecx
	movq	16(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_1
LBB0_3:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leal	(,%rcx,4), %eax
	leal	(%rax,%rax,2), %edi
	callq	_malloc
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_error
LBB0_5:
	movq	%r15, %rax
	addq	$4, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_timeouts@GOTPCREL(%rip), %r14
	movq	_POLLIN@GOTPCREL(%rip), %r8
	movq	_free_timeouts@GOTPCREL(%rip), %r12
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_interfaces_invalidated@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##     Child Loop BB0_13 Depth 2
                                        ##     Child Loop BB0_26 Depth 2
	movq	(%r14), %rbx
	movl	$-1, %r13d
	testq	%rbx, %rbx
	je	LBB0_11
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx), %rax
	movq	_cur_time@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jg	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	8(%rbx), %rax
	movq	%rax, (%r14)
	movl	16(%rbx), %edi
	callq	*24(%rbx)
	movq	(%r12), %rax
	movq	%rax, 8(%rbx)
	movq	%rbx, (%r12)
	movq	(%r14), %rbx
	testq	%rbx, %rbx
	jne	LBB0_7
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	subl	%ecx, %eax
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	imulq	$274877907, %rcx, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$38, %rcx
	addl	%edx, %ecx
	cmpl	%eax, %ecx
	cmovgel	%eax, %ecx
	imull	$1000, %ecx, %r13d              ## imm = 0x3E8
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_POLLIN@GOTPCREL(%rip), %r8
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_protocols@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=2
	movq	16(%rax), %rax
	testq	%rax, %rax
	je	LBB0_17
LBB0_13:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	cmpq	$0, (%rsi)
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=2
	movl	24(%rax), %esi
	movslq	%edx, %rdx
	leaq	(%rdx,%rdx,2), %rdi
	movl	%esi, 8(%r15,%rdi,4)
	movl	(%r8), %esi
	movl	%esi, (%r15,%rdi,4)
	movl	$0, 4(%r15,%rdi,4)
	incl	%edx
	xorl	%esi, %esi
	movq	_got_one@GOTPCREL(%rip), %rdi
	cmpq	%rdi, (%rax)
	sete	%sil
	addl	%esi, %ecx
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	testl	%ecx, %ecx
	jne	LBB0_19
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	_error
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r13d, %edx
	callq	_poll
	cmpl	$-1, %eax
	jne	LBB0_24
## %bb.20:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_EINTR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str.2(%rip), %rdi
	callq	_error
LBB0_24:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_cur_time@GOTPCREL(%rip), %rdi
	callq	_time
	movq	_protocols@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	movq	_POLLIN@GOTPCREL(%rip), %r8
	movq	_POLLHUP@GOTPCREL(%rip), %rdx
	je	LBB0_33
## %bb.25:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_26 Depth=2
	movq	%rbx, %rdi
	callq	*%rcx
	movq	_POLLHUP@GOTPCREL(%rip), %rdx
	movq	_POLLIN@GOTPCREL(%rip), %r8
LBB0_31:                                ##   in Loop: Header=BB0_26 Depth=2
	movq	_interfaces_invalidated@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_33
LBB0_32:                                ##   in Loop: Header=BB0_26 Depth=2
	movq	16(%rbx), %rbx
	addq	$12, %r13
	testq	%rbx, %rbx
	je	LBB0_33
LBB0_26:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rdx), %eax
	orl	(%r8), %eax
	testl	%eax, (%r13)
	je	LBB0_32
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=2
	movq	8(%rbx), %rax
	movl	$0, (%r13)
	testq	%rax, %rax
	je	LBB0_31
## %bb.28:                              ##   in Loop: Header=BB0_26 Depth=2
	movq	(%rbx), %rcx
	cmpq	_got_one@GOTPCREL(%rip), %rcx
	jne	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_26 Depth=2
	cmpq	$0, (%rax)
	jne	LBB0_31
	jmp	LBB0_30
LBB0_22:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_cur_time@GOTPCREL(%rip), %rdi
	callq	_time
	movq	_POLLIN@GOTPCREL(%rip), %r8
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_protocols,8,3                  ## @protocols
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't allocate poll structures."

	.comm	_timeouts,8,3                   ## @timeouts
	.comm	_cur_time,8,3                   ## @cur_time
	.comm	_free_timeouts,8,3              ## @free_timeouts
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_POLLIN,4,2                     ## @POLLIN
L_.str.1:                               ## @.str.1
	.asciz	"No live interfaces to poll on - exiting."

	.comm	_errno,8,3                      ## @errno
	.comm	_EAGAIN,8,3                     ## @EAGAIN
	.comm	_EINTR,8,3                      ## @EINTR
L_.str.2:                               ## @.str.2
	.asciz	"poll: %m"

	.comm	_POLLHUP,4,2                    ## @POLLHUP
	.comm	_interfaces_invalidated,8,3     ## @interfaces_invalidated
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dispatch                       ; -- Begin function dispatch
	.p2align	2
_dispatch:                              ; @dispatch
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _protocols@GOTPAGE
Lloh1:
	ldr	x8, [x8, _protocols@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
	mov	w9, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w9, w9, #1
	ldr	x8, [x8, #16]
	cbnz	x8, LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w9, #0
LBB0_4:
	str	w9, [sp, #12]                   ; 4-byte Folded Spill
	add	w8, w9, w9, lsl #1
	lsl	w0, w8, #2
	bl	_malloc
	mov	x20, x0
	cbnz	x0, LBB0_6
; %bb.5:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
LBB0_6:
Lloh5:
	adrp	x26, _timeouts@GOTPAGE
Lloh6:
	ldr	x26, [x26, _timeouts@GOTPAGEOFF]
Lloh7:
	adrp	x22, _cur_time@GOTPAGE
Lloh8:
	ldr	x22, [x22, _cur_time@GOTPAGEOFF]
Lloh9:
	adrp	x27, _interfaces_invalidated@GOTPAGE
Lloh10:
	ldr	x27, [x27, _interfaces_invalidated@GOTPAGEOFF]
Lloh11:
	adrp	x28, _POLLIN@GOTPAGE
Lloh12:
	ldr	x28, [x28, _POLLIN@GOTPAGEOFF]
	add	x8, x20, #4
	str	x8, [sp]                        ; 8-byte Folded Spill
Lloh13:
	adrp	x21, _POLLHUP@GOTPAGE
Lloh14:
	ldr	x21, [x21, _POLLHUP@GOTPAGEOFF]
Lloh15:
	adrp	x25, _got_one@GOTPAGE
Lloh16:
	ldr	x25, [x25, _got_one@GOTPAGEOFF]
Lloh17:
	adrp	x19, _free_timeouts@GOTPAGE
Lloh18:
	ldr	x19, [x19, _free_timeouts@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	str	xzr, [x27]
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
                                        ;     Child Loop BB0_30 Depth 2
	ldr	x23, [x26]
	cbz	x23, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x23]
	ldr	x9, [x22]
	cmp	x8, x9
	b.gt	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x23, #8]
	str	x8, [x26]
	ldr	x8, [x23, #24]
	ldr	w0, [x23, #16]
	blr	x8
	ldr	x8, [x19]
	str	x8, [x23, #8]
	str	x23, [x19]
	b	LBB0_8
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w24, #-1
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	sub	w8, w8, w9
Lloh19:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh20:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
Lloh21:
	ldrsw	x9, [x9]
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	mul	x9, x9, x10
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w10
	cmp	w9, w8
	csel	w8, w9, w8, lt
	mov	w9, #1000
	mul	w24, w8, w9
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
Lloh22:
	adrp	x8, _protocols@GOTPAGE
Lloh23:
	ldr	x8, [x8, _protocols@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	mov	w13, #12
	cbz	x8, LBB0_20
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	w9, #0
	mov	w10, #0
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=2
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_19
LBB0_16:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x11, [x8, #8]
	cbz	x11, LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
	ldr	x11, [x11]
	cbnz	x11, LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=2
	ldr	w11, [x8, #24]
	smaddl	x12, w10, w13, x20
	str	w11, [x12, #8]
	ldr	w11, [x28]
	stp	w11, wzr, [x12]
	add	w10, w10, #1
	ldr	x11, [x8]
	cmp	x11, x25
	cinc	w9, w9, eq
	b	LBB0_15
LBB0_19:                                ;   in Loop: Header=BB0_8 Depth=1
	cbnz	w9, LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_8 Depth=1
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_error
LBB0_21:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	mov	x2, x24
	bl	_poll
	cmn	w0, #1
	b.ne	LBB0_25
; %bb.22:                               ;   in Loop: Header=BB0_8 Depth=1
Lloh27:
	adrp	x8, _errno@GOTPAGE
Lloh28:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
Lloh30:
	adrp	x9, _EAGAIN@GOTPAGE
Lloh31:
	ldr	x9, [x9, _EAGAIN@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
Lloh33:
	adrp	x10, _EINTR@GOTPAGE
Lloh34:
	ldr	x10, [x10, _EINTR@GOTPAGEOFF]
Lloh35:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x22
	bl	_time
	b	LBB0_8
LBB0_24:                                ;   in Loop: Header=BB0_8 Depth=1
Lloh36:
	adrp	x0, l_.str.2@PAGE
Lloh37:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_error
LBB0_25:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x22
	bl	_time
Lloh38:
	adrp	x8, _protocols@GOTPAGE
Lloh39:
	ldr	x8, [x8, _protocols@GOTPAGEOFF]
Lloh40:
	ldr	x24, [x8]
	cbz	x24, LBB0_7
; %bb.26:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x23, [sp]                       ; 8-byte Folded Reload
	b	LBB0_30
LBB0_27:                                ;   in Loop: Header=BB0_30 Depth=2
	mov	x0, x24
	blr	x9
LBB0_28:                                ;   in Loop: Header=BB0_30 Depth=2
	ldr	x8, [x27]
	cbnz	x8, LBB0_7
LBB0_29:                                ;   in Loop: Header=BB0_30 Depth=2
	ldr	x24, [x24, #16]
	add	x23, x23, #12
	cbz	x24, LBB0_7
LBB0_30:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x23]
	ldr	w9, [x28]
	ldr	w10, [x21]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_29
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=2
	ldr	x8, [x24, #8]
	str	wzr, [x23]
	cbz	x8, LBB0_28
; %bb.32:                               ;   in Loop: Header=BB0_30 Depth=2
	ldr	x9, [x24]
	cmp	x9, x25
	b.ne	LBB0_27
; %bb.33:                               ;   in Loop: Header=BB0_30 Depth=2
	ldr	x8, [x8]
	cbnz	x8, LBB0_28
	b	LBB0_27
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_protocols,8,3                  ; @protocols
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't allocate poll structures."

	.comm	_timeouts,8,3                   ; @timeouts
	.comm	_cur_time,8,3                   ; @cur_time
	.comm	_free_timeouts,8,3              ; @free_timeouts
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_POLLIN,4,2                     ; @POLLIN
l_.str.1:                               ; @.str.1
	.asciz	"No live interfaces to poll on - exiting."

	.comm	_errno,8,3                      ; @errno
	.comm	_EAGAIN,8,3                     ; @EAGAIN
	.comm	_EINTR,8,3                      ; @EINTR
l_.str.2:                               ; @.str.2
	.asciz	"poll: %m"

	.comm	_POLLHUP,4,2                    ; @POLLHUP
	.comm	_interfaces_invalidated,8,3     ; @interfaces_invalidated
.subsections_via_symbols
