	.file	"902548.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"How many columns does your matrix have? "
.LC1:
	.string	"%d"
	.align 8
.LC2:
	.string	"Insert the %d values of your matrix: "
.LC3:
	.string	"\nDeterminant: %ld\n"
	.align 8
.LC4:
	.string	"Out Of Memory Error! The application will shut down"
	.align 8
.LC5:
	.string	"This matrix does not exist. The application will shut down"
	.align 8
.LC6:
	.string	"Sorry, this functionality isn't here yet. Try running the command witout parameters :)"
	.align 8
.LC7:
	.string	"Too many arguments, the program will shut down"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -36[rbp], 1
	jg	.L2
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -28[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -28[rbp]
	test	eax, eax
	jle	.L3
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -28[rbp]
	imul	eax, edx
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L4
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -24[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -24[rbp], 1
.L5:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L6
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	det
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L7
.L4:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L7
.L3:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	jmp	.L7
.L2:
	cmp	DWORD PTR -36[rbp], 2
	jne	.L8
	lea	rdi, .LC6[rip]
	call	puts@PLT
	jmp	.L7
.L8:
	cmp	DWORD PTR -36[rbp], 3
	jne	.L9
	lea	rdi, .LC6[rip]
	call	puts@PLT
	jmp	.L7
.L9:
	lea	rdi, .LC7[rip]
	call	puts@PLT
.L7:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC8:
	.string	"Out Of Memory error! Terminating"
	.text
	.globl	det
	.type	det, @function
det:
.LFB7:
	.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, 104
	.cfi_offset 3, -24
	mov	QWORD PTR -104[rbp], rdi
	mov	DWORD PTR -108[rbp], esi
	cmp	DWORD PTR -108[rbp], 1
	jne	.L13
	mov	rax, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	jmp	.L14
.L13:
	cmp	DWORD PTR -108[rbp], 2
	jne	.L15
	mov	rax, QWORD PTR -104[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, 12
	mov	eax, DWORD PTR [rax]
	imul	eax, edx
	mov	rdx, QWORD PTR -104[rbp]
	add	rdx, 4
	mov	ecx, DWORD PTR [rdx]
	mov	rdx, QWORD PTR -104[rbp]
	add	rdx, 8
	mov	edx, DWORD PTR [rdx]
	imul	edx, ecx
	sub	eax, edx
	cdqe
	jmp	.L14
.L15:
	cmp	DWORD PTR -108[rbp], 3
	jne	.L16
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	DWORD PTR -84[rbp], 0
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	eax, DWORD PTR -108[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -84[rbp]
	add	eax, 1
	cdq
	idiv	DWORD PTR -108[rbp]
	mov	eax, edx
	cdqe
	add	rax, rsi
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	imul	ecx, eax
	mov	eax, DWORD PTR -108[rbp]
	add	eax, eax
	movsx	rsi, eax
	mov	eax, DWORD PTR -84[rbp]
	add	eax, 2
	cdq
	idiv	DWORD PTR -108[rbp]
	mov	eax, edx
	cdqe
	add	rax, rsi
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	imul	eax, ecx
	cdqe
	add	QWORD PTR -48[rbp], rax
	mov	eax, DWORD PTR -108[rbp]
	add	eax, eax
	movsx	rdx, eax
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	eax, DWORD PTR -108[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -84[rbp]
	add	eax, 1
	cdq
	idiv	DWORD PTR -108[rbp]
	mov	eax, edx
	cdqe
	add	rax, rsi
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	imul	ecx, eax
	mov	eax, DWORD PTR -84[rbp]
	add	eax, 2
	cdq
	idiv	DWORD PTR -108[rbp]
	mov	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	imul	eax, ecx
	cdqe
	add	QWORD PTR -40[rbp], rax
	add	DWORD PTR -84[rbp], 1
.L17:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -108[rbp]
	jl	.L18
	mov	rax, QWORD PTR -48[rbp]
	sub	rax, QWORD PTR -40[rbp]
	jmp	.L14
.L16:
	mov	QWORD PTR -32[rbp], 0
	cmp	DWORD PTR -108[rbp], 4
	jne	.L19
	mov	DWORD PTR -80[rbp], 0
	jmp	.L20
.L30:
	mov	DWORD PTR -84[rbp], 0
	jmp	.L21
.L26:
	cmp	DWORD PTR -80[rbp], 0
	jne	.L22
	mov	eax, DWORD PTR -84[rbp]
	and	eax, 1
	test	eax, eax
	je	.L23
.L22:
	cmp	DWORD PTR -80[rbp], 0
	jle	.L24
	mov	eax, DWORD PTR -84[rbp]
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	cmp	eax, 1
	jne	.L24
.L23:
	mov	DWORD PTR -72[rbp], 1
	jmp	.L25
.L24:
	mov	DWORD PTR -72[rbp], -1
.L25:
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	eax, DWORD PTR -108[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -84[rbp]
	add	eax, 1
	cdq
	idiv	DWORD PTR -108[rbp]
	mov	eax, edx
	cdqe
	add	rax, rsi
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	imul	ecx, eax
	mov	eax, DWORD PTR -108[rbp]
	add	eax, eax
	movsx	rsi, eax
	mov	eax, DWORD PTR -84[rbp]
	add	eax, 2
	cdq
	idiv	DWORD PTR -108[rbp]
	mov	eax, edx
	cdqe
	add	rax, rsi
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	imul	ecx, eax
	mov	edx, DWORD PTR -108[rbp]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	movsx	rsi, eax
	mov	eax, DWORD PTR -84[rbp]
	add	eax, 3
	cdq
	idiv	DWORD PTR -108[rbp]
	mov	eax, edx
	cdqe
	add	rax, rsi
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	imul	eax, ecx
	imul	eax, DWORD PTR -72[rbp]
	cdqe
	add	QWORD PTR -32[rbp], rax
	mov	edx, DWORD PTR -108[rbp]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	movsx	rdx, eax
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	eax, DWORD PTR -108[rbp]
	add	eax, eax
	movsx	rsi, eax
	mov	eax, DWORD PTR -84[rbp]
	add	eax, 1
	cdq
	idiv	DWORD PTR -108[rbp]
	mov	eax, edx
	cdqe
	add	rax, rsi
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	imul	ecx, eax
	mov	eax, DWORD PTR -108[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -84[rbp]
	add	eax, 2
	cdq
	idiv	DWORD PTR -108[rbp]
	mov	eax, edx
	cdqe
	add	rax, rsi
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	imul	ecx, eax
	mov	eax, DWORD PTR -84[rbp]
	add	eax, 3
	cdq
	idiv	DWORD PTR -108[rbp]
	mov	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	imul	eax, ecx
	imul	eax, DWORD PTR -72[rbp]
	cdqe
	add	QWORD PTR -32[rbp], rax
	add	DWORD PTR -84[rbp], 1
.L21:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -108[rbp]
	jl	.L26
	cmp	DWORD PTR -80[rbp], 0
	jne	.L27
	mov	rax, QWORD PTR -104[rbp]
	mov	ecx, 2
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	swapColumns
	jmp	.L28
.L27:
	cmp	DWORD PTR -80[rbp], 1
	jne	.L29
	mov	rax, QWORD PTR -104[rbp]
	mov	ecx, 2
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	swapColumns
	mov	rax, QWORD PTR -104[rbp]
	mov	ecx, 3
	mov	edx, 2
	mov	esi, 4
	mov	rdi, rax
	call	swapColumns
	jmp	.L28
.L29:
	cmp	DWORD PTR -80[rbp], 2
	jne	.L28
	mov	rax, QWORD PTR -104[rbp]
	mov	ecx, 3
	mov	edx, 2
	mov	esi, 4
	mov	rdi, rax
	call	swapColumns
.L28:
	add	DWORD PTR -80[rbp], 1
.L20:
	cmp	DWORD PTR -80[rbp], 2
	jle	.L30
	mov	rax, QWORD PTR -32[rbp]
	jmp	.L14
.L19:
	mov	rax, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -64[rbp], eax
	mov	eax, DWORD PTR -108[rbp]
	sub	eax, 1
	mov	DWORD PTR -60[rbp], eax
	mov	eax, DWORD PTR -60[rbp]
	imul	eax, eax
	mov	DWORD PTR -56[rbp], eax
	mov	QWORD PTR -32[rbp], 0
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	je	.L31
	mov	DWORD PTR -52[rbp], 0
	mov	DWORD PTR -68[rbp], 0
	mov	DWORD PTR -88[rbp], 0
	jmp	.L32
.L41:
	mov	DWORD PTR -76[rbp], 0
	mov	DWORD PTR -84[rbp], 0
	jmp	.L33
.L37:
	mov	DWORD PTR -80[rbp], 0
	jmp	.L34
.L36:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	je	.L35
	mov	eax, DWORD PTR -80[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	je	.L35
	mov	eax, DWORD PTR -84[rbp]
	imul	eax, DWORD PTR -108[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -76[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -76[rbp], 1
.L35:
	add	DWORD PTR -80[rbp], 1
.L34:
	mov	eax, DWORD PTR -80[rbp]
	cmp	eax, DWORD PTR -108[rbp]
	jl	.L36
	add	DWORD PTR -84[rbp], 1
.L33:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -108[rbp]
	jl	.L37
	mov	edx, DWORD PTR -52[rbp]
	mov	eax, DWORD PTR -68[rbp]
	add	eax, edx
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	mov	DWORD PTR -72[rbp], eax
	cmp	DWORD PTR -72[rbp], 0
	je	.L38
	neg	DWORD PTR -72[rbp]
	jmp	.L39
.L38:
	mov	DWORD PTR -72[rbp], 1
.L39:
	cmp	DWORD PTR -64[rbp], 0
	je	.L40
	mov	eax, DWORD PTR -72[rbp]
	imul	eax, DWORD PTR -64[rbp]
	movsx	rbx, eax
	mov	edx, DWORD PTR -60[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	det
	imul	rax, rbx
	add	QWORD PTR -32[rbp], rax
.L40:
	add	DWORD PTR -68[rbp], 1
	mov	eax, DWORD PTR -52[rbp]
	imul	eax, DWORD PTR -108[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -64[rbp], eax
	add	DWORD PTR -88[rbp], 1
.L32:
	mov	eax, DWORD PTR -88[rbp]
	cmp	eax, DWORD PTR -108[rbp]
	jl	.L41
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -32[rbp]
	jmp	.L14
.L31:
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	rax, -1
.L14:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	det, .-det
	.globl	swapColumns
	.type	swapColumns, @function
swapColumns:
.LFB8:
	.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	DWORD PTR -36[rbp], ecx
	mov	DWORD PTR -8[rbp], 0
	jmp	.L43
.L44:
	mov	eax, DWORD PTR -8[rbp]
	imul	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	imul	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -8[rbp]
	imul	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR [rcx]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -8[rbp]
	imul	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -8[rbp], 1
.L43:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L44
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	swapColumns, .-swapColumns
	.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	"902548.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"How many columns does your matrix have? \000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"Insert the %d values of your matrix: \000"
	.align	2
.LC3:
	.ascii	"\012Determinant: %ld\012\000"
	.align	2
.LC4:
	.ascii	"Out Of Memory Error! The application will shut down"
	.ascii	"\000"
	.align	2
.LC5:
	.ascii	"This matrix does not exist. The application will sh"
	.ascii	"ut down\000"
	.align	2
.LC6:
	.ascii	"Sorry, this functionality isn't here yet. Try runni"
	.ascii	"ng the command witout parameters :)\000"
	.align	2
.LC7:
	.ascii	"Too many arguments, the program will shut down\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	bgt	.L2
	ldr	r0, .L12+4
	bl	printf
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L12+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	ble	.L3
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-24]
	mul	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L4
	ldr	r1, [fp, #-16]
	ldr	r0, .L12+12
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L5
.L6:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L12+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L5:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L6
	ldr	r3, [fp, #-24]
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	det
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L12+16
	bl	printf
	ldr	r0, [fp, #-12]
	bl	free
	b	.L7
.L4:
	ldr	r0, .L12+20
	bl	puts
	b	.L7
.L3:
	ldr	r0, .L12+24
	bl	puts
	b	.L7
.L2:
	ldr	r3, [fp, #-32]
	cmp	r3, #2
	bne	.L8
	ldr	r0, .L12+28
	bl	puts
	b	.L7
.L8:
	ldr	r3, [fp, #-32]
	cmp	r3, #3
	bne	.L9
	ldr	r0, .L12+28
	bl	puts
	b	.L7
.L9:
	ldr	r0, .L12+32
	bl	puts
.L7:
	mov	r3, #0
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.global	__aeabi_idivmod
	.section	.rodata
	.align	2
.LC9:
	.ascii	"Out Of Memory error! Terminating\000"
	.text
	.align	2
	.global	det
	.syntax unified
	.arm
	.fpu softvfp
	.type	det, %function
det:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #64
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	ldr	r3, [fp, #-76]
	cmp	r3, #1
	bne	.L15
	ldr	r3, [fp, #-72]
	ldr	r3, [r3]
	b	.L16
.L15:
	ldr	r3, [fp, #-76]
	cmp	r3, #2
	bne	.L17
	ldr	r3, [fp, #-72]
	ldr	r3, [r3]
	ldr	r2, [fp, #-72]
	add	r2, r2, #12
	ldr	r2, [r2]
	mul	r2, r3, r2
	ldr	r3, [fp, #-72]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, [fp, #-72]
	add	r1, r1, #8
	ldr	r1, [r1]
	mul	r3, r1, r3
	sub	r3, r2, r3
	b	.L16
.L17:
	ldr	r3, [fp, #-76]
	cmp	r3, #3
	bne	.L18
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L19
.L20:
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldr	r4, [r3]
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	ldr	r1, [fp, #-76]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, [fp, #-76]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldr	r3, [r3]
	mul	r4, r3, r4
	ldr	r3, [fp, #-76]
	lsl	r5, r3, #1
	ldr	r3, [fp, #-64]
	add	r3, r3, #2
	ldr	r1, [fp, #-76]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	add	r3, r5, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldr	r3, [r3]
	mul	r3, r4, r3
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-76]
	lsl	r2, r3, #1
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldr	r4, [r3]
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	ldr	r1, [fp, #-76]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, [fp, #-76]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldr	r3, [r3]
	mul	r4, r3, r4
	ldr	r3, [fp, #-64]
	add	r3, r3, #2
	ldr	r1, [fp, #-76]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldr	r3, [r3]
	mul	r3, r4, r3
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L19:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-76]
	cmp	r2, r3
	blt	.L20
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-36]
	sub	r3, r2, r3
	b	.L16
.L18:
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-76]
	cmp	r3, #4
	bne	.L21
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L22
.L32:
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L23
.L28:
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L24
	ldr	r3, [fp, #-64]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L25
.L24:
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	ble	.L26
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	cmp	r3, #1
	bne	.L26
.L25:
	mov	r3, #1
	str	r3, [fp, #-52]
	b	.L27
.L26:
	mvn	r3, #0
	str	r3, [fp, #-52]
.L27:
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldr	r4, [r3]
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	ldr	r1, [fp, #-76]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, [fp, #-76]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldr	r3, [r3]
	mul	r4, r3, r4
	ldr	r3, [fp, #-76]
	lsl	r5, r3, #1
	ldr	r3, [fp, #-64]
	add	r3, r3, #2
	ldr	r1, [fp, #-76]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	add	r3, r5, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldr	r3, [r3]
	mul	r4, r3, r4
	ldr	r2, [fp, #-76]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r5, r3, r2
	ldr	r3, [fp, #-64]
	add	r3, r3, #3
	ldr	r1, [fp, #-76]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	add	r3, r5, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldr	r3, [r3]
	mul	r3, r4, r3
	ldr	r2, [fp, #-52]
	mul	r3, r2, r3
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	str	r3, [fp, #-32]
	ldr	r2, [fp, #-76]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r2, r3, r2
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldr	r4, [r3]
	ldr	r3, [fp, #-76]
	lsl	r5, r3, #1
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	ldr	r1, [fp, #-76]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	add	r3, r5, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldr	r3, [r3]
	mul	r4, r3, r4
	ldr	r3, [fp, #-64]
	add	r3, r3, #2
	ldr	r1, [fp, #-76]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, [fp, #-76]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldr	r3, [r3]
	mul	r4, r3, r4
	ldr	r3, [fp, #-64]
	add	r3, r3, #3
	ldr	r1, [fp, #-76]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldr	r3, [r3]
	mul	r3, r4, r3
	ldr	r2, [fp, #-52]
	mul	r3, r2, r3
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L23:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-76]
	cmp	r2, r3
	blt	.L28
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L29
	mov	r3, #2
	mov	r2, #1
	mov	r1, #4
	ldr	r0, [fp, #-72]
	bl	swapColumns
	b	.L30
.L29:
	ldr	r3, [fp, #-60]
	cmp	r3, #1
	bne	.L31
	mov	r3, #2
	mov	r2, #1
	mov	r1, #4
	ldr	r0, [fp, #-72]
	bl	swapColumns
	mov	r3, #3
	mov	r2, #2
	mov	r1, #4
	ldr	r0, [fp, #-72]
	bl	swapColumns
	b	.L30
.L31:
	ldr	r3, [fp, #-60]
	cmp	r3, #2
	bne	.L30
	mov	r3, #3
	mov	r2, #2
	mov	r1, #4
	ldr	r0, [fp, #-72]
	bl	swapColumns
.L30:
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L22:
	ldr	r3, [fp, #-60]
	cmp	r3, #2
	ble	.L32
	ldr	r3, [fp, #-32]
	b	.L16
.L21:
	ldr	r3, [fp, #-72]
	ldr	r3, [r3]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-76]
	sub	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L33
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L34
.L43:
	mov	r3, #0
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L35
.L39:
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L36
.L38:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	beq	.L37
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	beq	.L37
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-76]
	mul	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-60]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r2, r2, r3
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-20]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L37:
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L36:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-76]
	cmp	r2, r3
	blt	.L38
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L35:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-76]
	cmp	r2, r3
	blt	.L39
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L40
	ldr	r3, [fp, #-52]
	rsb	r3, r3, #0
	str	r3, [fp, #-52]
	b	.L41
.L40:
	mov	r3, #1
	str	r3, [fp, #-52]
.L41:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L42
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-44]
	mul	r4, r2, r3
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-20]
	bl	det
	mov	r3, r0
	mul	r3, r4, r3
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	str	r3, [fp, #-32]
.L42:
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-76]
	mul	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L34:
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-76]
	cmp	r2, r3
	blt	.L43
	ldr	r0, [fp, #-20]
	bl	free
	ldr	r3, [fp, #-32]
	b	.L16
.L33:
	ldr	r0, .L44
	bl	puts
	mvn	r3, #0
.L16:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L45:
	.align	2
.L44:
	.word	.LC9
	.size	det, .-det
	.align	2
	.global	swapColumns
	.syntax unified
	.arm
	.fpu softvfp
	.type	swapColumns, %function
swapColumns:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L47
.L48:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-20]
	mul	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-20]
	mul	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	ldr	r1, [fp, #-20]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-24]
	add	r3, r1, r3
	lsl	r3, r3, #2
	ldr	r1, [fp, #-16]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-20]
	mul	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L47:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L48
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	swapColumns, .-swapColumns
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
