	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xenvif_set_hash_key            ## -- Begin function xenvif_set_hash_key
	.p2align	4, 0x90
_xenvif_set_hash_key:                   ## @xenvif_set_hash_key
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	movq	%rdx, -88(%rbp)
	movq	$0, -80(%rbp)
	movq	_GNTCOPY_source_gref@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	%r15, %rdi
	callq	_xen_offset_in_page
	movl	%eax, -68(%rbp)
	movq	_DOMID_SELF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	%r15, %rdi
	callq	_virt_to_gfn
	movl	%eax, -60(%rbp)
	movl	(%r14), %eax
	movl	%eax, -56(%rbp)
	movq	%r12, -48(%rbp)
	movq	_XEN_NETBK_MAX_HASH_KEY_SIZE@GOTPCREL(%rip), %r13
	movq	(%r13), %rdx
	movq	_XEN_NETIF_CTRL_STATUS_INVALID_PARAMETER@GOTPCREL(%rip), %r12
	cmpq	%rbx, %rdx
	jl	LBB0_7
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.2:
	leaq	-88(%rbp), %rdi
	movl	$1, %esi
	callq	_gnttab_batch_copy
	movq	-80(%rbp), %rax
	movq	_GNTST_okay@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.3:
	movq	(%r13), %rdx
LBB0_4:
	subq	%rbx, %rdx
	jle	LBB0_6
## %bb.5:
	leaq	(%r15,%rbx,4), %rdi
	xorl	%esi, %esi
	callq	_memset
LBB0_6:
	movq	%r14, %rdi
	callq	_xenvif_flush_hash
	movq	_XEN_NETIF_CTRL_STATUS_SUCCESS@GOTPCREL(%rip), %r12
LBB0_7:
	movq	(%r12), %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GNTCOPY_source_gref,4,2        ## @GNTCOPY_source_gref
	.comm	_DOMID_SELF,4,2                 ## @DOMID_SELF
	.comm	_XEN_NETBK_MAX_HASH_KEY_SIZE,8,3 ## @XEN_NETBK_MAX_HASH_KEY_SIZE
	.comm	_XEN_NETIF_CTRL_STATUS_INVALID_PARAMETER,8,3 ## @XEN_NETIF_CTRL_STATUS_INVALID_PARAMETER
	.comm	_GNTST_okay,8,3                 ## @GNTST_okay
	.comm	_XEN_NETIF_CTRL_STATUS_SUCCESS,8,3 ## @XEN_NETIF_CTRL_STATUS_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xenvif_set_hash_key            ; -- Begin function xenvif_set_hash_key
	.p2align	2
_xenvif_set_hash_key:                   ; @xenvif_set_hash_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x21, [x0, #8]
	stp	x2, xzr, [sp]
Lloh0:
	adrp	x8, _GNTCOPY_source_gref@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GNTCOPY_source_gref@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	mov	x0, x21
	bl	_xen_offset_in_page
Lloh3:
	adrp	x8, _DOMID_SELF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DOMID_SELF@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	stp	w0, w8, [sp, #20]
	mov	x0, x21
	bl	_virt_to_gfn
	ldr	w8, [x19]
	stp	w0, w8, [sp, #28]
	str	x22, [sp, #40]
Lloh6:
	adrp	x22, _XEN_NETBK_MAX_HASH_KEY_SIZE@GOTPAGE
Lloh7:
	ldr	x22, [x22, _XEN_NETBK_MAX_HASH_KEY_SIZE@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x8, x20
	b.lt	LBB0_7
; %bb.1:
	cbz	x20, LBB0_4
; %bb.2:
	mov	x0, sp
	mov	w1, #1
	bl	_gnttab_batch_copy
	ldr	x8, [sp, #8]
Lloh8:
	adrp	x9, _GNTST_okay@GOTPAGE
Lloh9:
	ldr	x9, [x9, _GNTST_okay@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:
	ldr	x8, [x22]
LBB0_4:
	subs	x2, x8, x20
	b.le	LBB0_6
; %bb.5:
	add	x0, x21, x20, lsl #2
	mov	w1, #0
	bl	_memset
LBB0_6:
	mov	x0, x19
	bl	_xenvif_flush_hash
Lloh11:
	adrp	x8, _XEN_NETIF_CTRL_STATUS_SUCCESS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _XEN_NETIF_CTRL_STATUS_SUCCESS@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh13:
	adrp	x8, _XEN_NETIF_CTRL_STATUS_INVALID_PARAMETER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _XEN_NETIF_CTRL_STATUS_INVALID_PARAMETER@GOTPAGEOFF]
LBB0_8:
	ldr	x0, [x8]
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_GNTCOPY_source_gref,4,2        ; @GNTCOPY_source_gref
	.comm	_DOMID_SELF,4,2                 ; @DOMID_SELF
	.comm	_XEN_NETBK_MAX_HASH_KEY_SIZE,8,3 ; @XEN_NETBK_MAX_HASH_KEY_SIZE
	.comm	_XEN_NETIF_CTRL_STATUS_INVALID_PARAMETER,8,3 ; @XEN_NETIF_CTRL_STATUS_INVALID_PARAMETER
	.comm	_GNTST_okay,8,3                 ; @GNTST_okay
	.comm	_XEN_NETIF_CTRL_STATUS_SUCCESS,8,3 ; @XEN_NETIF_CTRL_STATUS_SUCCESS
.subsections_via_symbols
