	.file	"87326.c"
	.intel_syntax noprefix
	.text
	.globl	keytab
	.section	.rodata
.LC0:
	.string	"auto"
.LC1:
	.string	"break"
.LC2:
	.string	"case"
.LC3:
	.string	"char"
.LC4:
	.string	"const"
.LC5:
	.string	"continue"
.LC6:
	.string	"default"
.LC7:
	.string	"do"
.LC8:
	.string	"double"
.LC9:
	.string	"else"
.LC10:
	.string	"enum"
.LC11:
	.string	"extern"
.LC12:
	.string	"float"
.LC13:
	.string	"for"
.LC14:
	.string	"goto"
.LC15:
	.string	"if"
.LC16:
	.string	"int"
.LC17:
	.string	"long"
.LC18:
	.string	"register"
.LC19:
	.string	"return"
.LC20:
	.string	"short"
.LC21:
	.string	"signed"
.LC22:
	.string	"sizeof"
.LC23:
	.string	"static"
.LC24:
	.string	"struct"
.LC25:
	.string	"switch"
.LC26:
	.string	"typedef"
.LC27:
	.string	"union"
.LC28:
	.string	"unsigned"
.LC29:
	.string	"void"
.LC30:
	.string	"volatile"
.LC31:
	.string	"while"
	.section	.data.rel.local,"aw"
	.align 32
	.type	keytab, @object
	.size	keytab, 512
keytab:
	.quad	.LC0
	.long	0
	.zero	4
	.quad	.LC1
	.long	0
	.zero	4
	.quad	.LC2
	.long	0
	.zero	4
	.quad	.LC3
	.long	0
	.zero	4
	.quad	.LC4
	.long	0
	.zero	4
	.quad	.LC5
	.long	0
	.zero	4
	.quad	.LC6
	.long	0
	.zero	4
	.quad	.LC7
	.long	0
	.zero	4
	.quad	.LC8
	.long	0
	.zero	4
	.quad	.LC9
	.long	0
	.zero	4
	.quad	.LC10
	.long	0
	.zero	4
	.quad	.LC11
	.long	0
	.zero	4
	.quad	.LC12
	.long	0
	.zero	4
	.quad	.LC13
	.long	0
	.zero	4
	.quad	.LC14
	.long	0
	.zero	4
	.quad	.LC15
	.long	0
	.zero	4
	.quad	.LC16
	.long	0
	.zero	4
	.quad	.LC17
	.long	0
	.zero	4
	.quad	.LC18
	.long	0
	.zero	4
	.quad	.LC19
	.long	0
	.zero	4
	.quad	.LC20
	.long	0
	.zero	4
	.quad	.LC21
	.long	0
	.zero	4
	.quad	.LC22
	.long	0
	.zero	4
	.quad	.LC23
	.long	0
	.zero	4
	.quad	.LC24
	.long	0
	.zero	4
	.quad	.LC25
	.long	0
	.zero	4
	.quad	.LC26
	.long	0
	.zero	4
	.quad	.LC27
	.long	0
	.zero	4
	.quad	.LC28
	.long	0
	.zero	4
	.quad	.LC29
	.long	0
	.zero	4
	.quad	.LC30
	.long	0
	.zero	4
	.quad	.LC31
	.long	0
	.zero	4
	.globl	PREFIX_COUNT
	.data
	.align 4
	.type	PREFIX_COUNT, @object
	.size	PREFIX_COUNT, 4
PREFIX_COUNT:
	.long	6
	.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, 144
	mov	DWORD PTR -132[rbp], edi
	mov	QWORD PTR -144[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -132[rbp], 2
	jne	.L2
	mov	rax, QWORD PTR -144[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR PREFIX_COUNT[rip], eax
	mov	eax, DWORD PTR PREFIX_COUNT[rip]
	test	eax, eax
	jg	.L2
	mov	DWORD PTR PREFIX_COUNT[rip], 6
.L2:
	mov	QWORD PTR -120[rbp], 0
	jmp	.L3
.L5:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movzx	eax, BYTE PTR -112[rbp]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 1024
	test	eax, eax
	jne	.L4
	movzx	eax, BYTE PTR -112[rbp]
	cmp	al, 95
	jne	.L3
.L4:
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, DWORD PTR PREFIX_COUNT[rip]
	movsx	rdx, edx
	cmp	rax, rdx
	jb	.L3
	lea	rax, -112[rbp]
	mov	edx, 32
	lea	rsi, keytab[rip]
	mov	rdi, rax
	call	binsearch
	test	rax, rax
	jne	.L3
	lea	rdx, -112[rbp]
	mov	rax, QWORD PTR -120[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	addtree
	mov	QWORD PTR -120[rbp], rax
.L3:
	lea	rax, -112[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	getword
	cmp	eax, -1
	jne	.L5
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	treeprint
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	addtree
	.type	addtree, @function
addtree:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	cmp	QWORD PTR -24[rbp], 0
	jne	.L9
	call	talloc
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR PREFIX_COUNT[rip]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strndup@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 8[rax], 1
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 24[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 16[rax], rdx
	jmp	.L10
.L9:
	mov	eax, DWORD PTR PREFIX_COUNT[rip]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncmp@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jne	.L11
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 8[rax], edx
	jmp	.L10
.L11:
	cmp	DWORD PTR -4[rbp], 0
	jns	.L12
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	addtree
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 16[rdx], rax
	jmp	.L10
.L12:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	addtree
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 24[rdx], rax
.L10:
	mov	rax, QWORD PTR -24[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	addtree, .-addtree
	.section	.rodata
.LC32:
	.string	"%4d %s\n"
	.text
	.globl	treeprint
	.type	treeprint, @function
treeprint:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	je	.L16
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	treeprint
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	esi, eax
	lea	rdi, .LC32[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rdi, rax
	call	treeprint
.L16:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	treeprint, .-treeprint
	.globl	talloc
	.type	talloc, @function
talloc:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edi, 32
	call	malloc@PLT
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	talloc, .-talloc
	.globl	binsearch
	.type	binsearch, @function
binsearch:
.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, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -52[rbp], edx
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	QWORD PTR -16[rbp], rax
	jmp	.L20
.L24:
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, QWORD PTR -24[rbp]
	sar	rax, 4
	mov	rdx, rax
	shr	rdx, 63
	add	rax, rdx
	sar	rax
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	jns	.L21
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L20
.L21:
	cmp	DWORD PTR -28[rbp], 0
	jle	.L22
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 16
	mov	QWORD PTR -24[rbp], rax
	jmp	.L20
.L22:
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L23
.L20:
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, QWORD PTR -16[rbp]
	jb	.L24
	mov	eax, 0
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	binsearch, .-binsearch
	.globl	getword
	.type	getword, @function
getword:
.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	DWORD PTR -44[rbp], esi
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -24[rbp], rax
	nop
.L26:
	call	__ctype_b_loc@PLT
	mov	rbx, QWORD PTR [rax]
	call	getch
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	add	rax, rax
	add	rax, rbx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 8192
	test	eax, eax
	jne	.L26
	cmp	DWORD PTR -28[rbp], -1
	je	.L27
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	mov	edx, DWORD PTR -28[rbp]
	mov	BYTE PTR [rax], dl
.L27:
	cmp	DWORD PTR -28[rbp], 34
	jne	.L28
	jmp	.L29
.L32:
	call	getch
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 34
	je	.L56
	add	QWORD PTR -24[rbp], 1
.L29:
	sub	DWORD PTR -44[rbp], 1
	cmp	DWORD PTR -44[rbp], 0
	jg	.L32
	jmp	.L31
.L56:
	nop
.L31:
	add	QWORD PTR -24[rbp], 1
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	jmp	.L33
.L28:
	cmp	DWORD PTR -28[rbp], 47
	jne	.L34
	call	getch
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 47
	jne	.L35
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	mov	edx, DWORD PTR -28[rbp]
	mov	BYTE PTR [rax], dl
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L38
	sub	DWORD PTR -44[rbp], 1
	cmp	DWORD PTR -44[rbp], 0
	jmp	.L38
.L40:
	call	getch
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L39
	add	QWORD PTR -24[rbp], 1
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	jmp	.L33
.L39:
	add	QWORD PTR -24[rbp], 1
.L38:
	sub	DWORD PTR -44[rbp], 1
	cmp	DWORD PTR -44[rbp], 0
	jg	.L40
	jmp	.L34
.L35:
	cmp	DWORD PTR -28[rbp], 42
	jne	.L41
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	mov	edx, DWORD PTR -28[rbp]
	mov	BYTE PTR [rax], dl
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L44
	sub	DWORD PTR -44[rbp], 1
	cmp	DWORD PTR -44[rbp], 0
	jmp	.L44
.L46:
	call	getch
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jne	.L45
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 42
	jne	.L45
	add	QWORD PTR -24[rbp], 1
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	jmp	.L33
.L45:
	add	QWORD PTR -24[rbp], 1
.L44:
	sub	DWORD PTR -44[rbp], 1
	cmp	DWORD PTR -44[rbp], 0
	jg	.L46
	jmp	.L34
.L41:
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	ungetch
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], 0
	mov	eax, 47
	jmp	.L33
.L34:
	cmp	DWORD PTR -28[rbp], 35
	jne	.L47
	jmp	.L48
.L50:
	call	getch
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	je	.L57
	add	QWORD PTR -24[rbp], 1
.L48:
	sub	DWORD PTR -44[rbp], 1
	cmp	DWORD PTR -44[rbp], 0
	jg	.L50
	jmp	.L47
.L57:
	nop
.L47:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 1024
	test	eax, eax
	jne	.L52
	cmp	DWORD PTR -28[rbp], 95
	je	.L52
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], 0
	mov	eax, DWORD PTR -28[rbp]
	jmp	.L33
.L55:
	call	__ctype_b_loc@PLT
	mov	rbx, QWORD PTR [rax]
	call	getch
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rbx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 8
	test	eax, eax
	jne	.L53
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 95
	je	.L53
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	ungetch
	jmp	.L54
.L53:
	add	QWORD PTR -24[rbp], 1
.L52:
	sub	DWORD PTR -44[rbp], 1
	cmp	DWORD PTR -44[rbp], 0
	jg	.L55
.L54:
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
.L33:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	getword, .-getword
	.globl	buf
	.bss
	.align 32
	.type	buf, @object
	.size	buf, 100
buf:
	.zero	100
	.globl	bufp
	.align 4
	.type	bufp, @object
	.size	bufp, 4
bufp:
	.zero	4
	.text
	.globl	getch
	.type	getch, @function
getch:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR bufp[rip]
	test	eax, eax
	jle	.L59
	mov	eax, DWORD PTR bufp[rip]
	sub	eax, 1
	mov	DWORD PTR bufp[rip], eax
	mov	eax, DWORD PTR bufp[rip]
	cdqe
	lea	rdx, buf[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	eax, al
	jmp	.L61
.L59:
	call	getchar@PLT
.L61:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	getch, .-getch
	.section	.rodata
.LC33:
	.string	"ungetch: too many characters"
	.text
	.globl	ungetch
	.type	ungetch, @function
ungetch:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR bufp[rip]
	cmp	eax, 99
	jle	.L63
	lea	rdi, .LC33[rip]
	call	puts@PLT
	jmp	.L65
.L63:
	mov	eax, DWORD PTR bufp[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR bufp[rip], edx
	mov	edx, DWORD PTR -4[rbp]
	mov	ecx, edx
	cdqe
	lea	rdx, buf[rip]
	mov	BYTE PTR [rax+rdx], cl
.L65:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	ungetch, .-ungetch
	.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	"87326.c"
	.text
	.global	keytab
	.section	.rodata
	.align	2
.LC0:
	.ascii	"auto\000"
	.align	2
.LC1:
	.ascii	"break\000"
	.align	2
.LC2:
	.ascii	"case\000"
	.align	2
.LC3:
	.ascii	"char\000"
	.align	2
.LC4:
	.ascii	"const\000"
	.align	2
.LC5:
	.ascii	"continue\000"
	.align	2
.LC6:
	.ascii	"default\000"
	.align	2
.LC7:
	.ascii	"do\000"
	.align	2
.LC8:
	.ascii	"double\000"
	.align	2
.LC9:
	.ascii	"else\000"
	.align	2
.LC10:
	.ascii	"enum\000"
	.align	2
.LC11:
	.ascii	"extern\000"
	.align	2
.LC12:
	.ascii	"float\000"
	.align	2
.LC13:
	.ascii	"for\000"
	.align	2
.LC14:
	.ascii	"goto\000"
	.align	2
.LC15:
	.ascii	"if\000"
	.align	2
.LC16:
	.ascii	"int\000"
	.align	2
.LC17:
	.ascii	"long\000"
	.align	2
.LC18:
	.ascii	"register\000"
	.align	2
.LC19:
	.ascii	"return\000"
	.align	2
.LC20:
	.ascii	"short\000"
	.align	2
.LC21:
	.ascii	"signed\000"
	.align	2
.LC22:
	.ascii	"sizeof\000"
	.align	2
.LC23:
	.ascii	"static\000"
	.align	2
.LC24:
	.ascii	"struct\000"
	.align	2
.LC25:
	.ascii	"switch\000"
	.align	2
.LC26:
	.ascii	"typedef\000"
	.align	2
.LC27:
	.ascii	"union\000"
	.align	2
.LC28:
	.ascii	"unsigned\000"
	.align	2
.LC29:
	.ascii	"void\000"
	.align	2
.LC30:
	.ascii	"volatile\000"
	.align	2
.LC31:
	.ascii	"while\000"
	.data
	.align	2
	.type	keytab, %object
	.size	keytab, 256
keytab:
	.word	.LC0
	.word	0
	.word	.LC1
	.word	0
	.word	.LC2
	.word	0
	.word	.LC3
	.word	0
	.word	.LC4
	.word	0
	.word	.LC5
	.word	0
	.word	.LC6
	.word	0
	.word	.LC7
	.word	0
	.word	.LC8
	.word	0
	.word	.LC9
	.word	0
	.word	.LC10
	.word	0
	.word	.LC11
	.word	0
	.word	.LC12
	.word	0
	.word	.LC13
	.word	0
	.word	.LC14
	.word	0
	.word	.LC15
	.word	0
	.word	.LC16
	.word	0
	.word	.LC17
	.word	0
	.word	.LC18
	.word	0
	.word	.LC19
	.word	0
	.word	.LC20
	.word	0
	.word	.LC21
	.word	0
	.word	.LC22
	.word	0
	.word	.LC23
	.word	0
	.word	.LC24
	.word	0
	.word	.LC25
	.word	0
	.word	.LC26
	.word	0
	.word	.LC27
	.word	0
	.word	.LC28
	.word	0
	.word	.LC29
	.word	0
	.word	.LC30
	.word	0
	.word	.LC31
	.word	0
	.global	PREFIX_COUNT
	.align	2
	.type	PREFIX_COUNT, %object
	.size	PREFIX_COUNT, 4
PREFIX_COUNT:
	.word	6
	.section	.rodata
	.align	2
.LC32:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	str	r0, [fp, #-120]
	str	r1, [fp, #-124]
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-120]
	cmp	r3, #2
	bne	.L2
	ldr	r3, [fp, #-124]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L8+4
	str	r3, [r2]
	ldr	r3, .L8+4
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L2
	ldr	r3, .L8+4
	mov	r2, #6
	str	r2, [r3]
.L2:
	mov	r3, #0
	str	r3, [fp, #-112]
	b	.L3
.L5:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldrb	r3, [fp, #-108]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #1024
	cmp	r3, #0
	bne	.L4
	ldrb	r3, [fp, #-108]	@ zero_extendqisi2
	cmp	r3, #95
	bne	.L3
.L4:
	sub	r3, fp, #108
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	ldr	r2, .L8+4
	ldr	r2, [r2]
	cmp	r3, r2
	bcc	.L3
	sub	r3, fp, #108
	mov	r2, #32
	ldr	r1, .L8+8
	mov	r0, r3
	bl	binsearch
	mov	r3, r0
	cmp	r3, #0
	bne	.L3
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, [fp, #-112]
	bl	addtree
	str	r0, [fp, #-112]
.L3:
	sub	r3, fp, #108
	mov	r1, #100
	mov	r0, r3
	bl	getword
	mov	r3, r0
	cmn	r3, #1
	bne	.L5
	ldr	r0, [fp, #-112]
	bl	treeprint
	mov	r3, #0
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC32
	.word	PREFIX_COUNT
	.word	keytab
	.size	main, .-main
	.align	2
	.global	addtree
	.syntax unified
	.arm
	.fpu softvfp
	.type	addtree, %function
addtree:
	@ 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]
	cmp	r3, #0
	bne	.L11
	bl	talloc
	str	r0, [fp, #-16]
	ldr	r3, .L16
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	strndup
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-16]
	str	r2, [r3, #8]
	b	.L12
.L11:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, .L16
	ldr	r2, [r2]
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	strncmp
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L13
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
	b	.L12
.L13:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L14
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	addtree
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3, #8]
	b	.L12
.L14:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	addtree
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3, #12]
.L12:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	PREFIX_COUNT
	.size	addtree, .-addtree
	.section	.rodata
	.align	2
.LC33:
	.ascii	"%4d %s\012\000"
	.text
	.align	2
	.global	treeprint
	.syntax unified
	.arm
	.fpu softvfp
	.type	treeprint, %function
treeprint:
	@ 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, [fp, #-8]
	cmp	r3, #0
	beq	.L20
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	treeprint
	ldr	r3, [fp, #-8]
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, .L21
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	treeprint
.L20:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC33
	.size	treeprint, .-treeprint
	.align	2
	.global	talloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	talloc, %function
talloc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r0, #16
	bl	malloc
	mov	r3, r0
	mov	r0, r3
	pop	{fp, pc}
	.size	talloc, .-talloc
	.align	2
	.global	binsearch
	.syntax unified
	.arm
	.fpu softvfp
	.type	binsearch, %function
binsearch:
	@ 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, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	b	.L26
.L30:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	asr	r3, r3, #3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	lsl	r3, r3, #3
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	strcmp
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L27
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-16]
	b	.L26
.L27:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L28
	ldr	r3, [fp, #-12]
	add	r3, r3, #8
	str	r3, [fp, #-20]
	b	.L26
.L28:
	ldr	r3, [fp, #-12]
	b	.L29
.L26:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bcc	.L30
	mov	r3, #0
.L29:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	binsearch, .-binsearch
	.align	2
	.global	getword
	.syntax unified
	.arm
	.fpu softvfp
	.type	getword, %function
getword:
	@ 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]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-16]
	nop
.L32:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r4, [r3]
	bl	getch
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #1
	add	r3, r4, r3
	ldrh	r3, [r3]
	and	r3, r3, #8192
	cmp	r3, #0
	bne	.L32
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	beq	.L33
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	str	r2, [fp, #-16]
	ldr	r2, [fp, #-20]
	and	r2, r2, #255
	strb	r2, [r3]
.L33:
	ldr	r3, [fp, #-20]
	cmp	r3, #34
	bne	.L34
	b	.L35
.L38:
	bl	getch
	mov	r3, r0
	and	r2, r3, #255
	ldr	r3, [fp, #-16]
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #34
	beq	.L62
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L35:
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bgt	.L38
	b	.L37
.L62:
	nop
.L37:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	b	.L39
.L34:
	ldr	r3, [fp, #-20]
	cmp	r3, #47
	bne	.L40
	bl	getch
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #47
	bne	.L41
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	str	r2, [fp, #-16]
	ldr	r2, [fp, #-20]
	and	r2, r2, #255
	strb	r2, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L44
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	b	.L44
.L46:
	bl	getch
	mov	r3, r0
	and	r2, r3, #255
	ldr	r3, [fp, #-16]
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L45
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	b	.L39
.L45:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L44:
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bgt	.L46
	b	.L40
.L41:
	ldr	r3, [fp, #-20]
	cmp	r3, #42
	bne	.L47
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	str	r2, [fp, #-16]
	ldr	r2, [fp, #-20]
	and	r2, r2, #255
	strb	r2, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L50
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	b	.L50
.L52:
	bl	getch
	mov	r3, r0
	and	r2, r3, #255
	ldr	r3, [fp, #-16]
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L51
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #42
	bne	.L51
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	b	.L39
.L51:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L50:
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bgt	.L52
	b	.L40
.L47:
	ldr	r0, [fp, #-20]
	bl	ungetch
	ldr	r3, [fp, #-16]
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #47
	b	.L39
.L40:
	ldr	r3, [fp, #-20]
	cmp	r3, #35
	bne	.L53
	b	.L54
.L56:
	bl	getch
	mov	r3, r0
	and	r2, r3, #255
	ldr	r3, [fp, #-16]
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L63
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L54:
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bgt	.L56
	b	.L53
.L63:
	nop
.L53:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #1024
	cmp	r3, #0
	bne	.L58
	ldr	r3, [fp, #-20]
	cmp	r3, #95
	beq	.L58
	ldr	r3, [fp, #-16]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	b	.L39
.L61:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r4, [r3]
	bl	getch
	mov	r3, r0
	and	r2, r3, #255
	ldr	r3, [fp, #-16]
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r4, r3
	ldrh	r3, [r3]
	and	r3, r3, #8
	cmp	r3, #0
	bne	.L59
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #95
	beq	.L59
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	ungetch
	b	.L60
.L59:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L58:
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bgt	.L61
.L60:
	ldr	r3, [fp, #-16]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
.L39:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	getword, .-getword
	.comm	buf,100,4
	.global	bufp
	.bss
	.align	2
	.type	bufp, %object
	.size	bufp, 4
bufp:
	.space	4
	.text
	.align	2
	.global	getch
	.syntax unified
	.arm
	.fpu softvfp
	.type	getch, %function
getch:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L68
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L65
	ldr	r3, .L68
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L68
	str	r3, [r2]
	ldr	r3, .L68
	ldr	r3, [r3]
	ldr	r2, .L68+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	b	.L67
.L65:
	bl	getchar
	mov	r3, r0
.L67:
	mov	r0, r3
	pop	{fp, pc}
.L69:
	.align	2
.L68:
	.word	bufp
	.word	buf
	.size	getch, .-getch
	.section	.rodata
	.align	2
.LC34:
	.ascii	"ungetch: too many characters\000"
	.text
	.align	2
	.global	ungetch
	.syntax unified
	.arm
	.fpu softvfp
	.type	ungetch, %function
ungetch:
	@ 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, .L74
	ldr	r3, [r3]
	cmp	r3, #99
	ble	.L71
	ldr	r0, .L74+4
	bl	puts
	b	.L73
.L71:
	ldr	r3, .L74
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L74
	str	r2, [r1]
	ldr	r2, [fp, #-8]
	and	r1, r2, #255
	ldr	r2, .L74+8
	strb	r1, [r2, r3]
.L73:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L75:
	.align	2
.L74:
	.word	bufp
	.word	.LC34
	.word	buf
	.size	ungetch, .-ungetch
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
