	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qedr_dereg_mr                  ## -- Begin function qedr_dereg_mr
	.p2align	4, 0x90
_qedr_dereg_mr:                         ## @qedr_dereg_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	%rdi, %rbx
	callq	_get_qedr_mr
	movq	%rax, %r15
	movl	(%rbx), %edi
	callq	_get_qedr_dev
	movq	%rax, %rbx
	movq	8(%rax), %rax
	movl	(%rbx), %edi
	movl	20(%r15), %esi
	callq	*(%rax)
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	8(%rbx), %rax
	movl	(%rbx), %edi
	movl	20(%r15), %esi
	callq	*8(%rax)
	movq	(%r15), %rax
	movq	_QEDR_MR_DMA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.2:
	movq	_QEDR_MR_FRMR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	%r15, %rsi
	addq	$16, %rsi
	movl	12(%r15), %edx
	movq	%rbx, %rdi
	callq	_qedr_free_pbl
LBB0_4:
	movl	8(%r15), %edi
	callq	_ib_umem_release
	movq	%r15, %rdi
	callq	_kfree
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QEDR_MR_DMA,8,3                ## @QEDR_MR_DMA
	.comm	_QEDR_MR_FRMR,8,3               ## @QEDR_MR_FRMR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qedr_dereg_mr                  ; -- Begin function qedr_dereg_mr
	.p2align	2
_qedr_dereg_mr:                         ; @qedr_dereg_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	x20, x0
	bl	_get_qedr_mr
	mov	x19, x0
	ldr	w0, [x20]
	bl	_get_qedr_dev
	mov	x21, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	w0, [x0]
	ldr	w1, [x19, #20]
	blr	x8
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	x8, [x21, #8]
	ldr	x8, [x8, #8]
	ldr	w0, [x21]
	ldr	w1, [x19, #20]
	blr	x8
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _QEDR_MR_DMA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QEDR_MR_DMA@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _QEDR_MR_FRMR@GOTPAGE
Lloh4:
	ldr	x10, [x10, _QEDR_MR_FRMR@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_3
; %bb.2:
	add	x1, x19, #16
	ldr	w2, [x19, #12]
	mov	x0, x21
	bl	_qedr_free_pbl
LBB0_3:
	ldr	w0, [x19, #8]
	bl	_ib_umem_release
	mov	x0, x19
	bl	_kfree
LBB0_4:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_QEDR_MR_DMA,8,3                ; @QEDR_MR_DMA
	.comm	_QEDR_MR_FRMR,8,3               ; @QEDR_MR_FRMR
.subsections_via_symbols
