	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xenvif_rx_copy_add
_xenvif_rx_copy_add:                    ## @xenvif_rx_copy_add
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r13
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	movq	_COPY_BATCH_SIZE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_xenvif_rx_copy_flush
	movq	(%rbx), %r15
LBB0_2:
	movq	16(%rbx), %r14
	movq	%r13, %rdi
	callq	_virt_to_page
	movq	_GNTCOPY_dest_gref@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	(%r15,%r15,4), %r15
	movl	%ecx, 36(%r14,%r15,8)
	movq	%rax, %rdi
	callq	_xen_page_foreign
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	(%r14,%r15,8), %rcx
	addq	$36, %rcx
	movl	4(%rax), %edx
	movl	%edx, 24(%r14,%r15,8)
	movl	(%rax), %eax
	movl	%eax, 32(%r14,%r15,8)
	movq	_GNTCOPY_source_gref@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rcx)
	jmp	LBB0_5
LBB0_4:
	movq	%r13, %rdi
	callq	_virt_to_gfn
	movl	%eax, 28(%r14,%r15,8)
	movq	_DOMID_SELF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14,%r15,8)
LBB0_5:
	movq	%r13, %rdi
	callq	_xen_offset_in_page
	movl	%eax, 20(%r14,%r15,8)
	movl	(%r12), %eax
	movl	%eax, 16(%r14,%r15,8)
	movq	32(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14,%r15,8)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%r14,%r15,8)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r14,%r15,8)
	movl	24(%rbx), %eax
	movq	(%rbx), %rcx
	movq	8(%rbx), %rdx
	movl	%eax, (%rdx,%rcx,4)
	incq	%rcx
	movq	%rcx, (%rbx)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COPY_BATCH_SIZE,8,3            ## @COPY_BATCH_SIZE
	.comm	_GNTCOPY_dest_gref,4,2          ## @GNTCOPY_dest_gref
	.comm	_GNTCOPY_source_gref,4,2        ## @GNTCOPY_source_gref
	.comm	_DOMID_SELF,4,2                 ## @DOMID_SELF
	.no_dead_strip	_xenvif_rx_copy_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xenvif_rx_copy_add
_xenvif_rx_copy_add:                    ; @xenvif_rx_copy_add
	.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	x20, x4
	mov	x23, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x24, [x0]
Lloh0:
	adrp	x8, _COPY_BATCH_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COPY_BATCH_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x24, x8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_xenvif_rx_copy_flush
	ldr	x24, [x19]
LBB0_2:
	ldr	x25, [x19, #16]
	mov	x0, x23
	bl	_virt_to_page
Lloh3:
	adrp	x8, _GNTCOPY_dest_gref@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GNTCOPY_dest_gref@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	w9, #40
	madd	x26, x24, x9, x25
	str	w8, [x26, #36]!
	bl	_xen_page_foreign
	cbz	x0, LBB0_4
; %bb.3:
	mov	w8, #40
	madd	x8, x24, x8, x25
	ldp	w10, w9, [x0]
	str	w9, [x8, #24]
	str	w10, [x8, #32]
Lloh6:
	adrp	x8, _GNTCOPY_source_gref@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GNTCOPY_source_gref@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x26]
	orr	w8, w9, w8
	str	w8, [x26]
	b	LBB0_5
LBB0_4:
	mov	x0, x23
	bl	_virt_to_gfn
	mov	w8, #40
	madd	x8, x24, x8, x25
	str	w0, [x8, #28]
Lloh9:
	adrp	x9, _DOMID_SELF@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DOMID_SELF@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	str	w9, [x8, #24]
LBB0_5:
	mov	x0, x23
	bl	_xen_offset_in_page
	mov	w8, #40
	madd	x8, x24, x8, x25
	ldr	w9, [x22]
	stp	w9, w0, [x8, #16]
	ldr	x9, [x19, #32]
	ldr	w9, [x9]
	stp	w21, w9, [x8, #8]
	str	x20, [x8]
	ldr	w8, [x19, #24]
	ldp	x10, x9, [x19]
	str	w8, [x9, x10, lsl #2]
	add	x8, x10, #1
	str	x8, [x19]
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_COPY_BATCH_SIZE,8,3            ; @COPY_BATCH_SIZE
	.comm	_GNTCOPY_dest_gref,4,2          ; @GNTCOPY_dest_gref
	.comm	_GNTCOPY_source_gref,4,2        ; @GNTCOPY_source_gref
	.comm	_DOMID_SELF,4,2                 ; @DOMID_SELF
	.no_dead_strip	_xenvif_rx_copy_add
.subsections_via_symbols
