	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scif_cleanup_scifdev           ## -- Begin function scif_cleanup_scifdev
	.p2align	4, 0x90
_scif_cleanup_scifdev:                  ## @scif_cleanup_scifdev
	.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	16(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	callq	_scifdev_is_p2p
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	movq	(%r14), %rax
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	*(%rax)
	movq	$0, 8(%rbx)
LBB0_4:
	movq	%rbx, %rdi
	callq	_scif_destroy_intr_wq
LBB0_5:
	movq	_scif_info@GOTPCREL(%rip), %r15
	leaq	4(%r15), %r14
	movq	%r14, %rdi
	callq	_flush_work
	movq	%rbx, %rdi
	callq	_scif_destroy_p2p
	movl	(%rbx), %edi
	callq	_scif_invalidate_ep
	movl	(%rbx), %edi
	callq	_scif_zap_mmaps
	movl	(%rbx), %edi
	callq	_scif_cleanup_rma_for_zombies
	movq	%r14, %rdi
	callq	_flush_work
	movq	%rbx, %rdi
	callq	_scif_send_acks
	cmpl	$0, (%rbx)
	jne	LBB0_8
## %bb.6:
	cmpl	$0, (%r15)
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_scif_send_exit
	movl	$0, (%r15)
LBB0_8:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_scif_cleanup_qp                ## TAILCALL
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_scif_info,8,2                  ## @scif_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scif_cleanup_scifdev           ; -- Begin function scif_cleanup_scifdev
	.p2align	2
_scif_cleanup_scifdev:                  ; @scif_cleanup_scifdev
	.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
	ldr	x20, [x0, #16]
	cbz	x20, LBB0_9
; %bb.1:
	mov	x19, x0
	bl	_scifdev_is_p2p
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_4
; %bb.3:
	ldr	x8, [x20]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x2, x19
	blr	x8
	str	xzr, [x19, #8]
LBB0_4:
	mov	x0, x19
	bl	_scif_destroy_intr_wq
LBB0_5:
Lloh0:
	adrp	x21, _scif_info@GOTPAGE
Lloh1:
	ldr	x21, [x21, _scif_info@GOTPAGEOFF]
	add	x20, x21, #4
	mov	x0, x20
	bl	_flush_work
	mov	x0, x19
	bl	_scif_destroy_p2p
	ldr	w0, [x19]
	bl	_scif_invalidate_ep
	ldr	w0, [x19]
	bl	_scif_zap_mmaps
	ldr	w0, [x19]
	bl	_scif_cleanup_rma_for_zombies
	mov	x0, x20
	bl	_flush_work
	mov	x0, x19
	bl	_scif_send_acks
	ldr	w8, [x19]
	cbnz	w8, LBB0_8
; %bb.6:
	ldr	w8, [x21]
	cbz	w8, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_scif_send_exit
	str	wzr, [x21]
LBB0_8:
	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	_scif_cleanup_qp
LBB0_9:
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_scif_info,8,2                  ; @scif_info
.subsections_via_symbols
