	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rvt_free_lkey
_rvt_free_lkey:                         ## @rvt_free_lkey
	.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
	movq	%rdi, %rbx
	movl	(%rdi), %r12d
	movq	16(%rdi), %rax
	movl	(%rax), %edi
	callq	_ib_to_rvt
	movq	%rax, %r15
	movq	%rax, %r14
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	8(%rbx), %rax
	testl	%r12d, %r12d
	je	LBB0_1
## %bb.3:
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	xorl	%ecx, %ecx
	movb	(%r15), %al
	subb	%al, %cl
                                        ## kill: def $cl killed $cl killed $rcx
	sarl	%cl, %r12d
	movq	$0, 8(%rbx)
	movq	16(%r15), %rax
	movslq	%r12d, %rcx
	movl	(%rax,%rcx,4), %edi
	xorl	%esi, %esi
	callq	_rcu_assign_pointer
	jmp	LBB0_5
LBB0_1:
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	$0, 8(%rbx)
	movl	4(%r15), %edi
	xorl	%esi, %esi
	callq	_rcu_assign_pointer
	movq	%rbx, %rdi
	callq	_rvt_put_mr
LBB0_5:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	addq	$4, %rbx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_percpu_ref_kill                ## TAILCALL
LBB0_6:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rvt_free_lkey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rvt_free_lkey
_rvt_free_lkey:                         ; @rvt_free_lkey
	.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, x0
	ldr	w22, [x0]
	ldr	x8, [x0, #16]
	ldr	w0, [x8]
	bl	_ib_to_rvt
	mov	x21, x0
	add	x20, x0, #8
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #8]
	cbz	w22, LBB0_3
; %bb.1:
	cbz	x8, LBB0_6
; %bb.2:
	ldr	w8, [x21]
	neg	w8, w8
	asr	w8, w22, w8
	str	xzr, [x19, #8]
	ldr	x9, [x21, #16]
	ldr	w0, [x9, w8, sxtw #2]
	mov	x1, #0
	bl	_rcu_assign_pointer
	b	LBB0_5
LBB0_3:
	cbz	x8, LBB0_5
; %bb.4:
	str	xzr, [x19, #8]
	ldr	w0, [x21, #4]
	mov	x1, #0
	bl	_rcu_assign_pointer
	mov	x0, x19
	bl	_rvt_put_mr
LBB0_5:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	add	x0, x19, #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
	b	_percpu_ref_kill
LBB0_6:
	mov	x0, 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	_spin_unlock_irqrestore
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rvt_free_lkey
.subsections_via_symbols
