	.file	"620250.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, 24
	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	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR 16[rax], rdx
	nop
	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	.L3
	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	eax, 0
	jmp	.L2
.L4:
	mov	DWORD PTR -56[rbp], 0
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	mov	BYTE PTR -18[rbp+rax], 32
	add	DWORD PTR -56[rbp], 1
.L6:
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	movzx	eax, BYTE PTR -18[rbp+rax]
	test	al, al
	jne	.L7
	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	.L8
.L9:
	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
.L8:
	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	.L9
	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	.L3
	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
	mov	rax, QWORD PTR -32[rbp]
	jmp	.L2
.L3:
.L2:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	Build_Tree, .-Build_Tree
	.globl	Is_Present
	.type	Is_Present, @function
Is_Present:
.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
	mov	DWORD PTR -12[rbp], esi
	cmp	QWORD PTR -8[rbp], 0
	jne	.L13
	mov	eax, 0
	jmp	.L14
.L13:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -12[rbp], eax
	jne	.L15
	mov	eax, 1
	jmp	.L14
.L15:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	edx, DWORD PTR -12[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	Is_Present
	test	al, al
	jne	.L16
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	edx, DWORD PTR -12[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	Is_Present
	test	al, al
	je	.L17
.L16:
	mov	eax, 1
	jmp	.L18
.L17:
	mov	eax, 0
.L18:
	and	eax, 1
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	Is_Present, .-Is_Present
	.globl	Find_LCA
	.type	Find_LCA, @function
Find_LCA:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	cmp	QWORD PTR -8[rbp], 0
	jne	.L20
	mov	eax, 0
	jmp	.L21
.L20:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -12[rbp], eax
	je	.L22
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -16[rbp], eax
	jne	.L23
.L22:
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L21
.L23:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	edx, DWORD PTR -12[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	Is_Present
	test	al, al
	je	.L24
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	edx, DWORD PTR -16[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	Is_Present
	test	al, al
	je	.L24
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	edx, DWORD PTR -16[rbp]
	mov	ecx, DWORD PTR -12[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	Find_LCA
	jmp	.L21
.L24:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	edx, DWORD PTR -12[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	Is_Present
	test	al, al
	je	.L25
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	edx, DWORD PTR -16[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	Is_Present
	test	al, al
	je	.L25
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	edx, DWORD PTR -16[rbp]
	mov	ecx, DWORD PTR -12[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	Find_LCA
	jmp	.L21
.L25:
	mov	rax, QWORD PTR -8[rbp]
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	Find_LCA, .-Find_LCA
	.section	.rodata
.LC0:
	.string	"%[^\n]"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -999424[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 624
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 8
	call	malloc@PLT
	mov	QWORD PTR -1000032[rbp], rax
	mov	rax, QWORD PTR -1000032[rbp]
	mov	QWORD PTR [rax], 0
	mov	DWORD PTR -1000036[rbp], 0
	lea	rax, -1000016[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdx, -1000040[rbp]
	lea	rax, -1000044[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdx, -1000036[rbp]
	lea	rax, -1000016[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	Build_Tree
	mov	rdx, QWORD PTR -1000032[rbp]
	mov	QWORD PTR [rdx], rax
	mov	edx, DWORD PTR -1000040[rbp]
	mov	ecx, DWORD PTR -1000044[rbp]
	mov	rax, QWORD PTR -1000032[rbp]
	mov	rax, QWORD PTR [rax]
	mov	esi, ecx
	mov	rdi, rax
	call	Find_LCA
	mov	QWORD PTR -1000024[rbp], rax
	mov	rax, QWORD PTR -1000024[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	"620250.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, #12
	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]
	ldr	r2, [fp, #-24]
	str	r2, [r3, #8]
	nop
	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, .L12
	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	.L3
	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
	mov	r3, #0
	b	.L2
.L4:
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L6
.L7:
	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]
.L6:
	sub	r2, fp, #20
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L7
	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	.L8
.L9:
	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]
.L8:
	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	.L9
	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	.L3
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-36]
	bl	Create_Node
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	b	.L2
.L3:
.L2:
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC0
	.size	Build_Tree, .-Build_Tree
	.align	2
	.global	Is_Present
	.syntax unified
	.arm
	.fpu softvfp
	.type	Is_Present, %function
Is_Present:
	@ 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	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L15
	mov	r3, #0
	b	.L16
.L15:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L17
	mov	r3, #1
	b	.L16
.L17:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	Is_Present
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	Is_Present
	mov	r3, r0
	cmp	r3, #0
	beq	.L19
.L18:
	mov	r3, #1
	b	.L20
.L19:
	mov	r3, #0
.L20:
	and	r3, r3, #1
	and	r3, r3, #255
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	Is_Present, .-Is_Present
	.align	2
	.global	Find_LCA
	.syntax unified
	.arm
	.fpu softvfp
	.type	Find_LCA, %function
Find_LCA:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L22
	mov	r3, #0
	b	.L23
.L22:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	beq	.L24
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L25
.L24:
	ldr	r3, [fp, #-8]
	b	.L23
.L25:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	Is_Present
	mov	r3, r0
	cmp	r3, #0
	beq	.L26
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	Is_Present
	mov	r3, r0
	cmp	r3, #0
	beq	.L26
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	Find_LCA
	mov	r3, r0
	b	.L23
.L26:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	Is_Present
	mov	r3, r0
	cmp	r3, #0
	beq	.L27
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	Is_Present
	mov	r3, r0
	cmp	r3, #0
	beq	.L27
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	Find_LCA
	mov	r3, r0
	b	.L23
.L27:
	ldr	r3, [fp, #-8]
.L23:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	Find_LCA, .-Find_LCA
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%[^\012]\000"
	.align	2
.LC2:
	.ascii	"%d %d\000"
	.align	2
.LC3:
	.ascii	"%d\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1000024
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #999424
	sub	sp, sp, #604
	ldr	r3, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #999424
	sub	r3, r3, #12
	mov	r4, r3
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	str	r3, [r4, #-588]
	sub	r3, fp, #999424
	sub	r3, r3, #12
	ldr	r3, [r3, #-588]
	mov	r2, #0
	str	r2, [r3]
	sub	r3, fp, #999424
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-592]
	sub	r3, fp, #999424
	sub	r3, r3, #12
	sub	r3, r3, #580
	mov	r1, r3
	ldr	r0, .L30+4
	bl	__isoc99_scanf
	sub	r2, fp, #999424
	sub	r2, r2, #12
	sub	r2, r2, #596
	sub	r3, fp, #999424
	sub	r3, r3, #12
	sub	r3, r3, #600
	mov	r1, r3
	ldr	r0, .L30+8
	bl	__isoc99_scanf
	sub	r2, fp, #999424
	sub	r2, r2, #12
	sub	r2, r2, #592
	sub	r3, fp, #999424
	sub	r3, r3, #12
	sub	r3, r3, #580
	mov	r1, r2
	mov	r0, r3
	bl	Build_Tree
	mov	r2, r0
	sub	r3, fp, #999424
	sub	r3, r3, #12
	ldr	r3, [r3, #-588]
	str	r2, [r3]
	sub	r3, fp, #999424
	sub	r3, r3, #12
	ldr	r3, [r3, #-588]
	ldr	r3, [r3]
	sub	r2, fp, #999424
	sub	r2, r2, #12
	ldr	r1, [r2, #-600]
	sub	r2, fp, #999424
	sub	r2, r2, #12
	ldr	r2, [r2, #-596]
	sub	r0, fp, #999424
	sub	r0, r0, #12
	mov	r4, r0
	mov	r0, r3
	bl	Find_LCA
	str	r0, [r4, #-584]
	sub	r3, fp, #999424
	sub	r3, r3, #12
	ldr	r3, [r3, #-584]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L30+12
	bl	printf
	nop
	ldr	r3, .L30
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L29
	bl	__stack_chk_fail
.L29:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC4
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
