	.file	"983060.c"
	.intel_syntax noprefix
	.text
	.globl	st
	.bss
	.align 32
	.type	st, @object
	.size	st, 1600000
st:
	.zero	1600000
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 513
s:
	.zero	513
	.text
	.globl	insert
	.type	insert, @function
insert:
.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	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	sub	eax, DWORD PTR -28[rbp]
	cdqe
	mov	edx, DWORD PTR -28[rbp]
	movsx	rdx, edx
	lea	rcx, s[rip]
	lea	rsi, [rdx+rcx]
	mov	edx, DWORD PTR -28[rbp]
	movsx	rcx, edx
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	add	rcx, rdx
	lea	rdx, s[rip]
	add	rcx, rdx
	mov	rdx, rax
	mov	rdi, rcx
	call	memmove@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, s[rip]
	mov	BYTE PTR [rax+rdx], 0
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rcx, s[rip]
	add	rcx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	insert, .-insert
	.globl	delete
	.type	delete, @function
delete:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	sub	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jle	.L3
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -32[rbp], eax
.L3:
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, DWORD PTR -32[rbp]
	cdqe
	mov	edx, DWORD PTR -28[rbp]
	movsx	rcx, edx
	mov	edx, DWORD PTR -32[rbp]
	movsx	rdx, edx
	add	rcx, rdx
	lea	rdx, s[rip]
	lea	rsi, [rcx+rdx]
	mov	edx, DWORD PTR -28[rbp]
	movsx	rdx, edx
	lea	rcx, s[rip]
	add	rcx, rdx
	mov	rdx, rax
	mov	rdi, rcx
	call	memmove@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	sub	eax, DWORD PTR -32[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, s[rip]
	mov	BYTE PTR [rax+rdx], 0
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	delete, .-delete
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d%s"
.LC2:
	.string	"%s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.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
	lea	rdi, s[rip]
	mov	eax, 0
	call	gets@PLT
	lea	rdi, s[rip]
	call	strlen@PLT
	mov	DWORD PTR -48[rbp], eax
	lea	rax, -52[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -40[rbp], 0
	jmp	.L5
.L6:
	mov	edi, 513
	call	malloc@PLT
	mov	rcx, rax
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, st[rip+8]
	mov	QWORD PTR [rdx+rax], rcx
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, st[rip+8]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -40[rbp]
	movsx	rdx, edx
	mov	rcx, rdx
	sal	rcx, 4
	lea	rdx, st[rip]
	add	rdx, rcx
	add	rdx, 4
	mov	ecx, DWORD PTR -40[rbp]
	movsx	rcx, ecx
	mov	rsi, rcx
	sal	rsi, 4
	lea	rcx, st[rip]
	add	rsi, rcx
	mov	rcx, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -40[rbp], 1
.L5:
	mov	eax, DWORD PTR -52[rbp]
	cmp	DWORD PTR -40[rbp], eax
	jl	.L6
	mov	eax, DWORD PTR -52[rbp]
	sub	eax, 1
	mov	DWORD PTR -36[rbp], eax
	jmp	.L7
.L10:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, st[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 1
	jne	.L8
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, st[rip+8]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdi, rax
	call	strlen@PLT
	mov	esi, eax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, st[rip+4]
	mov	ecx, DWORD PTR [rdx+rax]
	lea	rax, -48[rbp]
	mov	edx, esi
	mov	esi, ecx
	mov	rdi, rax
	call	delete
	jmp	.L9
.L8:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, st[rip+8]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 4
	mov	rcx, rax
	lea	rax, st[rip+4]
	mov	ecx, DWORD PTR [rcx+rax]
	lea	rax, -48[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	insert
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, st[rip+8]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, st[rip+8]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdi, rax
	call	free@PLT
	mov	edi, 4
	call	malloc@PLT
	mov	rcx, rax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, st[rip+8]
	mov	QWORD PTR [rdx+rax], rcx
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, st[rip+8]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -28[rbp]
	mov	DWORD PTR [rax], edx
.L9:
	sub	DWORD PTR -36[rbp], 1
.L7:
	cmp	DWORD PTR -36[rbp], 0
	jns	.L10
.L17:
	lea	rax, -44[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, -1
	jne	.L11
	mov	DWORD PTR -32[rbp], 0
	jmp	.L12
.L11:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, 3
	jne	.L13
	mov	eax, DWORD PTR -52[rbp]
	test	eax, eax
	jle	.L17
	mov	eax, DWORD PTR -52[rbp]
	sub	eax, 1
	mov	DWORD PTR -52[rbp], eax
	jmp	.L17
.L13:
	mov	edx, DWORD PTR -52[rbp]
	mov	eax, DWORD PTR -44[rbp]
	movsx	rdx, edx
	mov	rcx, rdx
	sal	rcx, 4
	lea	rdx, st[rip]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, st[rip]
	add	rax, rdx
	add	rax, 4
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, 1
	jne	.L15
	mov	ebx, DWORD PTR -52[rbp]
	mov	edi, 513
	call	malloc@PLT
	mov	rcx, rax
	movsx	rax, ebx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, st[rip+8]
	mov	QWORD PTR [rdx+rax], rcx
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, st[rip+8]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L16
.L15:
	mov	ebx, DWORD PTR -52[rbp]
	mov	edi, 4
	call	malloc@PLT
	mov	rcx, rax
	movsx	rax, ebx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, st[rip+8]
	mov	QWORD PTR [rdx+rax], rcx
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, st[rip+8]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L16:
	mov	eax, DWORD PTR -52[rbp]
	add	eax, 1
	mov	DWORD PTR -52[rbp], eax
	jmp	.L17
.L20:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, st[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 1
	jne	.L18
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, st[rip+8]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 4
	mov	rcx, rax
	lea	rax, st[rip+4]
	mov	ecx, DWORD PTR [rcx+rax]
	lea	rax, -48[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	insert
	jmp	.L19
.L18:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, st[rip+8]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 4
	mov	rcx, rax
	lea	rax, st[rip+4]
	mov	ecx, DWORD PTR [rcx+rax]
	lea	rax, -48[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	delete
.L19:
	add	DWORD PTR -32[rbp], 1
.L12:
	mov	eax, DWORD PTR -52[rbp]
	cmp	DWORD PTR -32[rbp], eax
	jl	.L20
	lea	rdi, s[rip]
	call	puts@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"983060.c"
	.text
	.comm	st,1200000,4
	.comm	s,513,4
	.align	2
	.global	insert
	.syntax unified
	.arm
	.fpu softvfp
	.type	insert, %function
insert:
	@ 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]
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, .L2
	add	r0, r3, r2
	ldr	r3, [fp, #-20]
	ldr	r2, .L2
	add	r1, r3, r2
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	mov	r2, r3
	bl	memmove
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, .L2
	mov	r1, #0
	strb	r1, [r2, r3]
	ldr	r3, [fp, #-20]
	ldr	r2, .L2
	add	r3, r3, r2
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	memcpy
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	s
	.size	insert, .-insert
	.align	2
	.global	delete
	.syntax unified
	.arm
	.fpu softvfp
	.type	delete, %function
delete:
	@ 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]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	ble	.L5
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-24]
.L5:
	ldr	r3, [fp, #-20]
	ldr	r2, .L6
	add	r0, r3, r2
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, .L6
	add	r1, r3, r2
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	mov	r2, r3
	bl	memmove
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	sub	r2, r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, .L6
	mov	r1, #0
	strb	r1, [r2, r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	s
	.size	delete, .-delete
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.ascii	"%d%d%s\000"
	.align	2
.LC2:
	.ascii	"%s\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
	ldr	r0, .L27+4
	bl	gets
	ldr	r0, .L27+4
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-40]
	sub	r3, fp, #44
	mov	r1, r3
	ldr	r0, .L27+8
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L9
.L10:
	ldr	r0, .L27+12
	bl	malloc
	mov	r3, r0
	mov	r0, r3
	ldr	r1, .L27+16
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #8
	str	r0, [r3]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L27+16
	add	r1, r3, r2
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L27+16
	add	r3, r3, r2
	add	r0, r3, #4
	ldr	ip, .L27+16
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, ip, r3
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, r0
	ldr	r0, .L27+20
	bl	__isoc99_scanf
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L9:
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	blt	.L10
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1
	str	r3, [fp, #-28]
	b	.L11
.L14:
	ldr	r1, .L27+16
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L12
	ldr	r1, .L27+16
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r4, [r3]
	ldr	r1, .L27+16
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #40
	mov	r1, r4
	mov	r0, r3
	bl	delete
	b	.L13
.L12:
	ldr	r1, .L27+16
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r1, [r3]
	ldr	r0, .L27+16
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r3, r3, #8
	ldr	r2, [r3]
	sub	r3, fp, #40
	mov	r0, r3
	bl	insert
	ldr	r1, .L27+16
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r1, .L27+16
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	mov	r0, r3
	ldr	r1, .L27+16
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #8
	str	r0, [r3]
	ldr	r1, .L27+16
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	str	r2, [r3]
.L13:
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	str	r3, [fp, #-28]
.L11:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L14
.L21:
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L27+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-36]
	cmn	r3, #1
	bne	.L15
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L16
.L15:
	ldr	r3, [fp, #-36]
	cmp	r3, #3
	bne	.L17
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	ble	.L21
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1
	str	r3, [fp, #-44]
	b	.L21
.L17:
	ldr	r2, [fp, #-44]
	ldr	r1, [fp, #-36]
	ldr	r0, .L27+16
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	str	r1, [r3]
	ldr	r2, [fp, #-44]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L27+16
	add	r3, r3, r2
	add	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L27+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-36]
	cmp	r3, #1
	bne	.L19
	ldr	r4, [fp, #-44]
	ldr	r0, .L27+12
	bl	malloc
	mov	r3, r0
	mov	r1, r3
	ldr	r2, .L27+16
	mov	r3, r4
	lsl	r3, r3, #1
	add	r3, r3, r4
	lsl	r3, r3, #2
	add	r3, r2, r3
	add	r3, r3, #8
	str	r1, [r3]
	ldr	r2, [fp, #-44]
	ldr	r1, .L27+16
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L27+24
	bl	__isoc99_scanf
	b	.L20
.L19:
	ldr	r4, [fp, #-44]
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	mov	r1, r3
	ldr	r2, .L27+16
	mov	r3, r4
	lsl	r3, r3, #1
	add	r3, r3, r4
	lsl	r3, r3, #2
	add	r3, r2, r3
	add	r3, r3, #8
	str	r1, [r3]
	ldr	r2, [fp, #-44]
	ldr	r1, .L27+16
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L27+8
	bl	__isoc99_scanf
.L20:
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
	b	.L21
.L24:
	ldr	r1, .L27+16
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L22
	ldr	r1, .L27+16
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r1, [r3]
	ldr	r0, .L27+16
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r3, r3, #8
	ldr	r2, [r3]
	sub	r3, fp, #40
	mov	r0, r3
	bl	insert
	b	.L23
.L22:
	ldr	r1, .L27+16
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r1, [r3]
	ldr	r0, .L27+16
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r2, [r3]
	sub	r3, fp, #40
	mov	r0, r3
	bl	delete
.L23:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L16:
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L24
	ldr	r0, .L27+4
	bl	puts
	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	s
	.word	.LC0
	.word	513
	.word	st
	.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
