	.file	"405237.c"
	.intel_syntax noprefix
	.text
	.globl	parser_advance
	.type	parser_advance, @function
parser_advance:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], rdx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	parser_advance, .-parser_advance
	.globl	parser_read
	.type	parser_read, @function
parser_read:
.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
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	rdx, rax
	jbe	.L3
	mov	eax, -1
	jmp	.L4
.L3:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -1[rbp], al
	movsx	eax, BYTE PTR -1[rbp]
	cmp	eax, 32
	seta	dl
	test	dl, dl
	jne	.L7
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	movabs	rax, 4294977024
	and	rax, rdx
	test	rax, rax
	setne	al
	test	al, al
	je	.L7
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	parser_advance
.L7:
	nop
.L6:
	mov	rax, QWORD PTR -32[rbp]
	movzx	edx, BYTE PTR -1[rbp]
	mov	BYTE PTR [rax], dl
	mov	eax, 0
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	parser_read, .-parser_read
	.globl	parser_match
	.type	parser_match, @function
parser_match:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	eax, esi
	mov	BYTE PTR -28[rbp], al
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -9[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	parser_read
	test	eax, eax
	jns	.L9
	mov	eax, 0
	jmp	.L12
.L9:
	movzx	eax, BYTE PTR -9[rbp]
	cmp	BYTE PTR -28[rbp], al
	jne	.L11
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	parser_advance
	mov	eax, 1
	jmp	.L12
.L11:
	mov	eax, 0
.L12:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	parser_match, .-parser_match
	.globl	create_var
	.type	create_var, @function
create_var:
.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, 32
	mov	eax, edi
	mov	BYTE PTR -20[rbp], al
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L15
	mov	eax, 0
	jmp	.L16
.L15:
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], 1
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 4[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR -20[rbp]
	mov	BYTE PTR 8[rax], dl
	mov	rax, QWORD PTR -8[rbp]
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	create_var, .-create_var
	.globl	create_func
	.type	create_func, @function
create_func:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	eax, edi
	mov	QWORD PTR -32[rbp], rsi
	mov	BYTE PTR -20[rbp], al
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L18
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	deref_expr
	mov	eax, 0
	jmp	.L19
.L18:
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], 1
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 4[rax], 1
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR -20[rbp]
	mov	BYTE PTR 8[rax], dl
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	create_func, .-create_func
	.globl	create_app
	.type	create_app, @function
create_app:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L21
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	deref_expr
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	deref_expr
	mov	eax, 0
	jmp	.L22
.L21:
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], 1
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 4[rax], 2
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	create_app, .-create_app
	.globl	ref_expr
	.type	ref_expr, @function
ref_expr:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, 2
	je	.L24
	cmp	eax, 2
	ja	.L25
	test	eax, eax
	je	.L28
	cmp	eax, 1
	jne	.L25
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	ref_expr
	jmp	.L25
.L24:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	ref_expr
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	ref_expr
	jmp	.L25
.L28:
	nop
.L25:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	ref_expr, .-ref_expr
	.globl	deref_expr
	.type	deref_expr, @function
deref_expr:
.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	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, 2
	je	.L30
	cmp	eax, 2
	ja	.L31
	test	eax, eax
	je	.L35
	cmp	eax, 1
	jne	.L31
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	deref_expr
	jmp	.L31
.L30:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	deref_expr
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	deref_expr
	jmp	.L31
.L35:
	nop
.L31:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L36
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
.L36:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	deref_expr, .-deref_expr
	.globl	deref_node
	.type	deref_node, @function
deref_node:
.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	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L39
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
.L39:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	deref_node, .-deref_node
	.section	.rodata
.LC0:
	.string	"(%c."
	.text
	.globl	print_expr_internal
	.type	print_expr_internal, @function
print_expr_internal:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, 2
	je	.L41
	cmp	eax, 2
	ja	.L45
	test	eax, eax
	je	.L43
	cmp	eax, 1
	je	.L44
	jmp	.L45
.L43:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 8[rax]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	jmp	.L42
.L44:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 8[rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	print_expr_internal
	mov	edi, 41
	call	putchar@PLT
	jmp	.L42
.L41:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	print_expr_internal
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	print_expr_internal
	nop
.L42:
.L45:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	print_expr_internal, .-print_expr_internal
	.globl	print_expr
	.type	print_expr, @function
print_expr:
.LFB16:
	.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	print_expr_internal
	mov	rax, QWORD PTR stdout[rip]
	mov	rsi, rax
	mov	edi, 10
	call	putc@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	print_expr, .-print_expr
	.section	.rodata
.LC1:
	.string	"failed to open file"
	.align 8
.LC2:
	.string	"unable to map file into memory"
	.text
	.globl	read_file
	.type	read_file, @function
read_file:
.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, 192
	mov	QWORD PTR -184[rbp], rdi
	mov	QWORD PTR -192[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -184[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -172[rbp], eax
	cmp	DWORD PTR -172[rbp], 0
	jns	.L48
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, 0
	jmp	.L51
.L48:
	lea	rdx, -160[rbp]
	mov	eax, DWORD PTR -172[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fstat@PLT
	mov	rax, QWORD PTR -112[rbp]
	mov	rsi, rax
	mov	eax, DWORD PTR -172[rbp]
	mov	r9d, 0
	mov	r8d, eax
	mov	ecx, 2
	mov	edx, 1
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR -168[rbp], rax
	cmp	QWORD PTR -168[rbp], -1
	jne	.L50
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	eax, 0
	jmp	.L51
.L50:
	mov	rax, QWORD PTR -112[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -192[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -168[rbp]
.L51:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L52
	call	__stack_chk_fail@PLT
.L52:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	read_file, .-read_file
	.globl	parse_name
	.type	parse_name, @function
parse_name:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -9[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	parser_read
	test	eax, eax
	js	.L54
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movzx	eax, BYTE PTR -9[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	.L55
.L54:
	mov	eax, -1
	jmp	.L57
.L55:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	parser_advance
	movzx	edx, BYTE PTR -9[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	BYTE PTR [rax], dl
	mov	eax, 0
.L57:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L58
	call	__stack_chk_fail@PLT
.L58:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	parse_name, .-parse_name
	.section	.rodata
.LC3:
	.string	"failed to parse name"
	.text
	.globl	parse_var
	.type	parse_var, @function
parse_var:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -17[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	parse_name
	test	eax, eax
	jns	.L60
	lea	rax, .LC3[rip]
	mov	QWORD PTR -16[rbp], rax
	nop
.L61:
	mov	eax, 0
	jmp	.L63
.L60:
	movzx	eax, BYTE PTR -17[rbp]
	movsx	eax, al
	mov	edi, eax
	call	create_var
.L63:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L64
	call	__stack_chk_fail@PLT
.L64:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	parse_var, .-parse_var
	.section	.rodata
.LC4:
	.string	"failed to match '('"
.LC5:
	.string	"failed to match'.'"
.LC6:
	.string	"failed to parse body"
.LC7:
	.string	"failed to match ')'"
	.text
	.globl	parse_func
	.type	parse_func, @function
parse_func:
.LFB20:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 40
	mov	rdi, rax
	call	parser_match
	xor	eax, 1
	test	al, al
	je	.L66
	lea	rax, .LC4[rip]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L67
.L66:
	lea	rdx, -25[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	parse_name
	test	eax, eax
	jns	.L68
	lea	rax, .LC3[rip]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L67
.L68:
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 46
	mov	rdi, rax
	call	parser_match
	xor	eax, 1
	test	al, al
	je	.L69
	lea	rax, .LC5[rip]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L67
.L69:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	parse_expr
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L70
	lea	rax, .LC6[rip]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L67
.L70:
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 41
	mov	rdi, rax
	call	parser_match
	xor	eax, 1
	test	al, al
	je	.L71
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	deref_expr
	lea	rax, .LC7[rip]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L67
.L71:
	movzx	eax, BYTE PTR -25[rbp]
	movsx	eax, al
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	create_func
	jmp	.L73
.L67:
	mov	eax, 0
.L73:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L74
	call	__stack_chk_fail@PLT
.L74:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	parse_func, .-parse_func
	.section	.rodata
.LC8:
	.string	"at end of byffer"
.LC9:
	.string	"failed to parse function"
.LC10:
	.string	"failed to parse variable"
	.text
	.globl	parse_expr_internal
	.type	parse_expr_internal, @function
parse_expr_internal:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -25[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	parser_read
	test	eax, eax
	jns	.L76
	lea	rax, .LC8[rip]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L77
.L76:
	movzx	eax, BYTE PTR -25[rbp]
	movsx	eax, al
	cmp	eax, 40
	je	.L78
	cmp	eax, 41
	je	.L79
	jmp	.L87
.L78:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	parse_func
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L88
	lea	rax, .LC9[rip]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L77
.L79:
	mov	eax, 0
	jmp	.L85
.L87:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	parse_var
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L89
	lea	rax, .LC10[rip]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L77
.L88:
	nop
	jmp	.L82
.L89:
	nop
.L82:
	mov	rax, QWORD PTR -24[rbp]
	jmp	.L85
.L77:
	mov	eax, 0
.L85:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L86
	call	__stack_chk_fail@PLT
.L86:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	parse_expr_internal, .-parse_expr_internal
	.section	.rodata
.LC11:
	.string	"unspecified"
.LC12:
	.string	"failed to build basis"
.LC13:
	.string	"creating app failed"
.LC14:
	.string	"[app] %s\n"
	.text
	.globl	parse_expr
	.type	parse_expr, @function
parse_expr:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	parse_expr_internal
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L91
	lea	rax, .LC11[rip]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L92
.L91:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	parse_expr_internal
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L93
	mov	rax, QWORD PTR -16[rbp]
	jmp	.L94
.L93:
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	create_app
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L96
	lea	rax, .LC12[rip]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L92
.L97:
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	create_app
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L96
	lea	rax, .LC13[rip]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L92
.L96:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	parse_expr_internal
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L97
	mov	rax, QWORD PTR -16[rbp]
	jmp	.L94
.L92:
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
.L94:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	parse_expr, .-parse_expr
	.globl	parse_buffer
	.type	parse_buffer, @function
parse_buffer:
.LFB23:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	QWORD PTR -16[rbp], 0
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	parse_expr
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L100
	call	__stack_chk_fail@PLT
.L100:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE23:
	.size	parse_buffer, .-parse_buffer
	.globl	substitute
	.type	substitute, @function
substitute:
.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	QWORD PTR -8[rbp], rdi
	mov	eax, esi
	mov	QWORD PTR -24[rbp], rdx
	mov	BYTE PTR -12[rbp], al
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, 2
	je	.L102
	cmp	eax, 2
	ja	.L103
	test	eax, eax
	je	.L104
	cmp	eax, 1
	je	.L105
	jmp	.L103
.L104:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 8[rax]
	cmp	BYTE PTR -12[rbp], al
	jne	.L109
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	deref_expr
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	ref_expr
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L109
.L105:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 8[rax]
	cmp	BYTE PTR -12[rbp], al
	je	.L110
	movsx	ecx, BYTE PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	substitute
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rdx], rax
	jmp	.L110
.L102:
	movsx	ecx, BYTE PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	substitute
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rdx], rax
	movsx	ecx, BYTE PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	substitute
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rdx], rax
	jmp	.L103
.L109:
	nop
	jmp	.L103
.L110:
	nop
.L103:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE24:
	.size	substitute, .-substitute
	.globl	beta_reduce
	.type	beta_reduce, @function
beta_reduce:
.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	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, 1
	je	.L112
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	deref_expr
	mov	rax, QWORD PTR -24[rbp]
	jmp	.L113
.L112:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 8[rax]
	movsx	ecx, al
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdx, QWORD PTR -32[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	substitute
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	deref_node
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	deref_expr
	mov	rax, QWORD PTR -8[rbp]
.L113:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE25:
	.size	beta_reduce, .-beta_reduce
	.globl	apply
	.type	apply, @function
apply:
.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	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	deref_node
	jmp	.L115
.L116:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	apply
	mov	QWORD PTR -16[rbp], rax
.L115:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, 2
	je	.L116
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	beta_reduce
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE26:
	.size	apply, .-apply
	.globl	reduce_expr
	.type	reduce_expr, @function
reduce_expr:
.LFB27:
	.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	print_expr
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, 2
	je	.L119
	cmp	eax, 2
	ja	.L120
	test	eax, eax
	je	.L124
	cmp	eax, 1
	jne	.L120
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	reduce_expr
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rdx], rax
	jmp	.L120
.L119:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	apply
	mov	rdi, rax
	call	reduce_expr
	mov	QWORD PTR -8[rbp], rax
	jmp	.L120
.L124:
	nop
.L120:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE27:
	.size	reduce_expr, .-reduce_expr
	.section	.rodata
.LC15:
	.string	"usage: %s <filename>\n"
.LC16:
	.string	"unable to read file"
.LC17:
	.string	"unable to parse buffer\n"
.LC18:
	.string	"initial expression"
.LC19:
	.string	"\nsimplification steps"
.LC20:
	.string	"\nsimplified expression"
	.text
	.globl	main
	.type	main, @function
main:
.LFB28:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -36[rbp], 1
	jg	.L126
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L130
.L126:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdx, -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	read_file
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L128
	lea	rdi, .LC16[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L130
.L128:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	parse_buffer
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L129
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 23
	mov	esi, 1
	lea	rdi, .LC17[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L130
.L129:
	lea	rdi, .LC18[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	print_expr
	lea	rdi, .LC19[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	reduce_expr
	mov	QWORD PTR -16[rbp], rax
	lea	rdi, .LC20[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	print_expr
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	deref_expr
	mov	eax, 0
.L130:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L131
	call	__stack_chk_fail@PLT
.L131:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE28:
	.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	"405237.c"
	.text
	.align	2
	.global	parser_advance
	.syntax unified
	.arm
	.fpu softvfp
	.type	parser_advance, %function
parser_advance:
	@ 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]
	ldr	r3, [r3, #8]
	add	r2, r3, #1
	ldr	r3, [fp, #-8]
	str	r2, [r3, #8]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	parser_advance, .-parser_advance
	.align	2
	.global	parser_read
	.syntax unified
	.arm
	.fpu softvfp
	.type	parser_read, %function
parser_read:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	bls	.L3
	mvn	r3, #0
	b	.L4
.L3:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	sub	r3, r3, #9
	cmp	r3, #23
	movhi	r2, #1
	movls	r2, #0
	and	r2, r2, #255
	cmp	r2, #0
	bne	.L7
	mov	r2, #1
	lsl	r2, r2, r3
	ldr	r3, .L8
	and	r3, r3, r2
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L7
	ldr	r0, [fp, #-16]
	bl	parser_advance
.L7:
	nop
.L6:
	ldr	r3, [fp, #-20]
	ldrb	r2, [fp, #-5]
	strb	r2, [r3]
	mov	r3, #0
.L4:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	8388627
	.size	parser_read, .-parser_read
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	parser_match
	.syntax unified
	.arm
	.fpu softvfp
	.type	parser_match, %function
parser_match:
	@ 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, r1
	strb	r3, [fp, #-17]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #9
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	parser_read
	mov	r3, r0
	cmp	r3, #0
	bge	.L11
	mov	r3, #0
	b	.L14
.L11:
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	ldrb	r2, [fp, #-17]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L13
	ldr	r0, [fp, #-16]
	bl	parser_advance
	mov	r3, #1
	b	.L14
.L13:
	mov	r3, #0
.L14:
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC0
	.size	parser_match, .-parser_match
	.align	2
	.global	create_var
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_var, %function
create_var:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, r0
	strb	r3, [fp, #-13]
	mov	r0, #16
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L19
	mov	r3, #0
	b	.L20
.L19:
	ldr	r3, [fp, #-8]
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldrb	r2, [fp, #-13]
	strb	r2, [r3, #8]
	ldr	r3, [fp, #-8]
.L20:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	create_var, .-create_var
	.align	2
	.global	create_func
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_func, %function
create_func:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, r0
	str	r1, [fp, #-20]
	strb	r3, [fp, #-13]
	mov	r0, #16
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L22
	ldr	r0, [fp, #-20]
	bl	deref_expr
	mov	r3, #0
	b	.L23
.L22:
	ldr	r3, [fp, #-8]
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldrb	r2, [fp, #-13]
	strb	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-8]
.L23:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	create_func, .-create_func
	.align	2
	.global	create_app
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_app, %function
create_app:
	@ 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	r0, #16
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L25
	ldr	r0, [fp, #-16]
	bl	deref_expr
	ldr	r0, [fp, #-20]
	bl	deref_expr
	mov	r3, #0
	b	.L26
.L25:
	ldr	r3, [fp, #-8]
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r2, #2
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-8]
.L26:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	create_app, .-create_app
	.align	2
	.global	ref_expr
	.syntax unified
	.arm
	.fpu softvfp
	.type	ref_expr, %function
ref_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	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r3, #2
	beq	.L28
	cmp	r3, #2
	bhi	.L29
	cmp	r3, #0
	beq	.L32
	cmp	r3, #1
	bne	.L29
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	ref_expr
	b	.L29
.L28:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	ref_expr
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	ref_expr
	b	.L29
.L32:
	nop
.L29:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	ref_expr, .-ref_expr
	.align	2
	.global	deref_expr
	.syntax unified
	.arm
	.fpu softvfp
	.type	deref_expr, %function
deref_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	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r3, #2
	beq	.L34
	cmp	r3, #2
	bhi	.L35
	cmp	r3, #0
	beq	.L39
	cmp	r3, #1
	bne	.L35
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	deref_expr
	b	.L35
.L34:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	deref_expr
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	deref_expr
	b	.L35
.L39:
	nop
.L35:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L40
	ldr	r0, [fp, #-8]
	bl	free
.L40:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	deref_expr, .-deref_expr
	.align	2
	.global	deref_node
	.syntax unified
	.arm
	.fpu softvfp
	.type	deref_node, %function
deref_node:
	@ 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]
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L43
	ldr	r0, [fp, #-8]
	bl	free
.L43:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	deref_node, .-deref_node
	.section	.rodata
	.align	2
.LC1:
	.ascii	"(%c.\000"
	.text
	.align	2
	.global	print_expr_internal
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_expr_internal, %function
print_expr_internal:
	@ 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]
	ldr	r3, [r3, #4]
	cmp	r3, #2
	beq	.L45
	cmp	r3, #2
	bhi	.L49
	cmp	r3, #0
	beq	.L47
	cmp	r3, #1
	beq	.L48
	b	.L49
.L47:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3, #8]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	b	.L46
.L48:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3, #8]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L50
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	print_expr_internal
	mov	r0, #41
	bl	putchar
	b	.L46
.L45:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	print_expr_internal
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	print_expr_internal
	nop
.L46:
.L49:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L51:
	.align	2
.L50:
	.word	.LC1
	.size	print_expr_internal, .-print_expr_internal
	.align	2
	.global	print_expr
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_expr, %function
print_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	r0, [fp, #-8]
	bl	print_expr_internal
	ldr	r3, .L53
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	putc
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L54:
	.align	2
.L53:
	.word	stdout
	.size	print_expr, .-print_expr
	.section	.rodata
	.align	2
.LC2:
	.ascii	"failed to open file\000"
	.align	2
.LC3:
	.ascii	"unable to map file into memory\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	read_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_file, %function
read_file:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	ldr	r3, .L61
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #0
	ldr	r0, [fp, #-112]
	bl	open
	str	r0, [fp, #-108]
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	bge	.L56
	ldr	r0, .L61+4
	bl	perror
	mov	r3, #0
	b	.L59
.L56:
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-108]
	bl	fstat
	ldr	r3, [fp, #-56]
	mov	r1, r3
	mov	r3, #0
	str	r3, [sp, #4]
	ldr	r3, [fp, #-108]
	str	r3, [sp]
	mov	r3, #2
	mov	r2, #1
	mov	r0, #0
	bl	mmap
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmn	r3, #1
	bne	.L58
	ldr	r0, .L61+8
	bl	perror
	mov	r3, #0
	b	.L59
.L58:
	ldr	r3, [fp, #-56]
	mov	r2, r3
	ldr	r3, [fp, #-116]
	str	r2, [r3]
	ldr	r3, [fp, #-104]
.L59:
	ldr	r2, .L61
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L60
	bl	__stack_chk_fail
.L60:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L62:
	.align	2
.L61:
	.word	.LC4
	.word	.LC2
	.word	.LC3
	.size	read_file, .-read_file
	.section	.rodata
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	parse_name
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_name, %function
parse_name:
	@ 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, .L69
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #9
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	parser_read
	mov	r3, r0
	cmp	r3, #0
	blt	.L64
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #1024
	cmp	r3, #0
	bne	.L65
.L64:
	mvn	r3, #0
	b	.L67
.L65:
	ldr	r0, [fp, #-16]
	bl	parser_advance
	ldrb	r2, [fp, #-9]	@ zero_extendqisi2
	ldr	r3, [fp, #-20]
	strb	r2, [r3]
	mov	r3, #0
.L67:
	ldr	r2, .L69
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L68
	bl	__stack_chk_fail
.L68:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L70:
	.align	2
.L69:
	.word	.LC5
	.size	parse_name, .-parse_name
	.section	.rodata
	.align	2
.LC6:
	.ascii	"failed to parse name\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	parse_var
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_var, %function
parse_var:
	@ 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, .L77
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #13
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	parse_name
	mov	r3, r0
	cmp	r3, #0
	bge	.L72
	ldr	r3, .L77+4
	str	r3, [fp, #-12]
	nop
.L73:
	mov	r3, #0
	b	.L75
.L72:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	mov	r0, r3
	bl	create_var
	mov	r3, r0
.L75:
	ldr	r2, .L77
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L76
	bl	__stack_chk_fail
.L76:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L78:
	.align	2
.L77:
	.word	.LC7
	.word	.LC6
	.size	parse_var, .-parse_var
	.section	.rodata
	.align	2
.LC8:
	.ascii	"failed to match '('\000"
	.align	2
.LC9:
	.ascii	"failed to match'.'\000"
	.align	2
.LC10:
	.ascii	"failed to parse body\000"
	.align	2
.LC11:
	.ascii	"failed to match ')'\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	parse_func
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_func, %function
parse_func:
	@ 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, .L89
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #40
	ldr	r0, [fp, #-24]
	bl	parser_match
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L80
	ldr	r3, .L89+4
	str	r3, [fp, #-12]
	b	.L81
.L80:
	sub	r3, fp, #17
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	parse_name
	mov	r3, r0
	cmp	r3, #0
	bge	.L82
	ldr	r3, .L89+8
	str	r3, [fp, #-12]
	b	.L81
.L82:
	mov	r1, #46
	ldr	r0, [fp, #-24]
	bl	parser_match
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L83
	ldr	r3, .L89+12
	str	r3, [fp, #-12]
	b	.L81
.L83:
	ldr	r0, [fp, #-24]
	bl	parse_expr
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L84
	ldr	r3, .L89+16
	str	r3, [fp, #-12]
	b	.L81
.L84:
	mov	r1, #41
	ldr	r0, [fp, #-24]
	bl	parser_match
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L85
	ldr	r0, [fp, #-16]
	bl	deref_expr
	ldr	r3, .L89+20
	str	r3, [fp, #-12]
	b	.L81
.L85:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	create_func
	mov	r3, r0
	b	.L87
.L81:
	mov	r3, #0
.L87:
	ldr	r2, .L89
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L88
	bl	__stack_chk_fail
.L88:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L90:
	.align	2
.L89:
	.word	.LC12
	.word	.LC8
	.word	.LC6
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	parse_func, .-parse_func
	.section	.rodata
	.align	2
.LC13:
	.ascii	"at end of byffer\000"
	.align	2
.LC14:
	.ascii	"failed to parse function\000"
	.align	2
.LC15:
	.ascii	"failed to parse variable\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	parse_expr_internal
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_expr_internal, %function
parse_expr_internal:
	@ 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, .L106
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #17
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	parser_read
	mov	r3, r0
	cmp	r3, #0
	bge	.L92
	ldr	r3, .L106+4
	str	r3, [fp, #-12]
	b	.L93
.L92:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #40
	beq	.L94
	cmp	r3, #41
	beq	.L95
	b	.L103
.L94:
	ldr	r0, [fp, #-24]
	bl	parse_func
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L104
	ldr	r3, .L106+8
	str	r3, [fp, #-12]
	b	.L93
.L95:
	mov	r3, #0
	b	.L101
.L103:
	ldr	r0, [fp, #-24]
	bl	parse_var
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L105
	ldr	r3, .L106+12
	str	r3, [fp, #-12]
	b	.L93
.L104:
	nop
	b	.L98
.L105:
	nop
.L98:
	ldr	r3, [fp, #-16]
	b	.L101
.L93:
	mov	r3, #0
.L101:
	ldr	r2, .L106
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L102
	bl	__stack_chk_fail
.L102:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L107:
	.align	2
.L106:
	.word	.LC16
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.size	parse_expr_internal, .-parse_expr_internal
	.section	.rodata
	.align	2
.LC17:
	.ascii	"unspecified\000"
	.align	2
.LC18:
	.ascii	"failed to build basis\000"
	.align	2
.LC19:
	.ascii	"creating app failed\000"
	.align	2
.LC20:
	.ascii	"[app] %s\012\000"
	.text
	.align	2
	.global	parse_expr
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_expr, %function
parse_expr:
	@ 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	r0, [fp, #-24]
	bl	parse_expr_internal
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L109
	ldr	r3, .L116
	str	r3, [fp, #-16]
	b	.L110
.L109:
	ldr	r0, [fp, #-24]
	bl	parse_expr_internal
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L111
	ldr	r3, [fp, #-12]
	b	.L112
.L111:
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	create_app
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L114
	ldr	r3, .L116+4
	str	r3, [fp, #-16]
	b	.L110
.L115:
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	create_app
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L114
	ldr	r3, .L116+8
	str	r3, [fp, #-16]
	b	.L110
.L114:
	ldr	r0, [fp, #-24]
	bl	parse_expr_internal
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L115
	ldr	r3, [fp, #-12]
	b	.L112
.L110:
	ldr	r3, .L116+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L116+16
	mov	r0, r3
	bl	fprintf
	mov	r3, #0
.L112:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L117:
	.align	2
.L116:
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	stderr
	.word	.LC20
	.size	parse_expr, .-parse_expr
	.section	.rodata
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	parse_buffer
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_buffer, %function
parse_buffer:
	@ 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]
	str	r1, [fp, #-28]
	ldr	r3, .L121
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	sub	r3, fp, #20
	mov	r0, r3
	bl	parse_expr
	mov	r3, r0
	ldr	r2, .L121
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L120
	bl	__stack_chk_fail
.L120:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L122:
	.align	2
.L121:
	.word	.LC21
	.size	parse_buffer, .-parse_buffer
	.align	2
	.global	substitute
	.syntax unified
	.arm
	.fpu softvfp
	.type	substitute, %function
substitute:
	@ 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]
	mov	r3, r1
	str	r2, [fp, #-16]
	strb	r3, [fp, #-9]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r3, #2
	beq	.L124
	cmp	r3, #2
	bhi	.L125
	cmp	r3, #0
	beq	.L126
	cmp	r3, #1
	beq	.L127
	b	.L125
.L126:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3, #8]	@ zero_extendqisi2
	ldrb	r2, [fp, #-9]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L131
	ldr	r0, [fp, #-8]
	bl	deref_expr
	ldr	r0, [fp, #-16]
	bl	ref_expr
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	b	.L131
.L127:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3, #8]	@ zero_extendqisi2
	ldrb	r2, [fp, #-9]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L132
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	ldrb	r1, [fp, #-9]	@ zero_extendqisi2
	ldr	r2, [fp, #-16]
	mov	r0, r3
	bl	substitute
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3, #12]
	b	.L132
.L124:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	ldrb	r1, [fp, #-9]	@ zero_extendqisi2
	ldr	r2, [fp, #-16]
	mov	r0, r3
	bl	substitute
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	ldrb	r1, [fp, #-9]	@ zero_extendqisi2
	ldr	r2, [fp, #-16]
	mov	r0, r3
	bl	substitute
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3, #12]
	b	.L125
.L131:
	nop
	b	.L125
.L132:
	nop
.L125:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	substitute, .-substitute
	.align	2
	.global	beta_reduce
	.syntax unified
	.arm
	.fpu softvfp
	.type	beta_reduce, %function
beta_reduce:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #1
	beq	.L134
	ldr	r0, [fp, #-20]
	bl	deref_expr
	ldr	r3, [fp, #-16]
	b	.L135
.L134:
	ldr	r3, [fp, #-16]
	ldr	r0, [r3, #12]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #8]	@ zero_extendqisi2
	ldr	r2, [fp, #-20]
	mov	r1, r3
	bl	substitute
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	deref_node
	ldr	r0, [fp, #-20]
	bl	deref_expr
	ldr	r3, [fp, #-8]
.L135:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	beta_reduce, .-beta_reduce
	.align	2
	.global	apply
	.syntax unified
	.arm
	.fpu softvfp
	.type	apply, %function
apply:
	@ 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]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	deref_node
	b	.L137
.L138:
	ldr	r0, [fp, #-12]
	bl	apply
	str	r0, [fp, #-12]
.L137:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	cmp	r3, #2
	beq	.L138
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	beta_reduce
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	apply, .-apply
	.align	2
	.global	reduce_expr
	.syntax unified
	.arm
	.fpu softvfp
	.type	reduce_expr, %function
reduce_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	r0, [fp, #-8]
	bl	print_expr
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r3, #2
	beq	.L141
	cmp	r3, #2
	bhi	.L142
	cmp	r3, #0
	beq	.L146
	cmp	r3, #1
	bne	.L142
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	reduce_expr
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3, #12]
	b	.L142
.L141:
	ldr	r0, [fp, #-8]
	bl	apply
	mov	r3, r0
	mov	r0, r3
	bl	reduce_expr
	str	r0, [fp, #-8]
	b	.L142
.L146:
	nop
.L142:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	reduce_expr, .-reduce_expr
	.section	.rodata
	.align	2
.LC22:
	.ascii	"usage: %s <filename>\012\000"
	.align	2
.LC23:
	.ascii	"unable to read file\000"
	.align	2
.LC24:
	.ascii	"unable to parse buffer\012\000"
	.align	2
.LC25:
	.ascii	"initial expression\000"
	.align	2
.LC26:
	.ascii	"\012simplification steps\000"
	.align	2
.LC27:
	.ascii	"\012simplified expression\000"
	.align	2
.LC28:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	str	r1, [fp, #-28]
	ldr	r3, .L154
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	bgt	.L148
	ldr	r3, .L154+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L154+8
	bl	fprintf
	mov	r3, #1
	b	.L152
.L148:
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r2, fp, #20
	mov	r1, r2
	mov	r0, r3
	bl	read_file
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L150
	ldr	r0, .L154+12
	bl	perror
	mov	r3, #1
	b	.L152
.L150:
	ldr	r3, [fp, #-20]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	parse_buffer
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L151
	ldr	r3, .L154+4
	ldr	r3, [r3]
	mov	r2, #23
	mov	r1, #1
	ldr	r0, .L154+16
	bl	fwrite
	mov	r3, #1
	b	.L152
.L151:
	ldr	r0, .L154+20
	bl	puts
	ldr	r0, [fp, #-12]
	bl	print_expr
	ldr	r0, .L154+24
	bl	puts
	ldr	r0, [fp, #-12]
	bl	reduce_expr
	str	r0, [fp, #-12]
	ldr	r0, .L154+28
	bl	puts
	ldr	r0, [fp, #-12]
	bl	print_expr
	ldr	r0, [fp, #-12]
	bl	deref_expr
	mov	r3, #0
.L152:
	ldr	r2, .L154
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L153
	bl	__stack_chk_fail
.L153:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L155:
	.align	2
.L154:
	.word	.LC28
	.word	stderr
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
