	.file	"81680.c"
	.intel_syntax noprefix
	.text
	.section	.startup,"ax",@progbits
	.globl	Init_Machine
	.type	Init_Machine, @function
Init_Machine:
.LFB0:
	.cfi_startproc
	endbr64
#APP
# 95 "the_stack_data/81680.c" 1
	ldr r0, =0x000000d3
# 0 "" 2
# 96 "the_stack_data/81680.c" 1
	msr cpsr, r0
# 0 "" 2
# 98 "the_stack_data/81680.c" 1
	ldr sp, =0x06400000
# 0 "" 2
#NO_APP
	lea	rbx, __bss_start[rip]
	jmp	.L2
.L3:
	mov	rax, rbx
	lea	rbx, 4[rax]
	mov	DWORD PTR [rax], 0
.L2:
	lea	rax, __bss_end[rip]
	cmp	rbx, rax
	jb	.L3
#APP
# 103 "the_stack_data/81680.c" 1
	bl _start
# 0 "" 2
# 104 "the_stack_data/81680.c" 1
	b .
# 0 "" 2
#NO_APP
	nop
	ud2
	.cfi_endproc
.LFE0:
	.size	Init_Machine, .-Init_Machine
	.text
	.globl	init_uart
	.type	init_uart, @function
init_uart:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 538968068
	mov	DWORD PTR [rax], 73728
	mov	eax, 539054084
	mov	DWORD PTR [rax], 1
	mov	eax, 539054176
	mov	DWORD PTR [rax], 0
	mov	eax, 539054148
	mov	DWORD PTR [rax], 0
	mov	eax, 539054152
	mov	DWORD PTR [rax], 198
	mov	eax, 539054160
	mov	DWORD PTR [rax], 0
	mov	eax, 539054156
	mov	DWORD PTR [rax], 3
	mov	eax, 539054184
	mov	DWORD PTR [rax], 270
	mov	eax, 539054176
	mov	DWORD PTR [rax], 3
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	init_uart, .-init_uart
	.globl	systime
	.type	systime, @function
systime:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 536883208
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -16[rbp], eax
	mov	eax, 536883204
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -12[rbp], eax
	mov	eax, 536883208
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -16[rbp], eax
	je	.L6
	mov	eax, 536883208
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -16[rbp], eax
	mov	eax, 536883204
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -12[rbp], eax
.L6:
	mov	eax, DWORD PTR -16[rbp]
	mov	QWORD PTR -8[rbp], rax
	sal	QWORD PTR -8[rbp], 32
	mov	eax, DWORD PTR -12[rbp]
	add	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	systime, .-systime
	.globl	delay_ms
	.type	delay_ms, @function
delay_ms:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 24
	mov	DWORD PTR -20[rbp], edi
	call	systime
	mov	rdx, rax
	mov	eax, DWORD PTR -20[rbp]
	imul	eax, eax, 1000
	mov	eax, eax
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	nop
.L9:
	call	systime
	cmp	QWORD PTR -8[rbp], rax
	ja	.L9
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	delay_ms, .-delay_ms
	.globl	uart_putc
	.type	uart_putc, @function
uart_putc:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	nop
.L13:
	mov	eax, 539054164
	mov	eax, DWORD PTR [rax]
	and	eax, 64
	test	eax, eax
	jne	.L12
	mov	eax, 539054164
	mov	eax, DWORD PTR [rax]
	and	eax, 32
	test	eax, eax
	je	.L13
.L12:
	mov	edx, 539054144
	movzx	eax, BYTE PTR -4[rbp]
	mov	DWORD PTR [rdx], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	uart_putc, .-uart_putc
	.globl	uart_print
	.type	uart_print, @function
uart_print:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 8
	mov	QWORD PTR -8[rbp], rdi
	jmp	.L15
.L16:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	edi, eax
	call	uart_putc
.L15:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L16
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	uart_print, .-uart_print
	.globl	uart_put_hex
	.type	uart_put_hex, @function
uart_put_hex:
.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, 8
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	movzx	eax, BYTE PTR -4[rbp]
	shr	al, 4
	cmp	al, 9
	ja	.L18
	movzx	eax, BYTE PTR -4[rbp]
	shr	al, 4
	add	eax, 48
	movzx	eax, al
	jmp	.L19
.L18:
	movzx	eax, BYTE PTR -4[rbp]
	shr	al, 4
	add	eax, 87
	movzx	eax, al
.L19:
	mov	edi, eax
	call	uart_putc
	movzx	eax, BYTE PTR -4[rbp]
	and	eax, 15
	cmp	eax, 9
	ja	.L20
	movzx	eax, BYTE PTR -4[rbp]
	and	eax, 15
	add	eax, 48
	movzx	eax, al
	jmp	.L21
.L20:
	movzx	eax, BYTE PTR -4[rbp]
	and	eax, 15
	add	eax, 87
	movzx	eax, al
.L21:
	mov	edi, eax
	call	uart_putc
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	uart_put_hex, .-uart_put_hex
	.globl	spi_init
	.type	spi_init, @function
spi_init:
.LFB7:
	.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 -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	eax, 538968064
	mov	eax, DWORD PTR [rax]
	mov	edx, 538968064
	or	eax, 75497472
	mov	DWORD PTR [rdx], eax
	mov	eax, 538968064
	mov	eax, DWORD PTR [rax]
	mov	edx, 538968064
	or	eax, 536870912
	mov	DWORD PTR [rdx], eax
	mov	eax, 538968068
	mov	eax, DWORD PTR [rax]
	mov	edx, 538968068
	or	eax, 36
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	and	eax, -4112
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	je	.L23
	or	DWORD PTR -4[rbp], 8
.L23:
	cmp	DWORD PTR -32[rbp], 0
	je	.L24
	or	DWORD PTR -4[rbp], 4
.L24:
	mov	eax, DWORD PTR -4[rbp]
	or	eax, 48
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 8[rax], 833
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	spi_init, .-spi_init
	.globl	spi_chip_select
	.type	spi_chip_select, @function
spi_chip_select:
.LFB8:
	.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 -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	and	eax, -4
	mov	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	and	eax, 3
	or	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	spi_chip_select, .-spi_chip_select
	.globl	spi_write_read
	.type	spi_write_read, @function
spi_write_read:
.LFB9:
	.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	DWORD PTR -36[rbp], edx
	mov	QWORD PTR -48[rbp], rcx
	mov	DWORD PTR -40[rbp], r8d
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	or	al, -128
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
.L36:
	cmp	DWORD PTR -8[rbp], 0
	jle	.L27
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	and	eax, 262144
	test	eax, eax
	je	.L27
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -32[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 4[rax], edx
	sub	DWORD PTR -8[rbp], 1
.L27:
	cmp	DWORD PTR -4[rbp], 0
	jle	.L30
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	and	eax, 131072
	test	eax, eax
	je	.L29
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -48[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -48[rbp], rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	sub	DWORD PTR -4[rbp], 1
	jmp	.L29
.L31:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
.L30:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	and	eax, 524288
	test	eax, eax
	jne	.L31
.L29:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	and	eax, 65536
	test	eax, eax
	je	.L36
	cmp	DWORD PTR -36[rbp], 0
	jne	.L33
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -40[rbp]
	sub	eax, edx
	mov	DWORD PTR -12[rbp], eax
	jmp	.L35
.L33:
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, edx
	mov	DWORD PTR -12[rbp], eax
.L35:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	and	al, 127
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR -12[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	spi_write_read, .-spi_write_read
	.section	.rodata
.LC0:
	.string	"\r\nSPI echo back test.\r\n"
.LC1:
	.string	"\r\nsend "
.LC2:
	.string	" recv "
.LC3:
	.string	"\r\nrecv "
.LC4:
	.string	"\r\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 144
	mov	DWORD PTR -132[rbp], edi
	mov	QWORD PTR -144[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -104[rbp], 538984448
	mov	eax, 0
	call	init_uart
	lea	rdi, .LC0[rip]
	call	uart_print
	mov	edi, 1000
	call	delay_ms
	mov	rax, QWORD PTR -104[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	spi_init
	mov	rax, QWORD PTR -104[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	spi_chip_select
	movabs	rax, 3978425819141910832
	movabs	rdx, 5063528411713059128
	mov	QWORD PTR -96[rbp], rax
	mov	QWORD PTR -88[rbp], rdx
	movabs	rax, 5642249794417674311
	movabs	rdx, 6220971177122287695
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], rdx
	mov	DWORD PTR -64[rbp], 1515804759
	mov	BYTE PTR -60[rbp], 0
	lea	rax, -96[rbp]
	mov	QWORD PTR -112[rbp], rax
	jmp	.L39
.L40:
	mov	rsi, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 1
	mov	rdi, rax
	call	spi_write_read
	test	eax, eax
	setg	al
	movzx	eax, al
	mov	DWORD PTR -116[rbp], eax
	cmp	DWORD PTR -116[rbp], 0
	je	.L39
	lea	rdi, .LC1[rip]
	call	uart_print
	mov	rax, QWORD PTR -112[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	edi, eax
	call	uart_putc
	add	QWORD PTR -112[rbp], 1
	lea	rdx, -48[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	r8d, 1
	mov	rcx, rdx
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	spi_write_read
	test	eax, eax
	setg	al
	movzx	eax, al
	mov	DWORD PTR -116[rbp], eax
	cmp	DWORD PTR -116[rbp], 0
	je	.L39
	lea	rdi, .LC2[rip]
	call	uart_print
	movzx	eax, BYTE PTR -48[rbp]
	movzx	eax, al
	mov	edi, eax
	call	uart_putc
.L39:
	mov	rax, QWORD PTR -112[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L40
	lea	rdx, -48[rbp]
	lea	rsi, -96[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	r8d, 37
	mov	rcx, rdx
	mov	edx, 37
	mov	rdi, rax
	call	spi_write_read
	mov	DWORD PTR -116[rbp], eax
	lea	rdi, .LC1[rip]
	call	uart_print
	lea	rax, -96[rbp]
	mov	rdi, rax
	call	uart_print
	lea	rdi, .LC3[rip]
	call	uart_print
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	uart_print
	lea	rdi, .LC4[rip]
	call	uart_print
.L41:
	jmp	.L41
	.cfi_endproc
.LFE10:
	.size	main, .-main
	.globl	_start
	.type	_start, @function
_start:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	esi, 0
	mov	edi, 0
	call	main
.L44:
	jmp	.L44
	.cfi_endproc
.LFE11:
	.size	_start, .-_start
	.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	"81680.c"
	.text
	.section	.startup,"ax",%progbits
	.align	2
	.global	Init_Machine
	.syntax unified
	.arm
	.fpu softvfp
	.type	Init_Machine, %function
Init_Machine:
	@ Naked Function: prologue and epilogue provided by programmer.
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	.syntax divided
@ 95 "the_stack_data/81680.c" 1
	ldr r0, =0x000000d3
@ 0 "" 2
@ 96 "the_stack_data/81680.c" 1
	msr cpsr, r0
@ 0 "" 2
@ 98 "the_stack_data/81680.c" 1
	ldr sp, =0x06400000
@ 0 "" 2
	.arm
	.syntax unified
	ldr	r4, .L4
	b	.L2
.L3:
	mov	r3, r4
	add	r4, r3, #4
	mov	r2, #0
	str	r2, [r3]
.L2:
	ldr	r3, .L4+4
	cmp	r4, r3
	bcc	.L3
	.syntax divided
@ 103 "the_stack_data/81680.c" 1
	bl _start
@ 0 "" 2
@ 104 "the_stack_data/81680.c" 1
	b .
@ 0 "" 2
	.arm
	.syntax unified
	nop
.L5:
	.align	2
.L4:
	.word	__bss_start
	.word	__bss_end
	.size	Init_Machine, .-Init_Machine
	.text
	.align	2
	.global	init_uart
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_uart, %function
init_uart:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L7
	mov	r2, #73728
	str	r2, [r3]
	ldr	r3, .L7+4
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L7+8
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L7+12
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L7+16
	mov	r2, #198
	str	r2, [r3]
	ldr	r3, .L7+20
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L7+24
	mov	r2, #3
	str	r2, [r3]
	ldr	r3, .L7+28
	ldr	r2, .L7+32
	str	r2, [r3]
	ldr	r3, .L7+8
	mov	r2, #3
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L8:
	.align	2
.L7:
	.word	538968068
	.word	539054084
	.word	539054176
	.word	539054148
	.word	539054152
	.word	539054160
	.word	539054156
	.word	539054184
	.word	270
	.size	init_uart, .-init_uart
	.align	2
	.global	systime
	.syntax unified
	.arm
	.fpu softvfp
	.type	systime, %function
systime:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, r5, fp}
	add	fp, sp, #8
	sub	sp, sp, #20
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-28]
	ldr	r3, .L12+4
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	ldr	r3, .L12
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	beq	.L10
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-28]
	ldr	r3, .L12+4
	ldr	r3, [r3]
	str	r3, [fp, #-24]
.L10:
	ldr	r3, [fp, #-28]
	mov	r2, r3
	mov	r3, #0
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	mov	r3, r0
	mov	r2, #0
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	mov	r2, r3
	mov	r3, #0
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	adds	r4, r0, r2
	adc	r5, r1, r3
	str	r4, [fp, #-20]
	str	r5, [fp, #-16]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, r5, fp}
	bx	lr
.L13:
	.align	2
.L12:
	.word	536883208
	.word	536883204
	.size	systime, .-systime
	.align	2
	.global	delay_ms
	.syntax unified
	.arm
	.fpu softvfp
	.type	delay_ms, %function
delay_ms:
	@ 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
	str	r0, [fp, #-24]
	bl	systime
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	mov	r3, #0
	adds	r4, r0, r2
	adc	r5, r1, r3
	str	r4, [fp, #-20]
	str	r5, [fp, #-16]
	nop
.L15:
	bl	systime
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	cmp	r3, r1
	cmpeq	r2, r0
	bhi	.L15
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	delay_ms, .-delay_ms
	.align	2
	.global	uart_putc
	.syntax unified
	.arm
	.fpu softvfp
	.type	uart_putc, %function
uart_putc:
	@ 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, r0
	strb	r3, [fp, #-5]
	nop
.L19:
	ldr	r3, .L20
	ldr	r3, [r3]
	and	r3, r3, #64
	cmp	r3, #0
	bne	.L18
	ldr	r3, .L20
	ldr	r3, [r3]
	and	r3, r3, #32
	cmp	r3, #0
	beq	.L19
.L18:
	ldr	r2, .L20+4
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	str	r3, [r2]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L21:
	.align	2
.L20:
	.word	539054164
	.word	539054144
	.size	uart_putc, .-uart_putc
	.align	2
	.global	uart_print
	.syntax unified
	.arm
	.fpu softvfp
	.type	uart_print, %function
uart_print:
	@ 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]
	b	.L23
.L24:
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	str	r2, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	uart_putc
.L23:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L24
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	uart_print, .-uart_print
	.align	2
	.global	uart_put_hex
	.syntax unified
	.arm
	.fpu softvfp
	.type	uart_put_hex, %function
uart_put_hex:
	@ 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, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	lsr	r3, r3, #4
	and	r3, r3, #255
	cmp	r3, #9
	bhi	.L26
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	lsr	r3, r3, #4
	and	r3, r3, #255
	add	r3, r3, #48
	and	r3, r3, #255
	b	.L27
.L26:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	lsr	r3, r3, #4
	and	r3, r3, #255
	add	r3, r3, #87
	and	r3, r3, #255
.L27:
	mov	r0, r3
	bl	uart_putc
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	and	r3, r3, #15
	cmp	r3, #9
	bhi	.L28
	ldrb	r3, [fp, #-5]
	and	r3, r3, #15
	and	r3, r3, #255
	add	r3, r3, #48
	and	r3, r3, #255
	b	.L29
.L28:
	ldrb	r3, [fp, #-5]
	and	r3, r3, #15
	and	r3, r3, #255
	add	r3, r3, #87
	and	r3, r3, #255
.L29:
	mov	r0, r3
	bl	uart_putc
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	uart_put_hex, .-uart_put_hex
	.align	2
	.global	spi_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	spi_init, %function
spi_init:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, .L33
	ldr	r3, [r3]
	ldr	r2, .L33
	orr	r3, r3, #75497472
	str	r3, [r2]
	ldr	r3, .L33
	ldr	r3, [r3]
	ldr	r2, .L33
	orr	r3, r3, #536870912
	str	r3, [r2]
	ldr	r3, .L33+4
	ldr	r3, [r3]
	ldr	r2, .L33+4
	orr	r3, r3, #36
	str	r3, [r2]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	bic	r3, r3, #4096
	bic	r3, r3, #15
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L31
	ldr	r3, [fp, #-8]
	orr	r3, r3, #8
	str	r3, [fp, #-8]
.L31:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L32
	ldr	r3, [fp, #-8]
	orr	r3, r3, #4
	str	r3, [fp, #-8]
.L32:
	ldr	r3, [fp, #-8]
	orr	r2, r3, #48
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r2, .L33+8
	str	r2, [r3, #8]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L34:
	.align	2
.L33:
	.word	538968064
	.word	538968068
	.word	833
	.size	spi_init, .-spi_init
	.align	2
	.global	spi_chip_select
	.syntax unified
	.arm
	.fpu softvfp
	.type	spi_chip_select, %function
spi_chip_select:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	bic	r2, r3, #3
	ldr	r3, [fp, #-12]
	and	r3, r3, #3
	orr	r2, r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	spi_chip_select, .-spi_chip_select
	.align	2
	.global	spi_write_read
	.syntax unified
	.arm
	.fpu softvfp
	.type	spi_write_read, %function
spi_write_read:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #36
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	orr	r2, r3, #128
	ldr	r3, [fp, #-24]
	str	r2, [r3]
.L46:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	ble	.L37
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	and	r3, r3, #262144
	cmp	r3, #0
	beq	.L37
	ldr	r3, [fp, #-28]
	add	r2, r3, #1
	str	r2, [fp, #-28]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-24]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
.L37:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L40
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	and	r3, r3, #131072
	cmp	r3, #0
	beq	.L39
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-36]
	add	r1, r3, #1
	str	r1, [fp, #-36]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L39
.L41:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
.L40:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	and	r3, r3, #524288
	cmp	r3, #0
	bne	.L41
.L39:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	and	r3, r3, #65536
	cmp	r3, #0
	beq	.L46
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L43
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #4]
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	b	.L45
.L43:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-32]
	sub	r3, r2, r3
	str	r3, [fp, #-16]
.L45:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	bic	r2, r3, #128
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	spi_write_read, .-spi_write_read
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\015\012SPI echo back test.\015\012\000"
	.align	2
.LC2:
	.ascii	"\015\012send \000"
	.align	2
.LC3:
	.ascii	" recv \000"
	.align	2
.LC4:
	.ascii	"\015\012recv \000"
	.align	2
.LC5:
	.ascii	"\015\012\000"
	.align	2
.LC1:
	.ascii	"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.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	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	str	r0, [fp, #-104]
	str	r1, [fp, #-108]
	ldr	r3, .L53
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L53+4
	str	r3, [fp, #-96]
	bl	init_uart
	ldr	r0, .L53+8
	bl	uart_print
	mov	r0, #1000
	bl	delay_ms
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-96]
	bl	spi_init
	mov	r1, #0
	ldr	r0, [fp, #-96]
	bl	spi_chip_select
	ldr	r3, .L53+12
	sub	ip, fp, #88
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	str	r0, [ip]
	add	ip, ip, #4
	strb	r1, [ip]
	sub	r3, fp, #88
	str	r3, [fp, #-100]
	b	.L49
.L50:
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #1
	ldr	r1, [fp, #-100]
	ldr	r0, [fp, #-96]
	bl	spi_write_read
	mov	r3, r0
	cmp	r3, #0
	movgt	r3, #1
	movle	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-92]
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	beq	.L49
	ldr	r0, .L53+16
	bl	uart_print
	ldr	r3, [fp, #-100]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	uart_putc
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
	sub	r3, fp, #48
	mov	r2, #1
	str	r2, [sp]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-96]
	bl	spi_write_read
	mov	r3, r0
	cmp	r3, #0
	movgt	r3, #1
	movle	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-92]
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	beq	.L49
	ldr	r0, .L53+20
	bl	uart_print
	ldrb	r3, [fp, #-48]	@ zero_extendqisi2
	mov	r0, r3
	bl	uart_putc
.L49:
	ldr	r3, [fp, #-100]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L50
	sub	r3, fp, #48
	sub	r1, fp, #88
	mov	r2, #37
	str	r2, [sp]
	mov	r2, #37
	ldr	r0, [fp, #-96]
	bl	spi_write_read
	str	r0, [fp, #-92]
	ldr	r0, .L53+16
	bl	uart_print
	sub	r3, fp, #88
	mov	r0, r3
	bl	uart_print
	ldr	r0, .L53+24
	bl	uart_print
	sub	r3, fp, #48
	mov	r0, r3
	bl	uart_print
	ldr	r0, .L53+28
	bl	uart_print
.L51:
	b	.L51
.L54:
	.align	2
.L53:
	.word	.LC6
	.word	538984448
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.align	2
	.global	_start
	.syntax unified
	.arm
	.fpu softvfp
	.type	_start, %function
_start:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r1, #0
	mov	r0, #0
	bl	main
.L56:
	b	.L56
	.size	_start, .-_start
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
