	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scif_peer_unregister_device    ## -- Begin function scif_peer_unregister_device
	.p2align	4, 0x90
_scif_peer_unregister_device:           ## @scif_peer_unregister_device
	.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	_mutex_lock
	leaq	8(%rbx), %rdi
	callq	_flush_work
	movl	4(%rbx), %edi
	callq	_rcu_dereference
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movl	4(%rbx), %edi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_RCU_INIT_POINTER
	xorl	%eax, %eax
	callq	_synchronize_rcu
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	4(%r15), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_dbg
	movq	%r15, %rdi
	callq	_device_unregister
	movq	_scif_info@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	decl	4(%rbx)
	movq	%rbx, %rdi
	callq	_mutex_unlock
	jmp	LBB0_3
LBB0_1:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Removing peer dnode %d\n"

	.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_peer_unregister_device    ; -- Begin function scif_peer_unregister_device
	.p2align	2
_scif_peer_unregister_device:           ; @scif_peer_unregister_device
	.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
	bl	_mutex_lock
	add	x0, x19, #8
	bl	_flush_work
	ldr	w0, [x19, #4]
	bl	_rcu_dereference
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	w0, [x19, #4]
	mov	x1, #0
	bl	_RCU_INIT_POINTER
	bl	_synchronize_rcu
	mov	x0, x19
	bl	_mutex_unlock
	ldr	w2, [x20, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	mov	x0, x20
	bl	_device_unregister
Lloh2:
	adrp	x19, _scif_info@GOTPAGE
Lloh3:
	ldr	x19, [x19, _scif_info@GOTPAGEOFF]
	mov	x0, x19
	bl	_mutex_lock
	ldr	w8, [x19, #4]
	sub	w8, w8, #1
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_mutex_unlock
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Removing peer dnode %d\n"

	.comm	_scif_info,8,2                  ; @scif_info
.subsections_via_symbols
