	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vnet_walk_rx
_vnet_walk_rx:                          ## @vnet_walk_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -84(%rbp)                 ## 4-byte Spill
	movq	%r8, %r15
	movq	%rdx, %r14
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	cmpq	$-1, %rcx
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rcx, %rsi
	callq	_vio_dring_next
	jmp	LBB0_3
LBB0_1:
	movq	%r14, %rsi
	callq	_vio_dring_prev
LBB0_3:
	movq	%rax, %rbx
	movq	_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	callq	_viodbg
	cmpq	%r14, %rbx
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	jne	LBB0_5
## %bb.4:
	movl	$1, %ebx
	movl	$-1, %r12d
	movl	$-1, %r15d
	jmp	LBB0_18
LBB0_5:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	$-1, %r15d
	movl	$-1, %r12d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %r13
	movl	$0, -44(%rbp)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r14, %rdx
	leaq	-44(%rbp), %rcx
	callq	_vnet_walk_rx_one
	movq	_ECONNRESET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_23
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	testl	%eax, %eax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	incl	(%r15)
	cmpl	$-1, %r12d
	cmovel	%r13d, %r12d
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_vio_dring_next
	movq	%rax, %r14
	cmpl	$0, -44(%rbp)
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	cmpq	%rbx, %r14
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_VIO_DRING_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	movl	%r13d, %ecx
	callq	_vnet_send_ack
	movl	$-1, %r12d
	movq	_ECONNRESET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	jne	LBB0_13
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	-84(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, (%r15)
	jge	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%r13d, %r15d
	cmpq	%rbx, %r14
	jne	LBB0_6
## %bb.16:
	movl	$1, %ebx
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_17
LBB0_8:
	movl	$1, %ebx
	movq	%r13, %r14
	jmp	LBB0_18
LBB0_14:
	xorl	%ebx, %ebx
LBB0_17:
	movl	%r13d, %r15d
LBB0_18:
	xorl	%edi, %edi
	cmpl	$-1, %r12d
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_vio_dring_prev
	movq	%rax, %r12
	movl	%r12d, %r15d
LBB0_20:
	testl	%ebx, %ebx
	je	LBB0_22
## %bb.21:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	$0, (%r14)
	movl	8(%r14), %esi
	movl	12(%r14), %edi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	movl	%r15d, %edx
	callq	_trace_vnet_tx_send_stopped_ack
	movq	_VIO_DRING_STOPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	movl	%r15d, %ecx
	callq	_vnet_send_ack
	jmp	LBB0_23
LBB0_22:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	movl	%r15d, %edx
	callq	_trace_vnet_tx_defer_stopped_ack
	movl	$1, (%rbx)
	movl	%r15d, 4(%rbx)
	movl	$1, %eax
LBB0_23:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DATA,4,2                       ## @DATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vnet_walk_rx start[%08x] end[%08x]\n"

	.comm	_ECONNRESET,4,2                 ## @ECONNRESET
	.comm	_VIO_DRING_ACTIVE,4,2           ## @VIO_DRING_ACTIVE
	.comm	_VIO_DRING_STOPPED,4,2          ## @VIO_DRING_STOPPED
	.no_dead_strip	_vnet_walk_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vnet_walk_rx
_vnet_walk_rx:                          ; @vnet_walk_rx
	.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
	mov	x24, x5
	mov	x21, x4
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	cmn	x3, #1
	b.eq	LBB0_2
; %bb.1:
	mov	x1, x3
	bl	_vio_dring_next
	b	LBB0_3
LBB0_2:
	mov	x1, x23
	bl	_vio_dring_prev
LBB0_3:
	mov	x26, x0
Lloh0:
	adrp	x8, _DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	mov	x3, x26
	bl	_viodbg
	cmp	x26, x23
	b.ne	LBB0_5
; %bb.4:
	mov	w24, #1
	mov	w22, #-1
	mov	w25, #-1
	b	LBB0_18
LBB0_5:
	mov	w25, #-1
Lloh5:
	adrp	x28, _ECONNRESET@GOTPAGE
Lloh6:
	ldr	x28, [x28, _ECONNRESET@GOTPAGEOFF]
	mov	w22, #-1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x27, x23
	str	wzr, [sp, #12]
	add	x3, sp, #12
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	bl	_vnet_walk_rx_one
	ldr	w8, [x28]
	cmn	w0, w8
	b.eq	LBB0_23
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cbnz	w0, LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	cmn	w22, #1
	csel	w22, w27, w22, eq
	mov	x0, x20
	mov	x1, x27
	bl	_vio_dring_next
	mov	x23, x0
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	x23, x26
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh7:
	adrp	x8, _VIO_DRING_ACTIVE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _VIO_DRING_ACTIVE@GOTPAGEOFF]
Lloh9:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	mov	x3, x27
	bl	_vnet_send_ack
	ldr	w8, [x28]
	cmn	w0, w8
	b.eq	LBB0_23
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w22, #-1
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x21]
	cmp	w8, w24
	b.ge	LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x25, x27
	cmp	x23, x26
	b.ne	LBB0_6
; %bb.14:
	mov	w24, #1
	mov	x23, x26
	b	LBB0_17
LBB0_15:
	mov	w24, #1
	mov	x23, x27
	b	LBB0_18
LBB0_16:
	mov	w24, #0
LBB0_17:
	mov	x25, x27
LBB0_18:
	cmn	w22, #1
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_20
; %bb.19:
	mov	x0, x20
	mov	x1, x23
	bl	_vio_dring_prev
	mov	x22, x0
	mov	x25, x22
LBB0_20:
	cbz	w24, LBB0_22
; %bb.21:
	str	wzr, [x19]
	ldp	w1, w0, [x19, #8]
	ldr	w3, [x21]
	mov	x2, x25
	bl	_trace_vnet_tx_send_stopped_ack
Lloh10:
	adrp	x8, _VIO_DRING_STOPPED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _VIO_DRING_STOPPED@GOTPAGEOFF]
Lloh12:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	mov	x3, x25
	bl	_vnet_send_ack
	b	LBB0_23
LBB0_22:
	ldp	w1, w0, [x19, #8]
	ldr	w3, [x21]
	mov	x2, x25
	bl	_trace_vnet_tx_defer_stopped_ack
	mov	w0, #1
	stp	w0, w25, [x19]
LBB0_23:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_DATA,4,2                       ; @DATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vnet_walk_rx start[%08x] end[%08x]\n"

	.comm	_ECONNRESET,4,2                 ; @ECONNRESET
	.comm	_VIO_DRING_ACTIVE,4,2           ; @VIO_DRING_ACTIVE
	.comm	_VIO_DRING_STOPPED,4,2          ; @VIO_DRING_STOPPED
	.no_dead_strip	_vnet_walk_rx
.subsections_via_symbols
