	.file	"178266550.c"
	.intel_syntax noprefix
	.text
	.globl	fd
	.bss
	.align 4
	.type	fd, @object
	.size	fd, 4
fd:
	.zero	4
	.globl	fp
	.align 8
	.type	fp, @object
	.size	fp, 8
fp:
	.zero	8
	.section	.rodata
.LC0:
	.string	"/sys/class/gpio/unexport"
.LC1:
	.string	"20"
.LC2:
	.string	"21"
.LC3:
	.string	"Fechando programa"
	.text
	.globl	fechar
	.type	fechar, @function
fechar:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR fd[rip]
	mov	edi, eax
	call	close@PLT
	mov	esi, 1
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR fd[rip], eax
	mov	eax, DWORD PTR fd[rip]
	mov	edx, 2
	lea	rsi, .LC1[rip]
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR fd[rip]
	mov	edx, 2
	lea	rsi, .LC2[rip]
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR fd[rip]
	mov	edi, eax
	call	close@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, 1
	call	sleep@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	fechar, .-fechar
	.section	.rodata
.LC4:
	.string	"Realizando o export 20"
.LC5:
	.string	"/sys/class/gpio/export"
	.align 8
.LC6:
	.string	"Iniciando o pin 20 como sa\303\255da"
	.align 8
.LC7:
	.string	"/sys/class/gpio/gpio20/direction"
.LC8:
	.string	"out"
.LC9:
	.string	"/sys/class/gpio/gpio20/value"
.LC10:
	.string	"Iniciando o blink em 20"
.LC11:
	.string	"F = %d\n"
.LC12:
	.string	"1"
.LC13:
	.string	"0"
.LC14:
	.string	"Realizando o export 21"
	.align 8
.LC15:
	.string	"Iniciando o pin como sa\303\255da 21"
	.align 8
.LC16:
	.string	"/sys/class/gpio/gpio21/direction"
.LC17:
	.string	"in"
.LC18:
	.string	"/sys/class/gpio/gpio21/value"
.LC19:
	.string	"Pronto para capturar gpio21"
.LC20:
	.string	"Freq = %d BTN = %c\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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, fp[rip]
	call	pipe@PLT
	call	fork@PLT
	mov	DWORD PTR -12[rbp], eax
	lea	rsi, fechar[rip]
	mov	edi, 2
	call	signal@PLT
	cmp	DWORD PTR -12[rbp], 0
	jne	.L3
	mov	DWORD PTR -20[rbp], 1
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	esi, 1
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR fd[rip], eax
	mov	eax, DWORD PTR fd[rip]
	mov	edx, 2
	lea	rsi, .LC1[rip]
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR fd[rip]
	mov	edi, eax
	call	close@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	esi, 1
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR fd[rip], eax
	mov	eax, DWORD PTR fd[rip]
	mov	edx, 4
	lea	rsi, .LC8[rip]
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR fd[rip]
	mov	edi, eax
	call	close@PLT
	mov	esi, 1
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR fd[rip], eax
	lea	rdi, .LC10[rip]
	call	puts@PLT
.L4:
	mov	eax, DWORD PTR fp[rip]
	lea	rcx, -20[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	ecx, DWORD PTR -20[rbp]
	mov	eax, 500000
	cdq
	idiv	ecx
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR fd[rip]
	mov	edx, 2
	lea	rsi, .LC12[rip]
	mov	edi, eax
	call	write@PLT
	mov	ecx, DWORD PTR -20[rbp]
	mov	eax, 500000
	cdq
	idiv	ecx
	mov	edi, eax
	call	usleep@PLT
	mov	eax, DWORD PTR fd[rip]
	mov	edx, 2
	lea	rsi, .LC13[rip]
	mov	edi, eax
	call	write@PLT
	mov	ecx, DWORD PTR -20[rbp]
	mov	eax, 500000
	cdq
	idiv	ecx
	mov	edi, eax
	call	usleep@PLT
	jmp	.L4
.L3:
	mov	DWORD PTR -16[rbp], 1
	lea	rdi, .LC14[rip]
	call	puts@PLT
	mov	esi, 1
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR fd[rip], eax
	mov	eax, DWORD PTR fd[rip]
	mov	edx, 2
	lea	rsi, .LC2[rip]
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR fd[rip]
	mov	edi, eax
	call	close@PLT
	lea	rdi, .LC15[rip]
	call	puts@PLT
	mov	esi, 1
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR fd[rip], eax
	mov	eax, DWORD PTR fd[rip]
	mov	edx, 4
	lea	rsi, .LC17[rip]
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR fd[rip]
	mov	edi, eax
	call	close@PLT
	mov	esi, 2
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR fd[rip], eax
	lea	rdi, .LC19[rip]
	call	puts@PLT
.L6:
	mov	eax, DWORD PTR fd[rip]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	mov	eax, DWORD PTR fd[rip]
	lea	rcx, -21[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	movzx	eax, BYTE PTR -21[rbp]
	movsx	edx, al
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -21[rbp]
	cmp	al, 49
	jne	.L5
	sal	DWORD PTR -16[rbp]
	cmp	DWORD PTR -16[rbp], 128
	jne	.L5
	mov	DWORD PTR -16[rbp], 1
.L5:
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR fp[rip+4]
	lea	rcx, -20[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	edi, 500000
	call	usleep@PLT
	jmp	.L6
	.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	"178266550.c"
	.text
	.comm	fd,4,4
	.comm	fp,8,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/sys/class/gpio/unexport\000"
	.align	2
.LC1:
	.ascii	"20\000"
	.align	2
.LC2:
	.ascii	"21\000"
	.align	2
.LC3:
	.ascii	"Fechando programa\000"
	.text
	.align	2
	.global	fechar
	.syntax unified
	.arm
	.fpu softvfp
	.type	fechar, %function
fechar:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	mov	r1, #1
	ldr	r0, .L2+4
	bl	open
	mov	r3, r0
	ldr	r2, .L2
	str	r3, [r2]
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r2, #2
	ldr	r1, .L2+8
	mov	r0, r3
	bl	write
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r2, #2
	ldr	r1, .L2+12
	mov	r0, r3
	bl	write
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r0, .L2+16
	bl	puts
	mov	r0, #1
	bl	sleep
	mov	r0, #0
	bl	exit
.L3:
	.align	2
.L2:
	.word	fd
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	fechar, .-fechar
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Realizando o export 20\000"
	.align	2
.LC5:
	.ascii	"/sys/class/gpio/export\000"
	.align	2
.LC6:
	.ascii	"Iniciando o pin 20 como sa\303\255da\000"
	.align	2
.LC7:
	.ascii	"/sys/class/gpio/gpio20/direction\000"
	.align	2
.LC8:
	.ascii	"out\000"
	.align	2
.LC9:
	.ascii	"/sys/class/gpio/gpio20/value\000"
	.align	2
.LC10:
	.ascii	"Iniciando o blink em 20\000"
	.global	__aeabi_idiv
	.align	2
.LC11:
	.ascii	"F = %d\012\000"
	.align	2
.LC12:
	.ascii	"1\000"
	.align	2
.LC13:
	.ascii	"0\000"
	.align	2
.LC14:
	.ascii	"Realizando o export 21\000"
	.align	2
.LC15:
	.ascii	"Iniciando o pin como sa\303\255da 21\000"
	.align	2
.LC16:
	.ascii	"/sys/class/gpio/gpio21/direction\000"
	.align	2
.LC17:
	.ascii	"in\000"
	.align	2
.LC18:
	.ascii	"/sys/class/gpio/gpio21/value\000"
	.align	2
.LC19:
	.ascii	"Pronto para capturar gpio21\000"
	.align	2
.LC20:
	.ascii	"Freq = %d BTN = %c\012\000"
	.align	2
.LC21:
	.word	__stack_chk_guard
	.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
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L10+4
	bl	pipe
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r1, .L10+8
	mov	r0, #2
	bl	signal
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L5
	mov	r3, #1
	str	r3, [fp, #-20]
	ldr	r0, .L10+12
	bl	puts
	mov	r1, #1
	ldr	r0, .L10+16
	bl	open
	mov	r3, r0
	ldr	r2, .L10+20
	str	r3, [r2]
	ldr	r3, .L10+20
	ldr	r3, [r3]
	mov	r2, #2
	ldr	r1, .L10+24
	mov	r0, r3
	bl	write
	ldr	r3, .L10+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r0, .L10+28
	bl	puts
	mov	r1, #1
	ldr	r0, .L10+32
	bl	open
	mov	r3, r0
	ldr	r2, .L10+20
	str	r3, [r2]
	ldr	r3, .L10+20
	ldr	r3, [r3]
	mov	r2, #4
	ldr	r1, .L10+36
	mov	r0, r3
	bl	write
	ldr	r3, .L10+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	mov	r1, #1
	ldr	r0, .L10+40
	bl	open
	mov	r3, r0
	ldr	r2, .L10+20
	str	r3, [r2]
	ldr	r0, .L10+44
	bl	puts
.L6:
	ldr	r3, .L10+4
	ldr	r3, [r3]
	sub	r1, fp, #20
	mov	r2, #4
	mov	r0, r3
	bl	read
	ldr	r3, [fp, #-20]
	mov	r1, r3
	ldr	r0, .L10+48
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L10+52
	bl	printf
	ldr	r3, .L10+20
	ldr	r3, [r3]
	mov	r2, #2
	ldr	r1, .L10+56
	mov	r0, r3
	bl	write
	ldr	r3, [fp, #-20]
	mov	r1, r3
	ldr	r0, .L10+48
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r0, r3
	bl	usleep
	ldr	r3, .L10+20
	ldr	r3, [r3]
	mov	r2, #2
	ldr	r1, .L10+60
	mov	r0, r3
	bl	write
	ldr	r3, [fp, #-20]
	mov	r1, r3
	ldr	r0, .L10+48
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r0, r3
	bl	usleep
	b	.L6
.L5:
	mov	r3, #1
	str	r3, [fp, #-16]
	ldr	r0, .L10+64
	bl	puts
	mov	r1, #1
	ldr	r0, .L10+16
	bl	open
	mov	r3, r0
	ldr	r2, .L10+20
	str	r3, [r2]
	ldr	r3, .L10+20
	ldr	r3, [r3]
	mov	r2, #2
	ldr	r1, .L10+68
	mov	r0, r3
	bl	write
	ldr	r3, .L10+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r0, .L10+72
	bl	puts
	mov	r1, #1
	ldr	r0, .L10+76
	bl	open
	mov	r3, r0
	ldr	r2, .L10+20
	str	r3, [r2]
	ldr	r3, .L10+20
	ldr	r3, [r3]
	mov	r2, #4
	ldr	r1, .L10+80
	mov	r0, r3
	bl	write
	ldr	r3, .L10+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	mov	r1, #2
	ldr	r0, .L10+84
	bl	open
	mov	r3, r0
	ldr	r2, .L10+20
	str	r3, [r2]
	ldr	r0, .L10+88
	bl	puts
.L8:
	ldr	r3, .L10+20
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	lseek
	ldr	r3, .L10+20
	ldr	r3, [r3]
	sub	r1, fp, #21
	mov	r2, #2
	mov	r0, r3
	bl	read
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r1, [fp, #-16]
	ldr	r0, .L10+92
	bl	printf
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #49
	bne	.L7
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #128
	bne	.L7
	mov	r3, #1
	str	r3, [fp, #-16]
.L7:
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, .L10+4
	ldr	r3, [r3, #4]
	sub	r1, fp, #20
	mov	r2, #4
	mov	r0, r3
	bl	write
	ldr	r0, .L10+48
	bl	usleep
	b	.L8
.L11:
	.align	2
.L10:
	.word	.LC21
	.word	fp
	.word	fechar
	.word	.LC4
	.word	.LC5
	.word	fd
	.word	.LC1
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	500000
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC2
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
