	.file	"436708.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"/sys/devices/virtual/dmi/id/board_name"
.LC1:
	.string	"Galileo"
.LC2:
	.string	"/sys/class/gpio/gpio3/value"
.LC3:
	.string	"GalileoGen2"
.LC4:
	.string	"/sys/class/gpio/gpio7/value"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -41[rbp], 48
	mov	esi, 0
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -40[rbp], eax
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	edx, 20
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, 1
	cdqe
	mov	BYTE PTR -32[rbp+rax], 0
	lea	rax, -32[rbp]
	mov	rdx, rax
	lea	rax, .LC1[rip]
	mov	ecx, 8
	mov	rsi, rdx
	mov	rdi, rax
	repz cmpsb
	seta	al
	setb	dl
	sub	eax, edx
	movsx	eax, al
	test	eax, eax
	jne	.L2
	mov	esi, 1
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -40[rbp], eax
	jmp	.L6
.L2:
	lea	rax, -32[rbp]
	mov	rdx, rax
	lea	rax, .LC3[rip]
	mov	ecx, 12
	mov	rsi, rdx
	mov	rdi, rax
	repz cmpsb
	seta	al
	setb	dl
	sub	eax, edx
	movsx	eax, al
	test	eax, eax
	jne	.L4
	mov	esi, 1
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -40[rbp], eax
	jmp	.L6
.L4:
	mov	eax, -1
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L7
	jmp	.L8
.L6:
	mov	eax, DWORD PTR -40[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	lea	rcx, -41[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	edi, 1
	call	sleep@PLT
	movzx	eax, BYTE PTR -41[rbp]
	xor	eax, 1
	mov	BYTE PTR -41[rbp], al
	jmp	.L6
.L8:
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"436708.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/sys/devices/virtual/dmi/id/board_name\000"
	.align	2
.LC1:
	.ascii	"Galileo\000"
	.align	2
.LC2:
	.ascii	"/sys/class/gpio/gpio3/value\000"
	.align	2
.LC3:
	.ascii	"GalileoGen2\000"
	.align	2
.LC4:
	.ascii	"/sys/class/gpio/gpio7/value\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #48
	strb	r3, [fp, #-37]
	mov	r1, #0
	ldr	r0, .L9+4
	bl	open
	str	r0, [fp, #-36]
	sub	r3, fp, #28
	mov	r2, #20
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	read
	str	r0, [fp, #-32]
	ldr	r0, [fp, #-36]
	bl	close
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-24]
	sub	r3, fp, #28
	ldr	r1, .L9+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	mov	r1, #1
	ldr	r0, .L9+12
	bl	open
	str	r0, [fp, #-36]
	b	.L6
.L2:
	sub	r3, fp, #28
	ldr	r1, .L9+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	mov	r1, #1
	ldr	r0, .L9+20
	bl	open
	str	r0, [fp, #-36]
	b	.L6
.L4:
	mvn	r3, #0
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	b	.L8
.L6:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-36]
	bl	lseek
	sub	r3, fp, #37
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	write
	mov	r0, #1
	bl	sleep
	ldrb	r3, [fp, #-37]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	strb	r3, [fp, #-37]
	b	.L6
.L8:
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
