	.file	"485880.c"
	.intel_syntax noprefix
	.text
	.globl	mapped_led_dev_base
	.bss
	.align 8
	.type	mapped_led_dev_base, @object
	.size	mapped_led_dev_base, 8
mapped_led_dev_base:
	.zero	8
	.globl	mapped_button_dev_base
	.align 8
	.type	mapped_button_dev_base, @object
	.size	mapped_button_dev_base, 8
mapped_button_dev_base:
	.zero	8
	.globl	mapped_base
	.align 8
	.type	mapped_base, @object
	.size	mapped_base, 8
mapped_base:
	.zero	8
	.globl	memfd
	.align 4
	.type	memfd, @object
	.size	memfd, 4
memfd:
	.zero	4
	.globl	LED_delay_max
	.align 4
	.type	LED_delay_max, @object
	.size	LED_delay_max, 4
LED_delay_max:
	.zero	4
	.section	.rodata
	.align 8
.LC0:
	.string	"---basic_design_zynq Exerciser---\n\r"
.LC1:
	.string	"running the Linux app...\n\r"
	.align 8
.LC2:
	.string	"you must set the symbol \"hardware_test\", \"profiler_test\", \"CSP_test\", or \"LINUX_APP\" in the compiler settings!\n\r"
.LC3:
	.string	"---Exiting main---\n\r"
	.align 8
.LC4:
	.string	"Can't unmap memory from user space."
.LC5:
	.string	"Memory Unmapped"
	.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 -4[rbp], 0
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, 1
	mov	esi, 0
	mov	edi, 1073741824
	call	Linux_GPIO_initialize
	mov	QWORD PTR mapped_led_dev_base[rip], rax
	mov	edx, 1
	mov	esi, -1
	mov	edi, 1092878336
	call	Linux_GPIO_initialize
	mov	QWORD PTR mapped_button_dev_base[rip], rax
	mov	DWORD PTR LED_delay_max[rip], 5000000
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -4[rbp], 4
	cmp	DWORD PTR -4[rbp], 0
	je	.L2
	mov	eax, 0
	call	hardware_exerciser
	jmp	.L3
.L2:
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L3:
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR mapped_base[rip]
	mov	esi, 4096
	mov	rdi, rax
	call	munmap@PLT
	cmp	eax, -1
	jne	.L4
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L4:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, DWORD PTR memfd[rip]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC6:
	.string	"Stop counting..."
.LC7:
	.string	"Counting down..."
.LC8:
	.string	"Counting up..."
	.text
	.globl	hardware_exerciser
	.type	hardware_exerciser, @function
hardware_exerciser:
.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, 32
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -8[rbp], 1
	mov	DWORD PTR -4[rbp], 500000
	jmp	.L7
.L13:
	call	buttons_get_state
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	not	eax
	and	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], 0
	je	.L8
	mov	eax, DWORD PTR -16[rbp]
	and	eax, 4
	test	eax, eax
	je	.L9
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -12[rbp], 2
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -16[rbp]
	and	eax, 2
	test	eax, eax
	je	.L10
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -12[rbp], 1
	jmp	.L8
.L10:
	mov	eax, DWORD PTR -16[rbp]
	and	eax, 1
	test	eax, eax
	je	.L8
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -12[rbp], 0
.L8:
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -28[rbp], eax
	mov	DWORD PTR -12[rbp], 0
	cmp	DWORD PTR -12[rbp], 0
	je	.L11
	add	DWORD PTR -24[rbp], 1
	mov	eax, DWORD PTR -24[rbp]
	cdq
	shr	edx, 25
	add	eax, edx
	and	eax, 127
	sub	eax, edx
	mov	DWORD PTR -24[rbp], eax
	jmp	.L12
.L11:
	mov	DWORD PTR -12[rbp], 1
	sub	DWORD PTR -24[rbp], 1
	cmp	DWORD PTR -24[rbp], -1
	jge	.L12
	mov	DWORD PTR -24[rbp], 127
.L12:
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	do_sine_sample
	mov	eax, DWORD PTR LED_delay_max[rip]
	cdqe
	mov	rdi, rax
	call	delay_loop
.L7:
	cmp	DWORD PTR -8[rbp], 0
	jne	.L13
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	hardware_exerciser, .-hardware_exerciser
	.globl	do_sine_sample
	.type	do_sine_sample, @function
do_sine_sample:
.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, 80
	mov	DWORD PTR -68[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -68[rbp]
	movsd	xmm2, QWORD PTR .LC9[rip]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR .LC10[rip]
	mulsd	xmm0, xmm1
	addsd	xmm0, xmm0
	movsd	QWORD PTR -56[rbp], xmm0
	mov	rax, QWORD PTR -56[rbp]
	movq	xmm0, rax
	call	sine
	movsd	xmm1, QWORD PTR .LC11[rip]
	mulsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR .LC12[rip]
	divsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -60[rbp], eax
	sub	DWORD PTR -60[rbp], -128
	mov	eax, DWORD PTR -60[rbp]
	mov	edi, eax
	call	driveBarGraph
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	do_sine_sample, .-do_sine_sample
	.globl	sine
	.type	sine, @function
sine:
.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, 64
	movsd	QWORD PTR -56[rbp], xmm0
	mov	DWORD PTR -44[rbp], 1
	movsd	xmm0, QWORD PTR -56[rbp]
	comisd	xmm0, QWORD PTR .LC13[rip]
	jbe	.L28
	mov	DWORD PTR -44[rbp], 4
	movsd	xmm0, QWORD PTR .LC14[rip]
	subsd	xmm0, QWORD PTR -56[rbp]
	movsd	QWORD PTR -56[rbp], xmm0
	jmp	.L19
.L28:
	movsd	xmm0, QWORD PTR -56[rbp]
	comisd	xmm0, QWORD PTR .LC15[rip]
	jbe	.L29
	mov	DWORD PTR -44[rbp], 3
	movsd	xmm0, QWORD PTR -56[rbp]
	movsd	xmm1, QWORD PTR .LC15[rip]
	subsd	xmm0, xmm1
	movsd	QWORD PTR -56[rbp], xmm0
	jmp	.L19
.L29:
	movsd	xmm0, QWORD PTR -56[rbp]
	comisd	xmm0, QWORD PTR .LC16[rip]
	jbe	.L19
	mov	DWORD PTR -44[rbp], 2
	movsd	xmm0, QWORD PTR .LC15[rip]
	subsd	xmm0, QWORD PTR -56[rbp]
	movsd	QWORD PTR -56[rbp], xmm0
.L19:
	movsd	xmm0, QWORD PTR -56[rbp]
	mulsd	xmm0, xmm0
	movsd	QWORD PTR -32[rbp], xmm0
	movsd	xmm0, QWORD PTR -32[rbp]
	mulsd	xmm0, QWORD PTR -56[rbp]
	movsd	QWORD PTR -24[rbp], xmm0
	movsd	xmm0, QWORD PTR -24[rbp]
	mulsd	xmm0, QWORD PTR -32[rbp]
	movsd	QWORD PTR -16[rbp], xmm0
	movsd	xmm0, QWORD PTR -16[rbp]
	mulsd	xmm0, QWORD PTR -32[rbp]
	movsd	QWORD PTR -8[rbp], xmm0
	mov	edi, 3
	call	factorial
	movsd	xmm1, QWORD PTR -24[rbp]
	divsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR -56[rbp]
	subsd	xmm0, xmm1
	movsd	QWORD PTR -64[rbp], xmm0
	mov	edi, 5
	call	factorial
	movsd	xmm1, QWORD PTR -16[rbp]
	divsd	xmm1, xmm0
	addsd	xmm1, QWORD PTR -64[rbp]
	movsd	QWORD PTR -64[rbp], xmm1
	mov	edi, 7
	call	factorial
	movsd	xmm1, QWORD PTR -8[rbp]
	divsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR -64[rbp]
	subsd	xmm0, xmm1
	movsd	QWORD PTR -40[rbp], xmm0
	cmp	DWORD PTR -44[rbp], 2
	jle	.L23
	movsd	xmm0, QWORD PTR -40[rbp]
	movq	xmm1, QWORD PTR .LC17[rip]
	xorpd	xmm0, xmm1
	movsd	QWORD PTR -40[rbp], xmm0
.L23:
	movsd	xmm0, QWORD PTR -40[rbp]
	movq	rax, xmm0
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	sine, .-sine
	.globl	factorial
	.type	factorial, @function
factorial:
.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 -20[rbp], edi
	movsd	xmm0, QWORD PTR .LC18[rip]
	movsd	QWORD PTR -8[rbp], xmm0
	mov	DWORD PTR -12[rbp], 2
	jmp	.L31
.L32:
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -12[rbp]
	movsd	xmm1, QWORD PTR -8[rbp]
	mulsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	add	DWORD PTR -12[rbp], 1
.L31:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jle	.L32
	movsd	xmm0, QWORD PTR -8[rbp]
	movq	rax, xmm0
	movq	xmm0, rax
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	factorial, .-factorial
	.section	.rodata
.LC19:
	.string	"/dev/mem"
.LC20:
	.string	"Can't open /dev/mem."
.LC21:
	.string	"/dev/mem opened."
	.align 8
.LC22:
	.string	"Can't map the memory to user space for LED GPIO."
	.align 8
.LC23:
	.string	"LED GPIO memory mapped at address %p.\n"
	.text
	.globl	Linux_GPIO_initialize
	.type	Linux_GPIO_initialize, @function
Linux_GPIO_initialize:
.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
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -28[rbp], edx
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	mov	QWORD PTR -16[rbp], rax
	cmp	DWORD PTR -28[rbp], 0
	je	.L35
	mov	esi, 1052674
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR memfd[rip], eax
	mov	eax, DWORD PTR memfd[rip]
	cmp	eax, -1
	jne	.L36
	lea	rdi, .LC20[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L36:
	lea	rdi, .LC21[rip]
	call	puts@PLT
.L35:
	mov	rax, QWORD PTR -16[rbp]
	and	rax, -4096
	mov	rdx, rax
	mov	eax, DWORD PTR memfd[rip]
	mov	r9, rdx
	mov	r8d, eax
	mov	ecx, 1
	mov	edx, 3
	mov	esi, 4096
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR mapped_base[rip], rax
	mov	rax, QWORD PTR mapped_base[rip]
	cmp	rax, -1
	jne	.L37
	lea	rdi, .LC22[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L37:
	mov	rax, QWORD PTR mapped_base[rip]
	mov	rsi, rax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR mapped_base[rip]
	mov	rax, QWORD PTR -16[rbp]
	and	eax, 4095
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	edi, 50
	call	usleep@PLT
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 4[rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	Linux_GPIO_initialize, .-Linux_GPIO_initialize
	.globl	driveBarGraph
	.type	driveBarGraph, @function
driveBarGraph:
.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, 80
	mov	DWORD PTR -68[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movsd	xmm0, QWORD PTR .LC24[rip]
	movsd	QWORD PTR -56[rbp], xmm0
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -68[rbp]
	divsd	xmm0, QWORD PTR -56[rbp]
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -60[rbp], eax
	mov	eax, DWORD PTR -60[rbp]
	mov	esi, 1
	mov	edi, eax
	call	doBarGraph
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L40
	call	__stack_chk_fail@PLT
.L40:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	driveBarGraph, .-driveBarGraph
	.globl	doBarGraph
	.type	doBarGraph, @function
doBarGraph:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	cmp	DWORD PTR -8[rbp], 2
	jne	.L42
	cmp	DWORD PTR -4[rbp], 8
	ja	.L43
	mov	eax, DWORD PTR -4[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, .L45[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L45[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L45:
	.long	.L53-.L45
	.long	.L52-.L45
	.long	.L51-.L45
	.long	.L50-.L45
	.long	.L49-.L45
	.long	.L48-.L45
	.long	.L47-.L45
	.long	.L46-.L45
	.long	.L44-.L45
	.text
.L53:
	mov	edi, 0
	call	LEDs_driver
	jmp	.L55
.L52:
	mov	edi, 1
	call	LEDs_driver
	jmp	.L55
.L51:
	mov	edi, 3
	call	LEDs_driver
	jmp	.L55
.L50:
	mov	edi, 7
	call	LEDs_driver
	jmp	.L55
.L49:
	mov	edi, 15
	call	LEDs_driver
	jmp	.L55
.L48:
	mov	edi, 31
	call	LEDs_driver
	jmp	.L55
.L47:
	mov	edi, 63
	call	LEDs_driver
	jmp	.L55
.L46:
	mov	edi, 127
	call	LEDs_driver
	jmp	.L55
.L44:
	mov	edi, 255
	call	LEDs_driver
	jmp	.L55
.L43:
	mov	edi, 85
	call	LEDs_driver
	jmp	.L69
.L42:
	cmp	DWORD PTR -8[rbp], 1
	jne	.L56
	cmp	DWORD PTR -4[rbp], 7
	ja	.L57
	mov	eax, DWORD PTR -4[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, .L59[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L59[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L59:
	.long	.L66-.L59
	.long	.L65-.L59
	.long	.L64-.L59
	.long	.L63-.L59
	.long	.L62-.L59
	.long	.L61-.L59
	.long	.L60-.L59
	.long	.L58-.L59
	.text
.L66:
	mov	edi, 1
	call	LEDs_driver
	jmp	.L55
.L65:
	mov	edi, 2
	call	LEDs_driver
	jmp	.L55
.L64:
	mov	edi, 4
	call	LEDs_driver
	jmp	.L55
.L63:
	mov	edi, 8
	call	LEDs_driver
	jmp	.L55
.L62:
	mov	edi, 16
	call	LEDs_driver
	jmp	.L55
.L61:
	mov	edi, 32
	call	LEDs_driver
	jmp	.L55
.L60:
	mov	edi, 64
	call	LEDs_driver
	jmp	.L55
.L58:
	mov	edi, 128
	call	LEDs_driver
	jmp	.L55
.L57:
	mov	edi, 85
	call	LEDs_driver
	jmp	.L69
.L56:
	cmp	DWORD PTR -8[rbp], 3
	jne	.L68
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	LEDs_driver
	jmp	.L69
.L68:
	mov	edi, 105
	call	LEDs_driver
	jmp	.L69
.L55:
.L69:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	doBarGraph, .-doBarGraph
	.globl	buttons_get_state
	.type	buttons_get_state, @function
buttons_get_state:
.LFB14:
	.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], 0
	mov	rax, QWORD PTR mapped_button_dev_base[rip]
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	buttons_get_state, .-buttons_get_state
	.globl	LEDs_driver
	.type	LEDs_driver, @function
LEDs_driver:
.LFB15:
	.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	rax, QWORD PTR mapped_led_dev_base[rip]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	mov	QWORD PTR [rax], rdx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	LEDs_driver, .-LEDs_driver
	.globl	delay_loop
	.type	delay_loop, @function
delay_loop:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L74
.L75:
	add	DWORD PTR -4[rbp], 1
.L74:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	cmp	QWORD PTR -24[rbp], rax
	jg	.L75
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	delay_loop, .-delay_loop
	.section	.rodata
.LC25:
	.string	"radix out of range 1..36"
	.text
	.globl	itoa
	.type	itoa, @function
itoa:
.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, 96
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	mov	DWORD PTR -88[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -48[rbp]
	mov	QWORD PTR -64[rbp], rax
	cmp	DWORD PTR -88[rbp], 36
	jg	.L77
	cmp	DWORD PTR -88[rbp], 1
	jg	.L78
.L77:
	lea	rax, .LC25[rip]
	mov	QWORD PTR -96[rbp], rax
	mov	eax, 0
	jmp	.L91
.L78:
	cmp	DWORD PTR -88[rbp], 10
	jne	.L80
	cmp	DWORD PTR -84[rbp], 0
	jns	.L80
	mov	eax, 1
	jmp	.L81
.L80:
	mov	eax, 0
.L81:
	mov	DWORD PTR -72[rbp], eax
	cmp	DWORD PTR -72[rbp], 0
	je	.L82
	mov	eax, DWORD PTR -84[rbp]
	neg	eax
	mov	DWORD PTR -76[rbp], eax
	jmp	.L84
.L82:
	mov	eax, DWORD PTR -84[rbp]
	mov	DWORD PTR -76[rbp], eax
	jmp	.L84
.L86:
	mov	ecx, DWORD PTR -88[rbp]
	mov	eax, DWORD PTR -76[rbp]
	mov	edx, 0
	div	ecx
	mov	eax, edx
	mov	DWORD PTR -68[rbp], eax
	mov	esi, DWORD PTR -88[rbp]
	mov	eax, DWORD PTR -76[rbp]
	mov	edx, 0
	div	esi
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -68[rbp], 9
	jg	.L85
	mov	eax, DWORD PTR -68[rbp]
	lea	ecx, 48[rax]
	mov	rax, QWORD PTR -64[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -64[rbp], rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	jmp	.L84
.L85:
	mov	eax, DWORD PTR -68[rbp]
	lea	ecx, 87[rax]
	mov	rax, QWORD PTR -64[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -64[rbp], rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
.L84:
	cmp	DWORD PTR -76[rbp], 0
	jne	.L86
	lea	rax, -48[rbp]
	cmp	QWORD PTR -64[rbp], rax
	je	.L86
	cmp	QWORD PTR -96[rbp], 0
	jne	.L87
	lea	rdx, -48[rbp]
	mov	rax, QWORD PTR -64[rbp]
	sub	rax, rdx
	mov	rcx, rax
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	add	rax, rcx
	add	rax, 1
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -96[rbp], rax
.L87:
	mov	rax, QWORD PTR -96[rbp]
	mov	QWORD PTR -56[rbp], rax
	cmp	DWORD PTR -72[rbp], 0
	je	.L89
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -56[rbp], rdx
	mov	BYTE PTR [rax], 45
	jmp	.L89
.L90:
	sub	QWORD PTR -64[rbp], 1
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -56[rbp], rdx
	mov	rdx, QWORD PTR -64[rbp]
	movzx	edx, BYTE PTR [rdx]
	mov	BYTE PTR [rax], dl
.L89:
	lea	rax, -48[rbp]
	cmp	QWORD PTR -64[rbp], rax
	ja	.L90
	mov	rax, QWORD PTR -56[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -96[rbp]
.L91:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L92
	call	__stack_chk_fail@PLT
.L92:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	itoa, .-itoa
	.globl	strcat
	.type	strcat, @function
strcat:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L94
.L95:
	add	QWORD PTR -8[rbp], 1
.L94:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L95
	nop
.L96:
	mov	rdx, QWORD PTR -32[rbp]
	lea	rax, 1[rdx]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, 1[rax]
	mov	QWORD PTR -8[rbp], rcx
	movzx	edx, BYTE PTR [rdx]
	mov	BYTE PTR [rax], dl
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L96
	mov	rax, QWORD PTR -24[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	strcat, .-strcat
	.section	.rodata
	.align 8
.LC9:
	.long	0
	.long	1080033280
	.align 8
.LC10:
	.long	1610612736
	.long	1074340347
	.align 8
.LC11:
	.long	0
	.long	1081081856
	.align 8
.LC12:
	.long	0
	.long	1073741824
	.align 8
.LC13:
	.long	2133061354
	.long	1074977148
	.align 8
.LC14:
	.long	1412426040
	.long	1075388923
	.align 8
.LC15:
	.long	1412426040
	.long	1074340347
	.align 8
.LC16:
	.long	1412426040
	.long	1073291771
	.align 16
.LC17:
	.long	0
	.long	-2147483648
	.long	0
	.long	0
	.align 8
.LC18:
	.long	0
	.long	1072693248
	.align 8
.LC24:
	.long	0
	.long	1077936128
	.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	"485880.c"
	.text
	.comm	mapped_led_dev_base,4,4
	.comm	mapped_button_dev_base,4,4
	.comm	mapped_base,4,4
	.comm	memfd,4,4
	.comm	LED_delay_max,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"---basic_design_zynq Exerciser---\012\015\000"
	.align	2
.LC1:
	.ascii	"running the Linux app...\012\015\000"
	.align	2
.LC2:
	.ascii	"you must set the symbol \"hardware_test\", \"profil"
	.ascii	"er_test\", \"CSP_test\", or \"LINUX_APP\" in the co"
	.ascii	"mpiler settings!\012\015\000"
	.align	2
.LC3:
	.ascii	"---Exiting main---\012\015\000"
	.align	2
.LC4:
	.ascii	"Can't unmap memory from user space.\000"
	.align	2
.LC5:
	.ascii	"Memory Unmapped\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, #-8]
	ldr	r0, .L6
	bl	printf
	mov	r2, #1
	mov	r1, #0
	mov	r0, #1073741824
	bl	Linux_GPIO_initialize
	mov	r3, r0
	ldr	r2, .L6+4
	str	r3, [r2]
	mov	r2, #1
	mvn	r1, #0
	ldr	r0, .L6+8
	bl	Linux_GPIO_initialize
	mov	r3, r0
	ldr	r2, .L6+12
	str	r3, [r2]
	ldr	r3, .L6+16
	ldr	r2, .L6+20
	str	r2, [r3]
	ldr	r0, .L6+24
	bl	printf
	mov	r3, #4
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L2
	bl	hardware_exerciser
	b	.L3
.L2:
	ldr	r0, .L6+28
	bl	printf
.L3:
	ldr	r0, .L6+32
	bl	printf
	ldr	r3, .L6+36
	ldr	r3, [r3]
	mov	r1, #4096
	mov	r0, r3
	bl	munmap
	mov	r3, r0
	cmn	r3, #1
	bne	.L4
	ldr	r0, .L6+40
	bl	puts
	mov	r0, #0
	bl	exit
.L4:
	ldr	r0, .L6+44
	bl	puts
	ldr	r3, .L6+48
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC0
	.word	mapped_led_dev_base
	.word	1092878336
	.word	mapped_button_dev_base
	.word	LED_delay_max
	.word	5000000
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	mapped_base
	.word	.LC4
	.word	.LC5
	.word	memfd
	.size	main, .-main
	.section	.rodata
	.align	2
.LC6:
	.ascii	"Stop counting...\000"
	.align	2
.LC7:
	.ascii	"Counting down...\000"
	.align	2
.LC8:
	.ascii	"Counting up...\000"
	.text
	.align	2
	.global	hardware_exerciser
	.syntax unified
	.arm
	.fpu softvfp
	.type	hardware_exerciser, %function
hardware_exerciser:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #1
	str	r3, [fp, #-12]
	ldr	r3, .L16
	str	r3, [fp, #-8]
	b	.L9
.L15:
	bl	buttons_get_state
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-32]
	mvn	r3, r3
	ldr	r2, [fp, #-24]
	and	r3, r3, r2
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-20]
	and	r3, r3, #4
	cmp	r3, #0
	beq	.L11
	ldr	r0, .L16+4
	bl	printf
	mov	r3, #2
	str	r3, [fp, #-16]
	b	.L10
.L11:
	ldr	r3, [fp, #-20]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L12
	ldr	r0, .L16+8
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L10
.L12:
	ldr	r3, [fp, #-20]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L10
	ldr	r0, .L16+12
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-16]
.L10:
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	rsbs	r2, r3, #0
	and	r3, r3, #127
	and	r2, r2, #127
	rsbpl	r3, r2, #0
	str	r3, [fp, #-28]
	b	.L14
.L13:
	mov	r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmn	r3, #1
	bge	.L14
	mov	r3, #127
	str	r3, [fp, #-28]
.L14:
	ldr	r0, [fp, #-28]
	bl	do_sine_sample
	ldr	r3, .L16+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	delay_loop
.L9:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L15
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	500000
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	LED_delay_max
	.size	hardware_exerciser, .-hardware_exerciser
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.global	__aeabi_d2iz
	.section	.rodata
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	do_sine_sample
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_sine_sample, %function
do_sine_sample:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-64]
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, [fp, #-64]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L20+4
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #1610612736
	ldr	r3, .L20+8
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, r0
	mov	r3, r1
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	sine
	mov	r2, #0
	ldr	r3, .L20+12
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	mov	r3, #1073741824
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-56]
	add	r3, r3, #128
	str	r3, [fp, #-56]
	ldr	r0, [fp, #-56]
	bl	driveBarGraph
	nop
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC9
	.word	1080033280
	.word	1074340347
	.word	1081081856
	.size	do_sine_sample, .-do_sine_sample
	.global	__aeabi_dcmpgt
	.global	__aeabi_dsub
	.align	2
	.global	sine
	.syntax unified
	.arm
	.fpu softvfp
	.type	sine, %function
sine:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #56
	str	r0, [fp, #-76]
	str	r1, [fp, #-72]
	mov	r3, #1
	str	r3, [fp, #-64]
	ldr	r2, .L36
	ldr	r3, .L36+4
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L34
	mov	r3, #4
	str	r3, [fp, #-64]
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	ldr	r0, .L36+8
	ldr	r1, .L36+12
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	b	.L25
.L34:
	ldr	r2, .L36+8
	ldr	r3, .L36+16
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L35
	mov	r3, #3
	str	r3, [fp, #-64]
	ldr	r2, .L36+8
	ldr	r3, .L36+16
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	b	.L25
.L35:
	ldr	r2, .L36+8
	ldr	r3, .L36+20
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L25
	mov	r3, #2
	str	r3, [fp, #-64]
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	ldr	r0, .L36+8
	ldr	r1, .L36+16
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
.L25:
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	mov	r0, #3
	bl	factorial
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	mov	r0, #5
	bl	factorial
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	mov	r0, #7
	bl	factorial
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-64]
	cmp	r3, #2
	ble	.L29
	ldr	r4, [fp, #-60]
	ldr	r3, [fp, #-56]
	eor	r5, r3, #-2147483648
	str	r4, [fp, #-60]
	str	r5, [fp, #-56]
.L29:
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L37:
	.align	2
.L36:
	.word	2133061354
	.word	1074977148
	.word	1412426040
	.word	1075388923
	.word	1074340347
	.word	1073291771
	.size	sine, .-sine
	.align	2
	.global	factorial
	.syntax unified
	.arm
	.fpu softvfp
	.type	factorial, %function
factorial:
	@ 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, #-24]
	mov	r2, #0
	ldr	r3, .L42
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	mov	r3, #2
	str	r3, [fp, #-16]
	b	.L39
.L40:
	ldr	r0, [fp, #-16]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L39:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	ble	.L40
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L43:
	.align	2
.L42:
	.word	1072693248
	.size	factorial, .-factorial
	.section	.rodata
	.align	2
.LC10:
	.ascii	"/dev/mem\000"
	.align	2
.LC11:
	.ascii	"Can't open /dev/mem.\000"
	.align	2
.LC12:
	.ascii	"/dev/mem opened.\000"
	.align	2
.LC13:
	.ascii	"Can't map the memory to user space for LED GPIO.\000"
	.align	2
.LC14:
	.ascii	"LED GPIO memory mapped at address %p.\012\000"
	.text
	.align	2
	.global	Linux_GPIO_initialize
	.syntax unified
	.arm
	.fpu softvfp
	.type	Linux_GPIO_initialize, %function
Linux_GPIO_initialize:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L45
	ldr	r1, .L49
	ldr	r0, .L49+4
	bl	open
	mov	r3, r0
	ldr	r2, .L49+8
	str	r3, [r2]
	ldr	r3, .L49+8
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L46
	ldr	r0, .L49+12
	bl	puts
	mov	r0, #0
	bl	exit
.L46:
	ldr	r0, .L49+16
	bl	puts
.L45:
	ldr	r3, .L49+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	bic	r3, r3, #4080
	bic	r3, r3, #15
	str	r3, [sp, #4]
	str	r2, [sp]
	mov	r3, #1
	mov	r2, #3
	mov	r1, #4096
	mov	r0, #0
	bl	mmap
	mov	r3, r0
	ldr	r2, .L49+20
	str	r3, [r2]
	ldr	r3, .L49+20
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L47
	ldr	r0, .L49+24
	bl	puts
	mov	r0, #0
	bl	exit
.L47:
	ldr	r3, .L49+20
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L49+28
	bl	printf
	ldr	r3, .L49+20
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #20
	lsr	r3, r3, #20
	add	r3, r2, r3
	str	r3, [fp, #-8]
	mov	r0, #50
	bl	usleep
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L50:
	.align	2
.L49:
	.word	1052674
	.word	.LC10
	.word	memfd
	.word	.LC11
	.word	.LC12
	.word	mapped_base
	.word	.LC13
	.word	.LC14
	.size	Linux_GPIO_initialize, .-Linux_GPIO_initialize
	.section	.rodata
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	driveBarGraph
	.syntax unified
	.arm
	.fpu softvfp
	.type	driveBarGraph, %function
driveBarGraph:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-64]
	ldr	r3, .L53
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	ldr	r3, .L53+4
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	ldr	r0, [fp, #-64]
	bl	__aeabi_i2d
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-56]
	mov	r1, #1
	ldr	r0, [fp, #-56]
	bl	doBarGraph
	nop
	ldr	r3, .L53
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L52
	bl	__stack_chk_fail
.L52:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L54:
	.align	2
.L53:
	.word	.LC15
	.word	1077936128
	.size	driveBarGraph, .-driveBarGraph
	.align	2
	.global	doBarGraph
	.syntax unified
	.arm
	.fpu softvfp
	.type	doBarGraph, %function
doBarGraph:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	bne	.L56
	ldr	r3, [fp, #-8]
	cmp	r3, #8
	ldrls	pc, [pc, r3, asl #2]
	b	.L57
.L59:
	.word	.L67
	.word	.L66
	.word	.L65
	.word	.L64
	.word	.L63
	.word	.L62
	.word	.L61
	.word	.L60
	.word	.L58
.L67:
	mov	r0, #0
	bl	LEDs_driver
	b	.L69
.L66:
	mov	r0, #1
	bl	LEDs_driver
	b	.L69
.L65:
	mov	r0, #3
	bl	LEDs_driver
	b	.L69
.L64:
	mov	r0, #7
	bl	LEDs_driver
	b	.L69
.L63:
	mov	r0, #15
	bl	LEDs_driver
	b	.L69
.L62:
	mov	r0, #31
	bl	LEDs_driver
	b	.L69
.L61:
	mov	r0, #63
	bl	LEDs_driver
	b	.L69
.L60:
	mov	r0, #127
	bl	LEDs_driver
	b	.L69
.L58:
	mov	r0, #255
	bl	LEDs_driver
	b	.L69
.L57:
	mov	r0, #85
	bl	LEDs_driver
	b	.L83
.L56:
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bne	.L70
	ldr	r3, [fp, #-8]
	cmp	r3, #7
	ldrls	pc, [pc, r3, asl #2]
	b	.L71
.L73:
	.word	.L80
	.word	.L79
	.word	.L78
	.word	.L77
	.word	.L76
	.word	.L75
	.word	.L74
	.word	.L72
.L80:
	mov	r0, #1
	bl	LEDs_driver
	b	.L69
.L79:
	mov	r0, #2
	bl	LEDs_driver
	b	.L69
.L78:
	mov	r0, #4
	bl	LEDs_driver
	b	.L69
.L77:
	mov	r0, #8
	bl	LEDs_driver
	b	.L69
.L76:
	mov	r0, #16
	bl	LEDs_driver
	b	.L69
.L75:
	mov	r0, #32
	bl	LEDs_driver
	b	.L69
.L74:
	mov	r0, #64
	bl	LEDs_driver
	b	.L69
.L72:
	mov	r0, #128
	bl	LEDs_driver
	b	.L69
.L71:
	mov	r0, #85
	bl	LEDs_driver
	b	.L83
.L70:
	ldr	r3, [fp, #-12]
	cmp	r3, #3
	bne	.L82
	ldr	r0, [fp, #-8]
	bl	LEDs_driver
	b	.L83
.L82:
	mov	r0, #105
	bl	LEDs_driver
	b	.L83
.L69:
.L83:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	doBarGraph, .-doBarGraph
	.align	2
	.global	buttons_get_state
	.syntax unified
	.arm
	.fpu softvfp
	.type	buttons_get_state, %function
buttons_get_state:
	@ 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
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, .L86
	ldr	r3, [r3]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L87:
	.align	2
.L86:
	.word	mapped_button_dev_base
	.size	buttons_get_state, .-buttons_get_state
	.align	2
	.global	LEDs_driver
	.syntax unified
	.arm
	.fpu softvfp
	.type	LEDs_driver, %function
LEDs_driver:
	@ 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, .L89
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L90:
	.align	2
.L89:
	.word	mapped_led_dev_base
	.size	LEDs_driver, .-LEDs_driver
	.align	2
	.global	delay_loop
	.syntax unified
	.arm
	.fpu softvfp
	.type	delay_loop, %function
delay_loop:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L92
.L93:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L92:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L93
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	delay_loop, .-delay_loop
	.section	.rodata
	.align	2
.LC16:
	.ascii	"radix out of range 1..36\000"
	.global	__aeabi_uidivmod
	.global	__aeabi_uidiv
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	itoa
	.syntax unified
	.arm
	.fpu softvfp
	.type	itoa, %function
itoa:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	str	r2, [fp, #-80]
	ldr	r3, .L111
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #44
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-80]
	cmp	r3, #36
	bgt	.L95
	ldr	r3, [fp, #-80]
	cmp	r3, #1
	bgt	.L96
.L95:
	ldr	r3, .L111+4
	str	r3, [fp, #-76]
	mov	r3, #0
	b	.L109
.L96:
	ldr	r3, [fp, #-80]
	cmp	r3, #10
	bne	.L98
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	bge	.L98
	mov	r3, #1
	b	.L99
.L98:
	mov	r3, #0
.L99:
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L100
	ldr	r3, [fp, #-72]
	rsb	r3, r3, #0
	str	r3, [fp, #-60]
	b	.L102
.L100:
	ldr	r3, [fp, #-72]
	str	r3, [fp, #-60]
	b	.L102
.L104:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-60]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_uidivmod
	mov	r3, r1
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-80]
	mov	r1, r3
	ldr	r0, [fp, #-60]
	bl	__aeabi_uidiv
	mov	r3, r0
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-48]
	cmp	r3, #9
	bgt	.L103
	ldr	r3, [fp, #-48]
	and	r2, r3, #255
	ldr	r3, [fp, #-64]
	add	r1, r3, #1
	str	r1, [fp, #-64]
	add	r2, r2, #48
	and	r2, r2, #255
	strb	r2, [r3]
	b	.L102
.L103:
	ldr	r3, [fp, #-48]
	and	r2, r3, #255
	ldr	r3, [fp, #-64]
	add	r1, r3, #1
	str	r1, [fp, #-64]
	add	r2, r2, #87
	and	r2, r2, #255
	strb	r2, [r3]
.L102:
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L104
	sub	r3, fp, #44
	ldr	r2, [fp, #-64]
	cmp	r2, r3
	beq	.L104
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	bne	.L105
	sub	r3, fp, #44
	ldr	r2, [fp, #-64]
	sub	r2, r2, r3
	ldr	r3, [fp, #-52]
	add	r3, r2, r3
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-76]
.L105:
	ldr	r3, [fp, #-76]
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L107
	ldr	r3, [fp, #-56]
	add	r2, r3, #1
	str	r2, [fp, #-56]
	mov	r2, #45
	strb	r2, [r3]
	b	.L107
.L108:
	ldr	r3, [fp, #-64]
	sub	r3, r3, #1
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-56]
	add	r2, r3, #1
	str	r2, [fp, #-56]
	ldr	r2, [fp, #-64]
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
.L107:
	sub	r3, fp, #44
	ldr	r2, [fp, #-64]
	cmp	r2, r3
	bhi	.L108
	ldr	r3, [fp, #-56]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-76]
.L109:
	ldr	r2, .L111
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L110
	bl	__stack_chk_fail
.L110:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L112:
	.align	2
.L111:
	.word	.LC17
	.word	.LC16
	.size	itoa, .-itoa
	.align	2
	.global	strcat
	.syntax unified
	.arm
	.fpu softvfp
	.type	strcat, %function
strcat:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	b	.L114
.L115:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L114:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L115
	nop
.L116:
	ldr	r2, [fp, #-20]
	add	r3, r2, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-8]
	add	r1, r3, #1
	str	r1, [fp, #-8]
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L116
	ldr	r3, [fp, #-16]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	strcat, .-strcat
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
