	.file	"537309.c"
	.intel_syntax noprefix
	.text
	.globl	removeDuplicates
	.type	removeDuplicates, @function
removeDuplicates:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	cmp	DWORD PTR -28[rbp], 0
	jne	.L2
	mov	eax, 0
	jmp	.L3
.L2:
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 1
	jmp	.L4
.L6:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	je	.L5
	add	DWORD PTR -8[rbp], 1
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
.L5:
	add	DWORD PTR -4[rbp], 1
.L4:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L6
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 1
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	removeDuplicates, .-removeDuplicates
	.section	.rodata
.LC0:
	.string	"err: want %d but %d\n"
.LC1:
	.string	"success: want %d so %d\n"
	.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
	lea	r11, -24576[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -24640[rbp]
	mov	edx, 24624
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -20544[rbp], 1
	mov	DWORD PTR -20540[rbp], 1
	mov	DWORD PTR -20532[rbp], 1
	mov	DWORD PTR -16440[rbp], 2
	mov	DWORD PTR -16436[rbp], 2
	mov	DWORD PTR -16424[rbp], 1
	mov	DWORD PTR -12336[rbp], 3
	mov	DWORD PTR -12332[rbp], 2
	mov	DWORD PTR -12320[rbp], 1
	mov	DWORD PTR -12316[rbp], 2
	mov	DWORD PTR -8232[rbp], 4
	mov	DWORD PTR -8228[rbp], 3
	mov	DWORD PTR -8216[rbp], 1
	mov	DWORD PTR -8212[rbp], 2
	mov	DWORD PTR -8208[rbp], 3
	mov	DWORD PTR -4128[rbp], 5
	mov	DWORD PTR -4124[rbp], 4
	mov	DWORD PTR -4112[rbp], 1
	mov	DWORD PTR -4108[rbp], 1
	mov	DWORD PTR -4104[rbp], 2
	mov	DWORD PTR -4100[rbp], 2
	mov	DWORD PTR -24[rbp], 6
	mov	DWORD PTR -20[rbp], 3
	mov	DWORD PTR -24648[rbp], 0
	jmp	.L8
.L11:
	mov	eax, DWORD PTR -24648[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 9
	add	rax, rdx
	sal	rax, 3
	add	rax, rbp
	sub	rax, 20544
	mov	edx, DWORD PTR [rax]
	lea	rsi, -24640[rbp]
	mov	eax, DWORD PTR -24648[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 9
	add	rax, rcx
	sal	rax, 3
	add	rax, rsi
	mov	esi, edx
	mov	rdi, rax
	call	removeDuplicates
	mov	DWORD PTR -24644[rbp], eax
	mov	eax, DWORD PTR -24648[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 9
	add	rax, rdx
	sal	rax, 3
	add	rax, rbp
	sub	rax, 20540
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -24644[rbp], eax
	je	.L9
	mov	eax, DWORD PTR -24648[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 9
	add	rax, rdx
	sal	rax, 3
	add	rax, rbp
	sub	rax, 20540
	mov	eax, DWORD PTR [rax]
	mov	edx, DWORD PTR -24644[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L10
.L9:
	mov	eax, DWORD PTR -24648[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 9
	add	rax, rdx
	sal	rax, 3
	add	rax, rbp
	sub	rax, 20540
	mov	eax, DWORD PTR [rax]
	mov	edx, DWORD PTR -24644[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L10:
	add	DWORD PTR -24648[rbp], 1
.L8:
	mov	eax, DWORD PTR -24648[rbp]
	cmp	eax, 5
	jbe	.L11
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	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	"537309.c"
	.text
	.align	2
	.global	removeDuplicates
	.syntax unified
	.arm
	.fpu softvfp
	.type	removeDuplicates, %function
removeDuplicates:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L2
	mov	r3, #0
	b	.L3
.L2:
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L4
.L6:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-16]
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L5
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-16]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
.L5:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L4:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L6
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
.L3:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	removeDuplicates, .-removeDuplicates
	.section	.rodata
	.align	2
.LC0:
	.ascii	"err: want %d but %d\012\000"
	.align	2
.LC1:
	.ascii	"success: want %d so %d\012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24640
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #24576
	sub	sp, sp, #68
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #24576
	sub	r3, r3, #12
	sub	r3, r3, #52
	ldr	r2, .L14+4
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #4044]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #4048]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #4056]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	add	r3, r3, #4096
	mov	r2, r3
	mov	r3, #2
	str	r3, [r2, #4052]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	add	r3, r3, #4096
	mov	r2, r3
	mov	r3, #2
	str	r3, [r2, #4056]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	add	r3, r3, #4096
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #4068]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	add	r3, r3, #8192
	mov	r2, r3
	mov	r3, #3
	str	r3, [r2, #4060]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	add	r3, r3, #8192
	mov	r2, r3
	mov	r3, #2
	str	r3, [r2, #4064]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	add	r3, r3, #8192
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #4076]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	add	r3, r3, #8192
	mov	r2, r3
	mov	r3, #2
	str	r3, [r2, #4080]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	add	r3, r3, #12288
	mov	r2, r3
	mov	r3, #4
	str	r3, [r2, #4068]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	add	r3, r3, #12288
	mov	r2, r3
	mov	r3, #3
	str	r3, [r2, #4072]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	add	r3, r3, #12288
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #4084]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	add	r3, r3, #12288
	mov	r2, r3
	mov	r3, #2
	str	r3, [r2, #4088]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	add	r3, r3, #12288
	mov	r2, r3
	mov	r3, #3
	str	r3, [r2, #4092]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	add	r3, r3, #16384
	mov	r2, r3
	mov	r3, #5
	str	r3, [r2, #4076]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	add	r3, r3, #16384
	mov	r2, r3
	mov	r3, #4
	str	r3, [r2, #4080]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	add	r3, r3, #16384
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #4092]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	add	r3, r3, #20480
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	add	r3, r3, #20480
	mov	r2, r3
	mov	r3, #2
	str	r3, [r2, #4]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	add	r3, r3, #20480
	mov	r2, r3
	mov	r3, #2
	str	r3, [r2, #8]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	add	r3, r3, #20480
	mov	r2, r3
	mov	r3, #6
	str	r3, [r2, #4084]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	add	r3, r3, #20480
	mov	r2, r3
	mov	r3, #3
	str	r3, [r2, #4088]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-60]
	b	.L8
.L11:
	sub	r2, fp, #24576
	sub	r2, r2, #12
	sub	r2, r2, #52
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r1, [r3, #-60]
	mov	r3, r1
	lsl	r3, r3, #9
	add	r3, r3, r1
	lsl	r3, r3, #3
	add	r0, r2, r3
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r2, [r3, #-60]
	mov	r3, r2
	lsl	r3, r3, #9
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #4032
	add	r3, r3, #12
	ldr	r3, [r3]
	sub	r2, fp, #24576
	sub	r2, r2, #12
	mov	r4, r2
	mov	r1, r3
	bl	removeDuplicates
	str	r0, [r4, #-56]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r2, [r3, #-60]
	mov	r3, r2
	lsl	r3, r3, #9
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #4048
	ldr	r3, [r3]
	sub	r2, fp, #24576
	sub	r2, r2, #12
	ldr	r2, [r2, #-56]
	cmp	r2, r3
	beq	.L9
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r2, [r3, #-60]
	mov	r3, r2
	lsl	r3, r3, #9
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #4048
	ldr	r3, [r3]
	sub	r2, fp, #24576
	sub	r2, r2, #12
	ldr	r2, [r2, #-56]
	mov	r1, r3
	ldr	r0, .L14+8
	bl	printf
	b	.L10
.L9:
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r2, [r3, #-60]
	mov	r3, r2
	lsl	r3, r3, #9
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #4048
	ldr	r3, [r3]
	sub	r2, fp, #24576
	sub	r2, r2, #12
	ldr	r2, [r2, #-56]
	mov	r1, r3
	ldr	r0, .L14+12
	bl	printf
.L10:
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-60]
	add	r3, r3, #1
	str	r3, [r2, #-60]
.L8:
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-60]
	cmp	r3, #5
	bls	.L11
	mov	r3, #0
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC2
	.word	24624
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
