	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmxnet3_tq_tx_complete
_vmxnet3_tq_tx_complete:                ## @vmxnet3_tq_tx_complete
	.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, %r14
	movq	%rdi, %r15
	movslq	8(%rdi), %rbx
	shlq	$2, %rbx
	addq	24(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_VMXNET3_TCD_GET_GEN
	xorl	%r13d, %r13d
	cmpq	16(%r15), %rax
	jne	LBB0_11
## %bb.1:
	leaq	8(%r15), %r12
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_dma_rmb
	movq	%rbx, %rdi
	callq	_VMXNET3_TCD_GET_TXIDX
	movl	4(%r14), %edx
	movl	%eax, %edi
	movq	%r15, %rsi
	movq	%r14, %rcx
	callq	_vmxnet3_unmap_pkt
	addl	%eax, %r13d
	movq	%r12, %rdi
	callq	_vmxnet3_comp_ring_adv_next2proc
	movslq	8(%r15), %rbx
	shlq	$2, %rbx
	addq	24(%r15), %rbx
	movq	%rbx, %rdi
	callq	_VMXNET3_TCD_GET_GEN
	cmpq	16(%r15), %rax
	je	LBB0_2
## %bb.3:
	testl	%r13d, %r13d
	je	LBB0_4
## %bb.5:
	movq	%r15, %rdi
	callq	_spin_lock
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_vmxnet3_tq_stopped
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	leaq	4(%r15), %rdi
	callq	_vmxnet3_cmd_ring_desc_avail
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_VMXNET3_WAKE_QUEUE_THRESHOLD
	cmpq	%rax, %r12
	jle	LBB0_8
## %bb.7:
	movl	(%r14), %edi
	callq	_netif_carrier_ok
	xorl	%ebx, %ebx
	testq	%rax, %rax
	setne	%bl
LBB0_8:
	movl	%ebx, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_vmxnet3_tq_wake
LBB0_10:
	movq	%r15, %rdi
	callq	_spin_unlock
	jmp	LBB0_11
LBB0_4:
	xorl	%r13d, %r13d
LBB0_11:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_vmxnet3_tq_tx_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmxnet3_tq_tx_complete
_vmxnet3_tq_tx_complete:                ; @vmxnet3_tq_tx_complete
	.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	x20, x1
	mov	x19, x0
	mov	x22, x0
	ldrsw	x8, [x22, #8]!
	ldr	x9, [x22, #16]
	add	x23, x9, x8, lsl #2
	mov	x0, x23
	bl	_VMXNET3_TCD_GET_GEN
	ldr	x8, [x22, #8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.1:
	mov	w21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	bl	_dma_rmb
	mov	x0, x23
	bl	_VMXNET3_TCD_GET_TXIDX
	ldr	w2, [x20, #4]
	mov	x1, x19
	mov	x3, x20
	bl	_vmxnet3_unmap_pkt
	add	w21, w21, w0
	mov	x0, x22
	bl	_vmxnet3_comp_ring_adv_next2proc
	ldr	x8, [x19, #24]
	ldrsw	x9, [x19, #8]
	add	x23, x8, x9, lsl #2
	mov	x0, x23
	bl	_VMXNET3_TCD_GET_GEN
	ldr	x8, [x19, #16]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.3:
	cbz	w21, LBB0_11
; %bb.4:
	mov	x0, x19
	bl	_spin_lock
	mov	x0, x19
	mov	x1, x20
	bl	_vmxnet3_tq_stopped
	cbz	x0, LBB0_7
; %bb.5:
	add	x0, x19, #4
	bl	_vmxnet3_cmd_ring_desc_avail
	mov	x22, x0
	mov	x0, x19
	bl	_VMXNET3_WAKE_QUEUE_THRESHOLD
	cmp	x22, x0
	b.le	LBB0_12
; %bb.6:
	ldr	w0, [x20]
	bl	_netif_carrier_ok
	cmp	x0, #0
	cset	w0, ne
LBB0_7:
	bl	_unlikely
	cbz	x0, LBB0_9
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	bl	_vmxnet3_tq_wake
LBB0_9:
	mov	x0, x19
	bl	_spin_unlock
	b	LBB0_11
LBB0_10:
	mov	w21, #0
LBB0_11:
	mov	x0, x21
	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_12:
	mov	w0, #0
	bl	_unlikely
	cbnz	x0, LBB0_8
	b	LBB0_9
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_vmxnet3_tq_tx_complete
.subsections_via_symbols
