	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xenvif_idx_unmap               ## -- Begin function xenvif_idx_unmap
	.p2align	4, 0x90
_xenvif_idx_unmap:                      ## @xenvif_idx_unmap
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_idx_to_kaddr
	movq	_GNTMAP_host_map@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	16(%r15), %rcx
	leaq	(,%r14,4), %rbx
	movl	(%rcx,%r14,4), %ecx
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_gnttab_set_unmap_op
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_xenvif_grant_handle_reset
	addq	8(%r15), %rbx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	callq	_gnttab_unmap_refs
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	(%r15), %rcx
	movl	(%rcx), %edi
	movl	-40(%rbp), %r8d
	movl	-48(%rbp), %ecx
	movl	-44(%rbp), %r9d
	movl	%ecx, (%rsp)
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	movq	%r14, %rcx
	callq	_netdev_err
	xorl	%eax, %eax
	callq	_BUG
LBB0_2:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GNTMAP_host_map,4,2            ## @GNTMAP_host_map
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unmap fail: ret: %d pending_idx: %d host_addr: %llx handle: 0x%x status: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xenvif_idx_unmap               ; -- Begin function xenvif_idx_unmap
	.p2align	2
_xenvif_idx_unmap:                      ; @xenvif_idx_unmap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x0
	bl	_idx_to_kaddr
	mov	x1, x0
Lloh0:
	adrp	x8, _GNTMAP_host_map@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GNTMAP_host_map@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	ldr	x8, [x20, #16]
	lsl	x21, x19, #2
	ldr	w3, [x8, x21]
	mov	x0, sp
	bl	_gnttab_set_unmap_op
	mov	x0, x20
	mov	x1, x19
	bl	_xenvif_grant_handle_reset
	ldr	x8, [x20, #8]
	add	x2, x8, x21
	mov	x0, sp
	mov	x1, #0
	mov	w3, #1
	bl	_gnttab_unmap_refs
	cbz	w0, LBB0_2
; %bb.1:
	mov	x2, x0
	ldr	x8, [x20]
	ldr	w0, [x8]
	ldp	w5, w4, [sp, #4]
	ldr	w6, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x19
	bl	_netdev_err
	bl	_BUG
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GNTMAP_host_map,4,2            ; @GNTMAP_host_map
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unmap fail: ret: %d pending_idx: %d host_addr: %llx handle: 0x%x status: %d\n"

.subsections_via_symbols
