	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netvsc_receive
_netvsc_receive:                        ## @netvsc_receive
	.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	$40, %rsp
	.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, %r12
	movq	_listHead@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_LIST_HEAD
	movq	%r12, %rdi
	callq	_get_inbound_net_device
	testq	%rax, %rax
	je	LBB0_18
## %bb.1:
	movq	24(%rax), %rdi
	movl	4(%r14), %edx
	movq	_VM_PKT_DATA_USING_XFER_PAGES@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	jne	LBB0_2
## %bb.4:
	movq	%rax, %r15
	movl	(%r14), %eax
	shll	$3, %eax
	cltq
	movq	(%rax,%r14), %rdx
	movq	_NVSP_MSG1_TYPE_SEND_RNDIS_PKT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_5
## %bb.6:
	movq	(%r14), %rcx
	movq	_NETVSC_RECEIVE_BUFFER_ID@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_19
## %bb.7:
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	leaq	8(%r15), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	addq	$16, %r15
	movl	$-1, %r13d
	movq	_listHead@GOTPCREL(%rip), %rbx
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_list_empty
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r15), %rdi
	movq	%rbx, %rsi
	callq	_list_move_tail
	incl	%r13d
	cmpl	8(%r14), %r13d
	jne	LBB0_8
LBB0_10:
	incl	%r13d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	cmpl	$1, %r13d
	jg	LBB0_14
## %bb.11:
	movl	8(%r14), %ecx
	incl	%ecx
	leaq	L_.str.3(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_netdev_err
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	testl	%r13d, %r13d
	je	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	movq	%r15, %rsi
	callq	_list_move_tail
	decl	%r13d
	jne	LBB0_12
LBB0_13:
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movl	24(%r14), %esi
	movq	_NVSP_STAT_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netvsc_send_recv_completion    ## TAILCALL
LBB0_2:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_3
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
LBB0_3:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_err                     ## TAILCALL
LBB0_19:
	leaq	L_.str.2(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_err                     ## TAILCALL
LBB0_14:
	movq	(%rbx), %r15
	leaq	16(%r15), %rdi
	callq	_list_del
	movq	_NVSP_STAT_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	decl	%r13d
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	%r13d, (%r15)
	movl	8(%r14), %edx
	cmpl	%edx, %r13d
	je	LBB0_16
## %bb.15:
	leaq	L_.str.4(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_netdev_err
LBB0_16:
	movl	%r13d, %r13d
	movl	$8, %r15d
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	_listHead@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	leaq	64(%rbx), %rdi
	callq	_list_del
	movq	_NVSP_STAT_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 56(%rbx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 48(%rbx)
	movq	_netvsc_receive_completion@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movq	%rbx, (%rbx)
	movq	%r12, 40(%rbx)
	movl	24(%r14), %eax
	movl	%eax, 8(%rbx)
	movq	16(%r14), %rax
	movq	(%rax,%r15), %rcx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	addq	(%rdx), %rcx
	movq	%rcx, 32(%rbx)
	movl	-8(%rax,%r15), %eax
	movl	%eax, 24(%rbx)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_rndis_filter_receive
	movq	(%rbx), %rdi
	callq	_netvsc_receive_completion
	addq	$16, %r15
	decq	%r13
	jne	LBB0_17
LBB0_18:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_listHead,8,3                   ## @listHead
	.comm	_VM_PKT_DATA_USING_XFER_PAGES,4,2 ## @VM_PKT_DATA_USING_XFER_PAGES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown packet type received - %d\n"

	.comm	_NVSP_MSG1_TYPE_SEND_RNDIS_PKT,8,3 ## @NVSP_MSG1_TYPE_SEND_RNDIS_PKT
L_.str.1:                               ## @.str.1
	.asciz	"Unknown nvsp packet type received- %d\n"

	.comm	_NETVSC_RECEIVE_BUFFER_ID,8,3   ## @NETVSC_RECEIVE_BUFFER_ID
L_.str.2:                               ## @.str.2
	.asciz	"Invalid xfer page set id - expecting %x got %x\n"

L_.str.3:                               ## @.str.3
	.asciz	"Got only %d netvsc pkt...needed %d pkts. Dropping this xfer page packet completely!\n"

	.comm	_NVSP_STAT_FAIL,4,2             ## @NVSP_STAT_FAIL
	.comm	_NVSP_STAT_SUCCESS,8,3          ## @NVSP_STAT_SUCCESS
L_.str.4:                               ## @.str.4
	.asciz	"Needed %d netvsc pkts to satisfy this xfer page...got %d\n"

	.no_dead_strip	_netvsc_receive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netvsc_receive
_netvsc_receive:                        ; @netvsc_receive
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _listHead@GOTPAGE
Lloh1:
	ldr	x8, [x8, _listHead@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	bl	_LIST_HEAD
	mov	x0, x19
	bl	_get_inbound_net_device
	cbz	x0, LBB0_19
; %bb.1:
	mov	x21, x0
	ldr	x23, [x0, #24]
	ldr	w2, [x20, #4]
Lloh3:
	adrp	x8, _VM_PKT_DATA_USING_XFER_PAGES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VM_PKT_DATA_USING_XFER_PAGES@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w2, w8
	b.ne	LBB0_11
; %bb.2:
	ldr	w8, [x20]
	lsl	w8, w8, #3
	ldr	x2, [x20, w8, sxtw]
Lloh6:
	adrp	x8, _NVSP_MSG1_TYPE_SEND_RNDIS_PKT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NVSP_MSG1_TYPE_SEND_RNDIS_PKT@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_12
; %bb.3:
	ldr	x8, [x20]
Lloh9:
	adrp	x9, _NETVSC_RECEIVE_BUFFER_ID@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NETVSC_RECEIVE_BUFFER_ID@GOTPAGEOFF]
Lloh11:
	ldr	x2, [x9]
	cmp	x8, x2
	b.ne	LBB0_14
; %bb.4:
	add	x24, x21, #8
	mov	x0, x24
	bl	_spin_lock_irqsave
	add	x25, x21, #16
	mov	w26, #-1
Lloh12:
	adrp	x22, _listHead@GOTPAGE
Lloh13:
	ldr	x22, [x22, _listHead@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	bl	_list_empty
	cbnz	w0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x25]
	mov	x1, x22
	bl	_list_move_tail
	ldr	w8, [x20, #8]
	add	w26, w26, #1
	cmp	w26, w8
	b.ne	LBB0_5
LBB0_7:
	add	w26, w26, #1
	mov	x0, x24
	bl	_spin_unlock_irqrestore
	subs	w27, w26, #1
	b.gt	LBB0_15
; %bb.8:
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	x8, [sp]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x23
	mov	x2, x26
	bl	_netdev_err
	mov	x0, x24
	bl	_spin_lock_irqsave
	cbz	w26, LBB0_10
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22]
	mov	x1, x25
	bl	_list_move_tail
	subs	w26, w26, #1
	b.ne	LBB0_9
LBB0_10:
	mov	x0, x24
	bl	_spin_unlock_irqrestore
	ldr	w1, [x20, #24]
Lloh16:
	adrp	x8, _NVSP_STAT_FAIL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _NVSP_STAT_FAIL@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_netvsc_send_recv_completion
LBB0_11:
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	b	LBB0_13
LBB0_12:
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
                                        ; kill: def $w2 killed $w2 killed $x2
LBB0_13:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_netdev_err
LBB0_14:
	str	x8, [sp]
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x23
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_netdev_err
	b	LBB0_19
LBB0_15:
	ldr	x24, [x22]
	add	x0, x24, #16
	bl	_list_del
Lloh25:
	adrp	x25, _NVSP_STAT_SUCCESS@GOTPAGE
Lloh26:
	ldr	x25, [x25, _NVSP_STAT_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x25]
	str	x8, [x24, #8]
	str	w27, [x24]
	ldr	w2, [x20, #8]
	cmp	w27, w2
	b.eq	LBB0_17
; %bb.16:
	mov	x8, x27
	str	x8, [sp]
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x23
	bl	_netdev_err
LBB0_17:
	mov	x26, #0
Lloh29:
	adrp	x28, _netvsc_receive_completion@GOTPAGE
Lloh30:
	ldr	x28, [x28, _netvsc_receive_completion@GOTPAGEOFF]
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x22]
	add	x0, x23, #64
	bl	_list_del
	ldr	x8, [x25]
	stp	x24, x8, [x23, #48]
	str	x28, [x23, #16]
	str	x23, [x23]
	ldr	w8, [x20, #24]
	str	w8, [x23, #8]
	ldr	x8, [x21]
	ldr	x9, [x20, #16]
	add	x9, x9, x26
	ldr	x10, [x9, #8]
	add	x8, x10, x8
	stp	x8, x19, [x23, #32]
	ldr	w8, [x9]
	str	w8, [x23, #24]
	mov	x0, x19
	mov	x1, x23
	bl	_rndis_filter_receive
	ldr	x0, [x23]
	bl	_netvsc_receive_completion
	add	x26, x26, #16
	subs	x27, x27, #1
	b.ne	LBB0_18
LBB0_19:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_listHead,8,3                   ; @listHead
	.comm	_VM_PKT_DATA_USING_XFER_PAGES,4,2 ; @VM_PKT_DATA_USING_XFER_PAGES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown packet type received - %d\n"

	.comm	_NVSP_MSG1_TYPE_SEND_RNDIS_PKT,8,3 ; @NVSP_MSG1_TYPE_SEND_RNDIS_PKT
l_.str.1:                               ; @.str.1
	.asciz	"Unknown nvsp packet type received- %d\n"

	.comm	_NETVSC_RECEIVE_BUFFER_ID,8,3   ; @NETVSC_RECEIVE_BUFFER_ID
l_.str.2:                               ; @.str.2
	.asciz	"Invalid xfer page set id - expecting %x got %x\n"

l_.str.3:                               ; @.str.3
	.asciz	"Got only %d netvsc pkt...needed %d pkts. Dropping this xfer page packet completely!\n"

	.comm	_NVSP_STAT_FAIL,4,2             ; @NVSP_STAT_FAIL
	.comm	_NVSP_STAT_SUCCESS,8,3          ; @NVSP_STAT_SUCCESS
l_.str.4:                               ; @.str.4
	.asciz	"Needed %d netvsc pkts to satisfy this xfer page...got %d\n"

	.no_dead_strip	_netvsc_receive
.subsections_via_symbols
