	.file	"649186.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"/sys/class/gpio/export"
.LC1:
	.string	"gpio/export"
.LC2:
	.string	"%d"
	.text
	.globl	gpio_export
	.type	gpio_export, @function
gpio_export:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 1
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -88[rbp], eax
	cmp	DWORD PTR -88[rbp], 0
	jns	.L2
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -88[rbp]
	jmp	.L4
.L2:
	mov	edx, DWORD PTR -100[rbp]
	lea	rax, -80[rbp]
	mov	ecx, edx
	lea	rdx, .LC2[rip]
	mov	esi, 64
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	DWORD PTR -84[rbp], eax
	mov	eax, DWORD PTR -84[rbp]
	movsx	rdx, eax
	lea	rcx, -80[rbp]
	mov	eax, DWORD PTR -88[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -88[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
.L4:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	gpio_export, .-gpio_export
	.section	.rodata
.LC3:
	.string	"/sys/class/gpio/unexport"
	.text
	.globl	gpio_unexport
	.type	gpio_unexport, @function
gpio_unexport:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 1
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -88[rbp], eax
	cmp	DWORD PTR -88[rbp], 0
	jns	.L7
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -88[rbp]
	jmp	.L9
.L7:
	mov	edx, DWORD PTR -100[rbp]
	lea	rax, -80[rbp]
	mov	ecx, edx
	lea	rdx, .LC2[rip]
	mov	esi, 64
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	DWORD PTR -84[rbp], eax
	mov	eax, DWORD PTR -84[rbp]
	movsx	rdx, eax
	lea	rcx, -80[rbp]
	mov	eax, DWORD PTR -88[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -88[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
.L9:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	gpio_unexport, .-gpio_unexport
	.section	.rodata
	.align 8
.LC4:
	.string	"/sys/class/gpio/gpio%d/direction"
.LC5:
	.string	"gpio/direction"
.LC6:
	.string	"out"
.LC7:
	.string	"in"
	.text
	.globl	gpio_set_dir
	.type	gpio_set_dir, @function
gpio_set_dir:
.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, 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
	mov	edx, DWORD PTR -100[rbp]
	lea	rax, -80[rbp]
	mov	ecx, edx
	lea	rdx, .LC4[rip]
	mov	esi, 64
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	DWORD PTR -88[rbp], eax
	lea	rax, -80[rbp]
	mov	esi, 1
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 0
	jns	.L12
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -84[rbp]
	jmp	.L16
.L12:
	cmp	DWORD PTR -104[rbp], 0
	je	.L14
	mov	eax, DWORD PTR -84[rbp]
	mov	edx, 4
	lea	rsi, .LC6[rip]
	mov	edi, eax
	call	write@PLT
	jmp	.L15
.L14:
	mov	eax, DWORD PTR -84[rbp]
	mov	edx, 3
	lea	rsi, .LC7[rip]
	mov	edi, eax
	call	write@PLT
.L15:
	mov	eax, DWORD PTR -84[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
.L16:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	gpio_set_dir, .-gpio_set_dir
	.section	.rodata
.LC8:
	.string	"/sys/class/gpio/gpio%d/value"
.LC9:
	.string	"gpio/set-value"
.LC10:
	.string	"1"
.LC11:
	.string	"0"
	.text
	.globl	gpio_set_value
	.type	gpio_set_value, @function
gpio_set_value:
.LFB9:
	.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
	mov	edx, DWORD PTR -100[rbp]
	lea	rax, -80[rbp]
	mov	ecx, edx
	lea	rdx, .LC8[rip]
	mov	esi, 64
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	DWORD PTR -88[rbp], eax
	lea	rax, -80[rbp]
	mov	esi, 1
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 0
	jns	.L19
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -84[rbp]
	jmp	.L23
.L19:
	cmp	DWORD PTR -104[rbp], 0
	je	.L21
	mov	eax, DWORD PTR -84[rbp]
	mov	edx, 2
	lea	rsi, .LC10[rip]
	mov	edi, eax
	call	write@PLT
	jmp	.L22
.L21:
	mov	eax, DWORD PTR -84[rbp]
	mov	edx, 2
	lea	rsi, .LC11[rip]
	mov	edi, eax
	call	write@PLT
.L22:
	mov	eax, DWORD PTR -84[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
.L23:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	gpio_set_value, .-gpio_set_value
	.section	.rodata
.LC12:
	.string	"gpio/get-value"
	.text
	.globl	gpio_get_value
	.type	gpio_get_value, @function
gpio_get_value:
.LFB10:
	.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	edx, DWORD PTR -100[rbp]
	lea	rax, -80[rbp]
	mov	ecx, edx
	lea	rdx, .LC8[rip]
	mov	esi, 64
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	DWORD PTR -88[rbp], eax
	lea	rax, -80[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 0
	jns	.L26
	lea	rdi, .LC12[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -84[rbp]
	jmp	.L30
.L26:
	lea	rcx, -89[rbp]
	mov	eax, DWORD PTR -84[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	movzx	eax, BYTE PTR -89[rbp]
	cmp	al, 48
	je	.L28
	mov	rax, QWORD PTR -112[rbp]
	mov	DWORD PTR [rax], 1
	jmp	.L29
.L28:
	mov	rax, QWORD PTR -112[rbp]
	mov	DWORD PTR [rax], 0
.L29:
	mov	eax, DWORD PTR -84[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
.L30:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L31
	call	__stack_chk_fail@PLT
.L31:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	gpio_get_value, .-gpio_get_value
	.section	.rodata
.LC13:
	.string	"/sys/class/gpio/gpio%d/edge"
.LC14:
	.string	"gpio/set-edge"
	.text
	.globl	gpio_set_edge
	.type	gpio_set_edge, @function
gpio_set_edge:
.LFB11:
	.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	edx, DWORD PTR -100[rbp]
	lea	rax, -80[rbp]
	mov	ecx, edx
	lea	rdx, .LC13[rip]
	mov	esi, 64
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	DWORD PTR -88[rbp], eax
	lea	rax, -80[rbp]
	mov	esi, 1
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 0
	jns	.L33
	lea	rdi, .LC14[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -84[rbp]
	jmp	.L35
.L33:
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, 1[rax]
	mov	rcx, QWORD PTR -112[rbp]
	mov	eax, DWORD PTR -84[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -84[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
.L35:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L36
	call	__stack_chk_fail@PLT
.L36:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	gpio_set_edge, .-gpio_set_edge
	.section	.rodata
.LC15:
	.string	"gpio/fd_open"
	.text
	.globl	gpio_fd_open
	.type	gpio_fd_open, @function
gpio_fd_open:
.LFB12:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, DWORD PTR -100[rbp]
	lea	rax, -80[rbp]
	mov	ecx, edx
	lea	rdx, .LC8[rip]
	mov	esi, 64
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	DWORD PTR -88[rbp], eax
	lea	rax, -80[rbp]
	mov	esi, 2048
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 0
	jns	.L38
	lea	rdi, .LC15[rip]
	call	perror@PLT
.L38:
	mov	eax, DWORD PTR -84[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L40
	call	__stack_chk_fail@PLT
.L40:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	gpio_fd_open, .-gpio_fd_open
	.globl	gpio_fd_close
	.type	gpio_fd_close, @function
gpio_fd_close:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	close@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	gpio_fd_close, .-gpio_fd_close
	.section	.rodata
.LC16:
	.string	"Usage: gpio-int <gpio-pin>\n"
	.align 8
.LC17:
	.string	"Waits for a change in the GPIO pin voltage level or input on stdin"
.LC18:
	.string	"falling"
.LC19:
	.string	"\npoll() failed!"
	.align 8
.LC20:
	.string	"\npoll() GPIO %d interrupt occurred\n"
.LC21:
	.string	"\npoll() stdin read 0x%2.2X\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 608
	mov	DWORD PTR -580[rbp], edi
	mov	QWORD PTR -592[rbp], rsi
	mov	QWORD PTR -600[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -568[rbp], 2
	mov	DWORD PTR -572[rbp], 0
	cmp	DWORD PTR -580[rbp], 1
	jg	.L44
	lea	rdi, .LC16[rip]
	call	puts@PLT
	lea	rdi, .LC17[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L44:
	mov	rax, QWORD PTR -592[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -564[rbp], eax
	mov	eax, DWORD PTR -564[rbp]
	mov	edi, eax
	call	gpio_export
	mov	eax, DWORD PTR -564[rbp]
	mov	esi, 0
	mov	edi, eax
	call	gpio_set_dir
	mov	eax, DWORD PTR -564[rbp]
	lea	rsi, .LC18[rip]
	mov	edi, eax
	call	gpio_set_edge
	mov	eax, DWORD PTR -564[rbp]
	mov	edi, eax
	call	gpio_fd_open
	mov	DWORD PTR -560[rbp], eax
	mov	DWORD PTR -556[rbp], 3000
.L52:
	lea	rax, -544[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -544[rbp], 0
	mov	WORD PTR -540[rbp], 1
	mov	eax, DWORD PTR -560[rbp]
	mov	DWORD PTR -536[rbp], eax
	mov	WORD PTR -532[rbp], 2
	mov	eax, DWORD PTR -568[rbp]
	movsx	rcx, eax
	mov	edx, DWORD PTR -556[rbp]
	lea	rax, -544[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	poll@PLT
	mov	DWORD PTR -552[rbp], eax
	cmp	DWORD PTR -552[rbp], 0
	jns	.L45
	lea	rdi, .LC19[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L53
.L45:
	cmp	DWORD PTR -552[rbp], 0
	jne	.L47
	mov	edi, 46
	call	putchar@PLT
.L47:
	movzx	eax, WORD PTR -530[rbp]
	cwde
	and	eax, 2
	test	eax, eax
	je	.L48
	mov	eax, DWORD PTR -536[rbp]
	lea	rcx, -528[rbp]
	mov	edx, 64
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -548[rbp], eax
	mov	eax, DWORD PTR -564[rbp]
	mov	esi, eax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -572[rbp], 0
	jg	.L56
	add	DWORD PTR -572[rbp], 1
.L48:
	movzx	eax, WORD PTR -538[rbp]
	cwde
	and	eax, 1
	test	eax, eax
	je	.L51
	mov	eax, DWORD PTR -544[rbp]
	lea	rcx, -528[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	rax, QWORD PTR -528[rbp]
	mov	esi, eax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
.L51:
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	jmp	.L52
.L56:
	nop
	mov	eax, DWORD PTR -560[rbp]
	mov	edi, eax
	call	gpio_fd_close
	mov	eax, 0
.L53:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L54
	call	__stack_chk_fail@PLT
.L54:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.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	"649186.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/sys/class/gpio/export\000"
	.align	2
.LC1:
	.ascii	"gpio/export\000"
	.align	2
.LC2:
	.ascii	"%d\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	gpio_export
	.syntax unified
	.arm
	.fpu softvfp
	.type	gpio_export, %function
gpio_export:
	@ 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]
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #1
	ldr	r0, .L6+4
	bl	open
	str	r0, [fp, #-80]
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L6+8
	bl	perror
	ldr	r3, [fp, #-80]
	b	.L4
.L2:
	sub	r0, fp, #72
	ldr	r3, [fp, #-88]
	ldr	r2, .L6+12
	mov	r1, #64
	bl	snprintf
	str	r0, [fp, #-76]
	ldr	r2, [fp, #-76]
	sub	r3, fp, #72
	mov	r1, r3
	ldr	r0, [fp, #-80]
	bl	write
	ldr	r0, [fp, #-80]
	bl	close
	mov	r3, #0
.L4:
	ldr	r2, .L6
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	gpio_export, .-gpio_export
	.section	.rodata
	.align	2
.LC4:
	.ascii	"/sys/class/gpio/unexport\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	gpio_unexport
	.syntax unified
	.arm
	.fpu softvfp
	.type	gpio_unexport, %function
gpio_unexport:
	@ 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]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #1
	ldr	r0, .L13+4
	bl	open
	str	r0, [fp, #-80]
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	bge	.L9
	ldr	r0, .L13+8
	bl	perror
	ldr	r3, [fp, #-80]
	b	.L11
.L9:
	sub	r0, fp, #72
	ldr	r3, [fp, #-88]
	ldr	r2, .L13+12
	mov	r1, #64
	bl	snprintf
	str	r0, [fp, #-76]
	ldr	r2, [fp, #-76]
	sub	r3, fp, #72
	mov	r1, r3
	ldr	r0, [fp, #-80]
	bl	write
	ldr	r0, [fp, #-80]
	bl	close
	mov	r3, #0
.L11:
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC5
	.word	.LC4
	.word	.LC1
	.word	.LC2
	.size	gpio_unexport, .-gpio_unexport
	.section	.rodata
	.align	2
.LC6:
	.ascii	"/sys/class/gpio/gpio%d/direction\000"
	.align	2
.LC7:
	.ascii	"gpio/direction\000"
	.align	2
.LC8:
	.ascii	"out\000"
	.align	2
.LC9:
	.ascii	"in\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	gpio_set_dir
	.syntax unified
	.arm
	.fpu softvfp
	.type	gpio_set_dir, %function
gpio_set_dir:
	@ 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, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r0, fp, #72
	ldr	r3, [fp, #-88]
	ldr	r2, .L22+4
	mov	r1, #64
	bl	snprintf
	str	r0, [fp, #-80]
	sub	r3, fp, #72
	mov	r1, #1
	mov	r0, r3
	bl	open
	str	r0, [fp, #-76]
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	bge	.L16
	ldr	r0, .L22+8
	bl	perror
	ldr	r3, [fp, #-76]
	b	.L20
.L16:
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	beq	.L18
	mov	r2, #4
	ldr	r1, .L22+12
	ldr	r0, [fp, #-76]
	bl	write
	b	.L19
.L18:
	mov	r2, #3
	ldr	r1, .L22+16
	ldr	r0, [fp, #-76]
	bl	write
.L19:
	ldr	r0, [fp, #-76]
	bl	close
	mov	r3, #0
.L20:
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC10
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	gpio_set_dir, .-gpio_set_dir
	.section	.rodata
	.align	2
.LC11:
	.ascii	"/sys/class/gpio/gpio%d/value\000"
	.align	2
.LC12:
	.ascii	"gpio/set-value\000"
	.align	2
.LC13:
	.ascii	"1\000"
	.align	2
.LC14:
	.ascii	"0\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	gpio_set_value
	.syntax unified
	.arm
	.fpu softvfp
	.type	gpio_set_value, %function
gpio_set_value:
	@ 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, .L31
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r0, fp, #72
	ldr	r3, [fp, #-88]
	ldr	r2, .L31+4
	mov	r1, #64
	bl	snprintf
	str	r0, [fp, #-80]
	sub	r3, fp, #72
	mov	r1, #1
	mov	r0, r3
	bl	open
	str	r0, [fp, #-76]
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	bge	.L25
	ldr	r0, .L31+8
	bl	perror
	ldr	r3, [fp, #-76]
	b	.L29
.L25:
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	beq	.L27
	mov	r2, #2
	ldr	r1, .L31+12
	ldr	r0, [fp, #-76]
	bl	write
	b	.L28
.L27:
	mov	r2, #2
	ldr	r1, .L31+16
	ldr	r0, [fp, #-76]
	bl	write
.L28:
	ldr	r0, [fp, #-76]
	bl	close
	mov	r3, #0
.L29:
	ldr	r2, .L31
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L30
	bl	__stack_chk_fail
.L30:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC15
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	gpio_set_value, .-gpio_set_value
	.section	.rodata
	.align	2
.LC16:
	.ascii	"gpio/get-value\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	gpio_get_value
	.syntax unified
	.arm
	.fpu softvfp
	.type	gpio_get_value, %function
gpio_get_value:
	@ 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, .L40
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r0, fp, #72
	ldr	r3, [fp, #-88]
	ldr	r2, .L40+4
	mov	r1, #64
	bl	snprintf
	str	r0, [fp, #-80]
	sub	r3, fp, #72
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-76]
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	bge	.L34
	ldr	r0, .L40+8
	bl	perror
	ldr	r3, [fp, #-76]
	b	.L38
.L34:
	sub	r3, fp, #81
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-76]
	bl	read
	ldrb	r3, [fp, #-81]	@ zero_extendqisi2
	cmp	r3, #48
	beq	.L36
	ldr	r3, [fp, #-92]
	mov	r2, #1
	str	r2, [r3]
	b	.L37
.L36:
	ldr	r3, [fp, #-92]
	mov	r2, #0
	str	r2, [r3]
.L37:
	ldr	r0, [fp, #-76]
	bl	close
	mov	r3, #0
.L38:
	ldr	r2, .L40
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L39
	bl	__stack_chk_fail
.L39:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	.LC17
	.word	.LC11
	.word	.LC16
	.size	gpio_get_value, .-gpio_get_value
	.section	.rodata
	.align	2
.LC18:
	.ascii	"/sys/class/gpio/gpio%d/edge\000"
	.align	2
.LC19:
	.ascii	"gpio/set-edge\000"
	.align	2
.LC20:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	gpio_set_edge
	.syntax unified
	.arm
	.fpu softvfp
	.type	gpio_set_edge, %function
gpio_set_edge:
	@ 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, .L47
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r0, fp, #72
	ldr	r3, [fp, #-88]
	ldr	r2, .L47+4
	mov	r1, #64
	bl	snprintf
	str	r0, [fp, #-80]
	sub	r3, fp, #72
	mov	r1, #1
	mov	r0, r3
	bl	open
	str	r0, [fp, #-76]
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	bge	.L43
	ldr	r0, .L47+8
	bl	perror
	ldr	r3, [fp, #-76]
	b	.L45
.L43:
	ldr	r0, [fp, #-92]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-92]
	ldr	r0, [fp, #-76]
	bl	write
	ldr	r0, [fp, #-76]
	bl	close
	mov	r3, #0
.L45:
	ldr	r2, .L47
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L46
	bl	__stack_chk_fail
.L46:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L48:
	.align	2
.L47:
	.word	.LC20
	.word	.LC18
	.word	.LC19
	.size	gpio_set_edge, .-gpio_set_edge
	.section	.rodata
	.align	2
.LC21:
	.ascii	"gpio/fd_open\000"
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	gpio_fd_open
	.syntax unified
	.arm
	.fpu softvfp
	.type	gpio_fd_open, %function
gpio_fd_open:
	@ 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]
	ldr	r3, .L53
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r0, fp, #72
	ldr	r3, [fp, #-88]
	ldr	r2, .L53+4
	mov	r1, #64
	bl	snprintf
	str	r0, [fp, #-80]
	sub	r3, fp, #72
	mov	r1, #2048
	mov	r0, r3
	bl	open
	str	r0, [fp, #-76]
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	bge	.L50
	ldr	r0, .L53+8
	bl	perror
.L50:
	ldr	r3, [fp, #-76]
	ldr	r2, .L53
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L52
	bl	__stack_chk_fail
.L52:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L54:
	.align	2
.L53:
	.word	.LC22
	.word	.LC11
	.word	.LC21
	.size	gpio_fd_open, .-gpio_fd_open
	.align	2
	.global	gpio_fd_close
	.syntax unified
	.arm
	.fpu softvfp
	.type	gpio_fd_close, %function
gpio_fd_close:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	close
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	gpio_fd_close, .-gpio_fd_close
	.section	.rodata
	.align	2
.LC23:
	.ascii	"Usage: gpio-int <gpio-pin>\012\000"
	.align	2
.LC24:
	.ascii	"Waits for a change in the GPIO pin voltage level or"
	.ascii	" input on stdin\000"
	.align	2
.LC25:
	.ascii	"falling\000"
	.align	2
.LC26:
	.ascii	"\012poll() failed!\000"
	.align	2
.LC27:
	.ascii	"\012poll() GPIO %d interrupt occurred\012\000"
	.align	2
.LC28:
	.ascii	"\012poll() stdin read 0x%2.2X\012\000"
	.align	2
.LC29:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 320
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #320
	str	r0, [fp, #-312]
	str	r1, [fp, #-316]
	str	r2, [fp, #-320]
	ldr	r3, .L71
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #2
	str	r3, [fp, #-304]
	mov	r3, #0
	str	r3, [fp, #-308]
	ldr	r3, [fp, #-312]
	cmp	r3, #1
	bgt	.L58
	ldr	r0, .L71+4
	bl	puts
	ldr	r0, .L71+8
	bl	puts
	mvn	r0, #0
	bl	exit
.L58:
	ldr	r3, [fp, #-316]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-300]
	ldr	r0, [fp, #-300]
	bl	gpio_export
	mov	r1, #0
	ldr	r0, [fp, #-300]
	bl	gpio_set_dir
	ldr	r1, .L71+12
	ldr	r0, [fp, #-300]
	bl	gpio_set_edge
	ldr	r0, [fp, #-300]
	bl	gpio_fd_open
	str	r0, [fp, #-296]
	ldr	r3, .L71+16
	str	r3, [fp, #-292]
.L66:
	sub	r3, fp, #280
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-280]
	sub	r3, fp, #4
	sub	r3, r3, #276
	mov	r2, #1
	strh	r2, [r3, #4]	@ movhi
	ldr	r3, [fp, #-296]
	str	r3, [fp, #-272]
	sub	r3, fp, #4
	sub	r3, r3, #276
	mov	r2, #2
	strh	r2, [r3, #12]	@ movhi
	ldr	r1, [fp, #-304]
	sub	r3, fp, #280
	ldr	r2, [fp, #-292]
	mov	r0, r3
	bl	poll
	str	r0, [fp, #-288]
	ldr	r3, [fp, #-288]
	cmp	r3, #0
	bge	.L59
	ldr	r0, .L71+20
	bl	puts
	mvn	r3, #0
	b	.L67
.L59:
	ldr	r3, [fp, #-288]
	cmp	r3, #0
	bne	.L61
	mov	r0, #46
	bl	putchar
.L61:
	sub	r3, fp, #4
	sub	r3, r3, #276
	ldrsh	r3, [r3, #14]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L62
	ldr	r3, [fp, #-272]
	sub	r1, fp, #264
	mov	r2, #64
	mov	r0, r3
	bl	read
	str	r0, [fp, #-284]
	ldr	r1, [fp, #-300]
	ldr	r0, .L71+24
	bl	printf
	ldr	r3, [fp, #-308]
	cmp	r3, #0
	bgt	.L70
	ldr	r3, [fp, #-308]
	add	r3, r3, #1
	str	r3, [fp, #-308]
.L62:
	sub	r3, fp, #4
	sub	r3, r3, #276
	ldrsh	r3, [r3, #6]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L65
	ldr	r3, [fp, #-280]
	sub	r1, fp, #264
	mov	r2, #1
	mov	r0, r3
	bl	read
	ldr	r3, [fp, #-264]
	mov	r1, r3
	ldr	r0, .L71+28
	bl	printf
.L65:
	ldr	r3, .L71+32
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	b	.L66
.L70:
	nop
	ldr	r0, [fp, #-296]
	bl	gpio_fd_close
	mov	r3, #0
.L67:
	ldr	r2, .L71
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L68
	bl	__stack_chk_fail
.L68:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L72:
	.align	2
.L71:
	.word	.LC29
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	3000
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	stdout
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
