	.file	"367252.c"
	.intel_syntax noprefix
	.text
	.globl	minIncrementForUnique
	.type	minIncrementForUnique, @function
minIncrementForUnique:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -319488[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 560
	mov	QWORD PTR -320040[rbp], rdi
	mov	DWORD PTR -320044[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	QWORD PTR -320040[rbp], 0
	je	.L2
	cmp	DWORD PTR -320044[rbp], 1
	jg	.L3
.L2:
	mov	eax, 0
	jmp	.L11
.L3:
	lea	rax, -320016[rbp]
	mov	edx, 320000
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -320032[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -320032[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -320040[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	movsx	rdx, eax
	mov	edx, DWORD PTR -320016[rbp+rdx*4]
	add	edx, 1
	cdqe
	mov	DWORD PTR -320016[rbp+rax*4], edx
	add	DWORD PTR -320032[rbp], 1
.L5:
	mov	eax, DWORD PTR -320032[rbp]
	cmp	eax, DWORD PTR -320044[rbp]
	jl	.L6
	mov	DWORD PTR -320028[rbp], 0
	mov	DWORD PTR -320024[rbp], 0
	mov	DWORD PTR -320020[rbp], 0
	jmp	.L7
.L10:
	mov	eax, DWORD PTR -320020[rbp]
	cdqe
	mov	eax, DWORD PTR -320016[rbp+rax*4]
	cmp	eax, 1
	jle	.L8
	mov	eax, DWORD PTR -320020[rbp]
	cdqe
	mov	eax, DWORD PTR -320016[rbp+rax*4]
	sub	eax, 1
	add	DWORD PTR -320024[rbp], eax
	mov	eax, DWORD PTR -320020[rbp]
	cdqe
	mov	eax, DWORD PTR -320016[rbp+rax*4]
	sub	eax, 1
	imul	eax, DWORD PTR -320020[rbp]
	sub	DWORD PTR -320028[rbp], eax
	jmp	.L9
.L8:
	cmp	DWORD PTR -320024[rbp], 0
	jle	.L9
	mov	eax, DWORD PTR -320020[rbp]
	cdqe
	mov	eax, DWORD PTR -320016[rbp+rax*4]
	test	eax, eax
	jne	.L9
	sub	DWORD PTR -320024[rbp], 1
	mov	eax, DWORD PTR -320020[rbp]
	add	DWORD PTR -320028[rbp], eax
.L9:
	add	DWORD PTR -320020[rbp], 1
.L7:
	cmp	DWORD PTR -320020[rbp], 79999
	jle	.L10
	mov	eax, DWORD PTR -320028[rbp]
.L11:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	minIncrementForUnique, .-minIncrementForUnique
	.section	.rodata
.LC0:
	.string	"ans = %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
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -32[rbp], 3
	mov	DWORD PTR -28[rbp], 2
	mov	DWORD PTR -24[rbp], 1
	mov	DWORD PTR -20[rbp], 2
	mov	DWORD PTR -16[rbp], 1
	mov	DWORD PTR -12[rbp], 7
	lea	rax, -32[rbp]
	mov	esi, 6
	mov	rdi, rax
	call	minIncrementForUnique
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	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	"367252.c"
	.text
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	minIncrementForUnique
	.syntax unified
	.arm
	.fpu softvfp
	.type	minIncrementForUnique, %function
minIncrementForUnique:
	@ args = 0, pretend = 0, frame = 320032
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #319488
	sub	sp, sp, #544
	sub	r3, fp, #319488
	sub	r3, r3, #4
	str	r0, [r3, #-540]
	sub	r3, fp, #319488
	sub	r3, r3, #4
	str	r1, [r3, #-544]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #319488
	sub	r3, r3, #4
	ldr	r3, [r3, #-540]
	cmp	r3, #0
	beq	.L2
	sub	r3, fp, #319488
	sub	r3, r3, #4
	ldr	r3, [r3, #-544]
	cmp	r3, #1
	bgt	.L3
.L2:
	mov	r3, #0
	b	.L11
.L3:
	sub	r3, fp, #319488
	sub	r3, r3, #4
	sub	r3, r3, #516
	ldr	r2, .L13+4
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #319488
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-532]
	b	.L5
.L6:
	sub	r3, fp, #319488
	sub	r3, r3, #4
	ldr	r3, [r3, #-532]
	lsl	r3, r3, #2
	sub	r2, fp, #319488
	sub	r2, r2, #4
	ldr	r2, [r2, #-540]
	add	r3, r2, r3
	ldr	r2, [r3]
	sub	r3, fp, #319488
	sub	r3, r3, #4
	mov	r1, r3
	lsl	r3, r2, #2
	add	r3, r1, r3
	ldr	r3, [r3, #-516]
	add	r1, r3, #1
	sub	r3, fp, #319488
	sub	r3, r3, #4
	mov	r0, r3
	lsl	r3, r2, #2
	add	r3, r0, r3
	str	r1, [r3, #-516]
	sub	r3, fp, #319488
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #319488
	sub	r3, r3, #4
	ldr	r3, [r3, #-532]
	add	r3, r3, #1
	str	r3, [r2, #-532]
.L5:
	sub	r3, fp, #319488
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #319488
	sub	r3, r3, #4
	ldr	r2, [r2, #-532]
	ldr	r3, [r3, #-544]
	cmp	r2, r3
	blt	.L6
	sub	r3, fp, #319488
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-528]
	sub	r3, fp, #319488
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-524]
	sub	r3, fp, #319488
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-520]
	b	.L7
.L10:
	sub	r3, fp, #319488
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #319488
	sub	r3, r3, #4
	ldr	r3, [r3, #-520]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-516]
	cmp	r3, #1
	ble	.L8
	sub	r3, fp, #319488
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #319488
	sub	r3, r3, #4
	ldr	r3, [r3, #-520]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-516]
	sub	r3, r3, #1
	sub	r2, fp, #319488
	sub	r2, r2, #4
	mov	r1, r2
	sub	r2, fp, #319488
	sub	r2, r2, #4
	ldr	r2, [r2, #-524]
	add	r3, r2, r3
	str	r3, [r1, #-524]
	sub	r3, fp, #319488
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #319488
	sub	r3, r3, #4
	ldr	r3, [r3, #-520]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-516]
	sub	r3, r3, #1
	sub	r2, fp, #319488
	sub	r2, r2, #4
	ldr	r2, [r2, #-520]
	mul	r3, r2, r3
	sub	r2, fp, #319488
	sub	r2, r2, #4
	mov	r1, r2
	sub	r2, fp, #319488
	sub	r2, r2, #4
	ldr	r2, [r2, #-528]
	sub	r3, r2, r3
	str	r3, [r1, #-528]
	b	.L9
.L8:
	sub	r3, fp, #319488
	sub	r3, r3, #4
	ldr	r3, [r3, #-524]
	cmp	r3, #0
	ble	.L9
	sub	r3, fp, #319488
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #319488
	sub	r3, r3, #4
	ldr	r3, [r3, #-520]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-516]
	cmp	r3, #0
	bne	.L9
	sub	r3, fp, #319488
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #319488
	sub	r3, r3, #4
	ldr	r3, [r3, #-524]
	sub	r3, r3, #1
	str	r3, [r2, #-524]
	sub	r3, fp, #319488
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #319488
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #319488
	sub	r3, r3, #4
	ldr	r2, [r2, #-528]
	ldr	r3, [r3, #-520]
	add	r3, r2, r3
	str	r3, [r1, #-528]
.L9:
	sub	r3, fp, #319488
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #319488
	sub	r3, r3, #4
	ldr	r3, [r3, #-520]
	add	r3, r3, #1
	str	r3, [r2, #-520]
.L7:
	sub	r3, fp, #319488
	sub	r3, r3, #4
	ldr	r3, [r3, #-520]
	ldr	r2, .L13+8
	cmp	r3, r2
	ble	.L10
	sub	r3, fp, #319488
	sub	r3, r3, #4
	ldr	r3, [r3, #-528]
.L11:
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC1
	.word	320000
	.word	79999
	.size	minIncrementForUnique, .-minIncrementForUnique
	.section	.rodata
	.align	2
.LC2:
	.ascii	"ans = %d\012\000"
	.align	2
.LC0:
	.word	3
	.word	2
	.word	1
	.word	2
	.word	1
	.word	7
	.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 = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L18+4
	sub	ip, fp, #32
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
	sub	r3, fp, #32
	mov	r1, #6
	mov	r0, r3
	bl	minIncrementForUnique
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L18+8
	bl	printf
	mov	r3, #0
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC3
	.word	.LC0
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
