	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function clean_mr
_clean_mr:                              ## @clean_mr
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rsi), %r15d
	movq	8(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movl	(%r14), %edi
	movl	4(%rax), %esi
	callq	_mlx5_core_destroy_psv
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	8(%rbx), %rax
	movl	4(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_mlx5_ib_warn
LBB0_3:
	movl	(%r14), %edi
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	callq	_mlx5_core_destroy_psv
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	8(%rbx), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_mlx5_ib_warn
LBB0_5:
	movq	8(%rbx), %rdi
	callq	_kfree
	movq	$0, 8(%rbx)
LBB0_6:
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_destroy_mkey
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mlx5_free_priv_descs           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to destroy mem psv %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to destroy wire psv %d\n"

	.no_dead_strip	_clean_mr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function clean_mr
_clean_mr:                              ; @clean_mr
	.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, x1
	mov	x20, x0
	ldr	w21, [x1]
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_6
; %bb.1:
	ldr	w0, [x20]
	ldr	w1, [x8, #4]
	bl	_mlx5_core_destroy_psv
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	w2, [x8, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_mlx5_ib_warn
LBB0_3:
	ldr	w0, [x20]
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	bl	_mlx5_core_destroy_psv
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x19, #8]
	ldr	w2, [x8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_mlx5_ib_warn
LBB0_5:
	ldr	x0, [x19, #8]
	bl	_kfree
	str	xzr, [x19, #8]
LBB0_6:
	cbz	w21, LBB0_8
; %bb.7:
	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
LBB0_8:
	mov	x0, x20
	mov	x1, x19
	bl	_destroy_mkey
	mov	x0, x19
	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	_mlx5_free_priv_descs
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to destroy mem psv %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to destroy wire psv %d\n"

	.no_dead_strip	_clean_mr
.subsections_via_symbols
