	.file	"95228.c"
	.intel_syntax noprefix
	.text
	.globl	arr
	.bss
	.align 32
	.type	arr, @object
	.size	arr, 4000000
arr:
	.zero	4000000
	.globl	count
	.align 32
	.type	count, @object
	.size	count, 4000000
count:
	.zero	4000000
	.globl	extra
	.align 32
	.type	extra, @object
	.size	extra, 40000
extra:
	.zero	40000
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"Case %d: "
.LC2:
	.string	"%d has appeared 1 time.\n"
.LC3:
	.string	"Same appearance."
.LC4:
	.string	"%d has appeared %d times.\n"
	.align 8
.LC5:
	.string	"%d and %d have appeared %d times each.\n"
.LC6:
	.string	"and %d"
.LC7:
	.string	"%d "
.LC8:
	.string	"%d, "
	.align 8
.LC9:
	.string	" have appeared %d times each.\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
	sub	rsp, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -28[rbp], 1
	jmp	.L2
.L26:
	mov	edx, 4000000
	mov	esi, 0
	lea	rdi, count[rip]
	call	memset@PLT
	mov	DWORD PTR -36[rbp], 0
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, arr[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, arr[rip]
	mov	eax, DWORD PTR [rdx+rax]
	movsx	rdx, eax
	lea	rcx, 0[0+rdx*4]
	lea	rdx, count[rip]
	mov	edx, DWORD PTR [rcx+rdx]
	lea	ecx, 1[rdx]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, count[rip]
	mov	DWORD PTR [rdx+rax], ecx
	add	DWORD PTR -36[rbp], 1
.L3:
	mov	eax, DWORD PTR -40[rbp]
	cmp	DWORD PTR -36[rbp], eax
	jl	.L4
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -28[rbp], edx
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, 1
	jne	.L5
	mov	eax, DWORD PTR arr[rip]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L2
.L5:
	mov	eax, DWORD PTR count[rip]
	mov	DWORD PTR -32[rbp], eax
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -36[rbp], 1
	jmp	.L6
.L8:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, count[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -32[rbp], eax
	jge	.L7
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, count[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -24[rbp], eax
.L7:
	add	DWORD PTR -36[rbp], 1
.L6:
	cmp	DWORD PTR -36[rbp], 999999
	jle	.L8
	mov	BYTE PTR -42[rbp], 0
	mov	BYTE PTR -41[rbp], 0
	mov	DWORD PTR -36[rbp], 0
	jmp	.L9
.L12:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, count[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 1
	jle	.L10
	mov	BYTE PTR -42[rbp], 1
	jmp	.L11
.L10:
	add	DWORD PTR -36[rbp], 1
.L9:
	cmp	DWORD PTR -36[rbp], 99999
	jle	.L12
.L11:
	mov	DWORD PTR -16[rbp], 0
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR -20[rbp], eax
	mov	DWORD PTR -36[rbp], 0
	jmp	.L13
.L16:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, count[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -32[rbp], eax
	jne	.L14
	add	DWORD PTR -16[rbp], 1
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -20[rbp], edx
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, extra[rip]
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR [rcx+rdx], eax
.L14:
	cmp	DWORD PTR -16[rbp], 1
	jle	.L15
	mov	BYTE PTR -41[rbp], 1
.L15:
	add	DWORD PTR -36[rbp], 1
.L13:
	cmp	DWORD PTR -36[rbp], 999999
	jle	.L16
	movzx	eax, BYTE PTR -42[rbp]
	xor	eax, 1
	test	al, al
	je	.L17
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L2
.L17:
	movzx	eax, BYTE PTR -41[rbp]
	xor	eax, 1
	test	al, al
	je	.L18
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L2
.L18:
	cmp	DWORD PTR -16[rbp], 2
	jne	.L19
	mov	edx, DWORD PTR extra[rip+4]
	mov	eax, DWORD PTR extra[rip]
	mov	ecx, DWORD PTR -32[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L2
.L19:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L20
.L24:
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, 1
	cmp	DWORD PTR -12[rbp], eax
	jne	.L21
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, extra[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L22
.L21:
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, 2
	cmp	DWORD PTR -12[rbp], eax
	jne	.L23
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, extra[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L22
.L23:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, extra[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L22:
	add	DWORD PTR -12[rbp], 1
.L20:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -16[rbp]
	jl	.L24
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
.L2:
	lea	rax, -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, -1
	je	.L25
	mov	eax, DWORD PTR -40[rbp]
	test	eax, eax
	jne	.L26
.L25:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"95228.c"
	.text
	.comm	arr,4000000,4
	.comm	count,4000000,4
	.comm	extra,40000,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.ascii	"Case %d: \000"
	.align	2
.LC2:
	.ascii	"%d has appeared 1 time.\012\000"
	.align	2
.LC3:
	.ascii	"Same appearance.\000"
	.align	2
.LC4:
	.ascii	"%d has appeared %d times.\012\000"
	.align	2
.LC5:
	.ascii	"%d and %d have appeared %d times each.\012\000"
	.align	2
.LC6:
	.ascii	"and %d\000"
	.align	2
.LC7:
	.ascii	"%d \000"
	.align	2
.LC8:
	.ascii	"%d, \000"
	.align	2
.LC9:
	.ascii	" have appeared %d times each.\012\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	ldr	r3, .L29
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-28]
	b	.L2
.L26:
	ldr	r2, .L29+4
	mov	r1, #0
	ldr	r0, .L29+8
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L3
.L4:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, .L29+12
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L29+16
	bl	__isoc99_scanf
	ldr	r2, .L29+12
	ldr	r3, [fp, #-36]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L29+8
	ldr	r2, [r2, r3, lsl #2]
	add	r2, r2, #1
	ldr	r1, .L29+8
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L3:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	blt	.L4
	ldr	r3, [fp, #-28]
	add	r2, r3, #1
	str	r2, [fp, #-28]
	mov	r1, r3
	ldr	r0, .L29+20
	bl	printf
	ldr	r3, [fp, #-40]
	cmp	r3, #1
	bne	.L5
	ldr	r3, .L29+12
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L29+24
	bl	printf
	b	.L2
.L5:
	ldr	r3, .L29+8
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #1
	str	r3, [fp, #-36]
	b	.L6
.L8:
	ldr	r2, .L29+8
	ldr	r3, [fp, #-36]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bge	.L7
	ldr	r2, .L29+8
	ldr	r3, [fp, #-36]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-24]
.L7:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L6:
	ldr	r3, [fp, #-36]
	ldr	r2, .L29+28
	cmp	r3, r2
	blt	.L8
	mov	r3, #0
	strb	r3, [fp, #-42]
	mov	r3, #0
	strb	r3, [fp, #-41]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L9
.L12:
	ldr	r2, .L29+8
	ldr	r3, [fp, #-36]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #1
	ble	.L10
	mov	r3, #1
	strb	r3, [fp, #-42]
	b	.L11
.L10:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L9:
	ldr	r3, [fp, #-36]
	ldr	r2, .L29+32
	cmp	r3, r2
	blt	.L12
.L11:
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L13
.L16:
	ldr	r2, .L29+8
	ldr	r3, [fp, #-36]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bne	.L14
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	str	r2, [fp, #-20]
	ldr	r1, .L29+36
	ldr	r2, [fp, #-36]
	str	r2, [r1, r3, lsl #2]
.L14:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	ble	.L15
	mov	r3, #1
	strb	r3, [fp, #-41]
.L15:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L13:
	ldr	r3, [fp, #-36]
	ldr	r2, .L29+28
	cmp	r3, r2
	blt	.L16
	ldrb	r3, [fp, #-42]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L17
	ldr	r0, .L29+40
	bl	puts
	b	.L2
.L17:
	ldrb	r3, [fp, #-41]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L18
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-24]
	ldr	r0, .L29+44
	bl	printf
	b	.L2
.L18:
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	bne	.L19
	ldr	r3, .L29+36
	ldr	r1, [r3]
	ldr	r3, .L29+36
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-32]
	ldr	r0, .L29+48
	bl	printf
	b	.L2
.L19:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L20
.L24:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L21
	ldr	r2, .L29+36
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L29+52
	bl	printf
	b	.L22
.L21:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #2
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L23
	ldr	r2, .L29+36
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L29+56
	bl	printf
	b	.L22
.L23:
	ldr	r2, .L29+36
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L29+60
	bl	printf
.L22:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L20:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L24
	ldr	r1, [fp, #-32]
	ldr	r0, .L29+64
	bl	printf
.L2:
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, .L29+16
	bl	__isoc99_scanf
	mov	r3, r0
	cmn	r3, #1
	beq	.L25
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L26
.L25:
	mov	r3, #0
	ldr	r2, .L29
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L28
	bl	__stack_chk_fail
.L28:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC10
	.word	4000000
	.word	count
	.word	arr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	1000000
	.word	100000
	.word	extra
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
