	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_sscfu_disconnect
_ng_sscfu_disconnect:                   ## @ng_sscfu_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, %r15d
	movl	%eax, %edi
	callq	_NG_NODE_PRIVATE
	movq	%rax, %r12
	cmpq	%rbx, 24(%rax)
	je	LBB0_1
## %bb.2:
	cmpq	%rbx, 16(%r12)
	je	LBB0_3
## %bb.12:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_11
LBB0_1:
	movq	%r12, %rax
	addq	$24, %rax
	jmp	LBB0_4
LBB0_3:
	movq	%r12, %rax
	addq	$16, %rax
LBB0_4:
	movq	$0, (%rax)
	movl	%r15d, %edi
	callq	_NG_NODE_NUMHOOKS
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	xorl	%r14d, %r14d
	cmpq	$0, 16(%r12)
	jne	LBB0_11
## %bb.8:
	cmpq	$0, 8(%r12)
	je	LBB0_11
## %bb.9:
	movl	(%r12), %edi
	callq	_sscfu_getstate
	movq	_SSCFU_RELEASED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.10:
	movl	(%r12), %edi
	callq	_sscfu_reset
	jmp	LBB0_11
LBB0_5:
	movl	%r15d, %edi
	callq	_NG_NODE_IS_VALID
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:
	movl	%r15d, %edi
	callq	_ng_rmnode_self
LBB0_11:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bogus hook"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SSCFU_RELEASED,8,3             ## @SSCFU_RELEASED
	.no_dead_strip	_ng_sscfu_disconnect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_sscfu_disconnect
_ng_sscfu_disconnect:                   ; @ng_sscfu_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	x8, x0
	ldr	x9, [x8, #24]!
	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:
Lloh0:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_log
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_3:
	str	xzr, [x8]
	mov	x0, x20
	bl	_NG_NODE_NUMHOOKS
	cbz	x0, LBB0_8
; %bb.4:
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_10
; %bb.5:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_10
; %bb.6:
	ldr	w0, [x19]
	bl	_sscfu_getstate
Lloh8:
	adrp	x8, _SSCFU_RELEASED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SSCFU_RELEASED@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_10
; %bb.7:
	ldr	w0, [x19]
	bl	_sscfu_reset
	b	LBB0_10
LBB0_8:
	mov	x0, x20
	bl	_NG_NODE_IS_VALID
	cbz	x0, LBB0_11
; %bb.9:
	mov	x0, x20
	bl	_ng_rmnode_self
LBB0_10:
	mov	w0, #0
LBB0_11:
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bogus hook"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SSCFU_RELEASED,8,3             ; @SSCFU_RELEASED
	.no_dead_strip	_ng_sscfu_disconnect
.subsections_via_symbols
