	.file	"extr_tty.c_rfcomm_tty_hangup.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"tty %p dev %p"
	.text
	.p2align 4
	.type	rfcomm_tty_hangup, @function
rfcomm_tty_hangup:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	rsi, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	r12, QWORD PTR [rdi]
	lea	rdi, .LC0[rip]
	mov	rdx, r12
	call	BT_DBG@PLT
	test	r12, r12
	jne	.L13
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rdi, rbp
	call	rfcomm_tty_flush_buffer@PLT
	mov	edi, DWORD PTR RFCOMM_RELEASE_ONHUP[rip]
	lea	rsi, 4[r12]
	call	test_bit@PLT
	test	rax, rax
	je	.L1
	mov	edi, DWORD PTR [r12]
	call	rfcomm_dev_get@PLT
	test	rax, rax
	je	.L1
	mov	rdi, r12
	call	rfcomm_dev_del@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	rfcomm_dev_put@PLT
	.cfi_endproc
.LFE0:
	.size	rfcomm_tty_hangup, .-rfcomm_tty_hangup
	.comm	RFCOMM_RELEASE_ONHUP,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_tty.c_rfcomm_tty_hangup.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"tty %p dev %p\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rfcomm_tty_hangup, %function
rfcomm_tty_hangup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, [r0]
	mov	r1, r0
	mov	r4, r0
	mov	r2, r5
	ldr	r0, .L13
	bl	BT_DBG
	cmp	r5, #0
	popeq	{r4, r5, r6, pc}
	mov	r0, r4
	bl	rfcomm_tty_flush_buffer
	ldr	r3, .L13+4
	add	r1, r5, #4
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	ldr	r0, [r5]
	bl	rfcomm_dev_get
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	mov	r0, r5
	bl	rfcomm_dev_del
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	rfcomm_dev_put
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	RFCOMM_RELEASE_ONHUP
	.size	rfcomm_tty_hangup, .-rfcomm_tty_hangup
	.comm	RFCOMM_RELEASE_ONHUP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
