	.file	"112192.c"
	.intel_syntax noprefix
	.text
	.type	push, @function
push:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L2
	mov	eax, 0
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	eax, 1
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	push, .-push
	.type	pop, @function
pop:
.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	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L5
	mov	eax, 0
	jmp	.L6
.L5:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 1
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	pop, .-pop
	.type	freestack, @function
freestack:
.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
	jmp	.L8
.L9:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -24[rbp], rax
.L8:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L9
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	freestack, .-freestack
	.type	opcomp, @function
opcomp:
.LFB9:
	.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
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jbe	.L11
	mov	eax, 1
	jmp	.L12
.L11:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jnb	.L13
	mov	eax, -1
	jmp	.L12
.L13:
	mov	eax, 0
.L12:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	opcomp, .-opcomp
	.section	.rodata
	.align 8
.LC0:
	.string	"%ju + %ju causes integer wraparound\n"
	.text
	.type	addwilloverflow, @function
addwilloverflow:
.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
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	not	rax
	cmp	QWORD PTR -8[rbp], rax
	jbe	.L15
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L16
.L15:
	mov	eax, 0
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	addwilloverflow, .-addwilloverflow
	.section	.rodata
.LC1:
	.string	"ops was too big\n"
.LC2:
	.string	"Integer wraparound detected\n"
.LC3:
	.string	"%ju was in ops\n"
.LC4:
	.string	"Accumulator ended up empty\n"
	.text
	.type	emitop, @function
emitop:
.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, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -52[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L18
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR [rax]
	mov	edx, eax
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, edx
	mov	edi, eax
	call	opcomp
	test	eax, eax
	js	.L21
.L18:
	mov	edx, DWORD PTR -52[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	push
	jmp	.L20
.L30:
	mov	QWORD PTR -16[rbp], 1
	lea	rdx, -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pop
	lea	rdx, -16[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pop
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L22
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	eax, 0
	jmp	.L20
.L22:
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, 3
	je	.L24
	cmp	rax, 4
	jne	.L25
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	addwilloverflow
	test	al, al
	je	.L26
	mov	eax, 0
	jmp	.L20
.L26:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rcx, QWORD PTR [rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	add	rdx, rcx
	mov	QWORD PTR [rax], rdx
	jmp	.L21
.L24:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rcx, QWORD PTR [rax]
	mov	rsi, QWORD PTR -24[rbp]
	mov	rax, -1
	mov	edx, 0
	div	rsi
	cmp	rcx, rax
	jb	.L28
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	eax, 0
	jmp	.L20
.L28:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rcx, QWORD PTR [rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	imul	rdx, rcx
	mov	QWORD PTR [rax], rdx
	jmp	.L21
.L25:
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	jmp	.L20
.L21:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L29
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L29
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR [rax]
	mov	edx, eax
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, edx
	mov	edi, eax
	call	opcomp
	test	eax, eax
	js	.L30
.L29:
	cmp	QWORD PTR -40[rbp], 0
	jne	.L31
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 27
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	eax, 0
	jmp	.L20
.L31:
	cmp	DWORD PTR -52[rbp], 0
	je	.L32
	cmp	DWORD PTR -52[rbp], 1
	je	.L32
	cmp	DWORD PTR -52[rbp], 2
	je	.L32
	mov	edx, DWORD PTR -52[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	push
	test	al, al
	je	.L33
.L32:
	mov	eax, 1
	jmp	.L34
.L33:
	mov	eax, 0
.L34:
	and	eax, 1
.L20:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L35
	call	__stack_chk_fail@PLT
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	emitop, .-emitop
	.section	.rodata
.LC5:
	.string	"%ju"
	.text
	.type	nexttok, @function
nexttok:
.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	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	nop
.L37:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 32
	je	.L37
	mov	rdx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	ungetc@PLT
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	je	.L38
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], 6
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 1
	sete	al
	jmp	.L39
.L38:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	cmp	eax, 44
	ja	.L40
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L42[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L42[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L42:
	.long	.L47-.L42
	.long	.L40-.L42
	.long	.L40-.L42
	.long	.L40-.L42
	.long	.L40-.L42
	.long	.L40-.L42
	.long	.L40-.L42
	.long	.L40-.L42
	.long	.L40-.L42
	.long	.L40-.L42
	.long	.L40-.L42
	.long	.L46-.L42
	.long	.L40-.L42
	.long	.L40-.L42
	.long	.L40-.L42
	.long	.L40-.L42
	.long	.L40-.L42
	.long	.L40-.L42
	.long	.L40-.L42
	.long	.L40-.L42
	.long	.L40-.L42
	.long	.L40-.L42
	.long	.L40-.L42
	.long	.L40-.L42
	.long	.L40-.L42
	.long	.L40-.L42
	.long	.L40-.L42
	.long	.L40-.L42
	.long	.L40-.L42
	.long	.L40-.L42
	.long	.L40-.L42
	.long	.L40-.L42
	.long	.L40-.L42
	.long	.L40-.L42
	.long	.L40-.L42
	.long	.L40-.L42
	.long	.L40-.L42
	.long	.L40-.L42
	.long	.L40-.L42
	.long	.L40-.L42
	.long	.L40-.L42
	.long	.L45-.L42
	.long	.L44-.L42
	.long	.L43-.L42
	.long	.L41-.L42
	.text
.L40:
	mov	eax, 0
	jmp	.L39
.L47:
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], 0
	jmp	.L48
.L46:
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], 1
	jmp	.L48
.L41:
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], 4
	jmp	.L48
.L43:
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], 3
	jmp	.L48
.L45:
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], 5
	jmp	.L48
.L44:
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], 2
.L48:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	eax, 1
.L39:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	nexttok, .-nexttok
	.type	isoperator, @function
isoperator:
.LFB13:
	.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], 4
	je	.L50
	cmp	DWORD PTR -4[rbp], 3
	je	.L50
	cmp	DWORD PTR -4[rbp], 1
	je	.L50
	cmp	DWORD PTR -4[rbp], 2
	jne	.L51
.L50:
	mov	eax, 1
	jmp	.L52
.L51:
	mov	eax, 0
.L52:
	and	eax, 1
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	isoperator, .-isoperator
	.type	badtoken, @function
badtoken:
.LFB14:
	.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, 16
	.cfi_offset 3, -24
	mov	QWORD PTR -16[rbp], rdi
	mov	DWORD PTR -20[rbp], esi
	mov	rax, QWORD PTR -16[rbp]
	and	eax, 1
	mov	rbx, rax
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	isoperator
	movzx	eax, al
	xor	rax, rbx
	test	rax, rax
	setne	al
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	badtoken, .-badtoken
	.type	freeandexit, @function
freeandexit:
.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	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	freestack
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	freestack
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE15:
	.size	freeandexit, .-freeandexit
	.type	flatapplyop, @function
flatapplyop:
.LFB16:
	.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	QWORD PTR -16[rbp], rsi
	mov	DWORD PTR -20[rbp], edx
	cmp	DWORD PTR -20[rbp], 4
	jne	.L58
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
.L58:
	cmp	DWORD PTR -20[rbp], 3
	jne	.L59
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	imul	rax, QWORD PTR -16[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
.L59:
	cmp	DWORD PTR -20[rbp], 0
	jne	.L61
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
.L61:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	flatapplyop, .-flatapplyop
	.section	.rodata
.LC6:
	.string	"Syntax error on line %ju\n"
.LC7:
	.string	"Could not emit operator\n"
.LC8:
	.string	"Could not emit number\n"
	.align 8
.LC9:
	.string	"Operator stack ended up not empty\n"
	.align 8
.LC10:
	.string	"More than one number remain in accumulator\n"
	.text
	.type	subexpr, @function
subexpr:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	QWORD PTR -88[rbp], rdi
	mov	QWORD PTR -96[rbp], rsi
	mov	QWORD PTR -104[rbp], rdx
	mov	QWORD PTR -112[rbp], rcx
	mov	QWORD PTR -120[rbp], r8
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -40[rbp], 0
	mov	DWORD PTR -76[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
.L71:
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	lea	rdx, -32[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	nexttok
	xor	eax, 1
	test	al, al
	je	.L63
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	freeandexit
.L63:
	mov	edx, DWORD PTR -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	lea	rcx, 1[rax]
	mov	QWORD PTR -40[rbp], rcx
	mov	esi, edx
	mov	rdi, rax
	call	badtoken
	test	al, al
	je	.L64
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -104[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	freeandexit
.L64:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, 5
	jne	.L65
	mov	rax, QWORD PTR -96[rbp]
	lea	rsi, 1[rax]
	lea	rdi, -48[rbp]
	lea	rcx, -56[rbp]
	mov	rdx, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	subexpr
	xor	eax, 1
	test	al, al
	je	.L65
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	freeandexit
.L65:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, 6
	jne	.L66
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR -56[rbp], rax
.L66:
	mov	rcx, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR -76[rbp]
	mov	rax, QWORD PTR -112[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	flatapplyop
	mov	eax, DWORD PTR -32[rbp]
	mov	edi, eax
	call	isoperator
	test	al, al
	je	.L67
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -76[rbp], eax
	mov	edx, DWORD PTR -32[rbp]
	lea	rcx, -64[rbp]
	lea	rax, -72[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	emitop
	xor	eax, 1
	test	al, al
	je	.L68
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 24
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	freeandexit
	jmp	.L68
.L67:
	mov	DWORD PTR -76[rbp], 1
	mov	rdx, QWORD PTR -48[rbp]
	lea	rax, -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	push
	xor	eax, 1
	test	al, al
	je	.L68
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 22
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	freeandexit
.L68:
	mov	eax, DWORD PTR -32[rbp]
	test	eax, eax
	je	.L69
	cmp	QWORD PTR -96[rbp], 0
	jne	.L70
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, 1
	jne	.L71
.L70:
	cmp	QWORD PTR -96[rbp], 0
	je	.L69
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, 2
	jne	.L71
.L69:
	mov	rax, QWORD PTR -64[rbp]
	test	rax, rax
	je	.L72
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 34
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	freeandexit
.L72:
	mov	rax, QWORD PTR -72[rbp]
	test	rax, rax
	jne	.L73
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 27
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L73:
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L74
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 43
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	freestack
	mov	edi, 1
	call	exit@PLT
.L74:
	mov	rax, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -120[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	freestack
	mov	eax, DWORD PTR -32[rbp]
	test	eax, eax
	setne	al
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L76
	call	__stack_chk_fail@PLT
.L76:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	subexpr, .-subexpr
	.type	parseexpr, @function
parseexpr:
.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, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	QWORD PTR -64[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR [rax]
	lea	rsi, -16[rbp]
	lea	rcx, -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	r8, rsi
	mov	esi, 0
	mov	rdi, rax
	call	subexpr
	mov	BYTE PTR -25[rbp], al
	movzx	eax, BYTE PTR -25[rbp]
	xor	eax, 1
	test	al, al
	jne	.L78
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	addwilloverflow
	test	al, al
	je	.L79
.L78:
	mov	eax, 0
	jmp	.L82
.L79:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	addwilloverflow
	test	al, al
	je	.L81
	mov	eax, 0
	jmp	.L82
.L81:
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR [rax], rdx
	mov	eax, 1
.L82:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L83
	call	__stack_chk_fail@PLT
.L83:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	parseexpr, .-parseexpr
	.section	.rodata
	.align 8
.LC11:
	.string	"Puzzle input failed on line %ju\n"
.LC12:
	.string	"Flat\t%ju\n"
.LC13:
	.string	"Stack\t%ju\n"
	.text
	.globl	day18
	.type	day18, @function
day18:
.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
	mov	QWORD PTR -32[rbp], 1
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	nop
.L85:
	lea	rcx, -16[rbp]
	lea	rdx, -24[rbp]
	lea	rsi, -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	parseexpr
	test	al, al
	jne	.L85
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L86
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	ferror@PLT
	test	eax, eax
	je	.L87
.L86:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L89
.L87:
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L89:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L90
	call	__stack_chk_fail@PLT
.L90:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	day18, .-day18
	.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	"112192.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	push, %function
push:
	@ 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, #-16]
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	mov	r0, #16
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L2
	mov	r3, #0
	b	.L3
.L2:
	ldr	r1, [fp, #-8]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	mov	r3, #1
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	push, .-push
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pop, %function
pop:
	@ 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]
	cmp	r3, #0
	bne	.L5
	mov	r3, #0
	b	.L6
.L5:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-20]
	stm	r1, {r2-r3}
	ldr	r0, [fp, #-8]
	bl	free
	mov	r3, #1
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	pop, .-pop
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	freestack, %function
freestack:
	@ 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]
	b	.L8
.L9:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	free
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-16]
.L8:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L9
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	freestack, .-freestack
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	opcomp, %function
opcomp:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bls	.L11
	mov	r3, #1
	b	.L12
.L11:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bcs	.L13
	mvn	r3, #0
	b	.L12
.L13:
	mov	r3, #0
.L12:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	opcomp, .-opcomp
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%ju + %ju causes integer wraparound\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	addwilloverflow, %function
addwilloverflow:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	str	r0, [fp, #-20]
	str	r1, [fp, #-16]
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	mvn	r4, r2
	mvn	r5, r3
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	cmp	r3, r5
	cmpeq	r2, r4
	bls	.L15
	ldr	r3, .L17
	ldr	r0, [r3]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	ldr	r1, .L17+4
	bl	fprintf
	mov	r3, #1
	b	.L16
.L15:
	mov	r3, #0
.L16:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L18:
	.align	2
.L17:
	.word	stderr
	.word	.LC0
	.size	addwilloverflow, .-addwilloverflow
	.section	.rodata
	.align	2
.LC1:
	.ascii	"ops was too big\012\000"
	.global	__aeabi_uldivmod
	.align	2
.LC2:
	.ascii	"Integer wraparound detected\012\000"
	.align	2
.LC3:
	.ascii	"%ju was in ops\012\000"
	.align	2
.LC4:
	.ascii	"Accumulator ended up empty\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	emitop, %function
emitop:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #40
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	ldr	r3, .L38
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L20
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	ldmia	r3, {r2-r3}
	mov	r3, r2
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	opcomp
	mov	r3, r0
	cmp	r3, #0
	blt	.L23
.L20:
	ldr	r3, [fp, #-56]
	mov	r2, r3
	mov	r3, #0
	ldr	r0, [fp, #-52]
	bl	push
	mov	r3, r0
	b	.L22
.L32:
	mov	r2, #1
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	sub	r3, fp, #44
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	pop
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, [fp, #-52]
	bl	pop
	ldr	r3, [fp, #-48]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L24
	ldr	r3, .L38+4
	ldr	r3, [r3]
	mov	r2, #16
	mov	r1, #1
	ldr	r0, .L38+8
	bl	fwrite
	mov	r3, #0
	b	.L22
.L24:
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	cmp	r3, #0
	cmpeq	r2, #3
	beq	.L26
	cmp	r3, #0
	cmpeq	r2, #4
	bne	.L27
	ldr	r3, [fp, #-48]
	ldr	r3, [r3]
	ldmia	r3, {r0-r1}
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	bl	addwilloverflow
	mov	r3, r0
	cmp	r3, #0
	beq	.L28
	mov	r3, #0
	b	.L22
.L28:
	ldr	r3, [fp, #-48]
	ldr	r3, [r3]
	ldmia	r3, {r0-r1}
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	ldr	ip, [fp, #-48]
	ldr	ip, [ip]
	adds	r6, r0, r2
	adc	r7, r1, r3
	stm	ip, {r6-r7}
	b	.L23
.L26:
	ldr	r3, [fp, #-48]
	ldr	r3, [r3]
	ldmia	r3, {r4-r5}
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	mvn	r0, #0
	mvn	r1, #0
	bl	__aeabi_uldivmod
	mov	r2, r0
	mov	r3, r1
	cmp	r5, r3
	cmpeq	r4, r2
	bcc	.L30
	ldr	r3, .L38+4
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L38+12
	bl	fwrite
	mov	r3, #0
	b	.L22
.L30:
	ldr	r3, [fp, #-48]
	ldr	r3, [r3]
	ldmia	r3, {r0-r1}
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	ldr	ip, [fp, #-48]
	ldr	ip, [ip]
	mul	r4, r2, r1
	mul	lr, r0, r3
	add	lr, r4, lr
	umull	r4, r5, r0, r2
	add	r3, lr, r5
	mov	r5, r3
	stm	ip, {r4-r5}
	b	.L23
.L27:
	ldr	r3, .L38+4
	ldr	r0, [r3]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	ldr	r1, .L38+16
	bl	fprintf
	mov	r3, #0
	b	.L22
.L23:
	ldr	r3, [fp, #-48]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L31
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L31
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	ldmia	r3, {r2-r3}
	mov	r3, r2
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	opcomp
	mov	r3, r0
	cmp	r3, #0
	blt	.L32
.L31:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L33
	ldr	r3, .L38+4
	ldr	r3, [r3]
	mov	r2, #27
	mov	r1, #1
	ldr	r0, .L38+20
	bl	fwrite
	mov	r3, #0
	b	.L22
.L33:
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L34
	ldr	r3, [fp, #-56]
	cmp	r3, #1
	beq	.L34
	ldr	r3, [fp, #-56]
	cmp	r3, #2
	beq	.L34
	ldr	r3, [fp, #-56]
	mov	r2, r3
	mov	r3, #0
	ldr	r0, [fp, #-52]
	bl	push
	mov	r3, r0
	cmp	r3, #0
	beq	.L35
.L34:
	mov	r3, #1
	b	.L36
.L35:
	mov	r3, #0
.L36:
	and	r3, r3, #1
	and	r3, r3, #255
.L22:
	ldr	r2, .L38
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L37
	bl	__stack_chk_fail
.L37:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L39:
	.align	2
.L38:
	.word	.LC5
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	emitop, .-emitop
	.section	.rodata
	.align	2
.LC6:
	.ascii	"%ju\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nexttok, %function
nexttok:
	@ 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]
	nop
.L41:
	ldr	r0, [fp, #-16]
	bl	fgetc
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #32
	beq	.L41
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	ungetc
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	beq	.L42
	ldr	r3, [fp, #-20]
	mov	r2, #6
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #8
	mov	r2, r3
	ldr	r1, .L53
	ldr	r0, [fp, #-16]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #1
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	b	.L43
.L42:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	cmp	r3, #44
	ldrls	pc, [pc, r3, asl #2]
	b	.L44
.L46:
	.word	.L51
	.word	.L44
	.word	.L44
	.word	.L44
	.word	.L44
	.word	.L44
	.word	.L44
	.word	.L44
	.word	.L44
	.word	.L44
	.word	.L44
	.word	.L50
	.word	.L44
	.word	.L44
	.word	.L44
	.word	.L44
	.word	.L44
	.word	.L44
	.word	.L44
	.word	.L44
	.word	.L44
	.word	.L44
	.word	.L44
	.word	.L44
	.word	.L44
	.word	.L44
	.word	.L44
	.word	.L44
	.word	.L44
	.word	.L44
	.word	.L44
	.word	.L44
	.word	.L44
	.word	.L44
	.word	.L44
	.word	.L44
	.word	.L44
	.word	.L44
	.word	.L44
	.word	.L44
	.word	.L44
	.word	.L49
	.word	.L48
	.word	.L47
	.word	.L45
.L44:
	mov	r3, #0
	b	.L43
.L51:
	ldr	r3, [fp, #-20]
	mov	r2, #0
	str	r2, [r3]
	b	.L52
.L50:
	ldr	r3, [fp, #-20]
	mov	r2, #1
	str	r2, [r3]
	b	.L52
.L45:
	ldr	r3, [fp, #-20]
	mov	r2, #4
	str	r2, [r3]
	b	.L52
.L47:
	ldr	r3, [fp, #-20]
	mov	r2, #3
	str	r2, [r3]
	b	.L52
.L49:
	ldr	r3, [fp, #-20]
	mov	r2, #5
	str	r2, [r3]
	b	.L52
.L48:
	ldr	r3, [fp, #-20]
	mov	r2, #2
	str	r2, [r3]
.L52:
	ldr	r0, [fp, #-16]
	bl	fgetc
	mov	r3, #1
.L43:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L54:
	.align	2
.L53:
	.word	.LC6
	.size	nexttok, .-nexttok
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	isoperator, %function
isoperator:
	@ 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, #4
	beq	.L56
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	beq	.L56
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	beq	.L56
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	bne	.L57
.L56:
	mov	r3, #1
	b	.L58
.L57:
	mov	r3, #0
.L58:
	and	r3, r3, #1
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	isoperator, .-isoperator
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	badtoken, %function
badtoken:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #16
	str	r0, [fp, #-28]
	str	r1, [fp, #-24]
	str	r2, [fp, #-32]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	mov	r0, #1
	mov	r1, #0
	and	r6, r2, r0
	and	r7, r3, r1
	ldr	r0, [fp, #-32]
	bl	isoperator
	mov	r3, r0
	and	r2, r3, #255
	mov	r3, #0
	eor	r4, r6, r2
	eor	r5, r7, r3
	orr	r3, r4, r5
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
	.size	badtoken, .-badtoken
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	freeandexit, %function
freeandexit:
	@ 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	r0, [fp, #-8]
	bl	freestack
	ldr	r0, [fp, #-12]
	bl	freestack
	mov	r0, #1
	bl	exit
	.size	freeandexit, .-freeandexit
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	flatapplyop, %function
flatapplyop:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #4]
	cmp	r3, #4
	bne	.L64
	ldr	r3, [fp, #-16]
	ldmia	r3, {r0-r1}
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	adds	r4, r0, r2
	adc	r5, r1, r3
	ldr	r3, [fp, #-16]
	stm	r3, {r4-r5}
.L64:
	ldr	r3, [fp, #4]
	cmp	r3, #3
	bne	.L65
	ldr	r3, [fp, #-16]
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-28]
	mul	r0, r3, r1
	ldr	r1, [fp, #-24]
	mul	r1, r2, r1
	add	ip, r0, r1
	ldr	lr, [fp, #-28]
	umull	r0, r1, lr, r2
	add	r3, ip, r1
	mov	r1, r3
	ldr	r3, [fp, #-16]
	stm	r3, {r0-r1}
.L65:
	ldr	r3, [fp, #4]
	cmp	r3, #0
	bne	.L67
	ldr	r1, [fp, #-16]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
.L67:
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	flatapplyop, .-flatapplyop
	.section	.rodata
	.align	2
.LC7:
	.ascii	"Syntax error on line %ju\012\000"
	.align	2
.LC8:
	.ascii	"Could not emit operator\012\000"
	.align	2
.LC9:
	.ascii	"Could not emit number\012\000"
	.align	2
.LC10:
	.ascii	"Operator stack ended up not empty\012\000"
	.align	2
.LC11:
	.ascii	"More than one number remain in accumulator\012\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	subexpr, %function
subexpr:
	@ args = 16, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #104
	str	r0, [fp, #-88]
	str	r2, [fp, #-100]
	str	r3, [fp, #-96]
	ldr	r3, [fp, #12]
	str	r3, [fp, #-92]
	ldr	r3, [fp, #16]
	str	r3, [fp, #-104]
	ldr	r3, .L83
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-72]
	mov	r3, #0
	str	r3, [fp, #-80]
	mov	r3, #0
	str	r3, [fp, #-76]
.L77:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	sub	r3, fp, #44
	mov	r1, r3
	ldr	r0, [fp, #-88]
	bl	nexttok
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L69
	ldr	r3, [fp, #-80]
	ldr	r2, [fp, #-76]
	mov	r1, r2
	mov	r0, r3
	bl	freeandexit
.L69:
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	adds	r4, r0, #1
	adc	r5, r1, #0
	str	r4, [fp, #-52]
	str	r5, [fp, #-48]
	ldr	r3, [fp, #-44]
	mov	r2, r3
	bl	badtoken
	mov	r3, r0
	cmp	r3, #0
	beq	.L70
	ldr	r3, .L83+4
	ldr	r0, [r3]
	ldmib	fp, {r2-r3}
	ldr	r1, .L83+8
	bl	fprintf
	ldr	r3, [fp, #-80]
	ldr	r2, [fp, #-76]
	mov	r1, r2
	mov	r0, r3
	bl	freeandexit
.L70:
	ldr	r3, [fp, #-44]
	cmp	r3, #5
	bne	.L71
	sub	r3, fp, #100
	ldmia	r3, {r2-r3}
	adds	r6, r2, #1
	adc	r7, r3, #0
	sub	r3, fp, #60
	str	r3, [sp, #12]
	sub	r3, fp, #68
	str	r3, [sp, #8]
	ldmib	fp, {r2-r3}
	stm	sp, {r2-r3}
	mov	r2, r6
	mov	r3, r7
	ldr	r0, [fp, #-88]
	bl	subexpr
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L71
	ldr	r3, [fp, #-80]
	ldr	r2, [fp, #-76]
	mov	r1, r2
	mov	r0, r3
	bl	freeandexit
.L71:
	ldr	r3, [fp, #-44]
	cmp	r3, #6
	bne	.L72
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
.L72:
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-72]
	str	r1, [sp]
	ldr	r0, [fp, #-92]
	bl	flatapplyop
	ldr	r3, [fp, #-44]
	mov	r0, r3
	bl	isoperator
	mov	r3, r0
	cmp	r3, #0
	beq	.L73
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-72]
	ldr	r2, [fp, #-44]
	sub	r1, fp, #76
	sub	r3, fp, #80
	mov	r0, r3
	bl	emitop
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L74
	ldr	r3, .L83+4
	ldr	r3, [r3]
	mov	r2, #24
	mov	r1, #1
	ldr	r0, .L83+12
	bl	fwrite
	ldr	r3, [fp, #-80]
	ldr	r2, [fp, #-76]
	mov	r1, r2
	mov	r0, r3
	bl	freeandexit
	b	.L74
.L73:
	mov	r3, #1
	str	r3, [fp, #-72]
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	sub	r1, fp, #80
	mov	r0, r1
	bl	push
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L74
	ldr	r3, .L83+4
	ldr	r3, [r3]
	mov	r2, #22
	mov	r1, #1
	ldr	r0, .L83+16
	bl	fwrite
	ldr	r3, [fp, #-80]
	ldr	r2, [fp, #-76]
	mov	r1, r2
	mov	r0, r3
	bl	freeandexit
.L74:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L75
	sub	r3, fp, #100
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	bne	.L76
	ldr	r3, [fp, #-44]
	cmp	r3, #1
	bne	.L77
.L76:
	sub	r3, fp, #100
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	beq	.L75
	ldr	r3, [fp, #-44]
	cmp	r3, #2
	bne	.L77
.L75:
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	beq	.L78
	ldr	r3, .L83+4
	ldr	r3, [r3]
	mov	r2, #34
	mov	r1, #1
	ldr	r0, .L83+20
	bl	fwrite
	ldr	r3, [fp, #-80]
	ldr	r2, [fp, #-76]
	mov	r1, r2
	mov	r0, r3
	bl	freeandexit
.L78:
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	bne	.L79
	ldr	r3, .L83+4
	ldr	r3, [r3]
	mov	r2, #27
	mov	r1, #1
	ldr	r0, .L83+24
	bl	fwrite
	mov	r0, #1
	bl	exit
.L79:
	ldr	r3, [fp, #-80]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L80
	ldr	r3, .L83+4
	ldr	r3, [r3]
	mov	r2, #43
	mov	r1, #1
	ldr	r0, .L83+28
	bl	fwrite
	ldr	r3, [fp, #-80]
	mov	r0, r3
	bl	freestack
	mov	r0, #1
	bl	exit
.L80:
	ldr	r3, [fp, #-80]
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-104]
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-80]
	mov	r0, r3
	bl	freestack
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	ldr	r2, .L83
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L82
	bl	__stack_chk_fail
.L82:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L84:
	.align	2
.L83:
	.word	.LC12
	.word	stderr
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC4
	.word	.LC11
	.size	subexpr, .-subexpr
	.section	.rodata
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parseexpr, %function
parseexpr:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #64
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	str	r2, [fp, #-72]
	str	r3, [fp, #-76]
	ldr	r3, .L92
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-68]
	ldmia	r3, {r2-r3}
	sub	r1, fp, #44
	str	r1, [sp, #12]
	sub	r1, fp, #52
	str	r1, [sp, #8]
	stm	sp, {r2-r3}
	mov	r2, #0
	mov	r3, #0
	ldr	r0, [fp, #-64]
	bl	subexpr
	mov	r3, r0
	strb	r3, [fp, #-53]
	ldrb	r3, [fp, #-53]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L86
	ldr	r3, [fp, #-72]
	ldmia	r3, {r0-r1}
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	bl	addwilloverflow
	mov	r3, r0
	cmp	r3, #0
	beq	.L87
.L86:
	mov	r3, #0
	b	.L90
.L87:
	ldr	r3, [fp, #-72]
	ldmia	r3, {r0-r1}
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	adds	r8, r0, r2
	adc	r9, r1, r3
	ldr	r3, [fp, #-72]
	stm	r3, {r8-r9}
	ldr	r3, [fp, #-76]
	ldmia	r3, {r0-r1}
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	bl	addwilloverflow
	mov	r3, r0
	cmp	r3, #0
	beq	.L89
	mov	r3, #0
	b	.L90
.L89:
	ldr	r3, [fp, #-76]
	ldmia	r3, {r0-r1}
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	adds	r6, r0, r2
	adc	r7, r1, r3
	ldr	r3, [fp, #-76]
	stm	r3, {r6-r7}
	ldr	r3, [fp, #-68]
	ldmia	r3, {r2-r3}
	adds	r4, r2, #1
	adc	r5, r3, #0
	ldr	r3, [fp, #-68]
	stm	r3, {r4-r5}
	mov	r3, #1
.L90:
	ldr	r2, .L92
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L91
	bl	__stack_chk_fail
.L91:
	mov	r0, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L93:
	.align	2
.L92:
	.word	.LC13
	.size	parseexpr, .-parseexpr
	.section	.rodata
	.align	2
.LC14:
	.ascii	"Puzzle input failed on line %ju\012\000"
	.align	2
.LC15:
	.ascii	"Flat\011%ju\012\000"
	.align	2
.LC16:
	.ascii	"Stack\011%ju\012\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	day18
	.syntax unified
	.arm
	.fpu softvfp
	.type	day18, %function
day18:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	ldr	r3, .L101
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #1
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	nop
.L95:
	sub	r3, fp, #20
	sub	r2, fp, #28
	sub	r1, fp, #36
	ldr	r0, [fp, #-40]
	bl	parseexpr
	mov	r3, r0
	cmp	r3, #0
	bne	.L95
	ldr	r0, [fp, #-40]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L96
	ldr	r0, [fp, #-40]
	bl	ferror
	mov	r3, r0
	cmp	r3, #0
	beq	.L97
.L96:
	ldr	r3, .L101+4
	ldr	r0, [r3]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	ldr	r1, .L101+8
	bl	fprintf
	mov	r3, #1
	b	.L99
.L97:
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	ldr	r0, .L101+12
	bl	printf
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	ldr	r0, .L101+16
	bl	printf
	mov	r3, #0
.L99:
	ldr	r2, .L101
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L100
	bl	__stack_chk_fail
.L100:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L102:
	.align	2
.L101:
	.word	.LC17
	.word	stderr
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.size	day18, .-day18
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
