	.file	"434116.c"
	.intel_syntax noprefix
	.text
	.globl	multiply_outer
	.type	multiply_outer, @function
multiply_outer:
.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	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	QWORD PTR -32[rbp], rax
	jmp	.L2
.L7:
	mov	QWORD PTR -24[rbp], 0
	jmp	.L3
.L6:
	mov	QWORD PTR -16[rbp], 0
	jmp	.L4
.L5:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -32[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -16[rbp]
	sal	rax, 3
	add	rax, rsi
	mov	rsi, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	sal	rax, 2
	add	rax, rsi
	mov	eax, DWORD PTR [rax]
	imul	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -32[rbp]
	sal	rax, 3
	add	rax, rsi
	mov	rsi, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	sal	rax, 2
	add	rax, rsi
	add	edx, ecx
	mov	DWORD PTR [rax], edx
	add	QWORD PTR -16[rbp], 1
.L4:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	cmp	QWORD PTR -16[rbp], rax
	jb	.L5
	add	QWORD PTR -24[rbp], 1
.L3:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	cmp	QWORD PTR -24[rbp], rax
	jb	.L6
	add	QWORD PTR -32[rbp], 1
.L2:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 40[rax]
	cmp	QWORD PTR -32[rbp], rax
	jb	.L7
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE6:
	.size	multiply_outer, .-multiply_outer
	.globl	free_matrix
	.type	free_matrix, @function
free_matrix:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -8[rbp], 0
	jmp	.L9
.L10:
	mov	rax, QWORD PTR -8[rbp]
	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
	add	QWORD PTR -8[rbp], 1
.L9:
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -32[rbp]
	jb	.L10
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	free_matrix, .-free_matrix
	.globl	alloc_matrix
	.type	alloc_matrix, @function
alloc_matrix:
.LFB8:
	.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, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 8
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L12
	mov	eax, 0
	jmp	.L13
.L12:
	mov	QWORD PTR -32[rbp], 0
	jmp	.L14
.L16:
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	lea	rbx, [rdx+rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	esi, 4
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L15
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	free_matrix
.L15:
	add	QWORD PTR -32[rbp], 1
.L14:
	mov	rax, QWORD PTR -32[rbp]
	cmp	rax, QWORD PTR -40[rbp]
	jb	.L16
	mov	rax, QWORD PTR -24[rbp]
.L13:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	alloc_matrix, .-alloc_matrix
	.globl	init_values
	.type	init_values, @function
init_values:
.LFB9:
	.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	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	QWORD PTR -16[rbp], 0
	jmp	.L18
.L23:
	mov	QWORD PTR -8[rbp], 0
	jmp	.L19
.L22:
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -8[rbp]
	ja	.L20
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 1
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 1
	jmp	.L21
.L20:
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 0
.L21:
	add	QWORD PTR -8[rbp], 1
.L19:
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -48[rbp]
	jb	.L22
	add	QWORD PTR -16[rbp], 1
.L18:
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -48[rbp]
	jb	.L23
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	init_values, .-init_values
	.section	.rodata
.LC0:
	.string	"%i\t"
	.text
	.globl	print
	.type	print, @function
print:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -16[rbp], 0
	jmp	.L25
.L28:
	mov	QWORD PTR -8[rbp], 0
	jmp	.L26
.L27:
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	QWORD PTR -8[rbp], 1
.L26:
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -32[rbp]
	jb	.L27
	mov	edi, 10
	call	putchar@PLT
	add	QWORD PTR -16[rbp], 1
.L25:
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -32[rbp]
	jb	.L28
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	print, .-print
	.section	.rodata
.LC1:
	.string	"Usage: ./multiply_outer N P"
	.align 8
.LC2:
	.string	"An error occurred while creating thread %u."
	.align 8
.LC3:
	.string	"An error occurred while waiting for thread %u"
.LC4:
	.string	"to finish.\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 152
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR -148[rbp], edi
	mov	QWORD PTR -160[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	cmp	DWORD PTR -148[rbp], 3
	je	.L30
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L31
.L30:
	mov	rax, QWORD PTR -160[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -128[rbp], eax
	mov	rax, QWORD PTR -160[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -124[rbp], eax
	mov	edx, DWORD PTR -128[rbp]
	mov	eax, DWORD PTR -128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	alloc_matrix
	mov	QWORD PTR -112[rbp], rax
	cmp	QWORD PTR -112[rbp], 0
	jne	.L32
	mov	eax, 2
	jmp	.L31
.L32:
	mov	edx, DWORD PTR -128[rbp]
	mov	eax, DWORD PTR -128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	alloc_matrix
	mov	QWORD PTR -104[rbp], rax
	cmp	QWORD PTR -104[rbp], 0
	jne	.L33
	mov	edx, DWORD PTR -128[rbp]
	mov	rax, QWORD PTR -112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	free_matrix
	mov	eax, 3
	jmp	.L31
.L33:
	mov	edx, DWORD PTR -128[rbp]
	mov	eax, DWORD PTR -128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	alloc_matrix
	mov	QWORD PTR -96[rbp], rax
	cmp	QWORD PTR -96[rbp], 0
	jne	.L34
	mov	edx, DWORD PTR -128[rbp]
	mov	rax, QWORD PTR -112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	free_matrix
	mov	edx, DWORD PTR -128[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	free_matrix
	mov	eax, 4
	jmp	.L31
.L34:
	mov	ecx, DWORD PTR -128[rbp]
	mov	rdx, QWORD PTR -96[rbp]
	mov	rsi, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	init_values
	mov	eax, DWORD PTR -124[rbp]
	mov	edx, eax
	sub	rdx, 1
	mov	QWORD PTR -88[rbp], rdx
	mov	edx, eax
	mov	QWORD PTR -176[rbp], rdx
	mov	QWORD PTR -168[rbp], 0
	mov	edx, eax
	mov	QWORD PTR -192[rbp], rdx
	mov	QWORD PTR -184[rbp], 0
	mov	eax, eax
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L35:
	cmp	rsp, rdx
	je	.L36
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L35
.L36:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L37
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L37:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -80[rbp], rax
	mov	ecx, DWORD PTR -124[rbp]
	mov	eax, ecx
	sub	rax, 1
	mov	QWORD PTR -72[rbp], rax
	mov	eax, ecx
	mov	r14, rax
	mov	r15d, 0
	imul	rdx, r15, 384
	imul	rax, r14, 0
	lea	rsi, [rdx+rax]
	mov	eax, 384
	mul	r14
	add	rsi, rdx
	mov	rdx, rsi
	mov	edx, ecx
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	mov	eax, ecx
	mov	r12, rax
	mov	r13d, 0
	imul	rdx, r13, 384
	imul	rax, r12, 0
	lea	rsi, [rdx+rax]
	mov	eax, 384
	mul	r12
	add	rsi, rdx
	mov	rdx, rsi
	mov	edx, ecx
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L38:
	cmp	rsp, rdx
	je	.L39
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L38
.L39:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L40
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L40:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -64[rbp], rax
	mov	DWORD PTR -132[rbp], 0
	jmp	.L41
.L43:
	mov	rcx, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -132[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	lea	rdx, [rcx+rax]
	mov	rax, QWORD PTR -112[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rcx, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -132[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	add	rax, rcx
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -104[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rcx, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -132[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	add	rax, rcx
	lea	rdx, 16[rax]
	mov	rax, QWORD PTR -96[rbp]
	mov	QWORD PTR [rdx], rax
	mov	edx, DWORD PTR -128[rbp]
	mov	rsi, QWORD PTR -64[rbp]
	mov	ecx, DWORD PTR -132[rbp]
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 4
	add	rax, rsi
	add	rax, 24
	mov	QWORD PTR [rax], rdx
	mov	eax, DWORD PTR -132[rbp]
	imul	eax, DWORD PTR -128[rbp]
	mov	edx, 0
	div	DWORD PTR -124[rbp]
	mov	ecx, eax
	mov	rsi, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -132[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	add	rax, rsi
	add	rax, 32
	mov	QWORD PTR [rax], rcx
	mov	eax, DWORD PTR -132[rbp]
	add	eax, 1
	imul	eax, DWORD PTR -128[rbp]
	mov	edx, 0
	div	DWORD PTR -124[rbp]
	mov	ecx, eax
	mov	rsi, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -132[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	add	rax, rsi
	add	rax, 40
	mov	QWORD PTR [rax], rcx
	mov	edx, DWORD PTR -132[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	mov	rdx, QWORD PTR -64[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -132[rbp]
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rcx
	mov	rcx, rdx
	lea	rdx, multiply_outer[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -116[rbp], eax
	cmp	DWORD PTR -116[rbp], 0
	je	.L42
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -132[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, -1
	call	exit@PLT
.L42:
	add	DWORD PTR -132[rbp], 1
.L41:
	mov	eax, DWORD PTR -132[rbp]
	cmp	eax, DWORD PTR -124[rbp]
	jb	.L43
	mov	DWORD PTR -132[rbp], 0
	jmp	.L44
.L46:
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -132[rbp]
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	DWORD PTR -120[rbp], eax
	cmp	DWORD PTR -120[rbp], 0
	je	.L45
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -132[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 11
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	edi, -1
	call	exit@PLT
.L45:
	add	DWORD PTR -132[rbp], 1
.L44:
	mov	eax, DWORD PTR -132[rbp]
	cmp	eax, DWORD PTR -124[rbp]
	jb	.L46
	mov	edx, DWORD PTR -128[rbp]
	mov	rax, QWORD PTR -96[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	print
	mov	eax, 0
.L31:
	mov	rsp, rbx
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L48
	call	__stack_chk_fail@PLT
.L48:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"434116.c"
	.text
	.align	2
	.global	multiply_outer
	.syntax unified
	.arm
	.fpu softvfp
	.type	multiply_outer, %function
multiply_outer:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #16]
	str	r3, [fp, #-20]
	b	.L2
.L7:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L3
.L6:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L4
.L5:
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r0, [r2, #4]
	ldr	r2, [fp, #-12]
	lsl	r2, r2, #2
	add	r2, r0, r2
	ldr	r0, [r2]
	ldr	r2, [fp, #-16]
	lsl	r2, r2, #2
	add	r2, r0, r2
	ldr	r2, [r2]
	mul	r2, r3, r2
	ldr	r3, [fp, #-8]
	ldr	r0, [r3, #8]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r0, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r2, r1, r2
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L4:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bcc	.L5
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L3:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bcc	.L6
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L2:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #20]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bcc	.L7
	mov	r0, #0
	bl	pthread_exit
	.size	multiply_outer, .-multiply_outer
	.align	2
	.global	free_matrix
	.syntax unified
	.arm
	.fpu softvfp
	.type	free_matrix, %function
free_matrix:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L9
.L10:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L9:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bcc	.L10
	ldr	r0, [fp, #-16]
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	free_matrix, .-free_matrix
	.align	2
	.global	alloc_matrix
	.syntax unified
	.arm
	.fpu softvfp
	.type	alloc_matrix, %function
alloc_matrix:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r1, #4
	ldr	r0, [fp, #-24]
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L12
	mov	r3, #0
	b	.L13
.L12:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L14
.L16:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r4, r2, r3
	mov	r1, #4
	ldr	r0, [fp, #-28]
	bl	calloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L15
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	free_matrix
.L15:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L14:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bcc	.L16
	ldr	r3, [fp, #-16]
.L13:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	alloc_matrix, .-alloc_matrix
	.align	2
	.global	init_values
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_values, %function
init_values:
	@ 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	.L18
.L23:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L19
.L22:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bhi	.L20
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3]
	b	.L21
.L20:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
.L21:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L19:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bcc	.L22
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L18:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bcc	.L23
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	init_values, .-init_values
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%i\011\000"
	.text
	.align	2
	.global	print
	.syntax unified
	.arm
	.fpu softvfp
	.type	print, %function
print:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L25
.L28:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L26
.L27:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L29
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L26:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bcc	.L27
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L25:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bcc	.L28
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC0
	.size	print, .-print
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Usage: ./multiply_outer N P\000"
	.global	__aeabi_uidiv
	.align	2
.LC2:
	.ascii	"An error occurred while creating thread %u.\000"
	.align	2
.LC3:
	.ascii	"An error occurred while waiting for thread %u\000"
	.align	2
.LC4:
	.ascii	"to finish.\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #68
	str	r0, [fp, #-88]
	str	r1, [fp, #-92]
	ldr	r3, .L45
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r3, sp
	mov	r8, r3
	ldr	r3, [fp, #-88]
	cmp	r3, #3
	beq	.L32
	ldr	r0, .L45+4
	bl	puts
	mov	r3, #1
	b	.L33
.L32:
	ldr	r3, [fp, #-92]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-92]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-72]
	ldr	r1, [fp, #-76]
	ldr	r0, [fp, #-76]
	bl	alloc_matrix
	str	r0, [fp, #-68]
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bne	.L34
	mov	r3, #2
	b	.L33
.L34:
	ldr	r1, [fp, #-76]
	ldr	r0, [fp, #-76]
	bl	alloc_matrix
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bne	.L35
	ldr	r1, [fp, #-76]
	ldr	r0, [fp, #-68]
	bl	free_matrix
	mov	r3, #3
	b	.L33
.L35:
	ldr	r1, [fp, #-76]
	ldr	r0, [fp, #-76]
	bl	alloc_matrix
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L36
	ldr	r1, [fp, #-76]
	ldr	r0, [fp, #-68]
	bl	free_matrix
	ldr	r1, [fp, #-76]
	ldr	r0, [fp, #-64]
	bl	free_matrix
	mov	r3, #4
	b	.L33
.L36:
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-60]
	ldr	r1, [fp, #-64]
	ldr	r0, [fp, #-68]
	bl	init_values
	ldr	ip, [fp, #-72]
	mov	r3, ip
	sub	r3, r3, #1
	str	r3, [fp, #-56]
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	lsl	r3, ip, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-52]
	ldr	ip, [fp, #-72]
	mov	r3, ip
	sub	r3, r3, #1
	str	r3, [fp, #-48]
	mov	r0, ip
	mov	r1, #0
	mov	r2, r0
	mov	r3, r1
	adds	r6, r2, r2
	adc	r7, r3, r3
	mov	r2, r6
	mov	r3, r7
	adds	r2, r2, r0
	adc	r3, r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #6
	orr	r1, r1, r2, lsr #26
	lsl	r0, r2, #6
	mov	r2, r0
	mov	r3, r1
	mov	r3, ip
	lsl	r3, r3, #1
	add	r3, r3, ip
	lsl	r3, r3, #3
	mov	r0, ip
	mov	r1, #0
	mov	r2, r0
	mov	r3, r1
	adds	r4, r2, r2
	adc	r5, r3, r3
	mov	r2, r4
	mov	r3, r5
	adds	r2, r2, r0
	adc	r3, r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #6
	orr	r1, r1, r2, lsr #26
	lsl	r0, r2, #6
	mov	r2, r0
	mov	r3, r1
	mov	r3, ip
	lsl	r3, r3, #1
	add	r3, r3, ip
	lsl	r3, r3, #3
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L37
.L39:
	ldr	r1, [fp, #-44]
	ldr	r2, [fp, #-80]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	r2, [fp, #-68]
	str	r2, [r3]
	ldr	r1, [fp, #-44]
	ldr	r2, [fp, #-80]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r2, [fp, #-64]
	str	r2, [r3]
	ldr	r1, [fp, #-44]
	ldr	r2, [fp, #-80]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r2, [fp, #-60]
	str	r2, [r3]
	ldr	r1, [fp, #-44]
	ldr	r2, [fp, #-80]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #12
	ldr	r2, [fp, #-76]
	str	r2, [r3]
	ldr	r3, [fp, #-80]
	ldr	r2, [fp, #-76]
	mul	r3, r2, r3
	ldr	r1, [fp, #-72]
	mov	r0, r3
	bl	__aeabi_uidiv
	mov	r3, r0
	mov	r0, r3
	ldr	r1, [fp, #-44]
	ldr	r2, [fp, #-80]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #16
	str	r0, [r3]
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	ldr	r2, [fp, #-76]
	mul	r3, r2, r3
	ldr	r1, [fp, #-72]
	mov	r0, r3
	bl	__aeabi_uidiv
	mov	r3, r0
	mov	r0, r3
	ldr	r1, [fp, #-44]
	ldr	r2, [fp, #-80]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #20
	str	r0, [r3]
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r0, r2, r3
	ldr	r2, [fp, #-80]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r2, .L45+8
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L38
	ldr	r3, .L45+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-80]
	ldr	r1, .L45+16
	mov	r0, r3
	bl	fprintf
	mvn	r0, #0
	bl	exit
.L38:
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L37:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	bcc	.L39
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L40
.L42:
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-80]
	ldr	r3, [r3, r2, lsl #2]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L41
	ldr	r3, .L45+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-80]
	ldr	r1, .L45+20
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L45+12
	ldr	r3, [r3]
	mov	r2, #11
	mov	r1, #1
	ldr	r0, .L45+24
	bl	fwrite
	mvn	r0, #0
	bl	exit
.L41:
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L40:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	bcc	.L42
	ldr	r1, [fp, #-76]
	ldr	r0, [fp, #-60]
	bl	print
	mov	r3, #0
.L33:
	mov	sp, r8
	ldr	r2, .L45
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L44
	bl	__stack_chk_fail
.L44:
	mov	r0, r3
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L46:
	.align	2
.L45:
	.word	.LC5
	.word	.LC1
	.word	multiply_outer
	.word	stderr
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
