	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function switchtec_ntb_deinit_shared_mw
_switchtec_ntb_deinit_shared_mw:        ## @switchtec_ntb_deinit_shared_mw
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	16(%rbx), %rax
	movq	(%rax), %rdi
	callq	_pci_iounmap
LBB0_2:
	movq	8(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.3:
	movq	16(%rbx), %rax
	movq	(%rax), %rdi
	movq	_LUT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %ecx
	callq	_dma_free_coherent
LBB0_4:
	decl	(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LUT_SIZE,4,2                   ## @LUT_SIZE
	.no_dead_strip	_switchtec_ntb_deinit_shared_mw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function switchtec_ntb_deinit_shared_mw
_switchtec_ntb_deinit_shared_mw:        ; @switchtec_ntb_deinit_shared_mw
	.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	x19, x0
	ldr	x1, [x0, #24]
	cbz	x1, LBB0_2
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	x0, [x8]
	bl	_pci_iounmap
LBB0_2:
	ldr	x2, [x19, #8]
	cbz	x2, LBB0_4
; %bb.3:
	ldr	x8, [x19, #16]
	ldr	x0, [x8]
Lloh0:
	adrp	x8, _LUT_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LUT_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w3, [x19, #4]
	bl	_dma_free_coherent
LBB0_4:
	ldr	w8, [x19]
	sub	w8, w8, #1
	str	w8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LUT_SIZE,4,2                   ; @LUT_SIZE
	.no_dead_strip	_switchtec_ntb_deinit_shared_mw
.subsections_via_symbols
