	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_re_destroy_fence_mr
_bnxt_re_destroy_fence_mr:              ## @bnxt_re_destroy_fence_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r12
	movq	16(%rdi), %r15
	movq	8(%r12), %rax
	movq	(%rax), %r14
	movq	24(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_bnxt_re_dealloc_mw
	movq	$0, 24(%rbx)
LBB0_2:
	testq	%r15, %r15
	je	LBB0_8
## %bb.3:
	cmpq	$0, 16(%r15)
	je	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_bnxt_qplib_dereg_mrw
LBB0_5:
	cmpq	$0, 8(%r15)
	je	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_bnxt_qplib_free_mrw
LBB0_7:
	movq	%r15, %rdi
	callq	_kfree
	movq	$0, 16(%rbx)
LBB0_8:
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.9:
	movq	_BNXT_RE_FENCE_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_dma_unmap_single
	movq	$0, 8(%rbx)
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNXT_RE_FENCE_BYTES,4,2        ## @BNXT_RE_FENCE_BYTES
	.comm	_DMA_BIDIRECTIONAL,4,2          ## @DMA_BIDIRECTIONAL
	.no_dead_strip	_bnxt_re_destroy_fence_mr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_re_destroy_fence_mr
_bnxt_re_destroy_fence_mr:              ; @bnxt_re_destroy_fence_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, x0
	ldr	x22, [x0]
	ldr	x8, [x22, #8]
	ldr	x20, [x8]
	ldp	x21, x0, [x0, #16]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_bnxt_re_dealloc_mw
	str	xzr, [x19, #24]
LBB0_2:
	cbz	x21, LBB0_8
; %bb.3:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x22
	mov	x1, x21
	mov	w2, #1
	bl	_bnxt_qplib_dereg_mrw
LBB0_5:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x22
	mov	x1, x21
	bl	_bnxt_qplib_free_mrw
LBB0_7:
	mov	x0, x21
	bl	_kfree
	str	xzr, [x19, #16]
LBB0_8:
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_10
; %bb.9:
Lloh0:
	adrp	x8, _BNXT_RE_FENCE_BYTES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNXT_RE_FENCE_BYTES@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _DMA_BIDIRECTIONAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA_BIDIRECTIONAL@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_dma_unmap_single
	str	xzr, [x19, #8]
LBB0_10:
	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	_BNXT_RE_FENCE_BYTES,4,2        ; @BNXT_RE_FENCE_BYTES
	.comm	_DMA_BIDIRECTIONAL,4,2          ; @DMA_BIDIRECTIONAL
	.no_dead_strip	_bnxt_re_destroy_fence_mr
.subsections_via_symbols
