	.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
	testl	%edx, %edx
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r12
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	imull	$1000, 20(%rdi), %eax           ## imm = 0x3E8
	movslq	24(%rdi), %rcx
	imulq	$274877907, %rcx, %rbx          ## imm = 0x10624DD3
	movq	%rbx, %rcx
	shrq	$63, %rcx
	sarq	$38, %rbx
	addl	%ecx, %ebx
	addl	%eax, %ebx
	movl	16(%rdi), %eax
	movl	%eax, -60(%rbp)
	movq	_POLLIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	leaq	-64(%rbp), %r13
	movq	_errno@GOTPCREL(%rip), %r14
	movq	_EINTR@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	$1, %esi
	movl	%ebx, %edx
	callq	__poll
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %rax
	cmpq	(%r15), %rax
	je	LBB0_3
## %bb.9:
	movq	_RPC_CANTRECV@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	addq	$8, %r12
	jmp	LBB0_17
LBB0_4:
	testl	%eax, %eax
	jne	LBB0_5
## %bb.16:
	movq	_RPC_TIMEDOUT@GOTPCREL(%rip), %r14
	jmp	LBB0_17
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_5:
	movl	$8, -48(%rbp)
	movl	16(%r12), %edi
	leaq	-72(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	callq	__getpeername
	testq	%rax, %rax
	jne	LBB0_10
## %bb.6:
	movq	-72(%rbp), %rax
	movq	_AF_LOCAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.7:
	movl	16(%r12), %edi
	movslq	-44(%rbp), %rdx                 ## 4-byte Folded Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	___msgread
	cmpl	$-1, %eax
	jne	LBB0_12
LBB0_14:
	movq	(%r14), %rax
	jmp	LBB0_15
LBB0_10:
	movl	16(%r12), %edi
	movslq	-44(%rbp), %rdx                 ## 4-byte Folded Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	__read
	cmpl	$-1, %eax
	je	LBB0_14
LBB0_12:
	testl	%eax, %eax
	jne	LBB0_18
## %bb.13:
	movq	_ECONNRESET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_15:
	movq	%rax, 8(%r12)
	movq	_RPC_CANTRECV@GOTPCREL(%rip), %r14
LBB0_17:
	movq	(%r14), %rax
	movq	%rax, (%r12)
	movl	$-1, %eax
LBB0_18:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_RPC_TIMEDOUT,8,3               ## @RPC_TIMEDOUT
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_RPC_CANTRECV,8,3               ## @RPC_CANTRECV
	.comm	_AF_LOCAL,8,3                   ## @AF_LOCAL
	.comm	_ECONNRESET,8,3                 ## @ECONNRESET
	.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	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
	cbz	w2, LBB0_7
; %bb.1:
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	w8, #1000
	ldrsw	x9, [x0, #24]
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	mul	x9, x9, x10
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w10
	ldp	w11, w10, [x0, #16]
	madd	w22, w10, w8, w9
Lloh0:
	adrp	x8, _POLLIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _POLLIN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	w8, w11, [sp, #8]
Lloh3:
	adrp	x23, _errno@GOTPAGE
Lloh4:
	ldr	x23, [x23, _errno@GOTPAGEOFF]
Lloh5:
	adrp	x24, _EINTR@GOTPAGE
Lloh6:
	ldr	x24, [x24, _EINTR@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	w1, #1
	mov	x2, x22
	bl	__poll
	cmn	w0, #1
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x23]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.4:
Lloh7:
	adrp	x8, _RPC_CANTRECV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RPC_CANTRECV@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	str	x8, [x19], #8
Lloh10:
	adrp	x8, _errno@GOTPAGE
Lloh11:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
	b	LBB0_16
LBB0_5:
	cbnz	w0, LBB0_8
; %bb.6:
Lloh12:
	adrp	x8, _RPC_TIMEDOUT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RPC_TIMEDOUT@GOTPAGEOFF]
	b	LBB0_16
LBB0_7:
	mov	w0, #0
	b	LBB0_17
LBB0_8:
	mov	w8, #8
	str	w8, [sp, #20]
	ldr	w0, [x19, #16]
	add	x1, sp, #24
	add	x2, sp, #20
	bl	__getpeername
	cbnz	x0, LBB0_12
; %bb.9:
	ldr	x8, [sp, #24]
Lloh14:
	adrp	x9, _AF_LOCAL@GOTPAGE
Lloh15:
	ldr	x9, [x9, _AF_LOCAL@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.10:
	ldr	w0, [x19, #16]
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	sxtw	x2, w21
	mov	x1, x20
	bl	___msgread
	cmn	w0, #1
	b.ne	LBB0_13
LBB0_11:
	ldr	x8, [x23]
	b	LBB0_15
LBB0_12:
	ldr	w0, [x19, #16]
	sxtw	x2, w21
	mov	x1, x20
	bl	__read
	cmn	w0, #1
	b.eq	LBB0_11
LBB0_13:
	cbnz	w0, LBB0_17
; %bb.14:
Lloh17:
	adrp	x8, _ECONNRESET@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ECONNRESET@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
LBB0_15:
	str	x8, [x19, #8]
Lloh20:
	adrp	x8, _RPC_CANTRECV@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RPC_CANTRECV@GOTPAGEOFF]
LBB0_16:
	ldr	x8, [x8]
	str	x8, [x19]
	mov	w0, #-1
LBB0_17:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_RPC_TIMEDOUT,8,3               ; @RPC_TIMEDOUT
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_RPC_CANTRECV,8,3               ; @RPC_CANTRECV
	.comm	_AF_LOCAL,8,3                   ; @AF_LOCAL
	.comm	_ECONNRESET,8,3                 ; @ECONNRESET
	.no_dead_strip	_read_vc
.subsections_via_symbols
