	.file	"extr_ti_usb_3410_5052.c_ti_set_mcr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ti_set_mcr, @function
ti_set_mcr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	mov	r8d, ebp
	lea	r13, 4[rbx]
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR 16[rdi]
	mov	ecx, DWORD PTR TI_MCR_RTS[rip]
	mov	rdx, QWORD PTR TI_UART_OFFSET_MCR[rip]
	add	rdx, QWORD PTR 8[rdi]
	mov	edi, DWORD PTR 20[rdi]
	or	ecx, DWORD PTR TI_MCR_DTR[rip]
	or	ecx, DWORD PTR TI_MCR_LOOP[rip]
	call	ti_write_byte@PLT
	xor	esi, esi
	mov	rdi, r13
	mov	r12d, eax
	call	spin_lock_irqsave@PLT
	test	r12d, r12d
	jne	.L2
	mov	DWORD PTR [rbx], ebp
.L2:
	mov	rdi, r13
	xor	esi, esi
	call	spin_unlock_irqrestore@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ti_set_mcr, .-ti_set_mcr
	.comm	TI_UART_OFFSET_MCR,8,8
	.comm	TI_MCR_RTS,4,4
	.comm	TI_MCR_LOOP,4,4
	.comm	TI_MCR_DTR,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_ti_usb_3410_5052.c_ti_set_mcr.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ti_set_mcr, %function
ti_set_mcr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r0
	mov	r6, r1
	ldr	r3, .L5
	ldr	r1, .L5+4
	ldr	r2, .L5+8
	ldr	r0, .L5+12
	ldr	r1, [r1]
	ldr	r3, [r3]
	sub	sp, sp, #12
	ldr	ip, [r4, #8]
	ldr	r0, [r0]
	ldr	r2, [r2]
	orr	r3, r1, r3
	str	r6, [sp]
	orr	r3, r3, r0
	add	r2, ip, r2
	ldr	r1, [r4, #12]
	ldr	r0, [r4, #16]
	bl	ti_write_byte
	mov	r5, r0
	add	r7, r4, #4
	mov	r0, r7
	mov	r1, #0
	bl	spin_lock_irqsave
	cmp	r5, #0
	mov	r0, r7
	mov	r1, #0
	streq	r6, [r4]
	bl	spin_unlock_irqrestore
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L6:
	.align	2
.L5:
	.word	TI_MCR_DTR
	.word	TI_MCR_RTS
	.word	TI_UART_OFFSET_MCR
	.word	TI_MCR_LOOP
	.size	ti_set_mcr, .-ti_set_mcr
	.comm	TI_UART_OFFSET_MCR,4,4
	.comm	TI_MCR_RTS,4,4
	.comm	TI_MCR_LOOP,4,4
	.comm	TI_MCR_DTR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
