	.file	"769575.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"111"
.LC1:
	.string	"1101"
.LC2:
	.string	"11001"
.LC3:
	.string	"101001"
.LC4:
	.string	"1100001"
.LC5:
	.string	"10010001"
.LC6:
	.string	"101110001"
.LC7:
	.string	"1000100001"
.LC8:
	.string	"10010000001"
.LC9:
	.string	"101000000001"
.LC10:
	.string	"1100101000001"
.LC11:
	.string	"11011000000001"
.LC12:
	.string	"110000100010001"
.LC13:
	.string	"1100000000000001"
.LC14:
	.string	"11010000000010001"
	.section	.data.rel.local,"aw"
	.align 32
	.type	allPp, @object
	.size	allPp, 136
allPp:
	.quad	0
	.quad	0
	.quad	.LC0
	.quad	.LC1
	.quad	.LC2
	.quad	.LC3
	.quad	.LC4
	.quad	.LC5
	.quad	.LC6
	.quad	.LC7
	.quad	.LC8
	.quad	.LC9
	.quad	.LC10
	.quad	.LC11
	.quad	.LC12
	.quad	.LC13
	.quad	.LC14
	.local	gf_exp
	.comm	gf_exp,510,32
	.local	gf_log
	.comm	gf_log,1024,32
	.local	inverse
	.comm	inverse,256,32
	.text
	.type	modnn, @function
modnn:
.LFB6:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	jmp	.L2
.L3:
	sub	DWORD PTR -4[rbp], 255
	mov	eax, DWORD PTR -4[rbp]
	sar	eax, 8
	mov	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	movzx	eax, al
	add	eax, edx
	mov	DWORD PTR -4[rbp], eax
.L2:
	cmp	DWORD PTR -4[rbp], 254
	jg	.L3
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	modnn, .-modnn
	.local	gf_mul_table
	.comm	gf_mul_table,65536,32
	.type	init_mul_table, @function
init_mul_table:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -8[rbp], 0
	jmp	.L6
.L9:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, gf_log[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, gf_log[rip]
	mov	eax, DWORD PTR [rdx+rax]
	add	eax, ecx
	mov	edi, eax
	call	modnn
	movzx	eax, al
	cdqe
	lea	rdx, gf_exp[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rcx, edx
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	sal	rdx, 8
	add	rcx, rdx
	lea	rdx, gf_mul_table[rip]
	add	rdx, rcx
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -4[rbp], 1
.L7:
	cmp	DWORD PTR -4[rbp], 255
	jle	.L8
	add	DWORD PTR -8[rbp], 1
.L6:
	cmp	DWORD PTR -8[rbp], 255
	jle	.L9
	mov	DWORD PTR -4[rbp], 0
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 8
	mov	rdx, rax
	lea	rax, gf_mul_table[rip]
	mov	BYTE PTR [rdx+rax], 0
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 8
	mov	rdx, rax
	lea	rax, gf_mul_table[rip]
	movzx	edx, BYTE PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, gf_mul_table[rip]
	mov	BYTE PTR [rax+rcx], dl
	add	DWORD PTR -4[rbp], 1
.L10:
	cmp	DWORD PTR -4[rbp], 255
	jle	.L11
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	init_mul_table, .-init_mul_table
	.section	.rodata
	.align 8
.LC15:
	.string	"-- malloc failure allocating %s\n"
	.text
	.type	my_malloc, @function
my_malloc:
.LFB8:
	.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L13
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -32[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L13:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	my_malloc, .-my_malloc
	.type	generate_gf, @function
generate_gf:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR allPp[rip+64]
	mov	QWORD PTR -8[rbp], rax
	mov	BYTE PTR -13[rbp], 1
	mov	BYTE PTR gf_exp[rip+8], 0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L16
.L18:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rcx, gf_exp[rip]
	movzx	edx, BYTE PTR -13[rbp]
	mov	BYTE PTR [rax+rcx], dl
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, gf_exp[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movzx	eax, al
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, gf_log[rip]
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 49
	jne	.L17
	movzx	eax, BYTE PTR gf_exp[rip+8]
	xor	al, BYTE PTR -13[rbp]
	mov	BYTE PTR gf_exp[rip+8], al
.L17:
	add	DWORD PTR -12[rbp], 1
	sal	BYTE PTR -13[rbp]
.L16:
	cmp	DWORD PTR -12[rbp], 7
	jle	.L18
	movzx	eax, BYTE PTR gf_exp[rip+8]
	movzx	eax, al
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, gf_log[rip]
	mov	DWORD PTR [rdx+rax], 8
	mov	BYTE PTR -13[rbp], -128
	mov	DWORD PTR -12[rbp], 9
	jmp	.L19
.L22:
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 1
	cdqe
	lea	rdx, gf_exp[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	BYTE PTR -13[rbp], al
	ja	.L20
	movzx	eax, BYTE PTR gf_exp[rip+8]
	mov	ecx, eax
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 1
	cdqe
	lea	rdx, gf_exp[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	xor	al, BYTE PTR -13[rbp]
	movzx	eax, al
	add	eax, eax
	xor	eax, ecx
	mov	ecx, eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, gf_exp[rip]
	mov	BYTE PTR [rax+rdx], cl
	jmp	.L21
.L20:
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 1
	cdqe
	lea	rdx, gf_exp[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	lea	ecx, [rax+rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, gf_exp[rip]
	mov	BYTE PTR [rax+rdx], cl
.L21:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, gf_exp[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movzx	eax, al
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, gf_log[rip]
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	add	DWORD PTR -12[rbp], 1
.L19:
	cmp	DWORD PTR -12[rbp], 254
	jle	.L22
	mov	DWORD PTR gf_log[rip], 255
	mov	DWORD PTR -12[rbp], 0
	jmp	.L23
.L24:
	mov	eax, DWORD PTR -12[rbp]
	lea	ecx, 255[rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, gf_exp[rip]
	movzx	edx, BYTE PTR [rax+rdx]
	movsx	rax, ecx
	lea	rcx, gf_exp[rip]
	mov	BYTE PTR [rax+rcx], dl
	add	DWORD PTR -12[rbp], 1
.L23:
	cmp	DWORD PTR -12[rbp], 254
	jle	.L24
	mov	BYTE PTR inverse[rip], 0
	mov	BYTE PTR inverse[rip+1], 1
	mov	DWORD PTR -12[rbp], 2
	jmp	.L25
.L26:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, gf_log[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, 255
	sub	eax, edx
	cdqe
	lea	rdx, gf_exp[rip]
	movzx	edx, BYTE PTR [rax+rdx]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rcx, inverse[rip]
	mov	BYTE PTR [rax+rcx], dl
	add	DWORD PTR -12[rbp], 1
.L25:
	cmp	DWORD PTR -12[rbp], 255
	jle	.L26
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	generate_gf, .-generate_gf
	.type	addmul1, @function
addmul1:
.LFB10:
	.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
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	mov	QWORD PTR -48[rbp], rdi
	mov	QWORD PTR -56[rbp], rsi
	mov	eax, edx
	mov	DWORD PTR -64[rbp], ecx
	mov	BYTE PTR -60[rbp], al
	mov	rbx, QWORD PTR -48[rbp]
	mov	r12, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR -64[rbp]
	sub	eax, 16
	cdqe
	add	rax, 1
	add	rax, rbx
	mov	QWORD PTR -32[rbp], rax
	movzx	eax, BYTE PTR -60[rbp]
	cdqe
	sal	rax, 8
	mov	rdx, rax
	lea	rax, gf_mul_table[rip]
	lea	r13, [rdx+rax]
	jmp	.L28
.L29:
	movzx	edx, BYTE PTR [rbx]
	movzx	eax, BYTE PTR [r12]
	movzx	eax, al
	add	rax, r13
	movzx	eax, BYTE PTR [rax]
	xor	eax, edx
	mov	BYTE PTR [rbx], al
	lea	rax, 1[rbx]
	movzx	ecx, BYTE PTR [rax]
	lea	rax, 1[r12]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	rax, r13
	movzx	edx, BYTE PTR [rax]
	lea	rax, 1[rbx]
	xor	edx, ecx
	mov	BYTE PTR [rax], dl
	lea	rax, 2[rbx]
	movzx	ecx, BYTE PTR [rax]
	lea	rax, 2[r12]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	rax, r13
	movzx	edx, BYTE PTR [rax]
	lea	rax, 2[rbx]
	xor	edx, ecx
	mov	BYTE PTR [rax], dl
	lea	rax, 3[rbx]
	movzx	ecx, BYTE PTR [rax]
	lea	rax, 3[r12]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	rax, r13
	movzx	edx, BYTE PTR [rax]
	lea	rax, 3[rbx]
	xor	edx, ecx
	mov	BYTE PTR [rax], dl
	lea	rax, 4[rbx]
	movzx	ecx, BYTE PTR [rax]
	lea	rax, 4[r12]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	rax, r13
	movzx	edx, BYTE PTR [rax]
	lea	rax, 4[rbx]
	xor	edx, ecx
	mov	BYTE PTR [rax], dl
	lea	rax, 5[rbx]
	movzx	ecx, BYTE PTR [rax]
	lea	rax, 5[r12]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	rax, r13
	movzx	edx, BYTE PTR [rax]
	lea	rax, 5[rbx]
	xor	edx, ecx
	mov	BYTE PTR [rax], dl
	lea	rax, 6[rbx]
	movzx	ecx, BYTE PTR [rax]
	lea	rax, 6[r12]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	rax, r13
	movzx	edx, BYTE PTR [rax]
	lea	rax, 6[rbx]
	xor	edx, ecx
	mov	BYTE PTR [rax], dl
	lea	rax, 7[rbx]
	movzx	ecx, BYTE PTR [rax]
	lea	rax, 7[r12]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	rax, r13
	movzx	edx, BYTE PTR [rax]
	lea	rax, 7[rbx]
	xor	edx, ecx
	mov	BYTE PTR [rax], dl
	lea	rax, 8[rbx]
	movzx	ecx, BYTE PTR [rax]
	lea	rax, 8[r12]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	rax, r13
	movzx	edx, BYTE PTR [rax]
	lea	rax, 8[rbx]
	xor	edx, ecx
	mov	BYTE PTR [rax], dl
	lea	rax, 9[rbx]
	movzx	ecx, BYTE PTR [rax]
	lea	rax, 9[r12]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	rax, r13
	movzx	edx, BYTE PTR [rax]
	lea	rax, 9[rbx]
	xor	edx, ecx
	mov	BYTE PTR [rax], dl
	lea	rax, 10[rbx]
	movzx	ecx, BYTE PTR [rax]
	lea	rax, 10[r12]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	rax, r13
	movzx	edx, BYTE PTR [rax]
	lea	rax, 10[rbx]
	xor	edx, ecx
	mov	BYTE PTR [rax], dl
	lea	rax, 11[rbx]
	movzx	ecx, BYTE PTR [rax]
	lea	rax, 11[r12]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	rax, r13
	movzx	edx, BYTE PTR [rax]
	lea	rax, 11[rbx]
	xor	edx, ecx
	mov	BYTE PTR [rax], dl
	lea	rax, 12[rbx]
	movzx	ecx, BYTE PTR [rax]
	lea	rax, 12[r12]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	rax, r13
	movzx	edx, BYTE PTR [rax]
	lea	rax, 12[rbx]
	xor	edx, ecx
	mov	BYTE PTR [rax], dl
	lea	rax, 13[rbx]
	movzx	ecx, BYTE PTR [rax]
	lea	rax, 13[r12]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	rax, r13
	movzx	edx, BYTE PTR [rax]
	lea	rax, 13[rbx]
	xor	edx, ecx
	mov	BYTE PTR [rax], dl
	lea	rax, 14[rbx]
	movzx	ecx, BYTE PTR [rax]
	lea	rax, 14[r12]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	rax, r13
	movzx	edx, BYTE PTR [rax]
	lea	rax, 14[rbx]
	xor	edx, ecx
	mov	BYTE PTR [rax], dl
	lea	rax, 15[rbx]
	movzx	ecx, BYTE PTR [rax]
	lea	rax, 15[r12]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	rax, r13
	movzx	edx, BYTE PTR [rax]
	lea	rax, 15[rbx]
	xor	edx, ecx
	mov	BYTE PTR [rax], dl
	add	rbx, 16
	add	r12, 16
.L28:
	cmp	rbx, QWORD PTR -32[rbp]
	jb	.L29
	add	QWORD PTR -32[rbp], 15
	jmp	.L30
.L31:
	movzx	edx, BYTE PTR [rbx]
	movzx	eax, BYTE PTR [r12]
	movzx	eax, al
	add	rax, r13
	movzx	eax, BYTE PTR [rax]
	xor	eax, edx
	mov	BYTE PTR [rbx], al
	add	rbx, 1
	add	r12, 1
.L30:
	cmp	rbx, QWORD PTR -32[rbp]
	jb	.L31
	nop
	nop
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	addmul1, .-addmul1
	.type	matmul, @function
matmul:
.LFB11:
	.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 -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	DWORD PTR -60[rbp], ecx
	mov	DWORD PTR -64[rbp], r8d
	mov	DWORD PTR -68[rbp], r9d
	mov	DWORD PTR -28[rbp], 0
	jmp	.L33
.L38:
	mov	DWORD PTR -24[rbp], 0
	jmp	.L34
.L37:
	mov	eax, DWORD PTR -28[rbp]
	imul	eax, DWORD PTR -64[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	BYTE PTR -29[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	jmp	.L35
.L36:
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	movsx	rcx, eax
	movsx	rax, edx
	sal	rax, 8
	lea	rdx, [rax+rcx]
	lea	rax, gf_mul_table[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	xor	BYTE PTR -29[rbp], al
	add	DWORD PTR -20[rbp], 1
	add	QWORD PTR -16[rbp], 1
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	add	QWORD PTR -8[rbp], rax
.L35:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -64[rbp]
	jl	.L36
	mov	eax, DWORD PTR -28[rbp]
	imul	eax, DWORD PTR -68[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -24[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -29[rbp]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -24[rbp], 1
.L34:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L37
	add	DWORD PTR -28[rbp], 1
.L33:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -60[rbp]
	jl	.L38
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	matmul, .-matmul
	.section	.rodata
.LC16:
	.string	"indxc"
.LC17:
	.string	"indxr"
.LC18:
	.string	"ipiv"
.LC19:
	.string	" ## __LINE__ ## "
.LC20:
	.string	"singular matrix\n"
.LC21:
	.string	"XXX pivot not found!\n"
.LC22:
	.string	"singular matrix 2\n"
.LC23:
	.string	"AARGH, indxr[col] %d\n"
.LC24:
	.string	"AARGH, indxc[col] %d\n"
	.text
	.type	invert_mat, @function
invert_mat:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 112
	mov	QWORD PTR -104[rbp], rdi
	mov	DWORD PTR -108[rbp], esi
	mov	DWORD PTR -60[rbp], 1
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	sal	eax, 2
	lea	rsi, .LC16[rip]
	mov	edi, eax
	call	my_malloc
	mov	QWORD PTR -48[rbp], rax
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	sal	eax, 2
	lea	rsi, .LC17[rip]
	mov	edi, eax
	call	my_malloc
	mov	QWORD PTR -40[rbp], rax
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	sal	eax, 2
	lea	rsi, .LC18[rip]
	mov	edi, eax
	call	my_malloc
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR -108[rbp]
	lea	rsi, .LC19[rip]
	mov	edi, eax
	call	my_malloc
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -108[rbp]
	lea	rsi, .LC19[rip]
	mov	edi, eax
	call	my_malloc
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	mov	rdx, QWORD PTR -24[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	mov	esi, 0
	mov	rdi, rcx
	call	memset@PLT
	mov	DWORD PTR -68[rbp], 0
	jmp	.L40
.L41:
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	add	DWORD PTR -68[rbp], 1
.L40:
	mov	eax, DWORD PTR -68[rbp]
	cmp	eax, DWORD PTR -108[rbp]
	jl	.L41
	mov	DWORD PTR -72[rbp], 0
	jmp	.L42
.L64:
	mov	DWORD PTR -80[rbp], -1
	mov	eax, DWORD PTR -80[rbp]
	mov	DWORD PTR -84[rbp], eax
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 1
	je	.L43
	mov	eax, DWORD PTR -72[rbp]
	imul	eax, DWORD PTR -108[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -72[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L43
	mov	eax, DWORD PTR -72[rbp]
	mov	DWORD PTR -84[rbp], eax
	mov	eax, DWORD PTR -72[rbp]
	mov	DWORD PTR -80[rbp], eax
	jmp	.L44
.L43:
	mov	DWORD PTR -76[rbp], 0
	jmp	.L45
.L52:
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 1
	je	.L46
	mov	DWORD PTR -64[rbp], 0
	jmp	.L47
.L51:
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L48
	mov	eax, DWORD PTR -76[rbp]
	imul	eax, DWORD PTR -108[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -64[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L49
	mov	eax, DWORD PTR -76[rbp]
	mov	DWORD PTR -84[rbp], eax
	mov	eax, DWORD PTR -64[rbp]
	mov	DWORD PTR -80[rbp], eax
	jmp	.L44
.L48:
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 1
	jle	.L49
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 1
	lea	rdi, .LC20[rip]
	call	fwrite@PLT
	jmp	.L50
.L49:
	add	DWORD PTR -64[rbp], 1
.L47:
	mov	eax, DWORD PTR -64[rbp]
	cmp	eax, DWORD PTR -108[rbp]
	jl	.L51
.L46:
	add	DWORD PTR -76[rbp], 1
.L45:
	mov	eax, DWORD PTR -76[rbp]
	cmp	eax, DWORD PTR -108[rbp]
	jl	.L52
	cmp	DWORD PTR -80[rbp], -1
	jne	.L75
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 21
	mov	esi, 1
	lea	rdi, .LC21[rip]
	call	fwrite@PLT
	jmp	.L50
.L75:
	nop
.L44:
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	add	edx, 1
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -80[rbp]
	je	.L53
	mov	DWORD PTR -64[rbp], 0
	jmp	.L54
.L55:
	mov	eax, DWORD PTR -84[rbp]
	imul	eax, DWORD PTR -108[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -64[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -86[rbp], al
	mov	eax, DWORD PTR -80[rbp]
	imul	eax, DWORD PTR -108[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -64[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -104[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -84[rbp]
	imul	eax, DWORD PTR -108[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -64[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -104[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR [rcx]
	mov	BYTE PTR [rdx], al
	mov	eax, DWORD PTR -80[rbp]
	imul	eax, DWORD PTR -108[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -64[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -104[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -86[rbp]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -64[rbp], 1
.L54:
	mov	eax, DWORD PTR -64[rbp]
	cmp	eax, DWORD PTR -108[rbp]
	jl	.L55
.L53:
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -84[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -80[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -80[rbp]
	imul	eax, DWORD PTR -108[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -80[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -85[rbp], al
	cmp	BYTE PTR -85[rbp], 0
	jne	.L56
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 18
	mov	esi, 1
	lea	rdi, .LC22[rip]
	call	fwrite@PLT
	jmp	.L50
.L56:
	cmp	BYTE PTR -85[rbp], 1
	je	.L57
	movzx	eax, BYTE PTR -85[rbp]
	cdqe
	lea	rdx, inverse[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	mov	BYTE PTR -85[rbp], al
	mov	eax, DWORD PTR -80[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 1
	mov	DWORD PTR -64[rbp], 0
	jmp	.L58
.L59:
	movzx	eax, BYTE PTR -85[rbp]
	mov	edx, DWORD PTR -64[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -8[rbp]
	add	rdx, rcx
	movzx	edx, BYTE PTR [rdx]
	movzx	ecx, dl
	mov	edx, DWORD PTR -64[rbp]
	movsx	rsi, edx
	mov	rdx, QWORD PTR -8[rbp]
	add	rdx, rsi
	movsx	rcx, ecx
	cdqe
	sal	rax, 8
	add	rcx, rax
	lea	rax, gf_mul_table[rip]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -64[rbp], 1
.L58:
	mov	eax, DWORD PTR -64[rbp]
	cmp	eax, DWORD PTR -108[rbp]
	jl	.L59
.L57:
	mov	eax, DWORD PTR -80[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 1
	mov	eax, DWORD PTR -108[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	je	.L60
	mov	rax, QWORD PTR -104[rbp]
	mov	QWORD PTR -56[rbp], rax
	mov	DWORD PTR -64[rbp], 0
	jmp	.L61
.L63:
	mov	eax, DWORD PTR -64[rbp]
	cmp	eax, DWORD PTR -80[rbp]
	je	.L62
	mov	eax, DWORD PTR -80[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -85[rbp], al
	mov	eax, DWORD PTR -80[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	cmp	BYTE PTR -85[rbp], 0
	je	.L62
	movzx	edx, BYTE PTR -85[rbp]
	mov	ecx, DWORD PTR -108[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	addmul1
.L62:
	add	DWORD PTR -64[rbp], 1
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	add	QWORD PTR -56[rbp], rax
.L61:
	mov	eax, DWORD PTR -64[rbp]
	cmp	eax, DWORD PTR -108[rbp]
	jl	.L63
.L60:
	mov	eax, DWORD PTR -80[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	add	DWORD PTR -72[rbp], 1
.L42:
	mov	eax, DWORD PTR -72[rbp]
	cmp	eax, DWORD PTR -108[rbp]
	jl	.L64
	mov	eax, DWORD PTR -108[rbp]
	sub	eax, 1
	mov	DWORD PTR -72[rbp], eax
	jmp	.L65
.L73:
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	js	.L66
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -108[rbp], eax
	jg	.L67
.L66:
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L68
.L67:
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	js	.L69
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -108[rbp], eax
	jg	.L70
.L69:
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L68
.L70:
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	je	.L68
	mov	DWORD PTR -76[rbp], 0
	jmp	.L71
.L72:
	mov	eax, DWORD PTR -76[rbp]
	imul	eax, DWORD PTR -108[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -87[rbp], al
	mov	eax, DWORD PTR -76[rbp]
	imul	eax, DWORD PTR -108[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -104[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -76[rbp]
	imul	eax, DWORD PTR -108[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rsi, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rsi
	mov	eax, DWORD PTR [rax]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -104[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR [rcx]
	mov	BYTE PTR [rdx], al
	mov	eax, DWORD PTR -76[rbp]
	imul	eax, DWORD PTR -108[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -104[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -87[rbp]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -76[rbp], 1
.L71:
	mov	eax, DWORD PTR -76[rbp]
	cmp	eax, DWORD PTR -108[rbp]
	jl	.L72
.L68:
	sub	DWORD PTR -72[rbp], 1
.L65:
	cmp	DWORD PTR -72[rbp], 0
	jns	.L73
	mov	DWORD PTR -60[rbp], 0
.L50:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -60[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	invert_mat, .-invert_mat
	.globl	invert_vdm
	.type	invert_vdm, @function
invert_vdm:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	DWORD PTR -60[rbp], esi
	cmp	DWORD PTR -60[rbp], 1
	jne	.L77
	mov	eax, 0
	jmp	.L78
.L77:
	mov	eax, DWORD PTR -60[rbp]
	lea	rsi, .LC19[rip]
	mov	edi, eax
	call	my_malloc
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -60[rbp]
	lea	rsi, .LC19[rip]
	mov	edi, eax
	call	my_malloc
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -60[rbp]
	lea	rsi, .LC19[rip]
	mov	edi, eax
	call	my_malloc
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -36[rbp], 1
	mov	DWORD PTR -40[rbp], 0
	jmp	.L79
.L80:
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -40[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -8[rbp]
	add	rdx, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -40[rbp], 1
	mov	eax, DWORD PTR -60[rbp]
	add	DWORD PTR -36[rbp], eax
.L79:
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, DWORD PTR -60[rbp]
	jl	.L80
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	mov	DWORD PTR -40[rbp], 1
	jmp	.L81
.L84:
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -41[rbp], al
	mov	eax, DWORD PTR -60[rbp]
	sub	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -36[rbp], eax
	jmp	.L82
.L83:
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	ecx, BYTE PTR [rax]
	movzx	eax, BYTE PTR -41[rbp]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	lea	rsi, 1[rdx]
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rsi
	movzx	edx, BYTE PTR [rdx]
	movzx	edx, dl
	movsx	rdx, edx
	cdqe
	sal	rax, 8
	add	rdx, rax
	lea	rax, gf_mul_table[rip]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -36[rbp]
	movsx	rsi, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rsi
	xor	edx, ecx
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -36[rbp], 1
.L82:
	mov	eax, DWORD PTR -60[rbp]
	sub	eax, 1
	cmp	DWORD PTR -36[rbp], eax
	jl	.L83
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	edx, DWORD PTR -60[rbp]
	movsx	rdx, edx
	lea	rcx, -1[rdx]
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	xor	al, BYTE PTR -41[rbp]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -40[rbp], 1
.L81:
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, DWORD PTR -60[rbp]
	jl	.L84
	mov	DWORD PTR -32[rbp], 0
	jmp	.L85
.L90:
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -42[rbp], al
	mov	BYTE PTR -43[rbp], 1
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 1
	mov	eax, DWORD PTR -60[rbp]
	sub	eax, 2
	mov	DWORD PTR -40[rbp], eax
	jmp	.L86
.L87:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	ecx, BYTE PTR [rax]
	movzx	eax, BYTE PTR -42[rbp]
	mov	edx, DWORD PTR -40[rbp]
	movsx	rdx, edx
	lea	rsi, 1[rdx]
	mov	rdx, QWORD PTR -16[rbp]
	add	rdx, rsi
	movzx	edx, BYTE PTR [rdx]
	movzx	edx, dl
	movsx	rdx, edx
	cdqe
	sal	rax, 8
	add	rdx, rax
	lea	rax, gf_mul_table[rip]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -40[rbp]
	movsx	rsi, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rsi
	xor	edx, ecx
	mov	BYTE PTR [rax], dl
	movzx	eax, BYTE PTR -42[rbp]
	movzx	edx, BYTE PTR -43[rbp]
	movsx	rdx, edx
	cdqe
	sal	rax, 8
	add	rdx, rax
	lea	rax, gf_mul_table[rip]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -40[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	xor	eax, edx
	mov	BYTE PTR -43[rbp], al
	sub	DWORD PTR -40[rbp], 1
.L86:
	cmp	DWORD PTR -40[rbp], 0
	jns	.L87
	mov	DWORD PTR -28[rbp], 0
	jmp	.L88
.L89:
	movzx	eax, BYTE PTR -43[rbp]
	cdqe
	lea	rdx, inverse[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movzx	ecx, al
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	esi, al
	mov	eax, DWORD PTR -28[rbp]
	imul	eax, DWORD PTR -60[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -32[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rdx, rax
	movsx	rsi, esi
	movsx	rax, ecx
	sal	rax, 8
	lea	rcx, [rax+rsi]
	lea	rax, gf_mul_table[rip]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -28[rbp], 1
.L88:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -60[rbp]
	jl	.L89
	add	DWORD PTR -32[rbp], 1
.L85:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -60[rbp]
	jl	.L90
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
.L78:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	invert_vdm, .-invert_vdm
	.local	fec_initialized
	.comm	fec_initialized,4,4
	.type	init_fec, @function
init_fec:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	call	generate_gf
	mov	eax, 0
	call	init_mul_table
	mov	DWORD PTR fec_initialized[rip], 1
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	init_fec, .-init_fec
	.section	.rodata
.LC25:
	.string	"bad parameters to fec_free\n"
	.text
	.globl	fec_free
	.type	fec_free, @function
fec_free:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	je	.L93
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	ecx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 12[rax]
	xor	eax, ecx
	xor	eax, -20181524
	mov	ecx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	xor	rax, rcx
	cmp	rdx, rax
	je	.L94
.L93:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 27
	mov	esi, 1
	lea	rdi, .LC25[rip]
	call	fwrite@PLT
	jmp	.L92
.L94:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
.L92:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	fec_free, .-fec_free
	.section	.rodata
	.align 8
.LC26:
	.string	"Invalid parameters k %d n %d GF_SIZE %d\n"
.LC27:
	.string	"new_code"
	.text
	.globl	fec_new
	.type	fec_new, @function
fec_new:
.LFB16:
	.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	DWORD PTR -40[rbp], esi
	mov	eax, DWORD PTR fec_initialized[rip]
	test	eax, eax
	jne	.L97
	mov	eax, 0
	call	init_fec
.L97:
	cmp	DWORD PTR -36[rbp], 256
	jg	.L98
	cmp	DWORD PTR -40[rbp], 256
	jg	.L98
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -40[rbp]
	jle	.L99
.L98:
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, DWORD PTR -40[rbp]
	mov	edx, DWORD PTR -36[rbp]
	mov	r8d, 255
	lea	rsi, .LC26[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	jmp	.L100
.L99:
	lea	rsi, .LC27[rip]
	mov	edi, 24
	call	my_malloc
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR -36[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR -40[rbp]
	mov	DWORD PTR 12[rax], edx
	mov	eax, DWORD PTR -40[rbp]
	imul	eax, DWORD PTR -36[rbp]
	lea	rsi, .LC19[rip]
	mov	edi, eax
	call	my_malloc
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 16[rdx], rax
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -40[rbp]
	xor	eax, edx
	xor	eax, -20181524
	mov	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	xor	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
	mov	eax, DWORD PTR -40[rbp]
	imul	eax, DWORD PTR -36[rbp]
	lea	rsi, .LC19[rip]
	mov	edi, eax
	call	my_malloc
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], 1
	mov	DWORD PTR -28[rbp], 1
	jmp	.L101
.L102:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	add	DWORD PTR -28[rbp], 1
.L101:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L102
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	mov	DWORD PTR -32[rbp], 0
	jmp	.L103
.L106:
	mov	DWORD PTR -28[rbp], 0
	jmp	.L104
.L105:
	mov	eax, DWORD PTR -32[rbp]
	imul	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	modnn
	movzx	eax, al
	mov	edx, DWORD PTR -28[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	cdqe
	lea	rcx, gf_exp[rip]
	movzx	eax, BYTE PTR [rax+rcx]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -28[rbp], 1
.L104:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L105
	add	DWORD PTR -32[rbp], 1
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	QWORD PTR -24[rbp], rax
.L103:
	mov	eax, DWORD PTR -40[rbp]
	sub	eax, 1
	cmp	DWORD PTR -32[rbp], eax
	jl	.L106
	mov	edx, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	invert_vdm
	mov	eax, DWORD PTR -40[rbp]
	sub	eax, DWORD PTR -36[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR 16[rax]
	mov	eax, DWORD PTR -36[rbp]
	imul	eax, eax
	cdqe
	lea	rsi, [rcx+rax]
	mov	eax, DWORD PTR -36[rbp]
	imul	eax, eax
	movsx	rcx, eax
	mov	rax, QWORD PTR -8[rbp]
	lea	rdi, [rcx+rax]
	mov	r8d, DWORD PTR -36[rbp]
	mov	ecx, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r9d, r8d
	mov	r8d, ecx
	mov	ecx, edx
	mov	rdx, rsi
	mov	rsi, rax
	call	matmul
	mov	eax, DWORD PTR -36[rbp]
	imul	eax, eax
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -24[rbp], rax
	mov	DWORD PTR -28[rbp], 0
	jmp	.L107
.L108:
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], 1
	add	DWORD PTR -28[rbp], 1
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, 1
	add	QWORD PTR -24[rbp], rax
.L107:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L108
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -16[rbp]
.L100:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	fec_new, .-fec_new
	.section	.rodata
.LC28:
	.string	"Invalid index %d (max %d)\n"
	.text
	.globl	fec_encode
	.type	fec_encode, @function
fec_encode:
.LFB17:
	.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	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -44[rbp], ecx
	mov	DWORD PTR -48[rbp], r8d
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jge	.L110
	mov	eax, DWORD PTR -48[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rcx
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memmove@PLT
	jmp	.L116
.L110:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 12[rax]
	cmp	DWORD PTR -44[rbp], eax
	jge	.L112
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	eax, DWORD PTR -44[rbp]
	imul	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	mov	rdx, QWORD PTR -40[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	mov	esi, 0
	mov	rdi, rcx
	call	memset@PLT
	mov	DWORD PTR -16[rbp], 0
	jmp	.L113
.L115:
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L114
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rcx
	mov	rsi, QWORD PTR [rax]
	mov	ecx, DWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	addmul1
.L114:
	add	DWORD PTR -16[rbp], 1
.L113:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jl	.L115
	jmp	.L116
.L112:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 12[rax]
	lea	ecx, -1[rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -44[rbp]
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L116:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	fec_encode, .-fec_encode
	.type	shuffle, @function
shuffle:
.LFB18:
	.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 -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -52[rbp], edx
	mov	DWORD PTR -20[rbp], 0
	jmp	.L118
.L123:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -52[rbp], eax
	jle	.L119
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -20[rbp], eax
	jne	.L120
.L119:
	add	DWORD PTR -20[rbp], 1
	jmp	.L118
.L120:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -16[rbp], eax
	jne	.L121
	mov	eax, 1
	jmp	.L122
.L121:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -48[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -40[rbp]
	add	rdx, rcx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR [rdx], rax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rdx], rax
.L118:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L123
	mov	eax, 0
.L122:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	shuffle, .-shuffle
	.section	.rodata
	.align 8
.LC29:
	.string	"decode: invalid index %d (max %d)\n"
	.text
	.type	build_decode_matrix, @function
build_decode_matrix:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	imul	eax, eax
	lea	rsi, .LC19[rip]
	mov	edi, eax
	call	my_malloc
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -24[rbp], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L125
.L130:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -20[rbp], eax
	jle	.L126
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	mov	rdx, QWORD PTR -16[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	mov	esi, 0
	mov	rdi, rcx
	call	memset@PLT
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 1
	jmp	.L127
.L126:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 12[rax]
	cmp	edx, eax
	jge	.L128
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR 16[rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rsi, 0[0+rax*4]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rsi
	mov	eax, DWORD PTR [rax]
	imul	eax, DWORD PTR -20[rbp]
	cdqe
	add	rcx, rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memmove@PLT
	jmp	.L127
.L128:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 12[rax]
	lea	ecx, -1[rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC29[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	jmp	.L129
.L127:
	add	DWORD PTR -24[rbp], 1
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	QWORD PTR -16[rbp], rax
.L125:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L130
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	invert_mat
	test	eax, eax
	je	.L131
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -8[rbp], 0
.L131:
	mov	rax, QWORD PTR -8[rbp]
.L129:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	build_decode_matrix, .-build_decode_matrix
	.section	.rodata
.LC30:
	.string	"new pkt pointers"
.LC31:
	.string	"new pkt buffer"
	.text
	.globl	fec_decode
	.type	fec_decode, @function
fec_decode:
.LFB20:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 72
	.cfi_offset 3, -24
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	DWORD PTR -76[rbp], ecx
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR -36[rbp], eax
	mov	edx, DWORD PTR -36[rbp]
	mov	rcx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	shuffle
	test	eax, eax
	je	.L133
	mov	eax, 1
	jmp	.L134
.L133:
	mov	rdx, QWORD PTR -72[rbp]
	mov	rcx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	build_decode_matrix
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L135
	mov	eax, 1
	jmp	.L134
.L135:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	eax, 3
	lea	rsi, .LC30[rip]
	mov	edi, eax
	call	my_malloc
	mov	QWORD PTR -24[rbp], rax
	mov	DWORD PTR -44[rbp], 0
	jmp	.L136
.L141:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -36[rbp], eax
	jg	.L137
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	lea	rbx, [rdx+rax]
	mov	eax, DWORD PTR -76[rbp]
	lea	rsi, .LC31[rip]
	mov	edi, eax
	call	my_malloc
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	mov	edx, DWORD PTR -44[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	mov	rdx, QWORD PTR [rdx]
	mov	rcx, rdx
	mov	rdx, rax
	mov	esi, 0
	mov	rdi, rcx
	call	memset@PLT
	mov	DWORD PTR -40[rbp], 0
	jmp	.L138
.L140:
	mov	eax, DWORD PTR -44[rbp]
	imul	eax, DWORD PTR -36[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -40[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L139
	mov	eax, DWORD PTR -44[rbp]
	imul	eax, DWORD PTR -36[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -40[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rcx
	mov	rsi, QWORD PTR [rax]
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	ecx, DWORD PTR -76[rbp]
	mov	rdi, rax
	call	addmul1
.L139:
	add	DWORD PTR -40[rbp], 1
.L138:
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L140
.L137:
	add	DWORD PTR -44[rbp], 1
.L136:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L141
	mov	DWORD PTR -44[rbp], 0
	jmp	.L142
.L144:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -36[rbp], eax
	jg	.L143
	mov	eax, DWORD PTR -76[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	ecx, DWORD PTR -44[rbp]
	movsx	rcx, ecx
	lea	rsi, 0[0+rcx*8]
	mov	rcx, QWORD PTR -24[rbp]
	add	rcx, rsi
	mov	rcx, QWORD PTR [rcx]
	mov	rsi, rcx
	mov	rdi, rax
	call	memmove@PLT
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
.L143:
	add	DWORD PTR -44[rbp], 1
.L142:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L144
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
.L134:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	fec_decode, .-fec_decode
	.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	"769575.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"111\000"
	.align	2
.LC1:
	.ascii	"1101\000"
	.align	2
.LC2:
	.ascii	"11001\000"
	.align	2
.LC3:
	.ascii	"101001\000"
	.align	2
.LC4:
	.ascii	"1100001\000"
	.align	2
.LC5:
	.ascii	"10010001\000"
	.align	2
.LC6:
	.ascii	"101110001\000"
	.align	2
.LC7:
	.ascii	"1000100001\000"
	.align	2
.LC8:
	.ascii	"10010000001\000"
	.align	2
.LC9:
	.ascii	"101000000001\000"
	.align	2
.LC10:
	.ascii	"1100101000001\000"
	.align	2
.LC11:
	.ascii	"11011000000001\000"
	.align	2
.LC12:
	.ascii	"110000100010001\000"
	.align	2
.LC13:
	.ascii	"1100000000000001\000"
	.align	2
.LC14:
	.ascii	"11010000000010001\000"
	.data
	.align	2
	.type	allPp, %object
	.size	allPp, 68
allPp:
	.word	0
	.word	0
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.local	gf_exp
	.comm	gf_exp,510,4
	.local	gf_log
	.comm	gf_log,1024,4
	.local	inverse
	.comm	inverse,256,4
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	modnn, %function
modnn:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	b	.L2
.L3:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #255
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	asr	r2, r3, #8
	ldr	r3, [fp, #-8]
	and	r3, r3, #255
	add	r3, r2, r3
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #254
	bgt	.L3
	ldr	r3, [fp, #-8]
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	modnn, .-modnn
	.local	gf_mul_table
	.comm	gf_mul_table,65536,4
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_mul_table, %function
init_mul_table:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L6
.L9:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L7
.L8:
	ldr	r2, .L12
	ldr	r3, [fp, #-12]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L12
	ldr	r3, [fp, #-8]
	ldr	r3, [r1, r3, lsl #2]
	add	r3, r2, r3
	mov	r0, r3
	bl	modnn
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L12+4
	ldrb	r1, [r3, r2]	@ zero_extendqisi2
	ldr	r2, .L12+8
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #8
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L7:
	ldr	r3, [fp, #-8]
	cmp	r3, #255
	ble	.L8
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L6:
	ldr	r3, [fp, #-12]
	cmp	r3, #255
	ble	.L9
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L10
.L11:
	ldr	r2, .L12+8
	ldr	r3, [fp, #-8]
	mov	r1, #0
	strb	r1, [r2, r3, lsl #8]
	ldr	r2, .L12+8
	ldr	r3, [fp, #-8]
	ldrb	r1, [r2, r3, lsl #8]	@ zero_extendqisi2
	ldr	r2, .L12+8
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L10:
	ldr	r3, [fp, #-8]
	cmp	r3, #255
	ble	.L11
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	gf_log
	.word	gf_exp
	.word	gf_mul_table
	.size	init_mul_table, .-init_mul_table
	.section	.rodata
	.align	2
.LC15:
	.ascii	"-- malloc failure allocating %s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	my_malloc, %function
my_malloc:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L15
	ldr	r3, .L17
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	ldr	r1, .L17+4
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L15:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	stderr
	.word	.LC15
	.size	my_malloc, .-my_malloc
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	generate_gf, %function
generate_gf:
	@ 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
	ldr	r3, .L31
	ldr	r3, [r3, #32]
	str	r3, [fp, #-8]
	mov	r3, #1
	strb	r3, [fp, #-13]
	ldr	r3, .L31+4
	mov	r2, #0
	strb	r2, [r3, #8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L20
.L22:
	ldr	r2, .L31+4
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r2, [fp, #-13]
	strb	r2, [r3]
	ldr	r2, .L31+4
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r2, .L31+8
	ldr	r3, [fp, #-12]
	str	r3, [r2, r1, lsl #2]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #49
	bne	.L21
	ldr	r3, .L31+4
	ldrb	r2, [r3, #8]	@ zero_extendqisi2
	ldrb	r3, [fp, #-13]
	eor	r3, r3, r2
	and	r2, r3, #255
	ldr	r3, .L31+4
	strb	r2, [r3, #8]
.L21:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldrb	r3, [fp, #-13]
	lsl	r3, r3, #1
	strb	r3, [fp, #-13]
.L20:
	ldr	r3, [fp, #-12]
	cmp	r3, #7
	ble	.L22
	ldr	r3, .L31+4
	ldrb	r3, [r3, #8]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, .L31+8
	mov	r2, #8
	str	r2, [r3, r1, lsl #2]
	mvn	r3, #127
	strb	r3, [fp, #-13]
	mov	r3, #9
	str	r3, [fp, #-12]
	b	.L23
.L26:
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	ldr	r2, .L31+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-13]	@ zero_extendqisi2
	cmp	r2, r3
	bhi	.L24
	ldr	r3, .L31+4
	ldrb	r3, [r3, #8]	@ zero_extendqisi2
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	ldr	r1, .L31+4
	ldrb	r1, [r1, r3]	@ zero_extendqisi2
	ldrb	r3, [fp, #-13]
	eor	r3, r3, r1
	and	r3, r3, #255
	lsl	r3, r3, #1
	lsl	r3, r3, #24
	asr	r3, r3, #24
	eor	r3, r3, r2
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r1, r3, #255
	ldr	r2, .L31+4
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	b	.L25
.L24:
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	ldr	r2, .L31+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	and	r1, r3, #255
	ldr	r2, .L31+4
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
.L25:
	ldr	r2, .L31+4
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r2, .L31+8
	ldr	r3, [fp, #-12]
	str	r3, [r2, r1, lsl #2]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L23:
	ldr	r3, [fp, #-12]
	cmp	r3, #254
	ble	.L26
	ldr	r3, .L31+8
	mov	r2, #255
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L27
.L28:
	ldr	r3, [fp, #-12]
	add	r3, r3, #255
	ldr	r1, .L31+4
	ldr	r2, [fp, #-12]
	add	r2, r1, r2
	ldrb	r1, [r2]	@ zero_extendqisi2
	ldr	r2, .L31+4
	strb	r1, [r2, r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L27:
	ldr	r3, [fp, #-12]
	cmp	r3, #254
	ble	.L28
	ldr	r3, .L31+12
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L31+12
	mov	r2, #1
	strb	r2, [r3, #1]
	mov	r3, #2
	str	r3, [fp, #-12]
	b	.L29
.L30:
	ldr	r2, .L31+8
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	rsb	r3, r3, #255
	ldr	r2, .L31+4
	ldrb	r1, [r2, r3]	@ zero_extendqisi2
	ldr	r2, .L31+12
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L29:
	ldr	r3, [fp, #-12]
	cmp	r3, #255
	ble	.L30
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L32:
	.align	2
.L31:
	.word	allPp
	.word	gf_exp
	.word	gf_log
	.word	inverse
	.size	generate_gf, .-generate_gf
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	addmul1, %function
addmul1:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, r5, r6, fp}
	add	fp, sp, #12
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r3, [fp, #-36]
	mov	r3, r2
	strb	r3, [fp, #-29]
	ldr	r4, [fp, #-24]
	ldr	r5, [fp, #-28]
	ldr	r3, [fp, #-36]
	sub	r3, r3, #15
	add	r3, r4, r3
	str	r3, [fp, #-16]
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	lsl	r3, r3, #8
	ldr	r2, .L38
	add	r6, r3, r2
	b	.L34
.L35:
	ldrb	r2, [r4]	@ zero_extendqisi2
	ldrb	r3, [r5]	@ zero_extendqisi2
	add	r3, r6, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	eor	r3, r3, r2
	and	r3, r3, #255
	strb	r3, [r4]
	add	r3, r4, #1
	ldrb	r1, [r3]	@ zero_extendqisi2
	add	r3, r5, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r6, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	add	r3, r4, #1
	eor	r2, r2, r1
	and	r2, r2, #255
	strb	r2, [r3]
	add	r3, r4, #2
	ldrb	r1, [r3]	@ zero_extendqisi2
	add	r3, r5, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r6, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	add	r3, r4, #2
	eor	r2, r2, r1
	and	r2, r2, #255
	strb	r2, [r3]
	add	r3, r4, #3
	ldrb	r1, [r3]	@ zero_extendqisi2
	add	r3, r5, #3
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r6, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	add	r3, r4, #3
	eor	r2, r2, r1
	and	r2, r2, #255
	strb	r2, [r3]
	add	r3, r4, #4
	ldrb	r1, [r3]	@ zero_extendqisi2
	add	r3, r5, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r6, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	add	r3, r4, #4
	eor	r2, r2, r1
	and	r2, r2, #255
	strb	r2, [r3]
	add	r3, r4, #5
	ldrb	r1, [r3]	@ zero_extendqisi2
	add	r3, r5, #5
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r6, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	add	r3, r4, #5
	eor	r2, r2, r1
	and	r2, r2, #255
	strb	r2, [r3]
	add	r3, r4, #6
	ldrb	r1, [r3]	@ zero_extendqisi2
	add	r3, r5, #6
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r6, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	add	r3, r4, #6
	eor	r2, r2, r1
	and	r2, r2, #255
	strb	r2, [r3]
	add	r3, r4, #7
	ldrb	r1, [r3]	@ zero_extendqisi2
	add	r3, r5, #7
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r6, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	add	r3, r4, #7
	eor	r2, r2, r1
	and	r2, r2, #255
	strb	r2, [r3]
	add	r3, r4, #8
	ldrb	r1, [r3]	@ zero_extendqisi2
	add	r3, r5, #8
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r6, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	add	r3, r4, #8
	eor	r2, r2, r1
	and	r2, r2, #255
	strb	r2, [r3]
	add	r3, r4, #9
	ldrb	r1, [r3]	@ zero_extendqisi2
	add	r3, r5, #9
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r6, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	add	r3, r4, #9
	eor	r2, r2, r1
	and	r2, r2, #255
	strb	r2, [r3]
	add	r3, r4, #10
	ldrb	r1, [r3]	@ zero_extendqisi2
	add	r3, r5, #10
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r6, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	add	r3, r4, #10
	eor	r2, r2, r1
	and	r2, r2, #255
	strb	r2, [r3]
	add	r3, r4, #11
	ldrb	r1, [r3]	@ zero_extendqisi2
	add	r3, r5, #11
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r6, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	add	r3, r4, #11
	eor	r2, r2, r1
	and	r2, r2, #255
	strb	r2, [r3]
	add	r3, r4, #12
	ldrb	r1, [r3]	@ zero_extendqisi2
	add	r3, r5, #12
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r6, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	add	r3, r4, #12
	eor	r2, r2, r1
	and	r2, r2, #255
	strb	r2, [r3]
	add	r3, r4, #13
	ldrb	r1, [r3]	@ zero_extendqisi2
	add	r3, r5, #13
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r6, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	add	r3, r4, #13
	eor	r2, r2, r1
	and	r2, r2, #255
	strb	r2, [r3]
	add	r3, r4, #14
	ldrb	r1, [r3]	@ zero_extendqisi2
	add	r3, r5, #14
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r6, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	add	r3, r4, #14
	eor	r2, r2, r1
	and	r2, r2, #255
	strb	r2, [r3]
	add	r3, r4, #15
	ldrb	r1, [r3]	@ zero_extendqisi2
	add	r3, r5, #15
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r6, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	add	r3, r4, #15
	eor	r2, r2, r1
	and	r2, r2, #255
	strb	r2, [r3]
	add	r4, r4, #16
	add	r5, r5, #16
.L34:
	ldr	r3, [fp, #-16]
	cmp	r4, r3
	bcc	.L35
	ldr	r3, [fp, #-16]
	add	r3, r3, #15
	str	r3, [fp, #-16]
	b	.L36
.L37:
	ldrb	r2, [r4]	@ zero_extendqisi2
	ldrb	r3, [r5]	@ zero_extendqisi2
	add	r3, r6, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	eor	r3, r3, r2
	and	r3, r3, #255
	strb	r3, [r4]
	add	r4, r4, #1
	add	r5, r5, #1
.L36:
	ldr	r3, [fp, #-16]
	cmp	r4, r3
	bcc	.L37
	nop
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, r6, fp}
	bx	lr
.L39:
	.align	2
.L38:
	.word	gf_mul_table
	.size	addmul1, .-addmul1
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	matmul, %function
matmul:
	@ args = 8, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #44
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L41
.L46:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L42
.L45:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #4]
	mul	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	mov	r3, #0
	strb	r3, [fp, #-25]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L43
.L44:
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r2, .L47
	lsl	r3, r0, #8
	add	r3, r2, r3
	add	r3, r3, r1
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldrb	r3, [fp, #-25]
	eor	r3, r3, r2
	strb	r3, [fp, #-25]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #8]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-8]
.L43:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	blt	.L44
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #8]
	mul	r2, r3, r2
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-40]
	add	r3, r3, r2
	ldrb	r2, [fp, #-25]
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L42:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #8]
	cmp	r2, r3
	blt	.L45
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L41:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	blt	.L46
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L48:
	.align	2
.L47:
	.word	gf_mul_table
	.size	matmul, .-matmul
	.section	.rodata
	.align	2
.LC16:
	.ascii	"indxc\000"
	.align	2
.LC17:
	.ascii	"indxr\000"
	.align	2
.LC18:
	.ascii	"ipiv\000"
	.align	2
.LC19:
	.ascii	" ## __LINE__ ## \000"
	.align	2
.LC20:
	.ascii	"singular matrix\012\000"
	.align	2
.LC21:
	.ascii	"XXX pivot not found!\012\000"
	.align	2
.LC22:
	.ascii	"singular matrix 2\012\000"
	.align	2
.LC23:
	.ascii	"AARGH, indxr[col] %d\012\000"
	.align	2
.LC24:
	.ascii	"AARGH, indxc[col] %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	invert_mat, %function
invert_mat:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	mov	r3, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	ldr	r1, .L86
	mov	r0, r3
	bl	my_malloc
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	ldr	r1, .L86+4
	mov	r0, r3
	bl	my_malloc
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	ldr	r1, .L86+8
	mov	r0, r3
	bl	my_malloc
	str	r0, [fp, #-20]
	ldr	r1, .L86+12
	ldr	r0, [fp, #-76]
	bl	my_malloc
	str	r0, [fp, #-16]
	ldr	r1, .L86+12
	ldr	r0, [fp, #-76]
	bl	my_malloc
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-16]
	mov	r0, r2
	mov	r2, r3
	mov	r1, #0
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L50
.L51:
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L50:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-76]
	cmp	r2, r3
	blt	.L51
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L52
.L74:
	mvn	r3, #0
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #1
	beq	.L53
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-76]
	mul	r2, r3, r2
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-72]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L53
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-52]
	b	.L54
.L53:
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L55
.L62:
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #1
	beq	.L56
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L57
.L61:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L58
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-76]
	mul	r2, r3, r2
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-72]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L59
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-52]
	b	.L54
.L58:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #1
	ble	.L59
	ldr	r3, .L86+16
	ldr	r3, [r3]
	mov	r2, #16
	mov	r1, #1
	ldr	r0, .L86+20
	bl	fwrite
	b	.L60
.L59:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L57:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-76]
	cmp	r2, r3
	blt	.L61
.L56:
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L55:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-76]
	cmp	r2, r3
	blt	.L62
	ldr	r3, [fp, #-52]
	cmn	r3, #1
	bne	.L85
	ldr	r3, .L86+16
	ldr	r3, [r3]
	mov	r2, #21
	mov	r1, #1
	ldr	r0, .L86+24
	bl	fwrite
	b	.L60
.L85:
	nop
.L54:
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3]
	add	r2, r2, #1
	str	r2, [r3]
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	beq	.L63
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L64
.L65:
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-76]
	mul	r2, r3, r2
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-72]
	add	r3, r3, r2
	ldrb	r3, [r3]
	strb	r3, [fp, #-62]
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-76]
	mul	r2, r3, r2
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-72]
	add	r2, r3, r2
	ldr	r3, [fp, #-56]
	ldr	r1, [fp, #-76]
	mul	r1, r3, r1
	ldr	r3, [fp, #-36]
	add	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-72]
	add	r3, r3, r1
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-76]
	mul	r2, r3, r2
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-72]
	add	r3, r3, r2
	ldrb	r2, [fp, #-62]
	strb	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L64:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-76]
	cmp	r2, r3
	blt	.L65
.L63:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-56]
	str	r2, [r3]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [fp, #-52]
	str	r2, [r3]
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-76]
	mul	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-72]
	add	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-61]
	ldrb	r3, [fp, #-61]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L66
	ldr	r3, .L86+16
	ldr	r3, [r3]
	mov	r2, #18
	mov	r1, #1
	ldr	r0, .L86+28
	bl	fwrite
	b	.L60
.L66:
	ldrb	r3, [fp, #-61]	@ zero_extendqisi2
	cmp	r3, #1
	beq	.L67
	ldrb	r3, [fp, #-61]	@ zero_extendqisi2
	ldr	r2, .L86+32
	ldrb	r3, [r2, r3]
	strb	r3, [fp, #-61]
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #1
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L68
.L69:
	ldrb	r2, [fp, #-61]	@ zero_extendqisi2
	ldr	r3, [fp, #-36]
	ldr	r1, [fp, #-8]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	ldr	r3, [fp, #-36]
	ldr	r1, [fp, #-8]
	add	r3, r1, r3
	ldr	r1, .L86+36
	lsl	r2, r2, #8
	add	r2, r1, r2
	add	r2, r2, r0
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L68:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-76]
	cmp	r2, r3
	blt	.L69
.L67:
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #1
	strb	r2, [r3]
	ldr	r3, [fp, #-76]
	mov	r2, r3
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L70
	ldr	r3, [fp, #-72]
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L71
.L73:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	beq	.L72
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-61]
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldrb	r3, [fp, #-61]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L72
	ldrb	r2, [fp, #-61]	@ zero_extendqisi2
	ldr	r3, [fp, #-76]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-60]
	bl	addmul1
.L72:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	str	r3, [fp, #-60]
.L71:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-76]
	cmp	r2, r3
	blt	.L73
.L70:
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L52:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-76]
	cmp	r2, r3
	blt	.L74
	ldr	r3, [fp, #-76]
	sub	r3, r3, #1
	str	r3, [fp, #-44]
	b	.L75
.L83:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	blt	.L76
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-76]
	cmp	r2, r3
	bgt	.L77
.L76:
	ldr	r3, .L86+16
	ldr	r0, [r3]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L86+40
	bl	fprintf
	b	.L78
.L77:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	blt	.L79
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-76]
	cmp	r2, r3
	bgt	.L80
.L79:
	ldr	r3, .L86+16
	ldr	r0, [r3]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L86+44
	bl	fprintf
	b	.L78
.L80:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-28]
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L78
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L81
.L82:
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-76]
	mul	r2, r3, r2
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldr	r3, [r3]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-72]
	add	r3, r3, r2
	ldrb	r3, [r3]
	strb	r3, [fp, #-63]
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-76]
	mul	r2, r3, r2
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-28]
	add	r3, r1, r3
	ldr	r3, [r3]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-72]
	add	r2, r3, r2
	ldr	r3, [fp, #-48]
	ldr	r1, [fp, #-76]
	mul	r1, r3, r1
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r0, [fp, #-24]
	add	r3, r0, r3
	ldr	r3, [r3]
	add	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-72]
	add	r3, r3, r1
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-76]
	mul	r2, r3, r2
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-28]
	add	r3, r1, r3
	ldr	r3, [r3]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-72]
	add	r3, r3, r2
	ldrb	r2, [fp, #-63]
	strb	r2, [r3]
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L81:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-76]
	cmp	r2, r3
	blt	.L82
.L78:
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1
	str	r3, [fp, #-44]
.L75:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bge	.L83
	mov	r3, #0
	str	r3, [fp, #-32]
.L60:
	ldr	r0, [fp, #-28]
	bl	free
	ldr	r0, [fp, #-24]
	bl	free
	ldr	r0, [fp, #-20]
	bl	free
	ldr	r0, [fp, #-16]
	bl	free
	ldr	r0, [fp, #-12]
	bl	free
	ldr	r3, [fp, #-32]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L87:
	.align	2
.L86:
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	stderr
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	inverse
	.word	gf_mul_table
	.word	.LC23
	.word	.LC24
	.size	invert_mat, .-invert_mat
	.align	2
	.global	invert_vdm
	.syntax unified
	.arm
	.fpu softvfp
	.type	invert_vdm, %function
invert_vdm:
	@ 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, [fp, #-44]
	cmp	r3, #1
	bne	.L89
	mov	r3, #0
	b	.L90
.L89:
	ldr	r1, .L103
	ldr	r0, [fp, #-44]
	bl	my_malloc
	str	r0, [fp, #-16]
	ldr	r1, .L103
	ldr	r0, [fp, #-44]
	bl	my_malloc
	str	r0, [fp, #-12]
	ldr	r1, .L103
	ldr	r0, [fp, #-44]
	bl	my_malloc
	str	r0, [fp, #-8]
	mov	r3, #1
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L91
.L92:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-40]
	add	r2, r2, r3
	ldr	r3, [fp, #-32]
	ldr	r1, [fp, #-8]
	add	r3, r1, r3
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	str	r3, [fp, #-28]
.L91:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	blt	.L92
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	mov	r3, #1
	str	r3, [fp, #-32]
	b	.L93
.L96:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-33]
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-32]
	sub	r3, r2, r3
	str	r3, [fp, #-28]
	b	.L94
.L95:
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	ldr	r2, [fp, #-28]
	add	r2, r2, #1
	ldr	r0, [fp, #-16]
	add	r2, r0, r2
	ldrb	r2, [r2]	@ zero_extendqisi2
	mov	r0, r2
	ldr	r2, .L103+4
	lsl	r3, r3, #8
	add	r3, r2, r3
	add	r3, r3, r0
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-28]
	ldr	r0, [fp, #-16]
	add	r3, r0, r3
	eor	r2, r2, r1
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L94:
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	blt	.L95
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r2, [fp, #-33]
	eor	r2, r2, r1
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L93:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	blt	.L96
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L97
.L102:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-34]
	mov	r3, #1
	strb	r3, [fp, #-35]
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	mov	r2, #1
	strb	r2, [r3]
	ldr	r3, [fp, #-44]
	sub	r3, r3, #2
	str	r3, [fp, #-32]
	b	.L98
.L99:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldrb	r3, [fp, #-34]	@ zero_extendqisi2
	ldr	r2, [fp, #-32]
	add	r2, r2, #1
	ldr	r0, [fp, #-12]
	add	r2, r0, r2
	ldrb	r2, [r2]	@ zero_extendqisi2
	mov	r0, r2
	ldr	r2, .L103+4
	lsl	r3, r3, #8
	add	r3, r2, r3
	add	r3, r3, r0
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-32]
	ldr	r0, [fp, #-12]
	add	r3, r0, r3
	eor	r2, r2, r1
	and	r2, r2, #255
	strb	r2, [r3]
	ldrb	r2, [fp, #-34]	@ zero_extendqisi2
	ldrb	r3, [fp, #-35]	@ zero_extendqisi2
	ldr	r1, .L103+4
	lsl	r2, r2, #8
	add	r2, r1, r2
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-32]
	ldr	r1, [fp, #-12]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	eor	r3, r3, r2
	strb	r3, [fp, #-35]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	str	r3, [fp, #-32]
.L98:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L99
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L100
.L101:
	ldrb	r3, [fp, #-35]	@ zero_extendqisi2
	ldr	r2, .L103+8
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	mov	ip, r3
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-44]
	mul	r2, r3, r2
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-40]
	add	r3, r3, r2
	ldr	r1, .L103+4
	lsl	r2, ip, #8
	add	r2, r1, r2
	add	r2, r2, r0
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L100:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	blt	.L101
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L97:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	blt	.L102
	ldr	r0, [fp, #-16]
	bl	free
	ldr	r0, [fp, #-12]
	bl	free
	ldr	r0, [fp, #-8]
	bl	free
	mov	r3, #0
.L90:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L104:
	.align	2
.L103:
	.word	.LC19
	.word	gf_mul_table
	.word	inverse
	.size	invert_vdm, .-invert_vdm
	.local	fec_initialized
	.comm	fec_initialized,4,4
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_fec, %function
init_fec:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	generate_gf
	bl	init_mul_table
	ldr	r3, .L106
	mov	r2, #1
	str	r2, [r3]
	nop
	pop	{fp, pc}
.L107:
	.align	2
.L106:
	.word	fec_initialized
	.size	init_fec, .-init_fec
	.section	.rodata
	.align	2
.LC25:
	.ascii	"bad parameters to fec_free\012\000"
	.text
	.align	2
	.global	fec_free
	.syntax unified
	.arm
	.fpu softvfp
	.type	fec_free, %function
fec_free:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L109
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	eor	r3, r3, r1
	ldr	r1, [fp, #-8]
	ldr	r1, [r1, #12]
	eor	r1, r1, r3
	ldr	r3, .L112
	eor	r3, r3, r1
	cmp	r2, r3
	beq	.L110
.L109:
	ldr	r3, .L112+4
	ldr	r3, [r3]
	mov	r2, #27
	mov	r1, #1
	ldr	r0, .L112+8
	bl	fwrite
	b	.L108
.L110:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-8]
	bl	free
.L108:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L113:
	.align	2
.L112:
	.word	-20181524
	.word	stderr
	.word	.LC25
	.size	fec_free, .-fec_free
	.section	.rodata
	.align	2
.LC26:
	.ascii	"Invalid parameters k %d n %d GF_SIZE %d\012\000"
	.align	2
.LC27:
	.ascii	"new_code\000"
	.text
	.align	2
	.global	fec_new
	.syntax unified
	.arm
	.fpu softvfp
	.type	fec_new, %function
fec_new:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L127
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L115
	bl	init_fec
.L115:
	ldr	r3, [fp, #-32]
	cmp	r3, #256
	bgt	.L116
	ldr	r3, [fp, #-36]
	cmp	r3, #256
	bgt	.L116
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	ble	.L117
.L116:
	ldr	r3, .L127+4
	ldr	r0, [r3]
	mov	r3, #255
	str	r3, [sp]
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-32]
	ldr	r1, .L127+8
	bl	fprintf
	mov	r3, #0
	b	.L118
.L117:
	ldr	r1, .L127+12
	mov	r0, #16
	bl	my_malloc
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-32]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-36]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-32]
	mul	r3, r2, r3
	ldr	r1, .L127+16
	mov	r0, r3
	bl	my_malloc
	mov	r2, r0
	ldr	r3, [fp, #-12]
	str	r2, [r3, #12]
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-36]
	eor	r3, r3, r2
	ldr	r2, [fp, #-12]
	ldr	r2, [r2, #12]
	eor	r2, r2, r3
	ldr	r3, .L127+20
	eor	r3, r3, r2
	ldr	r2, [fp, #-12]
	str	r3, [r2]
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-32]
	mul	r3, r2, r3
	ldr	r1, .L127+16
	mov	r0, r3
	bl	my_malloc
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r2, #1
	strb	r2, [r3]
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L119
.L120:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L119:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L120
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L121
.L124:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L122
.L123:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	mul	r3, r2, r3
	mov	r0, r3
	bl	modnn
	mov	r3, r0
	mov	r1, r3
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, .L127+24
	ldrb	r2, [r2, r1]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L122:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L123
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-16]
.L121:
	ldr	r3, [fp, #-36]
	sub	r3, r3, #1
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L124
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-8]
	bl	invert_vdm
	ldr	r3, [fp, #-32]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r0, r3, r2
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-32]
	mov	r1, r3
	mul	r1, r3, r1
	mov	r3, r1
	add	r1, r2, r3
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-32]
	sub	r2, r2, r3
	ldr	r3, [fp, #-32]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-32]
	str	r3, [sp]
	mov	r3, r2
	mov	r2, r1
	ldr	r1, [fp, #-8]
	bl	matmul
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-32]
	mov	r1, r3
	mul	r1, r3, r1
	mov	r3, r1
	mov	r1, r3
	mov	r3, r2
	mov	r2, r1
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L125
.L126:
	ldr	r3, [fp, #-16]
	mov	r2, #1
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-16]
.L125:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L126
	ldr	r0, [fp, #-8]
	bl	free
	ldr	r3, [fp, #-12]
.L118:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L128:
	.align	2
.L127:
	.word	fec_initialized
	.word	stderr
	.word	.LC26
	.word	.LC27
	.word	.LC19
	.word	-20181524
	.word	gf_exp
	.size	fec_new, .-fec_new
	.section	.rodata
	.align	2
.LC28:
	.ascii	"Invalid index %d (max %d)\012\000"
	.text
	.align	2
	.global	fec_encode
	.syntax unified
	.arm
	.fpu softvfp
	.type	fec_encode, %function
fec_encode:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bge	.L130
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #4]
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	memmove
	b	.L136
.L130:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	bge	.L132
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-12]
	mul	r2, r1, r2
	add	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #4]
	ldr	r2, [fp, #-32]
	mov	r0, r2
	mov	r2, r3
	mov	r1, #0
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L133
.L135:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L134
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #4]
	ldr	r0, [fp, #-32]
	bl	addmul1
.L134:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L133:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	blt	.L135
	b	.L136
.L132:
	ldr	r3, .L137
	ldr	r0, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #8]
	sub	r3, r3, #1
	ldr	r2, [fp, #-36]
	ldr	r1, .L137+4
	bl	fprintf
.L136:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L138:
	.align	2
.L137:
	.word	stderr
	.word	.LC28
	.size	fec_encode, .-fec_encode
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	shuffle, %function
shuffle:
	@ args = 0, 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]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L140
.L145:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	ble	.L141
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bne	.L142
.L141:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	b	.L140
.L142:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L143
	mov	r3, #1
	b	.L144
.L143:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-28]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
.L140:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L145
	mov	r3, #0
.L144:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	shuffle, .-shuffle
	.section	.rodata
	.align	2
.LC29:
	.ascii	"decode: invalid index %d (max %d)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	build_decode_matrix, %function
build_decode_matrix:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	ldr	r1, .L154
	mov	r0, r3
	bl	my_malloc
	str	r0, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-16]
	b	.L147
.L152:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	ble	.L148
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	mov	r0, r2
	mov	r2, r3
	mov	r1, #0
	bl	memset
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #1
	strb	r2, [r3]
	b	.L149
.L148:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #8]
	cmp	r2, r3
	bge	.L150
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-20]
	lsl	r2, r2, #2
	ldr	r1, [fp, #-32]
	add	r2, r1, r2
	ldr	r2, [r2]
	ldr	r1, [fp, #-8]
	mul	r2, r1, r2
	add	r3, r3, r2
	ldr	r2, [fp, #-8]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	memmove
	b	.L149
.L150:
	ldr	r3, .L154+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #8]
	sub	r3, r3, #1
	ldr	r1, .L154+8
	bl	fprintf
	ldr	r0, [fp, #-12]
	bl	free
	mov	r3, #0
	b	.L151
.L149:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-16]
.L147:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L152
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	invert_mat
	mov	r3, r0
	cmp	r3, #0
	beq	.L153
	ldr	r0, [fp, #-12]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-12]
.L153:
	ldr	r3, [fp, #-12]
.L151:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L155:
	.align	2
.L154:
	.word	.LC19
	.word	stderr
	.word	.LC29
	.size	build_decode_matrix, .-build_decode_matrix
	.section	.rodata
	.align	2
.LC30:
	.ascii	"new pkt pointers\000"
	.align	2
.LC31:
	.ascii	"new pkt buffer\000"
	.text
	.align	2
	.global	fec_decode
	.syntax unified
	.arm
	.fpu softvfp
	.type	fec_decode, %function
fec_decode:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-48]
	ldr	r0, [fp, #-44]
	bl	shuffle
	mov	r3, r0
	cmp	r3, #0
	beq	.L157
	mov	r3, #1
	b	.L158
.L157:
	ldr	r2, [fp, #-48]
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	build_decode_matrix
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L159
	mov	r3, #1
	b	.L158
.L159:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r1, .L169
	mov	r0, r3
	bl	my_malloc
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L160
.L165:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bgt	.L161
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r4, r2, r3
	ldr	r1, .L169+4
	ldr	r0, [fp, #-52]
	bl	my_malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-52]
	mov	r0, r2
	mov	r2, r3
	mov	r1, #0
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L162
.L164:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-24]
	mul	r2, r3, r2
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L163
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-24]
	mul	r2, r3, r2
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-52]
	bl	addmul1
.L163:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L162:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L164
.L161:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L160:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L165
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L166
.L168:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bgt	.L167
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-52]
	mov	r0, r3
	bl	memmove
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
.L167:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L166:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L168
	ldr	r0, [fp, #-16]
	bl	free
	ldr	r0, [fp, #-20]
	bl	free
	mov	r3, #0
.L158:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L170:
	.align	2
.L169:
	.word	.LC30
	.word	.LC31
	.size	fec_decode, .-fec_decode
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
