	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function virtnet_poll_cleantx
_virtnet_poll_cleantx:                  ## @virtnet_poll_cleantx
	.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	(%rdi), %rdi
	movq	(%rdi), %rax
	movq	(%rax), %r12
	callq	_vq2rxq
	movl	%eax, %r13d
	movq	8(%r12), %r15
	movl	%eax, %ebx
	shlq	$4, %rbx
	movl	(%r12), %edi
	movl	%eax, %esi
	callq	_netdev_get_tx_queue
	cmpl	$0, 8(%r15,%rbx)
	je	LBB0_5
## %bb.1:
	movq	%rax, %r14
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_is_xdp_raw_buffer_queue
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	addq	%rbx, %r15
	movq	%r14, %rdi
	callq	___netif_tx_trylock
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_free_old_xmit_skbs
	movq	%r14, %rdi
	callq	___netif_tx_unlock
LBB0_4:
	movq	(%r15), %rax
	movq	_MAX_SKB_FRAGS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	$2, %rcx
	cmpq	%rcx, (%rax)
	jge	LBB0_6
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_tx_wake_queue            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_SKB_FRAGS,8,3              ## @MAX_SKB_FRAGS
	.no_dead_strip	_virtnet_poll_cleantx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function virtnet_poll_cleantx
_virtnet_poll_cleantx:                  ; @virtnet_poll_cleantx
	.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
	ldr	x0, [x0]
	ldr	x8, [x0]
	ldr	x21, [x8]
	bl	_vq2rxq
	mov	x22, x0
	ldr	x8, [x21, #8]
	add	x20, x8, w0, uxtw #4
	ldr	w0, [x21]
	mov	x1, x22
	bl	_netdev_get_tx_queue
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x19, x0
	mov	x0, x21
	mov	x1, x22
	bl	_is_xdp_raw_buffer_queue
	cbnz	x0, LBB0_5
; %bb.2:
	mov	x0, x19
	bl	___netif_tx_trylock
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	w1, #1
	bl	_free_old_xmit_skbs
	mov	x0, x19
	bl	___netif_tx_unlock
LBB0_4:
	ldr	x8, [x20]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _MAX_SKB_FRAGS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX_SKB_FRAGS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x9, x9, #2
	cmp	x8, x9
	b.ge	LBB0_6
LBB0_5:
	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_6:
	mov	x0, x19
	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
	b	_netif_tx_wake_queue
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_SKB_FRAGS,8,3              ; @MAX_SKB_FRAGS
	.no_dead_strip	_virtnet_poll_cleantx
.subsections_via_symbols
