	.file	"239308.c"
	.intel_syntax noprefix
	.text
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	name
	.align 32
	.type	name, @object
	.size	name, 297000
name:
	.zero	297000
	.globl	p1
	.align 32
	.type	p1, @object
	.size	p1, 12000
p1:
	.zero	12000
	.globl	p2
	.align 32
	.type	p2, @object
	.size	p2, 12000
p2:
	.zero	12000
	.globl	root
	.align 8
	.type	root, @object
	.size	root, 8
root:
	.zero	8
	.globl	u
	.align 4
	.type	u, @object
	.size	u, 4
u:
	.zero	4
	.text
	.globl	find
	.type	find, @function
find:
.LFB0:
	.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 -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	DWORD PTR -20[rbp], edx
	jmp	.L2
.L4:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	add	rax, 8
	mov	QWORD PTR -8[rbp], rax
.L2:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L3
	mov	rax, QWORD PTR -16[rbp]
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jne	.L4
.L3:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L5
	cmp	DWORD PTR -20[rbp], 0
	jne	.L6
	mov	eax, -1
	jmp	.L7
.L6:
	mov	edi, 24
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -16[rbp]
	movzx	edx, BYTE PTR [rdx]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR 4[rax], -1
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR 16[rax], 0
	mov	rdx, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rdx]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR 8[rdx], rax
.L5:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L8
	cmp	DWORD PTR -20[rbp], 0
	je	.L9
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, -1
	jne	.L9
	mov	eax, DWORD PTR u[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR u[rip], edx
	mov	rdx, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rdx]
	mov	DWORD PTR 4[rdx], eax
.L9:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 4[rax]
	jmp	.L7
.L8:
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rcx, 16[rax]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	mov	rdi, rcx
	call	find
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	find, .-find
	.section	.rodata
.LC0:
	.string	"%s %s %s"
.LC1:
	.string	"%s"
.LC2:
	.string	"*unknown*"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 4048
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -4044[rbp], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -4044[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, p2[rip]
	mov	DWORD PTR [rdx+rax], -1
	mov	eax, DWORD PTR -4044[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, p2[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -4044[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, p1[rip]
	mov	DWORD PTR [rcx+rdx], eax
	add	DWORD PTR -4044[rbp], 1
.L11:
	cmp	DWORD PTR -4044[rbp], 2999
	jle	.L12
	jmp	.L13
.L16:
	lea	rsi, -1008[rbp]
	lea	rcx, -2016[rbp]
	lea	rdx, -3024[rbp]
	lea	rax, -4032[rbp]
	mov	r8, rsi
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 3
	setne	al
	movzx	eax, al
	mov	DWORD PTR -4040[rbp], eax
	cmp	DWORD PTR -4040[rbp], 0
	jne	.L35
	lea	rax, -3024[rbp]
	mov	edx, 1
	mov	rsi, rax
	lea	rdi, root[rip]
	call	find
	mov	DWORD PTR -4044[rbp], eax
	mov	eax, DWORD PTR -4044[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	mov	rdx, rax
	sal	rdx, 5
	add	rax, rdx
	lea	rdx, name[rip]
	add	rdx, rax
	lea	rax, -3024[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	lea	rax, -2016[rbp]
	mov	edx, 1
	mov	rsi, rax
	lea	rdi, root[rip]
	call	find
	mov	DWORD PTR -4040[rbp], eax
	mov	eax, DWORD PTR -4040[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	mov	rdx, rax
	sal	rdx, 5
	add	rax, rdx
	lea	rdx, name[rip]
	add	rdx, rax
	lea	rax, -2016[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	lea	rax, -1008[rbp]
	mov	edx, 1
	mov	rsi, rax
	lea	rdi, root[rip]
	call	find
	mov	DWORD PTR -4036[rbp], eax
	mov	eax, DWORD PTR -4036[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	mov	rdx, rax
	sal	rdx, 5
	add	rax, rdx
	lea	rdx, name[rip]
	add	rdx, rax
	lea	rax, -1008[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	eax, DWORD PTR -4044[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, p1[rip]
	mov	eax, DWORD PTR -4040[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -4044[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, p2[rip]
	mov	eax, DWORD PTR -4036[rbp]
	mov	DWORD PTR [rcx+rdx], eax
.L13:
	lea	rax, -4032[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	gets@PLT
	test	eax, eax
	jne	.L16
	jmp	.L17
.L35:
	nop
	jmp	.L17
.L32:
	mov	DWORD PTR -4040[rbp], 0
	jmp	.L18
.L19:
	add	DWORD PTR -4040[rbp], 1
.L18:
	mov	eax, DWORD PTR -4040[rbp]
	cdqe
	movzx	eax, BYTE PTR -4032[rbp+rax]
	test	al, al
	jne	.L19
	mov	eax, DWORD PTR -4040[rbp]
	sub	eax, 2
	cdqe
	movzx	eax, BYTE PTR -4032[rbp+rax]
	cmp	al, 39
	jne	.L20
	mov	eax, DWORD PTR -4040[rbp]
	sub	eax, 2
	cdqe
	mov	BYTE PTR -4032[rbp+rax], 0
.L20:
	mov	eax, DWORD PTR -4040[rbp]
	sub	eax, 1
	cdqe
	movzx	eax, BYTE PTR -4032[rbp+rax]
	cmp	al, 39
	jne	.L21
	mov	eax, DWORD PTR -4040[rbp]
	sub	eax, 1
	cdqe
	mov	BYTE PTR -4032[rbp+rax], 0
.L21:
	lea	rax, -4032[rbp]
	mov	edx, 0
	mov	rsi, rax
	lea	rdi, root[rip]
	call	find
	mov	DWORD PTR -4044[rbp], eax
	jmp	.L22
.L30:
	mov	DWORD PTR -4040[rbp], 0
	jmp	.L23
.L24:
	add	DWORD PTR -4040[rbp], 1
.L23:
	mov	eax, DWORD PTR -4040[rbp]
	cdqe
	movzx	eax, BYTE PTR -4032[rbp+rax]
	test	al, al
	jne	.L24
	cmp	DWORD PTR -4044[rbp], 0
	jns	.L25
	mov	eax, DWORD PTR -4040[rbp]
	sub	eax, 1
	cdqe
	movzx	eax, BYTE PTR -4032[rbp+rax]
	cmp	al, 114
	je	.L36
	jmp	.L22
.L25:
	movzx	eax, BYTE PTR -4032[rbp]
	cmp	al, 102
	jne	.L28
	mov	eax, DWORD PTR -4044[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, p1[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -4044[rbp], eax
	jmp	.L29
.L28:
	mov	eax, DWORD PTR -4044[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, p2[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -4044[rbp], eax
.L29:
	mov	eax, DWORD PTR -4040[rbp]
	sub	eax, 1
	cdqe
	movzx	eax, BYTE PTR -4032[rbp+rax]
	cmp	al, 114
	je	.L37
.L22:
	lea	rax, -4032[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	test	eax, eax
	jne	.L30
	jmp	.L27
.L36:
	nop
	jmp	.L27
.L37:
	nop
.L27:
	cmp	DWORD PTR -4044[rbp], 0
	jns	.L31
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L17
.L31:
	mov	eax, DWORD PTR -4044[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	mov	rdx, rax
	sal	rdx, 5
	add	rax, rdx
	lea	rdx, name[rip]
	add	rax, rdx
	mov	rdi, rax
	call	puts@PLT
.L17:
	lea	rax, -4032[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, 1
	je	.L32
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"239308.c"
	.text
	.comm	n,4,4
	.comm	name,297000,4
	.comm	p1,12000,4
	.comm	p2,12000,4
	.comm	root,4,4
	.comm	u,4,4
	.align	2
	.global	find
	.syntax unified
	.arm
	.fpu softvfp
	.type	find, %function
find:
	@ 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]
	b	.L2
.L4:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	add	r3, r3, #8
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L3
	ldr	r3, [fp, #-12]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L4
.L3:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L6
	mvn	r3, #0
	b	.L7
.L6:
	mov	r0, #16
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mvn	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r2, [fp, #-8]
	ldr	r2, [r2]
	ldr	r3, [r3, #12]
	str	r3, [r2, #8]
.L5:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L8
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L9
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	cmn	r3, #1
	bne	.L9
	ldr	r3, .L10
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L10
	str	r2, [r1]
	ldr	r2, [fp, #-8]
	ldr	r2, [r2]
	str	r3, [r2, #4]
.L9:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	b	.L7
.L8:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	add	r0, r3, #12
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	ldr	r2, [fp, #-16]
	mov	r1, r3
	bl	find
	mov	r3, r0
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	u
	.size	find, .-find
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s %s %s\000"
	.align	2
.LC1:
	.ascii	"%s\000"
	.align	2
.LC2:
	.ascii	"*unknown*\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 = 4016
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #4016
	sub	sp, sp, #8
	ldr	r3, .L40
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-4020]
	b	.L13
.L14:
	ldr	r2, .L40+4
	ldr	r3, [fp, #-4020]
	mvn	r1, #0
	str	r1, [r2, r3, lsl #2]
	ldr	r2, .L40+4
	ldr	r3, [fp, #-4020]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L40+8
	ldr	r3, [fp, #-4020]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-4020]
	add	r3, r3, #1
	str	r3, [fp, #-4020]
.L13:
	ldr	r3, [fp, #-4020]
	ldr	r2, .L40+12
	cmp	r3, r2
	ble	.L14
	b	.L15
.L18:
	sub	r3, fp, #2000
	sub	r3, r3, #4
	sub	r3, r3, #4
	sub	r2, fp, #2992
	sub	r2, r2, #4
	sub	r2, r2, #12
	sub	r0, fp, #4000
	sub	r0, r0, #4
	sub	r0, r0, #4
	sub	r1, fp, #1008
	str	r1, [sp]
	ldr	r1, .L40+16
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #3
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-4016]
	ldr	r3, [fp, #-4016]
	cmp	r3, #0
	bne	.L37
	sub	r3, fp, #2992
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r2, #1
	mov	r1, r3
	ldr	r0, .L40+20
	bl	find
	str	r0, [fp, #-4020]
	ldr	r2, [fp, #-4020]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #5
	add	r3, r3, r2
	ldr	r2, .L40+24
	add	r2, r3, r2
	sub	r3, fp, #2992
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r1, r3
	mov	r0, r2
	bl	strcpy
	sub	r3, fp, #2000
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1
	mov	r1, r3
	ldr	r0, .L40+20
	bl	find
	str	r0, [fp, #-4016]
	ldr	r2, [fp, #-4016]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #5
	add	r3, r3, r2
	ldr	r2, .L40+24
	add	r2, r3, r2
	sub	r3, fp, #2000
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	strcpy
	sub	r3, fp, #1008
	mov	r2, #1
	mov	r1, r3
	ldr	r0, .L40+20
	bl	find
	str	r0, [fp, #-4012]
	ldr	r2, [fp, #-4012]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #5
	add	r3, r3, r2
	ldr	r2, .L40+24
	add	r3, r3, r2
	sub	r2, fp, #1008
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r1, .L40+8
	ldr	r3, [fp, #-4020]
	ldr	r2, [fp, #-4016]
	str	r2, [r1, r3, lsl #2]
	ldr	r1, .L40+4
	ldr	r3, [fp, #-4020]
	ldr	r2, [fp, #-4012]
	str	r2, [r1, r3, lsl #2]
.L15:
	sub	r3, fp, #4000
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	gets
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
	b	.L19
.L37:
	nop
	b	.L19
.L34:
	mov	r3, #0
	str	r3, [fp, #-4016]
	b	.L20
.L21:
	ldr	r3, [fp, #-4016]
	add	r3, r3, #1
	str	r3, [fp, #-4016]
.L20:
	sub	r3, fp, #4000
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-4016]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L21
	ldr	r3, [fp, #-4016]
	sub	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-4004]	@ zero_extendqisi2
	cmp	r3, #39
	bne	.L22
	ldr	r3, [fp, #-4016]
	sub	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-4004]
.L22:
	ldr	r3, [fp, #-4016]
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-4004]	@ zero_extendqisi2
	cmp	r3, #39
	bne	.L23
	ldr	r3, [fp, #-4016]
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-4004]
.L23:
	sub	r3, fp, #4000
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #0
	mov	r1, r3
	ldr	r0, .L40+20
	bl	find
	str	r0, [fp, #-4020]
	b	.L24
.L32:
	mov	r3, #0
	str	r3, [fp, #-4016]
	b	.L25
.L26:
	ldr	r3, [fp, #-4016]
	add	r3, r3, #1
	str	r3, [fp, #-4016]
.L25:
	sub	r3, fp, #4000
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-4016]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L26
	ldr	r3, [fp, #-4020]
	cmp	r3, #0
	bge	.L27
	ldr	r3, [fp, #-4016]
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-4004]	@ zero_extendqisi2
	cmp	r3, #114
	beq	.L38
	b	.L24
.L27:
	ldrb	r3, [fp, #-4008]	@ zero_extendqisi2
	cmp	r3, #102
	bne	.L30
	ldr	r2, .L40+8
	ldr	r3, [fp, #-4020]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-4020]
	b	.L31
.L30:
	ldr	r2, .L40+4
	ldr	r3, [fp, #-4020]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-4020]
.L31:
	ldr	r3, [fp, #-4016]
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-4004]	@ zero_extendqisi2
	cmp	r3, #114
	beq	.L39
.L24:
	sub	r3, fp, #4000
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L40+28
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #0
	bne	.L32
	b	.L29
.L38:
	nop
	b	.L29
.L39:
	nop
.L29:
	ldr	r3, [fp, #-4020]
	cmp	r3, #0
	bge	.L33
	ldr	r0, .L40+32
	bl	puts
	b	.L19
.L33:
	ldr	r2, [fp, #-4020]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #5
	add	r3, r3, r2
	ldr	r2, .L40+24
	add	r3, r3, r2
	mov	r0, r3
	bl	puts
.L19:
	sub	r3, fp, #4000
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L40+28
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L34
	mov	r3, #0
	ldr	r2, .L40
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L36
	bl	__stack_chk_fail
.L36:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	.LC3
	.word	p2
	.word	p1
	.word	2999
	.word	.LC0
	.word	root
	.word	name
	.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
