	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_vc
_read_vc:                               ## @read_vc
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r13
	xorl	%edi, %edi
	testq	%r13, %r13
	setne	%dil
	callq	_assert
	movl	(%r13), %ebx
	movq	8(%r13), %r14
	cmpq	$0, 8(%r14)
	je	LBB0_1
## %bb.4:
	movslq	%r12d, %rdx
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	__read
	testl	%eax, %eax
	js	LBB0_5
## %bb.8:
	je	LBB0_9
## %bb.10:
	movl	%eax, %ebx
	addq	$4, %r14
	movq	%r14, %rdi
	jmp	LBB0_11
LBB0_1:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	_POLLIN@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	leaq	-56(%rbp), %r15
	movq	_EINTR@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%r14), %rax
	jne	LBB0_6
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %eax
	testl	%eax, -56(%rbp)
	jne	LBB0_14
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, -52(%rbp)
	movl	%eax, -48(%rbp)
	movl	$0, -56(%rbp)
	movq	%r15, %rdi
	movl	$1, %esi
	movl	$35000, %edx                    ## imm = 0x88B8
	callq	__poll
	cmpl	$-1, %eax
	je	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	jne	LBB0_13
	jmp	LBB0_6
LBB0_5:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_6
	jmp	LBB0_7
LBB0_14:
	movslq	-44(%rbp), %rdx                 ## 4-byte Folded Reload
	movl	%ebx, %edi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	__read
	testl	%eax, %eax
	jle	LBB0_6
## %bb.15:
	movl	%eax, %ebx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	addq	$4, %rdi
LBB0_11:
	xorl	%esi, %esi
	callq	_gettimeofday
	jmp	LBB0_7
LBB0_6:
	movq	_XPRT_DIED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r13), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %ebx
	jmp	LBB0_7
LBB0_9:
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_EAGAIN,8,3                     ## @EAGAIN
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_XPRT_DIED,4,2                  ## @XPRT_DIED
	.no_dead_strip	_read_vc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_vc
_read_vc:                               ; @read_vc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	ldr	w22, [x19]
	ldr	x23, [x19, #8]
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_3
; %bb.1:
	sxtw	x2, w21
	mov	x0, x22
	mov	x1, x20
	bl	__read
	tbnz	w0, #31, LBB0_8
; %bb.2:
	mov	x20, x0
	cbnz	w0, LBB0_12
	b	LBB0_14
LBB0_3:
Lloh0:
	adrp	x24, _POLLIN@GOTPAGE
Lloh1:
	ldr	x24, [x24, _POLLIN@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh2:
	adrp	x25, _errno@GOTPAGE
Lloh3:
	ldr	x25, [x25, _errno@GOTPAGEOFF]
Lloh4:
	adrp	x26, _EINTR@GOTPAGE
Lloh5:
	ldr	x26, [x26, _EINTR@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x25]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_13
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [sp]
	ldr	w8, [x24]
	tst	w8, w9
	b.ne	LBB0_10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	stp	w22, w8, [sp, #4]
	str	wzr, [sp]
	mov	x0, sp
	mov	w1, #1
	mov	w2, #35000
	bl	__poll
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cbnz	w0, LBB0_5
	b	LBB0_13
LBB0_8:
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _EAGAIN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EAGAIN@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.9:
	mov	w20, #0
	b	LBB0_14
LBB0_10:
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	sxtw	x2, w21
	mov	x0, x22
	mov	x1, x20
	bl	__read
	cmp	w0, #1
	b.lt	LBB0_13
; %bb.11:
	mov	x20, x0
LBB0_12:
	add	x0, x23, #4
	mov	x1, #0
	bl	_gettimeofday
	b	LBB0_14
LBB0_13:
Lloh12:
	adrp	x8, _XPRT_DIED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _XPRT_DIED@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
	str	w8, [x9]
	mov	w20, #-1
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_EAGAIN,8,3                     ; @EAGAIN
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_XPRT_DIED,4,2                  ; @XPRT_DIED
	.no_dead_strip	_read_vc
.subsections_via_symbols
