	.file	"140675.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"options:"
	.align 8
.LC1:
	.string	"  -P serial port e.g. /dev/ttyUSB0"
.LC2:
	.string	"  -q quiet"
.LC3:
	.string	"  -h this help"
.LC4:
	.string	"hP:q"
.LC5:
	.string	"using serial interface: %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, 320
	mov	DWORD PTR -308[rbp], edi
	mov	QWORD PTR -320[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -280[rbp], 0
	mov	BYTE PTR -289[rbp], 0
	movabs	rax, 8751747723086357551
	mov	edx, 809653077
	mov	QWORD PTR -272[rbp], rax
	mov	QWORD PTR -264[rbp], rdx
	mov	QWORD PTR -256[rbp], 0
	mov	QWORD PTR -248[rbp], 0
	mov	QWORD PTR -240[rbp], 0
	mov	QWORD PTR -232[rbp], 0
	mov	QWORD PTR -224[rbp], 0
	mov	QWORD PTR -216[rbp], 0
	mov	QWORD PTR -208[rbp], 0
	mov	QWORD PTR -200[rbp], 0
	mov	QWORD PTR -192[rbp], 0
	mov	QWORD PTR -184[rbp], 0
	mov	QWORD PTR -176[rbp], 0
	mov	QWORD PTR -168[rbp], 0
	mov	QWORD PTR -160[rbp], 0
	mov	QWORD PTR -152[rbp], 0
	mov	QWORD PTR -144[rbp], 0
	mov	QWORD PTR -136[rbp], 0
	mov	QWORD PTR -128[rbp], 0
	mov	QWORD PTR -120[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	jmp	.L2
.L6:
	cmp	DWORD PTR -280[rbp], 113
	je	.L3
	cmp	DWORD PTR -280[rbp], 113
	jg	.L2
	cmp	DWORD PTR -280[rbp], 80
	je	.L4
	cmp	DWORD PTR -280[rbp], 104
	jne	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L10
.L4:
	mov	rdx, QWORD PTR optarg[rip]
	lea	rax, -272[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	jmp	.L2
.L3:
	mov	BYTE PTR -289[rbp], 1
	nop
.L2:
	mov	rcx, QWORD PTR -320[rbp]
	mov	eax, DWORD PTR -308[rbp]
	lea	rdx, .LC4[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -280[rbp], eax
	cmp	DWORD PTR -280[rbp], -1
	jne	.L6
	movzx	eax, BYTE PTR -289[rbp]
	xor	eax, 1
	test	al, al
	je	.L7
	lea	rax, -272[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L7:
	lea	rax, -272[rbp]
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -276[rbp], eax
	mov	DWORD PTR -284[rbp], 0
	jmp	.L8
.L9:
	mov	DWORD PTR -288[rbp], 2
	lea	rdx, -288[rbp]
	mov	eax, DWORD PTR -276[rbp]
	mov	esi, 21526
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -288[rbp], 2
	lea	rdx, -288[rbp]
	mov	eax, DWORD PTR -276[rbp]
	mov	esi, 21527
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	add	DWORD PTR -284[rbp], 1
.L8:
	cmp	DWORD PTR -284[rbp], 1
	jle	.L9
	mov	eax, DWORD PTR -276[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
.L10:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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	"140675.c"
	.text
	.section	.rodata
	.align	2
.LC1:
	.ascii	"options:\000"
	.align	2
.LC2:
	.ascii	"  -P serial port e.g. /dev/ttyUSB0\000"
	.align	2
.LC3:
	.ascii	"  -q quiet\000"
	.align	2
.LC4:
	.ascii	"  -h this help\000"
	.align	2
.LC5:
	.ascii	"hP:q\000"
	.align	2
.LC6:
	.ascii	"using serial interface: %s\012\000"
	.align	2
.LC0:
	.ascii	"/dev/ttyUSB0\000"
	.space	243
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 288
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #288
	str	r0, [fp, #-288]
	str	r1, [fp, #-292]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-272]
	mov	r3, #0
	strb	r3, [fp, #-281]
	ldr	r3, .L12+4
	sub	ip, fp, #264
	ldm	r3, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2}
	strb	r3, [ip]
	sub	r3, fp, #251
	mov	r2, #243
	mov	r1, #0
	mov	r0, r3
	bl	memset
	b	.L2
.L6:
	ldr	r3, [fp, #-272]
	cmp	r3, #113
	beq	.L3
	ldr	r3, [fp, #-272]
	cmp	r3, #113
	bgt	.L2
	ldr	r3, [fp, #-272]
	cmp	r3, #80
	beq	.L4
	ldr	r3, [fp, #-272]
	cmp	r3, #104
	bne	.L2
	ldr	r0, .L12+8
	bl	puts
	ldr	r0, .L12+12
	bl	puts
	ldr	r0, .L12+16
	bl	puts
	ldr	r0, .L12+20
	bl	puts
	mov	r3, #0
	b	.L10
.L4:
	ldr	r3, .L12+24
	ldr	r2, [r3]
	sub	r3, fp, #264
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	b	.L2
.L3:
	mov	r3, #1
	strb	r3, [fp, #-281]
	nop
.L2:
	ldr	r2, .L12+28
	ldr	r1, [fp, #-292]
	ldr	r0, [fp, #-288]
	bl	getopt
	str	r0, [fp, #-272]
	ldr	r3, [fp, #-272]
	cmn	r3, #1
	bne	.L6
	ldrb	r3, [fp, #-281]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L7
	sub	r3, fp, #264
	mov	r1, r3
	ldr	r0, .L12+32
	bl	printf
.L7:
	sub	r3, fp, #264
	mov	r1, #2
	mov	r0, r3
	bl	open
	str	r0, [fp, #-268]
	mov	r3, #0
	str	r3, [fp, #-276]
	b	.L8
.L9:
	mov	r3, #2
	str	r3, [fp, #-280]
	sub	r3, fp, #280
	mov	r2, r3
	ldr	r1, .L12+36
	ldr	r0, [fp, #-268]
	bl	ioctl
	mov	r3, #2
	str	r3, [fp, #-280]
	sub	r3, fp, #280
	mov	r2, r3
	ldr	r1, .L12+40
	ldr	r0, [fp, #-268]
	bl	ioctl
	ldr	r3, [fp, #-276]
	add	r3, r3, #1
	str	r3, [fp, #-276]
.L8:
	ldr	r3, [fp, #-276]
	cmp	r3, #1
	ble	.L9
	ldr	r0, [fp, #-268]
	bl	close
	mov	r3, #0
.L10:
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	optarg
	.word	.LC5
	.word	.LC6
	.word	21526
	.word	21527
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
