	.file	"90763206.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"\n +----------------------------------+"
	.align 8
.LC1:
	.string	"\n |        Serial Port Write         |"
.LC2:
	.string	"/dev/ttyUSB0"
	.align 8
.LC3:
	.string	"\n  Error! in Opening ttyUSB0  "
	.align 8
.LC4:
	.string	"\n  ttyUSB0 Opened Successfully "
	.align 8
.LC5:
	.string	"\n  ERROR ! in Setting attributes"
	.align 8
.LC6:
	.string	"\n  BaudRate = 9600 \n  StopBits = 1 \n  Parity   = none"
.LC7:
	.string	"\n  %s written to ttyUSB0"
	.align 8
.LC8:
	.string	"\n  %d Bytes written to ttyUSB0"
	.align 8
.LC9:
	.string	"\n +----------------------------------+\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	esi, 2306
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -88[rbp], eax
	cmp	DWORD PTR -88[rbp], -1
	jne	.L2
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L3
.L2:
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L3:
	lea	rdx, -80[rbp]
	mov	eax, DWORD PTR -88[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	tcgetattr@PLT
	lea	rax, -80[rbp]
	mov	esi, 13
	mov	rdi, rax
	call	cfsetispeed@PLT
	lea	rax, -80[rbp]
	mov	esi, 13
	mov	rdi, rax
	call	cfsetospeed@PLT
	mov	eax, DWORD PTR -72[rbp]
	and	ah, -2
	mov	DWORD PTR -72[rbp], eax
	mov	eax, DWORD PTR -72[rbp]
	and	eax, -65
	mov	DWORD PTR -72[rbp], eax
	mov	eax, DWORD PTR -72[rbp]
	and	eax, -49
	mov	DWORD PTR -72[rbp], eax
	mov	eax, DWORD PTR -72[rbp]
	or	eax, 48
	mov	DWORD PTR -72[rbp], eax
	mov	eax, DWORD PTR -72[rbp]
	and	eax, 2147483647
	mov	DWORD PTR -72[rbp], eax
	mov	eax, DWORD PTR -72[rbp]
	or	eax, 2176
	mov	DWORD PTR -72[rbp], eax
	mov	eax, DWORD PTR -80[rbp]
	and	ah, -29
	mov	DWORD PTR -80[rbp], eax
	mov	eax, DWORD PTR -80[rbp]
	and	eax, -28
	mov	DWORD PTR -80[rbp], eax
	mov	eax, DWORD PTR -76[rbp]
	and	eax, -2
	mov	DWORD PTR -76[rbp], eax
	lea	rdx, -80[rbp]
	mov	eax, DWORD PTR -88[rbp]
	mov	esi, 0
	mov	edi, eax
	call	tcsetattr@PLT
	test	eax, eax
	je	.L4
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L5
.L4:
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L5:
	mov	WORD PTR -10[rbp], 65
	mov	DWORD PTR -84[rbp], 0
	lea	rcx, -10[rbp]
	mov	eax, DWORD PTR -88[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -84[rbp], eax
	lea	rax, -10[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -84[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -88[rbp]
	mov	edi, eax
	call	close@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"90763206.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012 +----------------------------------+\000"
	.align	2
.LC1:
	.ascii	"\012 |        Serial Port Write         |\000"
	.align	2
.LC2:
	.ascii	"/dev/ttyUSB0\000"
	.align	2
.LC3:
	.ascii	"\012  Error! in Opening ttyUSB0  \000"
	.align	2
.LC4:
	.ascii	"\012  ttyUSB0 Opened Successfully \000"
	.align	2
.LC5:
	.ascii	"\012  ERROR ! in Setting attributes\000"
	.align	2
.LC6:
	.ascii	"\012  BaudRate = 9600 \012  StopBits = 1 \012  Pari"
	.ascii	"ty   = none\000"
	.align	2
.LC7:
	.ascii	"\012  %s written to ttyUSB0\000"
	.align	2
.LC8:
	.ascii	"\012  %d Bytes written to ttyUSB0\000"
	.align	2
.LC9:
	.ascii	"\012 +----------------------------------+\012\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L7+4
	bl	printf
	ldr	r0, .L7+8
	bl	printf
	ldr	r0, .L7+4
	bl	printf
	ldr	r1, .L7+12
	ldr	r0, .L7+16
	bl	open
	str	r0, [fp, #-80]
	ldr	r3, [fp, #-80]
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L7+20
	bl	printf
	b	.L3
.L2:
	ldr	r0, .L7+24
	bl	printf
.L3:
	sub	r3, fp, #72
	mov	r1, r3
	ldr	r0, [fp, #-80]
	bl	tcgetattr
	sub	r3, fp, #72
	mov	r1, #13
	mov	r0, r3
	bl	cfsetispeed
	sub	r3, fp, #72
	mov	r1, #13
	mov	r0, r3
	bl	cfsetospeed
	ldr	r3, [fp, #-64]
	bic	r3, r3, #256
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-64]
	bic	r3, r3, #64
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-64]
	bic	r3, r3, #48
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-64]
	orr	r3, r3, #48
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-64]
	bic	r3, r3, #-2147483648
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-64]
	orr	r3, r3, #2176
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-72]
	bic	r3, r3, #7168
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-72]
	bic	r3, r3, #27
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-68]
	bic	r3, r3, #1
	str	r3, [fp, #-68]
	sub	r3, fp, #72
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-80]
	bl	tcsetattr
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	ldr	r0, .L7+28
	bl	printf
	b	.L5
.L4:
	ldr	r0, .L7+32
	bl	printf
.L5:
	mov	r3, #65
	strh	r3, [fp, #-12]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-76]
	sub	r3, fp, #12
	mov	r2, #2
	mov	r1, r3
	ldr	r0, [fp, #-80]
	bl	write
	str	r0, [fp, #-76]
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L7+36
	bl	printf
	ldr	r1, [fp, #-76]
	ldr	r0, .L7+40
	bl	printf
	ldr	r0, .L7+44
	bl	puts
	ldr	r0, [fp, #-80]
	bl	close
	nop
	ldr	r3, .L7
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC10
	.word	.LC0
	.word	.LC1
	.word	2306
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
