	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nicvf_unmap_rcv_buffer
_nicvf_unmap_rcv_buffer:                ## @nicvf_unmap_rcv_buffer
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_RCV_FRAG_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ecx, %ecx
	je	LBB0_3
## %bb.1:
	movl	%edx, %edi
	callq	_phys_to_virt
	movl	%eax, %edi
	callq	_virt_to_page
	movq	%rax, %rdi
	callq	_page_ref_count
	cmpl	$1, %eax
	jne	LBB0_4
## %bb.2:
	movq	_XDP_PACKET_HEADROOM@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
LBB0_3:
	movq	(%r15), %rdi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_DMA_ATTR_SKIP_CPU_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%r14d, %esi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dma_unmap_page_attrs           ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RCV_FRAG_LEN,4,2               ## @RCV_FRAG_LEN
	.comm	_XDP_PACKET_HEADROOM,8,3        ## @XDP_PACKET_HEADROOM
	.comm	_PAGE_MASK,4,2                  ## @PAGE_MASK
	.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_unmap_rcv_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nicvf_unmap_rcv_buffer
_nicvf_unmap_rcv_buffer:                ; @nicvf_unmap_rcv_buffer
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _RCV_FRAG_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RCV_FRAG_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	cbz	w3, LBB0_3
; %bb.1:
	mov	x0, x2
	bl	_phys_to_virt
	bl	_virt_to_page
	bl	_page_ref_count
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _XDP_PACKET_HEADROOM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XDP_PACKET_HEADROOM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w20, w20, w8
Lloh6:
	adrp	x8, _PAGE_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PAGE_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w19, w8, w19
LBB0_3:
	ldr	x0, [x21]
Lloh9:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
Lloh12:
	adrp	x8, _DMA_ATTR_SKIP_CPU_SYNC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DMA_ATTR_SKIP_CPU_SYNC@GOTPAGEOFF]
Lloh14:
	ldr	w4, [x8]
	mov	x1, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_dma_unmap_page_attrs
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_RCV_FRAG_LEN,4,2               ; @RCV_FRAG_LEN
	.comm	_XDP_PACKET_HEADROOM,8,3        ; @XDP_PACKET_HEADROOM
	.comm	_PAGE_MASK,4,2                  ; @PAGE_MASK
	.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_unmap_rcv_buffer
.subsections_via_symbols
