	.file	"132953501.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Test: MXC UART!"
	.align 8
.LC1:
	.string	"Usage: mxc_uart_test <UART device name, opens UART2 if no dev name is specified>"
.LC2:
	.string	"/dev/ttymxc/1"
.LC3:
	.string	"Error opening UART 2"
.LC4:
	.string	"Test: UART 2 opened"
.LC5:
	.string	"Error opening %s\n"
.LC6:
	.string	"%s opened\n"
.LC7:
	.string	"Attributes set"
.LC8:
	.string	"Test: IOCTL Set"
.LC9:
	.string	"Test"
	.string	""
.LC10:
	.string	"Data Written= Test"
.LC11:
	.string	"Data Read back= %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 176
	mov	DWORD PTR -164[rbp], edi
	mov	QWORD PTR -176[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	cmp	DWORD PTR -164[rbp], 1
	jne	.L2
	mov	esi, 2
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -152[rbp], eax
	cmp	DWORD PTR -152[rbp], -1
	jne	.L3
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L4
.L2:
	add	QWORD PTR -176[rbp], 8
	mov	rax, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR [rax]
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -152[rbp], eax
	cmp	DWORD PTR -152[rbp], -1
	jne	.L5
	mov	rax, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	rax, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L4:
	lea	rdx, -80[rbp]
	mov	eax, DWORD PTR -152[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	tcgetattr@PLT
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	QWORD PTR -144[rbp], rax
	mov	QWORD PTR -136[rbp], rdx
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	QWORD PTR -128[rbp], rax
	mov	QWORD PTR -120[rbp], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR -112[rbp], rax
	mov	QWORD PTR -104[rbp], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -96[rbp], rax
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -88[rbp], eax
	mov	eax, DWORD PTR -132[rbp]
	and	eax, -12
	mov	DWORD PTR -132[rbp], eax
	lea	rdx, -144[rbp]
	mov	eax, DWORD PTR -152[rbp]
	mov	esi, 0
	mov	edi, eax
	call	tcsetattr@PLT
	mov	DWORD PTR -148[rbp], eax
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	DWORD PTR -156[rbp], 32768
	lea	rdx, -156[rbp]
	mov	eax, DWORD PTR -152[rbp]
	mov	esi, 21528
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -152[rbp]
	mov	edx, 5
	lea	rsi, .LC9[rip]
	mov	edi, eax
	call	write@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rcx, -13[rbp]
	mov	eax, DWORD PTR -152[rbp]
	mov	edx, 5
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	lea	rax, -13[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 2
	call	sleep@PLT
	lea	rdx, -156[rbp]
	mov	eax, DWORD PTR -152[rbp]
	mov	esi, 21527
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	lea	rdx, -80[rbp]
	mov	eax, DWORD PTR -152[rbp]
	mov	esi, 2
	mov	edi, eax
	call	tcsetattr@PLT
	mov	DWORD PTR -148[rbp], eax
	mov	eax, DWORD PTR -152[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"132953501.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Test: MXC UART!\000"
	.align	2
.LC1:
	.ascii	"Usage: mxc_uart_test <UART device name, opens UART2"
	.ascii	" if no dev name is specified>\000"
	.align	2
.LC2:
	.ascii	"/dev/ttymxc/1\000"
	.align	2
.LC3:
	.ascii	"Error opening UART 2\000"
	.align	2
.LC4:
	.ascii	"Test: UART 2 opened\000"
	.align	2
.LC5:
	.ascii	"Error opening %s\012\000"
	.align	2
.LC6:
	.ascii	"%s opened\012\000"
	.align	2
.LC7:
	.ascii	"Attributes set\000"
	.align	2
.LC8:
	.ascii	"Test: IOCTL Set\000"
	.align	2
.LC9:
	.ascii	"Test\000\000"
	.align	2
.LC10:
	.ascii	"Data Written= Test\000"
	.align	2
.LC11:
	.ascii	"Data Read back= %s\012\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #152
	str	r0, [fp, #-152]
	str	r1, [fp, #-156]
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L8+4
	bl	puts
	ldr	r0, .L8+8
	bl	puts
	ldr	r3, [fp, #-152]
	cmp	r3, #1
	bne	.L2
	mov	r1, #2
	ldr	r0, .L8+12
	bl	open
	str	r0, [fp, #-144]
	ldr	r3, [fp, #-144]
	cmn	r3, #1
	bne	.L3
	ldr	r0, .L8+16
	bl	puts
	mov	r0, #1
	bl	exit
.L3:
	ldr	r0, .L8+20
	bl	puts
	b	.L4
.L2:
	ldr	r3, [fp, #-156]
	add	r3, r3, #4
	str	r3, [fp, #-156]
	ldr	r3, [fp, #-156]
	ldr	r3, [r3]
	mov	r1, #2
	mov	r0, r3
	bl	open
	str	r0, [fp, #-144]
	ldr	r3, [fp, #-144]
	cmn	r3, #1
	bne	.L5
	ldr	r3, [fp, #-156]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L8+24
	bl	printf
	mov	r0, #1
	bl	exit
.L5:
	ldr	r3, [fp, #-156]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L8+28
	bl	printf
.L4:
	sub	r3, fp, #76
	mov	r1, r3
	ldr	r0, [fp, #-144]
	bl	tcgetattr
	sub	ip, fp, #136
	sub	lr, fp, #76
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	ldr	r3, [fp, #-124]
	bic	r3, r3, #11
	str	r3, [fp, #-124]
	sub	r3, fp, #136
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-144]
	bl	tcsetattr
	str	r0, [fp, #-140]
	ldr	r0, .L8+32
	bl	puts
	mov	r3, #32768
	str	r3, [fp, #-148]
	sub	r3, fp, #148
	mov	r2, r3
	ldr	r1, .L8+36
	ldr	r0, [fp, #-144]
	bl	ioctl
	ldr	r0, .L8+40
	bl	puts
	mov	r2, #5
	ldr	r1, .L8+44
	ldr	r0, [fp, #-144]
	bl	write
	ldr	r0, .L8+48
	bl	puts
	sub	r3, fp, #16
	mov	r2, #5
	mov	r1, r3
	ldr	r0, [fp, #-144]
	bl	read
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L8+52
	bl	printf
	mov	r0, #2
	bl	sleep
	sub	r3, fp, #148
	mov	r2, r3
	ldr	r1, .L8+56
	ldr	r0, [fp, #-144]
	bl	ioctl
	sub	r3, fp, #76
	mov	r2, r3
	mov	r1, #2
	ldr	r0, [fp, #-144]
	bl	tcsetattr
	str	r0, [fp, #-140]
	ldr	r0, [fp, #-144]
	bl	close
	mov	r3, #0
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC12
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	21528
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	21527
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
