	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netvsc_send_completion
_netvsc_send_completion:                ## @netvsc_send_completion
	.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, %rbx
	movq	%rdi, %r14
	callq	_get_inbound_net_device
	testq	%rax, %rax
	je	LBB0_16
## %bb.1:
	movq	%rax, %r12
	movl	(%rbx), %eax
	shll	$3, %eax
	movslq	%eax, %rsi
	movq	(%rsi,%rbx), %rdx
	movq	_NVSP_MSG_TYPE_INIT_COMPLETE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_17
## %bb.2:
	movq	_NVSP_MSG1_TYPE_SEND_RECV_BUF_COMPLETE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_17
## %bb.3:
	movq	_NVSP_MSG1_TYPE_SEND_SEND_BUF_COMPLETE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_17
## %bb.4:
	movq	32(%r12), %r15
	movq	_NVSP_MSG1_TYPE_SEND_RNDIS_PKT_COMPLETE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_15
## %bb.5:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	(%rax), %edi
	callq	*8(%rax)
LBB0_7:
	leaq	16(%r12), %rdi
	callq	_atomic_dec_return
	movl	%eax, %ebx
	cmpq	$0, 8(%r12)
	je	LBB0_10
## %bb.8:
	testl	%ebx, %ebx
	jne	LBB0_10
## %bb.9:
	movq	%r12, %rdi
	addq	$4, %rdi
	callq	_wake_up
LBB0_10:
	movq	%r15, %rdi
	callq	_netif_queue_stopped
	testq	%rax, %rax
	je	LBB0_16
## %bb.11:
	cmpl	$0, (%r12)
	jne	LBB0_16
## %bb.12:
	movq	(%r14), %rdi
	callq	_hv_ringbuf_avail_percent
	movq	_RING_AVAIL_PERCENT_HIWATER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_14
## %bb.13:
	testl	%ebx, %ebx
	jle	LBB0_14
LBB0_16:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	addq	%rbx, %rsi
	leaq	24(%r12), %rdi
	movl	$8, %edx
	callq	_memcpy
	addq	$20, %r12
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_complete                       ## TAILCALL
LBB0_15:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_err                     ## TAILCALL
LBB0_14:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_wake_queue               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NVSP_MSG_TYPE_INIT_COMPLETE,8,3 ## @NVSP_MSG_TYPE_INIT_COMPLETE
	.comm	_NVSP_MSG1_TYPE_SEND_RECV_BUF_COMPLETE,8,3 ## @NVSP_MSG1_TYPE_SEND_RECV_BUF_COMPLETE
	.comm	_NVSP_MSG1_TYPE_SEND_SEND_BUF_COMPLETE,8,3 ## @NVSP_MSG1_TYPE_SEND_SEND_BUF_COMPLETE
	.comm	_NVSP_MSG1_TYPE_SEND_RNDIS_PKT_COMPLETE,8,3 ## @NVSP_MSG1_TYPE_SEND_RNDIS_PKT_COMPLETE
	.comm	_RING_AVAIL_PERCENT_HIWATER,8,3 ## @RING_AVAIL_PERCENT_HIWATER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown send completion packet type- %d received!!\n"

	.no_dead_strip	_netvsc_send_completion
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netvsc_send_completion
_netvsc_send_completion:                ; @netvsc_send_completion
	.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	x22, x1
	mov	x20, x0
	bl	_get_inbound_net_device
	cbz	x0, LBB0_13
; %bb.1:
	mov	x19, x0
	ldr	w8, [x22]
	lsl	w8, w8, #3
	add	x1, x22, w8, sxtw
	ldr	x2, [x1]
Lloh0:
	adrp	x8, _NVSP_MSG_TYPE_INIT_COMPLETE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVSP_MSG_TYPE_INIT_COMPLETE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _NVSP_MSG1_TYPE_SEND_RECV_BUF_COMPLETE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NVSP_MSG1_TYPE_SEND_RECV_BUF_COMPLETE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _NVSP_MSG1_TYPE_SEND_SEND_BUF_COMPLETE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _NVSP_MSG1_TYPE_SEND_SEND_BUF_COMPLETE@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x2, x8
	ccmp	x2, x9, #4, ne
	ccmp	x2, x10, #4, ne
	b.ne	LBB0_3
; %bb.2:
	add	x0, x19, #24
	mov	w2, #8
	bl	_memcpy
	add	x0, x19, #20
	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	_complete
LBB0_3:
	ldr	x21, [x19, #32]
Lloh9:
	adrp	x8, _NVSP_MSG1_TYPE_SEND_RNDIS_PKT_COMPLETE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NVSP_MSG1_TYPE_SEND_RNDIS_PKT_COMPLETE@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_14
; %bb.4:
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	x9, [x8, #8]
	ldr	w0, [x8]
	blr	x9
LBB0_6:
	add	x0, x19, #16
	bl	_atomic_dec_return
	mov	x22, x0
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
; %bb.7:
	cbnz	w22, LBB0_9
; %bb.8:
	add	x0, x19, #4
	bl	_wake_up
LBB0_9:
	mov	x0, x21
	bl	_netif_queue_stopped
	cbz	x0, LBB0_13
; %bb.10:
	ldr	w8, [x19]
	cbnz	w8, LBB0_13
; %bb.11:
	ldr	x0, [x20]
	bl	_hv_ringbuf_avail_percent
Lloh12:
	adrp	x8, _RING_AVAIL_PERCENT_HIWATER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RING_AVAIL_PERCENT_HIWATER@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x0, x8
	b.gt	LBB0_15
; %bb.12:
	cmp	w22, #0
	b.le	LBB0_15
LBB0_13:
	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_14:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	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	_netdev_err
LBB0_15:
	mov	x0, x21
	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_wake_queue
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_NVSP_MSG_TYPE_INIT_COMPLETE,8,3 ; @NVSP_MSG_TYPE_INIT_COMPLETE
	.comm	_NVSP_MSG1_TYPE_SEND_RECV_BUF_COMPLETE,8,3 ; @NVSP_MSG1_TYPE_SEND_RECV_BUF_COMPLETE
	.comm	_NVSP_MSG1_TYPE_SEND_SEND_BUF_COMPLETE,8,3 ; @NVSP_MSG1_TYPE_SEND_SEND_BUF_COMPLETE
	.comm	_NVSP_MSG1_TYPE_SEND_RNDIS_PKT_COMPLETE,8,3 ; @NVSP_MSG1_TYPE_SEND_RNDIS_PKT_COMPLETE
	.comm	_RING_AVAIL_PERCENT_HIWATER,8,3 ; @RING_AVAIL_PERCENT_HIWATER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown send completion packet type- %d received!!\n"

	.no_dead_strip	_netvsc_send_completion
.subsections_via_symbols
