	.file	"690664.c"
	.intel_syntax noprefix
	.text
	.globl	speed_arr
	.data
	.align 32
	.type	speed_arr, @object
	.size	speed_arr, 56
speed_arr:
	.long	15
	.long	14
	.long	13
	.long	12
	.long	11
	.long	9
	.long	7
	.long	15
	.long	14
	.long	13
	.long	12
	.long	11
	.long	9
	.long	7
	.globl	name_arr
	.align 32
	.type	name_arr, @object
	.size	name_arr, 56
name_arr:
	.long	38400
	.long	19200
	.long	9600
	.long	4800
	.long	2400
	.long	1200
	.long	300
	.long	38400
	.long	19200
	.long	9600
	.long	4800
	.long	2400
	.long	1200
	.long	300
	.section	.rodata
.LC0:
	.string	"tcsetattr fd1"
	.text
	.globl	set_speed
	.type	set_speed, @function
set_speed:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 112
	mov	DWORD PTR -100[rbp], edi
	mov	DWORD PTR -104[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -80[rbp]
	mov	eax, DWORD PTR -100[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	tcgetattr@PLT
	mov	DWORD PTR -88[rbp], 0
	jmp	.L2
.L6:
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, name_arr[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -104[rbp], eax
	jne	.L3
	mov	eax, DWORD PTR -100[rbp]
	mov	esi, 2
	mov	edi, eax
	call	tcflush@PLT
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, speed_arr[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, eax
	lea	rax, -80[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	cfsetispeed@PLT
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, speed_arr[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, eax
	lea	rax, -80[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	cfsetospeed@PLT
	lea	rdx, -80[rbp]
	mov	eax, DWORD PTR -100[rbp]
	mov	esi, 0
	mov	edi, eax
	call	tcsetattr@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 0
	je	.L8
	lea	rdi, .LC0[rip]
	call	perror@PLT
	jmp	.L1
.L3:
	mov	eax, DWORD PTR -100[rbp]
	mov	esi, 2
	mov	edi, eax
	call	tcflush@PLT
	add	DWORD PTR -88[rbp], 1
.L2:
	mov	eax, DWORD PTR -88[rbp]
	cmp	eax, 13
	jbe	.L6
	jmp	.L1
.L8:
	nop
.L1:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	set_speed, .-set_speed
	.section	.rodata
.LC1:
	.string	"SetupSerial 1"
.LC2:
	.string	"Unsupported data size\n"
.LC3:
	.string	"Unsupported parity\n"
.LC4:
	.string	"Unsupported stop bits\n"
.LC5:
	.string	"SetupSerial 3"
	.text
	.globl	set_Parity
	.type	set_Parity, @function
set_Parity:
.LFB7:
	.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	DWORD PTR -84[rbp], edi
	mov	DWORD PTR -88[rbp], esi
	mov	DWORD PTR -92[rbp], edx
	mov	DWORD PTR -96[rbp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -80[rbp]
	mov	eax, DWORD PTR -84[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	tcgetattr@PLT
	test	eax, eax
	je	.L10
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, 0
	jmp	.L29
.L10:
	mov	eax, DWORD PTR -72[rbp]
	and	eax, -49
	mov	DWORD PTR -72[rbp], eax
	cmp	DWORD PTR -88[rbp], 7
	je	.L12
	cmp	DWORD PTR -88[rbp], 8
	je	.L13
	jmp	.L31
.L12:
	mov	eax, DWORD PTR -72[rbp]
	or	eax, 32
	mov	DWORD PTR -72[rbp], eax
	jmp	.L15
.L13:
	mov	eax, DWORD PTR -72[rbp]
	or	eax, 48
	mov	DWORD PTR -72[rbp], eax
	jmp	.L15
.L31:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 22
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	eax, 0
	jmp	.L29
.L15:
	mov	eax, DWORD PTR -96[rbp]
	sub	eax, 69
	cmp	eax, 46
	ja	.L16
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L18[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L18[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L18:
	.long	.L21-.L18
	.long	.L16-.L18
	.long	.L16-.L18
	.long	.L16-.L18
	.long	.L16-.L18
	.long	.L16-.L18
	.long	.L16-.L18
	.long	.L16-.L18
	.long	.L16-.L18
	.long	.L20-.L18
	.long	.L19-.L18
	.long	.L16-.L18
	.long	.L16-.L18
	.long	.L16-.L18
	.long	.L17-.L18
	.long	.L16-.L18
	.long	.L16-.L18
	.long	.L16-.L18
	.long	.L16-.L18
	.long	.L16-.L18
	.long	.L16-.L18
	.long	.L16-.L18
	.long	.L16-.L18
	.long	.L16-.L18
	.long	.L16-.L18
	.long	.L16-.L18
	.long	.L16-.L18
	.long	.L16-.L18
	.long	.L16-.L18
	.long	.L16-.L18
	.long	.L16-.L18
	.long	.L16-.L18
	.long	.L21-.L18
	.long	.L16-.L18
	.long	.L16-.L18
	.long	.L16-.L18
	.long	.L16-.L18
	.long	.L16-.L18
	.long	.L16-.L18
	.long	.L16-.L18
	.long	.L16-.L18
	.long	.L20-.L18
	.long	.L19-.L18
	.long	.L16-.L18
	.long	.L16-.L18
	.long	.L16-.L18
	.long	.L17-.L18
	.text
.L20:
	mov	eax, DWORD PTR -72[rbp]
	and	ah, -2
	mov	DWORD PTR -72[rbp], eax
	mov	eax, DWORD PTR -80[rbp]
	and	eax, -17
	mov	DWORD PTR -80[rbp], eax
	jmp	.L22
.L19:
	mov	eax, DWORD PTR -72[rbp]
	or	ah, 3
	mov	DWORD PTR -72[rbp], eax
	mov	eax, DWORD PTR -80[rbp]
	or	eax, 16
	mov	DWORD PTR -80[rbp], eax
	jmp	.L22
.L21:
	mov	eax, DWORD PTR -72[rbp]
	or	ah, 1
	mov	DWORD PTR -72[rbp], eax
	mov	eax, DWORD PTR -72[rbp]
	and	ah, -3
	mov	DWORD PTR -72[rbp], eax
	mov	eax, DWORD PTR -80[rbp]
	or	eax, 16
	mov	DWORD PTR -80[rbp], eax
	jmp	.L22
.L17:
	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
	jmp	.L22
.L16:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 19
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	eax, 0
	jmp	.L29
.L22:
	cmp	DWORD PTR -92[rbp], 1
	je	.L23
	cmp	DWORD PTR -92[rbp], 2
	je	.L24
	jmp	.L32
.L23:
	mov	eax, DWORD PTR -72[rbp]
	and	eax, -65
	mov	DWORD PTR -72[rbp], eax
	jmp	.L26
.L24:
	mov	eax, DWORD PTR -72[rbp]
	or	eax, 64
	mov	DWORD PTR -72[rbp], eax
	jmp	.L26
.L32:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 22
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	eax, 0
	jmp	.L29
.L26:
	cmp	DWORD PTR -96[rbp], 110
	je	.L27
	mov	eax, DWORD PTR -80[rbp]
	or	eax, 16
	mov	DWORD PTR -80[rbp], eax
.L27:
	mov	BYTE PTR -58[rbp], -106
	mov	BYTE PTR -57[rbp], 0
	mov	eax, DWORD PTR -84[rbp]
	mov	esi, 0
	mov	edi, eax
	call	tcflush@PLT
	lea	rdx, -80[rbp]
	mov	eax, DWORD PTR -84[rbp]
	mov	esi, 0
	mov	edi, eax
	call	tcsetattr@PLT
	test	eax, eax
	je	.L28
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	eax, 0
	jmp	.L29
.L28:
	mov	eax, 1
.L29:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	set_Parity, .-set_Parity
	.section	.rodata
	.align 8
.LC6:
	.string	"pls usage %s /dev/ttyS[n] your_message.\n"
.LC7:
	.string	"open"
.LC8:
	.string	"Set Parity Error"
.LC9:
	.string	"write"
.LC10:
	.string	"pls check the tty data"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
	cmp	DWORD PTR -36[rbp], 2
	jg	.L34
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L34:
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], -1
	jne	.L35
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L35:
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, 19200
	mov	edi, eax
	call	set_speed
	mov	eax, DWORD PTR -20[rbp]
	mov	ecx, 78
	mov	edx, 1
	mov	esi, 8
	mov	edi, eax
	call	set_Parity
	test	eax, eax
	jne	.L36
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L36:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	test	rax, rax
	jns	.L37
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L37:
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE8:
	.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	"690664.c"
	.text
	.global	speed_arr
	.data
	.align	2
	.type	speed_arr, %object
	.size	speed_arr, 56
speed_arr:
	.word	15
	.word	14
	.word	13
	.word	12
	.word	11
	.word	9
	.word	7
	.word	15
	.word	14
	.word	13
	.word	12
	.word	11
	.word	9
	.word	7
	.global	name_arr
	.align	2
	.type	name_arr, %object
	.size	name_arr, 56
name_arr:
	.word	38400
	.word	19200
	.word	9600
	.word	4800
	.word	2400
	.word	1200
	.word	300
	.word	38400
	.word	19200
	.word	9600
	.word	4800
	.word	2400
	.word	1200
	.word	300
	.section	.rodata
	.align	2
.LC0:
	.ascii	"tcsetattr fd1\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	set_speed
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_speed, %function
set_speed:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	str	r0, [fp, #-80]
	str	r1, [fp, #-84]
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #68
	mov	r1, r3
	ldr	r0, [fp, #-80]
	bl	tcgetattr
	mov	r3, #0
	str	r3, [fp, #-76]
	b	.L2
.L6:
	ldr	r2, .L9+4
	ldr	r3, [fp, #-76]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-84]
	cmp	r2, r3
	bne	.L3
	mov	r1, #2
	ldr	r0, [fp, #-80]
	bl	tcflush
	ldr	r2, .L9+8
	ldr	r3, [fp, #-76]
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, r3
	sub	r3, fp, #68
	mov	r1, r2
	mov	r0, r3
	bl	cfsetispeed
	ldr	r2, .L9+8
	ldr	r3, [fp, #-76]
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, r3
	sub	r3, fp, #68
	mov	r1, r2
	mov	r0, r3
	bl	cfsetospeed
	sub	r3, fp, #68
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-80]
	bl	tcsetattr
	str	r0, [fp, #-72]
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	beq	.L8
	ldr	r0, .L9+12
	bl	perror
	b	.L1
.L3:
	mov	r1, #2
	ldr	r0, [fp, #-80]
	bl	tcflush
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L2:
	ldr	r3, [fp, #-76]
	cmp	r3, #13
	bls	.L6
	b	.L1
.L8:
	nop
.L1:
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC1
	.word	name_arr
	.word	speed_arr
	.word	.LC0
	.size	set_speed, .-set_speed
	.section	.rodata
	.align	2
.LC2:
	.ascii	"SetupSerial 1\000"
	.align	2
.LC3:
	.ascii	"Unsupported data size\012\000"
	.align	2
.LC4:
	.ascii	"Unsupported parity\012\000"
	.align	2
.LC5:
	.ascii	"Unsupported stop bits\012\000"
	.align	2
.LC6:
	.ascii	"SetupSerial 3\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	set_Parity
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_Parity, %function
set_Parity:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	str	r2, [fp, #-80]
	str	r3, [fp, #-84]
	ldr	r3, .L35
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #68
	mov	r1, r3
	ldr	r0, [fp, #-72]
	bl	tcgetattr
	mov	r3, r0
	cmp	r3, #0
	beq	.L12
	ldr	r0, .L35+4
	bl	perror
	mov	r3, #0
	b	.L31
.L12:
	ldr	r3, [fp, #-60]
	bic	r3, r3, #48
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-76]
	cmp	r3, #7
	beq	.L14
	ldr	r3, [fp, #-76]
	cmp	r3, #8
	beq	.L15
	b	.L33
.L14:
	ldr	r3, [fp, #-60]
	orr	r3, r3, #32
	str	r3, [fp, #-60]
	b	.L17
.L15:
	ldr	r3, [fp, #-60]
	orr	r3, r3, #48
	str	r3, [fp, #-60]
	b	.L17
.L33:
	ldr	r3, .L35+8
	ldr	r3, [r3]
	mov	r2, #22
	mov	r1, #1
	ldr	r0, .L35+12
	bl	fwrite
	mov	r3, #0
	b	.L31
.L17:
	ldr	r3, [fp, #-84]
	sub	r3, r3, #69
	cmp	r3, #46
	ldrls	pc, [pc, r3, asl #2]
	b	.L18
.L20:
	.word	.L23
	.word	.L18
	.word	.L18
	.word	.L18
	.word	.L18
	.word	.L18
	.word	.L18
	.word	.L18
	.word	.L18
	.word	.L22
	.word	.L21
	.word	.L18
	.word	.L18
	.word	.L18
	.word	.L19
	.word	.L18
	.word	.L18
	.word	.L18
	.word	.L18
	.word	.L18
	.word	.L18
	.word	.L18
	.word	.L18
	.word	.L18
	.word	.L18
	.word	.L18
	.word	.L18
	.word	.L18
	.word	.L18
	.word	.L18
	.word	.L18
	.word	.L18
	.word	.L23
	.word	.L18
	.word	.L18
	.word	.L18
	.word	.L18
	.word	.L18
	.word	.L18
	.word	.L18
	.word	.L18
	.word	.L22
	.word	.L21
	.word	.L18
	.word	.L18
	.word	.L18
	.word	.L19
.L22:
	ldr	r3, [fp, #-60]
	bic	r3, r3, #256
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-68]
	bic	r3, r3, #16
	str	r3, [fp, #-68]
	b	.L24
.L21:
	ldr	r3, [fp, #-60]
	orr	r3, r3, #768
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-68]
	orr	r3, r3, #16
	str	r3, [fp, #-68]
	b	.L24
.L23:
	ldr	r3, [fp, #-60]
	orr	r3, r3, #256
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-60]
	bic	r3, r3, #512
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-68]
	orr	r3, r3, #16
	str	r3, [fp, #-68]
	b	.L24
.L19:
	ldr	r3, [fp, #-60]
	bic	r3, r3, #256
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-60]
	bic	r3, r3, #64
	str	r3, [fp, #-60]
	b	.L24
.L18:
	ldr	r3, .L35+8
	ldr	r3, [r3]
	mov	r2, #19
	mov	r1, #1
	ldr	r0, .L35+16
	bl	fwrite
	mov	r3, #0
	b	.L31
.L24:
	ldr	r3, [fp, #-80]
	cmp	r3, #1
	beq	.L25
	ldr	r3, [fp, #-80]
	cmp	r3, #2
	beq	.L26
	b	.L34
.L25:
	ldr	r3, [fp, #-60]
	bic	r3, r3, #64
	str	r3, [fp, #-60]
	b	.L28
.L26:
	ldr	r3, [fp, #-60]
	orr	r3, r3, #64
	str	r3, [fp, #-60]
	b	.L28
.L34:
	ldr	r3, .L35+8
	ldr	r3, [r3]
	mov	r2, #22
	mov	r1, #1
	ldr	r0, .L35+20
	bl	fwrite
	mov	r3, #0
	b	.L31
.L28:
	ldr	r3, [fp, #-84]
	cmp	r3, #110
	beq	.L29
	ldr	r3, [fp, #-68]
	orr	r3, r3, #16
	str	r3, [fp, #-68]
.L29:
	mvn	r3, #105
	strb	r3, [fp, #-46]
	mov	r3, #0
	strb	r3, [fp, #-45]
	mov	r1, #0
	ldr	r0, [fp, #-72]
	bl	tcflush
	sub	r3, fp, #68
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-72]
	bl	tcsetattr
	mov	r3, r0
	cmp	r3, #0
	beq	.L30
	ldr	r0, .L35+24
	bl	perror
	mov	r3, #0
	b	.L31
.L30:
	mov	r3, #1
.L31:
	ldr	r2, .L35
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L32
	bl	__stack_chk_fail
.L32:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	.LC7
	.word	.LC2
	.word	stderr
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	set_Parity, .-set_Parity
	.section	.rodata
	.align	2
.LC8:
	.ascii	"pls usage %s /dev/ttyS[n] your_message.\012\000"
	.align	2
.LC9:
	.ascii	"open\000"
	.align	2
.LC10:
	.ascii	"Set Parity Error\000"
	.align	2
.LC11:
	.ascii	"write\000"
	.align	2
.LC12:
	.ascii	"pls check the tty data\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r3, #2
	bgt	.L38
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L42
	bl	printf
	mov	r0, #1
	bl	exit
.L38:
	mov	r1, #2
	ldr	r0, [fp, #-12]
	bl	open
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L39
	ldr	r0, .L42+4
	bl	perror
	mov	r0, #1
	bl	exit
.L39:
	mov	r1, #19200
	ldr	r0, [fp, #-8]
	bl	set_speed
	mov	r3, #78
	mov	r2, #1
	mov	r1, #8
	ldr	r0, [fp, #-8]
	bl	set_Parity
	mov	r3, r0
	cmp	r3, #0
	bne	.L40
	ldr	r0, .L42+8
	bl	puts
	mov	r0, #1
	bl	exit
.L40:
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	write
	mov	r3, r0
	cmp	r3, #0
	bge	.L41
	ldr	r0, .L42+12
	bl	perror
	mov	r0, #1
	bl	exit
.L41:
	ldr	r0, .L42+16
	bl	puts
	ldr	r0, [fp, #-8]
	bl	close
	mov	r0, #0
	bl	exit
.L43:
	.align	2
.L42:
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
