	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_sscop_disconnect
_ng_sscop_disconnect:                   ## @ng_sscop_disconnect
	.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
	callq	_NG_HOOK_NODE
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_NG_NODE_PRIVATE
	movq	%rax, %r15
	leaq	24(%rax), %r12
	movq	%r12, %rax
	cmpq	%rbx, 24(%r15)
	je	LBB0_5
## %bb.1:
	cmpq	%rbx, 16(%r15)
	je	LBB0_2
## %bb.3:
	cmpq	%rbx, 32(%r15)
	jne	LBB0_6
## %bb.4:
	movq	%r15, %rax
	addq	$32, %rax
	jmp	LBB0_5
LBB0_2:
	movq	%r15, %rax
	addq	$16, %rax
LBB0_5:
	movq	$0, (%rax)
LBB0_6:
	movl	%r14d, %edi
	callq	_NG_NODE_NUMHOOKS
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:
	cmpq	$0, (%r12)
	jne	LBB0_14
## %bb.10:
	cmpq	$0, 16(%r15)
	je	LBB0_14
## %bb.11:
	cmpq	$0, 8(%r15)
	je	LBB0_14
## %bb.12:
	movl	(%r15), %edi
	callq	_sscop_getstate
	movq	_SSCOP_IDLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.13:
	movl	(%r15), %edi
	movq	_SSCOP_RELEASE_request@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_sscop_aasig
	jmp	LBB0_14
LBB0_7:
	movl	%r14d, %edi
	callq	_NG_NODE_IS_VALID
	testq	%rax, %rax
	je	LBB0_14
## %bb.8:
	movl	%r14d, %edi
	callq	_ng_rmnode_self
LBB0_14:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSCOP_IDLE,8,3                 ## @SSCOP_IDLE
	.comm	_SSCOP_RELEASE_request,4,2      ## @SSCOP_RELEASE_request
	.no_dead_strip	_ng_sscop_disconnect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_sscop_disconnect
_ng_sscop_disconnect:                   ; @ng_sscop_disconnect
	.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	x21, x0
	bl	_NG_HOOK_NODE
	mov	x20, x0
	bl	_NG_NODE_PRIVATE
	mov	x19, x0
	mov	x22, x0
	ldr	x9, [x22, #24]!
	mov	x8, x22
	cmp	x9, x21
	b.eq	LBB0_3
; %bb.1:
	mov	x8, x19
	ldr	x9, [x8, #16]!
	cmp	x9, x21
	b.eq	LBB0_3
; %bb.2:
	mov	x8, x19
	ldr	x9, [x8, #32]!
	cmp	x9, x21
	b.ne	LBB0_4
LBB0_3:
	str	xzr, [x8]
LBB0_4:
	mov	x0, x20
	bl	_NG_NODE_NUMHOOKS
	cbz	x0, LBB0_10
; %bb.5:
	ldr	x8, [x22]
	cbnz	x8, LBB0_12
; %bb.6:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_12
; %bb.7:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_12
; %bb.8:
	ldr	w0, [x19]
	bl	_sscop_getstate
Lloh0:
	adrp	x8, _SSCOP_IDLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSCOP_IDLE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_12
; %bb.9:
	ldr	w0, [x19]
Lloh3:
	adrp	x8, _SSCOP_RELEASE_request@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSCOP_RELEASE_request@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, #0
	mov	w3, #0
	bl	_sscop_aasig
	b	LBB0_12
LBB0_10:
	mov	x0, x20
	bl	_NG_NODE_IS_VALID
	cbz	x0, LBB0_12
; %bb.11:
	mov	x0, x20
	bl	_ng_rmnode_self
LBB0_12:
	mov	w0, #0
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SSCOP_IDLE,8,3                 ; @SSCOP_IDLE
	.comm	_SSCOP_RELEASE_request,4,2      ; @SSCOP_RELEASE_request
	.no_dead_strip	_ng_sscop_disconnect
.subsections_via_symbols
