	.file	"453662.c"
	.intel_syntax noprefix
	.text
	.data
	.align 32
	.type	copyright, @object
	.size	copyright, 99
copyright:
	.string	"@(#) Copyright (c) 1991, 1993\n\tThe Regents of the University of California.  All rights reserved.\n"
	.align 32
	.type	sccsid, @object
	.size	sccsid, 37
sccsid:
	.string	"@(#)mkinit.c\t8.2 (Berkeley) 05/04/95"
	.globl	writer
	.align 32
	.type	writer, @object
	.size	writer, 59
writer:
	.string	"/*\n * This file was generated by the mkinit program.\n */\n\n"
	.globl	init
	.align 32
	.type	init, @object
	.size	init, 32
init:
	.string	"/*\n * Initialization code.\n */\n"
	.globl	reset
	.align 32
	.type	reset, @object
	.size	reset, 148
reset:
	.string	"/*\n * This routine is called when an error or an interrupt occurs in an\n * interactive shell and control is returned to the main command loop.\n */\n"
	.globl	shellproc
	.align 32
	.type	shellproc, @object
	.size	shellproc, 84
shellproc:
	.string	"/*\n * This routine is called to initialize the shell to run a shell procedure.\n */\n"
	.globl	event
	.section	.rodata
.LC0:
	.string	"INIT"
.LC1:
	.string	"init"
.LC2:
	.string	"RESET"
.LC3:
	.string	"reset"
.LC4:
	.string	"SHELLPROC"
.LC5:
	.string	"initshellproc"
	.section	.data.rel.local,"aw"
	.align 32
	.type	event, @object
	.size	event, 224
event:
	.quad	.LC0
	.quad	.LC1
	.quad	init
	.zero	32
	.quad	.LC2
	.quad	.LC3
	.quad	reset
	.zero	32
	.quad	.LC4
	.quad	.LC5
	.quad	shellproc
	.zero	32
	.quad	0
	.quad	0
	.zero	40
	.globl	curfile
	.bss
	.align 8
	.type	curfile, @object
	.size	curfile, 8
curfile:
	.zero	8
	.globl	linno
	.align 4
	.type	linno, @object
	.size	linno, 4
linno:
	.zero	4
	.globl	header_files
	.align 32
	.type	header_files, @object
	.size	header_files, 1600
header_files:
	.zero	1600
	.globl	defines
	.align 32
	.type	defines, @object
	.size	defines, 32
defines:
	.zero	32
	.globl	decls
	.align 32
	.type	decls, @object
	.size	decls, 32
decls:
	.zero	32
	.globl	amiddecls
	.align 4
	.type	amiddecls, @object
	.size	amiddecls, 4
amiddecls:
	.zero	4
	.section	.rodata
	.align 8
.LC6:
	.string	"Usage:  mkinit command file..."
.LC7:
	.string	"\"shell.h\""
.LC8:
	.string	"\"mystring.h\""
.LC9:
	.string	"init.c"
.LC10:
	.string	"init.c.new"
.LC11:
	.string	"init.o"
.LC12:
	.string	"-c"
.LC13:
	.string	"sh"
.LC14:
	.string	"/bin/sh"
.LC15:
	.string	"Can't exec shell"
	.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	cmp	DWORD PTR -20[rbp], 1
	jg	.L2
	lea	rdi, .LC6[rip]
	call	error
.L2:
	lea	rax, .LC7[rip]
	mov	QWORD PTR header_files[rip], rax
	lea	rax, .LC8[rip]
	mov	QWORD PTR header_files[rip+8], rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 16
	mov	QWORD PTR -8[rbp], rax
	jmp	.L3
.L4:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	readfile
	add	QWORD PTR -8[rbp], 8
.L3:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L4
	call	output
	call	file_changed
	test	eax, eax
	je	.L5
	lea	rdi, .LC9[rip]
	call	unlink@PLT
	lea	rsi, .LC9[rip]
	lea	rdi, .LC10[rip]
	call	link@PLT
	lea	rdi, .LC10[rip]
	call	unlink@PLT
	jmp	.L6
.L5:
	lea	rdi, .LC10[rip]
	call	unlink@PLT
	lea	rdi, .LC11[rip]
	call	touch
	test	eax, eax
	je	.L6
	mov	edi, 0
	call	exit@PLT
.L6:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	puts@PLT
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	r8d, 0
	mov	rcx, rax
	lea	rdx, .LC12[rip]
	lea	rsi, .LC13[rip]
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	execl@PLT
	lea	rdi, .LC15[rip]
	call	error
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC16:
	.string	"r"
.LC17:
	.string	"INCLUDE"
.LC18:
	.string	"MKINIT"
	.text
	.globl	readfile
	.type	readfile, @function
readfile:
.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, 1072
	mov	QWORD PTR -1064[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -1064[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	ckfopen
	mov	QWORD PTR -1048[rbp], rax
	mov	rax, QWORD PTR -1064[rbp]
	mov	QWORD PTR curfile[rip], rax
	mov	DWORD PTR linno[rip], 0
	mov	DWORD PTR amiddecls[rip], 0
	jmp	.L8
.L15:
	mov	eax, DWORD PTR linno[rip]
	add	eax, 1
	mov	DWORD PTR linno[rip], eax
	lea	rax, event[rip]
	mov	QWORD PTR -1056[rbp], rax
	jmp	.L9
.L12:
	movzx	edx, BYTE PTR -1040[rbp]
	mov	rax, QWORD PTR -1056[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jne	.L10
	mov	rax, QWORD PTR -1056[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, -1040[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	match
	test	eax, eax
	je	.L10
	mov	rdx, QWORD PTR -1064[rbp]
	mov	rcx, QWORD PTR -1048[rbp]
	mov	rax, QWORD PTR -1056[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	doevent
	jmp	.L11
.L10:
	add	QWORD PTR -1056[rbp], 56
.L9:
	mov	rax, QWORD PTR -1056[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L12
.L11:
	movzx	eax, BYTE PTR -1040[rbp]
	cmp	al, 73
	jne	.L13
	lea	rax, -1040[rbp]
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	call	match
	test	eax, eax
	je	.L13
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	doinclude
.L13:
	movzx	eax, BYTE PTR -1040[rbp]
	cmp	al, 77
	jne	.L14
	lea	rax, -1040[rbp]
	mov	rsi, rax
	lea	rdi, .LC18[rip]
	call	match
	test	eax, eax
	je	.L14
	mov	rdx, QWORD PTR -1048[rbp]
	lea	rax, -1040[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	dodecl
.L14:
	movzx	eax, BYTE PTR -1040[rbp]
	cmp	al, 35
	jne	.L8
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	gooddefine
	test	eax, eax
	je	.L8
	lea	rax, -1040[rbp]
	lea	rsi, defines[rip]
	mov	rdi, rax
	call	addstr
.L8:
	mov	rdx, QWORD PTR -1048[rbp]
	lea	rax, -1040[rbp]
	mov	esi, 1024
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L15
	mov	rax, QWORD PTR -1048[rbp]
	mov	rdi, rax
	call	fclose@PLT
	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
.LFE7:
	.size	readfile, .-readfile
	.globl	match
	.type	match, @function
match:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	r12, QWORD PTR -24[rbp]
	mov	rbx, QWORD PTR -32[rbp]
	jmp	.L18
.L20:
	mov	rax, r12
	lea	r12, 1[rax]
	movzx	edx, BYTE PTR [rax]
	mov	rax, rbx
	lea	rbx, 1[rax]
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	je	.L18
	mov	eax, 0
	jmp	.L19
.L18:
	movzx	eax, BYTE PTR [r12]
	test	al, al
	jne	.L20
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 123
	je	.L21
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 32
	je	.L21
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 9
	je	.L21
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 10
	je	.L21
	mov	eax, 0
	jmp	.L19
.L21:
	mov	eax, 1
.L19:
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	match, .-match
	.section	.rodata
.LC19:
	.string	"#define"
	.text
	.globl	gooddefine
	.type	gooddefine, @function
gooddefine:
.LFB9:
	.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, 8
	.cfi_offset 3, -24
	mov	QWORD PTR -16[rbp], rdi
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC19[rip]
	call	match
	test	eax, eax
	jne	.L23
	mov	eax, 0
	jmp	.L24
.L23:
	mov	rax, QWORD PTR -16[rbp]
	lea	rbx, 7[rax]
	jmp	.L25
.L26:
	add	rbx, 1
.L25:
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 32
	je	.L26
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 9
	je	.L26
	jmp	.L27
.L30:
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 40
	jne	.L28
	mov	eax, 0
	jmp	.L24
.L28:
	add	rbx, 1
.L27:
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 32
	je	.L31
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 9
	jne	.L30
	jmp	.L31
.L33:
	add	rbx, 1
.L31:
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 10
	je	.L32
	movzx	eax, BYTE PTR [rbx]
	test	al, al
	jne	.L33
.L32:
	lea	rax, -1[rbx]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 92
	jne	.L34
	mov	eax, 0
	jmp	.L24
.L34:
	mov	eax, 1
.L24:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	gooddefine, .-gooddefine
	.section	.rodata
.LC20:
	.string	"\n      /* from %s: */\n"
.LC21:
	.string	"      {\n"
.LC22:
	.string	"Unexpected EOF"
.LC23:
	.string	"}\n"
.LC24:
	.string	"      }\n"
	.text
	.globl	doevent
	.type	doevent, @function
doevent:
.LFB10:
	.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, 1080
	.cfi_offset 3, -24
	mov	rbx, rdi
	mov	QWORD PTR -1080[rbp], rsi
	mov	QWORD PTR -1088[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR -1088[rbp]
	lea	rax, -1056[rbp]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rdx, 24[rbx]
	lea	rax, -1056[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	addstr
	lea	rax, 24[rbx]
	mov	rsi, rax
	lea	rdi, .LC21[rip]
	call	addstr
.L49:
	mov	eax, DWORD PTR linno[rip]
	add	eax, 1
	mov	DWORD PTR linno[rip], eax
	mov	rdx, QWORD PTR -1080[rbp]
	lea	rax, -1056[rbp]
	mov	esi, 1024
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L36
	lea	rdi, .LC22[rip]
	call	error
.L36:
	lea	rax, -1056[rbp]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L52
	mov	DWORD PTR -1068[rbp], 6
	lea	rax, -1056[rbp]
	mov	QWORD PTR -1064[rbp], rax
	jmp	.L39
.L40:
	add	DWORD PTR -1068[rbp], 8
	add	QWORD PTR -1064[rbp], 1
.L39:
	mov	rax, QWORD PTR -1064[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 9
	je	.L40
	jmp	.L41
.L42:
	add	DWORD PTR -1068[rbp], 1
	add	QWORD PTR -1064[rbp], 1
.L41:
	mov	rax, QWORD PTR -1064[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L42
	mov	rax, QWORD PTR -1064[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	je	.L43
	mov	rax, QWORD PTR -1064[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 35
	jne	.L45
.L43:
	mov	DWORD PTR -1068[rbp], 0
	jmp	.L45
.L46:
	lea	rax, 24[rbx]
	mov	rsi, rax
	mov	edi, 9
	call	addchar
	sub	DWORD PTR -1068[rbp], 8
.L45:
	cmp	DWORD PTR -1068[rbp], 7
	jg	.L46
	jmp	.L47
.L48:
	lea	rax, 24[rbx]
	mov	rsi, rax
	mov	edi, 32
	call	addchar
	sub	DWORD PTR -1068[rbp], 1
.L47:
	cmp	DWORD PTR -1068[rbp], 0
	jg	.L48
	lea	rdx, 24[rbx]
	mov	rax, QWORD PTR -1064[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	addstr
	jmp	.L49
.L52:
	nop
	lea	rax, 24[rbx]
	mov	rsi, rax
	lea	rdi, .LC24[rip]
	call	addstr
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L50
	call	__stack_chk_fail@PLT
.L50:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	doevent, .-doevent
	.section	.rodata
.LC25:
	.string	"Expecting '\"' or '<'"
.LC26:
	.string	"Missing terminator"
	.text
	.globl	doinclude
	.type	doinclude, @function
doinclude:
.LFB11:
	.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 -40[rbp], rdi
	mov	rbx, QWORD PTR -40[rbp]
	jmp	.L54
.L56:
	add	rbx, 1
.L54:
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 34
	je	.L55
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 60
	je	.L55
	movzx	eax, BYTE PTR [rbx]
	test	al, al
	jne	.L56
.L55:
	movzx	eax, BYTE PTR [rbx]
	test	al, al
	jne	.L57
	lea	rdi, .LC25[rip]
	call	error
.L57:
	mov	QWORD PTR -24[rbp], rbx
	jmp	.L58
.L60:
	add	rbx, 1
.L58:
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 32
	je	.L59
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 9
	je	.L59
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 10
	jne	.L60
.L59:
	lea	rax, -1[rbx]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 34
	je	.L61
	lea	rax, -1[rbx]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 62
	je	.L61
	lea	rdi, .LC26[rip]
	call	error
.L61:
	mov	BYTE PTR [rbx], 0
	lea	rbx, header_files[rip]
	jmp	.L62
.L64:
	add	rbx, 8
.L62:
	mov	rax, QWORD PTR [rbx]
	test	rax, rax
	je	.L63
	mov	rax, QWORD PTR [rbx]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L64
.L63:
	mov	rax, QWORD PTR [rbx]
	test	rax, rax
	jne	.L66
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	savestr
	mov	QWORD PTR [rbx], rax
.L66:
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	doinclude, .-doinclude
	.section	.rodata
.LC27:
	.string	"MKINIT\n"
	.align 8
.LC28:
	.string	"Unterminated structure declaration"
.LC29:
	.string	"extern"
	.text
	.globl	dodecl
	.type	dodecl, @function
dodecl:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 1056
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	QWORD PTR -1064[rbp], rdi
	mov	QWORD PTR -1072[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -1064[rbp]
	lea	rsi, .LC27[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L68
	lea	rsi, decls[rip]
	mov	edi, 10
	call	addchar
.L70:
	mov	eax, DWORD PTR linno[rip]
	add	eax, 1
	mov	DWORD PTR linno[rip], eax
	mov	rdx, QWORD PTR -1072[rbp]
	lea	rax, -1056[rbp]
	mov	esi, 1024
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L69
	lea	rdi, .LC28[rip]
	call	error
.L69:
	lea	rax, -1056[rbp]
	lea	rsi, decls[rip]
	mov	rdi, rax
	call	addstr
	movzx	eax, BYTE PTR -1056[rbp]
	cmp	al, 125
	jne	.L70
	mov	DWORD PTR amiddecls[rip], 0
	jmp	.L85
.L68:
	mov	eax, DWORD PTR amiddecls[rip]
	test	eax, eax
	jne	.L72
	lea	rsi, decls[rip]
	mov	edi, 10
	call	addchar
.L72:
	mov	r12d, 0
	mov	rax, QWORD PTR -1064[rbp]
	lea	rbx, 6[rax]
	jmp	.L73
.L75:
	add	rbx, 1
.L73:
	movzx	eax, BYTE PTR [rbx]
	test	al, al
	je	.L74
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 61
	je	.L74
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 47
	jne	.L75
.L74:
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 61
	jne	.L76
	mov	r12, rbx
	jmp	.L77
.L79:
	add	r12, 1
.L77:
	movzx	eax, BYTE PTR [r12]
	test	al, al
	je	.L78
	movzx	eax, BYTE PTR [r12]
	cmp	al, 59
	jne	.L79
.L78:
	movzx	eax, BYTE PTR [r12]
	test	al, al
	jne	.L81
	mov	r12d, 0
	jmp	.L76
.L82:
	sub	rbx, 1
.L81:
	lea	rax, -1[rbx]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L82
	mov	BYTE PTR [rbx], 0
.L76:
	lea	rsi, decls[rip]
	lea	rdi, .LC29[rip]
	call	addstr
	mov	rax, QWORD PTR -1064[rbp]
	add	rax, 6
	lea	rsi, decls[rip]
	mov	rdi, rax
	call	addstr
	test	r12, r12
	je	.L83
	lea	rsi, decls[rip]
	mov	rdi, r12
	call	addstr
.L83:
	mov	DWORD PTR amiddecls[rip], 1
.L85:
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L84
	call	__stack_chk_fail@PLT
.L84:
	add	rsp, 1056
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	dodecl, .-dodecl
	.section	.rodata
.LC30:
	.string	"w"
.LC31:
	.string	"#include %s\n"
.LC32:
	.string	"\n\n\n"
.LC33:
	.string	"\n\n"
.LC34:
	.string	"\nvoid\n%s() {\n"
	.text
	.globl	output
	.type	output, @function
output:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	lea	rsi, .LC30[rip]
	lea	rdi, .LC10[rip]
	call	ckfopen
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, writer[rip]
	call	fputs@PLT
	lea	rax, header_files[rip]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L87
.L88:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC31[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	QWORD PTR -24[rbp], 8
.L87:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L88
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 3
	mov	esi, 1
	lea	rdi, .LC32[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, defines[rip]
	call	writetext
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC33[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, decls[rip]
	call	writetext
	lea	rax, event[rip]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L89
.L90:
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 3
	mov	esi, 1
	lea	rdi, .LC32[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC34[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 24[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	writetext
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC23[rip]
	call	fwrite@PLT
	add	QWORD PTR -16[rbp], 56
.L89:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L90
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	output, .-output
	.globl	file_changed
	.type	file_changed, @function
file_changed:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	push	rbx
	sub	rsp, 8
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	lea	rsi, .LC16[rip]
	lea	rdi, .LC9[rip]
	call	fopen@PLT
	mov	r13, rax
	test	r13, r13
	je	.L92
	lea	rsi, .LC16[rip]
	lea	rdi, .LC10[rip]
	call	fopen@PLT
	mov	r12, rax
	test	r12, r12
	jne	.L95
.L92:
	mov	eax, 1
	jmp	.L94
.L96:
	cmp	ebx, -1
	jne	.L95
	mov	eax, 0
	jmp	.L94
.L95:
	mov	rdi, r13
	call	getc@PLT
	mov	ebx, eax
	mov	rdi, r12
	call	getc@PLT
	cmp	ebx, eax
	je	.L96
	mov	eax, 1
.L94:
	add	rsp, 8
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	file_changed, .-file_changed
	.globl	touch
	.type	touch, @function
touch:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jns	.L98
	mov	eax, 0
	jmp	.L101
.L98:
	lea	rcx, -13[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	cmp	rax, 1
	je	.L100
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	jmp	.L101
.L100:
	mov	eax, DWORD PTR -12[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	lea	rcx, -13[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 1
.L101:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L102
	call	__stack_chk_fail@PLT
.L102:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	touch, .-touch
	.globl	addstr
	.type	addstr, @function
addstr:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	r12, rdi
	mov	rbx, rsi
	jmp	.L104
.L106:
	mov	eax, DWORD PTR 8[rbx]
	sub	eax, 1
	mov	DWORD PTR 8[rbx], eax
	mov	eax, DWORD PTR 8[rbx]
	test	eax, eax
	jns	.L105
	mov	rax, r12
	lea	r12, 1[rax]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	rsi, rbx
	mov	edi, eax
	call	addchar
	jmp	.L104
.L105:
	mov	rdx, r12
	lea	r12, 1[rdx]
	mov	rax, QWORD PTR [rbx]
	lea	rcx, 1[rax]
	mov	QWORD PTR [rbx], rcx
	movzx	edx, BYTE PTR [rdx]
	mov	BYTE PTR [rax], dl
.L104:
	movzx	eax, BYTE PTR [r12]
	test	al, al
	jne	.L106
	nop
	nop
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	addstr, .-addstr
	.globl	addchar
	.type	addchar, @function
addchar:
.LFB17:
	.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 -36[rbp], edi
	mov	rbx, rsi
	mov	eax, DWORD PTR 8[rbx]
	sub	eax, 1
	mov	DWORD PTR 8[rbx], eax
	mov	eax, DWORD PTR 8[rbx]
	test	eax, eax
	jns	.L108
	mov	edi, 520
	call	ckmalloc
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR 16[rbx]
	test	rax, rax
	jne	.L109
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 16[rbx], rax
	jmp	.L110
.L109:
	mov	rax, QWORD PTR 24[rbx]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
.L110:
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 24[rbx], rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 8
	mov	QWORD PTR [rbx], rax
	mov	DWORD PTR 8[rbx], 511
.L108:
	mov	rax, QWORD PTR [rbx]
	lea	rdx, 1[rax]
	mov	QWORD PTR [rbx], rdx
	mov	edx, DWORD PTR -36[rbp]
	mov	BYTE PTR [rax], dl
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	addchar, .-addchar
	.globl	writetext
	.type	writetext, @function
writetext:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L115
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L113
.L114:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdi, 8[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, rax
	mov	edx, 512
	mov	esi, 1
	call	fwrite@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
.L113:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 24[rax]
	cmp	QWORD PTR -8[rbp], rax
	jne	.L114
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	eax, 512
	sub	eax, edx
	cdqe
	mov	rdx, QWORD PTR -8[rbp]
	lea	rdi, 8[rdx]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	mov	esi, 1
	call	fwrite@PLT
.L115:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	writetext, .-writetext
	.section	.rodata
.LC35:
	.string	"Can't open %s\n"
	.text
	.globl	ckfopen
	.type	ckfopen, @function
ckfopen:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L117
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC35[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 2
	call	exit@PLT
.L117:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	ckfopen, .-ckfopen
	.section	.rodata
.LC36:
	.string	"Out of space"
	.text
	.globl	ckmalloc
	.type	ckmalloc, @function
ckmalloc:
.LFB20:
	.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, 24
	.cfi_offset 3, -24
	mov	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	rbx, rax
	test	rbx, rbx
	jne	.L120
	lea	rdi, .LC36[rip]
	call	error
.L120:
	mov	rax, rbx
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	ckmalloc, .-ckmalloc
	.globl	savestr
	.type	savestr, @function
savestr:
.LFB21:
	.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, 24
	.cfi_offset 3, -24
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	eax, 1
	mov	edi, eax
	call	ckmalloc
	mov	rbx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	mov	rdi, rbx
	call	strcpy@PLT
	mov	rax, rbx
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	savestr, .-savestr
	.section	.rodata
.LC37:
	.string	"%s:%d: "
.LC38:
	.string	"%s\n"
	.text
	.globl	error
	.type	error, @function
error:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR curfile[rip]
	test	rax, rax
	je	.L125
	mov	ecx, DWORD PTR linno[rip]
	mov	rdx, QWORD PTR curfile[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC37[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L125:
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC38[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 2
	call	exit@PLT
	.cfi_endproc
.LFE22:
	.size	error, .-error
	.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	"453662.c"
	.text
	.data
	.align	2
	.type	copyright, %object
	.size	copyright, 99
copyright:
	.ascii	"@(#) Copyright (c) 1991, 1993\012\011The Regents of"
	.ascii	" the University of California.  All rights reserved"
	.ascii	".\012\000"
	.align	2
	.type	sccsid, %object
	.size	sccsid, 37
sccsid:
	.ascii	"@(#)mkinit.c\0118.2 (Berkeley) 05/04/95\000"
	.global	writer
	.align	2
	.type	writer, %object
	.size	writer, 59
writer:
	.ascii	"/*\012 * This file was generated by the mkinit prog"
	.ascii	"ram.\012 */\012\012\000"
	.global	init
	.align	2
	.type	init, %object
	.size	init, 32
init:
	.ascii	"/*\012 * Initialization code.\012 */\012\000"
	.global	reset
	.align	2
	.type	reset, %object
	.size	reset, 148
reset:
	.ascii	"/*\012 * This routine is called when an error or an"
	.ascii	" interrupt occurs in an\012 * interactive shell and"
	.ascii	" control is returned to the main command loop.\012 "
	.ascii	"*/\012\000"
	.global	shellproc
	.align	2
	.type	shellproc, %object
	.size	shellproc, 84
shellproc:
	.ascii	"/*\012 * This routine is called to initialize the s"
	.ascii	"hell to run a shell procedure.\012 */\012\000"
	.global	event
	.section	.rodata
	.align	2
.LC0:
	.ascii	"INIT\000"
	.align	2
.LC1:
	.ascii	"init\000"
	.align	2
.LC2:
	.ascii	"RESET\000"
	.align	2
.LC3:
	.ascii	"reset\000"
	.align	2
.LC4:
	.ascii	"SHELLPROC\000"
	.align	2
.LC5:
	.ascii	"initshellproc\000"
	.data
	.align	2
	.type	event, %object
	.size	event, 112
event:
	.word	.LC0
	.word	.LC1
	.word	init
	.space	16
	.word	.LC2
	.word	.LC3
	.word	reset
	.space	16
	.word	.LC4
	.word	.LC5
	.word	shellproc
	.space	16
	.word	0
	.word	0
	.space	20
	.comm	curfile,4,4
	.comm	linno,4,4
	.comm	header_files,800,4
	.comm	defines,16,4
	.comm	decls,16,4
	.comm	amiddecls,4,4
	.section	.rodata
	.align	2
.LC6:
	.ascii	"Usage:  mkinit command file...\000"
	.align	2
.LC7:
	.ascii	"\"shell.h\"\000"
	.align	2
.LC8:
	.ascii	"\"mystring.h\"\000"
	.align	2
.LC9:
	.ascii	"init.c\000"
	.align	2
.LC10:
	.ascii	"init.c.new\000"
	.align	2
.LC11:
	.ascii	"init.o\000"
	.align	2
.LC12:
	.ascii	"-c\000"
	.align	2
.LC13:
	.ascii	"sh\000"
	.align	2
.LC14:
	.ascii	"/bin/sh\000"
	.align	2
.LC15:
	.ascii	"Can't exec shell\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bgt	.L2
	ldr	r0, .L7
	bl	error
.L2:
	ldr	r3, .L7+4
	ldr	r2, .L7+8
	str	r2, [r3]
	ldr	r3, .L7+4
	ldr	r2, .L7+12
	str	r2, [r3, #4]
	ldr	r3, [fp, #-20]
	add	r3, r3, #8
	str	r3, [fp, #-8]
	b	.L3
.L4:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r0, r3
	bl	readfile
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	str	r3, [fp, #-8]
.L3:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L4
	bl	output
	bl	file_changed
	mov	r3, r0
	cmp	r3, #0
	beq	.L5
	ldr	r0, .L7+16
	bl	unlink
	ldr	r1, .L7+16
	ldr	r0, .L7+20
	bl	link
	ldr	r0, .L7+20
	bl	unlink
	b	.L6
.L5:
	ldr	r0, .L7+20
	bl	unlink
	ldr	r0, .L7+24
	bl	touch
	mov	r3, r0
	cmp	r3, #0
	beq	.L6
	mov	r0, #0
	bl	exit
.L6:
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	puts
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [sp]
	ldr	r2, .L7+28
	ldr	r1, .L7+32
	ldr	r0, .L7+36
	bl	execl
	ldr	r0, .L7+40
	bl	error
	mov	r0, #1
	bl	exit
.L8:
	.align	2
.L7:
	.word	.LC6
	.word	header_files
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.size	main, .-main
	.section	.rodata
	.align	2
.LC16:
	.ascii	"r\000"
	.align	2
.LC17:
	.ascii	"INCLUDE\000"
	.align	2
.LC18:
	.ascii	"MKINIT\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	readfile
	.syntax unified
	.arm
	.fpu softvfp
	.type	readfile, %function
readfile:
	@ args = 0, pretend = 0, frame = 1048
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1040
	sub	sp, sp, #8
	str	r0, [fp, #-1048]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L19+4
	ldr	r0, [fp, #-1048]
	bl	ckfopen
	str	r0, [fp, #-1036]
	ldr	r2, .L19+8
	ldr	r3, [fp, #-1048]
	str	r3, [r2]
	ldr	r3, .L19+12
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L19+16
	mov	r2, #0
	str	r2, [r3]
	b	.L10
.L17:
	ldr	r3, .L19+12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L19+12
	str	r3, [r2]
	ldr	r3, .L19+20
	str	r3, [fp, #-1040]
	b	.L11
.L14:
	ldrb	r2, [fp, #-1032]	@ zero_extendqisi2
	ldr	r3, [fp, #-1040]
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L12
	ldr	r3, [fp, #-1040]
	ldr	r2, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	match
	mov	r3, r0
	cmp	r3, #0
	beq	.L12
	ldr	r2, [fp, #-1048]
	ldr	r1, [fp, #-1036]
	ldr	r0, [fp, #-1040]
	bl	doevent
	b	.L13
.L12:
	ldr	r3, [fp, #-1040]
	add	r3, r3, #28
	str	r3, [fp, #-1040]
.L11:
	ldr	r3, [fp, #-1040]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L14
.L13:
	ldrb	r3, [fp, #-1032]	@ zero_extendqisi2
	cmp	r3, #73
	bne	.L15
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L19+24
	bl	match
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	doinclude
.L15:
	ldrb	r3, [fp, #-1032]	@ zero_extendqisi2
	cmp	r3, #77
	bne	.L16
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L19+28
	bl	match
	mov	r3, r0
	cmp	r3, #0
	beq	.L16
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, [fp, #-1036]
	mov	r0, r3
	bl	dodecl
.L16:
	ldrb	r3, [fp, #-1032]	@ zero_extendqisi2
	cmp	r3, #35
	bne	.L10
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	gooddefine
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L19+32
	mov	r0, r3
	bl	addstr
.L10:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1036]
	mov	r1, #1024
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L17
	ldr	r0, [fp, #-1036]
	bl	fclose
	nop
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC19
	.word	.LC16
	.word	curfile
	.word	linno
	.word	amiddecls
	.word	event
	.word	.LC17
	.word	.LC18
	.word	defines
	.size	readfile, .-readfile
	.align	2
	.global	match
	.syntax unified
	.arm
	.fpu softvfp
	.type	match, %function
match:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, r5, fp}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r5, [fp, #-16]
	ldr	r4, [fp, #-20]
	b	.L22
.L24:
	mov	r3, r5
	add	r5, r3, #1
	ldrb	r2, [r3]	@ zero_extendqisi2
	mov	r3, r4
	add	r4, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L22
	mov	r3, #0
	b	.L23
.L22:
	ldrb	r3, [r5]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L24
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #123
	beq	.L25
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L25
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #9
	beq	.L25
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L25
	mov	r3, #0
	b	.L23
.L25:
	mov	r3, #1
.L23:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, r5, fp}
	bx	lr
	.size	match, .-match
	.section	.rodata
	.align	2
.LC20:
	.ascii	"#define\000"
	.text
	.align	2
	.global	gooddefine
	.syntax unified
	.arm
	.fpu softvfp
	.type	gooddefine, %function
gooddefine:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	ldr	r1, [fp, #-16]
	ldr	r0, .L39
	bl	match
	mov	r3, r0
	cmp	r3, #0
	bne	.L27
	mov	r3, #0
	b	.L28
.L27:
	ldr	r3, [fp, #-16]
	add	r4, r3, #7
	b	.L29
.L30:
	add	r4, r4, #1
.L29:
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L30
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #9
	beq	.L30
	b	.L31
.L34:
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #40
	bne	.L32
	mov	r3, #0
	b	.L28
.L32:
	add	r4, r4, #1
.L31:
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L35
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #9
	bne	.L34
	b	.L35
.L37:
	add	r4, r4, #1
.L35:
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L36
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L37
.L36:
	sub	r3, r4, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #92
	bne	.L38
	mov	r3, #0
	b	.L28
.L38:
	mov	r3, #1
.L28:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L40:
	.align	2
.L39:
	.word	.LC20
	.size	gooddefine, .-gooddefine
	.section	.rodata
	.align	2
.LC21:
	.ascii	"\012      /* from %s: */\012\000"
	.align	2
.LC22:
	.ascii	"      {\012\000"
	.align	2
.LC23:
	.ascii	"Unexpected EOF\000"
	.align	2
.LC24:
	.ascii	"}\012\000"
	.align	2
.LC25:
	.ascii	"      }\012\000"
	.align	2
.LC26:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	doevent
	.syntax unified
	.arm
	.fpu softvfp
	.type	doevent, %function
doevent:
	@ args = 0, pretend = 0, frame = 1048
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1040
	sub	sp, sp, #12
	mov	r4, r0
	str	r1, [fp, #-1056]
	str	r2, [fp, #-1060]
	ldr	r3, .L59
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-1060]
	ldr	r1, .L59+4
	mov	r0, r3
	bl	sprintf
	add	r2, r4, #12
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	addstr
	add	r3, r4, #12
	mov	r1, r3
	ldr	r0, .L59+8
	bl	addstr
.L55:
	ldr	r3, .L59+12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L59+12
	str	r3, [r2]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-1056]
	mov	r1, #1024
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L42
	ldr	r0, .L59+16
	bl	error
.L42:
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L59+20
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L58
	mov	r3, #6
	str	r3, [fp, #-1048]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [fp, #-1044]
	b	.L45
.L46:
	ldr	r3, [fp, #-1048]
	add	r3, r3, #8
	str	r3, [fp, #-1048]
	ldr	r3, [fp, #-1044]
	add	r3, r3, #1
	str	r3, [fp, #-1044]
.L45:
	ldr	r3, [fp, #-1044]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #9
	beq	.L46
	b	.L47
.L48:
	ldr	r3, [fp, #-1048]
	add	r3, r3, #1
	str	r3, [fp, #-1048]
	ldr	r3, [fp, #-1044]
	add	r3, r3, #1
	str	r3, [fp, #-1044]
.L47:
	ldr	r3, [fp, #-1044]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L48
	ldr	r3, [fp, #-1044]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L49
	ldr	r3, [fp, #-1044]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #35
	bne	.L51
.L49:
	mov	r3, #0
	str	r3, [fp, #-1048]
	b	.L51
.L52:
	add	r3, r4, #12
	mov	r1, r3
	mov	r0, #9
	bl	addchar
	ldr	r3, [fp, #-1048]
	sub	r3, r3, #8
	str	r3, [fp, #-1048]
.L51:
	ldr	r3, [fp, #-1048]
	cmp	r3, #7
	bgt	.L52
	b	.L53
.L54:
	add	r3, r4, #12
	mov	r1, r3
	mov	r0, #32
	bl	addchar
	ldr	r3, [fp, #-1048]
	sub	r3, r3, #1
	str	r3, [fp, #-1048]
.L53:
	ldr	r3, [fp, #-1048]
	cmp	r3, #0
	bgt	.L54
	add	r3, r4, #12
	mov	r1, r3
	ldr	r0, [fp, #-1044]
	bl	addstr
	b	.L55
.L58:
	nop
	add	r3, r4, #12
	mov	r1, r3
	ldr	r0, .L59+24
	bl	addstr
	nop
	ldr	r3, .L59
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L56
	bl	__stack_chk_fail
.L56:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L60:
	.align	2
.L59:
	.word	.LC26
	.word	.LC21
	.word	.LC22
	.word	linno
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.size	doevent, .-doevent
	.section	.rodata
	.align	2
.LC27:
	.ascii	"Expecting '\"' or '<'\000"
	.align	2
.LC28:
	.ascii	"Missing terminator\000"
	.text
	.align	2
	.global	doinclude
	.syntax unified
	.arm
	.fpu softvfp
	.type	doinclude, %function
doinclude:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	ldr	r4, [fp, #-24]
	b	.L62
.L64:
	add	r4, r4, #1
.L62:
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #34
	beq	.L63
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #60
	beq	.L63
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L64
.L63:
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L65
	ldr	r0, .L75
	bl	error
.L65:
	str	r4, [fp, #-16]
	b	.L66
.L68:
	add	r4, r4, #1
.L66:
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L67
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #9
	beq	.L67
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L68
.L67:
	sub	r3, r4, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #34
	beq	.L69
	sub	r3, r4, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #62
	beq	.L69
	ldr	r0, .L75+4
	bl	error
.L69:
	mov	r3, #0
	strb	r3, [r4]
	ldr	r4, .L75+8
	b	.L70
.L72:
	add	r4, r4, #4
.L70:
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L71
	ldr	r3, [r4]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L72
.L71:
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L74
	ldr	r0, [fp, #-16]
	bl	savestr
	mov	r3, r0
	str	r3, [r4]
.L74:
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L76:
	.align	2
.L75:
	.word	.LC27
	.word	.LC28
	.word	header_files
	.size	doinclude, .-doinclude
	.section	.rodata
	.align	2
.LC29:
	.ascii	"MKINIT\012\000"
	.align	2
.LC30:
	.ascii	"Unterminated structure declaration\000"
	.align	2
.LC31:
	.ascii	"extern\000"
	.align	2
.LC32:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	dodecl
	.syntax unified
	.arm
	.fpu softvfp
	.type	dodecl, %function
dodecl:
	@ args = 0, pretend = 0, frame = 1040
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #1040
	str	r0, [fp, #-1048]
	str	r1, [fp, #-1052]
	ldr	r3, .L96
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r1, .L96+4
	ldr	r0, [fp, #-1048]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L78
	ldr	r1, .L96+8
	mov	r0, #10
	bl	addchar
.L80:
	ldr	r3, .L96+12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L96+12
	str	r3, [r2]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-1052]
	mov	r1, #1024
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L79
	ldr	r0, .L96+16
	bl	error
.L79:
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L96+8
	mov	r0, r3
	bl	addstr
	ldrb	r3, [fp, #-1040]	@ zero_extendqisi2
	cmp	r3, #125
	bne	.L80
	ldr	r3, .L96+20
	mov	r2, #0
	str	r2, [r3]
	b	.L95
.L78:
	ldr	r3, .L96+20
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L82
	ldr	r1, .L96+8
	mov	r0, #10
	bl	addchar
.L82:
	mov	r5, #0
	ldr	r3, [fp, #-1048]
	add	r4, r3, #6
	b	.L83
.L85:
	add	r4, r4, #1
.L83:
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L84
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #61
	beq	.L84
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L85
.L84:
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #61
	bne	.L86
	mov	r5, r4
	b	.L87
.L89:
	add	r5, r5, #1
.L87:
	ldrb	r3, [r5]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L88
	ldrb	r3, [r5]	@ zero_extendqisi2
	cmp	r3, #59
	bne	.L89
.L88:
	ldrb	r3, [r5]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L91
	mov	r5, #0
	b	.L86
.L92:
	sub	r4, r4, #1
.L91:
	sub	r3, r4, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L92
	mov	r3, #0
	strb	r3, [r4]
.L86:
	ldr	r1, .L96+8
	ldr	r0, .L96+24
	bl	addstr
	ldr	r3, [fp, #-1048]
	add	r3, r3, #6
	ldr	r1, .L96+8
	mov	r0, r3
	bl	addstr
	cmp	r5, #0
	beq	.L93
	ldr	r1, .L96+8
	mov	r0, r5
	bl	addstr
.L93:
	ldr	r3, .L96+20
	mov	r2, #1
	str	r2, [r3]
.L95:
	nop
	ldr	r3, .L96
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L94
	bl	__stack_chk_fail
.L94:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L97:
	.align	2
.L96:
	.word	.LC32
	.word	.LC29
	.word	decls
	.word	linno
	.word	.LC30
	.word	amiddecls
	.word	.LC31
	.size	dodecl, .-dodecl
	.section	.rodata
	.align	2
.LC33:
	.ascii	"w\000"
	.align	2
.LC34:
	.ascii	"#include %s\012\000"
	.align	2
.LC35:
	.ascii	"\012\012\012\000"
	.align	2
.LC36:
	.ascii	"\012\012\000"
	.align	2
.LC37:
	.ascii	"\012void\012%s() {\012\000"
	.text
	.align	2
	.global	output
	.syntax unified
	.arm
	.fpu softvfp
	.type	output, %function
output:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r1, .L103
	ldr	r0, .L103+4
	bl	ckfopen
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, .L103+8
	bl	fputs
	ldr	r3, .L103+12
	str	r3, [fp, #-16]
	b	.L99
.L100:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L103+16
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	str	r3, [fp, #-16]
.L99:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L100
	ldr	r3, [fp, #-8]
	mov	r2, #3
	mov	r1, #1
	ldr	r0, .L103+20
	bl	fwrite
	ldr	r1, [fp, #-8]
	ldr	r0, .L103+24
	bl	writetext
	ldr	r3, [fp, #-8]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L103+28
	bl	fwrite
	ldr	r1, [fp, #-8]
	ldr	r0, .L103+32
	bl	writetext
	ldr	r3, .L103+36
	str	r3, [fp, #-12]
	b	.L101
.L102:
	ldr	r3, [fp, #-8]
	mov	r2, #3
	mov	r1, #1
	ldr	r0, .L103+20
	bl	fwrite
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	fputs
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r1, .L103+40
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r3, [fp, #-12]
	add	r3, r3, #12
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	writetext
	ldr	r3, [fp, #-8]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L103+44
	bl	fwrite
	ldr	r3, [fp, #-12]
	add	r3, r3, #28
	str	r3, [fp, #-12]
.L101:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L102
	ldr	r0, [fp, #-8]
	bl	fclose
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L104:
	.align	2
.L103:
	.word	.LC33
	.word	.LC10
	.word	writer
	.word	header_files
	.word	.LC34
	.word	.LC35
	.word	defines
	.word	.LC36
	.word	decls
	.word	event
	.word	.LC37
	.word	.LC24
	.size	output, .-output
	.align	2
	.global	file_changed
	.syntax unified
	.arm
	.fpu softvfp
	.type	file_changed, %function
file_changed:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	ldr	r1, .L111
	ldr	r0, .L111+4
	bl	fopen
	mov	r6, r0
	cmp	r6, #0
	beq	.L106
	ldr	r1, .L111
	ldr	r0, .L111+8
	bl	fopen
	mov	r5, r0
	cmp	r5, #0
	bne	.L109
.L106:
	mov	r3, #1
	b	.L108
.L110:
	cmn	r4, #1
	bne	.L109
	mov	r3, #0
	b	.L108
.L109:
	mov	r0, r6
	bl	getc
	mov	r4, r0
	mov	r0, r5
	bl	getc
	mov	r3, r0
	cmp	r4, r3
	beq	.L110
	mov	r3, #1
.L108:
	mov	r0, r3
	pop	{r4, r5, r6, r7, fp, pc}
.L112:
	.align	2
.L111:
	.word	.LC16
	.word	.LC9
	.word	.LC10
	.size	file_changed, .-file_changed
	.section	.rodata
	.align	2
.LC38:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	touch
	.syntax unified
	.arm
	.fpu softvfp
	.type	touch, %function
touch:
	@ 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]
	ldr	r3, .L119
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #2
	ldr	r0, [fp, #-24]
	bl	open
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L114
	mov	r3, #0
	b	.L117
.L114:
	sub	r3, fp, #13
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	read
	mov	r3, r0
	cmp	r3, #1
	beq	.L116
	ldr	r0, [fp, #-12]
	bl	close
	mov	r3, #0
	b	.L117
.L116:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-12]
	bl	lseek
	sub	r3, fp, #13
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	write
	ldr	r0, [fp, #-12]
	bl	close
	mov	r3, #1
.L117:
	ldr	r2, .L119
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L118
	bl	__stack_chk_fail
.L118:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L120:
	.align	2
.L119:
	.word	.LC38
	.size	touch, .-touch
	.align	2
	.global	addstr
	.syntax unified
	.arm
	.fpu softvfp
	.type	addstr, %function
addstr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	mov	r5, r0
	mov	r4, r1
	b	.L122
.L124:
	ldr	r3, [r4, #4]
	sub	r3, r3, #1
	str	r3, [r4, #4]
	ldr	r3, [r4, #4]
	cmp	r3, #0
	bge	.L123
	mov	r3, r5
	add	r5, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r4
	mov	r0, r3
	bl	addchar
	b	.L122
.L123:
	mov	r2, r5
	add	r5, r2, #1
	ldr	r3, [r4]
	add	r1, r3, #1
	str	r1, [r4]
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
.L122:
	ldrb	r3, [r5]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L124
	nop
	nop
	pop	{r4, r5, fp, pc}
	.size	addstr, .-addstr
	.align	2
	.global	addchar
	.syntax unified
	.arm
	.fpu softvfp
	.type	addchar, %function
addchar:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	mov	r4, r1
	ldr	r3, [r4, #4]
	sub	r3, r3, #1
	str	r3, [r4, #4]
	ldr	r3, [r4, #4]
	cmp	r3, #0
	bge	.L126
	mov	r0, #516
	bl	ckmalloc
	str	r0, [fp, #-16]
	ldr	r3, [r4, #8]
	cmp	r3, #0
	bne	.L127
	ldr	r3, [fp, #-16]
	str	r3, [r4, #8]
	b	.L128
.L127:
	ldr	r3, [r4, #12]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
.L128:
	ldr	r3, [fp, #-16]
	str	r3, [r4, #12]
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	str	r3, [r4]
	ldr	r3, .L129
	str	r3, [r4, #4]
.L126:
	ldr	r3, [r4]
	add	r2, r3, #1
	str	r2, [r4]
	ldr	r2, [fp, #-24]
	and	r2, r2, #255
	strb	r2, [r3]
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L130:
	.align	2
.L129:
	.word	511
	.size	addchar, .-addchar
	.align	2
	.global	writetext
	.syntax unified
	.arm
	.fpu softvfp
	.type	writetext, %function
writetext:
	@ 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, [fp, #-16]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L135
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-8]
	b	.L133
.L134:
	ldr	r3, [fp, #-8]
	add	r0, r3, #4
	ldr	r3, [fp, #-20]
	mov	r2, #512
	mov	r1, #1
	bl	fwrite
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
.L133:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bne	.L134
	ldr	r3, [fp, #-8]
	add	r0, r3, #4
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	rsb	r3, r3, #512
	mov	r2, r3
	ldr	r3, [fp, #-20]
	mov	r1, #1
	bl	fwrite
.L135:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	writetext, .-writetext
	.section	.rodata
	.align	2
.LC39:
	.ascii	"Can't open %s\012\000"
	.text
	.align	2
	.global	ckfopen
	.syntax unified
	.arm
	.fpu softvfp
	.type	ckfopen, %function
ckfopen:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L137
	ldr	r3, .L139
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L139+4
	mov	r0, r3
	bl	fprintf
	mov	r0, #2
	bl	exit
.L137:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L140:
	.align	2
.L139:
	.word	stderr
	.word	.LC39
	.size	ckfopen, .-ckfopen
	.section	.rodata
	.align	2
.LC40:
	.ascii	"Out of space\000"
	.text
	.align	2
	.global	ckmalloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	ckmalloc, %function
ckmalloc:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r4, r3
	cmp	r4, #0
	bne	.L142
	ldr	r0, .L144
	bl	error
.L142:
	mov	r3, r4
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L145:
	.align	2
.L144:
	.word	.LC40
	.size	ckmalloc, .-ckmalloc
	.align	2
	.global	savestr
	.syntax unified
	.arm
	.fpu softvfp
	.type	savestr, %function
savestr:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	mov	r0, r3
	bl	ckmalloc
	mov	r4, r0
	ldr	r1, [fp, #-16]
	mov	r0, r4
	bl	strcpy
	mov	r3, r4
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	savestr, .-savestr
	.section	.rodata
	.align	2
.LC41:
	.ascii	"%s:%d: \000"
	.align	2
.LC42:
	.ascii	"%s\012\000"
	.text
	.align	2
	.global	error
	.syntax unified
	.arm
	.fpu softvfp
	.type	error, %function
error:
	@ 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, .L150
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L149
	ldr	r3, .L150+4
	ldr	r0, [r3]
	ldr	r3, .L150
	ldr	r2, [r3]
	ldr	r3, .L150+8
	ldr	r3, [r3]
	ldr	r1, .L150+12
	bl	fprintf
.L149:
	ldr	r3, .L150+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L150+16
	mov	r0, r3
	bl	fprintf
	mov	r0, #2
	bl	exit
.L151:
	.align	2
.L150:
	.word	curfile
	.word	stderr
	.word	linno
	.word	.LC41
	.word	.LC42
	.size	error, .-error
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
