	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vnet_ack
_vnet_ack:                              ## @vnet_ack
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_VIO_DRIVER_TX_RING@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	shlq	$2, %r15
	addq	16(%rdi), %r15
	movq	8(%rsi), %rax
	movq	_VIO_DRING_DATA@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_unlikely
	xorl	%r12d, %r12d
	testq	%rax, %rax
	jne	LBB0_12
## %bb.1:
	movl	(%rbx), %r13d
	movq	%r14, %rdi
	callq	_VNET_PORT_TO_NET_DEVICE
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_netif_tx_lock
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_idx_is_pending
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_netif_tx_unlock
	jmp	LBB0_12
LBB0_3:
	movl	8(%r14), %esi
	movl	12(%r14), %edi
	movl	%r13d, %edx
	callq	_trace_vnet_rx_stopped_ack
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_vio_dring_next
	movl	%eax, (%r15)
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_vio_dring_entry
	movq	(%rax), %rax
	movq	_VIO_DESC_READY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.4:
	cmpl	$0, (%r14)
	je	LBB0_5
LBB0_7:
	movl	$1, (%r14)
LBB0_8:
	movq	%rbx, %rdi
	callq	_netif_tx_unlock
	movl	4(%r14), %esi
	movq	%rbx, %rdi
	callq	_netdev_get_tx_queue
	movq	%rax, %rdi
	callq	_netif_tx_queue_stopped
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%r15, %rdi
	callq	_vnet_tx_dring_avail
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_VNET_TX_WAKEUP_THRESH
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	setge	%dil
	jmp	LBB0_11
LBB0_9:
	xorl	%edi, %edi
LBB0_11:
	callq	_unlikely
	xorl	%r12d, %r12d
	testq	%rax, %rax
	setne	%r12b
LBB0_12:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	___vnet_tx_trigger
	testq	%rax, %rax
	jle	LBB0_7
## %bb.6:
	movl	$0, (%r14)
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_VIO_DRIVER_TX_RING,8,3         ## @VIO_DRIVER_TX_RING
	.comm	_VIO_DRING_DATA,8,3             ## @VIO_DRING_DATA
	.comm	_VIO_DESC_READY,8,3             ## @VIO_DESC_READY
	.no_dead_strip	_vnet_ack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vnet_ack
_vnet_ack:                              ; @vnet_ack
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x20, x0
	ldr	x19, [x0, #16]
Lloh0:
	adrp	x8, _VIO_DRIVER_TX_RING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VIO_DRIVER_TX_RING@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	ldr	x8, [x1, #8]
Lloh3:
	adrp	x9, _VIO_DRING_DATA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VIO_DRING_DATA@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_10
LBB0_2:
	add	x19, x19, x22, lsl #2
	ldr	w22, [x21]
	mov	x0, x20
	bl	_VNET_PORT_TO_NET_DEVICE
	mov	x21, x0
	bl	_netif_tx_lock
	mov	x0, x19
	mov	x1, x22
	bl	_idx_is_pending
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_netif_tx_unlock
	mov	w0, #0
	b	LBB0_10
LBB0_4:
	ldp	w1, w0, [x20, #8]
	mov	x2, x22
	bl	_trace_vnet_rx_stopped_ack
	mov	x0, x19
	mov	x1, x22
	bl	_vio_dring_next
	mov	x1, x0
	str	w0, [x19]
	mov	x0, x19
	bl	_vio_dring_entry
	ldr	x8, [x0]
Lloh6:
	adrp	x9, _VIO_DESC_READY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VIO_DESC_READY@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	ldr	w8, [x20]
	cbz	w8, LBB0_11
LBB0_6:
	mov	w8, #1
	str	w8, [x20]
LBB0_7:
	mov	x0, x21
	bl	_netif_tx_unlock
	ldr	w1, [x20, #4]
	mov	x0, x21
	bl	_netdev_get_tx_queue
	bl	_netif_tx_queue_stopped
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_vnet_tx_dring_avail
	mov	x20, x0
	mov	x0, x19
	bl	_VNET_TX_WAKEUP_THRESH
	cmp	x20, x0
	cset	w0, ge
LBB0_9:
	bl	_unlikely
	cmp	x0, #0
	cset	w0, ne
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_11:
	ldr	w1, [x19]
	mov	x0, x20
	bl	___vnet_tx_trigger
	cmp	x0, #1
	b.lt	LBB0_6
; %bb.12:
	str	wzr, [x20]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_VIO_DRIVER_TX_RING,8,3         ; @VIO_DRIVER_TX_RING
	.comm	_VIO_DRING_DATA,8,3             ; @VIO_DRING_DATA
	.comm	_VIO_DESC_READY,8,3             ; @VIO_DESC_READY
	.no_dead_strip	_vnet_ack
.subsections_via_symbols
