	.file	"423686.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"/sys/class/gpio/export"
.LC1:
	.string	"export error"
.LC2:
	.string	"2"
.LC3:
	.string	"export ok!"
	.align 8
.LC4:
	.string	"/sys/class/gpio/gpio2/direction"
.LC5:
	.string	"direction error"
.LC6:
	.string	"out"
.LC7:
	.string	"direction ok!"
.LC8:
	.string	"/sys/class/gpio/gpio2/value"
.LC9:
	.string	"on/off error"
.LC10:
	.string	"1"
.LC11:
	.string	"on ok!"
.LC12:
	.string	"0"
.LC13:
	.string	"off ok!"
.LC14:
	.string	"/sys/class/gpio/unexport"
.LC15:
	.string	"unexport error"
.LC16:
	.string	"unexport ok!"
	.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, 16
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	mov	esi, 1
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	jns	.L2
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L3
.L2:
	mov	eax, DWORD PTR -8[rbp]
	mov	edx, 2
	lea	rsi, .LC2[rip]
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jle	.L4
	lea	rdi, .LC3[rip]
	call	puts@PLT
.L4:
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 100000
	call	usleep@PLT
	mov	esi, 1
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	jns	.L5
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L3
.L5:
	mov	eax, DWORD PTR -8[rbp]
	mov	edx, 4
	lea	rsi, .LC6[rip]
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jle	.L6
	lea	rdi, .LC7[rip]
	call	puts@PLT
.L6:
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	close@PLT
	mov	esi, 1
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	jns	.L7
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L3
.L7:
	mov	eax, DWORD PTR -8[rbp]
	mov	edx, 2
	lea	rsi, .LC10[rip]
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jle	.L8
	lea	rdi, .LC11[rip]
	call	puts@PLT
.L8:
	mov	edi, 1000000
	call	usleep@PLT
	mov	eax, DWORD PTR -8[rbp]
	mov	edx, 2
	lea	rsi, .LC12[rip]
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jle	.L9
	lea	rdi, .LC13[rip]
	call	puts@PLT
.L9:
	mov	edi, 1000000
	call	usleep@PLT
	mov	eax, DWORD PTR -8[rbp]
	mov	edx, 2
	lea	rsi, .LC10[rip]
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jle	.L10
	lea	rdi, .LC11[rip]
	call	puts@PLT
.L10:
	mov	edi, 1000000
	call	usleep@PLT
	mov	eax, DWORD PTR -8[rbp]
	mov	edx, 2
	lea	rsi, .LC12[rip]
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jle	.L11
	lea	rdi, .LC13[rip]
	call	puts@PLT
.L11:
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	close@PLT
	mov	esi, 1
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	jns	.L12
	lea	rdi, .LC15[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L3
.L12:
	mov	eax, DWORD PTR -8[rbp]
	mov	edx, 2
	lea	rsi, .LC2[rip]
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jle	.L13
	lea	rdi, .LC16[rip]
	call	puts@PLT
.L13:
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
.L3:
	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	"423686.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/sys/class/gpio/export\000"
	.align	2
.LC1:
	.ascii	"export error\000"
	.align	2
.LC2:
	.ascii	"2\000"
	.align	2
.LC3:
	.ascii	"export ok!\000"
	.align	2
.LC4:
	.ascii	"/sys/class/gpio/gpio2/direction\000"
	.align	2
.LC5:
	.ascii	"direction error\000"
	.align	2
.LC6:
	.ascii	"out\000"
	.align	2
.LC7:
	.ascii	"direction ok!\000"
	.align	2
.LC8:
	.ascii	"/sys/class/gpio/gpio2/value\000"
	.align	2
.LC9:
	.ascii	"on/off error\000"
	.align	2
.LC10:
	.ascii	"1\000"
	.align	2
.LC11:
	.ascii	"on ok!\000"
	.align	2
.LC12:
	.ascii	"0\000"
	.align	2
.LC13:
	.ascii	"off ok!\000"
	.align	2
.LC14:
	.ascii	"/sys/class/gpio/unexport\000"
	.align	2
.LC15:
	.ascii	"unexport error\000"
	.align	2
.LC16:
	.ascii	"unexport ok!\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r1, #1
	ldr	r0, .L14
	bl	open
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L14+4
	bl	perror
	mvn	r3, #0
	b	.L3
.L2:
	mov	r2, #2
	ldr	r1, .L14+8
	ldr	r0, [fp, #-12]
	bl	write
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L4
	ldr	r0, .L14+12
	bl	puts
.L4:
	ldr	r0, [fp, #-12]
	bl	close
	ldr	r0, .L14+16
	bl	usleep
	mov	r1, #1
	ldr	r0, .L14+20
	bl	open
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L14+24
	bl	perror
	mvn	r3, #0
	b	.L3
.L5:
	mov	r2, #4
	ldr	r1, .L14+28
	ldr	r0, [fp, #-12]
	bl	write
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L6
	ldr	r0, .L14+32
	bl	puts
.L6:
	ldr	r0, [fp, #-12]
	bl	close
	mov	r1, #1
	ldr	r0, .L14+36
	bl	open
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L7
	ldr	r0, .L14+40
	bl	perror
	mvn	r3, #0
	b	.L3
.L7:
	mov	r2, #2
	ldr	r1, .L14+44
	ldr	r0, [fp, #-12]
	bl	write
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L8
	ldr	r0, .L14+48
	bl	puts
.L8:
	ldr	r0, .L14+52
	bl	usleep
	mov	r2, #2
	ldr	r1, .L14+56
	ldr	r0, [fp, #-12]
	bl	write
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L9
	ldr	r0, .L14+60
	bl	puts
.L9:
	ldr	r0, .L14+52
	bl	usleep
	mov	r2, #2
	ldr	r1, .L14+44
	ldr	r0, [fp, #-12]
	bl	write
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L10
	ldr	r0, .L14+48
	bl	puts
.L10:
	ldr	r0, .L14+52
	bl	usleep
	mov	r2, #2
	ldr	r1, .L14+56
	ldr	r0, [fp, #-12]
	bl	write
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L11
	ldr	r0, .L14+60
	bl	puts
.L11:
	ldr	r0, [fp, #-12]
	bl	close
	mov	r1, #1
	ldr	r0, .L14+64
	bl	open
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L12
	ldr	r0, .L14+68
	bl	perror
	mvn	r3, #0
	b	.L3
.L12:
	mov	r2, #2
	ldr	r1, .L14+8
	ldr	r0, [fp, #-12]
	bl	write
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L13
	ldr	r0, .L14+72
	bl	puts
.L13:
	ldr	r0, [fp, #-12]
	bl	close
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	100000
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	1000000
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
