	.file	"141359.c"
	.intel_syntax noprefix
	.text
	.globl	Parent
	.bss
	.align 32
	.type	Parent, @object
	.size	Parent, 200004
Parent:
	.zero	200004
	.globl	eat
	.align 32
	.type	eat, @object
	.size	eat, 200004
eat:
	.zero	200004
	.globl	beeat
	.align 32
	.type	beeat, @object
	.size	beeat, 200004
beeat:
	.zero	200004
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d%d%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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, 56
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -28[rbp], 0
	lea	rdx, -52[rbp]
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -32[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Parent[rip]
	mov	DWORD PTR [rdx+rax], -1
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, eat[rip]
	mov	DWORD PTR [rdx+rax], -1
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, beeat[rip]
	mov	DWORD PTR [rdx+rax], -1
	add	DWORD PTR -32[rbp], 1
.L2:
	mov	eax, DWORD PTR -48[rbp]
	cmp	DWORD PTR -32[rbp], eax
	jle	.L3
	mov	DWORD PTR -32[rbp], 0
	jmp	.L4
.L24:
	lea	rcx, -40[rbp]
	lea	rdx, -44[rbp]
	lea	rax, -36[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edx, DWORD PTR -44[rbp]
	mov	eax, DWORD PTR -48[rbp]
	cmp	edx, eax
	jg	.L5
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -48[rbp]
	cmp	edx, eax
	jg	.L5
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, 2
	jne	.L6
	mov	edx, DWORD PTR -44[rbp]
	mov	eax, DWORD PTR -40[rbp]
	cmp	edx, eax
	jne	.L6
.L5:
	add	DWORD PTR -28[rbp], 1
	jmp	.L7
.L6:
	mov	eax, DWORD PTR -44[rbp]
	mov	edi, eax
	call	root
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	mov	edi, eax
	call	root
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, eat[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -1
	je	.L8
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, eat[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	ebx, DWORD PTR -44[rbp]
	mov	edi, eax
	call	root
	movsx	rdx, ebx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, eat[rip]
	mov	DWORD PTR [rcx+rdx], eax
.L8:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, beeat[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -1
	je	.L9
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, beeat[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	ebx, DWORD PTR -44[rbp]
	mov	edi, eax
	call	root
	movsx	rdx, ebx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, beeat[rip]
	mov	DWORD PTR [rcx+rdx], eax
.L9:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, eat[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -1
	je	.L10
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, eat[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	ebx, DWORD PTR -40[rbp]
	mov	edi, eax
	call	root
	movsx	rdx, ebx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, eat[rip]
	mov	DWORD PTR [rcx+rdx], eax
.L10:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, beeat[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -1
	je	.L11
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, beeat[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	ebx, DWORD PTR -40[rbp]
	mov	edi, eax
	call	root
	movsx	rdx, ebx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, beeat[rip]
	mov	DWORD PTR [rcx+rdx], eax
.L11:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, 1
	jne	.L12
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, eat[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -40[rbp]
	cmp	edx, eax
	je	.L13
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, eat[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -44[rbp]
	cmp	edx, eax
	jne	.L14
.L13:
	add	DWORD PTR -28[rbp], 1
	jmp	.L7
.L14:
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	esi, edx
	mov	edi, eax
	call	merge
	jmp	.L7
.L12:
	mov	edx, DWORD PTR -44[rbp]
	mov	eax, DWORD PTR -40[rbp]
	cmp	edx, eax
	je	.L16
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, eat[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -44[rbp]
	cmp	edx, eax
	jne	.L17
.L16:
	add	DWORD PTR -28[rbp], 1
	jmp	.L7
.L17:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, eat[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -1
	jne	.L18
	mov	edx, DWORD PTR -44[rbp]
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, eat[rip]
	mov	DWORD PTR [rcx+rdx], eax
	jmp	.L19
.L18:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, eat[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, edx
	mov	edi, eax
	call	merge
.L19:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, beeat[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -1
	jne	.L20
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -44[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, beeat[rip]
	mov	DWORD PTR [rcx+rdx], eax
	jmp	.L21
.L20:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, beeat[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -44[rbp]
	mov	esi, edx
	mov	edi, eax
	call	merge
.L21:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, beeat[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -1
	je	.L22
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, eat[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -1
	jne	.L22
	mov	eax, DWORD PTR -44[rbp]
	mov	edx, DWORD PTR -40[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, beeat[rip]
	mov	eax, DWORD PTR [rcx+rax]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, eat[rip]
	mov	DWORD PTR [rcx+rdx], eax
	jmp	.L7
.L22:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, beeat[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -1
	jne	.L23
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, eat[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -1
	je	.L23
	mov	eax, DWORD PTR -40[rbp]
	mov	edx, DWORD PTR -44[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, eat[rip]
	mov	eax, DWORD PTR [rcx+rax]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, beeat[rip]
	mov	DWORD PTR [rcx+rdx], eax
	jmp	.L7
.L23:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, beeat[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -1
	je	.L7
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, eat[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -1
	je	.L7
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, eat[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, beeat[rip]
	mov	eax, DWORD PTR [rcx+rax]
	mov	esi, edx
	mov	edi, eax
	call	merge
.L7:
	add	DWORD PTR -32[rbp], 1
.L4:
	mov	eax, DWORD PTR -52[rbp]
	cmp	DWORD PTR -32[rbp], eax
	jl	.L24
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -24[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	root
	.type	root, @function
root:
.LFB1:
	.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 -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -8[rbp], eax
	jmp	.L28
.L29:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Parent[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -8[rbp], eax
.L28:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Parent[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jg	.L29
	jmp	.L30
.L31:
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Parent[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, Parent[rip]
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR [rcx+rdx], eax
.L30:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jne	.L31
	mov	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	root, .-root
	.globl	merge
	.type	merge, @function
merge:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	root
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	root
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jne	.L34
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L35
.L34:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Parent[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, Parent[rip]
	mov	eax, DWORD PTR [rcx+rax]
	cmp	edx, eax
	jge	.L36
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Parent[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Parent[rip]
	mov	eax, DWORD PTR [rdx+rax]
	add	ecx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Parent[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, Parent[rip]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, eat[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -1
	jne	.L37
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, eat[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -1
	je	.L37
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, eat[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, eat[rip]
	mov	DWORD PTR [rcx+rdx], eax
	jmp	.L38
.L37:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, eat[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -1
	je	.L38
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, eat[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -1
	je	.L38
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, eat[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, eat[rip]
	mov	eax, DWORD PTR [rcx+rax]
	mov	esi, edx
	mov	edi, eax
	call	merge
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, eat[rip]
	mov	DWORD PTR [rcx+rdx], eax
.L38:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, beeat[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -1
	jne	.L39
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, beeat[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -1
	je	.L39
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, beeat[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, beeat[rip]
	mov	DWORD PTR [rcx+rdx], eax
	jmp	.L40
.L39:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, beeat[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -1
	je	.L40
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, beeat[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -1
	je	.L40
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, beeat[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, beeat[rip]
	mov	eax, DWORD PTR [rcx+rax]
	mov	esi, edx
	mov	edi, eax
	call	merge
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, beeat[rip]
	mov	DWORD PTR [rcx+rdx], eax
.L40:
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L35
.L36:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Parent[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Parent[rip]
	mov	eax, DWORD PTR [rdx+rax]
	add	ecx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Parent[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, Parent[rip]
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, eat[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -1
	jne	.L41
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, eat[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -1
	je	.L41
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, eat[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, eat[rip]
	mov	DWORD PTR [rcx+rdx], eax
	jmp	.L42
.L41:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, eat[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -1
	je	.L42
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, eat[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -1
	je	.L42
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, eat[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, eat[rip]
	mov	eax, DWORD PTR [rcx+rax]
	mov	esi, edx
	mov	edi, eax
	call	merge
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, eat[rip]
	mov	DWORD PTR [rcx+rdx], eax
.L42:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, beeat[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -1
	jne	.L43
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, beeat[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -1
	je	.L43
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, beeat[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, beeat[rip]
	mov	DWORD PTR [rcx+rdx], eax
	jmp	.L44
.L43:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, beeat[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -1
	je	.L44
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, beeat[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -1
	je	.L44
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, beeat[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, beeat[rip]
	mov	eax, DWORD PTR [rcx+rax]
	mov	esi, edx
	mov	edi, eax
	call	merge
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, beeat[rip]
	mov	DWORD PTR [rcx+rdx], eax
.L44:
	mov	eax, DWORD PTR -8[rbp]
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	merge, .-merge
	.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	"141359.c"
	.text
	.comm	Parent,200004,4
	.comm	eat,200004,4
	.comm	beeat,200004,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d%d\000"
	.align	2
.LC1:
	.ascii	"%d%d%d\000"
	.align	2
.LC2:
	.ascii	"%d\012\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 = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-20]
	sub	r2, fp, #44
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, .L27+4
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L2
.L3:
	ldr	r2, .L27+8
	ldr	r3, [fp, #-24]
	mvn	r1, #0
	str	r1, [r2, r3, lsl #2]
	ldr	r2, .L27+12
	ldr	r3, [fp, #-24]
	mvn	r1, #0
	str	r1, [r2, r3, lsl #2]
	ldr	r2, .L27+16
	ldr	r3, [fp, #-24]
	mvn	r1, #0
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L2:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	ble	.L3
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L4
.L24:
	sub	r3, fp, #32
	sub	r2, fp, #36
	sub	r1, fp, #28
	ldr	r0, .L27+20
	bl	__isoc99_scanf
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	bgt	.L5
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	bgt	.L5
	ldr	r3, [fp, #-28]
	cmp	r3, #2
	bne	.L6
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	bne	.L6
.L5:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	b	.L7
.L6:
	ldr	r3, [fp, #-36]
	mov	r0, r3
	bl	root
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	root
	mov	r3, r0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-36]
	ldr	r2, .L27+12
	ldr	r3, [r2, r3, lsl #2]
	cmn	r3, #1
	beq	.L8
	ldr	r3, [fp, #-36]
	ldr	r2, .L27+12
	ldr	r3, [r2, r3, lsl #2]
	ldr	r4, [fp, #-36]
	mov	r0, r3
	bl	root
	mov	r3, r0
	ldr	r2, .L27+12
	str	r3, [r2, r4, lsl #2]
.L8:
	ldr	r3, [fp, #-36]
	ldr	r2, .L27+16
	ldr	r3, [r2, r3, lsl #2]
	cmn	r3, #1
	beq	.L9
	ldr	r3, [fp, #-36]
	ldr	r2, .L27+16
	ldr	r3, [r2, r3, lsl #2]
	ldr	r4, [fp, #-36]
	mov	r0, r3
	bl	root
	mov	r3, r0
	ldr	r2, .L27+16
	str	r3, [r2, r4, lsl #2]
.L9:
	ldr	r3, [fp, #-32]
	ldr	r2, .L27+12
	ldr	r3, [r2, r3, lsl #2]
	cmn	r3, #1
	beq	.L10
	ldr	r3, [fp, #-32]
	ldr	r2, .L27+12
	ldr	r3, [r2, r3, lsl #2]
	ldr	r4, [fp, #-32]
	mov	r0, r3
	bl	root
	mov	r3, r0
	ldr	r2, .L27+12
	str	r3, [r2, r4, lsl #2]
.L10:
	ldr	r3, [fp, #-32]
	ldr	r2, .L27+16
	ldr	r3, [r2, r3, lsl #2]
	cmn	r3, #1
	beq	.L11
	ldr	r3, [fp, #-32]
	ldr	r2, .L27+16
	ldr	r3, [r2, r3, lsl #2]
	ldr	r4, [fp, #-32]
	mov	r0, r3
	bl	root
	mov	r3, r0
	ldr	r2, .L27+16
	str	r3, [r2, r4, lsl #2]
.L11:
	ldr	r3, [fp, #-28]
	cmp	r3, #1
	bne	.L12
	ldr	r3, [fp, #-36]
	ldr	r2, .L27+12
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	beq	.L13
	ldr	r3, [fp, #-32]
	ldr	r2, .L27+12
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	bne	.L14
.L13:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	b	.L7
.L14:
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-32]
	mov	r1, r2
	mov	r0, r3
	bl	merge
	b	.L7
.L12:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	beq	.L16
	ldr	r3, [fp, #-32]
	ldr	r2, .L27+12
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	bne	.L17
.L16:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	b	.L7
.L17:
	ldr	r3, [fp, #-36]
	ldr	r2, .L27+12
	ldr	r3, [r2, r3, lsl #2]
	cmn	r3, #1
	bne	.L18
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-32]
	ldr	r1, .L27+12
	str	r2, [r1, r3, lsl #2]
	b	.L19
.L18:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-36]
	ldr	r1, .L27+12
	ldr	r3, [r1, r3, lsl #2]
	mov	r1, r3
	mov	r0, r2
	bl	merge
.L19:
	ldr	r3, [fp, #-32]
	ldr	r2, .L27+16
	ldr	r3, [r2, r3, lsl #2]
	cmn	r3, #1
	bne	.L20
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-36]
	ldr	r1, .L27+16
	str	r2, [r1, r3, lsl #2]
	b	.L21
.L20:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-32]
	ldr	r1, .L27+16
	ldr	r3, [r1, r3, lsl #2]
	mov	r1, r3
	mov	r0, r2
	bl	merge
.L21:
	ldr	r3, [fp, #-36]
	ldr	r2, .L27+16
	ldr	r3, [r2, r3, lsl #2]
	cmn	r3, #1
	beq	.L22
	ldr	r3, [fp, #-32]
	ldr	r2, .L27+12
	ldr	r3, [r2, r3, lsl #2]
	cmn	r3, #1
	bne	.L22
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-32]
	ldr	r1, .L27+16
	ldr	r2, [r1, r2, lsl #2]
	ldr	r1, .L27+12
	str	r2, [r1, r3, lsl #2]
	b	.L7
.L22:
	ldr	r3, [fp, #-36]
	ldr	r2, .L27+16
	ldr	r3, [r2, r3, lsl #2]
	cmn	r3, #1
	bne	.L23
	ldr	r3, [fp, #-32]
	ldr	r2, .L27+12
	ldr	r3, [r2, r3, lsl #2]
	cmn	r3, #1
	beq	.L23
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-36]
	ldr	r1, .L27+12
	ldr	r2, [r1, r2, lsl #2]
	ldr	r1, .L27+16
	str	r2, [r1, r3, lsl #2]
	b	.L7
.L23:
	ldr	r3, [fp, #-36]
	ldr	r2, .L27+16
	ldr	r3, [r2, r3, lsl #2]
	cmn	r3, #1
	beq	.L7
	ldr	r3, [fp, #-32]
	ldr	r2, .L27+12
	ldr	r3, [r2, r3, lsl #2]
	cmn	r3, #1
	beq	.L7
	ldr	r3, [fp, #-36]
	ldr	r2, .L27+16
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-32]
	ldr	r1, .L27+12
	ldr	r3, [r1, r3, lsl #2]
	mov	r1, r3
	mov	r0, r2
	bl	merge
.L7:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L4:
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L24
	ldr	r1, [fp, #-20]
	ldr	r0, .L27+24
	bl	printf
	mov	r3, #0
	ldr	r2, .L27
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L26
	bl	__stack_chk_fail
.L26:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC3
	.word	.LC0
	.word	Parent
	.word	eat
	.word	beeat
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.align	2
	.global	root
	.syntax unified
	.arm
	.fpu softvfp
	.type	root, %function
root:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	b	.L30
.L31:
	ldr	r2, .L35
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-12]
.L30:
	ldr	r2, .L35
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bgt	.L31
	b	.L32
.L33:
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r2, .L35
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-16]
	ldr	r1, .L35
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r1, r3, lsl #2]
.L32:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bne	.L33
	ldr	r3, [fp, #-12]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L36:
	.align	2
.L35:
	.word	Parent
	.size	root, .-root
	.align	2
	.global	merge
	.syntax unified
	.arm
	.fpu softvfp
	.type	merge, %function
merge:
	@ 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	root
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	root
	str	r0, [fp, #-12]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bne	.L38
	ldr	r3, [fp, #-8]
	b	.L39
.L38:
	ldr	r2, .L49
	ldr	r3, [fp, #-8]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L49
	ldr	r3, [fp, #-12]
	ldr	r3, [r1, r3, lsl #2]
	cmp	r2, r3
	bge	.L40
	ldr	r2, .L49
	ldr	r3, [fp, #-8]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L49
	ldr	r3, [fp, #-12]
	ldr	r3, [r1, r3, lsl #2]
	add	r2, r2, r3
	ldr	r1, .L49
	ldr	r3, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	ldr	r1, .L49
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	ldr	r2, .L49+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	cmn	r3, #1
	bne	.L41
	ldr	r2, .L49+4
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	cmn	r3, #1
	beq	.L41
	ldr	r2, .L49+4
	ldr	r3, [fp, #-12]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L49+4
	ldr	r3, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	b	.L42
.L41:
	ldr	r2, .L49+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	cmn	r3, #1
	beq	.L42
	ldr	r2, .L49+4
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	cmn	r3, #1
	beq	.L42
	ldr	r2, .L49+4
	ldr	r3, [fp, #-8]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L49+4
	ldr	r3, [fp, #-12]
	ldr	r3, [r1, r3, lsl #2]
	mov	r1, r3
	mov	r0, r2
	bl	merge
	mov	r2, r0
	ldr	r1, .L49+4
	ldr	r3, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
.L42:
	ldr	r2, .L49+8
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	cmn	r3, #1
	bne	.L43
	ldr	r2, .L49+8
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	cmn	r3, #1
	beq	.L43
	ldr	r2, .L49+8
	ldr	r3, [fp, #-12]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L49+8
	ldr	r3, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	b	.L44
.L43:
	ldr	r2, .L49+8
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	cmn	r3, #1
	beq	.L44
	ldr	r2, .L49+8
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	cmn	r3, #1
	beq	.L44
	ldr	r2, .L49+8
	ldr	r3, [fp, #-8]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L49+8
	ldr	r3, [fp, #-12]
	ldr	r3, [r1, r3, lsl #2]
	mov	r1, r3
	mov	r0, r2
	bl	merge
	mov	r2, r0
	ldr	r1, .L49+8
	ldr	r3, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
.L44:
	ldr	r3, [fp, #-8]
	b	.L39
.L40:
	ldr	r2, .L49
	ldr	r3, [fp, #-12]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L49
	ldr	r3, [fp, #-8]
	ldr	r3, [r1, r3, lsl #2]
	add	r2, r2, r3
	ldr	r1, .L49
	ldr	r3, [fp, #-12]
	str	r2, [r1, r3, lsl #2]
	ldr	r1, .L49
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r1, r3, lsl #2]
	ldr	r2, .L49+4
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	cmn	r3, #1
	bne	.L45
	ldr	r2, .L49+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	cmn	r3, #1
	beq	.L45
	ldr	r2, .L49+4
	ldr	r3, [fp, #-8]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L49+4
	ldr	r3, [fp, #-12]
	str	r2, [r1, r3, lsl #2]
	b	.L46
.L45:
	ldr	r2, .L49+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	cmn	r3, #1
	beq	.L46
	ldr	r2, .L49+4
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	cmn	r3, #1
	beq	.L46
	ldr	r2, .L49+4
	ldr	r3, [fp, #-8]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L49+4
	ldr	r3, [fp, #-12]
	ldr	r3, [r1, r3, lsl #2]
	mov	r1, r3
	mov	r0, r2
	bl	merge
	mov	r2, r0
	ldr	r1, .L49+4
	ldr	r3, [fp, #-12]
	str	r2, [r1, r3, lsl #2]
.L46:
	ldr	r2, .L49+8
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	cmn	r3, #1
	bne	.L47
	ldr	r2, .L49+8
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	cmn	r3, #1
	beq	.L47
	ldr	r2, .L49+8
	ldr	r3, [fp, #-8]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L49+8
	ldr	r3, [fp, #-12]
	str	r2, [r1, r3, lsl #2]
	b	.L48
.L47:
	ldr	r2, .L49+8
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	cmn	r3, #1
	beq	.L48
	ldr	r2, .L49+8
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	cmn	r3, #1
	beq	.L48
	ldr	r2, .L49+8
	ldr	r3, [fp, #-8]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L49+8
	ldr	r3, [fp, #-12]
	ldr	r3, [r1, r3, lsl #2]
	mov	r1, r3
	mov	r0, r2
	bl	merge
	mov	r2, r0
	ldr	r1, .L49+8
	ldr	r3, [fp, #-12]
	str	r2, [r1, r3, lsl #2]
.L48:
	ldr	r3, [fp, #-12]
.L39:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L50:
	.align	2
.L49:
	.word	Parent
	.word	eat
	.word	beeat
	.size	merge, .-merge
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
