	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_vtnet_rx
_pci_vtnet_rx:                          ## @pci_vtnet_rx
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_VTNET_MAXSEGS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r14, %rax
	shlq	$4, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	leal	1(%r14), %eax
	shlq	$4, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rcx
	movq	_VTNET_RXQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	shlq	$2, %rax
	addq	8(%r13), %rax
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	leaq	8(%rbx), %rdx
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	%rax, %rbx
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rdx
	xorl	%ecx, %ecx
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_vq_relchain
LBB0_19:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_VTNET_MAXSEGS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ecx, %ecx
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movslq	%r15d, %r15
	shlq	$4, %r15
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r15), %rsi
	addq	$8, %rsi
	subl	%r12d, %r14d
	movq	%rbx, %rdi
	movq	%rdx, %r13
	movl	%r14d, %ecx
	xorl	%r8d, %r8d
	callq	_vq_getchain
	testl	%eax, %eax
	je	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %r14d
	setg	%al
	addl	%r14d, %r12d
	movq	_VTNET_MAXSEGS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r12d
	setle	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_count_iov
	movq	%r13, %rdx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx,%r15)
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	addq	%rax, %rcx
	movslq	%r14d, %rax
	shlq	$4, %rax
	addq	%rax, %rdx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	incl	%r15d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_vq_kick_enable
	movq	%rbx, %rdi
	callq	_vq_has_descs
	movq	%rbx, %rdi
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	callq	_vq_kick_disable
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_VTNET_MAX_PKT_LEN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jge	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_VTNET_MAXSEGS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	cmpl	%r14d, %r12d
	jl	LBB0_1
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %r15d
	movq	-64(%rbp), %r13                 ## 8-byte Reload
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	4(%r13), %edi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_netbe_recv
	testl	%eax, %eax
	jle	LBB0_11
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %r14d
	cmpl	$0, (%r13)
	je	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rcx
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	xorl	%edi, %edi
	cmpl	$4, (%rax)
	setae	%dil
	callq	_assert
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movslq	%r15d, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-104(%rbp), %r15                ## 8-byte Reload
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %r12
	movq	-8(%r15), %rbx
	cmpq	%r14, %rbx
	cmovgeq	%r14, %rbx
	movl	(%r15), %esi
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_vq_relchain_prepare
	incq	%r13
	xorl	%edi, %edi
	cmpq	-72(%rbp), %r12                 ## 8-byte Folded Reload
	setl	%dil
	callq	_assert
	addq	$16, %r15
	subq	%rbx, %r14
	jg	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	%r13d, (%rax)
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_vq_relchain_publish
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	subl	%r13d, %esi
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_vq_retchains
	jmp	LBB0_19
LBB0_11:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_vq_retchains
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_vq_endchains
	jmp	LBB0_12
LBB0_3:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_vq_retchains
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_vq_endchains
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	callq	_netbe_rx_disable
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.20:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_VTNET_MAXSEGS,4,2              ## @VTNET_MAXSEGS
	.comm	_VTNET_RXQ,8,3                  ## @VTNET_RXQ
	.comm	_VTNET_MAX_PKT_LEN,8,3          ## @VTNET_MAX_PKT_LEN
	.no_dead_strip	_pci_vtnet_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_vtnet_rx
_pci_vtnet_rx:                          ; @pci_vtnet_rx
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x27, _VTNET_MAXSEGS@GOTPAGE
Lloh4:
	ldr	x27, [x27, _VTNET_MAXSEGS@GOTPAGEOFF]
	ldr	w12, [x27]
	lsl	x8, x12, #4
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x21, x9, x8
	mov	sp, x21
	add	w8, w12, #1
	lsl	x8, x8, #4
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x26, x9, x8
	mov	sp, x26
	mov	w22, #0
	mov	w23, #0
	mov	x28, #0
	ldr	x8, [x0, #8]
Lloh9:
	adrp	x9, _VTNET_RXQ@GOTPAGE
Lloh10:
	ldr	x9, [x9, _VTNET_RXQ@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x20, x8, x9, lsl #2
	add	x8, x21, #8
	stp	x8, x21, [x29, #-112]           ; 16-byte Folded Spill
	mov	x24, x26
	stur	x26, [x29, #-96]                ; 8-byte Folded Spill
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x21, #8]
	mov	x0, x20
	mov	x2, x23
	bl	_vq_relchain
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w22, #0
	mov	w23, #0
	mov	x28, #0
	ldr	w12, [x27]
	mov	x24, x26
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	add	x8, x21, w22, sxtw #4
	add	x1, x8, #8
	sub	w3, w12, w23
	mov	x0, x20
	mov	x2, x24
	mov	x4, #0
	bl	_vq_getchain
	cbz	w0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, x0
	cmp	w0, #0
	add	w23, w0, w23
	ldr	w8, [x27]
	ccmp	w23, w8, #0, gt
	cset	w0, le
	bl	_assert
	ldr	w8, [x19]
	cbz	w8, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x26, w22
	mov	x0, x24
	mov	x1, x25
	bl	_count_iov
	lsl	x8, x26, #4
	ldur	x26, [x29, #-96]                ; 8-byte Folded Reload
	str	x0, [x21, x8]
	add	x28, x0, x28
	add	x24, x24, w25, sxtw #4
	add	w22, w22, #1
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_vq_kick_enable
	mov	x0, x20
	bl	_vq_has_descs
	cbz	w0, LBB0_16
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_vq_kick_disable
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh12:
	adrp	x8, _VTNET_MAX_PKT_LEN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VTNET_MAX_PKT_LEN@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	w12, [x27]
	cmp	x28, x8
	ccmp	w23, w12, #0, lt
	b.lt	LBB0_3
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w22, #1
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19, #4]
	mov	x1, x26
	mov	x2, x23
	bl	_netbe_recv
	cmp	w0, #0
	b.le	LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w23, w0
	ldr	w8, [x19]
	cbz	w8, LBB0_1
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, x19
	mov	x19, x27
	ldr	x25, [x26, #8]
	ldr	w8, [x26]
	cmp	w8, #3
	cset	w0, hi
	bl	_assert
	mov	x24, #0
	mov	x8, x22
	sxtw	x28, w8
	ldur	x26, [x29, #-112]               ; 8-byte Folded Reload
LBB0_13:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x27, x24
	ldur	x8, [x26, #-8]
	cmp	x8, x23
	csel	x24, x8, x23, lt
	ldr	w1, [x26], #16
	mov	x0, x20
	mov	x2, x24
	bl	_vq_relchain_prepare
	sub	x23, x23, x24
	add	x24, x27, #1
	cmp	x27, x28
	cset	w0, lt
	bl	_assert
	cmp	x23, #0
	b.gt	LBB0_13
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	str	w24, [x25]
	mov	x0, x20
	bl	_vq_relchain_publish
	sub	w1, w22, w24
	mov	x0, x20
	bl	_vq_retchains
	mov	x27, x19
	mov	x19, x21
	ldp	x21, x26, [x29, #-104]          ; 16-byte Folded Reload
	b	LBB0_2
LBB0_15:
	mov	x0, x20
	mov	x1, x22
	bl	_vq_retchains
	mov	x0, x20
	mov	w1, #0
	bl	_vq_endchains
	b	LBB0_17
LBB0_16:
	mov	x0, x20
	mov	x1, x22
	bl	_vq_retchains
	mov	x0, x20
	mov	w1, #1
	bl	_vq_endchains
	ldr	w0, [x19, #4]
	bl	_netbe_rx_disable
LBB0_17:
	ldur	x8, [x29, #-88]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_VTNET_MAXSEGS,4,2              ; @VTNET_MAXSEGS
	.comm	_VTNET_RXQ,8,3                  ; @VTNET_RXQ
	.comm	_VTNET_MAX_PKT_LEN,8,3          ; @VTNET_MAX_PKT_LEN
	.no_dead_strip	_pci_vtnet_rx
.subsections_via_symbols
