	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_ccatm_disconnect
_ng_ccatm_disconnect:                   ## @ng_ccatm_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -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
	movq	%rbx, %rdi
	callq	_NG_HOOK_PRIVATE
	cmpq	%rbx, 16(%r15)
	je	LBB0_1
## %bb.2:
	cmpq	%rbx, 8(%r15)
	je	LBB0_3
## %bb.4:
	movq	%rax, %r12
	cmpq	$0, 16(%rax)
	movl	8(%rax), %edi
	je	LBB0_6
## %bb.5:
	xorl	%esi, %esi
	callq	_cc_port_destroy
	jmp	LBB0_7
LBB0_1:
	movq	$0, 16(%r15)
	jmp	LBB0_8
LBB0_3:
	movq	$0, 8(%r15)
	movl	4(%r15), %edi
	callq	_cc_unmanage
	jmp	LBB0_8
LBB0_6:
	callq	_cc_user_destroy
LBB0_7:
	movq	(%r12), %rax
	movq	(%rax), %r13
	movq	_M_NG_CCATM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_free
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_NG_HOOK_SET_PRIVATE
	decl	(%r15)
	movq	%r13, %rdi
	callq	_cc_work
LBB0_8:
	movl	%r14d, %edi
	callq	_NG_NODE_NUMHOOKS
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:
	movl	%r14d, %edi
	callq	_NG_NODE_IS_VALID
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	%r14d, %edi
	callq	_ng_rmnode_self
LBB0_11:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_NG_CCATM,4,2                 ## @M_NG_CCATM
	.no_dead_strip	_ng_ccatm_disconnect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_ccatm_disconnect
_ng_ccatm_disconnect:                   ; @ng_ccatm_disconnect
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x0
	bl	_NG_HOOK_NODE
	mov	x19, x0
	bl	_NG_NODE_PRIVATE
	mov	x20, x0
	mov	x0, x21
	bl	_NG_HOOK_PRIVATE
	ldr	x8, [x20, #16]
	cmp	x8, x21
	b.eq	LBB0_4
; %bb.1:
	ldr	x8, [x20, #8]
	cmp	x8, x21
	b.eq	LBB0_5
; %bb.2:
	mov	x22, x0
	ldr	x8, [x0, #16]
	ldr	w0, [x0, #8]
	cbz	x8, LBB0_6
; %bb.3:
	mov	w1, #0
	bl	_cc_port_destroy
	b	LBB0_7
LBB0_4:
	str	xzr, [x20, #16]
	b	LBB0_8
LBB0_5:
	str	xzr, [x20, #8]
	ldr	w0, [x20, #4]
	bl	_cc_unmanage
	b	LBB0_8
LBB0_6:
	bl	_cc_user_destroy
LBB0_7:
	ldr	x8, [x22]
	ldr	x23, [x8]
Lloh0:
	adrp	x8, _M_NG_CCATM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_NG_CCATM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_free
	mov	x0, x21
	mov	x1, #0
	bl	_NG_HOOK_SET_PRIVATE
	ldr	w8, [x20]
	sub	w8, w8, #1
	str	w8, [x20]
	mov	x0, x23
	bl	_cc_work
LBB0_8:
	mov	x0, x19
	bl	_NG_NODE_NUMHOOKS
	cbnz	x0, LBB0_11
; %bb.9:
	mov	x0, x19
	bl	_NG_NODE_IS_VALID
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_ng_rmnode_self
LBB0_11:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_M_NG_CCATM,4,2                 ; @M_NG_CCATM
	.no_dead_strip	_ng_ccatm_disconnect
.subsections_via_symbols
