	.file	"extr_ti_usb_3410_5052.c_ti_write.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ti_write, @function
ti_write:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	rdi, rsi
	xor	r15d, r15d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	call	usb_get_serial_port_data@PLT
	test	r12d, r12d
	je	.L1
	mov	r13, rax
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	jne	.L3
	mov	r15d, DWORD PTR ENODEV[rip]
	neg	r15d
.L1:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r15d
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rcx, r13
	mov	edx, r12d
	mov	rsi, r14
	mov	rdi, rbp
	call	kfifo_in_locked@PLT
	mov	rdi, r13
	mov	r15d, eax
	call	ti_send@PLT
	pop	rbp
	.cfi_def_cfa_offset 40
	mov	eax, r15d
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ti_write, .-ti_write
	.comm	ENODEV,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_write.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ti_write, %function
ti_write:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r3
	mov	r0, r1
	mov	r5, r1
	mov	r7, r2
	bl	usb_get_serial_port_data
	cmp	r4, #0
	beq	.L1
	ldr	r3, [r0, #4]
	mov	r6, r0
	cmp	r3, #0
	bne	.L3
	ldr	r3, .L7
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	mov	r2, r4
	mov	r1, r7
	mov	r3, r6
	mov	r0, r5
	bl	kfifo_in_locked
	mov	r4, r0
	mov	r0, r6
	bl	ti_send
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	.align	2
.L7:
	.word	ENODEV
	.size	ti_write, .-ti_write
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
