	.file	"418724.c"
	.intel_syntax noprefix
	.text
	.globl	progName
	.bss
	.align 8
	.type	progName, @object
	.size	progName, 8
progName:
	.zero	8
	.globl	sysfs_root
	.data
	.align 16
	.type	sysfs_root, @object
	.size	sysfs_root, 16
sysfs_root:
	.string	"/sys/class/gpio"
	.globl	running
	.type	running, @object
	.size	running, 1
running:
	.byte	1
	.globl	pin
	.align 4
	.type	pin, @object
	.size	pin, 4
pin:
	.long	26
	.globl	gpio
	.bss
	.align 8
	.type	gpio, @object
	.size	gpio, 8
gpio:
	.zero	8
	.globl	debounceTime
	.section	.rodata
	.align 4
	.type	debounceTime, @object
	.size	debounceTime, 4
debounceTime:
	.long	20
.LC0:
	.string	"%s/gpio%d/%s"
	.text
	.globl	pinConfig
	.type	pinConfig, @function
pinConfig:
.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, 96
	mov	QWORD PTR -88[rbp], rdi
	mov	QWORD PTR -96[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -76[rbp], eax
	mov	edx, DWORD PTR pin[rip]
	mov	rcx, QWORD PTR -88[rbp]
	lea	rax, -64[rbp]
	mov	r8, rcx
	mov	ecx, edx
	lea	rdx, sysfs_root[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -64[rbp]
	mov	esi, 1
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -72[rbp], eax
	cmp	DWORD PTR -72[rbp], 0
	jns	.L2
	mov	eax, -1
	jmp	.L4
.L2:
	mov	eax, DWORD PTR -76[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR -72[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -68[rbp], eax
	mov	eax, DWORD PTR -72[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -68[rbp]
	cmp	eax, DWORD PTR -76[rbp]
	setne	al
	movzx	eax, al
.L4:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	pinConfig, .-pinConfig
	.section	.rodata
.LC1:
	.string	"%s/unexport"
.LC2:
	.string	"%d"
	.text
	.globl	cleanup
	.type	cleanup, @function
cleanup:
.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, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -64[rbp]
	lea	rdx, sysfs_root[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -64[rbp]
	mov	esi, 1
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -68[rbp], eax
	cmp	DWORD PTR -68[rbp], 0
	js	.L9
	mov	edx, DWORD PTR pin[rip]
	lea	rax, -64[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -64[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -68[rbp]
	mov	edi, eax
	call	close@PLT
.L9:
	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	cleanup, .-cleanup
	.section	.rodata
.LC3:
	.string	"%s: %s.  Try 'sudo %s'.\n"
	.text
	.globl	err
	.type	err, @function
err:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rcx, QWORD PTR progName[rip]
	mov	rax, QWORD PTR progName[rip]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	cleanup
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE8:
	.size	err, .-err
	.globl	signalHandler
	.type	signalHandler, @function
signalHandler:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	BYTE PTR running[rip], 0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	signalHandler, .-signalHandler
	.section	.rodata
.LC4:
	.string	"r"
.LC5:
	.string	"/proc/cmdline"
.LC6:
	.string	"mem_size="
.LC7:
	.string	"%x"
.LC8:
	.string	"boardrev="
	.text
	.type	boardType, @function
boardType:
.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, 1072
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1060[rbp], 1
	lea	rsi, .LC4[rip]
	lea	rdi, .LC5[rip]
	call	fopen@PLT
	mov	QWORD PTR -1056[rbp], rax
	cmp	QWORD PTR -1056[rbp], 0
	je	.L13
	jmp	.L14
.L18:
	lea	rax, -1040[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strstr@PLT
	mov	QWORD PTR -1048[rbp], rax
	cmp	QWORD PTR -1048[rbp], 0
	je	.L15
	mov	rax, QWORD PTR -1048[rbp]
	lea	rcx, 9[rax]
	lea	rax, -1064[rbp]
	mov	rdx, rax
	lea	rsi, .LC7[rip]
	mov	rdi, rcx
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 1
	jne	.L15
	mov	eax, DWORD PTR -1064[rbp]
	cmp	eax, 1056964608
	jne	.L15
	mov	DWORD PTR -1060[rbp], 2
	jmp	.L16
.L15:
	lea	rax, -1040[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strstr@PLT
	mov	QWORD PTR -1048[rbp], rax
	cmp	QWORD PTR -1048[rbp], 0
	je	.L14
	mov	rax, QWORD PTR -1048[rbp]
	lea	rcx, 9[rax]
	lea	rax, -1064[rbp]
	mov	rdx, rax
	lea	rsi, .LC7[rip]
	mov	rdi, rcx
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 1
	jne	.L14
	mov	eax, DWORD PTR -1064[rbp]
	cmp	eax, 2
	je	.L17
	mov	eax, DWORD PTR -1064[rbp]
	cmp	eax, 3
	jne	.L14
.L17:
	mov	DWORD PTR -1060[rbp], 0
	jmp	.L16
.L14:
	mov	rdx, QWORD PTR -1056[rbp]
	lea	rax, -1040[rbp]
	mov	esi, 1024
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L18
.L16:
	mov	rax, QWORD PTR -1056[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L13:
	mov	eax, DWORD PTR -1060[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	boardType, .-boardType
	.section	.rodata
.LC9:
	.string	"/dev/mem"
.LC10:
	.string	"Can't open /dev/mem"
.LC11:
	.string	"Can't mmap()"
.LC12:
	.string	"%s/export"
.LC13:
	.string	"Can't open GPIO export file"
.LC14:
	.string	"0"
.LC15:
	.string	"active_low"
.LC16:
	.string	"in"
.LC17:
	.string	"direction"
.LC18:
	.string	"both"
.LC19:
	.string	"edge"
.LC20:
	.string	"Pin config failed"
.LC21:
	.string	"%s/gpio%d/value"
.LC22:
	.string	"Can't access pin value"
.LC23:
	.string	"shutdown -r now"
.LC24:
	.string	"Done."
	.text
	.globl	main
	.type	main, @function
main:
.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	DWORD PTR -84[rbp], -1
	mov	rax, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR progName[rip], rax
	lea	rsi, signalHandler[rip]
	mov	edi, 2
	call	signal@PLT
	lea	rsi, signalHandler[rip]
	mov	edi, 9
	call	signal@PLT
	cmp	DWORD PTR -100[rbp], 1
	jle	.L22
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR pin[rip], eax
.L22:
	call	boardType
	mov	BYTE PTR -85[rbp], al
	cmp	BYTE PTR -85[rbp], 0
	jne	.L23
	mov	eax, DWORD PTR pin[rip]
	cmp	eax, 2
	jne	.L24
	mov	DWORD PTR pin[rip], 0
	jmp	.L23
.L24:
	mov	eax, DWORD PTR pin[rip]
	cmp	eax, 3
	jne	.L25
	mov	DWORD PTR pin[rip], 1
	jmp	.L23
.L25:
	mov	eax, DWORD PTR pin[rip]
	cmp	eax, 27
	jne	.L23
	mov	DWORD PTR pin[rip], 21
.L23:
	mov	esi, 1052674
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -76[rbp], 0
	jns	.L26
	lea	rdi, .LC10[rip]
	call	err
.L26:
	cmp	BYTE PTR -85[rbp], 2
	jne	.L27
	mov	edx, 1059061760
	jmp	.L28
.L27:
	mov	edx, 538968064
.L28:
	mov	eax, DWORD PTR -76[rbp]
	mov	r9, rdx
	mov	r8d, eax
	mov	ecx, 1
	mov	edx, 3
	mov	esi, 4096
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR gpio[rip], rax
	mov	eax, DWORD PTR -76[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR gpio[rip]
	cmp	rax, -1
	jne	.L29
	lea	rdi, .LC11[rip]
	call	err
.L29:
	mov	rax, QWORD PTR gpio[rip]
	add	rax, 148
	mov	DWORD PTR [rax], 2
	mov	BYTE PTR -86[rbp], -106
	nop
.L30:
	movzx	eax, BYTE PTR -86[rbp]
	sub	eax, 1
	mov	BYTE PTR -86[rbp], al
	test	al, al
	jne	.L30
	mov	eax, DWORD PTR pin[rip]
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	rax, QWORD PTR gpio[rip]
	add	rax, 152
	mov	DWORD PTR [rax], edx
	mov	BYTE PTR -86[rbp], -106
	nop
.L31:
	movzx	eax, BYTE PTR -86[rbp]
	sub	eax, 1
	mov	BYTE PTR -86[rbp], al
	test	al, al
	jne	.L31
	mov	rax, QWORD PTR gpio[rip]
	add	rax, 148
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR gpio[rip]
	add	rax, 152
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR gpio[rip]
	mov	esi, 4096
	mov	rdi, rax
	call	munmap@PLT
	lea	rax, -64[rbp]
	lea	rdx, sysfs_root[rip]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -64[rbp]
	mov	esi, 1
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -76[rbp], 0
	jns	.L32
	lea	rdi, .LC13[rip]
	call	err
.L32:
	mov	edx, DWORD PTR pin[rip]
	lea	rax, -64[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -64[rbp]
	mov	eax, DWORD PTR -76[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	lea	rsi, .LC14[rip]
	lea	rdi, .LC15[rip]
	call	pinConfig
	lea	rsi, .LC16[rip]
	lea	rdi, .LC17[rip]
	call	pinConfig
	test	eax, eax
	jne	.L33
	lea	rsi, .LC18[rip]
	lea	rdi, .LC19[rip]
	call	pinConfig
	test	eax, eax
	je	.L34
.L33:
	lea	rdi, .LC20[rip]
	call	err
.L34:
	mov	edx, DWORD PTR pin[rip]
	lea	rax, -64[rbp]
	mov	ecx, edx
	lea	rdx, sysfs_root[rip]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -64[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -72[rbp], eax
	mov	eax, DWORD PTR -72[rbp]
	test	eax, eax
	jns	.L35
	lea	rdi, .LC22[rip]
	call	err
.L35:
	mov	DWORD PTR -80[rbp], 0
	mov	eax, DWORD PTR -72[rbp]
	lea	rcx, -87[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	cmp	rax, 1
	jne	.L36
	movzx	eax, BYTE PTR -87[rbp]
	cmp	al, 48
	jne	.L36
	mov	DWORD PTR -80[rbp], 1
.L36:
	mov	WORD PTR -68[rbp], 2
	mov	WORD PTR -66[rbp], 0
	mov	eax, DWORD PTR -76[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L37
.L42:
	mov	edx, DWORD PTR -84[rbp]
	lea	rax, -72[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	poll@PLT
	test	eax, eax
	jle	.L38
	movzx	eax, WORD PTR -66[rbp]
	test	ax, ax
	je	.L39
	mov	eax, DWORD PTR -72[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	mov	eax, DWORD PTR -72[rbp]
	lea	rcx, -87[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	movzx	eax, BYTE PTR -87[rbp]
	cmp	al, 48
	jne	.L40
	mov	DWORD PTR -80[rbp], 1
	jmp	.L41
.L40:
	movzx	eax, BYTE PTR -87[rbp]
	cmp	al, 49
	jne	.L41
	mov	DWORD PTR -80[rbp], 0
.L41:
	mov	WORD PTR -66[rbp], 0
.L39:
	mov	DWORD PTR -84[rbp], 20
	jmp	.L37
.L38:
	mov	eax, 20
	cmp	DWORD PTR -84[rbp], eax
	jne	.L37
	cmp	DWORD PTR -80[rbp], 0
	je	.L37
	lea	rdi, .LC23[rip]
	call	system@PLT
	mov	BYTE PTR running[rip], 0
.L37:
	movzx	eax, BYTE PTR running[rip]
	test	al, al
	jne	.L42
	mov	eax, 0
	call	cleanup
	lea	rdi, .LC24[rip]
	call	puts@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L44
	call	__stack_chk_fail@PLT
.L44:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.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	"418724.c"
	.text
	.comm	progName,4,4
	.global	sysfs_root
	.data
	.align	2
	.type	sysfs_root, %object
	.size	sysfs_root, 16
sysfs_root:
	.ascii	"/sys/class/gpio\000"
	.global	running
	.type	running, %object
	.size	running, 1
running:
	.byte	1
	.global	pin
	.align	2
	.type	pin, %object
	.size	pin, 4
pin:
	.word	26
	.comm	gpio,4,4
	.global	debounceTime
	.section	.rodata
	.align	2
	.type	debounceTime, %object
	.size	debounceTime, 4
debounceTime:
	.word	20
	.align	2
.LC0:
	.ascii	"%s/gpio%d/%s\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	pinConfig
	.syntax unified
	.arm
	.fpu softvfp
	.type	pinConfig, %function
pinConfig:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #88
	str	r0, [fp, #-80]
	str	r1, [fp, #-84]
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, [fp, #-84]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-72]
	ldr	r3, .L6+4
	ldr	r2, [r3]
	sub	r0, fp, #60
	ldr	r3, [fp, #-80]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, .L6+8
	ldr	r1, .L6+12
	bl	sprintf
	sub	r3, fp, #60
	mov	r1, #1
	mov	r0, r3
	bl	open
	str	r0, [fp, #-68]
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bge	.L2
	mvn	r3, #0
	b	.L4
.L2:
	ldr	r3, [fp, #-72]
	mov	r2, r3
	ldr	r1, [fp, #-84]
	ldr	r0, [fp, #-68]
	bl	write
	str	r0, [fp, #-64]
	ldr	r0, [fp, #-68]
	bl	close
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
.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	.LC1
	.word	pin
	.word	sysfs_root
	.word	.LC0
	.size	pinConfig, .-pinConfig
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%s/unexport\000"
	.align	2
.LC3:
	.ascii	"%d\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	cleanup
	.syntax unified
	.arm
	.fpu softvfp
	.type	cleanup, %function
cleanup:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #60
	ldr	r2, .L12+4
	ldr	r1, .L12+8
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #60
	mov	r1, #1
	mov	r0, r3
	bl	open
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	blt	.L11
	ldr	r3, .L12+12
	ldr	r2, [r3]
	sub	r3, fp, #60
	ldr	r1, .L12+16
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #60
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #60
	mov	r1, r3
	ldr	r0, [fp, #-64]
	bl	write
	ldr	r0, [fp, #-64]
	bl	close
.L11:
	nop
	ldr	r3, .L12
	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}
.L13:
	.align	2
.L12:
	.word	.LC4
	.word	sysfs_root
	.word	.LC2
	.word	pin
	.word	.LC3
	.size	cleanup, .-cleanup
	.section	.rodata
	.align	2
.LC5:
	.ascii	"%s: %s.  Try 'sudo %s'.\012\000"
	.text
	.align	2
	.global	err
	.syntax unified
	.arm
	.fpu softvfp
	.type	err, %function
err:
	@ 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	r3, .L15
	ldr	r1, [r3]
	ldr	r3, .L15
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r0, .L15+4
	bl	printf
	bl	cleanup
	mov	r0, #1
	bl	exit
.L16:
	.align	2
.L15:
	.word	progName
	.word	.LC5
	.size	err, .-err
	.align	2
	.global	signalHandler
	.syntax unified
	.arm
	.fpu softvfp
	.type	signalHandler, %function
signalHandler:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, .L18
	mov	r2, #0
	strb	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L19:
	.align	2
.L18:
	.word	running
	.size	signalHandler, .-signalHandler
	.section	.rodata
	.align	2
.LC6:
	.ascii	"r\000"
	.align	2
.LC7:
	.ascii	"/proc/cmdline\000"
	.align	2
.LC8:
	.ascii	"mem_size=\000"
	.align	2
.LC9:
	.ascii	"%x\000"
	.align	2
.LC10:
	.ascii	"boardrev=\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	boardType, %function
boardType:
	@ args = 0, pretend = 0, frame = 1048
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1040
	sub	sp, sp, #8
	ldr	r3, .L29
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-1044]
	ldr	r1, .L29+4
	ldr	r0, .L29+8
	bl	fopen
	str	r0, [fp, #-1040]
	ldr	r3, [fp, #-1040]
	cmp	r3, #0
	beq	.L21
	b	.L22
.L26:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L29+12
	mov	r0, r3
	bl	strstr
	str	r0, [fp, #-1036]
	ldr	r3, [fp, #-1036]
	cmp	r3, #0
	beq	.L23
	ldr	r3, [fp, #-1036]
	add	r0, r3, #9
	sub	r3, fp, #1040
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, r3
	ldr	r1, .L29+16
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #1
	bne	.L23
	ldr	r3, [fp, #-1048]
	cmp	r3, #1056964608
	bne	.L23
	mov	r3, #2
	str	r3, [fp, #-1044]
	b	.L24
.L23:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L29+20
	mov	r0, r3
	bl	strstr
	str	r0, [fp, #-1036]
	ldr	r3, [fp, #-1036]
	cmp	r3, #0
	beq	.L22
	ldr	r3, [fp, #-1036]
	add	r0, r3, #9
	sub	r3, fp, #1040
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, r3
	ldr	r1, .L29+16
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #1
	bne	.L22
	ldr	r3, [fp, #-1048]
	cmp	r3, #2
	beq	.L25
	ldr	r3, [fp, #-1048]
	cmp	r3, #3
	bne	.L22
.L25:
	mov	r3, #0
	str	r3, [fp, #-1044]
	b	.L24
.L22:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1040]
	mov	r1, #1024
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L26
.L24:
	ldr	r0, [fp, #-1040]
	bl	fclose
.L21:
	ldr	r3, [fp, #-1044]
	ldr	r2, .L29
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L28
	bl	__stack_chk_fail
.L28:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC11
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	boardType, .-boardType
	.section	.rodata
	.align	2
.LC12:
	.ascii	"/dev/mem\000"
	.align	2
.LC13:
	.ascii	"Can't open /dev/mem\000"
	.align	2
.LC14:
	.ascii	"Can't mmap()\000"
	.align	2
.LC15:
	.ascii	"%s/export\000"
	.align	2
.LC16:
	.ascii	"Can't open GPIO export file\000"
	.align	2
.LC17:
	.ascii	"0\000"
	.align	2
.LC18:
	.ascii	"active_low\000"
	.align	2
.LC19:
	.ascii	"in\000"
	.align	2
.LC20:
	.ascii	"direction\000"
	.align	2
.LC21:
	.ascii	"both\000"
	.align	2
.LC22:
	.ascii	"edge\000"
	.align	2
.LC23:
	.ascii	"Pin config failed\000"
	.align	2
.LC24:
	.ascii	"%s/gpio%d/value\000"
	.align	2
.LC25:
	.ascii	"Can't access pin value\000"
	.align	2
.LC26:
	.ascii	"shutdown -r now\000"
	.align	2
.LC27:
	.ascii	"Done.\000"
	.align	2
.LC28:
	.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, #96
	str	r0, [fp, #-88]
	str	r1, [fp, #-92]
	ldr	r3, .L55
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-92]
	ldr	r3, [r3]
	ldr	r2, .L55+4
	str	r3, [r2]
	ldr	r1, .L55+8
	mov	r0, #2
	bl	signal
	ldr	r1, .L55+8
	mov	r0, #9
	bl	signal
	ldr	r3, [fp, #-88]
	cmp	r3, #1
	ble	.L32
	ldr	r3, [fp, #-92]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L55+12
	str	r3, [r2]
.L32:
	bl	boardType
	mov	r3, r0
	strb	r3, [fp, #-81]
	ldrb	r3, [fp, #-81]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L33
	ldr	r3, .L55+12
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L34
	ldr	r3, .L55+12
	mov	r2, #0
	str	r2, [r3]
	b	.L33
.L34:
	ldr	r3, .L55+12
	ldr	r3, [r3]
	cmp	r3, #3
	bne	.L35
	ldr	r3, .L55+12
	mov	r2, #1
	str	r2, [r3]
	b	.L33
.L35:
	ldr	r3, .L55+12
	ldr	r3, [r3]
	cmp	r3, #27
	bne	.L33
	ldr	r3, .L55+12
	mov	r2, #21
	str	r2, [r3]
.L33:
	ldr	r1, .L55+16
	ldr	r0, .L55+20
	bl	open
	str	r0, [fp, #-72]
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	bge	.L36
	ldr	r0, .L55+24
	bl	err
.L36:
	ldrb	r3, [fp, #-81]	@ zero_extendqisi2
	cmp	r3, #2
	bne	.L37
	ldr	r3, .L55+28
	b	.L38
.L37:
	ldr	r3, .L55+32
.L38:
	str	r3, [sp, #4]
	ldr	r3, [fp, #-72]
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #3
	mov	r1, #4096
	mov	r0, #0
	bl	mmap
	mov	r3, r0
	ldr	r2, .L55+36
	str	r3, [r2]
	ldr	r0, [fp, #-72]
	bl	close
	ldr	r3, .L55+36
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L39
	ldr	r0, .L55+40
	bl	err
.L39:
	ldr	r3, .L55+36
	ldr	r3, [r3]
	add	r3, r3, #148
	mov	r2, #2
	str	r2, [r3]
	mvn	r3, #105
	strb	r3, [fp, #-82]
	nop
.L40:
	ldrb	r3, [fp, #-82]
	and	r3, r3, #255
	sub	r3, r3, #1
	and	r3, r3, #255
	mov	r2, r3
	strb	r2, [fp, #-82]
	cmp	r3, #0
	bne	.L40
	ldr	r3, .L55+12
	ldr	r3, [r3]
	mov	r2, #1
	lsl	r2, r2, r3
	ldr	r3, .L55+36
	ldr	r3, [r3]
	add	r3, r3, #152
	str	r2, [r3]
	mvn	r3, #105
	strb	r3, [fp, #-82]
	nop
.L41:
	ldrb	r3, [fp, #-82]
	and	r3, r3, #255
	sub	r3, r3, #1
	and	r3, r3, #255
	mov	r2, r3
	strb	r2, [fp, #-82]
	cmp	r3, #0
	bne	.L41
	ldr	r3, .L55+36
	ldr	r3, [r3]
	add	r3, r3, #148
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L55+36
	ldr	r3, [r3]
	add	r3, r3, #152
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L55+36
	ldr	r3, [r3]
	mov	r1, #4096
	mov	r0, r3
	bl	munmap
	sub	r3, fp, #60
	ldr	r2, .L55+44
	ldr	r1, .L55+48
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #60
	mov	r1, #1
	mov	r0, r3
	bl	open
	str	r0, [fp, #-72]
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	bge	.L42
	ldr	r0, .L55+52
	bl	err
.L42:
	ldr	r3, .L55+12
	ldr	r2, [r3]
	sub	r3, fp, #60
	ldr	r1, .L55+56
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #60
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #60
	mov	r1, r3
	ldr	r0, [fp, #-72]
	bl	write
	ldr	r1, .L55+60
	ldr	r0, .L55+64
	bl	pinConfig
	ldr	r1, .L55+68
	ldr	r0, .L55+72
	bl	pinConfig
	mov	r3, r0
	cmp	r3, #0
	bne	.L43
	ldr	r1, .L55+76
	ldr	r0, .L55+80
	bl	pinConfig
	mov	r3, r0
	cmp	r3, #0
	beq	.L44
.L43:
	ldr	r0, .L55+84
	bl	err
.L44:
	ldr	r3, .L55+12
	ldr	r3, [r3]
	sub	r0, fp, #60
	ldr	r2, .L55+44
	ldr	r1, .L55+88
	bl	sprintf
	sub	r3, fp, #60
	mov	r1, #0
	mov	r0, r3
	bl	open
	mov	r3, r0
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bge	.L45
	ldr	r0, .L55+92
	bl	err
.L45:
	mov	r3, #0
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-68]
	sub	r1, fp, #83
	mov	r2, #1
	mov	r0, r3
	bl	read
	mov	r3, r0
	cmp	r3, #1
	bne	.L46
	ldrb	r3, [fp, #-83]	@ zero_extendqisi2
	cmp	r3, #48
	bne	.L46
	mov	r3, #1
	str	r3, [fp, #-76]
.L46:
	mov	r3, #2
	strh	r3, [fp, #-64]	@ movhi
	mov	r3, #0
	strh	r3, [fp, #-62]	@ movhi
	ldr	r0, [fp, #-72]
	bl	close
	b	.L47
.L52:
	sub	r3, fp, #68
	ldr	r2, [fp, #-80]
	mov	r1, #1
	mov	r0, r3
	bl	poll
	mov	r3, r0
	cmp	r3, #0
	ble	.L48
	ldrsh	r3, [fp, #-62]
	cmp	r3, #0
	beq	.L49
	ldr	r3, [fp, #-68]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	lseek
	ldr	r3, [fp, #-68]
	sub	r1, fp, #83
	mov	r2, #1
	mov	r0, r3
	bl	read
	ldrb	r3, [fp, #-83]	@ zero_extendqisi2
	cmp	r3, #48
	bne	.L50
	mov	r3, #1
	str	r3, [fp, #-76]
	b	.L51
.L50:
	ldrb	r3, [fp, #-83]	@ zero_extendqisi2
	cmp	r3, #49
	bne	.L51
	mov	r3, #0
	str	r3, [fp, #-76]
.L51:
	mov	r3, #0
	strh	r3, [fp, #-62]	@ movhi
.L49:
	mov	r3, #20
	str	r3, [fp, #-80]
	b	.L47
.L48:
	mov	r2, #20
	ldr	r3, [fp, #-80]
	cmp	r3, r2
	bne	.L47
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	beq	.L47
	ldr	r0, .L55+96
	bl	system
	ldr	r3, .L55+100
	mov	r2, #0
	strb	r2, [r3]
.L47:
	ldr	r3, .L55+100
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L52
	bl	cleanup
	ldr	r0, .L55+104
	bl	puts
	mov	r3, #0
	ldr	r2, .L55
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L54
	bl	__stack_chk_fail
.L54:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L56:
	.align	2
.L55:
	.word	.LC28
	.word	progName
	.word	signalHandler
	.word	pin
	.word	1052674
	.word	.LC12
	.word	.LC13
	.word	1059061760
	.word	538968064
	.word	gpio
	.word	.LC14
	.word	sysfs_root
	.word	.LC15
	.word	.LC16
	.word	.LC3
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	running
	.word	.LC27
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
