	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvt_invalidate_rkey            ## -- Begin function rvt_invalidate_rkey
	.p2align	4, 0x90
_rvt_invalidate_rkey:                   ## @rvt_invalidate_rkey
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r14
	movl	8(%rdi), %edi
	callq	_ib_to_rvt
	testl	%r12d, %r12d
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_rcu_read_lock
	subb	(%r15), %bl
	movl	%r12d, %eax
	movl	%ebx, %ecx
	sarl	%cl, %eax
	movq	8(%r15), %rcx
	cltq
	movl	(%rcx,%rax,4), %edi
	callq	_rcu_dereference
	movq	%rax, %r15
	movl	$1, %edi
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	cmpl	%r12d, (%r15)
	jne	LBB0_5
## %bb.4:
	movq	(%r14), %rax
	xorl	%edi, %edi
	cmpq	8(%r15), %rax
	setne	%dil
LBB0_5:
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_8:
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_6:
	addq	$16, %r15
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_atomic_set
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_rcu_read_unlock
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvt_invalidate_rkey            ; -- Begin function rvt_invalidate_rkey
	.p2align	2
_rvt_invalidate_rkey:                   ; @rvt_invalidate_rkey
	.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	x21, x1
	mov	x20, x0
	ldr	w0, [x0, #8]
	bl	_ib_to_rvt
	cbz	w21, LBB0_7
; %bb.1:
	mov	x19, x0
	bl	_rcu_read_lock
	ldr	x8, [x19, #8]
	ldr	w9, [x19]
	neg	w9, w9
	asr	w9, w21, w9
	ldr	w0, [x8, w9, sxtw #2]
	bl	_rcu_dereference
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w8, [x19]
	cmp	w8, w21
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x20]
	ldr	x9, [x19, #8]
	cmp	x8, x9
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_6
LBB0_4:
	add	x0, x19, #16
	mov	w1, #1
	bl	_atomic_set
	bl	_rcu_read_unlock
	mov	w0, #0
	b	LBB0_8
LBB0_5:
	mov	w0, #1
	bl	_unlikely
	cbz	x0, LBB0_4
LBB0_6:
	bl	_rcu_read_unlock
LBB0_7:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
