	.file	"26701079.c"
	.intel_syntax noprefix
	.text
	.globl	front
	.bss
	.align 8
	.type	front, @object
	.size	front, 8
front:
	.zero	8
	.globl	back
	.align 8
	.type	back, @object
	.size	back, 8
back:
	.zero	8
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"\n%lu %lu\n"
.LC3:
	.string	"%d %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.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, 1112
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1108[rbp], 0
	mov	DWORD PTR -1104[rbp], 0
	mov	edi, 56
	call	malloc@PLT
	mov	QWORD PTR front[rip], rax
	mov	rbx, QWORD PTR front[rip]
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR 24[rbx], rax
	mov	rdx, QWORD PTR front[rip]
	mov	rax, QWORD PTR front[rip]
	mov	rdx, QWORD PTR 24[rdx]
	mov	QWORD PTR 32[rax], rdx
	mov	rax, QWORD PTR front[rip]
	mov	QWORD PTR back[rip], rax
	mov	rax, QWORD PTR back[rip]
	mov	rax, QWORD PTR 32[rax]
	mov	DWORD PTR 8[rax], 0
	mov	rax, QWORD PTR back[rip]
	mov	DWORD PTR 40[rax], 0
	jmp	.L2
.L7:
	add	DWORD PTR -1108[rbp], 1
	cmp	DWORD PTR -1092[rbp], 32
	jne	.L3
	mov	rax, QWORD PTR back[rip]
	mov	rax, QWORD PTR 32[rax]
	mov	edx, DWORD PTR 8[rax]
	lea	ecx, 1[rdx]
	mov	DWORD PTR 8[rax], ecx
	mov	eax, DWORD PTR -1092[rbp]
	mov	ecx, eax
	movsx	rax, edx
	mov	BYTE PTR -1056[rbp+rax], cl
	mov	rax, QWORD PTR back[rip]
	mov	rax, QWORD PTR 32[rax]
	mov	eax, DWORD PTR 8[rax]
	cdqe
	mov	BYTE PTR -1056[rbp+rax], 0
	mov	rax, QWORD PTR back[rip]
	mov	rbx, QWORD PTR 32[rax]
	mov	edi, 4
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	rax, QWORD PTR back[rip]
	mov	rax, QWORD PTR 32[rax]
	mov	rax, QWORD PTR [rax]
	lea	rdx, -1056[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -1072[rbp], rax
	mov	rax, QWORD PTR back[rip]
	mov	rax, QWORD PTR 32[rax]
	mov	rdx, QWORD PTR -1072[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR back[rip]
	mov	rdx, QWORD PTR -1072[rbp]
	mov	QWORD PTR 32[rax], rdx
	mov	rax, QWORD PTR back[rip]
	mov	rax, QWORD PTR 32[rax]
	mov	DWORD PTR 8[rax], 0
	mov	rax, QWORD PTR back[rip]
	mov	rax, QWORD PTR 32[rax]
	mov	QWORD PTR 16[rax], 0
	mov	rax, QWORD PTR back[rip]
	mov	edx, DWORD PTR 40[rax]
	add	edx, 1
	mov	DWORD PTR 40[rax], edx
	jmp	.L2
.L3:
	cmp	DWORD PTR -1092[rbp], 46
	je	.L4
	cmp	DWORD PTR -1092[rbp], 10
	jne	.L5
.L4:
	add	DWORD PTR -1104[rbp], 1
	mov	rax, QWORD PTR back[rip]
	mov	edx, DWORD PTR 40[rax]
	add	edx, 1
	mov	DWORD PTR 40[rax], edx
	mov	rax, QWORD PTR back[rip]
	mov	rax, QWORD PTR 32[rax]
	mov	edx, DWORD PTR 8[rax]
	lea	ecx, 1[rdx]
	mov	DWORD PTR 8[rax], ecx
	mov	eax, DWORD PTR -1092[rbp]
	mov	ecx, eax
	movsx	rax, edx
	mov	BYTE PTR -1056[rbp+rax], cl
	mov	rax, QWORD PTR back[rip]
	mov	rax, QWORD PTR 32[rax]
	mov	eax, DWORD PTR 8[rax]
	cdqe
	mov	BYTE PTR -1056[rbp+rax], 0
	mov	rax, QWORD PTR back[rip]
	mov	rbx, QWORD PTR 32[rax]
	mov	edi, 4
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	rax, QWORD PTR back[rip]
	mov	rax, QWORD PTR 32[rax]
	mov	rax, QWORD PTR [rax]
	lea	rdx, -1056[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR back[rip]
	mov	rax, QWORD PTR 32[rax]
	mov	QWORD PTR 16[rax], 0
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -1072[rbp], rax
	mov	edi, 56
	call	malloc@PLT
	mov	QWORD PTR -1064[rbp], rax
	mov	rax, QWORD PTR back[rip]
	mov	rdx, QWORD PTR -1064[rbp]
	mov	QWORD PTR 48[rax], rdx
	mov	rax, QWORD PTR -1064[rbp]
	mov	QWORD PTR back[rip], rax
	mov	rax, QWORD PTR back[rip]
	mov	rdx, QWORD PTR -1072[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rdx, QWORD PTR back[rip]
	mov	rax, QWORD PTR back[rip]
	mov	rdx, QWORD PTR 24[rdx]
	mov	QWORD PTR 32[rax], rdx
	mov	rax, QWORD PTR back[rip]
	mov	rax, QWORD PTR 32[rax]
	mov	DWORD PTR 8[rax], 0
	mov	rax, QWORD PTR back[rip]
	mov	rax, QWORD PTR 32[rax]
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR back[rip]
	mov	rax, QWORD PTR 32[rax]
	mov	QWORD PTR 16[rax], 0
	mov	rax, QWORD PTR back[rip]
	mov	DWORD PTR 40[rax], 0
	mov	rax, QWORD PTR back[rip]
	mov	QWORD PTR 48[rax], 0
	jmp	.L2
.L5:
	mov	rax, QWORD PTR back[rip]
	mov	rax, QWORD PTR 32[rax]
	mov	edx, DWORD PTR 8[rax]
	lea	ecx, 1[rdx]
	mov	DWORD PTR 8[rax], ecx
	mov	eax, DWORD PTR -1092[rbp]
	mov	ecx, eax
	movsx	rax, edx
	mov	BYTE PTR -1056[rbp+rax], cl
.L2:
	call	getchar@PLT
	mov	DWORD PTR -1092[rbp], eax
	cmp	DWORD PTR -1092[rbp], 65
	je	.L6
	cmp	DWORD PTR -1108[rbp], 1023
	jle	.L7
.L6:
	mov	rax, QWORD PTR front[rip]
	mov	QWORD PTR -1088[rbp], rax
	mov	rax, QWORD PTR front[rip]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -1080[rbp], rax
	jmp	.L8
.L10:
	mov	rax, QWORD PTR -1080[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -1080[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -1080[rbp], rax
.L9:
	cmp	QWORD PTR -1080[rbp], 0
	jne	.L10
	mov	rax, QWORD PTR -1088[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	QWORD PTR -1088[rbp], rax
	mov	rax, QWORD PTR -1088[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -1080[rbp], rax
.L8:
	cmp	QWORD PTR -1088[rbp], 0
	je	.L11
	mov	rax, QWORD PTR -1088[rbp]
	mov	rax, QWORD PTR 48[rax]
	test	rax, rax
	jne	.L9
.L11:
	lea	rdx, -1112[rbp]
	lea	rax, -1116[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rax, QWORD PTR front[rip]
	mov	QWORD PTR -1088[rbp], rax
	mov	DWORD PTR -1100[rbp], 1
	jmp	.L13
.L14:
	mov	rax, QWORD PTR -1088[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	QWORD PTR -1088[rbp], rax
	add	DWORD PTR -1100[rbp], 1
.L13:
	mov	eax, DWORD PTR -1116[rbp]
	cmp	DWORD PTR -1100[rbp], eax
	jl	.L14
	mov	rax, QWORD PTR -1088[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -1080[rbp], rax
	mov	DWORD PTR -1096[rbp], 1
	jmp	.L15
.L16:
	mov	rax, QWORD PTR -1080[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -1080[rbp], rax
	add	DWORD PTR -1096[rbp], 1
.L15:
	mov	eax, DWORD PTR -1112[rbp]
	cmp	DWORD PTR -1096[rbp], eax
	jl	.L16
	mov	rax, QWORD PTR -1080[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR front[rip]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR back[rip]
	mov	rdi, rax
	call	free@PLT
	mov	edx, 56
	mov	esi, 24
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -1104[rbp]
	mov	eax, DWORD PTR -1108[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"26701079.c"
	.text
	.comm	front,4,4
	.comm	back,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s\000"
	.align	2
.LC1:
	.ascii	"%d %d\000"
	.align	2
.LC2:
	.ascii	"\012%lu %lu\012\000"
	.align	2
.LC3:
	.ascii	"%d %d\012\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 = 1072
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1072
	sub	sp, sp, #4
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1076]
	mov	r3, #0
	str	r3, [fp, #-1072]
	mov	r0, #28
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L19+4
	str	r2, [r3]
	ldr	r3, .L19+4
	ldr	r4, [r3]
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [r4, #12]
	ldr	r3, .L19+4
	ldr	r2, [r3]
	ldr	r3, .L19+4
	ldr	r3, [r3]
	ldr	r2, [r2, #12]
	str	r2, [r3, #16]
	ldr	r3, .L19+4
	ldr	r3, [r3]
	ldr	r2, .L19+8
	str	r3, [r2]
	ldr	r3, .L19+8
	ldr	r3, [r3]
	ldr	r3, [r3, #16]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, .L19+8
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #20]
	b	.L2
.L7:
	ldr	r3, [fp, #-1076]
	add	r3, r3, #1
	str	r3, [fp, #-1076]
	ldr	r3, [fp, #-1052]
	cmp	r3, #32
	bne	.L3
	ldr	r3, .L19+8
	ldr	r3, [r3]
	ldr	r2, [r3, #16]
	ldr	r3, [r2, #4]
	add	r1, r3, #1
	str	r1, [r2, #4]
	ldr	r2, [fp, #-1052]
	and	r2, r2, #255
	sub	r1, fp, #12
	add	r3, r1, r3
	strb	r2, [r3, #-1028]
	ldr	r3, .L19+8
	ldr	r3, [r3]
	ldr	r3, [r3, #16]
	ldr	r3, [r3, #4]
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-1028]
	ldr	r3, .L19+8
	ldr	r3, [r3]
	ldr	r4, [r3, #16]
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, .L19+8
	ldr	r3, [r3]
	ldr	r3, [r3, #16]
	ldr	r2, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	strcpy
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1048]
	ldr	r3, .L19+8
	ldr	r3, [r3]
	ldr	r3, [r3, #16]
	ldr	r2, [fp, #-1048]
	str	r2, [r3, #8]
	ldr	r3, .L19+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-1048]
	str	r2, [r3, #16]
	ldr	r3, .L19+8
	ldr	r3, [r3]
	ldr	r3, [r3, #16]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, .L19+8
	ldr	r3, [r3]
	ldr	r3, [r3, #16]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, .L19+8
	ldr	r3, [r3]
	ldr	r2, [r3, #20]
	add	r2, r2, #1
	str	r2, [r3, #20]
	b	.L2
.L3:
	ldr	r3, [fp, #-1052]
	cmp	r3, #46
	beq	.L4
	ldr	r3, [fp, #-1052]
	cmp	r3, #10
	bne	.L5
.L4:
	ldr	r3, [fp, #-1072]
	add	r3, r3, #1
	str	r3, [fp, #-1072]
	ldr	r3, .L19+8
	ldr	r3, [r3]
	ldr	r2, [r3, #20]
	add	r2, r2, #1
	str	r2, [r3, #20]
	ldr	r3, .L19+8
	ldr	r3, [r3]
	ldr	r2, [r3, #16]
	ldr	r3, [r2, #4]
	add	r1, r3, #1
	str	r1, [r2, #4]
	ldr	r2, [fp, #-1052]
	and	r2, r2, #255
	sub	r1, fp, #12
	add	r3, r1, r3
	strb	r2, [r3, #-1028]
	ldr	r3, .L19+8
	ldr	r3, [r3]
	ldr	r3, [r3, #16]
	ldr	r3, [r3, #4]
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-1028]
	ldr	r3, .L19+8
	ldr	r3, [r3]
	ldr	r4, [r3, #16]
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, .L19+8
	ldr	r3, [r3]
	ldr	r3, [r3, #16]
	ldr	r2, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	strcpy
	ldr	r3, .L19+8
	ldr	r3, [r3]
	ldr	r3, [r3, #16]
	mov	r2, #0
	str	r2, [r3, #8]
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1048]
	mov	r0, #28
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1044]
	ldr	r3, .L19+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-1044]
	str	r2, [r3, #24]
	ldr	r2, .L19+8
	ldr	r3, [fp, #-1044]
	str	r3, [r2]
	ldr	r3, .L19+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-1048]
	str	r2, [r3, #12]
	ldr	r3, .L19+8
	ldr	r2, [r3]
	ldr	r3, .L19+8
	ldr	r3, [r3]
	ldr	r2, [r2, #12]
	str	r2, [r3, #16]
	ldr	r3, .L19+8
	ldr	r3, [r3]
	ldr	r3, [r3, #16]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, .L19+8
	ldr	r3, [r3]
	ldr	r3, [r3, #16]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L19+8
	ldr	r3, [r3]
	ldr	r3, [r3, #16]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, .L19+8
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #20]
	ldr	r3, .L19+8
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #24]
	b	.L2
.L5:
	ldr	r3, .L19+8
	ldr	r3, [r3]
	ldr	r2, [r3, #16]
	ldr	r3, [r2, #4]
	add	r1, r3, #1
	str	r1, [r2, #4]
	ldr	r2, [fp, #-1052]
	and	r2, r2, #255
	sub	r1, fp, #12
	add	r3, r1, r3
	strb	r2, [r3, #-1028]
.L2:
	bl	getchar
	str	r0, [fp, #-1052]
	ldr	r3, [fp, #-1052]
	cmp	r3, #65
	beq	.L6
	ldr	r3, [fp, #-1076]
	cmp	r3, #1024
	blt	.L7
.L6:
	ldr	r3, .L19+4
	ldr	r3, [r3]
	str	r3, [fp, #-1068]
	ldr	r3, .L19+4
	ldr	r3, [r3]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-1064]
	b	.L8
.L10:
	ldr	r3, [fp, #-1064]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L19+12
	bl	printf
	ldr	r3, [fp, #-1064]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-1064]
.L9:
	ldr	r3, [fp, #-1064]
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #-1068]
	ldr	r3, [r3, #24]
	str	r3, [fp, #-1068]
	ldr	r3, [fp, #-1068]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-1064]
.L8:
	ldr	r3, [fp, #-1068]
	cmp	r3, #0
	beq	.L11
	ldr	r3, [fp, #-1068]
	ldr	r3, [r3, #24]
	cmp	r3, #0
	bne	.L9
.L11:
	sub	r3, fp, #1056
	sub	r3, r3, #12
	sub	r3, r3, #12
	sub	r1, fp, #1072
	sub	r1, r1, #12
	mov	r2, r3
	ldr	r0, .L19+16
	bl	__isoc99_scanf
	ldr	r3, .L19+4
	ldr	r3, [r3]
	str	r3, [fp, #-1068]
	mov	r3, #1
	str	r3, [fp, #-1060]
	b	.L13
.L14:
	ldr	r3, [fp, #-1068]
	ldr	r3, [r3, #24]
	str	r3, [fp, #-1068]
	ldr	r3, [fp, #-1060]
	add	r3, r3, #1
	str	r3, [fp, #-1060]
.L13:
	ldr	r3, [fp, #-1084]
	ldr	r2, [fp, #-1060]
	cmp	r2, r3
	blt	.L14
	ldr	r3, [fp, #-1068]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-1064]
	mov	r3, #1
	str	r3, [fp, #-1056]
	b	.L15
.L16:
	ldr	r3, [fp, #-1064]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-1064]
	ldr	r3, [fp, #-1056]
	add	r3, r3, #1
	str	r3, [fp, #-1056]
.L15:
	ldr	r3, [fp, #-1080]
	ldr	r2, [fp, #-1056]
	cmp	r2, r3
	blt	.L16
	ldr	r3, [fp, #-1064]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L19+12
	bl	printf
	ldr	r3, .L19+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L19+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	mov	r2, #28
	mov	r1, #12
	ldr	r0, .L19+20
	bl	printf
	ldr	r2, [fp, #-1072]
	ldr	r1, [fp, #-1076]
	ldr	r0, .L19+24
	bl	printf
	mov	r3, #0
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC4
	.word	front
	.word	back
	.word	.LC0
	.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
