	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netvsc_receive_completion
_netvsc_receive_completion:             ## @netvsc_receive_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	%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, %rbx
	movq	32(%rdi), %r15
	movq	_NVSP_STAT_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r15, %rdi
	callq	_get_inbound_net_device
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_spin_lock_irqsave
	movq	(%rbx), %rax
	movq	_NVSP_STAT_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	16(%rbx), %rdi
	jmp	LBB0_4
LBB0_3:
	movq	_NVSP_STAT_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	16(%rbx), %rdi
	movl	%eax, 12(%rdi)
LBB0_4:
	movq	(%rdi), %r14
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	decq	%r14
	movq	%r14, (%rdi)
	jne	LBB0_6
## %bb.5:
	movl	24(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	12(%rdi), %r13d
	addq	$8, %rdi
	leaq	4(%r12), %rsi
	callq	_list_add_tail
LBB0_6:
	addq	$8, %rbx
	movq	%r12, %rsi
	addq	$4, %rsi
	movq	%rbx, %rdi
	callq	_list_add_tail
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	testq	%r14, %r14
	je	LBB0_8
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netvsc_send_recv_completion    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NVSP_STAT_NONE,4,2             ## @NVSP_STAT_NONE
	.comm	_NVSP_STAT_SUCCESS,8,3          ## @NVSP_STAT_SUCCESS
	.comm	_NVSP_STAT_FAIL,4,2             ## @NVSP_STAT_FAIL
	.no_dead_strip	_netvsc_receive_completion
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netvsc_receive_completion
_netvsc_receive_completion:             ; @netvsc_receive_completion
	.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	x22, x0
	ldr	x19, [x0, #32]
Lloh0:
	adrp	x8, _NVSP_STAT_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVSP_STAT_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_get_inbound_net_device
	cbz	x0, LBB0_8
; %bb.1:
	mov	x21, x0
	bl	_spin_lock_irqsave
	ldr	x8, [x22]
Lloh3:
	adrp	x9, _NVSP_STAT_SUCCESS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NVSP_STAT_SUCCESS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x22, #16]
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _NVSP_STAT_FAIL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NVSP_STAT_FAIL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x8]
	ldr	x8, [x22, #16]
	str	w9, [x8, #12]
LBB0_4:
	ldr	x9, [x8]
	subs	x24, x9, #1
	str	x24, [x8]
	b.eq	LBB0_6
; %bb.5:
	mov	w23, #0
	b	LBB0_7
LBB0_6:
	ldr	w23, [x22, #24]
	ldr	w20, [x8, #12]
	add	x0, x8, #8
	add	x1, x21, #4
	bl	_list_add_tail
LBB0_7:
	add	x0, x22, #8
	add	x1, x21, #4
	bl	_list_add_tail
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	cbz	x24, LBB0_9
LBB0_8:
	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_9:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x20
	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
	b	_netvsc_send_recv_completion
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NVSP_STAT_NONE,4,2             ; @NVSP_STAT_NONE
	.comm	_NVSP_STAT_SUCCESS,8,3          ; @NVSP_STAT_SUCCESS
	.comm	_NVSP_STAT_FAIL,4,2             ; @NVSP_STAT_FAIL
	.no_dead_strip	_netvsc_receive_completion
.subsections_via_symbols
