	.file	"extr_vcc.c_vcc_cleanup.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"VCC: cleanup: Invalid TTY handle\n"
	.text
	.p2align 4
	.type	vcc_cleanup, @function
vcc_cleanup:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	test	rdi, rdi
	sete	dil
	movzx	edi, dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L10
	mov	edi, DWORD PTR 8[rbx]
	mov	esi, 1
	call	vcc_get@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L3
	cmp	QWORD PTR 16[rax], 0
	mov	QWORD PTR 24[rax], 0
	je	.L4
	mov	edi, DWORD PTR 8[rbx]
	call	vcc_table_remove@PLT
	mov	rdi, QWORD PTR 8[rbp]
	call	kfree@PLT
	mov	rdi, QWORD PTR 0[rbp]
	call	kfree@PLT
	mov	rdi, rbp
	call	kfree@PLT
.L3:
	mov	rdi, QWORD PTR [rbx]
	call	tty_port_destroy@PLT
	mov	rdi, QWORD PTR [rbx]
	call	kfree@PLT
	mov	QWORD PTR [rbx], 0
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	lea	rdi, .LC0[rip]
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	pr_err@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	esi, 1
	mov	rdi, rax
	call	vcc_put@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	vcc_cleanup, .-vcc_cleanup
	.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_vcc.c_vcc_cleanup.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"VCC: cleanup: Invalid TTY handle\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vcc_cleanup, %function
vcc_cleanup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	unlikely
	subs	r5, r0, #0
	bne	.L10
	mov	r1, #1
	ldr	r0, [r4, #4]
	bl	vcc_get
	subs	r6, r0, #0
	beq	.L3
	ldr	r3, [r6, #8]
	str	r5, [r6, #12]
	cmp	r3, #0
	beq	.L4
	ldr	r0, [r4, #4]
	bl	vcc_table_remove
	ldr	r0, [r6, #4]
	bl	kfree
	ldr	r0, [r6]
	bl	kfree
	mov	r0, r6
	bl	kfree
.L3:
	ldr	r0, [r4]
	bl	tty_port_destroy
	ldr	r0, [r4]
	bl	kfree
	mov	r3, #0
	str	r3, [r4]
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r0, .L11
	pop	{r4, r5, r6, lr}
	b	pr_err
.L4:
	mov	r1, #1
	bl	vcc_put
	b	.L3
.L12:
	.align	2
.L11:
	.word	.LC0
	.size	vcc_cleanup, .-vcc_cleanup
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
