	.file	"527611.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Wrong number of args. Exiting!"
.LC1:
	.string	"r"
.LC2:
	.string	"w"
.LC3:
	.string	"%d"
	.align 8
.LC4:
	.string	"Wrong number of concepts, exitting."
.LC5:
	.string	"Wrong vector size, exitting."
.LC6:
	.string	"%d %d"
	.align 8
.LC7:
	.string	"Sizes: 2index = %ld, 2index.ndx = %ld, 2index.cmap = %ld\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
	sub	rsp, 160
	mov	DWORD PTR -148[rbp], edi
	mov	QWORD PTR -160[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -148[rbp], 7
	je	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -160[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -112[rbp], rax
	mov	rax, QWORD PTR -160[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -104[rbp], rax
	mov	rax, QWORD PTR -160[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -96[rbp], rax
	mov	rax, QWORD PTR -160[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -88[rbp], rax
	mov	DWORD PTR -140[rbp], -1
	mov	rax, QWORD PTR -160[rbp]
	add	rax, 40
	mov	rax, QWORD PTR [rax]
	lea	rdx, -140[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 1
	je	.L3
	lea	rdi, .LC4[rip]
	call	puts@PLT
.L3:
	mov	DWORD PTR -136[rbp], -1
	mov	rax, QWORD PTR -160[rbp]
	add	rax, 48
	mov	rax, QWORD PTR [rax]
	lea	rdx, -136[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 1
	je	.L4
	lea	rdi, .LC5[rip]
	call	puts@PLT
.L4:
	mov	edx, DWORD PTR -140[rbp]
	mov	eax, DWORD PTR -136[rbp]
	imul	eax, edx
	movsx	rdx, eax
	mov	eax, DWORD PTR -140[rbp]
	cdqe
	add	rax, rdx
	sal	rax, 2
	mov	QWORD PTR -80[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -72[rbp], rax
	mov	eax, DWORD PTR -140[rbp]
	cdqe
	sal	rax, 2
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	eax, DWORD PTR -140[rbp]
	cdqe
	sal	rax, 2
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	DWORD PTR -124[rbp], 0
	mov	DWORD PTR -120[rbp], -1
	mov	DWORD PTR -116[rbp], 0
	jmp	.L5
.L8:
	mov	eax, DWORD PTR -132[rbp]
	cmp	DWORD PTR -120[rbp], eax
	je	.L6
	mov	eax, DWORD PTR -132[rbp]
	mov	DWORD PTR -120[rbp], eax
	cmp	DWORD PTR -116[rbp], 0
	jle	.L7
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], -1
	add	DWORD PTR -124[rbp], 1
.L7:
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -56[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -124[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -120[rbp]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -116[rbp], 1
.L6:
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -72[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -128[rbp]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -124[rbp], 1
.L5:
	lea	rcx, -128[rbp]
	lea	rdx, -132[rbp]
	mov	rax, QWORD PTR -112[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	test	eax, eax
	jg	.L8
	mov	rcx, QWORD PTR -88[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 4
	mov	rdi, rax
	call	fwrite@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rcx, QWORD PTR -96[rbp]
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, 4
	mov	rdi, rax
	call	fwrite@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rcx, QWORD PTR -104[rbp]
	mov	rdx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	esi, 4
	mov	rdi, rax
	call	fwrite@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rcx, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	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	"527611.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Wrong number of args. Exiting!\000"
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"w\000"
	.align	2
.LC3:
	.ascii	"%d\000"
	.align	2
.LC4:
	.ascii	"Wrong number of concepts, exitting.\000"
	.align	2
.LC5:
	.ascii	"Wrong vector size, exitting.\000"
	.align	2
.LC6:
	.ascii	"%d %d\000"
	.align	2
.LC7:
	.ascii	"Sizes: 2index = %ld, 2index.ndx = %ld, 2index.cmap "
	.ascii	"= %ld\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #96
	str	r0, [fp, #-96]
	str	r1, [fp, #-100]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-96]
	cmp	r3, #7
	beq	.L2
	ldr	r0, .L11+4
	bl	puts
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-100]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L11+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-100]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L11+12
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-100]
	add	r3, r3, #12
	ldr	r3, [r3]
	ldr	r1, .L11+12
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-100]
	add	r3, r3, #16
	ldr	r3, [r3]
	ldr	r1, .L11+12
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-48]
	mvn	r3, #0
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-100]
	add	r3, r3, #20
	ldr	r3, [r3]
	sub	r2, fp, #88
	ldr	r1, .L11+16
	mov	r0, r3
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L3
	ldr	r0, .L11+20
	bl	puts
.L3:
	mvn	r3, #0
	str	r3, [fp, #-84]
	ldr	r3, [fp, #-100]
	add	r3, r3, #24
	ldr	r3, [r3]
	sub	r2, fp, #84
	ldr	r1, .L11+16
	mov	r0, r3
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L4
	ldr	r0, .L11+24
	bl	puts
.L4:
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #-84]
	mul	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-88]
	add	r3, r2, r3
	lsl	r3, r3, #2
	str	r3, [fp, #-44]
	ldr	r0, [fp, #-44]
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	str	r3, [fp, #-36]
	ldr	r0, [fp, #-36]
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	str	r3, [fp, #-28]
	ldr	r0, [fp, #-28]
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-72]
	mvn	r3, #0
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L5
.L8:
	ldr	r3, [fp, #-80]
	ldr	r2, [fp, #-68]
	cmp	r2, r3
	beq	.L6
	ldr	r3, [fp, #-80]
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	ble	.L7
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L7:
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r2, [fp, #-72]
	str	r2, [r3]
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-68]
	str	r2, [r3]
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L6:
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r2, [fp, #-76]
	str	r2, [r3]
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L5:
	sub	r3, fp, #76
	sub	r2, fp, #80
	ldr	r1, .L11+28
	ldr	r0, [fp, #-60]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #0
	bgt	.L8
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-28]
	mov	r1, #4
	ldr	r0, [fp, #-24]
	bl	fwrite
	str	r0, [fp, #-20]
	ldr	r0, [fp, #-48]
	bl	fclose
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-36]
	mov	r1, #4
	ldr	r0, [fp, #-32]
	bl	fwrite
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-52]
	bl	fclose
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-44]
	mov	r1, #4
	ldr	r0, [fp, #-40]
	bl	fwrite
	str	r0, [fp, #-12]
	ldr	r0, [fp, #-56]
	bl	fclose
	ldr	r1, [fp, #-12]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	ldr	r0, .L11+32
	bl	printf
	ldr	r0, [fp, #-60]
	bl	fclose
	mov	r3, #0
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
