	.file	"538316.c"
	.intel_syntax noprefix
	.text
	.globl	minkey
	.type	minkey, @function
minkey:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -16[rbp], 100001
	mov	QWORD PTR -8[rbp], 0
	jmp	.L2
.L4:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L3
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -16[rbp], eax
	jle	.L3
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -16[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR -12[rbp], eax
.L3:
	add	QWORD PTR -8[rbp], 1
.L2:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	cmp	QWORD PTR -8[rbp], rax
	jl	.L4
	mov	eax, DWORD PTR -12[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	minkey, .-minkey
	.section	.rodata
.LC0:
	.string	"%d "
	.text
	.globl	prim
	.type	prim, @function
prim:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r12
	push	rbx
	sub	rsp, 192
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	mov	DWORD PTR -148[rbp], edi
	mov	QWORD PTR -160[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	mov	ebx, DWORD PTR -148[rbp]
	movsx	rax, ebx
	sub	rax, 1
	mov	QWORD PTR -136[rbp], rax
	movsx	rax, ebx
	mov	r8, rax
	mov	r9d, 0
	mov	rax, rsp
	mov	r12, rax
	mov	edx, DWORD PTR -148[rbp]
	movsx	rax, edx
	sub	rax, 1
	mov	QWORD PTR -88[rbp], rax
	movsx	rax, edx
	mov	QWORD PTR -176[rbp], rax
	mov	QWORD PTR -168[rbp], 0
	movsx	rax, edx
	mov	QWORD PTR -192[rbp], rax
	mov	QWORD PTR -184[rbp], 0
	movsx	rax, edx
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L7:
	cmp	rsp, rdx
	je	.L8
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L7
.L8:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L9
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L9:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -80[rbp], rax
	mov	eax, DWORD PTR -148[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -72[rbp], rdx
	movsx	rdx, eax
	mov	QWORD PTR -208[rbp], rdx
	mov	QWORD PTR -200[rbp], 0
	movsx	rdx, eax
	mov	QWORD PTR -224[rbp], rdx
	mov	QWORD PTR -216[rbp], 0
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L10:
	cmp	rsp, rdx
	je	.L11
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L10
.L11:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L12
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L12:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -64[rbp], rax
	mov	eax, DWORD PTR -148[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -56[rbp], rdx
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	movsx	rdx, eax
	mov	r10, rdx
	mov	r11d, 0
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L13:
	cmp	rsp, rdx
	je	.L14
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L13
.L14:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L15
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L15:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -48[rbp], rax
	mov	DWORD PTR -144[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	jmp	.L16
.L17:
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -96[rbp]
	mov	DWORD PTR [rax+rdx*4], 100001
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -96[rbp]
	mov	DWORD PTR [rax+rdx*4], 0
	add	QWORD PTR -96[rbp], 1
.L16:
	mov	eax, DWORD PTR -148[rbp]
	cdqe
	cmp	QWORD PTR -96[rbp], rax
	jl	.L17
	mov	rax, QWORD PTR -64[rbp]
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -80[rbp]
	mov	DWORD PTR [rax], -1
	mov	QWORD PTR -104[rbp], 0
	jmp	.L18
.L23:
	mov	rdx, QWORD PTR -48[rbp]
	mov	rcx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -148[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	minkey
	mov	DWORD PTR -140[rbp], eax
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR -140[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], 1
	mov	QWORD PTR -112[rbp], 0
	jmp	.L19
.L22:
	mov	eax, DWORD PTR -140[rbp]
	movsx	rdx, eax
	movsx	rax, ebx
	imul	rax, rdx
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -160[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -112[rbp]
	mov	eax, DWORD PTR [rdx+rax*4]
	test	eax, eax
	je	.L20
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -112[rbp]
	mov	eax, DWORD PTR [rax+rdx*4]
	test	eax, eax
	jne	.L20
	mov	eax, DWORD PTR -140[rbp]
	movsx	rdx, eax
	movsx	rax, ebx
	imul	rax, rdx
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -160[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -112[rbp]
	mov	ecx, DWORD PTR [rdx+rax*4]
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -112[rbp]
	mov	eax, DWORD PTR [rax+rdx*4]
	cmp	ecx, eax
	jge	.L20
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR -112[rbp]
	mov	ecx, DWORD PTR -140[rbp]
	mov	DWORD PTR [rax+rdx*4], ecx
	mov	eax, DWORD PTR -140[rbp]
	movsx	rdx, eax
	movsx	rax, ebx
	imul	rax, rdx
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -160[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -112[rbp]
	mov	ecx, DWORD PTR [rdx+rax*4]
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -112[rbp]
	mov	DWORD PTR [rax+rdx*4], ecx
.L20:
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -112[rbp]
	mov	edx, DWORD PTR [rax+rdx*4]
	movsx	rcx, ebx
	mov	rax, QWORD PTR -112[rbp]
	imul	rax, rcx
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -160[rbp]
	add	rcx, rax
	mov	eax, DWORD PTR -140[rbp]
	cdqe
	mov	eax, DWORD PTR [rcx+rax*4]
	cmp	edx, eax
	jle	.L21
	movsx	rdx, ebx
	mov	rax, QWORD PTR -112[rbp]
	imul	rax, rdx
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -160[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -140[rbp]
	cdqe
	mov	ecx, DWORD PTR [rdx+rax*4]
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -112[rbp]
	mov	DWORD PTR [rax+rdx*4], ecx
.L21:
	add	QWORD PTR -112[rbp], 1
.L19:
	mov	eax, DWORD PTR -148[rbp]
	cdqe
	cmp	QWORD PTR -112[rbp], rax
	jl	.L22
	add	QWORD PTR -104[rbp], 1
.L18:
	mov	eax, DWORD PTR -148[rbp]
	sub	eax, 1
	cdqe
	cmp	QWORD PTR -104[rbp], rax
	jl	.L23
	mov	QWORD PTR -120[rbp], 0
	jmp	.L24
.L25:
	movsx	rdx, ebx
	mov	rax, QWORD PTR -120[rbp]
	imul	rax, rdx
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -160[rbp]
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR -120[rbp]
	mov	eax, DWORD PTR [rax+rdx*4]
	cdqe
	mov	eax, DWORD PTR [rcx+rax*4]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	QWORD PTR -120[rbp], 1
.L24:
	mov	eax, DWORD PTR -148[rbp]
	cdqe
	cmp	QWORD PTR -120[rbp], rax
	jl	.L25
	mov	edi, 10
	call	putchar@PLT
	mov	QWORD PTR -128[rbp], 0
	jmp	.L26
.L27:
	movsx	rdx, ebx
	mov	rax, QWORD PTR -128[rbp]
	imul	rax, rdx
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -160[rbp]
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR -128[rbp]
	mov	eax, DWORD PTR [rax+rdx*4]
	cdqe
	mov	eax, DWORD PTR [rcx+rax*4]
	add	DWORD PTR -144[rbp], eax
	add	QWORD PTR -128[rbp], 1
.L26:
	mov	eax, DWORD PTR -148[rbp]
	cdqe
	cmp	QWORD PTR -128[rbp], rax
	jl	.L27
	mov	eax, DWORD PTR -144[rbp]
	mov	rsp, r12
	mov	rsi, QWORD PTR -40[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	lea	rsp, -32[rbp]
	pop	rbx
	pop	r12
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	prim, .-prim
	.section	.rodata
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d %d %d"
.LC3:
	.string	"%d\n"
	.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	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 216
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	QWORD PTR -200[rbp], rax
	lea	rdx, -156[rbp]
	lea	rax, -160[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	esi, DWORD PTR -160[rbp]
	mov	edi, DWORD PTR -160[rbp]
	movsx	rax, esi
	sub	rax, 1
	mov	QWORD PTR -96[rbp], rax
	movsx	rax, esi
	mov	QWORD PTR -224[rbp], rax
	mov	QWORD PTR -216[rbp], 0
	movsx	rax, esi
	lea	rbx, 0[0+rax*4]
	movsx	rax, edi
	sub	rax, 1
	mov	QWORD PTR -88[rbp], rax
	movsx	rax, esi
	mov	QWORD PTR -176[rbp], rax
	mov	QWORD PTR -168[rbp], 0
	movsx	rax, edi
	mov	QWORD PTR -192[rbp], rax
	mov	QWORD PTR -184[rbp], 0
	mov	r8, QWORD PTR -176[rbp]
	mov	r9, QWORD PTR -168[rbp]
	mov	rdx, r9
	mov	r10, QWORD PTR -192[rbp]
	mov	r11, QWORD PTR -184[rbp]
	imul	rdx, r10
	mov	rax, r11
	imul	rax, r8
	lea	rcx, [rdx+rax]
	mov	rax, r8
	mul	r10
	add	rcx, rdx
	mov	rdx, rcx
	movsx	rax, esi
	mov	r14, rax
	mov	r15d, 0
	movsx	rax, edi
	mov	r12, rax
	mov	r13d, 0
	mov	rdx, r15
	imul	rdx, r12
	mov	rax, r13
	imul	rax, r14
	lea	rcx, [rdx+rax]
	mov	rax, r14
	mul	r12
	add	rcx, rdx
	mov	rdx, rcx
	movsx	rdx, esi
	movsx	rax, edi
	imul	rax, rdx
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L31:
	cmp	rsp, rdx
	je	.L32
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L31
.L32:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L33
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L33:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -80[rbp], rax
	mov	eax, DWORD PTR -160[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -72[rbp], rdx
	movsx	rdx, eax
	mov	QWORD PTR -240[rbp], rdx
	mov	QWORD PTR -232[rbp], 0
	movsx	rdx, eax
	mov	QWORD PTR -256[rbp], rdx
	mov	QWORD PTR -248[rbp], 0
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L34:
	cmp	rsp, rdx
	je	.L35
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L34
.L35:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L36
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L36:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -64[rbp], rax
	mov	DWORD PTR -140[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	jmp	.L37
.L40:
	mov	QWORD PTR -112[rbp], 0
	jmp	.L38
.L39:
	mov	rdx, rbx
	shr	rdx, 2
	mov	rax, QWORD PTR -80[rbp]
	mov	rcx, rdx
	imul	rcx, QWORD PTR -104[rbp]
	mov	rdx, QWORD PTR -112[rbp]
	add	rdx, rcx
	mov	DWORD PTR [rax+rdx*4], 0
	add	QWORD PTR -112[rbp], 1
.L38:
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	cmp	QWORD PTR -112[rbp], rax
	jl	.L39
	add	QWORD PTR -104[rbp], 1
.L37:
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	cmp	QWORD PTR -104[rbp], rax
	jl	.L40
	mov	QWORD PTR -120[rbp], 0
	jmp	.L41
.L42:
	lea	rcx, -144[rbp]
	lea	rdx, -148[rbp]
	lea	rax, -152[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rsi, rbx
	shr	rsi, 2
	mov	eax, DWORD PTR -152[rbp]
	lea	ecx, -1[rax]
	mov	eax, DWORD PTR -148[rbp]
	lea	edi, -1[rax]
	mov	edx, DWORD PTR -144[rbp]
	mov	rax, QWORD PTR -80[rbp]
	movsx	rdi, edi
	movsx	rcx, ecx
	imul	rcx, rsi
	add	rcx, rdi
	mov	DWORD PTR [rax+rcx*4], edx
	mov	rsi, rbx
	shr	rsi, 2
	mov	eax, DWORD PTR -148[rbp]
	lea	ecx, -1[rax]
	mov	eax, DWORD PTR -152[rbp]
	lea	edi, -1[rax]
	mov	edx, DWORD PTR -144[rbp]
	mov	rax, QWORD PTR -80[rbp]
	movsx	rdi, edi
	movsx	rcx, ecx
	imul	rcx, rsi
	add	rcx, rdi
	mov	DWORD PTR [rax+rcx*4], edx
	add	QWORD PTR -120[rbp], 1
.L41:
	mov	eax, DWORD PTR -156[rbp]
	cdqe
	cmp	QWORD PTR -120[rbp], rax
	jl	.L42
	mov	QWORD PTR -128[rbp], 0
	jmp	.L43
.L46:
	mov	QWORD PTR -136[rbp], 0
	jmp	.L44
.L45:
	mov	rdx, rbx
	shr	rdx, 2
	mov	rax, QWORD PTR -80[rbp]
	mov	rcx, rdx
	imul	rcx, QWORD PTR -128[rbp]
	mov	rdx, QWORD PTR -136[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	QWORD PTR -136[rbp], 1
.L44:
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	cmp	QWORD PTR -136[rbp], rax
	jl	.L45
	mov	edi, 10
	call	putchar@PLT
	add	QWORD PTR -128[rbp], 1
.L43:
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	cmp	QWORD PTR -128[rbp], rax
	jl	.L46
	mov	eax, DWORD PTR -160[rbp]
	mov	rdx, QWORD PTR -80[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	prim
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rsp, QWORD PTR -200[rbp]
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L48
	call	__stack_chk_fail@PLT
.L48:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.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	"538316.c"
	.text
	.align	2
	.global	minkey
	.syntax unified
	.arm
	.fpu softvfp
	.type	minkey, %function
minkey:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, r5, fp}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, .L6
	str	r3, [fp, #-28]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	b	.L2
.L4:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L3
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	ble	.L3
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-24]
.L3:
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	adds	r4, r2, #1
	adc	r5, r3, #0
	str	r4, [fp, #-20]
	str	r5, [fp, #-16]
.L2:
	ldr	r3, [fp, #-32]
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L4
	ldr	r3, [fp, #-24]
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, r5, fp}
	bx	lr
.L7:
	.align	2
.L6:
	.word	100001
	.size	minkey, .-minkey
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d \000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	prim
	.syntax unified
	.arm
	.fpu softvfp
	.type	prim, %function
prim:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #124
	str	r0, [fp, #-128]
	str	r1, [fp, #-132]
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	ldr	r10, [fp, #-128]
	sub	r3, r10, #1
	str	r3, [fp, #-120]
	mov	r3, r10
	mov	r2, r3
	mov	r3, #0
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #5
	orr	r1, r1, r2, lsr #27
	lsl	r0, r2, #5
	mov	r3, sp
	str	r3, [fp, #-152]
	ldr	ip, [fp, #-128]
	sub	r3, ip, #1
	str	r3, [fp, #-112]
	mov	r3, ip
	mov	r2, r3
	mov	r3, #0
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #5
	orr	r1, r1, r2, lsr #27
	lsl	r0, r2, #5
	mov	r3, ip
	mov	r2, r3
	mov	r3, #0
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #5
	orr	r1, r1, r2, lsr #27
	lsl	r0, r2, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-108]
	ldr	ip, [fp, #-128]
	sub	r3, ip, #1
	str	r3, [fp, #-104]
	mov	r3, ip
	mov	r2, r3
	mov	r3, #0
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #5
	orr	r1, r1, r2, lsr #27
	lsl	r0, r2, #5
	mov	r3, ip
	mov	r2, r3
	mov	r3, #0
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #5
	orr	r1, r1, r2, lsr #27
	lsl	r0, r2, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-100]
	ldr	ip, [fp, #-128]
	sub	r3, ip, #1
	str	r3, [fp, #-96]
	mov	r3, ip
	mov	r2, r3
	mov	r3, #0
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #5
	orr	r1, r1, r2, lsr #27
	lsl	r0, r2, #5
	mov	r3, ip
	mov	r2, r3
	mov	r3, #0
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #5
	orr	r1, r1, r2, lsr #27
	lsl	r0, r2, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-92]
	mov	r3, #0
	str	r3, [fp, #-116]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	b	.L9
.L10:
	ldr	r2, [fp, #-100]
	ldr	r1, [fp, #-52]
	ldr	r3, .L23+4
	str	r3, [r2, r1, lsl #2]
	ldr	r2, [fp, #-92]
	ldr	r1, [fp, #-52]
	mov	r3, #0
	str	r3, [r2, r1, lsl #2]
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	adds	r4, r2, #1
	adc	r5, r3, #0
	str	r4, [fp, #-52]
	str	r5, [fp, #-48]
.L9:
	ldr	r3, [fp, #-128]
	mov	r0, r3
	asr	r1, r0, #31
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	cmp	r2, r0
	sbcs	r3, r3, r1
	blt	.L10
	ldr	r3, [fp, #-100]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-108]
	mvn	r2, #0
	str	r2, [r3]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	b	.L11
.L16:
	ldr	r2, [fp, #-92]
	ldr	r1, [fp, #-100]
	ldr	r0, [fp, #-128]
	bl	minkey
	str	r0, [fp, #-88]
	ldr	r3, [fp, #-92]
	ldr	r2, [fp, #-88]
	mov	r1, #1
	str	r1, [r3, r2, lsl #2]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	b	.L12
.L15:
	mov	r2, r10
	ldr	r3, [fp, #-88]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-132]
	add	r3, r2, r3
	ldr	r2, [fp, #-68]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-92]
	ldr	r2, [fp, #-68]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	bne	.L13
	mov	r2, r10
	ldr	r3, [fp, #-88]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-132]
	add	r3, r2, r3
	ldr	r2, [fp, #-68]
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [fp, #-100]
	ldr	r1, [fp, #-68]
	ldr	r3, [r3, r1, lsl #2]
	cmp	r2, r3
	bge	.L13
	ldr	r3, [fp, #-108]
	ldr	r2, [fp, #-68]
	ldr	r1, [fp, #-88]
	str	r1, [r3, r2, lsl #2]
	mov	r2, r10
	ldr	r3, [fp, #-88]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-132]
	add	r3, r2, r3
	ldr	r2, [fp, #-68]
	ldr	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-100]
	ldr	r2, [fp, #-68]
	str	r1, [r3, r2, lsl #2]
.L13:
	ldr	r3, [fp, #-100]
	ldr	r2, [fp, #-68]
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [fp, #-68]
	mov	r1, r10
	mul	r3, r1, r3
	lsl	r3, r3, #2
	ldr	r1, [fp, #-132]
	add	r3, r1, r3
	ldr	r1, [fp, #-88]
	ldr	r3, [r3, r1, lsl #2]
	cmp	r2, r3
	ble	.L14
	ldr	r3, [fp, #-68]
	mov	r2, r10
	mul	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-132]
	add	r3, r2, r3
	ldr	r2, [fp, #-88]
	ldr	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-100]
	ldr	r2, [fp, #-68]
	str	r1, [r3, r2, lsl #2]
.L14:
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	adds	r1, r2, #1
	str	r1, [fp, #-140]
	adc	r3, r3, #0
	str	r3, [fp, #-136]
	sub	r4, fp, #140
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-68]
	str	r4, [fp, #-64]
.L12:
	ldr	r3, [fp, #-128]
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L15
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	adds	r1, r2, #1
	str	r1, [fp, #-148]
	adc	r3, r3, #0
	str	r3, [fp, #-144]
	sub	r4, fp, #148
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-60]
	str	r4, [fp, #-56]
.L11:
	ldr	r3, [fp, #-128]
	sub	r3, r3, #1
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L16
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	b	.L17
.L18:
	ldr	r3, [fp, #-76]
	mov	r2, r10
	mul	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-132]
	add	r3, r2, r3
	ldr	r2, [fp, #-108]
	ldr	r1, [fp, #-76]
	ldr	r2, [r2, r1, lsl #2]
	ldr	r3, [r3, r2, lsl #2]
	mov	r1, r3
	ldr	r0, .L23+8
	bl	printf
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	adds	r8, r2, #1
	adc	r9, r3, #0
	str	r8, [fp, #-76]
	str	r9, [fp, #-72]
.L17:
	ldr	r3, [fp, #-128]
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L18
	mov	r0, #10
	bl	putchar
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-84]
	str	r3, [fp, #-80]
	b	.L19
.L20:
	ldr	r3, [fp, #-84]
	mov	r2, r10
	mul	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-132]
	add	r3, r2, r3
	ldr	r2, [fp, #-108]
	ldr	r1, [fp, #-84]
	ldr	r2, [r2, r1, lsl #2]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-116]
	add	r3, r2, r3
	str	r3, [fp, #-116]
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	adds	r6, r2, #1
	adc	r7, r3, #0
	str	r6, [fp, #-84]
	str	r7, [fp, #-80]
.L19:
	ldr	r3, [fp, #-128]
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #84
	ldmia	r1, {r0-r1}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L20
	ldr	r3, [fp, #-116]
	ldr	sp, [fp, #-152]
	ldr	r2, .L23
	ldr	r1, [r2]
	ldr	r2, [fp, #-40]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	mov	r0, r3
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC1
	.word	100001
	.word	.LC0
	.size	prim, .-prim
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%d%d\000"
	.align	2
.LC3:
	.ascii	"%d %d %d\000"
	.align	2
.LC4:
	.ascii	"%d\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #140
	ldr	r3, .L38
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	mov	r3, sp
	str	r3, [fp, #-168]
	sub	r2, fp, #124
	sub	r3, fp, #128
	mov	r1, r3
	ldr	r0, .L38+4
	bl	__isoc99_scanf
	ldr	ip, [fp, #-128]
	ldr	lr, [fp, #-128]
	sub	r3, ip, #1
	str	r3, [fp, #-108]
	mov	r3, ip
	mov	r2, r3
	mov	r3, #0
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #5
	orr	r1, r1, r2, lsr #27
	lsl	r0, r2, #5
	mov	r3, ip
	lsl	r8, r3, #2
	sub	r3, lr, #1
	str	r3, [fp, #-104]
	mov	r3, ip
	mov	r4, r3
	mov	r5, #0
	mov	r3, lr
	mov	r0, r3
	mov	r1, #0
	mul	r2, r0, r5
	mul	r3, r4, r1
	add	r3, r2, r3
	umull	r6, r7, r4, r0
	add	r3, r3, r7
	mov	r7, r3
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r7, #5
	orr	r3, r3, r6, lsr #27
	lsl	r2, r6, #5
	mov	r3, ip
	mov	r4, r3
	mov	r5, #0
	mov	r3, lr
	mov	r0, r3
	mov	r1, #0
	mul	r2, r0, r5
	mul	r3, r4, r1
	add	r3, r2, r3
	umull	r6, r7, r4, r0
	add	r3, r3, r7
	mov	r7, r3
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r7, #5
	orr	r3, r3, r6, lsr #27
	lsl	r2, r6, #5
	mov	r2, ip
	mov	r3, lr
	mul	r3, r2, r3
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-100]
	ldr	ip, [fp, #-128]
	sub	r3, ip, #1
	str	r3, [fp, #-96]
	mov	r3, ip
	mov	r2, r3
	mov	r3, #0
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #5
	orr	r1, r1, r2, lsr #27
	lsl	r0, r2, #5
	mov	r3, ip
	mov	r2, r3
	mov	r3, #0
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #5
	orr	r1, r1, r2, lsr #27
	lsl	r0, r2, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-92]
	mov	r3, #0
	str	r3, [fp, #-88]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	b	.L26
.L29:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	b	.L27
.L28:
	lsr	r2, r8, #2
	ldr	r1, [fp, #-100]
	ldr	r3, [fp, #-52]
	mul	r2, r3, r2
	ldr	r3, [fp, #-60]
	add	r2, r2, r3
	mov	r3, #0
	str	r3, [r1, r2, lsl #2]
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	adds	r9, r2, #1
	adc	r10, r3, #0
	str	r9, [fp, #-60]
	str	r10, [fp, #-56]
.L27:
	ldr	r3, [fp, #-128]
	mov	r0, r3
	asr	r1, r0, #31
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	cmp	r2, r0
	sbcs	r3, r3, r1
	blt	.L28
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	adds	r1, r2, #1
	str	r1, [fp, #-140]
	adc	r3, r3, #0
	str	r3, [fp, #-136]
	sub	r4, fp, #140
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-52]
	str	r4, [fp, #-48]
.L26:
	ldr	r3, [fp, #-128]
	mov	r0, r3
	asr	r1, r0, #31
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	cmp	r2, r0
	sbcs	r3, r3, r1
	blt	.L29
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	b	.L30
.L31:
	sub	r3, fp, #112
	sub	r2, fp, #116
	sub	r1, fp, #120
	ldr	r0, .L38+8
	bl	__isoc99_scanf
	lsr	r0, r8, #2
	ldr	r3, [fp, #-120]
	sub	ip, r3, #1
	ldr	r3, [fp, #-116]
	sub	r2, r3, #1
	ldr	r1, [fp, #-112]
	ldr	r3, [fp, #-100]
	mul	r0, ip, r0
	add	r2, r0, r2
	str	r1, [r3, r2, lsl #2]
	lsr	r0, r8, #2
	ldr	r3, [fp, #-116]
	sub	ip, r3, #1
	ldr	r3, [fp, #-120]
	sub	r2, r3, #1
	ldr	r1, [fp, #-112]
	ldr	r3, [fp, #-100]
	mul	r0, ip, r0
	add	r2, r0, r2
	str	r1, [r3, r2, lsl #2]
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	adds	r1, r2, #1
	str	r1, [fp, #-148]
	adc	r3, r3, #0
	str	r3, [fp, #-144]
	sub	r4, fp, #148
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-68]
	str	r4, [fp, #-64]
.L30:
	ldr	r3, [fp, #-124]
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L31
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	b	.L32
.L35:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-84]
	str	r3, [fp, #-80]
	b	.L33
.L34:
	lsr	r2, r8, #2
	ldr	r3, [fp, #-100]
	ldr	r1, [fp, #-76]
	mul	r1, r2, r1
	ldr	r2, [fp, #-84]
	add	r2, r1, r2
	ldr	r3, [r3, r2, lsl #2]
	mov	r1, r3
	ldr	r0, .L38+12
	bl	printf
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	adds	r1, r2, #1
	str	r1, [fp, #-156]
	adc	r3, r3, #0
	str	r3, [fp, #-152]
	sub	r4, fp, #156
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-84]
	str	r4, [fp, #-80]
.L33:
	ldr	r3, [fp, #-128]
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #84
	ldmia	r1, {r0-r1}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L34
	mov	r0, #10
	bl	putchar
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	adds	r1, r2, #1
	str	r1, [fp, #-164]
	adc	r3, r3, #0
	str	r3, [fp, #-160]
	sub	r4, fp, #164
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-76]
	str	r4, [fp, #-72]
.L32:
	ldr	r3, [fp, #-128]
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L35
	ldr	r3, [fp, #-128]
	ldr	r1, [fp, #-100]
	mov	r0, r3
	bl	prim
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L38+16
	bl	printf
	mov	r3, #0
	ldr	sp, [fp, #-168]
	ldr	r2, .L38
	ldr	r1, [r2]
	ldr	r2, [fp, #-40]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L37
	bl	__stack_chk_fail
.L37:
	mov	r0, r3
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L39:
	.align	2
.L38:
	.word	.LC5
	.word	.LC2
	.word	.LC3
	.word	.LC0
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
