	.file	"extr_ng_ccatm.c_ng_ccatm_disconnect.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ng_ccatm_disconnect, @function
ng_ccatm_disconnect:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	NG_HOOK_NODE@PLT
	mov	edi, eax
	mov	r12d, eax
	call	NG_NODE_PRIVATE@PLT
	mov	rdi, rbp
	mov	rbx, rax
	call	NG_HOOK_PRIVATE@PLT
	cmp	QWORD PTR 16[rbx], rbp
	je	.L15
	cmp	QWORD PTR 8[rbx], rbp
	je	.L16
	cmp	QWORD PTR 16[rax], 0
	mov	edi, DWORD PTR 8[rax]
	mov	r13, rax
	jne	.L17
	call	cc_user_destroy@PLT
.L6:
	mov	rax, QWORD PTR 0[r13]
	mov	esi, DWORD PTR M_NG_CCATM[rip]
	mov	rdi, r13
	mov	r14, QWORD PTR [rax]
	call	free@PLT
	mov	rdi, rbp
	xor	esi, esi
	call	NG_HOOK_SET_PRIVATE@PLT
	sub	DWORD PTR [rbx], 1
	mov	rdi, r14
	call	cc_work@PLT
.L3:
	mov	edi, r12d
	call	NG_NODE_NUMHOOKS@PLT
	test	rax, rax
	je	.L18
.L8:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	xor	esi, esi
	call	cc_port_destroy@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L18:
	mov	edi, r12d
	call	NG_NODE_IS_VALID@PLT
	test	rax, rax
	je	.L8
	mov	edi, r12d
	call	ng_rmnode_self@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	QWORD PTR 16[rbx], 0
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L16:
	mov	QWORD PTR 8[rbx], 0
	mov	edi, DWORD PTR 4[rbx]
	call	cc_unmanage@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	ng_ccatm_disconnect, .-ng_ccatm_disconnect
	.comm	M_NG_CCATM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_ng_ccatm.c_ng_ccatm_disconnect.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ng_ccatm_disconnect, %function
ng_ccatm_disconnect:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	bl	NG_HOOK_NODE
	mov	r6, r0
	bl	NG_NODE_PRIVATE
	mov	r4, r0
	mov	r0, r7
	bl	NG_HOOK_PRIVATE
	ldr	r3, [r4, #12]
	cmp	r3, r7
	moveq	r3, #0
	streq	r3, [r4, #12]
	beq	.L3
	ldr	r3, [r4, #8]
	cmp	r3, r7
	beq	.L15
	mov	r5, r0
	ldmib	r0, {r0, r3}
	cmp	r3, #0
	bne	.L16
	bl	cc_user_destroy
.L6:
	ldr	r2, .L18
	ldr	r3, [r5]
	ldr	r1, [r2]
	mov	r0, r5
	ldr	r5, [r3]
	bl	free
	mov	r0, r7
	mov	r1, #0
	bl	NG_HOOK_SET_PRIVATE
	ldr	r3, [r4]
	mov	r0, r5
	sub	r3, r3, #1
	str	r3, [r4]
	bl	cc_work
.L3:
	mov	r0, r6
	bl	NG_NODE_NUMHOOKS
	cmp	r0, #0
	beq	.L17
.L8:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	mov	r1, #0
	bl	cc_port_destroy
	b	.L6
.L17:
	mov	r0, r6
	bl	NG_NODE_IS_VALID
	cmp	r0, #0
	beq	.L8
	mov	r0, r6
	bl	ng_rmnode_self
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	mov	r3, #0
	ldr	r0, [r4, #4]
	str	r3, [r4, #8]
	bl	cc_unmanage
	b	.L3
.L19:
	.align	2
.L18:
	.word	M_NG_CCATM
	.size	ng_ccatm_disconnect, .-ng_ccatm_disconnect
	.comm	M_NG_CCATM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
