	.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	%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	%r8, %r13
	movq	%rcx, %rbx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_RNDIS_HEADER_SIZE@GOTPCREL(%rip), %rax
	movq	(%rcx), %r15
	addq	(%rax), %r15
	subq	%r15, %r13
	xorl	%edi, %edi
	cmpq	8(%rcx), %r13
	setl	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	8(%rbx), %rcx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_netdev_err
	jmp	LBB0_16
LBB0_2:
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_IEEE_8021Q_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rndis_get_ppi
	movq	%rax, %r14
	movq	_TCPIP_CHKSUM_PKTINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rndis_get_ppi
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_RNDIS_PKTINFO_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_rndis_get_ppi
	testq	%rax, %rax
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_10
## %bb.3:
	movl	(%rax), %ecx
	movq	_RNDIS_PKTINFO_SUBALLOC@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_10
## %bb.4:
	movq	_RNDIS_PKTINFO_1ST_FRAG@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_6
## %bb.5:
	movq	%r13, %r12
	movq	$0, (%r13)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_10:
	movq	$0, (%r13)
	movb	$1, %r14b
	xorl	%eax, %eax
	movq	%r13, %r12
	jmp	LBB0_11
LBB0_6:
	movq	%r13, %r12
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_15
LBB0_7:
	movq	_RNDIS_PKTINFO_LAST_FRAG@GOTPCREL(%rip), %rdx
	movb	$1, %r14b
	testl	%ecx, (%rdx)
	je	LBB0_8
LBB0_11:
	movq	_NVSP_RSC_MAX@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setge	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_12
LBB0_15:
	movq	$0, (%r12)
LBB0_16:
	movq	_NVSP_STAT_FAIL@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
LBB0_18:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	addq	%rbx, %r15
	movq	8(%rbx), %r8
	movq	%r12, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
	callq	_rsc_add_data
	testb	%r14b, %r14b
	je	LBB0_13
## %bb.14:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_netvsc_recv_callback
	movq	$0, (%r12)
	jmp	LBB0_18
LBB0_13:
	movq	_NVSP_STAT_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_8:
	cmpq	$0, 8(%r12)
	jne	LBB0_15
## %bb.9:
	xorl	%r14d, %r14d
	jmp	LBB0_11
	.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	_NVSP_STAT_FAIL,4,2             ## @NVSP_STAT_FAIL
	.comm	_IEEE_8021Q_INFO,4,2            ## @IEEE_8021Q_INFO
	.comm	_TCPIP_CHKSUM_PKTINFO,4,2       ## @TCPIP_CHKSUM_PKTINFO
	.comm	_RNDIS_PKTINFO_ID,4,2           ## @RNDIS_PKTINFO_ID
	.comm	_RNDIS_PKTINFO_SUBALLOC,4,2     ## @RNDIS_PKTINFO_SUBALLOC
	.comm	_RNDIS_PKTINFO_1ST_FRAG,4,2     ## @RNDIS_PKTINFO_1ST_FRAG
	.comm	_RNDIS_PKTINFO_LAST_FRAG,4,2    ## @RNDIS_PKTINFO_LAST_FRAG
	.comm	_NVSP_RSC_MAX,8,3               ## @NVSP_RSC_MAX
	.comm	_NVSP_STAT_SUCCESS,4,2          ## @NVSP_STAT_SUCCESS
	.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	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x3
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldp	x8, x10, [x3]
Lloh0:
	adrp	x9, _RNDIS_HEADER_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RNDIS_HEADER_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x25, x8, x9
	sub	x23, x4, x25
	cmp	x23, x10
	cset	w0, lt
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x3, [x22, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x23
	bl	_netdev_err
	b	LBB0_12
LBB0_2:
Lloh5:
	adrp	x8, _IEEE_8021Q_INFO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IEEE_8021Q_INFO@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x22
	mov	w2, #0
	bl	_rndis_get_ppi
	mov	x23, x0
Lloh8:
	adrp	x8, _TCPIP_CHKSUM_PKTINFO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TCPIP_CHKSUM_PKTINFO@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x22
	mov	w2, #0
	bl	_rndis_get_ppi
	mov	x24, x0
Lloh11:
	adrp	x8, _RNDIS_PKTINFO_ID@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RNDIS_PKTINFO_ID@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x22
	mov	w2, #1
	bl	_rndis_get_ppi
	cbz	x0, LBB0_6
; %bb.3:
	ldr	w9, [x0]
Lloh14:
	adrp	x8, _RNDIS_PKTINFO_SUBALLOC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RNDIS_PKTINFO_SUBALLOC@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_6
; %bb.4:
Lloh17:
	adrp	x8, _RNDIS_PKTINFO_1ST_FRAG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RNDIS_PKTINFO_1ST_FRAG@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_7
; %bb.5:
	mov	x8, #0
	str	xzr, [x19]
	b	LBB0_8
LBB0_6:
	mov	x8, #0
	str	xzr, [x19]
	b	LBB0_9
LBB0_7:
	ldr	x8, [x19]
	cbz	x8, LBB0_11
LBB0_8:
Lloh20:
	adrp	x10, _RNDIS_PKTINFO_LAST_FRAG@GOTPAGE
Lloh21:
	ldr	x10, [x10, _RNDIS_PKTINFO_LAST_FRAG@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_18
LBB0_9:
	mov	w26, #1
LBB0_10:
Lloh23:
	adrp	x9, _NVSP_RSC_MAX@GOTPAGE
Lloh24:
	ldr	x9, [x9, _NVSP_RSC_MAX@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ge
	bl	_unlikely
	cbz	x0, LBB0_15
LBB0_11:
	str	xzr, [x19]
LBB0_12:
Lloh26:
	adrp	x8, _NVSP_STAT_FAIL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _NVSP_STAT_FAIL@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_15:
	add	x3, x22, x25
	ldr	x4, [x22, #8]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	bl	_rsc_add_data
	tbz	w26, #0, LBB0_17
; %bb.16:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_netvsc_recv_callback
	str	xzr, [x19]
	b	LBB0_14
LBB0_17:
Lloh28:
	adrp	x8, _NVSP_STAT_SUCCESS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _NVSP_STAT_SUCCESS@GOTPAGEOFF]
	b	LBB0_13
LBB0_18:
	ldr	x9, [x19, #8]
	cbnz	x9, LBB0_11
; %bb.19:
	mov	w26, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.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	_NVSP_STAT_FAIL,4,2             ; @NVSP_STAT_FAIL
	.comm	_IEEE_8021Q_INFO,4,2            ; @IEEE_8021Q_INFO
	.comm	_TCPIP_CHKSUM_PKTINFO,4,2       ; @TCPIP_CHKSUM_PKTINFO
	.comm	_RNDIS_PKTINFO_ID,4,2           ; @RNDIS_PKTINFO_ID
	.comm	_RNDIS_PKTINFO_SUBALLOC,4,2     ; @RNDIS_PKTINFO_SUBALLOC
	.comm	_RNDIS_PKTINFO_1ST_FRAG,4,2     ; @RNDIS_PKTINFO_1ST_FRAG
	.comm	_RNDIS_PKTINFO_LAST_FRAG,4,2    ; @RNDIS_PKTINFO_LAST_FRAG
	.comm	_NVSP_RSC_MAX,8,3               ; @NVSP_RSC_MAX
	.comm	_NVSP_STAT_SUCCESS,4,2          ; @NVSP_STAT_SUCCESS
	.no_dead_strip	_rndis_filter_receive_data
.subsections_via_symbols
