	.file	"351636.c"
	.intel_syntax noprefix
	.text
	.globl	getpid
	.type	getpid, @function
getpid:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
#APP
# 6 "the_stack_data/351636.c" 1
	mov x8, #0	
svc 0
# 0 "" 2
# 11 "the_stack_data/351636.c" 1
	mov eax, x0
# 0 "" 2
#NO_APP
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	getpid, .-getpid
	.globl	uartread
	.type	uartread, @function
uartread:
.LFB1:
	.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
#APP
# 17 "the_stack_data/351636.c" 1
	mov x8, #1	
svc 0
# 0 "" 2
# 22 "the_stack_data/351636.c" 1
	mov rax, x0
# 0 "" 2
#NO_APP
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	uartread, .-uartread
	.globl	uartwrite
	.type	uartwrite, @function
uartwrite:
.LFB2:
	.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
#APP
# 28 "the_stack_data/351636.c" 1
	mov x8, #2	
svc 0
# 0 "" 2
# 33 "the_stack_data/351636.c" 1
	mov rax, x0
# 0 "" 2
#NO_APP
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	uartwrite, .-uartwrite
	.globl	exec
	.type	exec, @function
exec:
.LFB3:
	.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
#APP
# 39 "the_stack_data/351636.c" 1
	mov x8, #3	
svc 0
# 0 "" 2
# 44 "the_stack_data/351636.c" 1
	mov rax, x0
# 0 "" 2
#NO_APP
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	exec, .-exec
	.globl	fork
	.type	fork, @function
fork:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
#APP
# 50 "the_stack_data/351636.c" 1
	mov x8, #4	
svc 0
# 0 "" 2
# 55 "the_stack_data/351636.c" 1
	mov eax, x0
# 0 "" 2
#NO_APP
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	fork, .-fork
	.globl	exit
	.type	exit, @function
exit:
.LFB5:
	.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
#APP
# 61 "the_stack_data/351636.c" 1
	mov x8, #5	
svc 0
# 0 "" 2
#NO_APP
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	exit, .-exit
	.globl	mbox_call
	.type	mbox_call, @function
mbox_call:
.LFB6:
	.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	QWORD PTR -32[rbp], rsi
	mov	BYTE PTR -20[rbp], al
#APP
# 69 "the_stack_data/351636.c" 1
	mov x8, #6	
svc 0
# 0 "" 2
# 74 "the_stack_data/351636.c" 1
	mov eax, x0
# 0 "" 2
#NO_APP
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	mbox_call, .-mbox_call
	.globl	kill
	.type	kill, @function
kill:
.LFB7:
	.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
#APP
# 80 "the_stack_data/351636.c" 1
	mov x8, #7	
svc 0
# 0 "" 2
#NO_APP
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	kill, .-kill
	.globl	signal
	.type	signal, @function
signal:
.LFB8:
	.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	QWORD PTR -16[rbp], rsi
#APP
# 88 "the_stack_data/351636.c" 1
	mov x8, #8	
svc 0
# 0 "" 2
#NO_APP
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	signal, .-signal
	.globl	sigkill
	.type	sigkill, @function
sigkill:
.LFB9:
	.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	DWORD PTR -8[rbp], esi
#APP
# 96 "the_stack_data/351636.c" 1
	mov x8, #9	
svc 0
# 0 "" 2
#NO_APP
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	sigkill, .-sigkill
	.globl	strlen
	.type	strlen, @function
strlen:
.LFB10:
	.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	.L18
.L19:
	add	DWORD PTR -4[rbp], 1
	add	QWORD PTR -24[rbp], 1
.L18:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L19
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	strlen, .-strlen
	.globl	u42hex
	.type	u42hex, @function
u42hex:
.LFB11:
	.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], 9
	ja	.L22
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 48
	jmp	.L23
.L22:
	cmp	DWORD PTR -4[rbp], 9
	jbe	.L24
	cmp	DWORD PTR -4[rbp], 15
	ja	.L24
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 87
	jmp	.L23
.L24:
	mov	eax, 63
.L23:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	u42hex, .-u42hex
	.globl	u322hex
	.type	u322hex, @function
u322hex:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	DWORD PTR -28[rbp], edi
	mov	QWORD PTR -40[rbp], rsi
	mov	QWORD PTR -48[rbp], rdx
	sub	QWORD PTR -48[rbp], 1
	mov	rax, QWORD PTR -40[rbp]
	mov	BYTE PTR [rax], 48
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 1
	mov	BYTE PTR [rax], 0
	mov	QWORD PTR -16[rbp], 0
	jmp	.L26
.L28:
	mov	eax, DWORD PTR -28[rbp]
	and	eax, 15
	mov	rdx, QWORD PTR -16[rbp]
	lea	rcx, 1[rdx]
	mov	QWORD PTR -16[rbp], rcx
	mov	rcx, QWORD PTR -40[rbp]
	lea	rbx, [rdx+rcx]
	mov	edi, eax
	call	u42hex
	mov	BYTE PTR [rbx], al
	shr	DWORD PTR -28[rbp], 4
.L26:
	cmp	DWORD PTR -28[rbp], 0
	je	.L27
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -48[rbp]
	jb	.L28
.L27:
	mov	DWORD PTR -20[rbp], 0
	jmp	.L29
.L30:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -21[rbp], al
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, rdx
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -20[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -40[rbp]
	add	rdx, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, rdx
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -21[rbp]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -20[rbp], 1
.L29:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	mov	rdx, QWORD PTR -16[rbp]
	shr	rdx
	cmp	rax, rdx
	jb	.L30
	cmp	QWORD PTR -16[rbp], 0
	je	.L31
	mov	rax, QWORD PTR -16[rbp]
	jmp	.L32
.L31:
	mov	eax, 1
.L32:
	mov	rdx, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	u322hex, .-u322hex
	.globl	u642hex
	.type	u642hex, @function
u642hex:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -32[rbp], rdi
	mov	QWORD PTR -40[rbp], rsi
	mov	QWORD PTR -48[rbp], rdx
	sub	QWORD PTR -48[rbp], 1
	mov	rax, QWORD PTR -40[rbp]
	mov	BYTE PTR [rax], 48
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 1
	mov	BYTE PTR [rax], 0
	mov	QWORD PTR -16[rbp], 0
	jmp	.L34
.L36:
	mov	rax, QWORD PTR -32[rbp]
	and	eax, 15
	mov	rdx, QWORD PTR -16[rbp]
	lea	rcx, 1[rdx]
	mov	QWORD PTR -16[rbp], rcx
	mov	rcx, QWORD PTR -40[rbp]
	lea	rbx, [rdx+rcx]
	mov	edi, eax
	call	u42hex
	mov	BYTE PTR [rbx], al
	shr	QWORD PTR -32[rbp], 4
.L34:
	cmp	QWORD PTR -32[rbp], 0
	je	.L35
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -48[rbp]
	jb	.L36
.L35:
	mov	DWORD PTR -20[rbp], 0
	jmp	.L37
.L38:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -21[rbp], al
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, rdx
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -20[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -40[rbp]
	add	rdx, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, rdx
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -21[rbp]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -20[rbp], 1
.L37:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	mov	rdx, QWORD PTR -16[rbp]
	shr	rdx
	cmp	rax, rdx
	jb	.L38
	cmp	QWORD PTR -16[rbp], 0
	je	.L39
	mov	rax, QWORD PTR -16[rbp]
	jmp	.L40
.L39:
	mov	eax, 1
.L40:
	mov	rdx, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	u642hex, .-u642hex
	.globl	atoi
	.type	atoi, @function
atoi:
.LFB14:
	.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 -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L42
.L43:
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	add	DWORD PTR -8[rbp], eax
	add	DWORD PTR -4[rbp], 1
.L42:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L43
	mov	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	atoi, .-atoi
	.globl	uart_print
	.type	uart_print, @function
uart_print:
.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, 24
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L46
.L47:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	esi, 1
	mov	rdi, rax
	call	uartwrite
	add	DWORD PTR -4[rbp], 1
.L46:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L47
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	uart_print, .-uart_print
	.section	.rodata
.LC0:
	.string	"\n\r"
	.text
	.globl	uart_puts
	.type	uart_puts, @function
uart_puts:
.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, 8
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	uart_print
	mov	esi, 2
	lea	rdi, .LC0[rip]
	call	uartwrite
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	uart_puts, .-uart_puts
	.globl	uart_gets
	.type	uart_gets, @function
uart_gets:
.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, 24
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L50
.L53:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L51
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	jmp	.L52
.L51:
	add	DWORD PTR -4[rbp], 1
.L50:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	esi, 1
	mov	rdi, rax
	call	uartread
	test	rax, rax
	jne	.L53
.L52:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	uart_gets, .-uart_gets
	.globl	uart_print_hex
	.type	uart_print_hex, @function
uart_print_hex:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rcx, -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	rdi, rax
	call	u642hex
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	uart_print
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L56
	call	__stack_chk_fail@PLT
.L56:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	uart_print_hex, .-uart_print_hex
	.section	.rodata
.LC1:
	.string	""
	.text
	.globl	uart_putshex
	.type	uart_putshex, @function
uart_putshex:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	uart_print_hex
	lea	rdi, .LC1[rip]
	call	uart_puts
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	uart_putshex, .-uart_putshex
	.section	.rodata
.LC2:
	.string	"mailbox message buffer: 0x"
.LC3:
	.string	"mbox_call error"
	.text
	.globl	get_board_revision
	.type	get_board_revision, @function
get_board_revision:
.LFB20:
	.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	QWORD PTR -72[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC2[rip]
	call	uart_print
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	uart_putshex
	mov	DWORD PTR -48[rbp], 28
	mov	DWORD PTR -44[rbp], 0
	mov	DWORD PTR -40[rbp], 65538
	mov	DWORD PTR -36[rbp], 4
	mov	DWORD PTR -32[rbp], 0
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	lea	rax, -48[rbp]
	mov	rsi, rax
	mov	edi, 8
	call	mbox_call
	mov	DWORD PTR -52[rbp], eax
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR [rax], edx
	cmp	DWORD PTR -52[rbp], 0
	je	.L62
	lea	rdi, .LC3[rip]
	call	uart_puts
	nop
.L62:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L61
	call	__stack_chk_fail@PLT
.L61:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	get_board_revision, .-get_board_revision
	.section	.rodata
.LC4:
	.string	"run signal handler 8."
	.text
	.globl	sighandle8
	.type	sighandle8, @function
sighandle8:
.LFB21:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC4[rip]
	call	uart_puts
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	sighandle8, .-sighandle8
	.section	.rodata
.LC5:
	.string	"User process test!!"
.LC6:
	.string	"Pid: "
.LC7:
	.string	"Input: "
.LC8:
	.string	"Test Input: "
.LC9:
	.string	" (length: 0x"
.LC10:
	.string	")"
.LC11:
	.string	"Board Revision: 0x"
.LC12:
	.string	"fork error"
.LC13:
	.string	"Parent!!! Child Pid: 0x"
.LC14:
	.string	"Kill process: "
.LC15:
	.string	"Kill process signal: "
.LC16:
	.string	"Child!!! Pid: 0x"
.LC17:
	.string	"Second Child!!! Pid: 0x"
	.text
	.globl	init
	.type	init, @function
init:
.LFB22:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC5[rip]
	call	uart_puts
	mov	eax, 0
	call	getpid
	mov	DWORD PTR -52[rbp], eax
	lea	rdi, .LC6[rip]
	call	uart_print
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	mov	rdi, rax
	call	uart_putshex
	lea	rdi, .LC7[rip]
	call	uart_print
	lea	rax, -32[rbp]
	mov	esi, 5
	mov	rdi, rax
	call	uartread
	mov	QWORD PTR -40[rbp], rax
	lea	rdi, .LC8[rip]
	call	uart_print
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	uart_print
	lea	rdi, .LC9[rip]
	call	uart_print
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	uart_print_hex
	lea	rdi, .LC10[rip]
	call	uart_puts
	mov	DWORD PTR -64[rbp], 0
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	get_board_revision
	lea	rdi, .LC11[rip]
	call	uart_print
	mov	eax, DWORD PTR -64[rbp]
	mov	eax, eax
	mov	rdi, rax
	call	uart_putshex
	mov	eax, 0
	call	fork
	mov	DWORD PTR -48[rbp], eax
	cmp	DWORD PTR -48[rbp], -1
	jne	.L65
	lea	rdi, .LC12[rip]
	call	uart_puts
	mov	edi, -1
	call	exit
.L65:
	cmp	DWORD PTR -48[rbp], 0
	je	.L66
	lea	rdi, .LC13[rip]
	call	uart_print
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	mov	rdi, rax
	call	uart_putshex
.L67:
	lea	rdi, .LC14[rip]
	call	uart_print
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	uart_gets
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	atoi
	mov	DWORD PTR -44[rbp], eax
	lea	rdi, .LC15[rip]
	call	uart_print
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	uart_gets
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	atoi
	mov	edx, eax
	mov	eax, DWORD PTR -44[rbp]
	mov	esi, edx
	mov	edi, eax
	call	sigkill
	jmp	.L67
.L66:
	mov	eax, 0
	call	getpid
	mov	DWORD PTR -52[rbp], eax
	mov	eax, 0
	call	fork
	mov	DWORD PTR -48[rbp], eax
	cmp	DWORD PTR -48[rbp], 0
	je	.L68
	lea	rsi, sighandle8[rip]
	mov	edi, 8
	call	signal
.L71:
	lea	rdi, .LC16[rip]
	call	uart_print
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	mov	rdi, rax
	call	uart_putshex
	mov	DWORD PTR -60[rbp], 0
	jmp	.L69
.L70:
	add	DWORD PTR -60[rbp], 1
.L69:
	cmp	DWORD PTR -60[rbp], 9999999
	jle	.L70
	jmp	.L71
.L68:
	mov	eax, 0
	call	getpid
	mov	DWORD PTR -52[rbp], eax
.L74:
	lea	rdi, .LC17[rip]
	call	uart_print
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	mov	rdi, rax
	call	uart_putshex
	mov	DWORD PTR -56[rbp], 0
	jmp	.L72
.L73:
	add	DWORD PTR -56[rbp], 1
.L72:
	cmp	DWORD PTR -56[rbp], 9999999
	jle	.L73
	jmp	.L74
	.cfi_endproc
.LFE22:
	.size	init, .-init
	.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	"351636.c"
	.text
	.align	2
	.global	getpid
	.syntax unified
	.arm
	.fpu softvfp
	.type	getpid, %function
getpid:
	@ 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
	.syntax divided
@ 6 "the_stack_data/351636.c" 1
	mov x8, #0	
svc 0
@ 0 "" 2
@ 11 "the_stack_data/351636.c" 1
	mov r3, x0
@ 0 "" 2
	.arm
	.syntax unified
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	getpid, .-getpid
	.align	2
	.global	uartread
	.syntax unified
	.arm
	.fpu softvfp
	.type	uartread, %function
uartread:
	@ 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]
	.syntax divided
@ 17 "the_stack_data/351636.c" 1
	mov x8, #1	
svc 0
@ 0 "" 2
@ 22 "the_stack_data/351636.c" 1
	mov r3, x0
@ 0 "" 2
	.arm
	.syntax unified
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	uartread, .-uartread
	.align	2
	.global	uartwrite
	.syntax unified
	.arm
	.fpu softvfp
	.type	uartwrite, %function
uartwrite:
	@ 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]
	.syntax divided
@ 28 "the_stack_data/351636.c" 1
	mov x8, #2	
svc 0
@ 0 "" 2
@ 33 "the_stack_data/351636.c" 1
	mov r3, x0
@ 0 "" 2
	.arm
	.syntax unified
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	uartwrite, .-uartwrite
	.align	2
	.global	exec
	.syntax unified
	.arm
	.fpu softvfp
	.type	exec, %function
exec:
	@ 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]
	.syntax divided
@ 39 "the_stack_data/351636.c" 1
	mov x8, #3	
svc 0
@ 0 "" 2
@ 44 "the_stack_data/351636.c" 1
	mov r3, x0
@ 0 "" 2
	.arm
	.syntax unified
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	exec, .-exec
	.align	2
	.global	fork
	.syntax unified
	.arm
	.fpu softvfp
	.type	fork, %function
fork:
	@ 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
	.syntax divided
@ 50 "the_stack_data/351636.c" 1
	mov x8, #4	
svc 0
@ 0 "" 2
@ 55 "the_stack_data/351636.c" 1
	mov r3, x0
@ 0 "" 2
	.arm
	.syntax unified
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	fork, .-fork
	.align	2
	.global	exit
	.syntax unified
	.arm
	.fpu softvfp
	.type	exit, %function
exit:
	@ 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]
	.syntax divided
@ 61 "the_stack_data/351636.c" 1
	mov x8, #5	
svc 0
@ 0 "" 2
	.arm
	.syntax unified
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	exit, .-exit
	.align	2
	.global	mbox_call
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbox_call, %function
mbox_call:
	@ 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
	mov	r3, r0
	str	r1, [fp, #-20]
	strb	r3, [fp, #-13]
	.syntax divided
@ 69 "the_stack_data/351636.c" 1
	mov x8, #6	
svc 0
@ 0 "" 2
@ 74 "the_stack_data/351636.c" 1
	mov r3, x0
@ 0 "" 2
	.arm
	.syntax unified
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	mbox_call, .-mbox_call
	.align	2
	.global	kill
	.syntax unified
	.arm
	.fpu softvfp
	.type	kill, %function
kill:
	@ 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]
	.syntax divided
@ 80 "the_stack_data/351636.c" 1
	mov x8, #7	
svc 0
@ 0 "" 2
	.arm
	.syntax unified
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	kill, .-kill
	.align	2
	.global	signal
	.syntax unified
	.arm
	.fpu softvfp
	.type	signal, %function
signal:
	@ 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]
	.syntax divided
@ 88 "the_stack_data/351636.c" 1
	mov x8, #8	
svc 0
@ 0 "" 2
	.arm
	.syntax unified
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	signal, .-signal
	.align	2
	.global	sigkill
	.syntax unified
	.arm
	.fpu softvfp
	.type	sigkill, %function
sigkill:
	@ 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]
	.syntax divided
@ 96 "the_stack_data/351636.c" 1
	mov x8, #9	
svc 0
@ 0 "" 2
	.arm
	.syntax unified
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	sigkill, .-sigkill
	.align	2
	.global	strlen
	.syntax unified
	.arm
	.fpu softvfp
	.type	strlen, %function
strlen:
	@ 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	.L18
.L19:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L18:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L19
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	strlen, .-strlen
	.align	2
	.global	u42hex
	.syntax unified
	.arm
	.fpu softvfp
	.type	u42hex, %function
u42hex:
	@ 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, #9
	bhi	.L22
	ldr	r3, [fp, #-8]
	and	r3, r3, #255
	add	r3, r3, #48
	and	r3, r3, #255
	b	.L23
.L22:
	ldr	r3, [fp, #-8]
	cmp	r3, #9
	bls	.L24
	ldr	r3, [fp, #-8]
	cmp	r3, #15
	bhi	.L24
	ldr	r3, [fp, #-8]
	and	r3, r3, #255
	add	r3, r3, #87
	and	r3, r3, #255
	b	.L23
.L24:
	mov	r3, #63
.L23:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	u42hex, .-u42hex
	.align	2
	.global	u322hex
	.syntax unified
	.arm
	.fpu softvfp
	.type	u322hex, %function
u322hex:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-36]
	mov	r2, #48
	strb	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L26
.L28:
	ldr	r3, [fp, #-32]
	and	r1, r3, #15
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	str	r2, [fp, #-20]
	ldr	r2, [fp, #-36]
	add	r4, r2, r3
	mov	r0, r1
	bl	u42hex
	mov	r3, r0
	strb	r3, [r4]
	ldr	r3, [fp, #-32]
	lsr	r3, r3, #4
	str	r3, [fp, #-32]
.L26:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L27
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	bcc	.L28
.L27:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L29
.L30:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-21]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	sub	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-36]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	ldr	r1, [fp, #-36]
	add	r3, r1, r3
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	sub	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldrb	r2, [fp, #-21]
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L29:
	ldr	r3, [fp, #-20]
	lsr	r2, r3, #1
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bhi	.L30
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L31
	ldr	r3, [fp, #-20]
	b	.L32
.L31:
	mov	r3, #1
.L32:
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	u322hex, .-u322hex
	.align	2
	.global	u642hex
	.syntax unified
	.arm
	.fpu softvfp
	.type	u642hex, %function
u642hex:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-36]
	str	r1, [fp, #-32]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-40]
	mov	r2, #48
	strb	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L34
.L36:
	ldr	r3, [fp, #-36]
	and	r1, r3, #15
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	str	r2, [fp, #-20]
	ldr	r2, [fp, #-40]
	add	r4, r2, r3
	mov	r0, r1
	bl	u42hex
	mov	r3, r0
	strb	r3, [r4]
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	lsr	r2, r0, #4
	orr	r2, r2, r1, lsl #28
	lsr	r3, r1, #4
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
.L34:
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	beq	.L35
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	bcc	.L36
.L35:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L37
.L38:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-21]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	sub	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-40]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	ldr	r1, [fp, #-40]
	add	r3, r1, r3
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	sub	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldrb	r2, [fp, #-21]
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L37:
	ldr	r3, [fp, #-20]
	lsr	r2, r3, #1
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bhi	.L38
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L39
	ldr	r3, [fp, #-20]
	b	.L40
.L39:
	mov	r3, #1
.L40:
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	u642hex, .-u642hex
	.align	2
	.global	atoi
	.syntax unified
	.arm
	.fpu softvfp
	.type	atoi, %function
atoi:
	@ 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, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L42
.L43:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L42:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L43
	ldr	r3, [fp, #-12]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	atoi, .-atoi
	.align	2
	.global	uart_print
	.syntax unified
	.arm
	.fpu softvfp
	.type	uart_print, %function
uart_print:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L46
.L47:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r1, #1
	mov	r0, r3
	bl	uartwrite
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L46:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L47
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	uart_print, .-uart_print
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012\015\000"
	.text
	.align	2
	.global	uart_puts
	.syntax unified
	.arm
	.fpu softvfp
	.type	uart_puts, %function
uart_puts:
	@ 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]
	ldr	r0, [fp, #-8]
	bl	uart_print
	mov	r1, #2
	ldr	r0, .L49
	bl	uartwrite
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L50:
	.align	2
.L49:
	.word	.LC0
	.size	uart_puts, .-uart_puts
	.align	2
	.global	uart_gets
	.syntax unified
	.arm
	.fpu softvfp
	.type	uart_gets, %function
uart_gets:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L52
.L55:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L53
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	b	.L54
.L53:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L52:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r1, #1
	mov	r0, r3
	bl	uartread
	mov	r3, r0
	cmp	r3, #0
	bne	.L55
.L54:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	uart_gets, .-uart_gets
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	uart_print_hex
	.syntax unified
	.arm
	.fpu softvfp
	.type	uart_print_hex, %function
uart_print_hex:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-36]
	str	r1, [fp, #-32]
	ldr	r3, .L59
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r2, fp, #24
	mov	r3, #16
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	u642hex
	sub	r3, fp, #24
	mov	r0, r3
	bl	uart_print
	nop
	ldr	r3, .L59
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L58
	bl	__stack_chk_fail
.L58:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L60:
	.align	2
.L59:
	.word	.LC1
	.size	uart_print_hex, .-uart_print_hex
	.section	.rodata
	.align	2
.LC2:
	.ascii	"\000"
	.text
	.align	2
	.global	uart_putshex
	.syntax unified
	.arm
	.fpu softvfp
	.type	uart_putshex, %function
uart_putshex:
	@ 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, #-12]
	str	r1, [fp, #-8]
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	uart_print_hex
	ldr	r0, .L62
	bl	uart_puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L63:
	.align	2
.L62:
	.word	.LC2
	.size	uart_putshex, .-uart_putshex
	.section	.rodata
	.align	2
.LC3:
	.ascii	"mailbox message buffer: 0x\000"
	.align	2
.LC4:
	.ascii	"mbox_call error\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_board_revision
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_board_revision, %function
get_board_revision:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	ldr	r3, .L69
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L69+4
	bl	uart_print
	sub	r3, fp, #36
	mov	r2, r3
	asr	r3, r2, #31
	mov	r0, r2
	mov	r1, r3
	bl	uart_putshex
	mov	r3, #28
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r3, .L69+8
	str	r3, [fp, #-28]
	mov	r3, #4
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	sub	r3, fp, #36
	mov	r1, r3
	mov	r0, #8
	bl	mbox_call
	str	r0, [fp, #-40]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-48]
	str	r2, [r3]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L68
	ldr	r0, .L69+12
	bl	uart_puts
	nop
.L68:
	nop
	ldr	r3, .L69
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L67
	bl	__stack_chk_fail
.L67:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L70:
	.align	2
.L69:
	.word	.LC5
	.word	.LC3
	.word	65538
	.word	.LC4
	.size	get_board_revision, .-get_board_revision
	.section	.rodata
	.align	2
.LC6:
	.ascii	"run signal handler 8.\000"
	.text
	.align	2
	.global	sighandle8
	.syntax unified
	.arm
	.fpu softvfp
	.type	sighandle8, %function
sighandle8:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L72
	bl	uart_puts
	nop
	pop	{fp, pc}
.L73:
	.align	2
.L72:
	.word	.LC6
	.size	sighandle8, .-sighandle8
	.section	.rodata
	.align	2
.LC7:
	.ascii	"User process test!!\000"
	.align	2
.LC8:
	.ascii	"Pid: \000"
	.align	2
.LC9:
	.ascii	"Input: \000"
	.align	2
.LC10:
	.ascii	"Test Input: \000"
	.align	2
.LC11:
	.ascii	" (length: 0x\000"
	.align	2
.LC12:
	.ascii	")\000"
	.align	2
.LC13:
	.ascii	"Board Revision: 0x\000"
	.align	2
.LC14:
	.ascii	"fork error\000"
	.align	2
.LC15:
	.ascii	"Parent!!! Child Pid: 0x\000"
	.align	2
.LC16:
	.ascii	"Kill process: \000"
	.align	2
.LC17:
	.ascii	"Kill process signal: \000"
	.align	2
.LC18:
	.ascii	"Child!!! Pid: 0x\000"
	.align	2
.LC19:
	.ascii	"Second Child!!! Pid: 0x\000"
	.align	2
.LC20:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	init
	.syntax unified
	.arm
	.fpu softvfp
	.type	init, %function
init:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	ldr	r3, .L86
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L86+4
	bl	uart_puts
	bl	getpid
	str	r0, [fp, #-40]
	ldr	r0, .L86+8
	bl	uart_print
	ldr	r3, [fp, #-40]
	mov	r2, r3
	asr	r3, r2, #31
	mov	r0, r2
	mov	r1, r3
	bl	uart_putshex
	ldr	r0, .L86+12
	bl	uart_print
	sub	r3, fp, #24
	mov	r1, #5
	mov	r0, r3
	bl	uartread
	str	r0, [fp, #-36]
	ldr	r0, .L86+16
	bl	uart_print
	sub	r3, fp, #24
	mov	r0, r3
	bl	uart_print
	ldr	r0, .L86+20
	bl	uart_print
	ldr	r3, [fp, #-36]
	mov	r2, r3
	mov	r3, #0
	mov	r0, r2
	mov	r1, r3
	bl	uart_print_hex
	ldr	r0, .L86+24
	bl	uart_puts
	mov	r3, #0
	str	r3, [fp, #-52]
	sub	r3, fp, #52
	mov	r0, r3
	bl	get_board_revision
	ldr	r0, .L86+28
	bl	uart_print
	ldr	r3, [fp, #-52]
	mov	r2, r3
	mov	r3, #0
	mov	r0, r2
	mov	r1, r3
	bl	uart_putshex
	bl	fork
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmn	r3, #1
	bne	.L75
	ldr	r0, .L86+32
	bl	uart_puts
	mvn	r0, #0
	bl	exit
.L75:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L76
	ldr	r0, .L86+36
	bl	uart_print
	ldr	r3, [fp, #-32]
	mov	r2, r3
	asr	r3, r2, #31
	mov	r0, r2
	mov	r1, r3
	bl	uart_putshex
.L77:
	ldr	r0, .L86+40
	bl	uart_print
	sub	r3, fp, #24
	mov	r0, r3
	bl	uart_gets
	sub	r3, fp, #24
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-28]
	ldr	r0, .L86+44
	bl	uart_print
	sub	r3, fp, #24
	mov	r0, r3
	bl	uart_gets
	sub	r3, fp, #24
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	sigkill
	b	.L77
.L76:
	bl	getpid
	str	r0, [fp, #-40]
	bl	fork
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L78
	ldr	r1, .L86+48
	mov	r0, #8
	bl	signal
.L81:
	ldr	r0, .L86+52
	bl	uart_print
	ldr	r3, [fp, #-40]
	mov	r2, r3
	asr	r3, r2, #31
	mov	r0, r2
	mov	r1, r3
	bl	uart_putshex
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L79
.L80:
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L79:
	ldr	r3, [fp, #-48]
	ldr	r2, .L86+56
	cmp	r3, r2
	ble	.L80
	b	.L81
.L78:
	bl	getpid
	str	r0, [fp, #-40]
.L84:
	ldr	r0, .L86+60
	bl	uart_print
	ldr	r3, [fp, #-40]
	mov	r2, r3
	asr	r3, r2, #31
	mov	r0, r2
	mov	r1, r3
	bl	uart_putshex
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L82
.L83:
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L82:
	ldr	r3, [fp, #-44]
	ldr	r2, .L86+56
	cmp	r3, r2
	ble	.L83
	b	.L84
.L87:
	.align	2
.L86:
	.word	.LC20
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	sighandle8
	.word	.LC18
	.word	9999999
	.word	.LC19
	.size	init, .-init
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
