	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netvsc_send_tx_complete
_netvsc_send_tx_complete:               ## @netvsc_send_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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	(%rcx), %rbx
	callq	_netdev_priv
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_likely
	testq	%rax, %rax
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %r12
	movq	(%r12), %rsi
	movq	_NETVSC_INVALID_INDEX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_netvsc_free_send_slot
LBB0_4:
	movq	8(%r12), %r14
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	16(%r15), %rbx
	shlq	$4, %r14
	leaq	(%rbx,%r14), %r13
	addq	$4, %r13
	movq	%r13, %rdi
	callq	_u64_stats_update_begin
	movl	24(%r12), %eax
	addl	%eax, 12(%rbx,%r14)
	movl	16(%r12), %eax
	addl	%eax, 8(%rbx,%r14)
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_u64_stats_update_end
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_napi_consume_skb
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_5
LBB0_1:
	xorl	%r14d, %r14d
LBB0_5:
	movq	%r14, %rdi
	shlq	$4, %rdi
	addq	16(%r15), %rdi
	callq	_atomic_dec_return
	movl	%eax, %r12d
	movl	8(%r15), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	testl	%r12d, %r12d
	jne	LBB0_13
## %bb.7:
	addq	$4, %r15
	movq	%r15, %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wake_up                        ## TAILCALL
LBB0_8:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_netdev_get_tx_queue
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_netif_tx_queue_stopped
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:
	cmpl	$0, (%r15)
	jne	LBB0_13
## %bb.10:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_hv_get_avail_to_write_percent
	movq	_RING_AVAIL_PERCENT_HIWATER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_12
## %bb.11:
	testl	%r12d, %r12d
	jg	LBB0_13
LBB0_12:
	movq	%r14, %rdi
	callq	_netif_tx_wake_queue
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	incl	(%rax)
LBB0_13:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETVSC_INVALID_INDEX,8,3       ## @NETVSC_INVALID_INDEX
	.comm	_RING_AVAIL_PERCENT_HIWATER,8,3 ## @RING_AVAIL_PERCENT_HIWATER
	.no_dead_strip	_netvsc_send_tx_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netvsc_send_tx_complete
_netvsc_send_tx_complete:               ; @netvsc_send_tx_complete
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x23, x4
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x24, [x3]
	bl	_netdev_priv
	mov	x19, x0
	mov	x0, x24
	bl	_likely
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x27, [x24]
	ldr	x1, [x27]
Lloh0:
	adrp	x8, _NETVSC_INVALID_INDEX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETVSC_INVALID_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x1, x8
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_netvsc_free_send_slot
LBB0_3:
	ldr	x25, [x27, #8]
	ldr	x8, [x21, #16]
	add	x28, x8, x25, lsl #4
	add	x26, x28, #4
	mov	x0, x26
	bl	_u64_stats_update_begin
	ldr	q0, [x27, #16]
	ldr	d1, [x28, #8]
	xtn.2s	v0, v0
	add.2s	v0, v1, v0
	str	d0, [x28, #8]
	mov	x0, x26
	bl	_u64_stats_update_end
	mov	x0, x24
	mov	x1, x23
	bl	_napi_consume_skb
	b	LBB0_5
LBB0_4:
	mov	x25, #0
LBB0_5:
	ldr	x8, [x21, #16]
	add	x0, x8, x25, lsl #4
	bl	_atomic_dec_return
	mov	x23, x0
	ldr	w0, [x21, #8]
	bl	_unlikely
	cbz	x0, LBB0_8
; %bb.6:
	cbnz	w23, LBB0_12
; %bb.7:
	add	x0, x21, #4
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_wake_up
LBB0_8:
	mov	x0, x22
	mov	x1, x25
	bl	_netdev_get_tx_queue
	mov	x22, x0
	bl	_netif_tx_queue_stopped
	cbz	x0, LBB0_12
; %bb.9:
	ldr	w8, [x21]
	cbnz	w8, LBB0_12
; %bb.10:
	mov	x0, x20
	bl	_hv_get_avail_to_write_percent
Lloh3:
	adrp	x8, _RING_AVAIL_PERCENT_HIWATER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RING_AVAIL_PERCENT_HIWATER@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	ccmp	w23, #0, #4, le
	b.gt	LBB0_12
; %bb.11:
	mov	x0, x22
	bl	_netif_tx_wake_queue
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NETVSC_INVALID_INDEX,8,3       ; @NETVSC_INVALID_INDEX
	.comm	_RING_AVAIL_PERCENT_HIWATER,8,3 ; @RING_AVAIL_PERCENT_HIWATER
	.no_dead_strip	_netvsc_send_tx_complete
.subsections_via_symbols
