	.file	"152650.c"
	.intel_syntax noprefix
	.text
	.globl	Create_Node
	.type	Create_Node, @function
Create_Node:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	edi, 40
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 32[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	Create_Node, .-Create_Node
	.globl	Build_Tree
	.type	Build_Tree, @function
Build_Tree:
.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, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR [rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 40
	jne	.L4
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 2[rax]
	mov	rax, QWORD PTR -80[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR [rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 41
	jne	.L5
	mov	eax, 0
	jmp	.L3
.L5:
	mov	DWORD PTR -56[rbp], 0
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	mov	BYTE PTR -18[rbp+rax], 32
	add	DWORD PTR -56[rbp], 1
.L7:
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	movzx	eax, BYTE PTR -18[rbp+rax]
	test	al, al
	jne	.L8
	mov	DWORD PTR -56[rbp], 0
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR [rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	mov	BYTE PTR -18[rbp+rax], dl
	jmp	.L9
.L10:
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -80[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR [rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	add	DWORD PTR -56[rbp], 1
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	mov	BYTE PTR -18[rbp+rax], dl
.L9:
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L10
	lea	rax, -18[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -52[rbp], eax
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 2[rax]
	mov	rax, QWORD PTR -80[rbp]
	mov	DWORD PTR [rax], edx
	mov	rdx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	Build_Tree
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 2[rax]
	mov	rax, QWORD PTR -80[rbp]
	mov	DWORD PTR [rax], edx
	mov	rdx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	Build_Tree
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 2[rax]
	mov	rax, QWORD PTR -80[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR [rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 41
	jne	.L4
	mov	rdx, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	Create_Node
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -48[rbp], 0
	je	.L11
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 8[rax], rdx
.L11:
	cmp	QWORD PTR -40[rbp], 0
	je	.L12
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 8[rax], rdx
.L12:
	mov	rax, QWORD PTR -32[rbp]
	jmp	.L3
.L4:
.L3:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	Build_Tree, .-Build_Tree
	.globl	Check_To_Include
	.type	Check_To_Include, @function
Check_To_Include:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	je	.L36
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L18
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	eax, DWORD PTR 32[rax]
	cmp	eax, 1
	jne	.L19
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 32[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L20
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	DWORD PTR 32[rax], 1
.L20:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	test	rax, rax
	je	.L21
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	DWORD PTR 32[rax], 1
.L21:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	Check_To_Include
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rdi, rax
	call	Check_To_Include
	jmp	.L15
.L19:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	eax, DWORD PTR 32[rax]
	test	eax, eax
	jne	.L15
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L22
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	ecx, DWORD PTR [rax]
	jmp	.L23
.L22:
	mov	ecx, 0
.L23:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	test	rax, rax
	je	.L24
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR [rax]
	jmp	.L25
.L24:
	mov	eax, 0
.L25:
	add	eax, ecx
	cmp	edx, eax
	jge	.L26
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 32[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L27
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	DWORD PTR 32[rax], 1
.L27:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	test	rax, rax
	je	.L28
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	DWORD PTR 32[rax], 1
.L28:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	Check_To_Include
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rdi, rax
	call	Check_To_Include
	jmp	.L15
.L26:
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 32[rax], 1
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	Check_To_Include
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rdi, rax
	call	Check_To_Include
	jmp	.L15
.L18:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L29
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	ecx, DWORD PTR [rax]
	jmp	.L30
.L29:
	mov	ecx, 0
.L30:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	test	rax, rax
	je	.L31
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR [rax]
	jmp	.L32
.L31:
	mov	eax, 0
.L32:
	add	eax, ecx
	cmp	edx, eax
	jge	.L33
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 32[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L34
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	DWORD PTR 32[rax], 1
.L34:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	test	rax, rax
	je	.L35
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	DWORD PTR 32[rax], 1
.L35:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	Check_To_Include
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rdi, rax
	call	Check_To_Include
	jmp	.L15
.L33:
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 32[rax], 1
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	Check_To_Include
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rdi, rax
	call	Check_To_Include
	jmp	.L15
.L36:
	nop
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	Check_To_Include, .-Check_To_Include
	.globl	Get_Sum
	.type	Get_Sum, @function
Get_Sum:
.LFB9:
	.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, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	cmp	QWORD PTR -40[rbp], 0
	jne	.L38
	mov	eax, 0
	jmp	.L39
.L38:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 32[rax]
	cmp	eax, 1
	jne	.L40
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -20[rbp], eax
	jmp	.L41
.L40:
	mov	DWORD PTR -20[rbp], 0
.L41:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	Get_Sum
	mov	edx, DWORD PTR -20[rbp]
	lea	ebx, [rax+rdx]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rdi, rax
	call	Get_Sum
	add	eax, ebx
.L39:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	Get_Sum, .-Get_Sum
	.globl	Get_Max_Sum
	.type	Get_Max_Sum, @function
Get_Max_Sum:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	Check_To_Include
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	Get_Sum
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	Get_Max_Sum, .-Get_Max_Sum
	.section	.rodata
.LC0:
	.string	"%[^\n]"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -98304[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 1728
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 8
	call	malloc@PLT
	mov	QWORD PTR -100024[rbp], rax
	mov	rax, QWORD PTR -100024[rbp]
	mov	QWORD PTR [rax], 0
	mov	DWORD PTR -100032[rbp], 0
	lea	rax, -100016[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdx, -100032[rbp]
	lea	rax, -100016[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	Build_Tree
	mov	rdx, QWORD PTR -100024[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -100024[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	Get_Max_Sum
	mov	DWORD PTR -100028[rbp], eax
	mov	eax, DWORD PTR -100028[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L45
	call	__stack_chk_fail@PLT
.L45:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.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	"152650.c"
	.text
	.align	2
	.global	Create_Node
	.syntax unified
	.arm
	.fpu softvfp
	.type	Create_Node, %function
Create_Node:
	@ 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	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r0, #20
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #16]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	Create_Node, .-Create_Node
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	Build_Tree
	.syntax unified
	.arm
	.fpu softvfp
	.type	Build_Tree, %function
Build_Tree:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-48]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #40
	bne	.L4
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	add	r2, r3, #2
	ldr	r3, [fp, #-52]
	str	r2, [r3]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-48]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #41
	bne	.L5
	mov	r3, #0
	b	.L3
.L5:
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L7
.L8:
	sub	r2, fp, #20
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	mov	r2, #32
	strb	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L7:
	sub	r2, fp, #20
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L8
	mov	r3, #0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-48]
	add	r3, r3, r2
	ldrb	r1, [r3]	@ zero_extendqisi2
	sub	r2, fp, #20
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	b	.L9
.L10:
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-52]
	str	r2, [r3]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-48]
	add	r3, r3, r2
	ldr	r2, [fp, #-40]
	add	r2, r2, #1
	str	r2, [fp, #-40]
	ldrb	r1, [r3]	@ zero_extendqisi2
	sub	r2, fp, #20
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
.L9:
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L10
	sub	r3, fp, #20
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	add	r2, r3, #2
	ldr	r3, [fp, #-52]
	str	r2, [r3]
	ldr	r1, [fp, #-52]
	ldr	r0, [fp, #-48]
	bl	Build_Tree
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	add	r2, r3, #2
	ldr	r3, [fp, #-52]
	str	r2, [r3]
	ldr	r1, [fp, #-52]
	ldr	r0, [fp, #-48]
	bl	Build_Tree
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	add	r2, r3, #2
	ldr	r3, [fp, #-52]
	str	r2, [r3]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-48]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #41
	bne	.L4
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-36]
	bl	Create_Node
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L11
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-24]
	str	r2, [r3, #4]
.L11:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L12
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	str	r2, [r3, #4]
.L12:
	ldr	r3, [fp, #-24]
	b	.L3
.L4:
.L3:
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC0
	.size	Build_Tree, .-Build_Tree
	.align	2
	.global	Check_To_Include
	.syntax unified
	.arm
	.fpu softvfp
	.type	Check_To_Include, %function
Check_To_Include:
	@ 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	.L38
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L20
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r3, [r3, #16]
	cmp	r3, #1
	bne	.L21
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #16]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L22
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r2, #1
	str	r2, [r3, #16]
.L22:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L23
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	mov	r2, #1
	str	r2, [r3, #16]
.L23:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	Check_To_Include
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	Check_To_Include
	b	.L17
.L21:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r3, [r3, #16]
	cmp	r3, #0
	bne	.L17
	ldr	r3, [fp, #-8]
	ldr	r1, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L24
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	ldr	r2, [r3]
	b	.L25
.L24:
	mov	r2, #0
.L25:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L26
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	ldr	r3, [r3]
	b	.L27
.L26:
	mov	r3, #0
.L27:
	add	r3, r2, r3
	cmp	r1, r3
	bge	.L28
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #16]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L29
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r2, #1
	str	r2, [r3, #16]
.L29:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L30
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	mov	r2, #1
	str	r2, [r3, #16]
.L30:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	Check_To_Include
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	Check_To_Include
	b	.L17
.L28:
	ldr	r3, [fp, #-8]
	mov	r2, #1
	str	r2, [r3, #16]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	Check_To_Include
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	Check_To_Include
	b	.L17
.L20:
	ldr	r3, [fp, #-8]
	ldr	r1, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L31
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	ldr	r2, [r3]
	b	.L32
.L31:
	mov	r2, #0
.L32:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L33
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	ldr	r3, [r3]
	b	.L34
.L33:
	mov	r3, #0
.L34:
	add	r3, r2, r3
	cmp	r1, r3
	bge	.L35
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #16]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L36
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r2, #1
	str	r2, [r3, #16]
.L36:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L37
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	mov	r2, #1
	str	r2, [r3, #16]
.L37:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	Check_To_Include
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	Check_To_Include
	b	.L17
.L35:
	ldr	r3, [fp, #-8]
	mov	r2, #1
	str	r2, [r3, #16]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	Check_To_Include
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	Check_To_Include
	b	.L17
.L38:
	nop
.L17:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	Check_To_Include, .-Check_To_Include
	.align	2
	.global	Get_Sum
	.syntax unified
	.arm
	.fpu softvfp
	.type	Get_Sum, %function
Get_Sum:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L40
	mov	r3, #0
	b	.L41
.L40:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #16]
	cmp	r3, #1
	bne	.L42
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	b	.L43
.L42:
	mov	r3, #0
	str	r3, [fp, #-16]
.L43:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	Get_Sum
	mov	r2, r0
	ldr	r3, [fp, #-16]
	add	r4, r2, r3
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	Get_Sum
	mov	r3, r0
	add	r3, r4, r3
.L41:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	Get_Sum, .-Get_Sum
	.align	2
	.global	Get_Max_Sum
	.syntax unified
	.arm
	.fpu softvfp
	.type	Get_Max_Sum, %function
Get_Max_Sum:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	Check_To_Include
	ldr	r0, [fp, #-8]
	bl	Get_Sum
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	Get_Max_Sum, .-Get_Max_Sum
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%[^\012]\000"
	.align	2
.LC2:
	.ascii	"%d\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 100016
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #99328
	sub	sp, sp, #692
	ldr	r3, .L48
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #98304
	sub	r3, r3, #12
	mov	r4, r3
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	str	r3, [r4, #-1708]
	sub	r3, fp, #98304
	sub	r3, r3, #12
	ldr	r3, [r3, #-1708]
	mov	r2, #0
	str	r2, [r3]
	sub	r3, fp, #98304
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1712]
	sub	r3, fp, #99328
	sub	r3, r3, #12
	sub	r3, r3, #676
	mov	r1, r3
	ldr	r0, .L48+4
	bl	__isoc99_scanf
	sub	r2, fp, #99328
	sub	r2, r2, #12
	sub	r2, r2, #688
	sub	r3, fp, #99328
	sub	r3, r3, #12
	sub	r3, r3, #676
	mov	r1, r2
	mov	r0, r3
	bl	Build_Tree
	mov	r2, r0
	sub	r3, fp, #98304
	sub	r3, r3, #12
	ldr	r3, [r3, #-1708]
	str	r2, [r3]
	sub	r3, fp, #98304
	sub	r3, r3, #12
	ldr	r3, [r3, #-1708]
	ldr	r3, [r3]
	sub	r2, fp, #98304
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	Get_Max_Sum
	str	r0, [r4, #-1704]
	sub	r3, fp, #98304
	sub	r3, r3, #12
	ldr	r1, [r3, #-1704]
	ldr	r0, .L48+8
	bl	printf
	nop
	ldr	r3, .L48
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L47
	bl	__stack_chk_fail
.L47:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L49:
	.align	2
.L48:
	.word	.LC3
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
