	.file	"extr_vcc.c_vcc_hangup.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"VCC: hangup: Invalid TTY handle\n"
	.align 8
.LC1:
	.string	"VCC: hangup: Failed to find VCC port\n"
	.align 8
.LC2:
	.string	"VCC: hangup: TTY port not found\n"
	.text
	.p2align 4
	.type	vcc_hangup, @function
vcc_hangup:
.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	.L7
	mov	edi, DWORD PTR 4[rbx]
	call	vcc_get_ne@PLT
	xor	edi, edi
	test	rax, rax
	mov	rbp, rax
	sete	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L8
	mov	eax, DWORD PTR [rbx]
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L9
	mov	rdi, rbp
	call	vcc_ldc_hup@PLT
	mov	rdi, rbp
	xor	esi, esi
	call	vcc_put@PLT
	mov	edi, DWORD PTR [rbx]
	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
	jmp	tty_port_hangup@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	lea	rdi, .LC1[rip]
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	pr_err@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.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
.L9:
	.cfi_restore_state
	lea	rdi, .LC2[rip]
	call	pr_err@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	xor	esi, esi
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	vcc_put@PLT
	.cfi_endproc
.LFE0:
	.size	vcc_hangup, .-vcc_hangup
	.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_hangup.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"VCC: hangup: Invalid TTY handle\012\000"
	.align	2
.LC1:
	.ascii	"VCC: hangup: Failed to find VCC port\012\000"
	.align	2
.LC2:
	.ascii	"VCC: hangup: TTY port not found\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vcc_hangup, %function
vcc_hangup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	unlikely
	cmp	r0, #0
	bne	.L7
	ldr	r0, [r5, #4]
	bl	vcc_get_ne
	mov	r4, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	unlikely
	subs	r6, r0, #0
	bne	.L8
	ldr	r0, [r5]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	unlikely
	subs	r7, r0, #0
	bne	.L9
	mov	r0, r4
	bl	vcc_ldc_hup
	mov	r1, r7
	mov	r0, r4
	bl	vcc_put
	ldr	r0, [r5]
	pop	{r4, r5, r6, r7, r8, lr}
	b	tty_port_hangup
.L8:
	ldr	r0, .L10
	pop	{r4, r5, r6, r7, r8, lr}
	b	pr_err
.L7:
	ldr	r0, .L10+4
	pop	{r4, r5, r6, r7, r8, lr}
	b	pr_err
.L9:
	ldr	r0, .L10+8
	bl	pr_err
	mov	r1, r6
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	vcc_put
.L11:
	.align	2
.L10:
	.word	.LC1
	.word	.LC0
	.word	.LC2
	.size	vcc_hangup, .-vcc_hangup
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
