	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rndis_filter_receive_data
_rndis_filter_receive_data:             ## @rndis_filter_receive_data
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	movq	%rdi, %r14
	movq	_RNDIS_HEADER_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rsi), %rax
	addq	(%rcx), %rax
	movq	(%rdx), %rdx
	subq	%rax, %rdx
	movq	%rdx, (%rbx)
	movq	8(%rsi), %rcx
	cmpq	%rcx, %rdx
	jge	LBB0_1
## %bb.5:
	movq	(%r14), %rax
	movl	4(%rax), %edi
	leaq	L_.str(%rip), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_netdev_err                     ## TAILCALL
LBB0_1:
	movq	%rcx, (%rbx)
	addq	%rax, 16(%rbx)
	movl	$1, 8(%rbx)
	movq	_IEEE_8021Q_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rsi, %rdi
	movl	%eax, %esi
	callq	_rndis_get_ppi
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	_VLAN_TAG_PRESENT@GOTPCREL(%rip), %rcx
	movl	(%rax), %edx
	movl	4(%rax), %eax
	orl	(%rcx), %edx
	movq	_VLAN_PRIO_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%edx, %eax
	jmp	LBB0_4
LBB0_2:
	xorl	%eax, %eax
LBB0_4:
	movl	%eax, 12(%rbx)
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_netvsc_recv_callback           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RNDIS_HEADER_SIZE,8,3          ## @RNDIS_HEADER_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rndis message buffer overflow detected (got %u, min %u)...dropping this message!\n"

	.comm	_IEEE_8021Q_INFO,4,2            ## @IEEE_8021Q_INFO
	.comm	_VLAN_TAG_PRESENT,4,2           ## @VLAN_TAG_PRESENT
	.comm	_VLAN_PRIO_SHIFT,4,2            ## @VLAN_PRIO_SHIFT
	.no_dead_strip	_rndis_filter_receive_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rndis_filter_receive_data
_rndis_filter_receive_data:             ; @rndis_filter_receive_data
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x8, _RNDIS_HEADER_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RNDIS_HEADER_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x2]
	ldp	x10, x3, [x1]
	add	x8, x10, x8
	sub	x2, x9, x8
	str	x2, [x19]
	cmp	x2, x3
	b.ge	LBB0_2
; %bb.1:
	ldr	x8, [x20]
	ldr	w0, [x8, #4]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_netdev_err
LBB0_2:
	str	x3, [x19]
	ldr	x9, [x19, #16]
	add	x8, x8, x9
	str	x8, [x19, #16]
	mov	w8, #1
	str	w8, [x19, #8]
Lloh5:
	adrp	x8, _IEEE_8021Q_INFO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IEEE_8021Q_INFO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	mov	x0, x1
	mov	x1, x8
	bl	_rndis_get_ppi
	cbz	x0, LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _VLAN_TAG_PRESENT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VLAN_TAG_PRESENT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldp	w9, w10, [x0]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _VLAN_PRIO_SHIFT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _VLAN_PRIO_SHIFT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	lsl	w9, w10, w9
	orr	w8, w8, w9
	b	LBB0_5
LBB0_4:
	mov	w8, #0
LBB0_5:
	str	w8, [x19, #12]
	ldr	x8, [x20]
	ldr	w0, [x8]
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_netvsc_recv_callback
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_RNDIS_HEADER_SIZE,8,3          ; @RNDIS_HEADER_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rndis message buffer overflow detected (got %u, min %u)...dropping this message!\n"

	.comm	_IEEE_8021Q_INFO,4,2            ; @IEEE_8021Q_INFO
	.comm	_VLAN_TAG_PRESENT,4,2           ; @VLAN_TAG_PRESENT
	.comm	_VLAN_PRIO_SHIFT,4,2            ; @VLAN_PRIO_SHIFT
	.no_dead_strip	_rndis_filter_receive_data
.subsections_via_symbols
