	.file	"extr_tty.c_rfcomm_tty_tiocmset.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"tty %p dev %p set 0x%02x clear 0x%02x"
	.text
	.p2align 4
	.type	rfcomm_tty_tiocmset, @function
rfcomm_tty_tiocmset:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	rsi, rdi
	mov	r8d, ecx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, ecx
	mov	ecx, ebp
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rdx, QWORD PTR [rdi]
	lea	rdi, .LC0[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	r12, QWORD PTR [rdx]
	call	BT_DBG@PLT
	lea	rsi, 4[rsp]
	mov	rdi, r12
	call	rfcomm_dlc_get_modem_status@PLT
	mov	edx, DWORD PTR TIOCM_DSR[rip]
	mov	esi, DWORD PTR 4[rsp]
	or	edx, DWORD PTR TIOCM_DTR[rip]
	test	ebp, edx
	je	.L3
	or	esi, DWORD PTR RFCOMM_V24_RTC[rip]
	mov	DWORD PTR 4[rsp], esi
.L3:
	mov	eax, DWORD PTR TIOCM_RTS[rip]
	or	eax, DWORD PTR TIOCM_CTS[rip]
	test	ebp, eax
	je	.L4
	or	esi, DWORD PTR RFCOMM_V24_RTR[rip]
	mov	DWORD PTR 4[rsp], esi
.L4:
	mov	edi, DWORD PTR TIOCM_RI[rip]
	test	edi, ebp
	je	.L5
	or	esi, DWORD PTR RFCOMM_V24_IC[rip]
	mov	DWORD PTR 4[rsp], esi
.L5:
	mov	ecx, DWORD PTR TIOCM_CD[rip]
	test	ecx, ebp
	je	.L6
	or	esi, DWORD PTR RFCOMM_V24_DV[rip]
	mov	DWORD PTR 4[rsp], esi
.L6:
	test	ebx, edx
	je	.L7
	mov	edx, DWORD PTR RFCOMM_V24_RTC[rip]
	not	edx
	and	esi, edx
	mov	DWORD PTR 4[rsp], esi
.L7:
	test	ebx, eax
	je	.L8
	mov	eax, DWORD PTR RFCOMM_V24_RTR[rip]
	not	eax
	and	esi, eax
	mov	DWORD PTR 4[rsp], esi
.L8:
	test	edi, ebx
	je	.L9
	mov	eax, DWORD PTR RFCOMM_V24_IC[rip]
	not	eax
	and	esi, eax
	mov	DWORD PTR 4[rsp], esi
.L9:
	test	ecx, ebx
	je	.L10
	mov	eax, DWORD PTR RFCOMM_V24_DV[rip]
	not	eax
	and	esi, eax
	mov	DWORD PTR 4[rsp], esi
.L10:
	mov	rdi, r12
	call	rfcomm_dlc_set_modem_status@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L35
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L35:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	rfcomm_tty_tiocmset, .-rfcomm_tty_tiocmset
	.comm	TIOCM_RTS,4,4
	.comm	TIOCM_RI,4,4
	.comm	TIOCM_DTR,4,4
	.comm	TIOCM_DSR,4,4
	.comm	TIOCM_CTS,4,4
	.comm	TIOCM_CD,4,4
	.comm	RFCOMM_V24_RTR,4,4
	.comm	RFCOMM_V24_RTC,4,4
	.comm	RFCOMM_V24_IC,4,4
	.comm	RFCOMM_V24_DV,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_tiocmset.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"tty %p dev %p set 0x%02x clear 0x%02x\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rfcomm_tty_tiocmset, %function
rfcomm_tty_tiocmset:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r2
	ldr	r2, [r0]
	sub	sp, sp, #16
	ldr	r6, [r2]
	ldr	ip, .L36
	mov	r4, r3
	mov	r1, r0
	str	r3, [sp]
	ldr	r0, .L36+4
	mov	r3, r5
	ldr	ip, [ip]
	str	ip, [sp, #12]
	mov	ip,#0
	bl	BT_DBG
	add	r1, sp, #8
	mov	r0, r6
	bl	rfcomm_dlc_get_modem_status
	ldr	r2, .L36+8
	ldr	r3, .L36+12
	ldr	ip, [r2]
	ldr	r3, [r3]
	orr	ip, ip, r3
	tst	r5, ip
	ldrne	r2, .L36+16
	ldrne	r3, [sp, #8]
	ldrne	r1, [r2]
	ldr	r2, .L36+20
	orrne	r1, r3, r1
	ldr	r3, .L36+24
	ldr	r2, [r2]
	ldr	r3, [r3]
	strne	r1, [sp, #8]
	orr	r3, r2, r3
	ldreq	r1, [sp, #8]
	tst	r5, r3
	ldrne	r2, .L36+28
	ldrne	r2, [r2]
	orrne	r1, r1, r2
	ldr	r2, .L36+32
	strne	r1, [sp, #8]
	ldr	r0, [r2]
	tst	r0, r5
	ldrne	r2, .L36+36
	ldrne	r2, [r2]
	orrne	r1, r1, r2
	ldr	r2, .L36+40
	strne	r1, [sp, #8]
	ldr	r2, [r2]
	tst	r2, r5
	ldrne	lr, .L36+44
	ldrne	lr, [lr]
	orrne	r1, r1, lr
	strne	r1, [sp, #8]
	tst	r4, ip
	ldrne	ip, .L36+16
	ldrne	ip, [ip]
	bicne	r1, r1, ip
	strne	r1, [sp, #8]
	tst	r4, r3
	ldrne	r3, .L36+28
	ldrne	r3, [r3]
	bicne	r1, r1, r3
	strne	r1, [sp, #8]
	tst	r0, r4
	ldrne	r3, .L36+36
	mov	r0, r6
	ldrne	r3, [r3]
	bicne	r1, r1, r3
	strne	r1, [sp, #8]
	tst	r2, r4
	ldrne	r3, .L36+44
	ldrne	r3, [r3]
	bicne	r1, r1, r3
	strne	r1, [sp, #8]
	bl	rfcomm_dlc_set_modem_status
	ldr	r3, .L36
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L35
	mov	r0, #0
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L35:
	bl	__stack_chk_fail
.L37:
	.align	2
.L36:
	.word	.LC1
	.word	.LC0
	.word	TIOCM_DSR
	.word	TIOCM_DTR
	.word	RFCOMM_V24_RTC
	.word	TIOCM_RTS
	.word	TIOCM_CTS
	.word	RFCOMM_V24_RTR
	.word	TIOCM_RI
	.word	RFCOMM_V24_IC
	.word	TIOCM_CD
	.word	RFCOMM_V24_DV
	.size	rfcomm_tty_tiocmset, .-rfcomm_tty_tiocmset
	.comm	TIOCM_RTS,4,4
	.comm	TIOCM_RI,4,4
	.comm	TIOCM_DTR,4,4
	.comm	TIOCM_DSR,4,4
	.comm	TIOCM_CTS,4,4
	.comm	TIOCM_CD,4,4
	.comm	RFCOMM_V24_RTR,4,4
	.comm	RFCOMM_V24_RTC,4,4
	.comm	RFCOMM_V24_IC,4,4
	.comm	RFCOMM_V24_DV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
