	.file	"34784.c"
	.intel_syntax noprefix
	.text
	.type	node_new, @function
node_new:
.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, 32
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 24[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	node_new, .-node_new
	.type	node_free, @function
node_free:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	je	.L8
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L6
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	test	rax, rax
	je	.L7
.L6:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	node_free
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rdi, rax
	call	node_free
.L7:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L3
.L8:
	nop
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	node_free, .-node_free
	.section	.rodata
.LC0:
	.string	"the_stack_data/34784.c"
.LC1:
	.string	"j < MAX_LEN - 1"
.LC2:
	.string	"j > 1"
	.align 8
.LC3:
	.string	"cannot parse a number from %c\n"
.LC4:
	.string	"invalid input\n"
	.text
	.type	parse_tree, @function
parse_tree:
.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, 576
	mov	QWORD PTR -568[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -552[rbp], 0
	mov	QWORD PTR -544[rbp], 0
	mov	QWORD PTR -536[rbp], 0
	lea	rdx, -528[rbp]
	mov	eax, 0
	mov	ecx, 64
	mov	rdi, rdx
	rep stosq
	mov	QWORD PTR -560[rbp], 0
	jmp	.L10
.L21:
	cmp	QWORD PTR -552[rbp], 62
	jbe	.L11
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 63
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L11:
	mov	rdx, QWORD PTR -568[rbp]
	mov	rax, QWORD PTR -560[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	eax, 93
	je	.L12
	cmp	eax, 93
	jg	.L13
	cmp	eax, 44
	je	.L14
	cmp	eax, 91
	jne	.L13
	add	QWORD PTR -552[rbp], 1
	mov	esi, 0
	mov	edi, 0
	call	node_new
	mov	rdx, QWORD PTR -552[rbp]
	mov	QWORD PTR -528[rbp+rdx*8], rax
	jmp	.L15
.L12:
	cmp	QWORD PTR -552[rbp], 1
	ja	.L16
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 69
	lea	rsi, .LC0[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L16:
	mov	rax, QWORD PTR -552[rbp]
	lea	rdx, -1[rax]
	mov	QWORD PTR -552[rbp], rdx
	mov	rax, QWORD PTR -528[rbp+rax*8]
	mov	QWORD PTR -544[rbp], rax
	mov	rax, QWORD PTR -552[rbp]
	lea	rdx, -1[rax]
	mov	QWORD PTR -552[rbp], rdx
	mov	rax, QWORD PTR -528[rbp+rax*8]
	mov	QWORD PTR -536[rbp], rax
	mov	rax, QWORD PTR -544[rbp]
	mov	rdx, QWORD PTR -536[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -536[rbp]
	mov	rdx, QWORD PTR -544[rbp]
	mov	QWORD PTR 24[rax], rdx
	add	QWORD PTR -552[rbp], 1
	mov	rax, QWORD PTR -552[rbp]
	mov	rdx, QWORD PTR -536[rbp]
	mov	QWORD PTR -528[rbp+rax*8], rdx
	jmp	.L15
.L14:
	cmp	QWORD PTR -552[rbp], 1
	ja	.L17
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 77
	lea	rsi, .LC0[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L17:
	mov	rax, QWORD PTR -552[rbp]
	lea	rdx, -1[rax]
	mov	QWORD PTR -552[rbp], rdx
	mov	rax, QWORD PTR -528[rbp+rax*8]
	mov	QWORD PTR -544[rbp], rax
	mov	rax, QWORD PTR -552[rbp]
	lea	rdx, -1[rax]
	mov	QWORD PTR -552[rbp], rdx
	mov	rax, QWORD PTR -528[rbp+rax*8]
	mov	QWORD PTR -536[rbp], rax
	mov	rax, QWORD PTR -544[rbp]
	mov	rdx, QWORD PTR -536[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -536[rbp]
	mov	rdx, QWORD PTR -544[rbp]
	mov	QWORD PTR 16[rax], rdx
	add	QWORD PTR -552[rbp], 1
	mov	rax, QWORD PTR -552[rbp]
	mov	rdx, QWORD PTR -536[rbp]
	mov	QWORD PTR -528[rbp+rax*8], rdx
	jmp	.L15
.L13:
	mov	rdx, QWORD PTR -568[rbp]
	mov	rax, QWORD PTR -560[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jle	.L18
	mov	rdx, QWORD PTR -568[rbp]
	mov	rax, QWORD PTR -560[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 57
	jg	.L18
	mov	rdx, QWORD PTR -568[rbp]
	mov	rax, QWORD PTR -560[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	cdqe
	add	QWORD PTR -552[rbp], 1
	mov	esi, 0
	mov	rdi, rax
	call	node_new
	mov	rdx, QWORD PTR -552[rbp]
	mov	QWORD PTR -528[rbp+rdx*8], rax
	jmp	.L15
.L18:
	mov	rdx, QWORD PTR -568[rbp]
	mov	rax, QWORD PTR -560[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	edx, al
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L19
.L15:
	add	QWORD PTR -560[rbp], 1
.L10:
	mov	rdx, QWORD PTR -568[rbp]
	mov	rax, QWORD PTR -560[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L20
	mov	rdx, QWORD PTR -568[rbp]
	mov	rax, QWORD PTR -560[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L21
.L20:
	cmp	QWORD PTR -552[rbp], 1
	je	.L22
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	jmp	.L19
.L22:
	mov	rax, QWORD PTR -552[rbp]
	mov	rax, QWORD PTR -528[rbp+rax*8]
	jmp	.L27
.L19:
	mov	QWORD PTR -560[rbp], 0
	jmp	.L24
.L26:
	mov	rax, QWORD PTR -560[rbp]
	mov	rax, QWORD PTR -528[rbp+rax*8]
	test	rax, rax
	je	.L25
	mov	rax, QWORD PTR -560[rbp]
	mov	rax, QWORD PTR -528[rbp+rax*8]
	mov	rdi, rax
	call	node_free
.L25:
	add	QWORD PTR -560[rbp], 1
.L24:
	mov	rax, QWORD PTR -560[rbp]
	cmp	rax, QWORD PTR -552[rbp]
	jbe	.L26
	mov	eax, 0
.L27:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	parse_tree, .-parse_tree
	.type	add, @function
add:
.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	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	cmp	QWORD PTR -24[rbp], 0
	jne	.L30
	mov	rax, QWORD PTR -32[rbp]
	jmp	.L31
.L30:
	cmp	QWORD PTR -32[rbp], 0
	jne	.L32
	mov	rax, QWORD PTR -24[rbp]
	jmp	.L31
.L32:
	mov	esi, 0
	mov	edi, 0
	call	node_new
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	nop
.L33:
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	explode
	test	eax, eax
	jne	.L33
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	split
	test	eax, eax
	jne	.L33
	mov	rax, QWORD PTR -8[rbp]
.L31:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	add, .-add
	.section	.rodata
	.align 8
.LC5:
	.string	"IS_NUMBER(root->left) && IS_NUMBER(root->right)"
	.text
	.type	explode, @function
explode:
.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	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L35
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 24[rax]
	test	rax, rax
	jne	.L35
	mov	eax, 0
	jmp	.L36
.L35:
	cmp	DWORD PTR -28[rbp], 4
	jne	.L37
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L38
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rax, QWORD PTR 24[rax]
	test	rax, rax
	jne	.L38
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L38
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR 24[rax]
	test	rax, rax
	je	.L55
.L38:
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 130
	lea	rsi, .LC0[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L55:
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L40
.L42:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
.L40:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L41
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR 16[rax]
	cmp	QWORD PTR -8[rbp], rax
	je	.L42
.L41:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L43
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L44
.L45:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -8[rbp], rax
.L44:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	test	rax, rax
	jne	.L45
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rax, QWORD PTR [rax]
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
.L43:
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L46
.L48:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
.L46:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L47
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR 24[rax]
	cmp	QWORD PTR -8[rbp], rax
	je	.L48
.L47:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L49
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L50
.L51:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -8[rbp], rax
.L50:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L51
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rax]
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
.L49:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	node_free
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 16[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rdi, rax
	call	node_free
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 24[rax], 0
	mov	eax, 1
	jmp	.L36
.L37:
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	esi, edx
	mov	rdi, rax
	call	explode
	test	eax, eax
	jne	.L52
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	esi, edx
	mov	rdi, rax
	call	explode
	test	eax, eax
	je	.L53
.L52:
	mov	eax, 1
	jmp	.L36
.L53:
	mov	eax, 0
.L36:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	explode, .-explode
	.type	split, @function
split:
.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	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L57
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	test	rax, rax
	jne	.L57
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	rax, 9
	jle	.L58
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, rax
	shr	rdx, 63
	add	rax, rdx
	sar	rax
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	node_new
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rdx], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, rax
	shr	rdx, 63
	add	rax, rdx
	sar	rax
	mov	rcx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	cqo
	shr	rdx, 63
	add	rax, rdx
	and	eax, 1
	sub	rax, rdx
	lea	rdx, [rcx+rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	node_new
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 24[rdx], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], 0
	mov	eax, 1
	jmp	.L59
.L58:
	mov	eax, 0
	jmp	.L59
.L57:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	split
	test	eax, eax
	jne	.L60
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rdi, rax
	call	split
	test	eax, eax
	je	.L61
.L60:
	mov	eax, 1
	jmp	.L59
.L61:
	mov	eax, 0
.L59:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	split, .-split
	.type	magnitude, @function
magnitude:
.LFB12:
	.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	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L64
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 24[rax]
	test	rax, rax
	jne	.L64
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	jmp	.L65
.L64:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	magnitude
	mov	rdx, rax
	mov	rax, rdx
	add	rax, rax
	lea	rbx, [rax+rdx]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rdi, rax
	call	magnitude
	add	rax, rax
	add	rax, rbx
.L65:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	magnitude, .-magnitude
	.section	.rodata
.LC6:
	.string	"cannot parse a tree from %s"
.LC7:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	jmp	.L67
.L69:
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -80[rbp]
	mov	esi, 64
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	je	.L67
	lea	rax, -80[rbp]
	mov	rdi, rax
	call	parse_tree
	mov	QWORD PTR -96[rbp], rax
	cmp	QWORD PTR -96[rbp], 0
	jne	.L68
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -80[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L68:
	mov	rdx, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	add
	mov	QWORD PTR -104[rbp], rax
.L67:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L69
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	magnitude
	mov	QWORD PTR -88[rbp], rax
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	node_free
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L71
	call	__stack_chk_fail@PLT
.L71:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 11
__PRETTY_FUNCTION__.1:
	.string	"parse_tree"
	.align 8
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 8
__PRETTY_FUNCTION__.0:
	.string	"explode"
	.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	"34784.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	node_new, %function
node_new:
	@ 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]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	node_new, .-node_new
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	node_free, %function
node_free:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L6
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L7
.L6:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	node_free
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	node_free
.L7:
	ldr	r0, [fp, #-8]
	bl	free
	b	.L3
.L8:
	nop
.L3:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	node_free, .-node_free
	.section	.rodata
	.align	2
.LC0:
	.ascii	"the_stack_data/34784.c\000"
	.align	2
.LC1:
	.ascii	"j < MAX_LEN - 1\000"
	.align	2
.LC2:
	.ascii	"j > 1\000"
	.align	2
.LC3:
	.ascii	"cannot parse a number from %c\012\000"
	.align	2
.LC4:
	.ascii	"invalid input\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_tree, %function
parse_tree:
	@ args = 0, pretend = 0, frame = 288
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #288
	str	r0, [fp, #-288]
	ldr	r3, .L29
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-276]
	mov	r3, #0
	str	r3, [fp, #-272]
	mov	r3, #0
	str	r3, [fp, #-268]
	sub	r3, fp, #264
	mov	r2, #256
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-280]
	b	.L10
.L21:
	ldr	r3, [fp, #-276]
	cmp	r3, #62
	bls	.L11
	ldr	r3, .L29+4
	mov	r2, #63
	ldr	r1, .L29+8
	ldr	r0, .L29+12
	bl	__assert_fail
.L11:
	ldr	r2, [fp, #-288]
	ldr	r3, [fp, #-280]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #93
	beq	.L12
	cmp	r3, #93
	bgt	.L13
	cmp	r3, #44
	beq	.L14
	cmp	r3, #91
	bne	.L13
	ldr	r3, [fp, #-276]
	add	r3, r3, #1
	str	r3, [fp, #-276]
	mov	r1, #0
	mov	r0, #0
	bl	node_new
	mov	r2, r0
	ldr	r3, [fp, #-276]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-260]
	b	.L15
.L12:
	ldr	r3, [fp, #-276]
	cmp	r3, #1
	bhi	.L16
	ldr	r3, .L29+4
	mov	r2, #69
	ldr	r1, .L29+8
	ldr	r0, .L29+16
	bl	__assert_fail
.L16:
	ldr	r3, [fp, #-276]
	sub	r2, r3, #1
	str	r2, [fp, #-276]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-260]
	str	r3, [fp, #-272]
	ldr	r3, [fp, #-276]
	sub	r2, r3, #1
	str	r2, [fp, #-276]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-260]
	str	r3, [fp, #-268]
	ldr	r3, [fp, #-272]
	ldr	r2, [fp, #-268]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-268]
	ldr	r2, [fp, #-272]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-276]
	add	r3, r3, #1
	str	r3, [fp, #-276]
	ldr	r3, [fp, #-276]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-268]
	str	r2, [r3, #-260]
	b	.L15
.L14:
	ldr	r3, [fp, #-276]
	cmp	r3, #1
	bhi	.L17
	ldr	r3, .L29+4
	mov	r2, #77
	ldr	r1, .L29+8
	ldr	r0, .L29+16
	bl	__assert_fail
.L17:
	ldr	r3, [fp, #-276]
	sub	r2, r3, #1
	str	r2, [fp, #-276]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-260]
	str	r3, [fp, #-272]
	ldr	r3, [fp, #-276]
	sub	r2, r3, #1
	str	r2, [fp, #-276]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-260]
	str	r3, [fp, #-268]
	ldr	r3, [fp, #-272]
	ldr	r2, [fp, #-268]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-268]
	ldr	r2, [fp, #-272]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-276]
	add	r3, r3, #1
	str	r3, [fp, #-276]
	ldr	r3, [fp, #-276]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-268]
	str	r2, [r3, #-260]
	b	.L15
.L13:
	ldr	r2, [fp, #-288]
	ldr	r3, [fp, #-280]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L18
	ldr	r2, [fp, #-288]
	ldr	r3, [fp, #-280]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #57
	bhi	.L18
	ldr	r2, [fp, #-288]
	ldr	r3, [fp, #-280]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r2, r3, #48
	ldr	r3, [fp, #-276]
	add	r3, r3, #1
	str	r3, [fp, #-276]
	mov	r1, #0
	mov	r0, r2
	bl	node_new
	mov	r2, r0
	ldr	r3, [fp, #-276]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-260]
	b	.L15
.L18:
	ldr	r3, .L29+20
	ldr	r0, [r3]
	ldr	r2, [fp, #-288]
	ldr	r3, [fp, #-280]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r1, .L29+24
	bl	fprintf
	b	.L19
.L15:
	ldr	r3, [fp, #-280]
	add	r3, r3, #1
	str	r3, [fp, #-280]
.L10:
	ldr	r2, [fp, #-288]
	ldr	r3, [fp, #-280]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L20
	ldr	r2, [fp, #-288]
	ldr	r3, [fp, #-280]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L21
.L20:
	ldr	r3, [fp, #-276]
	cmp	r3, #1
	beq	.L22
	ldr	r3, .L29+20
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L29+28
	bl	fwrite
	b	.L19
.L22:
	ldr	r3, [fp, #-276]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-260]
	b	.L27
.L19:
	mov	r3, #0
	str	r3, [fp, #-280]
	b	.L24
.L26:
	ldr	r3, [fp, #-280]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-260]
	cmp	r3, #0
	beq	.L25
	ldr	r3, [fp, #-280]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-260]
	mov	r0, r3
	bl	node_free
.L25:
	ldr	r3, [fp, #-280]
	add	r3, r3, #1
	str	r3, [fp, #-280]
.L24:
	ldr	r2, [fp, #-280]
	ldr	r3, [fp, #-276]
	cmp	r2, r3
	bls	.L26
	mov	r3, #0
.L27:
	ldr	r2, .L29
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L28
	bl	__stack_chk_fail
.L28:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC5
	.word	__PRETTY_FUNCTION__.5165
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	stderr
	.word	.LC3
	.word	.LC4
	.size	parse_tree, .-parse_tree
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	add, %function
add:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L32
	ldr	r3, [fp, #-20]
	b	.L33
.L32:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L34
	ldr	r3, [fp, #-16]
	b	.L33
.L34:
	mov	r1, #0
	mov	r0, #0
	bl	node_new
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
	nop
.L35:
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	explode
	mov	r3, r0
	cmp	r3, #0
	bne	.L35
	ldr	r0, [fp, #-8]
	bl	split
	mov	r3, r0
	cmp	r3, #0
	bne	.L35
	ldr	r3, [fp, #-8]
.L33:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	add, .-add
	.section	.rodata
	.align	2
.LC6:
	.ascii	"IS_NUMBER(root->left) && IS_NUMBER(root->right)\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	explode, %function
explode:
	@ 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, #8]
	cmp	r3, #0
	bne	.L37
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	bne	.L37
	mov	r3, #0
	b	.L38
.L37:
	ldr	r3, [fp, #-20]
	cmp	r3, #4
	bne	.L39
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L40
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	bne	.L40
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L40
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L57
.L40:
	ldr	r3, .L58
	mov	r2, #130
	ldr	r1, .L58+4
	ldr	r0, .L58+8
	bl	__assert_fail
.L57:
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	b	.L42
.L44:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
.L42:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L43
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	beq	.L44
.L43:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L45
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-8]
	b	.L46
.L47:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-8]
.L46:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	bne	.L47
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	ldr	r3, [r3]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3]
.L45:
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	b	.L48
.L50:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
.L48:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L49
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	beq	.L50
.L49:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L51
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-8]
	b	.L52
.L53:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-8]
.L52:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L53
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	ldr	r3, [r3]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3]
.L51:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	node_free
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	node_free
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #12]
	mov	r3, #1
	b	.L38
.L39:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	explode
	mov	r3, r0
	cmp	r3, #0
	bne	.L54
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	explode
	mov	r3, r0
	cmp	r3, #0
	beq	.L55
.L54:
	mov	r3, #1
	b	.L38
.L55:
	mov	r3, #0
.L38:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L59:
	.align	2
.L58:
	.word	__PRETTY_FUNCTION__.5191
	.word	.LC0
	.word	.LC6
	.size	explode, .-explode
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	split, %function
split:
	@ 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, #8]
	cmp	r3, #0
	bne	.L61
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	bne	.L61
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #9
	ble	.L62
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	node_new
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	add	r3, r2, r3
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	node_new
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #1
	b	.L63
.L62:
	mov	r3, #0
	b	.L63
.L61:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	split
	mov	r3, r0
	cmp	r3, #0
	bne	.L64
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	split
	mov	r3, r0
	cmp	r3, #0
	beq	.L65
.L64:
	mov	r3, #1
	b	.L63
.L65:
	mov	r3, #0
.L63:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	split, .-split
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	magnitude, %function
magnitude:
	@ 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]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L68
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	bne	.L68
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	b	.L69
.L68:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	magnitude
	mov	r2, r0
	mov	r3, r2
	lsl	r3, r3, #1
	add	r4, r3, r2
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	magnitude
	mov	r3, r0
	lsl	r3, r3, #1
	add	r3, r4, r3
.L69:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	magnitude, .-magnitude
	.section	.rodata
	.align	2
.LC7:
	.ascii	"cannot parse a tree from %s\000"
	.align	2
.LC8:
	.ascii	"%ld\012\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	ldr	r3, .L76
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-72]
	sub	r3, fp, #68
	mov	r2, #60
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-84]
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L71
.L73:
	ldr	r3, .L76+4
	ldr	r2, [r3]
	sub	r3, fp, #72
	mov	r1, #64
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	beq	.L71
	sub	r3, fp, #72
	mov	r0, r3
	bl	parse_tree
	str	r0, [fp, #-80]
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	bne	.L72
	ldr	r3, .L76+8
	ldr	r3, [r3]
	sub	r2, fp, #72
	ldr	r1, .L76+12
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L72:
	ldr	r1, [fp, #-80]
	ldr	r0, [fp, #-84]
	bl	add
	str	r0, [fp, #-84]
.L71:
	ldr	r3, .L76+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L73
	ldr	r0, [fp, #-84]
	bl	magnitude
	str	r0, [fp, #-76]
	ldr	r0, [fp, #-84]
	bl	node_free
	ldr	r1, [fp, #-76]
	ldr	r0, .L76+16
	bl	printf
	mov	r3, #0
	ldr	r2, .L76
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L75
	bl	__stack_chk_fail
.L75:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L77:
	.align	2
.L76:
	.word	.LC9
	.word	stdin
	.word	stderr
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5165, %object
	.size	__PRETTY_FUNCTION__.5165, 11
__PRETTY_FUNCTION__.5165:
	.ascii	"parse_tree\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5191, %object
	.size	__PRETTY_FUNCTION__.5191, 8
__PRETTY_FUNCTION__.5191:
	.ascii	"explode\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
