	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mthca_free_mr                  ## -- Begin function mthca_free_mr
	.p2align	4, 0x90
_mthca_free_mr:                         ## @mthca_free_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	4(%rsi), %esi
	callq	_key_to_hw_index
	movl	(%rbx), %edx
	decl	%edx
	andl	%eax, %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_mthca_HW2SW_MPT
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_mthca_warn
LBB0_2:
	movl	4(%r14), %esi
	movq	%rbx, %rdi
	callq	_mthca_free_region
	movl	(%r14), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mthca_free_mtt                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HW2SW_MPT failed (%d)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mthca_free_mr                  ; -- Begin function mthca_free_mr
	.p2align	2
_mthca_free_mr:                         ; @mthca_free_mr
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	w1, [x1, #4]
	bl	_key_to_hw_index
	ldr	w8, [x19]
	sub	w8, w8, #1
	and	w2, w8, w0
	mov	x0, x19
	mov	x1, #0
	bl	_mthca_HW2SW_MPT
	cbz	w0, LBB0_2
; %bb.1:
	mov	x2, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mthca_warn
LBB0_2:
	ldr	w1, [x20, #4]
	mov	x0, x19
	bl	_mthca_free_region
	ldr	w1, [x20]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mthca_free_mtt
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HW2SW_MPT failed (%d)\n"

.subsections_via_symbols
