	.file	"104972.c"
	.intel_syntax noprefix
	.text
	.globl	getword
	.type	getword, @function
getword:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	mov	BYTE PTR -5[rbp], 32
	jmp	.L2
.L4:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	getc@PLT
	mov	BYTE PTR -5[rbp], al
.L2:
	cmp	BYTE PTR -5[rbp], -1
	je	.L3
	cmp	BYTE PTR -5[rbp], 32
	jle	.L4
.L3:
	cmp	BYTE PTR -5[rbp], -1
	jne	.L7
	mov	eax, 0
	jmp	.L6
.L11:
	cmp	DWORD PTR -4[rbp], 98
	jle	.L8
	mov	eax, -1
	jmp	.L6
.L8:
	add	DWORD PTR -4[rbp], 1
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	edx, BYTE PTR -5[rbp]
	mov	BYTE PTR [rax], dl
	cmp	BYTE PTR -5[rbp], 40
	je	.L9
	cmp	BYTE PTR -5[rbp], 41
	je	.L9
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	getc@PLT
	mov	BYTE PTR -5[rbp], al
	cmp	BYTE PTR -5[rbp], 40
	je	.L10
	cmp	BYTE PTR -5[rbp], 41
	jne	.L7
.L10:
	mov	rdx, QWORD PTR stdin[rip]
	movsx	eax, BYTE PTR -5[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	ungetc@PLT
	jmp	.L9
.L7:
	cmp	BYTE PTR -5[rbp], -1
	je	.L9
	cmp	BYTE PTR -5[rbp], 32
	jg	.L11
.L9:
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], 0
	mov	eax, 1
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	getword, .-getword
	.globl	err
	.type	err, @function
err:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE1:
	.size	err, .-err
	.globl	indent
	.type	indent, @function
indent:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L14
.L15:
	mov	edi, 32
	call	putchar@PLT
	add	DWORD PTR -4[rbp], 1
.L14:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L15
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	indent, .-indent
	.section	.rodata
.LC0:
	.string	"no tree"
.LC1:
	.string	"("
.LC2:
	.string	"badly formed tree"
.LC3:
	.string	")"
.LC4:
	.string	"token too long"
	.text
	.globl	tree
	.type	tree, @function
tree:
.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, 144
	mov	DWORD PTR -132[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -116[rbp], 0
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	getword
	mov	DWORD PTR -116[rbp], eax
	cmp	DWORD PTR -116[rbp], 0
	jg	.L17
	lea	rdi, .LC0[rip]
	call	err
.L17:
	lea	rax, -112[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L18
	lea	rdi, .LC2[rip]
	call	err
.L18:
	mov	eax, DWORD PTR -132[rbp]
	mov	edi, eax
	call	indent
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	puts@PLT
.L24:
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	getword
	mov	DWORD PTR -116[rbp], eax
	cmp	DWORD PTR -116[rbp], 0
	jle	.L28
	lea	rax, -112[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L21
	mov	eax, DWORD PTR -132[rbp]
	add	eax, 1
	mov	edi, eax
	call	tree
	jmp	.L24
.L21:
	lea	rax, -112[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L29
	mov	eax, DWORD PTR -132[rbp]
	add	eax, 1
	mov	edi, eax
	call	indent
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	puts@PLT
	jmp	.L24
.L28:
	nop
	jmp	.L20
.L29:
	nop
.L20:
	cmp	DWORD PTR -116[rbp], 0
	jns	.L25
	lea	rdi, .LC4[rip]
	call	err
.L25:
	cmp	DWORD PTR -116[rbp], 0
	jne	.L30
	lea	rdi, .LC2[rip]
	call	err
.L30:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	tree, .-tree
	.globl	main
	.type	main, @function
main:
.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, 144
	mov	DWORD PTR -132[rbp], edi
	mov	QWORD PTR -144[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -116[rbp], 0
.L36:
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	getword
	mov	DWORD PTR -116[rbp], eax
	cmp	DWORD PTR -116[rbp], 0
	jns	.L32
	lea	rdi, .LC4[rip]
	call	err
.L32:
	cmp	DWORD PTR -116[rbp], 0
	jne	.L33
	lea	rdi, .LC0[rip]
	call	err
.L33:
	lea	rax, -112[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L40
	jmp	.L36
.L40:
	nop
	mov	edi, 0
	call	tree
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	main, .-main
	.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	"104972.c"
	.text
	.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	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #32
	strb	r3, [fp, #-9]
	b	.L2
.L3:
	ldr	r3, .L10
	ldr	r3, [r3]
	mov	r0, r3
	bl	getc
	mov	r3, r0
	strb	r3, [fp, #-9]
.L2:
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #32
	bls	.L3
	b	.L4
.L9:
	ldr	r3, [fp, #-8]
	cmp	r3, #98
	ble	.L5
	mvn	r3, #0
	b	.L6
.L5:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	str	r2, [fp, #-16]
	ldrb	r2, [fp, #-9]
	strb	r2, [r3]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #40
	beq	.L7
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #41
	beq	.L7
	ldr	r3, .L10
	ldr	r3, [r3]
	mov	r0, r3
	bl	getc
	mov	r3, r0
	strb	r3, [fp, #-9]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #40
	beq	.L8
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #41
	bne	.L4
.L8:
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	ldr	r2, .L10
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	ungetc
	b	.L7
.L4:
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #32
	bhi	.L9
.L7:
	ldr	r3, [fp, #-16]
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #1
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	stdin
	.size	getword, .-getword
	.align	2
	.global	err
	.syntax unified
	.arm
	.fpu softvfp
	.type	err, %function
err:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	puts
	mov	r0, #0
	bl	exit
	.size	err, .-err
	.align	2
	.global	indent
	.syntax unified
	.arm
	.fpu softvfp
	.type	indent, %function
indent:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L14
.L15:
	mov	r0, #32
	bl	putchar
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L14:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L15
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	indent, .-indent
	.section	.rodata
	.align	2
.LC0:
	.ascii	"no tree\000"
	.align	2
.LC1:
	.ascii	"(\000"
	.align	2
.LC2:
	.ascii	"badly formed tree\000"
	.align	2
.LC3:
	.ascii	")\000"
	.align	2
.LC4:
	.ascii	"token too long\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	tree
	.syntax unified
	.arm
	.fpu softvfp
	.type	tree, %function
tree:
	@ 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]
	ldr	r3, .L31
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-112]
	sub	r3, fp, #108
	mov	r0, r3
	bl	getword
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bgt	.L17
	ldr	r0, .L31+4
	bl	err
.L17:
	sub	r3, fp, #108
	ldr	r1, .L31+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
	ldr	r0, .L31+12
	bl	err
.L18:
	ldr	r0, [fp, #-120]
	bl	indent
	sub	r3, fp, #108
	mov	r0, r3
	bl	puts
.L24:
	sub	r3, fp, #108
	mov	r0, r3
	bl	getword
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	ble	.L28
	sub	r3, fp, #108
	ldr	r1, .L31+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L21
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	mov	r0, r3
	bl	tree
	b	.L24
.L21:
	sub	r3, fp, #108
	ldr	r1, .L31+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L29
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	mov	r0, r3
	bl	indent
	sub	r3, fp, #108
	mov	r0, r3
	bl	puts
	b	.L24
.L28:
	nop
	b	.L20
.L29:
	nop
.L20:
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bge	.L25
	ldr	r0, .L31+20
	bl	err
.L25:
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bne	.L30
	ldr	r0, .L31+12
	bl	err
.L30:
	nop
	ldr	r3, .L31
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L27
	bl	__stack_chk_fail
.L27:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	tree, .-tree
	.section	.rodata
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 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, .L43
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-112]
.L38:
	sub	r3, fp, #108
	mov	r0, r3
	bl	getword
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bge	.L34
	ldr	r0, .L43+4
	bl	err
.L34:
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bne	.L35
	ldr	r0, .L43+8
	bl	err
.L35:
	sub	r3, fp, #108
	ldr	r1, .L43+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L42
	b	.L38
.L42:
	nop
	mov	r0, #0
	bl	tree
	mov	r3, #0
	ldr	r2, .L43
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L40
	bl	__stack_chk_fail
.L40:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L44:
	.align	2
.L43:
	.word	.LC6
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
