	.file	"878875.c"
	.intel_syntax noprefix
	.text
	.globl	CurrentTimeInSeconds
	.type	CurrentTimeInSeconds, @function
CurrentTimeInSeconds:
.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -32[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	mov	rax, QWORD PTR -24[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm2, QWORD PTR .LC0[rip]
	divsd	xmm0, xmm2
	addsd	xmm0, xmm1
	movq	rax, xmm0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	CurrentTimeInSeconds, .-CurrentTimeInSeconds
	.section	.rodata
	.align 8
.LC1:
	.string	"*argv[0] -g <GPIO_ADDRESS> -i|-o <VALUE>"
	.align 8
.LC2:
	.string	"    -g <GPIO_ADDR>   GPIO physical address"
	.align 8
.LC3:
	.string	"    -i               Input from GPIO"
	.align 8
.LC4:
	.string	"    -o <VALUE>       Output to GPIO"
	.text
	.globl	usage
	.type	usage, @function
usage:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	usage, .-usage
	.section	.rodata
.LC5:
	.string	"rb"
.LC6:
	.string	"File not found %s\n"
	.text
	.globl	openImage
	.type	openImage, @function
openImage:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L7
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	openImage, .-openImage
	.section	.rodata
.LC7:
	.string	"ERROR READING"
	.text
	.globl	loadImage
	.type	loadImage, @function
loadImage:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	je	.L10
	lea	rdi, .LC7[rip]
	call	puts@PLT
.L10:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	loadImage, .-loadImage
	.globl	isPowerOf2
	.type	isPowerOf2, @function
isPowerOf2:
.LFB10:
	.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
	cmp	DWORD PTR -4[rbp], 0
	je	.L12
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 1
	and	eax, DWORD PTR -4[rbp]
	test	eax, eax
	jne	.L12
	mov	eax, 1
	jmp	.L13
.L12:
	mov	eax, 0
.L13:
	and	eax, 1
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	isPowerOf2, .-isPowerOf2
	.section	.rodata
.LC8:
	.string	"mylog2"
.LC9:
	.string	"H%d\n"
	.text
	.globl	mylog2
	.type	mylog2, @function
mylog2:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L16
.L17:
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L16:
	shr	DWORD PTR -20[rbp]
	cmp	DWORD PTR -20[rbp], 0
	jne	.L17
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	mylog2, .-mylog2
	.section	.rodata
.LC10:
	.string	"wb"
	.align 8
.LC11:
	.string	"could not open for writing %s\n"
.LC12:
	.string	"ERROR WRITING"
	.text
	.globl	saveImage
	.type	saveImage, @function
saveImage:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L20
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L20:
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	je	.L21
	lea	rdi, .LC12[rip]
	call	puts@PLT
.L21:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	saveImage, .-saveImage
	.section	.rodata
.LC13:
	.string	"Error mmaping CTRL"
.LC14:
	.string	"@RDCTRL: %08x\n"
.LC15:
	.string	"@WRCTRL: %08x\n"
	.text
	.globl	configureHPC64bit
	.type	configureHPC64bit, @function
configureHPC64bit:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	rdx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	r9, rdx
	mov	r8d, eax
	mov	ecx, 1
	mov	edx, 3
	mov	esi, 32
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], -1
	jne	.L23
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L23:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], 1
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 20
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 20
	mov	DWORD PTR [rax], 945
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 20
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 32
	mov	rdi, rax
	call	munmap@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	configureHPC64bit, .-configureHPC64bit
	.section	.rodata
.LC16:
	.string	"@ptr: %08x\n"
	.text
	.globl	configureBusses
	.type	configureBusses, @function
configureBusses:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, 4248174592
	mov	edi, eax
	call	configureHPC64bit
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, 4248240128
	mov	edi, eax
	call	configureHPC64bit
	mov	eax, DWORD PTR -20[rbp]
	mov	r9d, 4250992640
	mov	r8d, eax
	mov	ecx, 1
	mov	edx, 3
	mov	esi, 24576
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 20480
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 20480
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 20480
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	configureBusses, .-configureBusses
	.section	.rodata
.LC17:
	.string	"Load Inputs"
.LC18:
	.string	"--inputs"
	.align 8
.LC19:
	.string	"fourth argument should be '--inputs' but is %s\n"
.LC20:
	.string	"could not open input '%s'\n"
	.align 8
.LC21:
	.string	"Input File %d: filename=%s address=0x%x addressOffset=0x%x bytes=%d\n"
.LC22:
	.string	"--registers"
	.text
	.globl	loadInputs
	.type	loadInputs, @function
loadInputs:
.LFB15:
	.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	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	lea	rdi, .LC17[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	DWORD PTR -36[rbp], 4
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L26
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	edi, 1
	call	exit@PLT
.L26:
	add	DWORD PTR -36[rbp], 1
	mov	DWORD PTR -32[rbp], 1
	jmp	.L27
.L29:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -24[rbp], eax
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -24[rbp]
	sub	eax, edx
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L28
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	edi, 1
	call	exit@PLT
.L28:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -72[rbp]
	lea	rdi, [rdx+rax]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rsi, rax
	call	fread@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rdi, QWORD PTR -8[rbp]
	mov	esi, DWORD PTR -20[rbp]
	mov	ecx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -32[rbp]
	mov	r9, rdi
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	add	DWORD PTR -32[rbp], 1
	add	DWORD PTR -36[rbp], 2
.L27:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L29
	mov	eax, DWORD PTR -36[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	loadInputs, .-loadInputs
	.section	.rodata
.LC23:
	.string	"Set Registers"
.LC24:
	.string	"PARSE Reg %s %s\n"
	.align 8
.LC25:
	.string	"Set Register %x withNBytes %d to value 0x%s/%d, GPIO_BASE %x\n"
.LC26:
	.string	"STR %s\n"
.LC27:
	.string	"try to Set Reg %x\n"
.LC28:
	.string	"offset %d\n"
.LC29:
	.string	"Readback Reg %d\n"
.LC30:
	.string	"--registersOut"
	.text
	.globl	setRegisters
	.type	setRegisters, @function
setRegisters:
.LFB16:
	.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	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	QWORD PTR -88[rbp], rdx
	mov	DWORD PTR -72[rbp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC23[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	add	DWORD PTR -68[rbp], 1
	jmp	.L32
.L38:
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC24[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	shr	rax
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	mov	edi, DWORD PTR -72[rbp]
	mov	esi, DWORD PTR -40[rbp]
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	r9d, edi
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	QWORD PTR -17[rbp], 0
	mov	BYTE PTR -9[rbp], 0
	mov	eax, DWORD PTR -36[rbp]
	lea	edx, 3[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 2
	mov	DWORD PTR -56[rbp], eax
	cmp	DWORD PTR -56[rbp], 0
	jne	.L33
	mov	DWORD PTR -56[rbp], 1
.L33:
	mov	DWORD PTR -52[rbp], 0
	jmp	.L34
.L37:
	mov	DWORD PTR -48[rbp], 0
	jmp	.L35
.L36:
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -52[rbp]
	lea	ecx, 0[0+rax*8]
	mov	eax, DWORD PTR -48[rbp]
	add	eax, ecx
	cdqe
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	mov	BYTE PTR -17[rbp+rax], dl
	add	DWORD PTR -48[rbp], 1
.L35:
	cmp	DWORD PTR -48[rbp], 7
	jle	.L36
	lea	rax, -17[rbp]
	mov	rsi, rax
	lea	rdi, .LC26[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rax, -17[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	strtoul@PLT
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, eax
	lea	rdi, .LC27[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	eax, DWORD PTR -52[rbp]
	sal	eax, 2
	mov	edx, eax
	mov	eax, DWORD PTR -44[rbp]
	add	eax, edx
	sub	eax, DWORD PTR -72[rbp]
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, eax
	lea	rdi, .LC28[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -88[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR [rdx], eax
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, eax
	lea	rdi, .LC29[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -52[rbp], 1
.L34:
	mov	eax, DWORD PTR -52[rbp]
	cmp	DWORD PTR -56[rbp], eax
	ja	.L37
	add	DWORD PTR -68[rbp], 2
.L32:
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC30[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L38
	mov	eax, DWORD PTR -68[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
.LFE16:
	.size	setRegisters, .-setRegisters
	.section	.rodata
.LC31:
	.string	"w"
.LC32:
	.string	"regout.lua"
.LC33:
	.string	"return {"
	.align 8
.LC34:
	.string	"Read Reg %s (addr:%x) value:%d\n"
.LC35:
	.string	"%s=%d"
.LC36:
	.string	"--outputs"
	.text
	.globl	getRegisters
	.type	getRegisters, @function
getRegisters:
.LFB17:
	.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 -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	DWORD PTR -40[rbp], ecx
	add	DWORD PTR -36[rbp], 1
	lea	rsi, .LC31[rip]
	lea	rdi, .LC32[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 8
	mov	esi, 1
	lea	rdi, .LC33[rip]
	call	fwrite@PLT
	mov	BYTE PTR -21[rbp], 1
	jmp	.L42
.L44:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -16[rbp], eax
	mov	edx, DWORD PTR -16[rbp]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	ecx, DWORD PTR -12[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC34[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -21[rbp]
	xor	eax, 1
	test	al, al
	je	.L43
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	edi, 44
	call	fputc@PLT
.L43:
	mov	BYTE PTR -21[rbp], 0
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	ecx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC35[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -36[rbp], 2
.L42:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC36[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L44
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	edi, 125
	call	fputc@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -36[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	getRegisters, .-getRegisters
	.section	.rodata
.LC37:
	.string	"Write Outputs"
.LC38:
	.string	"HERE"
	.align 8
.LC39:
	.string	"Error, bits per pixel not byte aligned!"
.LC40:
	.string	"out.raw"
	.align 8
.LC41:
	.string	"Output File %d: filename=%s address=0x%x addressOffset=0x%x bytes=%d\n"
.LC42:
	.string	"could not open output '%s'\n"
	.text
	.globl	writeOutputs
	.type	writeOutputs, @function
writeOutputs:
.LFB18:
	.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	DWORD PTR -52[rbp], edi
	mov	DWORD PTR -56[rbp], esi
	mov	QWORD PTR -64[rbp], rdx
	mov	QWORD PTR -72[rbp], rcx
	lea	rdi, .LC37[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -44[rbp], eax
	add	DWORD PTR -52[rbp], 1
	mov	DWORD PTR -48[rbp], 0
	jmp	.L47
.L50:
	lea	rdi, .LC38[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -40[rbp], eax
	mov	edx, DWORD PTR -44[rbp]
	mov	eax, DWORD PTR -40[rbp]
	sub	eax, edx
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	add	rax, 2
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	add	rax, 3
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	add	rax, 4
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	and	eax, 7
	test	eax, eax
	je	.L48
	lea	rdi, .LC39[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	edi, 1
	call	exit@PLT
.L48:
	mov	eax, DWORD PTR -32[rbp]
	imul	eax, DWORD PTR -28[rbp]
	mov	edx, DWORD PTR -24[rbp]
	shr	edx, 3
	imul	eax, edx
	mov	DWORD PTR -20[rbp], eax
	lea	rax, .LC40[rip]
	mov	QWORD PTR -16[rbp], rax
	mov	edi, DWORD PTR -20[rbp]
	mov	esi, DWORD PTR -36[rbp]
	mov	ecx, DWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -48[rbp]
	mov	r9d, edi
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC41[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L49
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC42[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	edi, 1
	call	exit@PLT
.L49:
	mov	eax, DWORD PTR -20[rbp]
	mov	ecx, DWORD PTR -36[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	lea	rdi, [rcx+rdx]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rsi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	add	DWORD PTR -52[rbp], 5
	add	DWORD PTR -48[rbp], 1
.L47:
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, DWORD PTR -56[rbp]
	jl	.L50
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	writeOutputs, .-writeOutputs
	.section	.rodata
.LC43:
	.string	"start processimage SOC"
	.align 8
.LC44:
	.string	"GPIO access through /dev/mem. addr:%08x page_size:%d\n"
	.align 8
.LC45:
	.string	"GPIO physical address is required."
.LC46:
	.string	"/dev/mem"
.LC47:
	.string	"Error opening /dev/mem"
.LC48:
	.string	"MEMBASE: %x MEMSIZE: %x\n"
.LC49:
	.string	"Error mmaping"
.LC50:
	.string	"Error mmaping gpio"
	.align 8
.LC51:
	.string	"Round %d. setting gpio and clearning mem\n"
.LC52:
	.string	"conf: start: %d, done: %d\n"
	.align 8
.LC54:
	.string	"ERROR: done bit was not set at end of time! Writing out outputs anyway..."
	.align 8
.LC57:
	.string	"Done after %f seconds, %f cycles (@ %f MHZ)\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 144
	mov	DWORD PTR -132[rbp], edi
	mov	QWORD PTR -144[rbp], rsi
	mov	rax, QWORD PTR -144[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -100[rbp], eax
	lea	rdi, .LC43[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	edi, 30
	call	sysconf@PLT
	mov	DWORD PTR -96[rbp], eax
	mov	edx, DWORD PTR -96[rbp]
	mov	eax, DWORD PTR -100[rbp]
	mov	esi, eax
	lea	rdi, .LC44[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	cmp	DWORD PTR -100[rbp], 0
	jne	.L52
	lea	rdi, .LC45[rip]
	call	puts@PLT
	call	usage
	mov	eax, -1
	jmp	.L53
.L52:
	mov	esi, 1052674
	lea	rdi, .LC46[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -92[rbp], eax
	cmp	DWORD PTR -92[rbp], 0
	jg	.L54
	lea	rdi, .LC47[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -144[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	perror@PLT
	mov	eax, -1
	jmp	.L53
.L54:
	mov	eax, DWORD PTR -92[rbp]
	mov	edi, eax
	call	configureBusses
	mov	rax, QWORD PTR -144[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -88[rbp], eax
	mov	rax, QWORD PTR -144[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	edx, DWORD PTR -88[rbp]
	sub	eax, edx
	mov	DWORD PTR -84[rbp], eax
	mov	edx, DWORD PTR -84[rbp]
	mov	eax, DWORD PTR -88[rbp]
	mov	esi, eax
	lea	rdi, .LC48[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -88[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	mov	edx, DWORD PTR -92[rbp]
	mov	r9, rcx
	mov	r8d, edx
	mov	ecx, 1
	mov	edx, 3
	mov	rsi, rax
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], -1
	jne	.L55
	lea	rdi, .LC49[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L55:
	mov	edx, DWORD PTR -100[rbp]
	mov	eax, DWORD PTR -92[rbp]
	mov	r9, rdx
	mov	r8d, eax
	mov	ecx, 1
	mov	edx, 3
	mov	esi, 8
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], -1
	jne	.L56
	lea	rdi, .LC50[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L56:
	mov	edi, 2
	call	sleep@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	QWORD PTR -32[rbp], rax
	mov	DWORD PTR -108[rbp], 0
	jmp	.L57
.L67:
	mov	eax, DWORD PTR -108[rbp]
	mov	esi, eax
	lea	rdi, .LC51[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	DWORD PTR -104[rbp], 0
	jmp	.L58
.L59:
	mov	eax, DWORD PTR -104[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 233876922
	add	DWORD PTR -104[rbp], 4
.L58:
	mov	eax, DWORD PTR -104[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	jl	.L59
	mov	rdx, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR -144[rbp]
	mov	eax, DWORD PTR -92[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	loadInputs
	mov	DWORD PTR -112[rbp], eax
	mov	ecx, DWORD PTR -100[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rsi, QWORD PTR -144[rbp]
	mov	eax, DWORD PTR -112[rbp]
	mov	edi, eax
	call	setRegisters
	mov	DWORD PTR -112[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC52[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 4[rax], 0
	mov	edi, 2
	call	sleep@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC52[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	eax, 0
	call	CurrentTimeInSeconds
	movq	rax, xmm0
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], 1
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC52[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	QWORD PTR -16[rbp], 10
	mov	BYTE PTR -113[rbp], 0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -72[rbp], xmm0
	mov	QWORD PTR -64[rbp], 0
	jmp	.L60
.L64:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	je	.L61
	pxor	xmm0, xmm0
	ucomisd	xmm0, QWORD PTR -72[rbp]
	jp	.L61
	pxor	xmm0, xmm0
	ucomisd	xmm0, QWORD PTR -72[rbp]
	jne	.L61
	mov	eax, 0
	call	CurrentTimeInSeconds
	movq	rax, xmm0
	mov	QWORD PTR -72[rbp], rax
	mov	BYTE PTR -113[rbp], 1
	jmp	.L63
.L61:
	mov	rax, QWORD PTR -16[rbp]
	mov	edi, eax
	call	usleep@PLT
	mov	rax, QWORD PTR -16[rbp]
	add	QWORD PTR -64[rbp], rax
.L60:
	cmp	QWORD PTR -64[rbp], 7999999
	jbe	.L64
.L63:
	movzx	eax, BYTE PTR -113[rbp]
	xor	eax, 1
	test	al, al
	je	.L65
	lea	rdi, .LC54[rip]
	call	puts@PLT
	jmp	.L66
.L65:
	movss	xmm0, DWORD PTR .LC55[rip]
	movss	DWORD PTR -80[rbp], xmm0
	movss	xmm0, DWORD PTR .LC56[rip]
	movss	DWORD PTR -76[rbp], xmm0
	movsd	xmm0, QWORD PTR -72[rbp]
	subsd	xmm0, QWORD PTR -24[rbp]
	movsd	QWORD PTR -8[rbp], xmm0
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, DWORD PTR -80[rbp]
	movss	xmm0, DWORD PTR -80[rbp]
	mulss	xmm0, DWORD PTR -76[rbp]
	cvtss2sd	xmm0, xmm0
	mulsd	xmm0, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -8[rbp]
	movapd	xmm2, xmm1
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC57[rip]
	mov	eax, 3
	call	printf@PLT
.L66:
	add	DWORD PTR -108[rbp], 1
.L57:
	cmp	DWORD PTR -108[rbp], 1
	jle	.L67
	mov	ecx, DWORD PTR -100[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rsi, QWORD PTR -144[rbp]
	mov	eax, DWORD PTR -112[rbp]
	mov	edi, eax
	call	getRegisters
	mov	DWORD PTR -112[rbp], eax
	mov	rcx, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -144[rbp]
	mov	esi, DWORD PTR -132[rbp]
	mov	eax, DWORD PTR -112[rbp]
	mov	edi, eax
	call	writeOutputs
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC52[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	edx, DWORD PTR -96[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	munmap@PLT
	mov	eax, DWORD PTR -84[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	munmap@PLT
	mov	eax, 0
.L53:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1093567616
	.align 4
.LC55:
	.long	1120403456
	.align 4
.LC56:
	.long	1232348160
	.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	"878875.c"
	.text
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dadd
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	CurrentTimeInSeconds
	.syntax unified
	.arm
	.fpu softvfp
	.type	CurrentTimeInSeconds, %function
CurrentTimeInSeconds:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #24
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L4+4
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L4
	ldr	r0, [r1]
	ldr	r1, [fp, #-16]
	eors	r0, r1, r0
	mov	r1, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.word	1093567616
	.size	CurrentTimeInSeconds, .-CurrentTimeInSeconds
	.section	.rodata
	.align	2
.LC1:
	.ascii	"*argv[0] -g <GPIO_ADDRESS> -i|-o <VALUE>\000"
	.align	2
.LC2:
	.ascii	"    -g <GPIO_ADDR>   GPIO physical address\000"
	.align	2
.LC3:
	.ascii	"    -i               Input from GPIO\000"
	.align	2
.LC4:
	.ascii	"    -o <VALUE>       Output to GPIO\000"
	.text
	.align	2
	.global	usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L8
	bl	puts
	ldr	r0, .L8+4
	bl	puts
	ldr	r0, .L8+8
	bl	puts
	ldr	r0, .L8+12
	bl	puts
	nop
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC5:
	.ascii	"rb\000"
	.align	2
.LC6:
	.ascii	"File not found %s\012\000"
	.text
	.align	2
	.global	openImage
	.syntax unified
	.arm
	.fpu softvfp
	.type	openImage, %function
openImage:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r1, .L13
	ldr	r0, [fp, #-16]
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L11
	ldr	r1, [fp, #-16]
	ldr	r0, .L13+4
	bl	printf
	mov	r0, #1
	bl	exit
.L11:
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	fseek
	ldr	r0, [fp, #-8]
	bl	ftell
	mov	r2, r0
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	fseek
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC5
	.word	.LC6
	.size	openImage, .-openImage
	.section	.rodata
	.align	2
.LC7:
	.ascii	"ERROR READING\000"
	.text
	.align	2
	.global	loadImage
	.syntax unified
	.arm
	.fpu softvfp
	.type	loadImage, %function
loadImage:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	mov	r1, #1
	ldr	r0, [fp, #-20]
	bl	fread
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	beq	.L16
	ldr	r0, .L17
	bl	puts
.L16:
	ldr	r0, [fp, #-16]
	bl	fclose
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC7
	.size	loadImage, .-loadImage
	.align	2
	.global	isPowerOf2
	.syntax unified
	.arm
	.fpu softvfp
	.type	isPowerOf2, %function
isPowerOf2:
	@ 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, [fp, #-8]
	cmp	r3, #0
	beq	.L20
	ldr	r3, [fp, #-8]
	sub	r2, r3, #1
	ldr	r3, [fp, #-8]
	and	r3, r3, r2
	cmp	r3, #0
	bne	.L20
	mov	r3, #1
	b	.L21
.L20:
	mov	r3, #0
.L21:
	and	r3, r3, #1
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	isPowerOf2, .-isPowerOf2
	.section	.rodata
	.align	2
.LC8:
	.ascii	"mylog2\000"
	.align	2
.LC9:
	.ascii	"H%d\012\000"
	.text
	.align	2
	.global	mylog2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mylog2, %function
mylog2:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r0, .L27
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L24
.L25:
	ldr	r1, [fp, #-16]
	ldr	r0, .L27+4
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L24:
	ldr	r3, [fp, #-16]
	lsr	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L25
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC8
	.word	.LC9
	.size	mylog2, .-mylog2
	.section	.rodata
	.align	2
.LC10:
	.ascii	"wb\000"
	.align	2
.LC11:
	.ascii	"could not open for writing %s\012\000"
	.align	2
.LC12:
	.ascii	"ERROR WRITING\000"
	.text
	.align	2
	.global	saveImage
	.syntax unified
	.arm
	.fpu softvfp
	.type	saveImage, %function
saveImage:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r1, .L32
	ldr	r0, [fp, #-16]
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L30
	ldr	r1, [fp, #-16]
	ldr	r0, .L32+4
	bl	printf
	mov	r0, #1
	bl	exit
.L30:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-12]
	mov	r1, #1
	ldr	r0, [fp, #-20]
	bl	fwrite
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	beq	.L31
	ldr	r0, .L32+8
	bl	puts
.L31:
	ldr	r0, [fp, #-12]
	bl	fclose
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	saveImage, .-saveImage
	.section	.rodata
	.align	2
.LC13:
	.ascii	"Error mmaping CTRL\000"
	.align	2
.LC14:
	.ascii	"@RDCTRL: %08x\012\000"
	.align	2
.LC15:
	.ascii	"@WRCTRL: %08x\012\000"
	.text
	.align	2
	.global	configureHPC64bit
	.syntax unified
	.arm
	.fpu softvfp
	.type	configureHPC64bit, %function
configureHPC64bit:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-20]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-16]
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #3
	mov	r1, #32
	mov	r0, #0
	bl	mmap
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L35
	ldr	r0, .L36
	bl	puts
	mov	r0, #1
	bl	exit
.L35:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L36+4
	bl	printf
	ldr	r3, [fp, #-8]
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L36+4
	bl	printf
	ldr	r3, .L36+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-8]
	add	r3, r3, #20
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L36+12
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #20
	ldr	r2, .L36+16
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #20
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L36+12
	bl	printf
	ldr	r3, .L36+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r1, #32
	ldr	r0, [fp, #-8]
	bl	munmap
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC13
	.word	.LC14
	.word	stdout
	.word	.LC15
	.word	945
	.size	configureHPC64bit, .-configureHPC64bit
	.section	.rodata
	.align	2
.LC16:
	.ascii	"@ptr: %08x\012\000"
	.text
	.align	2
	.global	configureBusses
	.syntax unified
	.arm
	.fpu softvfp
	.type	configureBusses, %function
configureBusses:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	ldr	r1, .L39
	ldr	r0, [fp, #-16]
	bl	configureHPC64bit
	ldr	r1, .L39+4
	ldr	r0, [fp, #-16]
	bl	configureHPC64bit
	ldr	r3, .L39+8
	str	r3, [sp, #4]
	ldr	r3, [fp, #-16]
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #3
	mov	r1, #24576
	mov	r0, #0
	bl	mmap
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #20480
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L39+12
	bl	printf
	ldr	r3, .L39+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-8]
	add	r3, r3, #20480
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #20480
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L39+12
	bl	printf
	ldr	r3, .L39+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L40:
	.align	2
.L39:
	.word	-46792704
	.word	-46727168
	.word	-43974656
	.word	.LC16
	.word	stdout
	.size	configureBusses, .-configureBusses
	.section	.rodata
	.align	2
.LC17:
	.ascii	"Load Inputs\000"
	.align	2
.LC18:
	.ascii	"--inputs\000"
	.align	2
.LC19:
	.ascii	"fourth argument should be '--inputs' but is %s\012\000"
	.align	2
.LC20:
	.ascii	"could not open input '%s'\012\000"
	.align	2
.LC21:
	.ascii	"Input File %d: filename=%s address=0x%x addressOffs"
	.ascii	"et=0x%x bytes=%d\012\000"
	.align	2
.LC22:
	.ascii	"--registers\000"
	.text
	.align	2
	.global	loadInputs
	.syntax unified
	.arm
	.fpu softvfp
	.type	loadInputs, %function
loadInputs:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	ldr	r0, .L47
	bl	puts
	ldr	r3, .L47+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-44]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	str	r0, [fp, #-24]
	mov	r3, #4
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L47+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L42
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L47+12
	bl	printf
	ldr	r3, .L47+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r0, #1
	bl	exit
.L42:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
	mov	r3, #1
	str	r3, [fp, #-28]
	b	.L43
.L45:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L47+16
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L44
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L47+20
	bl	printf
	ldr	r3, .L47+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r0, #1
	bl	exit
.L44:
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-12]
	bl	fseek
	ldr	r0, [fp, #-12]
	bl	ftell
	mov	r3, r0
	str	r3, [fp, #-8]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-12]
	bl	fseek
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-16]
	add	r0, r2, r3
	ldr	r3, [fp, #-12]
	mov	r2, #1
	ldr	r1, [fp, #-8]
	bl	fread
	ldr	r0, [fp, #-12]
	bl	fclose
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-16]
	str	r3, [sp]
	ldr	r3, [fp, #-20]
	ldr	r1, [fp, #-28]
	ldr	r0, .L47+24
	bl	printf
	ldr	r3, .L47+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-32]
	add	r3, r3, #2
	str	r3, [fp, #-32]
.L43:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L47+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L45
	ldr	r3, [fp, #-32]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L48:
	.align	2
.L47:
	.word	.LC17
	.word	stdout
	.word	.LC18
	.word	.LC19
	.word	.LC5
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.size	loadInputs, .-loadInputs
	.section	.rodata
	.align	2
.LC23:
	.ascii	"Set Registers\000"
	.align	2
.LC24:
	.ascii	"PARSE Reg %s %s\012\000"
	.align	2
.LC25:
	.ascii	"Set Register %x withNBytes %d to value 0x%s/%d, GPI"
	.ascii	"O_BASE %x\012\000"
	.align	2
.LC26:
	.ascii	"STR %s\012\000"
	.align	2
.LC27:
	.ascii	"try to Set Reg %x\012\000"
	.align	2
.LC28:
	.ascii	"offset %d\012\000"
	.align	2
.LC29:
	.ascii	"Readback Reg %d\012\000"
	.align	2
.LC30:
	.ascii	"--registersOut\000"
	.align	2
.LC31:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	setRegisters
	.syntax unified
	.arm
	.fpu softvfp
	.type	setRegisters, %function
setRegisters:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	str	r2, [fp, #-72]
	str	r3, [fp, #-76]
	ldr	r3, .L59
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L59+4
	bl	puts
	ldr	r3, .L59+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
	b	.L50
.L56:
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, .L59+12
	bl	printf
	ldr	r3, .L59+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r3, r0
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r3, r0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	lsr	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-76]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-40]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-44]
	ldr	r0, .L59+16
	bl	printf
	ldr	r3, .L59+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r3, #0
	str	r3, [fp, #-20]
	sub	r3, fp, #16
	mov	r2, #0
	str	r2, [r3]
	strb	r2, [r3, #4]
	ldr	r3, [fp, #-36]
	add	r2, r3, #3
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #2
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bne	.L51
	mov	r3, #1
	str	r3, [fp, #-56]
.L51:
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L52
.L55:
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L53
.L54:
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-52]
	lsl	r1, r2, #3
	ldr	r2, [fp, #-48]
	add	r2, r1, r2
	add	r3, r3, r2
	ldrb	r1, [r3]	@ zero_extendqisi2
	sub	r2, fp, #20
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L53:
	ldr	r3, [fp, #-48]
	cmp	r3, #7
	ble	.L54
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L59+20
	bl	printf
	ldr	r3, .L59+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	sub	r3, fp, #20
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	strtoul
	str	r0, [fp, #-32]
	ldr	r1, [fp, #-32]
	ldr	r0, .L59+24
	bl	printf
	ldr	r3, .L59+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-44]
	add	r2, r2, r3
	ldr	r3, [fp, #-76]
	sub	r3, r2, r3
	str	r3, [fp, #-28]
	ldr	r1, [fp, #-28]
	ldr	r0, .L59+28
	bl	printf
	ldr	r3, .L59+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [fp, #-32]
	str	r2, [r3]
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	ldr	r1, [fp, #-24]
	ldr	r0, .L59+32
	bl	printf
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L52:
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	bhi	.L55
	ldr	r3, [fp, #-64]
	add	r3, r3, #2
	str	r3, [fp, #-64]
.L50:
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L59+36
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L56
	ldr	r3, [fp, #-64]
	ldr	r2, .L59
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L58
	bl	__stack_chk_fail
.L58:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L60:
	.align	2
.L59:
	.word	.LC31
	.word	.LC23
	.word	stdout
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.size	setRegisters, .-setRegisters
	.section	.rodata
	.align	2
.LC32:
	.ascii	"w\000"
	.align	2
.LC33:
	.ascii	"regout.lua\000"
	.align	2
.LC34:
	.ascii	"return {\000"
	.align	2
.LC35:
	.ascii	"Read Reg %s (addr:%x) value:%d\012\000"
	.align	2
.LC36:
	.ascii	"%s=%d\000"
	.align	2
.LC37:
	.ascii	"--outputs\000"
	.text
	.align	2
	.global	getRegisters
	.syntax unified
	.arm
	.fpu softvfp
	.type	getRegisters, %function
getRegisters:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r1, .L66
	ldr	r0, .L66+4
	bl	fopen
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	mov	r2, #8
	mov	r1, #1
	ldr	r0, .L66+8
	bl	fwrite
	mov	r3, #1
	strb	r3, [fp, #-21]
	b	.L62
.L64:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-44]
	sub	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	ldr	r0, .L66+12
	bl	printf
	ldrb	r3, [fp, #-21]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L63
	ldr	r1, [fp, #-20]
	mov	r0, #44
	bl	fputc
.L63:
	mov	r3, #0
	strb	r3, [fp, #-21]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r1, .L66+16
	ldr	r0, [fp, #-20]
	bl	fprintf
	ldr	r3, [fp, #-32]
	add	r3, r3, #2
	str	r3, [fp, #-32]
.L62:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L66+20
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L64
	ldr	r1, [fp, #-20]
	mov	r0, #125
	bl	fputc
	ldr	r0, [fp, #-20]
	bl	fclose
	ldr	r3, [fp, #-32]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L67:
	.align	2
.L66:
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.size	getRegisters, .-getRegisters
	.section	.rodata
	.align	2
.LC38:
	.ascii	"Write Outputs\000"
	.align	2
.LC39:
	.ascii	"HERE\000"
	.align	2
.LC40:
	.ascii	"Error, bits per pixel not byte aligned!\000"
	.align	2
.LC41:
	.ascii	"out.raw\000"
	.align	2
.LC42:
	.ascii	"Output File %d: filename=%s address=0x%x addressOff"
	.ascii	"set=0x%x bytes=%d\012\000"
	.align	2
.LC43:
	.ascii	"could not open output '%s'\012\000"
	.text
	.align	2
	.global	writeOutputs
	.syntax unified
	.arm
	.fpu softvfp
	.type	writeOutputs, %function
writeOutputs:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	str	r3, [fp, #-60]
	ldr	r0, .L73
	bl	puts
	ldr	r3, .L73+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-56]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L69
.L72:
	ldr	r0, .L73+8
	bl	puts
	ldr	r3, .L73+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-36]
	sub	r3, r2, r3
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-48]
	add	r3, r3, #2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-48]
	add	r3, r3, #3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-48]
	add	r3, r3, #4
	lsl	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	and	r3, r3, #7
	cmp	r3, #0
	beq	.L70
	ldr	r0, .L73+12
	bl	puts
	ldr	r3, .L73+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r0, #1
	bl	exit
.L70:
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	mul	r3, r2, r3
	ldr	r2, [fp, #-20]
	lsr	r2, r2, #3
	mul	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, .L73+16
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-32]
	str	r3, [sp]
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-44]
	ldr	r0, .L73+20
	bl	printf
	ldr	r3, .L73+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r1, .L73+24
	ldr	r0, [fp, #-12]
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L71
	ldr	r1, [fp, #-12]
	ldr	r0, .L73+28
	bl	printf
	ldr	r3, .L73+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r0, #1
	bl	exit
.L71:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-32]
	add	r0, r2, r3
	ldr	r3, [fp, #-8]
	mov	r2, #1
	ldr	r1, [fp, #-16]
	bl	fwrite
	ldr	r0, [fp, #-8]
	bl	fclose
	ldr	r3, [fp, #-48]
	add	r3, r3, #5
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L69:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	blt	.L72
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L74:
	.align	2
.L73:
	.word	.LC38
	.word	stdout
	.word	.LC39
	.word	.LC40
	.word	.LC41
	.word	.LC42
	.word	.LC10
	.word	.LC43
	.size	writeOutputs, .-writeOutputs
	.section	.rodata
	.align	2
.LC44:
	.ascii	"start processimage SOC\000"
	.align	2
.LC45:
	.ascii	"GPIO access through /dev/mem. addr:%08x page_size:%"
	.ascii	"d\012\000"
	.align	2
.LC46:
	.ascii	"GPIO physical address is required.\000"
	.align	2
.LC47:
	.ascii	"/dev/mem\000"
	.align	2
.LC48:
	.ascii	"Error opening /dev/mem\000"
	.align	2
.LC49:
	.ascii	"MEMBASE: %x MEMSIZE: %x\012\000"
	.align	2
.LC50:
	.ascii	"Error mmaping\000"
	.align	2
.LC51:
	.ascii	"Error mmaping gpio\000"
	.align	2
.LC52:
	.ascii	"Round %d. setting gpio and clearning mem\012\000"
	.align	2
.LC53:
	.ascii	"conf: start: %d, done: %d\012\000"
	.global	__aeabi_dcmpeq
	.align	2
.LC54:
	.ascii	"ERROR: done bit was not set at end of time! Writing"
	.ascii	" out outputs anyway...\000"
	.global	__aeabi_dsub
	.global	__aeabi_fmul
	.global	__aeabi_f2d
	.global	__aeabi_dmul
	.align	2
.LC55:
	.ascii	"Done after %f seconds, %f cycles (@ %f MHZ)\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #120
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	ldr	r3, [fp, #-116]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r3, r0
	str	r3, [fp, #-84]
	ldr	r0, .L93
	bl	puts
	ldr	r3, .L93+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r0, #30
	bl	sysconf
	mov	r3, r0
	str	r3, [fp, #-80]
	ldr	r2, [fp, #-80]
	ldr	r1, [fp, #-84]
	ldr	r0, .L93+8
	bl	printf
	ldr	r3, .L93+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	bne	.L76
	ldr	r0, .L93+12
	bl	puts
	bl	usage
	mvn	r3, #0
	b	.L77
.L76:
	ldr	r1, .L93+16
	ldr	r0, .L93+20
	bl	open
	str	r0, [fp, #-76]
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	bgt	.L78
	ldr	r0, .L93+24
	bl	puts
	ldr	r3, [fp, #-116]
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
	mvn	r3, #0
	b	.L77
.L78:
	ldr	r0, [fp, #-76]
	bl	configureBusses
	ldr	r3, [fp, #-116]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	str	r0, [fp, #-72]
	ldr	r3, [fp, #-116]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r2, r0
	ldr	r3, [fp, #-72]
	sub	r3, r2, r3
	str	r3, [fp, #-68]
	ldr	r2, [fp, #-68]
	ldr	r1, [fp, #-72]
	ldr	r0, .L93+28
	bl	printf
	ldr	r1, [fp, #-68]
	ldr	r3, [fp, #-72]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-76]
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #3
	mov	r0, #0
	bl	mmap
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmn	r3, #1
	bne	.L79
	ldr	r0, .L93+32
	bl	puts
	mov	r0, #1
	bl	exit
.L79:
	ldr	r3, [fp, #-84]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-76]
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #3
	mov	r1, #8
	mov	r0, #0
	bl	mmap
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmn	r3, #1
	bne	.L80
	ldr	r0, .L93+36
	bl	puts
	mov	r0, #1
	bl	exit
.L80:
	mov	r0, #2
	bl	sleep
	ldr	r3, [fp, #-60]
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-60]
	add	r3, r3, #8
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-96]
	b	.L81
.L91:
	ldr	r1, [fp, #-96]
	ldr	r0, .L93+40
	bl	printf
	ldr	r3, .L93+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r3, #0
	str	r3, [fp, #-92]
	b	.L82
.L83:
	ldr	r3, [fp, #-92]
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	ldr	r2, .L93+44
	str	r2, [r3]
	ldr	r3, [fp, #-92]
	add	r3, r3, #4
	str	r3, [fp, #-92]
.L82:
	ldr	r2, [fp, #-92]
	ldr	r3, [fp, #-68]
	cmp	r2, r3
	blt	.L83
	ldr	r2, [fp, #-64]
	ldr	r1, [fp, #-116]
	ldr	r0, [fp, #-76]
	bl	loadInputs
	str	r0, [fp, #-100]
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-60]
	ldr	r1, [fp, #-116]
	ldr	r0, [fp, #-100]
	bl	setRegisters
	str	r0, [fp, #-100]
	ldr	r3, [fp, #-56]
	ldr	r1, [r3]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r0, .L93+48
	bl	printf
	ldr	r3, .L93+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-56]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-56]
	mov	r2, #0
	str	r2, [r3, #4]
	mov	r0, #2
	bl	sleep
	ldr	r3, [fp, #-56]
	ldr	r1, [r3]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r0, .L93+48
	bl	printf
	ldr	r3, .L93+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	bl	CurrentTimeInSeconds
	str	r0, [fp, #-28]
	str	r1, [fp, #-24]
	ldr	r3, [fp, #-56]
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-56]
	ldr	r1, [r3]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r0, .L93+48
	bl	printf
	ldr	r3, .L93+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r3, #10
	str	r3, [fp, #-48]
	mov	r3, #0
	strb	r3, [fp, #-101]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-88]
	b	.L84
.L88:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L85
	mov	r2, #0
	mov	r3, #0
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	beq	.L85
	bl	CurrentTimeInSeconds
	str	r0, [fp, #-36]
	str	r1, [fp, #-32]
	mov	r3, #1
	strb	r3, [fp, #-101]
	b	.L87
.L85:
	ldr	r0, [fp, #-48]
	bl	usleep
	ldr	r2, [fp, #-88]
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	str	r3, [fp, #-88]
.L84:
	ldr	r3, [fp, #-88]
	ldr	r2, .L93+52
	cmp	r3, r2
	bcc	.L88
.L87:
	ldrb	r3, [fp, #-101]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L89
	ldr	r0, .L93+56
	bl	puts
	b	.L90
.L89:
	ldr	r3, .L93+60
	str	r3, [fp, #-44]	@ float
	ldr	r3, .L93+64
	str	r3, [fp, #-40]	@ float
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r1, [fp, #-40]	@ float
	ldr	r0, [fp, #-44]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-44]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	stm	sp, {r4-r5}
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	ldr	r0, .L93+68
	bl	printf
.L90:
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	str	r3, [fp, #-96]
.L81:
	ldr	r3, [fp, #-96]
	cmp	r3, #1
	ble	.L91
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-60]
	ldr	r1, [fp, #-116]
	ldr	r0, [fp, #-100]
	bl	getRegisters
	str	r0, [fp, #-100]
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-116]
	ldr	r1, [fp, #-112]
	ldr	r0, [fp, #-100]
	bl	writeOutputs
	ldr	r3, [fp, #-56]
	ldr	r1, [r3]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r0, .L93+48
	bl	printf
	ldr	r3, .L93+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r1, [fp, #-80]
	ldr	r0, [fp, #-60]
	bl	munmap
	ldr	r3, [fp, #-68]
	mov	r1, r3
	ldr	r0, [fp, #-64]
	bl	munmap
	mov	r3, #0
.L77:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L94:
	.align	2
.L93:
	.word	.LC44
	.word	stdout
	.word	.LC45
	.word	.LC46
	.word	1052674
	.word	.LC47
	.word	.LC48
	.word	.LC49
	.word	.LC50
	.word	.LC51
	.word	.LC52
	.word	233876922
	.word	.LC53
	.word	8000000
	.word	.LC54
	.word	1120403456
	.word	1232348160
	.word	.LC55
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
