	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nicvf_xdp_rx
_nicvf_xdp_rx:                          ## @nicvf_xdp_rx
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r13
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movslq	12(%rdx), %r15
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	movl	28(%rdx), %r12d
	movl	%r12d, %esi
	callq	_nicvf_iova_to_phys
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	movl	%eax, %edi
	callq	_phys_to_virt
	movslq	%eax, %rbx
	movq	%rbx, %rdi
	callq	_virt_to_page
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_page_address
	movl	%eax, -72(%rbp)
	movq	%rbx, -96(%rbp)
	leaq	-96(%rbp), %rdi
	callq	_xdp_set_data_meta_invalid
	movq	-96(%rbp), %r13
	addq	%r13, %r15
	movq	%r15, -88(%rbp)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -80(%rbp)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	leaq	-96(%rbp), %rsi
	callq	_bpf_prog_run_xdp
	movl	%eax, %r14d
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movq	-96(%rbp), %rdx
	subq	%rdx, %r13
	movl	$0, %r15d
	cmovneq	%r13, %r15
	cmovnel	%r13d, %ebx
	subl	%ebx, %r12d
	movl	%r14d, %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_10
## %bb.3:
	movl	-88(%rbp), %ebx
	subl	%edx, %ebx
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jmpq	*%rax
LBB0_9:
	movq	%r13, %rdi
	movq	-112(%rbp), %rsi                ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%r12d, %ecx
	movl	%ebx, %r8d
	callq	_nicvf_xdp_sq_append_pkt
	jmp	LBB0_15
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_10:
	movl	%r14d, %edi
	callq	_bpf_warn_invalid_xdp_action
	movq	-64(%rbp), %r13                 ## 8-byte Reload
LBB0_11:
	movl	8(%r13), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_trace_xdp_exception
LBB0_12:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_page_ref_count
	cmpl	$1, %eax
	jne	LBB0_14
## %bb.13:
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r12d
	movq	(%r13), %rdi
	movq	_RCV_FRAG_LEN@GOTPCREL(%rip), %rax
	movq	_XDP_PACKET_HEADROOM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	addq	(%rax), %rdx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_DMA_ATTR_SKIP_CPU_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%r12d, %esi
	callq	_dma_unmap_page_attrs
LBB0_14:
	movq	%rbx, %rdi
	callq	_put_page
LBB0_15:
	movl	$1, %eax
LBB0_16:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_page_ref_count
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.5:
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r12d
	movq	(%r13), %rdi
	movq	_RCV_FRAG_LEN@GOTPCREL(%rip), %rax
	movq	_XDP_PACKET_HEADROOM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	addq	(%rax), %rdx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_DMA_ATTR_SKIP_CPU_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%r12d, %esi
	callq	_dma_unmap_page_attrs
LBB0_6:
	movq	-96(%rbp), %rdi
	movq	_RCV_FRAG_LEN@GOTPCREL(%rip), %rax
	addl	(%rax), %r15d
	movq	-120(%rbp), %rax                ## 8-byte Reload
	subl	(%rax), %r15d
	movl	%r15d, %esi
	callq	_build_skb
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %rdi
	movl	%ebx, %esi
	callq	_skb_put
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_7:
	movq	%r14, %rdi
	callq	_put_page
	xorl	%eax, %eax
	jmp	LBB0_16
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_4
	.long	L0_0_set_12
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_PAGE_MASK,4,2                  ## @PAGE_MASK
	.comm	_RCV_FRAG_LEN,8,3               ## @RCV_FRAG_LEN
	.comm	_XDP_PACKET_HEADROOM,8,3        ## @XDP_PACKET_HEADROOM
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_DMA_ATTR_SKIP_CPU_SYNC,4,2     ## @DMA_ATTR_SKIP_CPU_SYNC
	.no_dead_strip	_nicvf_xdp_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nicvf_xdp_rx
_nicvf_xdp_rx:                          ; @nicvf_xdp_rx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x19, x5
	mov	x26, x4
	mov	x24, x3
	mov	x22, x2
	mov	x23, x1
	mov	x21, x0
	ldrsw	x28, [x2, #12]
	ldr	w25, [x2, #28]
	mov	x1, x25
	bl	_nicvf_iova_to_phys
	cbz	w0, LBB0_10
; %bb.1:
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	bl	_phys_to_virt
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x27, w0
	mov	x0, x27
	bl	_virt_to_page
	mov	x19, x0
	bl	_page_address
	str	w0, [sp, #40]
	str	x27, [sp, #16]
	add	x0, sp, #16
	bl	_xdp_set_data_meta_invalid
	ldr	x20, [sp, #16]
	add	x8, x20, x28
	stp	x8, x26, [sp, #24]
	bl	_rcu_read_lock
	add	x1, sp, #16
	mov	x0, x23
	bl	_bpf_prog_run_xdp
	mov	x27, x0
	bl	_rcu_read_unlock
	ldr	x2, [sp, #16]
	subs	x8, x20, x2
	csel	x28, xzr, x8, eq
	csel	w8, wzr, w8, eq
	sub	w26, w25, w8
	sub	w8, w27, #128
	cmp	w8, #3
	b.hi	LBB0_4
; %bb.2:
	ldr	w9, [sp, #24]
	sub	w25, w9, w2
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	mov	x0, x21
	mov	x1, x24
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	x3, x26
	mov	x4, x25
	bl	_nicvf_xdp_sq_append_pkt
	b	LBB0_9
LBB0_4:
	mov	x0, x27
	bl	_bpf_warn_invalid_xdp_action
LBB0_5:
	ldr	w0, [x21, #8]
	mov	x1, x23
	mov	x2, x27
	bl	_trace_xdp_exception
LBB0_6:
	mov	x0, x19
	bl	_page_ref_count
	cmp	w0, #1
	b.ne	LBB0_8
; %bb.7:
Lloh2:
	adrp	x8, _PAGE_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PAGE_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	and	w1, w8, w26
Lloh5:
	adrp	x8, _RCV_FRAG_LEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RCV_FRAG_LEN@GOTPAGEOFF]
	ldr	x0, [x21]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _XDP_PACKET_HEADROOM@GOTPAGE
Lloh9:
	ldr	x9, [x9, _XDP_PACKET_HEADROOM@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x2, x9, x8
Lloh11:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
Lloh14:
	adrp	x8, _DMA_ATTR_SKIP_CPU_SYNC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DMA_ATTR_SKIP_CPU_SYNC@GOTPAGEOFF]
Lloh16:
	ldr	w4, [x8]
	bl	_dma_unmap_page_attrs
LBB0_8:
	mov	x0, x19
	bl	_put_page
LBB0_9:
	mov	w0, #1
LBB0_10:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_11:
	mov	x0, x19
	bl	_page_ref_count
Lloh17:
	adrp	x23, _RCV_FRAG_LEN@GOTPAGE
Lloh18:
	ldr	x23, [x23, _RCV_FRAG_LEN@GOTPAGEOFF]
	cmp	w0, #1
	b.ne	LBB0_13
; %bb.12:
Lloh19:
	adrp	x8, _PAGE_MASK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PAGE_MASK@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	and	w1, w8, w26
	ldr	x0, [x21]
	ldr	x8, [x23]
Lloh22:
	adrp	x9, _XDP_PACKET_HEADROOM@GOTPAGE
Lloh23:
	ldr	x9, [x9, _XDP_PACKET_HEADROOM@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	add	x2, x9, x8
Lloh25:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh27:
	ldr	w3, [x8]
Lloh28:
	adrp	x8, _DMA_ATTR_SKIP_CPU_SYNC@GOTPAGE
Lloh29:
	ldr	x8, [x8, _DMA_ATTR_SKIP_CPU_SYNC@GOTPAGEOFF]
Lloh30:
	ldr	w4, [x8]
	bl	_dma_unmap_page_attrs
LBB0_13:
	ldr	x0, [sp, #16]
	ldr	w8, [x23]
	ldr	w9, [x22]
	add	w8, w8, w28
	sub	w1, w8, w9
	bl	_build_skb
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	x0, [x8]
	cbz	x0, LBB0_15
; %bb.14:
	mov	x1, x25
	bl	_skb_put
	mov	w0, #0
	b	LBB0_10
LBB0_15:
	mov	x0, x19
	bl	_put_page
	mov	w0, #0
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
                                        ; -- End function
	.comm	_PAGE_MASK,4,2                  ; @PAGE_MASK
	.comm	_RCV_FRAG_LEN,8,3               ; @RCV_FRAG_LEN
	.comm	_XDP_PACKET_HEADROOM,8,3        ; @XDP_PACKET_HEADROOM
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_DMA_ATTR_SKIP_CPU_SYNC,4,2     ; @DMA_ATTR_SKIP_CPU_SYNC
	.no_dead_strip	_nicvf_xdp_rx
.subsections_via_symbols
