	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vnet_rx
_vnet_rx:                               ## @vnet_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	8(%rdi), %r13
	movq	_VIO_DRIVER_RX_RING@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rsi), %rcx
	movq	16(%rsi), %rdx
	movq	(%r13,%r14,8), %r8
	leaq	L_.str(%rip), %rsi
	callq	_viodbg
	movq	16(%rbx), %rax
	movq	_VIO_DRING_DATA@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	leaq	(%r13,%r14,8), %r13
	movq	(%rbx), %rax
	xorl	%edi, %edi
	cmpq	(%r13), %rax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	(%rbx), %rsi
	movq	(%r13), %rdx
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
LBB0_3:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	cmpl	$0, (%r12)
	jne	LBB0_6
## %bb.5:
	incq	(%r13)
LBB0_6:
	movl	8(%rbx), %ecx
	movl	12(%rbx), %edx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r15, %r8
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vnet_walk_rx                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VIO_DRIVER_RX_RING,8,3         ## @VIO_DRIVER_RX_RING
	.comm	_DATA,4,2                       ## @DATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vnet_rx stype_env[%04x] seq[%016llx] rcv_nxt[%016llx]\n"

	.comm	_VIO_DRING_DATA,8,3             ## @VIO_DRING_DATA
L_.str.1:                               ## @.str.1
	.asciz	"RX out of sequence seq[0x%llx] rcv_nxt[0x%llx]\n"

	.no_dead_strip	_vnet_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vnet_rx
_vnet_rx:                               ; @vnet_rx
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _VIO_DRIVER_RX_RING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VIO_DRIVER_RX_RING@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x23, x8, x9, lsl #3
Lloh3:
	adrp	x8, _DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DATA@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	x2, [x1, #16]
	ldr	x3, [x1]
	ldr	x4, [x23]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_viodbg
	ldr	x8, [x21, #16]
Lloh8:
	adrp	x9, _VIO_DRING_DATA@GOTPAGE
Lloh9:
	ldr	x9, [x9, _VIO_DRING_DATA@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x21]
	ldr	x9, [x23]
	cmp	x8, x9
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x1, [x21]
	ldr	x2, [x23]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	w8, [x22]
	cbnz	w8, LBB0_6
; %bb.5:
	ldr	x8, [x23]
	add	x8, x8, #1
	str	x8, [x23]
LBB0_6:
	ldp	w3, w2, [x21, #8]
	mov	x0, x22
	mov	x1, x23
	mov	x4, x20
	mov	x5, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_vnet_walk_rx
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_VIO_DRIVER_RX_RING,8,3         ; @VIO_DRIVER_RX_RING
	.comm	_DATA,4,2                       ; @DATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vnet_rx stype_env[%04x] seq[%016llx] rcv_nxt[%016llx]\n"

	.comm	_VIO_DRING_DATA,8,3             ; @VIO_DRING_DATA
l_.str.1:                               ; @.str.1
	.asciz	"RX out of sequence seq[0x%llx] rcv_nxt[0x%llx]\n"

	.no_dead_strip	_vnet_rx
.subsections_via_symbols
