	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_VIO_DRIVER_TX_RING@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	shlq	$2, %rbx
	addq	8(%rdi), %rbx
	movq	8(%rsi), %rax
	movq	_VIO_DRING_DATA@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_unlikely
	xorl	%r15d, %r15d
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	movl	(%r12), %r12d
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_idx_is_pending
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_6
## %bb.2:
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_next_idx
	movl	%eax, (%rbx)
	movq	(%r14), %rax
	movq	(%rax), %rdi
	callq	_netif_queue_stopped
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	callq	_vnet_tx_dring_avail
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_VNET_TX_WAKEUP_THRESH
	xorl	%edi, %edi
	cmpq	%rax, %r14
	setge	%dil
	jmp	LBB0_5
LBB0_3:
	xorl	%edi, %edi
LBB0_5:
	callq	_unlikely
	xorl	%r15d, %r15d
	testq	%rax, %rax
	setne	%r15b
LBB0_6:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VIO_DRIVER_TX_RING,8,3         ## @VIO_DRIVER_TX_RING
	.comm	_VIO_DRING_DATA,8,3             ## @VIO_DRING_DATA
	.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	x19, x0
	ldr	x20, [x0, #8]
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
	cbnz	x0, LBB0_2
; %bb.1:
	add	x20, x20, x22, lsl #2
	ldr	w21, [x21]
	mov	x0, x20
	mov	x1, x21
	bl	_idx_is_pending
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_4
LBB0_2:
	mov	w0, #0
LBB0_3:
	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_4:
	mov	x0, x21
	mov	x1, x20
	bl	_next_idx
	str	w0, [x20]
	ldr	x8, [x19]
	ldr	x0, [x8]
	bl	_netif_queue_stopped
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_vnet_tx_dring_avail
	mov	x19, x0
	mov	x0, x20
	bl	_VNET_TX_WAKEUP_THRESH
	cmp	x19, x0
	cset	w0, ge
LBB0_6:
	bl	_unlikely
	cmp	x0, #0
	cset	w0, ne
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VIO_DRIVER_TX_RING,8,3         ; @VIO_DRIVER_TX_RING
	.comm	_VIO_DRING_DATA,8,3             ; @VIO_DRING_DATA
	.no_dead_strip	_vnet_ack
.subsections_via_symbols
