	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nicvf_get_rcv_skb              ## -- Begin function nicvf_get_rcv_skb
	.p2align	4, 0x90
_nicvf_get_rcv_skb:                     ## @nicvf_get_rcv_skb
	.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
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rsi)
	jle	LBB0_1
## %bb.2:
	movq	%rsi, %r12
	xorl	%eax, %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$0, (%rcx)
	setne	%al
	leaq	(%rsi,%rax,8), %rbx
	addq	$48, %rbx
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rdx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_nicvf_unmap_rcv_buffer
	movq	%r15, %rdi
	callq	_phys_to_virt
	movl	%eax, %edi
	callq	_virt_to_page
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_phys_to_virt
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_page_address
	subl	%eax, %r15d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_skb_shinfo
	movl	(%rax), %esi
	movq	_RCV_FRAG_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%rbx, %rdi
	movq	%r12, %rdx
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	callq	_skb_add_rx_frag
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	cmpl	(%r12), %r13d
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	jge	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	callq	_frag_num
	movl	24(%r12,%rax,4), %r14d
	movq	(%rbx,%r13,8), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_nicvf_iova_to_phys
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r15
	movq	(%rbx,%r13,8), %rsi
	testl	%r13d, %r13d
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	subq	8(%r12), %rsi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r15, %rdx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_nicvf_unmap_rcv_buffer
	subq	8(%r12), %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_nicvf_rb_ptr_to_skb
	testq	%rax, %rax
	je	LBB0_1
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rbx
	movq	8(%r12), %rsi
	movq	%rax, %rdi
	callq	_skb_reserve
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_skb_put
	jmp	LBB0_10
LBB0_4:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.5:
	callq	_dev_kfree_skb_any
LBB0_1:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_11:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RCV_FRAG_LEN,4,2               ## @RCV_FRAG_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nicvf_get_rcv_skb              ; -- Begin function nicvf_get_rcv_skb
	.p2align	2
_nicvf_get_rcv_skb:                     ; @nicvf_get_rcv_skb
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x27, x1
	ldr	w8, [x27], #24
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x22, #0
	mov	x23, #0
	ldr	w8, [x0]
	add	x9, x1, #48
	add	x10, x1, #56
	cmp	w8, #0
	csel	x28, x9, x10, eq
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x2, x25
	mov	x3, x19
	bl	_nicvf_unmap_rcv_buffer
	mov	x0, x25
	bl	_phys_to_virt
	bl	_virt_to_page
	mov	x26, x0
	mov	x0, x25
	bl	_phys_to_virt
	mov	x25, x0
	mov	x0, x26
	bl	_page_address
	sub	w25, w25, w0
	mov	x0, x23
	bl	_skb_shinfo
	ldr	w1, [x0]
Lloh0:
	adrp	x8, _RCV_FRAG_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RCV_FRAG_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w5, [x8]
	mov	x0, x23
	mov	x2, x26
	mov	x3, x25
	mov	x4, x24
	bl	_skb_add_rx_frag
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20]
	add	x22, x22, #1
	cmp	w22, w8
	b.ge	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_frag_num
	ldr	w24, [x27, x0, lsl #2]
	ldr	x1, [x28, x22, lsl #3]
	mov	x0, x21
	bl	_nicvf_iova_to_phys
	cbz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, x0
	ldr	x1, [x28, x22, lsl #3]
	cbnz	w22, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #8]
	sub	x1, x1, x8
	mov	x0, x21
	mov	x2, x25
	mov	x3, x19
	bl	_nicvf_unmap_rcv_buffer
	ldr	x8, [x20, #8]
	sub	x1, x25, x8
	mov	x0, x21
	mov	x2, x24
	bl	_nicvf_rb_ptr_to_skb
	mov	x23, x0
	cbz	x0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x20, #8]
	mov	x0, x23
	bl	_skb_reserve
	mov	x0, x23
	mov	x1, x24
	bl	_skb_put
	b	LBB0_3
LBB0_8:
	cbz	x23, LBB0_11
; %bb.9:
	mov	x0, x23
	bl	_dev_kfree_skb_any
LBB0_10:
	mov	x23, #0
LBB0_11:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RCV_FRAG_LEN,4,2               ; @RCV_FRAG_LEN
.subsections_via_symbols
