	.file	"154828471.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"setDTR( %i )\n"
	.text
	.globl	setDTR
	.type	setDTR, @function
setDTR:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -12[rbp], 0
	lea	rdx, -12[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, 21525
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	cmp	DWORD PTR -24[rbp], 0
	je	.L2
	mov	eax, DWORD PTR -12[rbp]
	or	eax, 2
	mov	DWORD PTR -12[rbp], eax
	jmp	.L3
.L2:
	mov	eax, DWORD PTR -12[rbp]
	and	eax, -3
	mov	DWORD PTR -12[rbp], eax
.L3:
	lea	rdx, -12[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, 21528
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	setDTR, .-setDTR
	.section	.rodata
.LC1:
	.string	"/dev/ttyUSB0"
.LC2:
	.string	"opened: %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 112
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -88[rbp], 0
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L6
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	esi, 1
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -92[rbp], eax
	jmp	.L7
.L6:
	mov	esi, 1
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -92[rbp], eax
.L7:
	mov	eax, DWORD PTR -92[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdx, -80[rbp]
	mov	eax, DWORD PTR -92[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	tcgetattr@PLT
	mov	eax, DWORD PTR -72[rbp]
	and	eax, -4112
	mov	DWORD PTR -72[rbp], eax
	mov	eax, DWORD PTR -72[rbp]
	or	eax, 4097
	mov	DWORD PTR -72[rbp], eax
	lea	rdx, -80[rbp]
	mov	eax, DWORD PTR -92[rbp]
	mov	esi, 0
	mov	edi, eax
	call	tcsetattr@PLT
	mov	DWORD PTR -96[rbp], 4
	lea	rdx, -96[rbp]
	mov	eax, DWORD PTR -92[rbp]
	mov	esi, 21526
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -96[rbp], 4
	lea	rdx, -96[rbp]
	mov	eax, DWORD PTR -92[rbp]
	mov	esi, 21527
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -96[rbp], 2
	lea	rdx, -96[rbp]
	mov	eax, DWORD PTR -92[rbp]
	mov	esi, 21526
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	edi, 1
	call	sleep@PLT
	mov	DWORD PTR -96[rbp], 2
	lea	rdx, -96[rbp]
	mov	eax, DWORD PTR -92[rbp]
	mov	esi, 21527
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	eax, DWORD PTR -92[rbp]
	mov	edi, eax
	call	close@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"154828471.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"setDTR( %i )\012\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	setDTR
	.syntax unified
	.arm
	.fpu softvfp
	.type	setDTR, %function
setDTR:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, .L5
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-12]
	sub	r3, fp, #12
	mov	r2, r3
	ldr	r1, .L5+4
	ldr	r0, [fp, #-16]
	bl	ioctl
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-12]
	orr	r3, r3, #2
	str	r3, [fp, #-12]
	b	.L3
.L2:
	ldr	r3, [fp, #-12]
	bic	r3, r3, #2
	str	r3, [fp, #-12]
.L3:
	sub	r3, fp, #12
	mov	r2, r3
	ldr	r1, .L5+8
	ldr	r0, [fp, #-16]
	bl	ioctl
	ldr	r1, [fp, #-20]
	ldr	r0, .L5+12
	bl	printf
	nop
	ldr	r3, .L5
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L4
	bl	__stack_chk_fail
.L4:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC1
	.word	21525
	.word	21528
	.word	.LC0
	.size	setDTR, .-setDTR
	.section	.rodata
	.align	2
.LC2:
	.ascii	"/dev/ttyUSB0\000"
	.align	2
.LC3:
	.ascii	"opened: %d\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #88
	str	r0, [fp, #-88]
	str	r1, [fp, #-92]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-92]
	add	r3, r3, #4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-92]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, #1
	mov	r0, r3
	bl	open
	str	r0, [fp, #-76]
	b	.L9
.L8:
	mov	r1, #1
	ldr	r0, .L11+4
	bl	open
	str	r0, [fp, #-76]
.L9:
	ldr	r1, [fp, #-76]
	ldr	r0, .L11+8
	bl	printf
	sub	r3, fp, #68
	mov	r1, r3
	ldr	r0, [fp, #-76]
	bl	tcgetattr
	ldr	r3, [fp, #-60]
	bic	r3, r3, #4096
	bic	r3, r3, #15
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-60]
	orr	r3, r3, #4096
	orr	r3, r3, #1
	str	r3, [fp, #-60]
	sub	r3, fp, #68
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-76]
	bl	tcsetattr
	mov	r3, #4
	str	r3, [fp, #-80]
	sub	r3, fp, #80
	mov	r2, r3
	ldr	r1, .L11+12
	ldr	r0, [fp, #-76]
	bl	ioctl
	mov	r3, #4
	str	r3, [fp, #-80]
	sub	r3, fp, #80
	mov	r2, r3
	ldr	r1, .L11+16
	ldr	r0, [fp, #-76]
	bl	ioctl
	mov	r3, #2
	str	r3, [fp, #-80]
	sub	r3, fp, #80
	mov	r2, r3
	ldr	r1, .L11+12
	ldr	r0, [fp, #-76]
	bl	ioctl
	mov	r0, #1
	bl	sleep
	mov	r3, #2
	str	r3, [fp, #-80]
	sub	r3, fp, #80
	mov	r2, r3
	ldr	r1, .L11+16
	ldr	r0, [fp, #-76]
	bl	ioctl
	ldr	r0, [fp, #-76]
	bl	close
	nop
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC4
	.word	.LC2
	.word	.LC3
	.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
