	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scif_disconnect_node           ## -- Begin function scif_disconnect_node
	.p2align	4, 0x90
_scif_disconnect_node:                  ## @scif_disconnect_node
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	movq	%rdi, %r12
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	_scif_dev@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rdi,8), %r14
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	_scif_info@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	xorl	%r15d, %r15d
	movl	$1, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpq	%rax, %rbx
	ja	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, %r12
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_scif_send_rmnode_msg
	cmpl	$1, %eax
	adcl	$0, %r15d
	movq	(%r13), %rax
	jmp	LBB0_5
LBB0_6:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	4(%r13,%r12,8), %ebx
	movq	%r14, %rdi
	callq	_atomic_read
	xorl	%esi, %esi
	cmpl	%r15d, %eax
	sete	%sil
	movq	_SCIF_NODE_ALIVE_TIMEOUT@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movl	%ebx, %edi
	callq	_wait_event_timeout
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_9
## %bb.7:
	movq	%r14, %rdi
	callq	__scifdev_alive
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_scif_send_exit
LBB0_9:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	_SCIF_MGMT_NODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r12, %rsi
	callq	_scif_send_rmnode_msg
	testl	%eax, %eax
	je	LBB0_11
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	4(%r13,%r12,8), %ebx
	movq	%r14, %rdi
	callq	_atomic_read
	xorl	%esi, %esi
	cmpl	$1, %eax
	sete	%sil
	movl	(%r15), %edx
	movl	%ebx, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wait_event_timeout             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_scif_dev,8,3                   ## @scif_dev
	.comm	_scif_info,8,3                  ## @scif_info
	.comm	_SCIF_NODE_ALIVE_TIMEOUT,4,2    ## @SCIF_NODE_ALIVE_TIMEOUT
	.comm	_SCIF_MGMT_NODE,8,3             ## @SCIF_MGMT_NODE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scif_disconnect_node           ; -- Begin function scif_disconnect_node
	.p2align	2
_scif_disconnect_node:                  ; @scif_disconnect_node
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	cbz	x0, LBB0_11
; %bb.1:
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _scif_dev@GOTPAGE
Lloh1:
	ldr	x8, [x8, _scif_dev@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	add	x19, x23, x0, lsl #3
	mov	x0, x19
	mov	w1, #0
	bl	_atomic_set
Lloh3:
	adrp	x25, _scif_info@GOTPAGE
Lloh4:
	ldr	x25, [x25, _scif_info@GOTPAGEOFF]
	ldr	x8, [x25]
	cbz	x8, LBB0_6
; %bb.2:
	mov	w24, #0
	mov	w22, #1
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	cmp	x22, x8
	b.hi	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x20, x22
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	mov	x1, x20
	bl	_scif_send_rmnode_msg
	cmp	w0, #0
	cinc	w24, w24, eq
	ldr	x8, [x25]
	b	LBB0_3
LBB0_6:
	mov	w24, #0
LBB0_7:
	add	x23, x23, x20, lsl #3
	ldr	w22, [x23, #4]!
	mov	x0, x19
	bl	_atomic_read
	cmp	w0, w24
	cset	w1, eq
Lloh5:
	adrp	x24, _SCIF_NODE_ALIVE_TIMEOUT@GOTPAGE
Lloh6:
	ldr	x24, [x24, _SCIF_NODE_ALIVE_TIMEOUT@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x22
	bl	_wait_event_timeout
	cbz	w21, LBB0_10
; %bb.8:
	mov	x0, x19
	bl	__scifdev_alive
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_scif_send_exit
LBB0_10:
	mov	x0, x19
	mov	w1, #0
	bl	_atomic_set
Lloh7:
	adrp	x8, _SCIF_MGMT_NODE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SCIF_MGMT_NODE@GOTPAGEOFF]
Lloh9:
	ldr	x0, [x8]
	mov	x1, x20
	bl	_scif_send_rmnode_msg
	cbz	w0, LBB0_12
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_12:
	ldr	w20, [x23]
	mov	x0, x19
	bl	_atomic_read
	cmp	w0, #1
	cset	w1, eq
	ldr	w2, [x24]
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_wait_event_timeout
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_scif_dev,8,3                   ; @scif_dev
	.comm	_scif_info,8,3                  ; @scif_info
	.comm	_SCIF_NODE_ALIVE_TIMEOUT,4,2    ; @SCIF_NODE_ALIVE_TIMEOUT
	.comm	_SCIF_MGMT_NODE,8,3             ; @SCIF_MGMT_NODE
.subsections_via_symbols
