	.file	"756001.c"
	.intel_syntax noprefix
	.text
	.globl	P
	.bss
	.align 8
	.type	P, @object
	.size	P, 8
P:
	.zero	8
	.globl	Type
	.align 32
	.type	Type, @object
	.size	Type, 4096
Type:
	.zero	4096
	.globl	Value
	.align 32
	.type	Value, @object
	.size	Value, 4096
Value:
	.zero	4096
	.globl	Left
	.align 32
	.type	Left, @object
	.size	Left, 4096
Left:
	.zero	4096
	.globl	Right
	.align 32
	.type	Right, @object
	.size	Right, 4096
Right:
	.zero	4096
	.globl	Next
	.data
	.align 4
	.type	Next, @object
	.size	Next, 4
Next:
	.long	1
	.section	.rodata
.LC0:
	.string	"out of nodes\n"
	.text
	.globl	node
	.type	node, @function
node:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	DWORD PTR -12[rbp], edx
	mov	DWORD PTR -16[rbp], ecx
	mov	eax, DWORD PTR Next[rip]
	cmp	eax, 1023
	jle	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 13
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	eax, DWORD PTR Next[rip]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, Type[rip]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR Next[rip]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, Value[rip]
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR Next[rip]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, Left[rip]
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR Next[rip]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, Right[rip]
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR Next[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR Next[rip], edx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	node, .-node
	.globl	skip
	.type	skip, @function
skip:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	jmp	.L5
.L6:
	mov	rax, QWORD PTR P[rip]
	add	rax, 1
	mov	QWORD PTR P[rip], rax
.L5:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR P[rip]
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 8192
	test	eax, eax
	jne	.L6
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	skip, .-skip
	.globl	factor
	.type	factor, @function
factor:
.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	DWORD PTR -8[rbp], 0
	call	skip
	mov	rax, QWORD PTR P[rip]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 40
	jne	.L8
	mov	rax, QWORD PTR P[rip]
	add	rax, 1
	mov	QWORD PTR P[rip], rax
	call	sum
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR P[rip]
	add	rax, 1
	mov	QWORD PTR P[rip], rax
	jmp	.L9
.L8:
	mov	rax, QWORD PTR P[rip]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L10
	mov	rax, QWORD PTR P[rip]
	add	rax, 1
	mov	QWORD PTR P[rip], rax
	call	factor
	mov	ecx, 0
	mov	edx, eax
	mov	esi, 0
	mov	edi, 45
	call	node
	mov	DWORD PTR -8[rbp], eax
	jmp	.L9
.L10:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR P[rip]
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	je	.L11
	mov	DWORD PTR -4[rbp], 0
	jmp	.L12
.L13:
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	edx, eax
	mov	rax, QWORD PTR P[rip]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	add	eax, edx
	sub	eax, 48
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR P[rip]
	add	rax, 1
	mov	QWORD PTR P[rip], rax
.L12:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR P[rip]
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	jne	.L13
	mov	eax, DWORD PTR -4[rbp]
	mov	ecx, 0
	mov	edx, 0
	mov	esi, eax
	mov	edi, 99
	call	node
	mov	DWORD PTR -8[rbp], eax
	jmp	.L9
.L11:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR P[rip]
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 1024
	test	eax, eax
	je	.L9
	mov	rax, QWORD PTR P[rip]
	lea	rdx, 1[rax]
	mov	QWORD PTR P[rip], rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	ecx, 0
	mov	edx, 0
	mov	esi, eax
	mov	edi, 118
	call	node
	mov	DWORD PTR -8[rbp], eax
.L9:
	mov	eax, DWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	factor, .-factor
	.globl	term
	.type	term, @function
term:
.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
	call	skip
	call	factor
	mov	DWORD PTR -8[rbp], eax
.L21:
	call	skip
	mov	rax, QWORD PTR P[rip]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	eax, 42
	je	.L16
	cmp	eax, 47
	je	.L17
	jmp	.L22
.L16:
	mov	rax, QWORD PTR P[rip]
	add	rax, 1
	mov	QWORD PTR P[rip], rax
	call	factor
	mov	DWORD PTR -4[rbp], eax
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	ecx, edx
	mov	edx, eax
	mov	esi, 0
	mov	edi, 42
	call	node
	mov	DWORD PTR -8[rbp], eax
	jmp	.L19
.L17:
	mov	rax, QWORD PTR P[rip]
	add	rax, 1
	mov	QWORD PTR P[rip], rax
	call	factor
	mov	DWORD PTR -4[rbp], eax
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	ecx, edx
	mov	edx, eax
	mov	esi, 0
	mov	edi, 47
	call	node
	mov	DWORD PTR -8[rbp], eax
	jmp	.L19
.L22:
	mov	eax, DWORD PTR -8[rbp]
	jmp	.L23
.L19:
	jmp	.L21
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	term, .-term
	.globl	sum
	.type	sum, @function
sum:
.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, 16
	call	skip
	call	term
	mov	DWORD PTR -8[rbp], eax
.L30:
	call	skip
	mov	rax, QWORD PTR P[rip]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	eax, 43
	je	.L25
	cmp	eax, 45
	je	.L26
	jmp	.L31
.L25:
	mov	rax, QWORD PTR P[rip]
	add	rax, 1
	mov	QWORD PTR P[rip], rax
	call	term
	mov	DWORD PTR -4[rbp], eax
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	ecx, edx
	mov	edx, eax
	mov	esi, 0
	mov	edi, 43
	call	node
	mov	DWORD PTR -8[rbp], eax
	jmp	.L28
.L26:
	mov	rax, QWORD PTR P[rip]
	add	rax, 1
	mov	QWORD PTR P[rip], rax
	call	term
	mov	DWORD PTR -4[rbp], eax
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	ecx, edx
	mov	edx, eax
	mov	esi, 0
	mov	edi, 45
	call	node
	mov	DWORD PTR -8[rbp], eax
	jmp	.L28
.L31:
	mov	eax, DWORD PTR -8[rbp]
	jmp	.L32
.L28:
	jmp	.L30
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	sum, .-sum
	.globl	expr
	.type	expr, @function
expr:
.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	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR P[rip], rax
	call	sum
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	expr, .-expr
	.section	.rodata
.LC1:
	.string	"  "
.LC2:
	.string	"(%d)"
.LC3:
	.string	"(%c)"
	.text
	.globl	dump
	.type	dump, @function
dump:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	cmp	DWORD PTR -20[rbp], 0
	je	.L42
	mov	DWORD PTR -4[rbp], 0
	jmp	.L38
.L39:
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L38:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jl	.L39
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Type[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edi, eax
	call	putchar@PLT
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Type[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 99
	jne	.L40
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Value[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L41
.L40:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Type[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 118
	jne	.L41
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Value[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L41:
	mov	edi, 10
	call	putchar@PLT
	mov	eax, DWORD PTR -24[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, Left[rip]
	mov	eax, DWORD PTR [rcx+rax]
	mov	esi, edx
	mov	edi, eax
	call	dump
	mov	eax, DWORD PTR -24[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, Right[rip]
	mov	eax, DWORD PTR [rcx+rax]
	mov	esi, edx
	mov	edi, eax
	call	dump
	jmp	.L35
.L42:
	nop
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	dump, .-dump
	.section	.rodata
	.align 8
.LC4:
	.string	"N%d: box width 0.3i height 0.3i \"%d\"\n"
	.align 8
.LC5:
	.string	"N%d: box width 0.3i height 0.3i \"%c\"\n"
	.align 8
.LC6:
	.string	"N%d: circle radius 0.15i \"%c\"\n"
.LC7:
	.string	"move to N%d\n"
.LC8:
	.string	"move down 0.5i left %d.%di\n"
	.align 8
.LC9:
	.string	"arrow from left of N%d to top of N%d\n"
.LC10:
	.string	"move down 0.5i"
	.align 8
.LC11:
	.string	"arrow from bottom of N%d to top of N%d\n"
.LC12:
	.string	"move down 0.5i right %d.%di\n"
	.align 8
.LC13:
	.string	"arrow from right of N%d to top of N%d\n"
	.text
	.globl	draw2
	.type	draw2, @function
draw2:
.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	DWORD PTR -8[rbp], esi
	mov	DWORD PTR -12[rbp], edx
	cmp	DWORD PTR -4[rbp], 0
	je	.L52
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Type[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 99
	jne	.L46
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Value[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L47
.L46:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Type[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 118
	jne	.L48
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Value[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L47
.L48:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Type[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L47:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Left[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L49
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Right[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L50
	mov	edx, DWORD PTR -8[rbp]
	movsx	rax, edx
	imul	rax, rax, 274877907
	shr	rax, 32
	sar	eax, 6
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 1000
	mov	eax, edx
	sub	eax, ecx
	mov	edx, DWORD PTR -8[rbp]
	movsx	rcx, edx
	imul	rcx, rcx, 274877907
	shr	rcx, 32
	sar	ecx, 6
	sar	edx, 31
	sub	ecx, edx
	mov	edx, eax
	mov	esi, ecx
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -12[rbp]
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -8[rbp]
	cdq
	idiv	DWORD PTR -12[rbp]
	mov	esi, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Left[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, ecx
	mov	edi, eax
	call	draw2
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Left[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L49
.L50:
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -12[rbp]
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -8[rbp]
	cdq
	idiv	DWORD PTR -12[rbp]
	mov	esi, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Left[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, ecx
	mov	edi, eax
	call	draw2
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Left[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
.L49:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Right[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L43
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Left[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L51
	mov	edx, DWORD PTR -8[rbp]
	movsx	rax, edx
	imul	rax, rax, 274877907
	shr	rax, 32
	sar	eax, 6
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 1000
	mov	eax, edx
	sub	eax, ecx
	mov	edx, DWORD PTR -8[rbp]
	movsx	rcx, edx
	imul	rcx, rcx, 274877907
	shr	rcx, 32
	sar	ecx, 6
	sar	edx, 31
	sub	ecx, edx
	mov	edx, eax
	mov	esi, ecx
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -12[rbp]
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -8[rbp]
	cdq
	idiv	DWORD PTR -12[rbp]
	mov	esi, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Right[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, ecx
	mov	edi, eax
	call	draw2
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Right[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L43
.L51:
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -12[rbp]
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -8[rbp]
	cdq
	idiv	DWORD PTR -12[rbp]
	mov	esi, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Right[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, ecx
	mov	edi, eax
	call	draw2
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Right[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L43
.L52:
	nop
.L43:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	draw2, .-draw2
	.section	.rodata
.LC14:
	.string	".ft C\n.ps 12\n.PS"
.LC15:
	.string	".PE"
	.text
	.globl	draw
	.type	draw, @function
draw:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	lea	rdi, .LC14[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, 24
	mov	esi, 1800
	mov	edi, eax
	call	draw2
	lea	rdi, .LC15[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	draw, .-draw
	.globl	fold
	.type	fold, @function
fold:
.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	DWORD PTR -20[rbp], edi
	cmp	DWORD PTR -20[rbp], 0
	jne	.L55
	mov	eax, 0
	jmp	.L56
.L55:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Left[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edi, eax
	call	fold
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, Left[rip]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Right[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edi, eax
	call	fold
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, Right[rip]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Left[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L57
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Left[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Type[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 99
	jne	.L57
	mov	eax, 1
	jmp	.L58
.L57:
	mov	eax, 0
.L58:
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Right[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L59
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Right[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Type[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 99
	jne	.L59
	mov	eax, 1
	jmp	.L60
.L59:
	mov	eax, 0
.L60:
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -16[rbp], 0
	je	.L61
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Right[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L61
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Type[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 45
	jne	.L61
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Left[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Value[rip]
	mov	eax, DWORD PTR [rdx+rax]
	neg	eax
	mov	ecx, 0
	mov	edx, 0
	mov	esi, eax
	mov	edi, 99
	call	node
	jmp	.L56
.L61:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Left[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L62
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Left[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Value[rip]
	mov	eax, DWORD PTR [rdx+rax]
	jmp	.L63
.L62:
	mov	eax, 0
.L63:
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Right[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L64
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Right[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Value[rip]
	mov	eax, DWORD PTR [rdx+rax]
	jmp	.L65
.L64:
	mov	eax, 0
.L65:
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -16[rbp], 0
	je	.L66
	cmp	DWORD PTR -12[rbp], 0
	je	.L66
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Type[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 47
	je	.L67
	cmp	eax, 47
	jg	.L66
	cmp	eax, 45
	je	.L68
	cmp	eax, 45
	jg	.L66
	cmp	eax, 42
	je	.L69
	cmp	eax, 43
	jne	.L66
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	mov	ecx, 0
	mov	edx, 0
	mov	esi, eax
	mov	edi, 99
	call	node
	jmp	.L56
.L68:
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, DWORD PTR -4[rbp]
	mov	ecx, 0
	mov	edx, 0
	mov	esi, eax
	mov	edi, 99
	call	node
	jmp	.L56
.L69:
	mov	eax, DWORD PTR -8[rbp]
	imul	eax, DWORD PTR -4[rbp]
	mov	ecx, 0
	mov	edx, 0
	mov	esi, eax
	mov	edi, 99
	call	node
	jmp	.L56
.L67:
	cmp	DWORD PTR -4[rbp], 0
	je	.L66
	mov	eax, DWORD PTR -8[rbp]
	cdq
	idiv	DWORD PTR -4[rbp]
	mov	ecx, 0
	mov	edx, 0
	mov	esi, eax
	mov	edi, 99
	call	node
	jmp	.L56
.L66:
	cmp	DWORD PTR -16[rbp], 0
	je	.L70
	cmp	DWORD PTR -8[rbp], 0
	jne	.L70
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Type[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 43
	jne	.L70
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Right[rip]
	mov	eax, DWORD PTR [rdx+rax]
	jmp	.L56
.L70:
	cmp	DWORD PTR -16[rbp], 0
	je	.L71
	cmp	DWORD PTR -8[rbp], 1
	jne	.L71
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Type[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 42
	jne	.L71
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Right[rip]
	mov	eax, DWORD PTR [rdx+rax]
	jmp	.L56
.L71:
	cmp	DWORD PTR -12[rbp], 0
	je	.L72
	cmp	DWORD PTR -4[rbp], 0
	jne	.L72
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Type[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 43
	je	.L73
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Type[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 45
	jne	.L72
.L73:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Left[rip]
	mov	eax, DWORD PTR [rdx+rax]
	jmp	.L56
.L72:
	cmp	DWORD PTR -12[rbp], 0
	je	.L74
	cmp	DWORD PTR -4[rbp], 1
	jne	.L74
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Type[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 42
	je	.L75
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Type[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 47
	jne	.L74
.L75:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Left[rip]
	mov	eax, DWORD PTR [rdx+rax]
	jmp	.L56
.L74:
	cmp	DWORD PTR -12[rbp], 0
	je	.L76
	cmp	DWORD PTR -4[rbp], 0
	je	.L77
.L76:
	cmp	DWORD PTR -16[rbp], 0
	je	.L78
	cmp	DWORD PTR -8[rbp], 0
	jne	.L78
.L77:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Type[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 42
	jne	.L78
	mov	ecx, 0
	mov	edx, 0
	mov	esi, 0
	mov	edi, 99
	call	node
	jmp	.L56
.L78:
	mov	eax, DWORD PTR -20[rbp]
.L56:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	fold, .-fold
	.globl	leaf
	.type	leaf, @function
leaf:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 0
	je	.L80
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Type[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 99
	je	.L81
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Type[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 118
	jne	.L80
.L81:
	mov	eax, 1
	jmp	.L83
.L80:
	mov	eax, 0
.L83:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	leaf, .-leaf
	.globl	rewrite
	.type	rewrite, @function
rewrite:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	cmp	DWORD PTR -20[rbp], 0
	jne	.L85
	mov	eax, 0
	jmp	.L86
.L85:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Left[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edi, eax
	call	rewrite
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, Left[rip]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Right[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edi, eax
	call	rewrite
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, Right[rip]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Type[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 43
	je	.L87
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Type[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 42
	jne	.L88
.L87:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Left[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edi, eax
	call	leaf
	test	eax, eax
	je	.L88
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Right[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edi, eax
	call	leaf
	test	eax, eax
	jne	.L88
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Left[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Right[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, Left[rip]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, Right[rip]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rcx+rdx], eax
.L88:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Type[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 43
	jne	.L89
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Right[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L89
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Right[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Type[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 45
	jne	.L89
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Right[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Right[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L89
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Right[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Left[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, Left[rip]
	mov	eax, DWORD PTR [rcx+rax]
	mov	ecx, edx
	mov	edx, eax
	mov	esi, 0
	mov	edi, 45
	call	node
	jmp	.L86
.L89:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Type[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 45
	jne	.L90
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Left[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L90
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Right[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L90
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Left[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Type[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 99
	jne	.L90
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Left[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Value[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L90
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Right[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	ecx, 0
	mov	edx, eax
	mov	esi, 0
	mov	edi, 45
	call	node
	jmp	.L86
.L90:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Type[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 42
	jne	.L91
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Left[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edi, eax
	call	leaf
	test	eax, eax
	je	.L91
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Right[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L91
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Right[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Type[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 99
	jne	.L91
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Right[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Value[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 2
	jne	.L91
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Left[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, Left[rip]
	mov	eax, DWORD PTR [rcx+rax]
	mov	ecx, edx
	mov	edx, eax
	mov	esi, 0
	mov	edi, 43
	call	node
	jmp	.L86
.L91:
	mov	eax, DWORD PTR -20[rbp]
.L86:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	rewrite, .-rewrite
	.globl	equal
	.type	equal, @function
equal:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	cmp	DWORD PTR -4[rbp], 0
	jne	.L93
	cmp	DWORD PTR -8[rbp], 0
	sete	al
	movzx	eax, al
	jmp	.L94
.L93:
	cmp	DWORD PTR -8[rbp], 0
	jne	.L95
	cmp	DWORD PTR -4[rbp], 0
	sete	al
	movzx	eax, al
	jmp	.L94
.L95:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Type[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, Type[rip]
	mov	eax, DWORD PTR [rcx+rax]
	cmp	edx, eax
	je	.L96
	mov	eax, 0
	jmp	.L94
.L96:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Value[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, Value[rip]
	mov	eax, DWORD PTR [rcx+rax]
	cmp	edx, eax
	je	.L97
	mov	eax, 0
	jmp	.L94
.L97:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Left[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, Left[rip]
	mov	eax, DWORD PTR [rcx+rax]
	mov	esi, edx
	mov	edi, eax
	call	equal
	test	eax, eax
	je	.L98
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Right[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, Right[rip]
	mov	eax, DWORD PTR [rcx+rax]
	mov	esi, edx
	mov	edi, eax
	call	equal
	test	eax, eax
	je	.L98
	mov	eax, 1
	jmp	.L94
.L98:
	mov	eax, 0
.L94:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	equal, .-equal
	.globl	find
	.type	find, @function
find:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	cmp	DWORD PTR -8[rbp], 0
	jne	.L101
	mov	eax, 0
	jmp	.L102
.L101:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	je	.L103
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, edx
	mov	edi, eax
	call	equal
	test	eax, eax
	je	.L103
	mov	eax, 1
	jmp	.L102
.L103:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Left[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, edx
	mov	edi, eax
	call	find
	test	eax, eax
	jne	.L104
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Right[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, edx
	mov	edi, eax
	call	find
	test	eax, eax
	je	.L105
.L104:
	mov	eax, 1
	jmp	.L102
.L105:
	mov	eax, 0
.L102:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	find, .-find
	.globl	size
	.type	size, @function
size:
.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
	cmp	DWORD PTR -20[rbp], 0
	jne	.L108
	mov	eax, 0
	jmp	.L109
.L108:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Left[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edi, eax
	call	size
	lea	ebx, 1[rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Right[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edi, eax
	call	size
	add	eax, ebx
.L109:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	size, .-size
	.globl	Sub
	.bss
	.align 4
	.type	Sub, @object
	.size	Sub, 4
Sub:
	.zero	4
	.globl	K
	.align 4
	.type	K, @object
	.size	K, 4
K:
	.zero	4
	.text
	.globl	trav2
	.type	trav2, @function
trav2:
.LFB21:
	.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 -24[rbp], esi
	cmp	DWORD PTR -24[rbp], 0
	je	.L114
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	je	.L113
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	size
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 2
	jle	.L113
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, edx
	mov	edi, eax
	call	find
	test	eax, eax
	je	.L113
	mov	eax, DWORD PTR K[rip]
	cmp	DWORD PTR -4[rbp], eax
	jle	.L113
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR K[rip], eax
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR Sub[rip], eax
.L113:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Left[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, edx
	mov	edi, eax
	call	trav2
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Right[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, edx
	mov	edi, eax
	call	trav2
	jmp	.L110
.L114:
	nop
.L110:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	trav2, .-trav2
	.globl	maxduptree
	.type	maxduptree, @function
maxduptree:
.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	DWORD PTR -4[rbp], edi
	mov	DWORD PTR Sub[rip], 0
	mov	DWORD PTR K[rip], 0
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, edx
	mov	edi, eax
	call	trav2
	mov	eax, DWORD PTR Sub[rip]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	maxduptree, .-maxduptree
	.globl	replace
	.type	replace, @function
replace:
.LFB23:
	.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	DWORD PTR -24[rbp], esi
	cmp	DWORD PTR -24[rbp], 0
	jne	.L118
	mov	eax, 0
	jmp	.L119
.L118:
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, edx
	mov	edi, eax
	call	equal
	test	eax, eax
	je	.L120
	mov	ecx, 0
	mov	edx, 0
	mov	esi, 64
	mov	edi, 118
	call	node
	jmp	.L119
.L120:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Right[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, edx
	mov	edi, eax
	call	replace
	mov	ebx, eax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Left[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, edx
	mov	edi, eax
	call	replace
	mov	edx, eax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, Value[rip]
	mov	esi, DWORD PTR [rcx+rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, Type[rip]
	mov	eax, DWORD PTR [rcx+rax]
	mov	ecx, ebx
	mov	edi, eax
	call	node
.L119:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE23:
	.size	replace, .-replace
	.globl	cse
	.type	cse, @function
cse:
.LFB24:
	.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	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	maxduptree
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	je	.L122
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, edx
	mov	edi, eax
	call	replace
	mov	DWORD PTR -20[rbp], eax
	mov	ecx, 0
	mov	edx, 0
	mov	esi, 64
	mov	edi, 118
	call	node
	mov	DWORD PTR -4[rbp], eax
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	ecx, edx
	mov	edx, eax
	mov	esi, 0
	mov	edi, 61
	call	node
	mov	DWORD PTR -8[rbp], eax
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	ecx, edx
	mov	edx, eax
	mov	esi, 0
	mov	edi, 44
	call	node
	mov	DWORD PTR -20[rbp], eax
.L122:
	mov	eax, DWORD PTR -20[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE24:
	.size	cse, .-cse
	.globl	comp
	.type	comp, @function
comp:
.LFB25:
	.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 -28[rbp], esi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	expr
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	fold
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	rewrite
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	cse
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	je	.L125
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	draw
	jmp	.L127
.L125:
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, 0
	mov	edi, eax
	call	dump
.L127:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE25:
	.size	comp, .-comp
	.section	.rodata
.LC16:
	.string	"-d"
.LC17:
	.string	""
	.text
	.globl	main
	.type	main, @function
main:
.LFB26:
	.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	DWORD PTR -4[rbp], 0
	cmp	DWORD PTR -20[rbp], 1
	jle	.L129
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L129
	mov	DWORD PTR -4[rbp], 1
	sub	DWORD PTR -20[rbp], 1
	add	QWORD PTR -32[rbp], 8
.L129:
	cmp	DWORD PTR -20[rbp], 1
	jle	.L130
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 8[rax]
	jmp	.L131
.L130:
	lea	rax, .LC17[rip]
.L131:
	mov	edx, DWORD PTR -4[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	comp
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE26:
	.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	"756001.c"
	.text
	.comm	P,4,4
	.comm	Type,4096,4
	.comm	Value,4096,4
	.comm	Left,4096,4
	.comm	Right,4096,4
	.global	Next
	.data
	.align	2
	.type	Next, %object
	.size	Next, 4
Next:
	.word	1
	.section	.rodata
	.align	2
.LC0:
	.ascii	"out of nodes\012\000"
	.text
	.align	2
	.global	node
	.syntax unified
	.arm
	.fpu softvfp
	.type	node, %function
node:
	@ 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]
	str	r3, [fp, #-20]
	ldr	r3, .L4
	ldr	r3, [r3]
	cmp	r3, #1024
	blt	.L2
	ldr	r3, .L4+4
	ldr	r3, [r3]
	mov	r2, #13
	mov	r1, #1
	ldr	r0, .L4+8
	bl	fwrite
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, .L4
	ldr	r3, [r3]
	ldr	r1, .L4+12
	ldr	r2, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, .L4
	ldr	r3, [r3]
	ldr	r1, .L4+16
	ldr	r2, [fp, #-12]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, .L4
	ldr	r3, [r3]
	ldr	r1, .L4+20
	ldr	r2, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, .L4
	ldr	r3, [r3]
	ldr	r1, .L4+24
	ldr	r2, [fp, #-20]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, .L4
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L4
	str	r2, [r1]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	Next
	.word	stderr
	.word	.LC0
	.word	Type
	.word	Value
	.word	Left
	.word	Right
	.size	node, .-node
	.align	2
	.global	skip
	.syntax unified
	.arm
	.fpu softvfp
	.type	skip, %function
skip:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	b	.L7
.L8:
	ldr	r3, .L9
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L9
	str	r3, [r2]
.L7:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, .L9
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #8192
	cmp	r3, #0
	bne	.L8
	nop
	nop
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	P
	.size	skip, .-skip
	.align	2
	.global	factor
	.syntax unified
	.arm
	.fpu softvfp
	.type	factor, %function
factor:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-12]
	bl	skip
	ldr	r3, .L19
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #40
	bne	.L12
	ldr	r3, .L19
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L19
	str	r3, [r2]
	bl	sum
	str	r0, [fp, #-12]
	ldr	r3, .L19
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L19
	str	r3, [r2]
	b	.L13
.L12:
	ldr	r3, .L19
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L14
	ldr	r3, .L19
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L19
	str	r3, [r2]
	bl	factor
	mov	r2, r0
	mov	r3, #0
	mov	r1, #0
	mov	r0, #45
	bl	node
	str	r0, [fp, #-12]
	b	.L13
.L14:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, .L19
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	beq	.L15
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L16
.L17:
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, .L19
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r2, r3
	sub	r3, r3, #48
	str	r3, [fp, #-8]
	ldr	r3, .L19
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L19
	str	r3, [r2]
.L16:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, .L19
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	bne	.L17
	mov	r3, #0
	mov	r2, #0
	ldr	r1, [fp, #-8]
	mov	r0, #99
	bl	node
	str	r0, [fp, #-12]
	b	.L13
.L15:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, .L19
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #1024
	cmp	r3, #0
	beq	.L13
	ldr	r3, .L19
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L19
	str	r2, [r1]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	mov	r3, #0
	mov	r2, #0
	mov	r0, #118
	bl	node
	str	r0, [fp, #-12]
.L13:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	P
	.size	factor, .-factor
	.align	2
	.global	term
	.syntax unified
	.arm
	.fpu softvfp
	.type	term, %function
term:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	bl	skip
	bl	factor
	str	r0, [fp, #-12]
.L27:
	bl	skip
	ldr	r3, .L30
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #42
	beq	.L22
	cmp	r3, #47
	beq	.L23
	b	.L28
.L22:
	ldr	r3, .L30
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L30
	str	r3, [r2]
	bl	factor
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	mov	r1, #0
	mov	r0, #42
	bl	node
	str	r0, [fp, #-12]
	b	.L25
.L23:
	ldr	r3, .L30
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L30
	str	r3, [r2]
	bl	factor
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	mov	r1, #0
	mov	r0, #47
	bl	node
	str	r0, [fp, #-12]
	b	.L25
.L28:
	ldr	r3, [fp, #-12]
	b	.L29
.L25:
	b	.L27
.L29:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	P
	.size	term, .-term
	.align	2
	.global	sum
	.syntax unified
	.arm
	.fpu softvfp
	.type	sum, %function
sum:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	bl	skip
	bl	term
	str	r0, [fp, #-12]
.L38:
	bl	skip
	ldr	r3, .L41
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #43
	beq	.L33
	cmp	r3, #45
	beq	.L34
	b	.L39
.L33:
	ldr	r3, .L41
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L41
	str	r3, [r2]
	bl	term
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	mov	r1, #0
	mov	r0, #43
	bl	node
	str	r0, [fp, #-12]
	b	.L36
.L34:
	ldr	r3, .L41
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L41
	str	r3, [r2]
	bl	term
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	mov	r1, #0
	mov	r0, #45
	bl	node
	str	r0, [fp, #-12]
	b	.L36
.L39:
	ldr	r3, [fp, #-12]
	b	.L40
.L36:
	b	.L38
.L40:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L42:
	.align	2
.L41:
	.word	P
	.size	sum, .-sum
	.align	2
	.global	expr
	.syntax unified
	.arm
	.fpu softvfp
	.type	expr, %function
expr:
	@ 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	r2, .L45
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	bl	sum
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L46:
	.align	2
.L45:
	.word	P
	.size	expr, .-expr
	.section	.rodata
	.align	2
.LC1:
	.ascii	"  \000"
	.align	2
.LC2:
	.ascii	"(%d)\000"
	.align	2
.LC3:
	.ascii	"(%c)\000"
	.text
	.align	2
	.global	dump
	.syntax unified
	.arm
	.fpu softvfp
	.type	dump, %function
dump:
	@ 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
	beq	.L54
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L50
.L51:
	ldr	r0, .L55
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L50:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L51
	ldr	r2, .L55+4
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	putchar
	ldr	r2, .L55+4
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #99
	bne	.L52
	ldr	r2, .L55+8
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L55+12
	bl	printf
	b	.L53
.L52:
	ldr	r2, .L55+4
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #118
	bne	.L53
	ldr	r2, .L55+8
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L55+16
	bl	printf
.L53:
	mov	r0, #10
	bl	putchar
	ldr	r2, .L55+20
	ldr	r3, [fp, #-16]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	dump
	ldr	r2, .L55+24
	ldr	r3, [fp, #-16]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	dump
	b	.L47
.L54:
	nop
.L47:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L56:
	.align	2
.L55:
	.word	.LC1
	.word	Type
	.word	Value
	.word	.LC2
	.word	.LC3
	.word	Left
	.word	Right
	.size	dump, .-dump
	.section	.rodata
	.align	2
.LC4:
	.ascii	"N%d: box width 0.3i height 0.3i \"%d\"\012\000"
	.align	2
.LC5:
	.ascii	"N%d: box width 0.3i height 0.3i \"%c\"\012\000"
	.align	2
.LC6:
	.ascii	"N%d: circle radius 0.15i \"%c\"\012\000"
	.align	2
.LC7:
	.ascii	"move to N%d\012\000"
	.align	2
.LC8:
	.ascii	"move down 0.5i left %d.%di\012\000"
	.global	__aeabi_idiv
	.align	2
.LC9:
	.ascii	"arrow from left of N%d to top of N%d\012\000"
	.align	2
.LC10:
	.ascii	"move down 0.5i\000"
	.align	2
.LC11:
	.ascii	"arrow from bottom of N%d to top of N%d\012\000"
	.align	2
.LC12:
	.ascii	"move down 0.5i right %d.%di\012\000"
	.align	2
.LC13:
	.ascii	"arrow from right of N%d to top of N%d\012\000"
	.text
	.align	2
	.global	draw2
	.syntax unified
	.arm
	.fpu softvfp
	.type	draw2, %function
draw2:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L66
	ldr	r2, .L67
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #99
	bne	.L60
	ldr	r2, .L67+4
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, r3
	ldr	r1, [fp, #-16]
	ldr	r0, .L67+8
	bl	printf
	b	.L61
.L60:
	ldr	r2, .L67
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #118
	bne	.L62
	ldr	r2, .L67+4
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, r3
	ldr	r1, [fp, #-16]
	ldr	r0, .L67+12
	bl	printf
	b	.L61
.L62:
	ldr	r2, .L67
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, r3
	ldr	r1, [fp, #-16]
	ldr	r0, .L67+16
	bl	printf
.L61:
	ldr	r2, .L67+20
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L63
	ldr	r1, [fp, #-16]
	ldr	r0, .L67+24
	bl	printf
	ldr	r2, .L67+28
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L64
	ldr	r3, [fp, #-20]
	ldr	r2, .L67+32
	smull	r1, r2, r3, r2
	asr	r2, r2, #6
	asr	r3, r3, #31
	sub	r0, r2, r3
	ldr	r1, [fp, #-20]
	ldr	r3, .L67+32
	smull	r2, r3, r1, r3
	asr	r2, r3, #6
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r2, r1, r3
	mov	r1, r0
	ldr	r0, .L67+36
	bl	printf
	ldr	r2, .L67+20
	ldr	r3, [fp, #-16]
	ldr	r4, [r2, r3, lsl #2]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-20]
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r1, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	mov	r2, r3
	mov	r0, r4
	bl	draw2
	ldr	r2, .L67+20
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, r3
	ldr	r1, [fp, #-16]
	ldr	r0, .L67+40
	bl	printf
	b	.L63
.L64:
	ldr	r0, .L67+44
	bl	puts
	ldr	r2, .L67+20
	ldr	r3, [fp, #-16]
	ldr	r4, [r2, r3, lsl #2]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-20]
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r1, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	mov	r2, r3
	mov	r0, r4
	bl	draw2
	ldr	r2, .L67+20
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, r3
	ldr	r1, [fp, #-16]
	ldr	r0, .L67+48
	bl	printf
.L63:
	ldr	r2, .L67+28
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L57
	ldr	r1, [fp, #-16]
	ldr	r0, .L67+24
	bl	printf
	ldr	r2, .L67+20
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L65
	ldr	r3, [fp, #-20]
	ldr	r2, .L67+32
	smull	r1, r2, r3, r2
	asr	r2, r2, #6
	asr	r3, r3, #31
	sub	r0, r2, r3
	ldr	r1, [fp, #-20]
	ldr	r3, .L67+32
	smull	r2, r3, r1, r3
	asr	r2, r3, #6
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r2, r1, r3
	mov	r1, r0
	ldr	r0, .L67+52
	bl	printf
	ldr	r2, .L67+28
	ldr	r3, [fp, #-16]
	ldr	r4, [r2, r3, lsl #2]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-20]
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r1, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	mov	r2, r3
	mov	r0, r4
	bl	draw2
	ldr	r2, .L67+28
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, r3
	ldr	r1, [fp, #-16]
	ldr	r0, .L67+56
	bl	printf
	b	.L57
.L65:
	ldr	r0, .L67+44
	bl	puts
	ldr	r2, .L67+28
	ldr	r3, [fp, #-16]
	ldr	r4, [r2, r3, lsl #2]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-20]
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r1, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	mov	r2, r3
	mov	r0, r4
	bl	draw2
	ldr	r2, .L67+28
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, r3
	ldr	r1, [fp, #-16]
	ldr	r0, .L67+48
	bl	printf
	b	.L57
.L66:
	nop
.L57:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L68:
	.align	2
.L67:
	.word	Type
	.word	Value
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	Left
	.word	.LC7
	.word	Right
	.word	274877907
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	draw2, .-draw2
	.section	.rodata
	.align	2
.LC14:
	.ascii	".ft C\012.ps 12\012.PS\000"
	.align	2
.LC15:
	.ascii	".PE\000"
	.text
	.align	2
	.global	draw
	.syntax unified
	.arm
	.fpu softvfp
	.type	draw, %function
draw:
	@ 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, .L70
	bl	puts
	mov	r2, #24
	ldr	r1, .L70+4
	ldr	r0, [fp, #-8]
	bl	draw2
	ldr	r0, .L70+8
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L71:
	.align	2
.L70:
	.word	.LC14
	.word	1800
	.word	.LC15
	.size	draw, .-draw
	.align	2
	.global	fold
	.syntax unified
	.arm
	.fpu softvfp
	.type	fold, %function
fold:
	@ 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, [fp, #-24]
	cmp	r3, #0
	bne	.L73
	mov	r3, #0
	b	.L74
.L73:
	ldr	r2, .L99
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	fold
	mov	r2, r0
	ldr	r1, .L99
	ldr	r3, [fp, #-24]
	str	r2, [r1, r3, lsl #2]
	ldr	r2, .L99+4
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	fold
	mov	r2, r0
	ldr	r1, .L99+4
	ldr	r3, [fp, #-24]
	str	r2, [r1, r3, lsl #2]
	ldr	r2, .L99
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L75
	ldr	r2, .L99
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L99+8
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #99
	bne	.L75
	mov	r3, #1
	b	.L76
.L75:
	mov	r3, #0
.L76:
	str	r3, [fp, #-20]
	ldr	r2, .L99+4
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L77
	ldr	r2, .L99+4
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L99+8
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #99
	bne	.L77
	mov	r3, #1
	b	.L78
.L77:
	mov	r3, #0
.L78:
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L79
	ldr	r2, .L99+4
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L79
	ldr	r2, .L99+8
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #45
	bne	.L79
	ldr	r2, .L99
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L99+12
	ldr	r3, [r2, r3, lsl #2]
	rsb	r1, r3, #0
	mov	r3, #0
	mov	r2, #0
	mov	r0, #99
	bl	node
	mov	r3, r0
	b	.L74
.L79:
	ldr	r2, .L99
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L80
	ldr	r2, .L99
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L99+12
	ldr	r3, [r2, r3, lsl #2]
	b	.L81
.L80:
	mov	r3, #0
.L81:
	str	r3, [fp, #-12]
	ldr	r2, .L99+4
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L82
	ldr	r2, .L99+4
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L99+12
	ldr	r3, [r2, r3, lsl #2]
	b	.L83
.L82:
	mov	r3, #0
.L83:
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L84
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L84
	ldr	r2, .L99+8
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	sub	r3, r3, #42
	cmp	r3, #5
	ldrls	pc, [pc, r3, asl #2]
	b	.L84
.L86:
	.word	.L89
	.word	.L88
	.word	.L84
	.word	.L87
	.word	.L84
	.word	.L85
.L88:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r1, r2, r3
	mov	r3, #0
	mov	r2, #0
	mov	r0, #99
	bl	node
	mov	r3, r0
	b	.L74
.L87:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	sub	r1, r2, r3
	mov	r3, #0
	mov	r2, #0
	mov	r0, #99
	bl	node
	mov	r3, r0
	b	.L74
.L89:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	mul	r1, r2, r3
	mov	r3, #0
	mov	r2, #0
	mov	r0, #99
	bl	node
	mov	r3, r0
	b	.L74
.L85:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L84
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r1, r3
	mov	r3, #0
	mov	r2, #0
	mov	r0, #99
	bl	node
	mov	r3, r0
	b	.L74
.L84:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L90
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L90
	ldr	r2, .L99+8
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #43
	bne	.L90
	ldr	r2, .L99+4
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	b	.L74
.L90:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L91
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bne	.L91
	ldr	r2, .L99+8
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #42
	bne	.L91
	ldr	r2, .L99+4
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	b	.L74
.L91:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L92
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L92
	ldr	r2, .L99+8
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #43
	beq	.L93
	ldr	r2, .L99+8
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #45
	bne	.L92
.L93:
	ldr	r2, .L99
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	b	.L74
.L92:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L94
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bne	.L94
	ldr	r2, .L99+8
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #42
	beq	.L95
	ldr	r2, .L99+8
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #47
	bne	.L94
.L95:
	ldr	r2, .L99
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	b	.L74
.L94:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L96
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L97
.L96:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L98
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L98
.L97:
	ldr	r2, .L99+8
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #42
	bne	.L98
	mov	r3, #0
	mov	r2, #0
	mov	r1, #0
	mov	r0, #99
	bl	node
	mov	r3, r0
	b	.L74
.L98:
	ldr	r3, [fp, #-24]
.L74:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L100:
	.align	2
.L99:
	.word	Left
	.word	Right
	.word	Type
	.word	Value
	.size	fold, .-fold
	.align	2
	.global	leaf
	.syntax unified
	.arm
	.fpu softvfp
	.type	leaf, %function
leaf:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L102
	ldr	r2, .L106
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #99
	beq	.L103
	ldr	r2, .L106
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #118
	bne	.L102
.L103:
	mov	r3, #1
	b	.L105
.L102:
	mov	r3, #0
.L105:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L107:
	.align	2
.L106:
	.word	Type
	.size	leaf, .-leaf
	.align	2
	.global	rewrite
	.syntax unified
	.arm
	.fpu softvfp
	.type	rewrite, %function
rewrite:
	@ 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]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L109
	mov	r3, #0
	b	.L110
.L109:
	ldr	r2, .L116
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	rewrite
	mov	r2, r0
	ldr	r1, .L116
	ldr	r3, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
	ldr	r2, .L116+4
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	rewrite
	mov	r2, r0
	ldr	r1, .L116+4
	ldr	r3, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
	ldr	r2, .L116+8
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #43
	beq	.L111
	ldr	r2, .L116+8
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #42
	bne	.L112
.L111:
	ldr	r2, .L116
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	leaf
	mov	r3, r0
	cmp	r3, #0
	beq	.L112
	ldr	r2, .L116+4
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	leaf
	mov	r3, r0
	cmp	r3, #0
	bne	.L112
	ldr	r2, .L116
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-8]
	ldr	r2, .L116+4
	ldr	r3, [fp, #-16]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L116
	ldr	r3, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
	ldr	r1, .L116+4
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
.L112:
	ldr	r2, .L116+8
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #43
	bne	.L113
	ldr	r2, .L116+4
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L113
	ldr	r2, .L116+4
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L116+8
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #45
	bne	.L113
	ldr	r2, .L116+4
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L116+4
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L113
	ldr	r2, .L116
	ldr	r3, [fp, #-16]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L116+4
	ldr	r3, [fp, #-16]
	ldr	r3, [r1, r3, lsl #2]
	ldr	r1, .L116
	ldr	r3, [r1, r3, lsl #2]
	mov	r1, #0
	mov	r0, #45
	bl	node
	mov	r3, r0
	b	.L110
.L113:
	ldr	r2, .L116+8
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #45
	bne	.L114
	ldr	r2, .L116
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L114
	ldr	r2, .L116+4
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L114
	ldr	r2, .L116
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L116+8
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #99
	bne	.L114
	ldr	r2, .L116
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L116+12
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L114
	ldr	r2, .L116+4
	ldr	r3, [fp, #-16]
	ldr	r2, [r2, r3, lsl #2]
	mov	r3, #0
	mov	r1, #0
	mov	r0, #45
	bl	node
	mov	r3, r0
	b	.L110
.L114:
	ldr	r2, .L116+8
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #42
	bne	.L115
	ldr	r2, .L116
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	leaf
	mov	r3, r0
	cmp	r3, #0
	beq	.L115
	ldr	r2, .L116+4
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L115
	ldr	r2, .L116+4
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L116+8
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #99
	bne	.L115
	ldr	r2, .L116+4
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L116+12
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #2
	bne	.L115
	ldr	r2, .L116
	ldr	r3, [fp, #-16]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L116
	ldr	r3, [fp, #-16]
	ldr	r3, [r1, r3, lsl #2]
	mov	r1, #0
	mov	r0, #43
	bl	node
	mov	r3, r0
	b	.L110
.L115:
	ldr	r3, [fp, #-16]
.L110:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L117:
	.align	2
.L116:
	.word	Left
	.word	Right
	.word	Type
	.word	Value
	.size	rewrite, .-rewrite
	.align	2
	.global	equal
	.syntax unified
	.arm
	.fpu softvfp
	.type	equal, %function
equal:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L119
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	b	.L120
.L119:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L121
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	b	.L120
.L121:
	ldr	r2, .L126
	ldr	r3, [fp, #-8]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L126
	ldr	r3, [fp, #-12]
	ldr	r3, [r1, r3, lsl #2]
	cmp	r2, r3
	beq	.L122
	mov	r3, #0
	b	.L120
.L122:
	ldr	r2, .L126+4
	ldr	r3, [fp, #-8]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L126+4
	ldr	r3, [fp, #-12]
	ldr	r3, [r1, r3, lsl #2]
	cmp	r2, r3
	beq	.L123
	mov	r3, #0
	b	.L120
.L123:
	ldr	r2, .L126+8
	ldr	r3, [fp, #-8]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L126+8
	ldr	r3, [fp, #-12]
	ldr	r3, [r1, r3, lsl #2]
	mov	r1, r3
	mov	r0, r2
	bl	equal
	mov	r3, r0
	cmp	r3, #0
	beq	.L124
	ldr	r2, .L126+12
	ldr	r3, [fp, #-8]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L126+12
	ldr	r3, [fp, #-12]
	ldr	r3, [r1, r3, lsl #2]
	mov	r1, r3
	mov	r0, r2
	bl	equal
	mov	r3, r0
	cmp	r3, #0
	beq	.L124
	mov	r3, #1
	b	.L120
.L124:
	mov	r3, #0
.L120:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L127:
	.align	2
.L126:
	.word	Type
	.word	Value
	.word	Left
	.word	Right
	.size	equal, .-equal
	.align	2
	.global	find
	.syntax unified
	.arm
	.fpu softvfp
	.type	find, %function
find:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L129
	mov	r3, #0
	b	.L130
.L129:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	beq	.L131
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	equal
	mov	r3, r0
	cmp	r3, #0
	beq	.L131
	mov	r3, #1
	b	.L130
.L131:
	ldr	r2, .L135
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	find
	mov	r3, r0
	cmp	r3, #0
	bne	.L132
	ldr	r2, .L135+4
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	find
	mov	r3, r0
	cmp	r3, #0
	beq	.L133
.L132:
	mov	r3, #1
	b	.L130
.L133:
	mov	r3, #0
.L130:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L136:
	.align	2
.L135:
	.word	Left
	.word	Right
	.size	find, .-find
	.align	2
	.global	size
	.syntax unified
	.arm
	.fpu softvfp
	.type	size, %function
size:
	@ 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]
	cmp	r3, #0
	bne	.L138
	mov	r3, #0
	b	.L139
.L138:
	ldr	r2, .L140
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	size
	mov	r3, r0
	add	r4, r3, #1
	ldr	r2, .L140+4
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	size
	mov	r3, r0
	add	r3, r4, r3
.L139:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L141:
	.align	2
.L140:
	.word	Left
	.word	Right
	.size	size, .-size
	.comm	Sub,4,4
	.comm	K,4,4
	.align	2
	.global	trav2
	.syntax unified
	.arm
	.fpu softvfp
	.type	trav2, %function
trav2:
	@ 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, #-20]
	cmp	r3, #0
	beq	.L146
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	beq	.L145
	ldr	r0, [fp, #-20]
	bl	size
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	ble	.L145
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	find
	mov	r3, r0
	cmp	r3, #0
	beq	.L145
	ldr	r3, .L147
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	ble	.L145
	ldr	r2, .L147
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	ldr	r2, .L147+4
	ldr	r3, [fp, #-20]
	str	r3, [r2]
.L145:
	ldr	r2, .L147+8
	ldr	r3, [fp, #-20]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	trav2
	ldr	r2, .L147+12
	ldr	r3, [fp, #-20]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	trav2
	b	.L142
.L146:
	nop
.L142:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L148:
	.align	2
.L147:
	.word	K
	.word	Sub
	.word	Left
	.word	Right
	.size	trav2, .-trav2
	.align	2
	.global	maxduptree
	.syntax unified
	.arm
	.fpu softvfp
	.type	maxduptree, %function
maxduptree:
	@ 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, .L151
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L151+4
	mov	r2, #0
	str	r2, [r3]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	trav2
	ldr	r3, .L151
	ldr	r3, [r3]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L152:
	.align	2
.L151:
	.word	Sub
	.word	K
	.size	maxduptree, .-maxduptree
	.align	2
	.global	replace
	.syntax unified
	.arm
	.fpu softvfp
	.type	replace, %function
replace:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #12
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L154
	mov	r3, #0
	b	.L155
.L154:
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	equal
	mov	r3, r0
	cmp	r3, #0
	beq	.L156
	mov	r3, #0
	mov	r2, #0
	mov	r1, #64
	mov	r0, #118
	bl	node
	mov	r3, r0
	b	.L155
.L156:
	ldr	r2, .L157
	ldr	r3, [fp, #-28]
	ldr	r4, [r2, r3, lsl #2]
	ldr	r2, .L157+4
	ldr	r3, [fp, #-28]
	ldr	r5, [r2, r3, lsl #2]
	ldr	r2, .L157+8
	ldr	r3, [fp, #-28]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	replace
	mov	r6, r0
	ldr	r2, .L157+12
	ldr	r3, [fp, #-28]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	replace
	mov	r3, r0
	mov	r2, r6
	mov	r1, r5
	mov	r0, r4
	bl	node
	mov	r3, r0
.L155:
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L158:
	.align	2
.L157:
	.word	Type
	.word	Value
	.word	Left
	.word	Right
	.size	replace, .-replace
	.align	2
	.global	cse
	.syntax unified
	.arm
	.fpu softvfp
	.type	cse, %function
cse:
	@ 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]
	ldr	r0, [fp, #-16]
	bl	maxduptree
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L160
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-12]
	bl	replace
	str	r0, [fp, #-16]
	mov	r3, #0
	mov	r2, #0
	mov	r1, #64
	mov	r0, #118
	bl	node
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	mov	r1, #0
	mov	r0, #61
	bl	node
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	mov	r1, #0
	mov	r0, #44
	bl	node
	str	r0, [fp, #-16]
.L160:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	cse, .-cse
	.align	2
	.global	comp
	.syntax unified
	.arm
	.fpu softvfp
	.type	comp, %function
comp:
	@ 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	expr
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	fold
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	rewrite
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	cse
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L163
	ldr	r0, [fp, #-8]
	bl	draw
	b	.L165
.L163:
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	dump
.L165:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	comp, .-comp
	.section	.rodata
	.align	2
.LC16:
	.ascii	"-d\000"
	.align	2
.LC17:
	.ascii	"\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, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	ble	.L167
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L171
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L167
	mov	r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	str	r3, [fp, #-20]
.L167:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	ble	.L168
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	b	.L169
.L168:
	ldr	r3, .L171+4
.L169:
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	comp
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L172:
	.align	2
.L171:
	.word	.LC16
	.word	.LC17
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
