	.file	"752753.c"
	.intel_syntax noprefix
	.text
	.globl	prom
	.bss
	.align 8
	.type	prom, @object
	.size	prom, 8
prom:
	.zero	8
	.globl	chosen_handle
	.align 8
	.type	chosen_handle, @object
	.size	chosen_handle, 8
chosen_handle:
	.zero	8
	.globl	stdin
	.align 8
	.type	stdin, @object
	.size	stdin, 8
stdin:
	.zero	8
	.globl	stdout
	.align 8
	.type	stdout, @object
	.size	stdout, 8
stdout:
	.zero	8
	.globl	stderr
	.align 8
	.type	stderr, @object
	.size	stderr, 8
stderr:
	.zero	8
	.section	.rodata
.LC0:
	.string	"/chosen"
.LC1:
	.string	"stdout"
.LC2:
	.string	"stdin"
	.text
	.globl	start
	.type	start, @function
start:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	QWORD PTR -16[rbp], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR prom[rip], rax
	lea	rdi, .LC0[rip]
	call	finddevice
	mov	QWORD PTR chosen_handle[rip], rax
	mov	rax, QWORD PTR chosen_handle[rip]
	cmp	rax, -1
	jne	.L2
	call	exit
.L2:
	mov	rax, QWORD PTR chosen_handle[rip]
	mov	ecx, 8
	lea	rdx, stdout[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	getprop
	cmp	eax, 4
	je	.L3
	call	exit
.L3:
	mov	rax, QWORD PTR stdout[rip]
	mov	QWORD PTR stderr[rip], rax
	mov	rax, QWORD PTR chosen_handle[rip]
	mov	ecx, 8
	lea	rdx, stdin[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	getprop
	cmp	eax, 4
	je	.L4
	call	exit
.L4:
	mov	rdx, QWORD PTR -16[rbp]
	mov	ecx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	chrpboot@PLT
.L5:
	call	exit
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	start, .-start
	.section	.rodata
.LC3:
	.string	"write"
	.text
	.globl	write
	.type	write, @function
write:
.LFB1:
	.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 -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	DWORD PTR -68[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC3[rip]
	mov	QWORD PTR -48[rbp], rax
	mov	DWORD PTR -40[rbp], 3
	mov	DWORD PTR -36[rbp], 1
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -68[rbp]
	mov	DWORD PTR -16[rbp], eax
	mov	DWORD PTR -12[rbp], -1
	mov	rdx, QWORD PTR prom[rip]
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	rdx
	mov	eax, DWORD PTR -12[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	write, .-write
	.section	.rodata
.LC4:
	.string	"read"
	.text
	.globl	read
	.type	read, @function
read:
.LFB2:
	.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 -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	DWORD PTR -68[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC4[rip]
	mov	QWORD PTR -48[rbp], rax
	mov	DWORD PTR -40[rbp], 3
	mov	DWORD PTR -36[rbp], 1
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -68[rbp]
	mov	DWORD PTR -16[rbp], eax
	mov	DWORD PTR -12[rbp], -1
	mov	rdx, QWORD PTR prom[rip]
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	rdx
	mov	eax, DWORD PTR -12[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	read, .-read
	.section	.rodata
.LC5:
	.string	"exit"
	.text
	.globl	exit
	.type	exit, @function
exit:
.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, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L13:
	lea	rax, .LC5[rip]
	mov	QWORD PTR -16[rbp], rax
	mov	rdx, QWORD PTR prom[rip]
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	rdx
	jmp	.L13
	.cfi_endproc
.LFE3:
	.size	exit, .-exit
	.section	.rodata
.LC6:
	.string	"enter"
	.text
	.globl	pause
	.type	pause, @function
pause:
.LFB4:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC6[rip]
	mov	QWORD PTR -16[rbp], rax
	mov	rdx, QWORD PTR prom[rip]
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	rdx
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	pause, .-pause
	.section	.rodata
.LC7:
	.string	"finddevice"
	.text
	.globl	finddevice
	.type	finddevice, @function
finddevice:
.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, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC7[rip]
	mov	QWORD PTR -48[rbp], rax
	mov	DWORD PTR -40[rbp], 1
	mov	DWORD PTR -36[rbp], 1
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], -1
	mov	rdx, QWORD PTR prom[rip]
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	finddevice, .-finddevice
	.section	.rodata
.LC8:
	.string	"claim"
	.text
	.globl	claim
	.type	claim, @function
claim:
.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	DWORD PTR -56[rbp], esi
	mov	DWORD PTR -60[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC8[rip]
	mov	QWORD PTR -48[rbp], rax
	mov	DWORD PTR -40[rbp], 3
	mov	DWORD PTR -36[rbp], 1
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -56[rbp]
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -60[rbp]
	mov	DWORD PTR -24[rbp], eax
	mov	rdx, QWORD PTR prom[rip]
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	claim, .-claim
	.section	.rodata
.LC9:
	.string	"getprop"
	.text
	.globl	getprop
	.type	getprop, @function
getprop:
.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, 96
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	QWORD PTR -88[rbp], rdx
	mov	DWORD PTR -92[rbp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC9[rip]
	mov	QWORD PTR -64[rbp], rax
	mov	DWORD PTR -56[rbp], 4
	mov	DWORD PTR -52[rbp], 1
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR -92[rbp]
	mov	DWORD PTR -24[rbp], eax
	mov	DWORD PTR -20[rbp], -1
	mov	rdx, QWORD PTR prom[rip]
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	rdx
	mov	eax, DWORD PTR -20[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	getprop, .-getprop
	.globl	putc
	.type	putc, @function
putc:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -20[rbp]
	mov	BYTE PTR -9[rbp], al
	cmp	DWORD PTR -20[rbp], 10
	jne	.L27
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	mov	edi, 13
	call	putc
.L27:
	lea	rcx, -9[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	write
	cmp	eax, 1
	jne	.L28
	mov	eax, DWORD PTR -20[rbp]
	jmp	.L30
.L28:
	mov	eax, -1
.L30:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L31
	call	__stack_chk_fail@PLT
.L31:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	putc, .-putc
	.globl	putchar
	.type	putchar, @function
putchar:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	rdx, QWORD PTR stdout[rip]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	putc
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	putchar, .-putchar
	.globl	fputs
	.type	fputs, @function
fputs:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	edx, DWORD PTR -4[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	write
	cmp	DWORD PTR -4[rbp], eax
	jne	.L35
	mov	eax, 0
	jmp	.L37
.L35:
	mov	eax, -1
.L37:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	fputs, .-fputs
	.section	.rodata
.LC10:
	.string	"read(stdin) returned -1\r\n"
	.text
	.globl	readchar
	.type	readchar, @function
readchar:
.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, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L42:
	mov	rax, QWORD PTR stdin[rip]
	lea	rcx, -9[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	read
	cmp	eax, -1
	je	.L39
	cmp	eax, 1
	jne	.L42
	movzx	eax, BYTE PTR -9[rbp]
	movsx	eax, al
	jmp	.L43
.L39:
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printk
	mov	eax, -1
.L43:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L44
	call	__stack_chk_fail@PLT
.L44:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	readchar, .-readchar
	.local	line
	.comm	line,256,32
	.local	lineptr
	.comm	lineptr,8,8
	.local	lineleft
	.comm	lineleft,4,4
	.globl	getchar
	.type	getchar, @function
getchar:
.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, 16
	mov	eax, DWORD PTR lineleft[rip]
	test	eax, eax
	jne	.L46
	lea	rax, line[rip]
	mov	QWORD PTR lineptr[rip], rax
.L58:
	call	readchar
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	je	.L47
	cmp	DWORD PTR -4[rbp], 4
	je	.L47
	cmp	DWORD PTR -4[rbp], 13
	je	.L48
	cmp	DWORD PTR -4[rbp], 10
	jne	.L49
.L48:
	mov	rax, QWORD PTR lineptr[rip]
	lea	rdx, 1[rax]
	mov	QWORD PTR lineptr[rip], rdx
	mov	BYTE PTR [rax], 10
	mov	edi, 10
	call	putchar
	jmp	.L47
.L49:
	cmp	DWORD PTR -4[rbp], 127
	je	.L50
	cmp	DWORD PTR -4[rbp], 127
	jg	.L51
	cmp	DWORD PTR -4[rbp], 8
	je	.L50
	cmp	DWORD PTR -4[rbp], 21
	je	.L55
	jmp	.L51
.L50:
	mov	rax, QWORD PTR lineptr[rip]
	lea	rdx, line[rip]
	cmp	rax, rdx
	jbe	.L61
	mov	edi, 8
	call	putchar
	mov	edi, 32
	call	putchar
	mov	edi, 8
	call	putchar
	mov	rax, QWORD PTR lineptr[rip]
	sub	rax, 1
	mov	QWORD PTR lineptr[rip], rax
	jmp	.L61
.L56:
	mov	edi, 8
	call	putchar
	mov	edi, 32
	call	putchar
	mov	edi, 8
	call	putchar
	mov	rax, QWORD PTR lineptr[rip]
	sub	rax, 1
	mov	QWORD PTR lineptr[rip], rax
.L55:
	mov	rax, QWORD PTR lineptr[rip]
	lea	rdx, line[rip]
	cmp	rax, rdx
	ja	.L56
	jmp	.L54
.L51:
	mov	rax, QWORD PTR lineptr[rip]
	lea	rdx, line[rip+255]
	cmp	rax, rdx
	jb	.L57
	mov	edi, 7
	call	putchar
	jmp	.L58
.L57:
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	putchar
	mov	rax, QWORD PTR lineptr[rip]
	lea	rdx, 1[rax]
	mov	QWORD PTR lineptr[rip], rdx
	mov	edx, DWORD PTR -4[rbp]
	mov	BYTE PTR [rax], dl
	jmp	.L58
.L61:
	nop
.L54:
	jmp	.L58
.L47:
	mov	rax, QWORD PTR lineptr[rip]
	lea	rdx, line[rip]
	sub	rax, rdx
	mov	DWORD PTR lineleft[rip], eax
	lea	rax, line[rip]
	mov	QWORD PTR lineptr[rip], rax
.L46:
	mov	eax, DWORD PTR lineleft[rip]
	test	eax, eax
	jne	.L59
	mov	eax, -1
	jmp	.L60
.L59:
	mov	eax, DWORD PTR lineleft[rip]
	sub	eax, 1
	mov	DWORD PTR lineleft[rip], eax
	mov	rax, QWORD PTR lineptr[rip]
	lea	rdx, 1[rax]
	mov	QWORD PTR lineptr[rip], rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
.L60:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	getchar, .-getchar
	.local	sprint_buf
	.comm	sprint_buf,1024,32
	.globl	printk
	.type	printk, @function
printk:
.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, 240
	mov	QWORD PTR -232[rbp], rdi
	mov	QWORD PTR -168[rbp], rsi
	mov	QWORD PTR -160[rbp], rdx
	mov	QWORD PTR -152[rbp], rcx
	mov	QWORD PTR -144[rbp], r8
	mov	QWORD PTR -136[rbp], r9
	test	al, al
	je	.L63
	movaps	XMMWORD PTR -128[rbp], xmm0
	movaps	XMMWORD PTR -112[rbp], xmm1
	movaps	XMMWORD PTR -96[rbp], xmm2
	movaps	XMMWORD PTR -80[rbp], xmm3
	movaps	XMMWORD PTR -64[rbp], xmm4
	movaps	XMMWORD PTR -48[rbp], xmm5
	movaps	XMMWORD PTR -32[rbp], xmm6
	movaps	XMMWORD PTR -16[rbp], xmm7
.L63:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -208[rbp], 8
	mov	DWORD PTR -204[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -200[rbp], rax
	lea	rax, -176[rbp]
	mov	QWORD PTR -192[rbp], rax
	lea	rdx, -208[rbp]
	mov	rax, QWORD PTR -232[rbp]
	mov	rsi, rax
	lea	rdi, sprint_buf[rip]
	call	vsprintf@PLT
	mov	DWORD PTR -212[rbp], eax
	mov	rax, QWORD PTR stdout[rip]
	mov	edx, DWORD PTR -212[rbp]
	lea	rsi, sprint_buf[rip]
	mov	rdi, rax
	call	write
	nop
	mov	rax, QWORD PTR -184[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L64
	call	__stack_chk_fail@PLT
.L64:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	printk, .-printk
	.globl	printf
	.type	printf, @function
printf:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 240
	mov	QWORD PTR -232[rbp], rdi
	mov	QWORD PTR -168[rbp], rsi
	mov	QWORD PTR -160[rbp], rdx
	mov	QWORD PTR -152[rbp], rcx
	mov	QWORD PTR -144[rbp], r8
	mov	QWORD PTR -136[rbp], r9
	test	al, al
	je	.L66
	movaps	XMMWORD PTR -128[rbp], xmm0
	movaps	XMMWORD PTR -112[rbp], xmm1
	movaps	XMMWORD PTR -96[rbp], xmm2
	movaps	XMMWORD PTR -80[rbp], xmm3
	movaps	XMMWORD PTR -64[rbp], xmm4
	movaps	XMMWORD PTR -48[rbp], xmm5
	movaps	XMMWORD PTR -32[rbp], xmm6
	movaps	XMMWORD PTR -16[rbp], xmm7
.L66:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -208[rbp], 8
	mov	DWORD PTR -204[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -200[rbp], rax
	lea	rax, -176[rbp]
	mov	QWORD PTR -192[rbp], rax
	lea	rdx, -208[rbp]
	mov	rax, QWORD PTR -232[rbp]
	mov	rsi, rax
	lea	rdi, sprint_buf[rip]
	call	vsprintf@PLT
	mov	DWORD PTR -212[rbp], eax
	mov	rax, QWORD PTR stdout[rip]
	mov	edx, DWORD PTR -212[rbp]
	lea	rsi, sprint_buf[rip]
	mov	rdi, rax
	call	write
	mov	eax, DWORD PTR -212[rbp]
	mov	rcx, QWORD PTR -184[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L68
	call	__stack_chk_fail@PLT
.L68:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	printf, .-printf
	.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	"752753.c"
	.text
	.comm	prom,4,4
	.comm	chosen_handle,4,4
	.comm	stdin,4,4
	.comm	stdout,4,4
	.comm	stderr,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/chosen\000"
	.align	2
.LC1:
	.ascii	"stdout\000"
	.align	2
.LC2:
	.ascii	"stdin\000"
	.text
	.align	2
	.global	start
	.syntax unified
	.arm
	.fpu softvfp
	.type	start, %function
start:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r2, .L6
	str	r3, [r2]
	ldr	r0, .L6+4
	bl	finddevice
	mov	r3, r0
	ldr	r2, .L6+8
	str	r3, [r2]
	ldr	r3, .L6+8
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L2
	bl	exit
.L2:
	ldr	r3, .L6+8
	ldr	r0, [r3]
	mov	r3, #4
	ldr	r2, .L6+12
	ldr	r1, .L6+16
	bl	getprop
	mov	r3, r0
	cmp	r3, #4
	beq	.L3
	bl	exit
.L3:
	ldr	r3, .L6+12
	ldr	r3, [r3]
	ldr	r2, .L6+20
	str	r3, [r2]
	ldr	r3, .L6+8
	ldr	r0, [r3]
	mov	r3, #4
	ldr	r2, .L6+24
	ldr	r1, .L6+28
	bl	getprop
	mov	r3, r0
	cmp	r3, #4
	beq	.L4
	bl	exit
.L4:
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	chrpboot
.L5:
	bl	exit
	b	.L5
.L7:
	.align	2
.L6:
	.word	prom
	.word	.LC0
	.word	chosen_handle
	.word	stdout
	.word	.LC1
	.word	stderr
	.word	stdin
	.word	.LC2
	.size	start, .-start
	.section	.rodata
	.align	2
.LC3:
	.ascii	"write\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	write
	.syntax unified
	.arm
	.fpu softvfp
	.type	write, %function
write:
	@ 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, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L11+4
	str	r3, [fp, #-36]
	mov	r3, #3
	str	r3, [fp, #-32]
	mov	r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-16]
	mvn	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, .L11+8
	ldr	r3, [r3]
	sub	r2, fp, #36
	mov	r0, r2
	blx	r3
	ldr	r3, [fp, #-12]
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC4
	.word	.LC3
	.word	prom
	.size	write, .-write
	.section	.rodata
	.align	2
.LC5:
	.ascii	"read\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	read
	.syntax unified
	.arm
	.fpu softvfp
	.type	read, %function
read:
	@ 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, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L16+4
	str	r3, [fp, #-36]
	mov	r3, #3
	str	r3, [fp, #-32]
	mov	r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-16]
	mvn	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, .L16+8
	ldr	r3, [r3]
	sub	r2, fp, #36
	mov	r0, r2
	blx	r3
	ldr	r3, [fp, #-12]
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC6
	.word	.LC5
	.word	prom
	.size	read, .-read
	.section	.rodata
	.align	2
.LC7:
	.ascii	"exit\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.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
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L19:
	ldr	r3, .L21+4
	str	r3, [fp, #-12]
	ldr	r3, .L21+8
	ldr	r3, [r3]
	sub	r2, fp, #12
	mov	r0, r2
	blx	r3
	b	.L19
.L22:
	.align	2
.L21:
	.word	.LC8
	.word	.LC7
	.word	prom
	.size	exit, .-exit
	.section	.rodata
	.align	2
.LC9:
	.ascii	"enter\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	pause
	.syntax unified
	.arm
	.fpu softvfp
	.type	pause, %function
pause:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L25+4
	str	r3, [fp, #-12]
	ldr	r3, .L25+8
	ldr	r3, [r3]
	sub	r2, fp, #12
	mov	r0, r2
	blx	r3
	nop
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC10
	.word	.LC9
	.word	prom
	.size	pause, .-pause
	.section	.rodata
	.align	2
.LC11:
	.ascii	"finddevice\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	finddevice
	.syntax unified
	.arm
	.fpu softvfp
	.type	finddevice, %function
finddevice:
	@ 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, #-32]
	ldr	r3, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L30+4
	str	r3, [fp, #-28]
	mov	r3, #1
	str	r3, [fp, #-24]
	mov	r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-16]
	mvn	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, .L30+8
	ldr	r3, [r3]
	sub	r2, fp, #28
	mov	r0, r2
	blx	r3
	ldr	r3, [fp, #-12]
	ldr	r2, .L30
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L29
	bl	__stack_chk_fail
.L29:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC12
	.word	.LC11
	.word	prom
	.size	finddevice, .-finddevice
	.section	.rodata
	.align	2
.LC13:
	.ascii	"claim\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	claim
	.syntax unified
	.arm
	.fpu softvfp
	.type	claim, %function
claim:
	@ 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, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	ldr	r3, .L35
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L35+4
	str	r3, [fp, #-36]
	mov	r3, #3
	str	r3, [fp, #-32]
	mov	r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-16]
	ldr	r3, .L35+8
	ldr	r3, [r3]
	sub	r2, fp, #36
	mov	r0, r2
	blx	r3
	ldr	r3, [fp, #-12]
	ldr	r2, .L35
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L34
	bl	__stack_chk_fail
.L34:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	.LC14
	.word	.LC13
	.word	prom
	.size	claim, .-claim
	.section	.rodata
	.align	2
.LC15:
	.ascii	"getprop\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getprop
	.syntax unified
	.arm
	.fpu softvfp
	.type	getprop, %function
getprop:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	str	r3, [fp, #-60]
	ldr	r3, .L40
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L40+4
	str	r3, [fp, #-40]
	mov	r3, #4
	str	r3, [fp, #-36]
	mov	r3, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-60]
	str	r3, [fp, #-16]
	mvn	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, .L40+8
	ldr	r3, [r3]
	sub	r2, fp, #40
	mov	r0, r2
	blx	r3
	ldr	r3, [fp, #-12]
	ldr	r2, .L40
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L39
	bl	__stack_chk_fail
.L39:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	.LC16
	.word	.LC15
	.word	prom
	.size	getprop, .-getprop
	.section	.rodata
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	putc
	.syntax unified
	.arm
	.fpu softvfp
	.type	putc, %function
putc:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, .L48
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-16]
	and	r3, r3, #255
	strb	r3, [fp, #-9]
	ldr	r3, [fp, #-16]
	cmp	r3, #10
	bne	.L43
	ldr	r1, [fp, #-20]
	mov	r0, #13
	bl	putc
.L43:
	sub	r3, fp, #9
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	write
	mov	r3, r0
	cmp	r3, #1
	bne	.L44
	ldr	r3, [fp, #-16]
	b	.L46
.L44:
	mvn	r3, #0
.L46:
	ldr	r2, .L48
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L47
	bl	__stack_chk_fail
.L47:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L49:
	.align	2
.L48:
	.word	.LC17
	.size	putc, .-putc
	.align	2
	.global	putchar
	.syntax unified
	.arm
	.fpu softvfp
	.type	putchar, %function
putchar:
	@ 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	r3, .L52
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	putc
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L53:
	.align	2
.L52:
	.word	stdout
	.size	putchar, .-putchar
	.align	2
	.global	fputs
	.syntax unified
	.arm
	.fpu softvfp
	.type	fputs, %function
fputs:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	strlen
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	write
	mov	r2, r0
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	bne	.L55
	mov	r3, #0
	b	.L57
.L55:
	mvn	r3, #0
.L57:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	fputs, .-fputs
	.section	.rodata
	.align	2
.LC18:
	.ascii	"read(stdin) returned -1\015\012\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	readchar
	.syntax unified
	.arm
	.fpu softvfp
	.type	readchar, %function
readchar:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L65
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L62:
	ldr	r3, .L65+4
	ldr	r3, [r3]
	sub	r1, fp, #9
	mov	r2, #1
	mov	r0, r3
	bl	read
	mov	r3, r0
	cmn	r3, #1
	beq	.L59
	cmp	r3, #1
	bne	.L62
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	b	.L63
.L59:
	ldr	r0, .L65+8
	bl	printk
	mvn	r3, #0
.L63:
	ldr	r2, .L65
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L64
	bl	__stack_chk_fail
.L64:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L66:
	.align	2
.L65:
	.word	.LC19
	.word	stdin
	.word	.LC18
	.size	readchar, .-readchar
	.local	line
	.comm	line,256,4
	.local	lineptr
	.comm	lineptr,4,4
	.local	lineleft
	.comm	lineleft,4,4
	.align	2
	.global	getchar
	.syntax unified
	.arm
	.fpu softvfp
	.type	getchar, %function
getchar:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L84
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L68
	ldr	r3, .L84+4
	ldr	r2, .L84+8
	str	r2, [r3]
.L80:
	bl	readchar
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	beq	.L69
	ldr	r3, [fp, #-8]
	cmp	r3, #4
	beq	.L69
	ldr	r3, [fp, #-8]
	cmp	r3, #13
	beq	.L70
	ldr	r3, [fp, #-8]
	cmp	r3, #10
	bne	.L71
.L70:
	ldr	r3, .L84+4
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L84+4
	str	r2, [r1]
	mov	r2, #10
	strb	r2, [r3]
	mov	r0, #10
	bl	putchar
	b	.L69
.L71:
	ldr	r3, [fp, #-8]
	cmp	r3, #127
	beq	.L72
	ldr	r3, [fp, #-8]
	cmp	r3, #127
	bgt	.L73
	ldr	r3, [fp, #-8]
	cmp	r3, #8
	beq	.L72
	ldr	r3, [fp, #-8]
	cmp	r3, #21
	beq	.L77
	b	.L73
.L72:
	ldr	r3, .L84+4
	ldr	r3, [r3]
	ldr	r2, .L84+8
	cmp	r3, r2
	bls	.L83
	mov	r0, #8
	bl	putchar
	mov	r0, #32
	bl	putchar
	mov	r0, #8
	bl	putchar
	ldr	r3, .L84+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L84+4
	str	r3, [r2]
	b	.L83
.L78:
	mov	r0, #8
	bl	putchar
	mov	r0, #32
	bl	putchar
	mov	r0, #8
	bl	putchar
	ldr	r3, .L84+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L84+4
	str	r3, [r2]
.L77:
	ldr	r3, .L84+4
	ldr	r3, [r3]
	ldr	r2, .L84+8
	cmp	r3, r2
	bhi	.L78
	b	.L76
.L73:
	ldr	r3, .L84+4
	ldr	r3, [r3]
	ldr	r2, .L84+12
	cmp	r3, r2
	bcc	.L79
	mov	r0, #7
	bl	putchar
	b	.L80
.L79:
	ldr	r0, [fp, #-8]
	bl	putchar
	ldr	r3, .L84+4
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L84+4
	str	r2, [r1]
	ldr	r2, [fp, #-8]
	and	r2, r2, #255
	strb	r2, [r3]
	b	.L80
.L83:
	nop
.L76:
	b	.L80
.L69:
	ldr	r3, .L84+4
	ldr	r3, [r3]
	ldr	r2, .L84+8
	sub	r3, r3, r2
	ldr	r2, .L84
	str	r3, [r2]
	ldr	r3, .L84+4
	ldr	r2, .L84+8
	str	r2, [r3]
.L68:
	ldr	r3, .L84
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L81
	mvn	r3, #0
	b	.L82
.L81:
	ldr	r3, .L84
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L84
	str	r3, [r2]
	ldr	r3, .L84+4
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L84+4
	str	r2, [r1]
	ldrb	r3, [r3]	@ zero_extendqisi2
.L82:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L85:
	.align	2
.L84:
	.word	lineleft
	.word	lineptr
	.word	line
	.word	line+255
	.size	getchar, .-getchar
	.local	sprint_buf
	.comm	sprint_buf,1024,4
	.section	.rodata
	.align	2
.LC20:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	printk
	.syntax unified
	.arm
	.fpu softvfp
	.type	printk, %function
printk:
	@ args = 4, pretend = 16, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r0, r1, r2, r3}
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, [fp, #4]
	str	r3, [fp, #-24]
	ldr	r3, .L88
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	add	r3, fp, #8
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-24]
	ldr	r0, .L88+4
	bl	vsprintf
	str	r0, [fp, #-12]
	ldr	r3, .L88+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	ldr	r1, .L88+4
	mov	r0, r3
	bl	write
	nop
	ldr	r3, .L88
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L87
	bl	__stack_chk_fail
.L87:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L89:
	.align	2
.L88:
	.word	.LC20
	.word	sprint_buf
	.word	stdout
	.size	printk, .-printk
	.section	.rodata
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	printf
	.syntax unified
	.arm
	.fpu softvfp
	.type	printf, %function
printf:
	@ args = 4, pretend = 16, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r0, r1, r2, r3}
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, [fp, #4]
	str	r3, [fp, #-24]
	ldr	r3, .L93
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	add	r3, fp, #8
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-24]
	ldr	r0, .L93+4
	bl	vsprintf
	str	r0, [fp, #-12]
	ldr	r3, .L93+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	ldr	r1, .L93+4
	mov	r0, r3
	bl	write
	ldr	r3, [fp, #-12]
	ldr	r2, .L93
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L92
	bl	__stack_chk_fail
.L92:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L94:
	.align	2
.L93:
	.word	.LC21
	.word	sprint_buf
	.word	stdout
	.size	printf, .-printf
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
