	.file	"845929.c"
	.intel_syntax noprefix
	.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, 1168
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1136[rbp], 6
	mov	DWORD PTR -1132[rbp], 6
	mov	DWORD PTR -1128[rbp], 8
	mov	DWORD PTR -1124[rbp], 0
	mov	DWORD PTR -1120[rbp], 0
	mov	DWORD PTR -1116[rbp], 15
	mov	DWORD PTR -1112[rbp], 0
	mov	DWORD PTR -1108[rbp], 3
	mov	DWORD PTR -1104[rbp], 22
	mov	DWORD PTR -1100[rbp], 0
	mov	DWORD PTR -1096[rbp], 5
	mov	DWORD PTR -1092[rbp], -15
	mov	DWORD PTR -1088[rbp], 1
	mov	DWORD PTR -1084[rbp], 1
	mov	DWORD PTR -1080[rbp], 11
	mov	DWORD PTR -1076[rbp], 1
	mov	DWORD PTR -1072[rbp], 2
	mov	DWORD PTR -1068[rbp], 3
	mov	DWORD PTR -1064[rbp], 2
	mov	DWORD PTR -1060[rbp], 3
	mov	DWORD PTR -1056[rbp], -6
	mov	DWORD PTR -1052[rbp], 4
	mov	DWORD PTR -1048[rbp], 0
	mov	DWORD PTR -1044[rbp], 91
	mov	DWORD PTR -1040[rbp], 5
	mov	DWORD PTR -1036[rbp], 2
	mov	DWORD PTR -1032[rbp], 28
	mov	DWORD PTR -1024[rbp], 6
	mov	DWORD PTR -1020[rbp], 6
	mov	DWORD PTR -1016[rbp], 8
	mov	DWORD PTR -1012[rbp], 0
	mov	DWORD PTR -1008[rbp], 0
	mov	DWORD PTR -1004[rbp], 15
	mov	DWORD PTR -1000[rbp], 0
	mov	DWORD PTR -996[rbp], 4
	mov	DWORD PTR -992[rbp], 91
	mov	DWORD PTR -988[rbp], 1
	mov	DWORD PTR -984[rbp], 1
	mov	DWORD PTR -980[rbp], 11
	mov	DWORD PTR -976[rbp], 2
	mov	DWORD PTR -972[rbp], 1
	mov	DWORD PTR -968[rbp], 3
	mov	DWORD PTR -964[rbp], 2
	mov	DWORD PTR -960[rbp], 5
	mov	DWORD PTR -956[rbp], 28
	mov	DWORD PTR -952[rbp], 3
	mov	DWORD PTR -948[rbp], 0
	mov	DWORD PTR -944[rbp], 22
	mov	DWORD PTR -940[rbp], 3
	mov	DWORD PTR -936[rbp], 2
	mov	DWORD PTR -932[rbp], -6
	mov	DWORD PTR -928[rbp], 5
	mov	DWORD PTR -924[rbp], 0
	mov	DWORD PTR -920[rbp], -15
	lea	rdx, -912[rbp]
	mov	eax, 0
	mov	ecx, 13
	mov	rdi, rdx
	rep stosq
	mov	rdx, rdi
	mov	DWORD PTR [rdx], eax
	add	rdx, 4
	lea	rdx, -800[rbp]
	mov	eax, 0
	mov	ecx, 97
	mov	rdi, rdx
	rep stosq
	mov	rdx, rdi
	mov	DWORD PTR [rdx], eax
	add	rdx, 4
	lea	rdx, -912[rbp]
	lea	rax, -1024[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fastTranspose
	mov	DWORD PTR -1148[rbp], 0
	mov	DWORD PTR -1156[rbp], 1
.L3:
	mov	edx, DWORD PTR -1156[rbp]
	lea	rax, -1136[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	findEndIdWithEqualRowId
	mov	DWORD PTR -1144[rbp], eax
	mov	DWORD PTR -1152[rbp], 1
.L2:
	mov	edx, DWORD PTR -1152[rbp]
	lea	rax, -912[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	findEndIdWithEqualRowId
	mov	DWORD PTR -1140[rbp], eax
	mov	r8d, DWORD PTR -1140[rbp]
	mov	edi, DWORD PTR -1152[rbp]
	lea	rcx, -912[rbp]
	mov	edx, DWORD PTR -1144[rbp]
	mov	esi, DWORD PTR -1156[rbp]
	lea	rax, -1136[rbp]
	mov	r9d, r8d
	mov	r8d, edi
	mov	rdi, rax
	call	vectorInnerProduct
	mov	edx, eax
	mov	eax, DWORD PTR -1148[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 792
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR -1156[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 1136
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -1148[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 800
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR -1152[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 912
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -1148[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 796
	mov	DWORD PTR [rax], edx
	add	DWORD PTR -1148[rbp], 1
	mov	eax, DWORD PTR -1140[rbp]
	add	eax, 1
	mov	DWORD PTR -1152[rbp], eax
	mov	eax, DWORD PTR -1016[rbp]
	cmp	DWORD PTR -1152[rbp], eax
	jle	.L2
	mov	eax, DWORD PTR -1144[rbp]
	add	eax, 1
	mov	DWORD PTR -1156[rbp], eax
	mov	eax, DWORD PTR -1128[rbp]
	cmp	DWORD PTR -1156[rbp], eax
	jle	.L3
	mov	eax, DWORD PTR -1148[rbp]
	lea	edx, -1[rax]
	lea	rax, -800[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	printTerm
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	vectorInnerProduct
	.type	vectorInnerProduct, @function
vectorInnerProduct:
.LFB1:
	.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
	mov	DWORD PTR -32[rbp], edx
	mov	QWORD PTR -40[rbp], rcx
	mov	DWORD PTR -44[rbp], r8d
	mov	DWORD PTR -48[rbp], r9d
	mov	DWORD PTR -12[rbp], 0
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L7
.L11:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 4[rax]
	cmp	ecx, eax
	jne	.L8
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR 8[rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 8[rax]
	imul	eax, ecx
	add	DWORD PTR -12[rbp], eax
	add	DWORD PTR -8[rbp], 1
	add	DWORD PTR -4[rbp], 1
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 4[rax]
	cmp	ecx, eax
	jge	.L9
	add	DWORD PTR -8[rbp], 1
	jmp	.L7
.L9:
	add	DWORD PTR -4[rbp], 1
.L7:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jg	.L10
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -48[rbp]
	jle	.L11
.L10:
	mov	eax, DWORD PTR -12[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	vectorInnerProduct, .-vectorInnerProduct
	.globl	findEndIdWithEqualRowId
	.type	findEndIdWithEqualRowId, @function
findEndIdWithEqualRowId:
.LFB2:
	.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
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -4[rbp], eax
.L15:
	add	DWORD PTR -4[rbp], 1
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	ecx, eax
	jne	.L14
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -4[rbp], eax
	jle	.L15
.L14:
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	findEndIdWithEqualRowId, .-findEndIdWithEqualRowId
	.globl	fastTranspose
	.type	fastTranspose, @function
fastTranspose:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	push	rbx
	sub	rsp, 88
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	mov	QWORD PTR -104[rbp], rdi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rdi, rax
	mov	rax, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR 4[rax]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -72[rbp], rdx
	movsx	rdx, eax
	mov	r12, rdx
	mov	r13d, 0
	movsx	rdx, eax
	mov	rcx, rdx
	mov	ebx, 0
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L18:
	cmp	rsp, rdx
	je	.L19
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L18
.L19:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L20
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L20:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR 4[rax]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -56[rbp], rdx
	movsx	rdx, eax
	mov	r10, rdx
	mov	r11d, 0
	movsx	rdx, eax
	mov	r8, rdx
	mov	r9d, 0
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L21:
	cmp	rsp, rdx
	je	.L22
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L21
.L22:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L23
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L23:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR -84[rbp], eax
	mov	rax, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR -80[rbp], eax
	mov	rax, QWORD PTR -104[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -112[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -104[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -112[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -104[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -112[rbp]
	mov	DWORD PTR 8[rax], edx
	cmp	DWORD PTR -80[rbp], 0
	jle	.L24
	mov	DWORD PTR -88[rbp], 0
	jmp	.L25
.L26:
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -88[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], 0
	add	DWORD PTR -88[rbp], 1
.L25:
	mov	eax, DWORD PTR -88[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	jl	.L26
	mov	DWORD PTR -88[rbp], 1
	jmp	.L27
.L28:
	mov	eax, DWORD PTR -88[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 4[rax]
	mov	rdx, QWORD PTR -64[rbp]
	movsx	rcx, eax
	mov	edx, DWORD PTR [rdx+rcx*4]
	lea	ecx, 1[rdx]
	mov	rdx, QWORD PTR -64[rbp]
	cdqe
	mov	DWORD PTR [rdx+rax*4], ecx
	add	DWORD PTR -88[rbp], 1
.L27:
	mov	eax, DWORD PTR -88[rbp]
	cmp	eax, DWORD PTR -80[rbp]
	jle	.L28
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], 1
	mov	DWORD PTR -88[rbp], 1
	jmp	.L29
.L30:
	mov	eax, DWORD PTR -88[rbp]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -48[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR [rax+rdx*4]
	mov	eax, DWORD PTR -88[rbp]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -64[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	add	ecx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR -88[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
	add	DWORD PTR -88[rbp], 1
.L29:
	mov	eax, DWORD PTR -88[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	jl	.L30
	mov	DWORD PTR -88[rbp], 1
	jmp	.L31
.L32:
	mov	eax, DWORD PTR -88[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -48[rbp]
	movsx	rcx, edx
	mov	eax, DWORD PTR [rax+rcx*4]
	lea	esi, 1[rax]
	mov	rcx, QWORD PTR -48[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rcx+rdx*4], esi
	mov	DWORD PTR -76[rbp], eax
	mov	eax, DWORD PTR -88[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -104[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -76[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -112[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR 4[rcx]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -88[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -104[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -76[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -112[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR [rcx]
	mov	DWORD PTR 4[rdx], eax
	mov	eax, DWORD PTR -88[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -104[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -76[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -112[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR 8[rcx]
	mov	DWORD PTR 8[rdx], eax
	add	DWORD PTR -88[rbp], 1
.L31:
	mov	eax, DWORD PTR -88[rbp]
	cmp	eax, DWORD PTR -80[rbp]
	jle	.L32
.L24:
	mov	rsp, rdi
	nop
	mov	rax, QWORD PTR -40[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	lea	rsp, -24[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	fastTranspose, .-fastTranspose
	.section	.rodata
.LC0:
	.string	" Id /rid /cid /value "
.LC1:
	.string	"%3d/%3d/%3d/%3d \n"
	.text
	.globl	printTerm
	.type	printTerm, @function
printTerm:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L35
.L36:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	esi, DWORD PTR 8[rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L35:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L36
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	printTerm, .-printTerm
	.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	"845929.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	6
	.word	6
	.word	8
	.word	0
	.word	0
	.word	15
	.word	0
	.word	3
	.word	22
	.word	0
	.word	5
	.word	-15
	.word	1
	.word	1
	.word	11
	.word	1
	.word	2
	.word	3
	.word	2
	.word	3
	.word	-6
	.word	4
	.word	0
	.word	91
	.word	5
	.word	2
	.word	28
	.align	2
.LC1:
	.word	6
	.word	6
	.word	8
	.word	0
	.word	0
	.word	15
	.word	0
	.word	4
	.word	91
	.word	1
	.word	1
	.word	11
	.word	2
	.word	1
	.word	3
	.word	2
	.word	5
	.word	28
	.word	3
	.word	0
	.word	22
	.word	3
	.word	2
	.word	-6
	.word	5
	.word	0
	.word	-15
	.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 = 1128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1136
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L6+4
	sub	r3, fp, #1104
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r2, #108
	mov	r0, r3
	bl	memcpy
	ldr	r2, .L6+8
	sub	r3, fp, #1004
	mov	r1, r2
	mov	r2, #108
	mov	r0, r3
	bl	memcpy
	sub	r3, fp, #896
	mov	r2, #108
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #788
	mov	r2, #780
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r2, fp, #896
	sub	r3, fp, #1004
	mov	r1, r2
	mov	r0, r3
	bl	fastTranspose
	mov	r3, #0
	str	r3, [fp, #-1124]
	mov	r3, #1
	str	r3, [fp, #-1132]
.L3:
	sub	r3, fp, #1104
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, [fp, #-1132]
	mov	r0, r3
	bl	findEndIdWithEqualRowId
	str	r0, [fp, #-1120]
	mov	r3, #1
	str	r3, [fp, #-1128]
.L2:
	sub	r3, fp, #896
	ldr	r1, [fp, #-1128]
	mov	r0, r3
	bl	findEndIdWithEqualRowId
	str	r0, [fp, #-1116]
	sub	r2, fp, #896
	sub	r0, fp, #1104
	sub	r0, r0, #4
	sub	r0, r0, #4
	ldr	r3, [fp, #-1116]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-1128]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-1120]
	ldr	r1, [fp, #-1132]
	bl	vectorInnerProduct
	mov	r1, r0
	ldr	r2, [fp, #-1124]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #776
	str	r1, [r3]
	ldr	r2, [fp, #-1132]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #1104
	sub	r3, r3, #4
	ldr	r1, [r3]
	ldr	r2, [fp, #-1124]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #784
	str	r1, [r3]
	ldr	r2, [fp, #-1128]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #892
	ldr	r1, [r3]
	ldr	r2, [fp, #-1124]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #780
	str	r1, [r3]
	ldr	r3, [fp, #-1124]
	add	r3, r3, #1
	str	r3, [fp, #-1124]
	ldr	r3, [fp, #-1116]
	add	r3, r3, #1
	str	r3, [fp, #-1128]
	ldr	r3, [fp, #-996]
	ldr	r2, [fp, #-1128]
	cmp	r2, r3
	ble	.L2
	ldr	r3, [fp, #-1120]
	add	r3, r3, #1
	str	r3, [fp, #-1132]
	ldr	r3, [fp, #-1104]
	ldr	r2, [fp, #-1132]
	cmp	r2, r3
	ble	.L3
	ldr	r3, [fp, #-1124]
	sub	r2, r3, #1
	sub	r3, fp, #788
	mov	r1, r2
	mov	r0, r3
	bl	printTerm
	mov	r3, #0
	ldr	r2, .L6
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.align	2
	.global	vectorInnerProduct
	.syntax unified
	.arm
	.fpu softvfp
	.type	vectorInnerProduct, %function
vectorInnerProduct:
	@ args = 8, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #36
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-8]
	b	.L9
.L13:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, r2
	ldr	r1, [r3, #4]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-36]
	add	r3, r3, r2
	ldr	r3, [r3, #4]
	cmp	r1, r3
	bne	.L10
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, r2
	ldr	r1, [r3, #8]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-36]
	add	r3, r3, r2
	ldr	r3, [r3, #8]
	mul	r3, r1, r3
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L9
.L10:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, r2
	ldr	r1, [r3, #4]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-36]
	add	r3, r3, r2
	ldr	r3, [r3, #4]
	cmp	r1, r3
	bge	.L11
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L9
.L11:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L9:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	bgt	.L12
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #8]
	cmp	r2, r3
	ble	.L13
.L12:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	vectorInnerProduct, .-vectorInnerProduct
	.align	2
	.global	findEndIdWithEqualRowId
	.syntax unified
	.arm
	.fpu softvfp
	.type	findEndIdWithEqualRowId, %function
findEndIdWithEqualRowId:
	@ 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]
	str	r3, [fp, #-8]
.L17:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldr	r1, [r3]
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldr	r3, [r3]
	cmp	r1, r3
	bne	.L16
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	ble	.L17
.L16:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	findEndIdWithEqualRowId, .-findEndIdWithEqualRowId
	.section	.rodata
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	fastTranspose
	.syntax unified
	.arm
	.fpu softvfp
	.type	fastTranspose, %function
fastTranspose:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, sp
	mov	lr, r3
	ldr	r3, [fp, #-48]
	ldr	ip, [r3, #4]
	sub	r3, ip, #1
	str	r3, [fp, #-36]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #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, #-32]
	ldr	r3, [fp, #-48]
	ldr	ip, [r3, #4]
	sub	r3, ip, #1
	str	r3, [fp, #-28]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #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, #-24]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-48]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-52]
	str	r2, [r3]
	ldr	r3, [fp, #-48]
	ldr	r2, [r3]
	ldr	r3, [fp, #-52]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-48]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-52]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	ble	.L20
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L21
.L22:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-40]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L21:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L22
	mov	r3, #1
	str	r3, [fp, #-40]
	b	.L23
.L24:
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-48]
	add	r3, r3, r2
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-32]
	ldr	r2, [r2, r3, lsl #2]
	add	r1, r2, #1
	ldr	r2, [fp, #-32]
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L23:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	ble	.L24
	ldr	r3, [fp, #-24]
	mov	r2, #1
	str	r2, [r3]
	mov	r3, #1
	str	r3, [fp, #-40]
	b	.L25
.L26:
	ldr	r3, [fp, #-40]
	sub	r2, r3, #1
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [fp, #-40]
	sub	r1, r3, #1
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, r1, lsl #2]
	add	r1, r2, r3
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-40]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L25:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L26
	mov	r3, #1
	str	r3, [fp, #-40]
	b	.L27
.L28:
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-48]
	add	r3, r3, r2
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, r2, lsl #2]
	add	r0, r3, #1
	ldr	r1, [fp, #-24]
	str	r0, [r1, r2, lsl #2]
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-48]
	add	r1, r3, r2
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-52]
	add	r3, r3, r2
	ldr	r2, [r1, #4]
	str	r2, [r3]
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-48]
	add	r1, r3, r2
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-52]
	add	r3, r3, r2
	ldr	r2, [r1]
	str	r2, [r3, #4]
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-48]
	add	r1, r3, r2
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-52]
	add	r3, r3, r2
	ldr	r2, [r1, #8]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L27:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	ble	.L28
.L20:
	mov	sp, lr
	nop
	ldr	r3, .L30
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L29
	bl	__stack_chk_fail
.L29:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC3
	.size	fastTranspose, .-fastTranspose
	.section	.rodata
	.align	2
.LC4:
	.ascii	" Id /rid /cid /value \000"
	.align	2
.LC5:
	.ascii	"%3d/%3d/%3d/%3d \012\000"
	.text
	.align	2
	.global	printTerm
	.syntax unified
	.arm
	.fpu softvfp
	.type	printTerm, %function
printTerm:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r0, .L36
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L33
.L34:
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldr	r1, [r3]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldr	r0, [r3, #4]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldr	r3, [r3, #8]
	str	r3, [sp]
	mov	r3, r0
	mov	r2, r1
	ldr	r1, [fp, #-8]
	ldr	r0, .L36+4
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L33:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L34
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC4
	.word	.LC5
	.size	printTerm, .-printTerm
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
