	.file	"311423.c"
	.intel_syntax noprefix
	.text
	.globl	res
	.bss
	.align 32
	.type	res, @object
	.size	res, 4000000
res:
	.zero	4000000
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 4000000
a:
	.zero	4000000
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 4000000
b:
	.zero	4000000
	.globl	v1
	.align 4
	.type	v1, @object
	.size	v1, 4
v1:
	.zero	4
	.globl	v2
	.align 4
	.type	v2, @object
	.size	v2, 4
v2:
	.zero	4
	.text
	.globl	calcula_multiplicacao
	.type	calcula_multiplicacao, @function
calcula_multiplicacao:
.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, 16
	mov	QWORD PTR -8[rbp], 1
	mov	eax, DWORD PTR v1[rip]
	mov	DWORD PTR -16[rbp], eax
	jmp	.L2
.L5:
	mov	QWORD PTR -8[rbp], 1
	mov	DWORD PTR -12[rbp], 0
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	imul	rax, rax, 1000
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, a[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -12[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	imul	rax, rax, 1000
	add	rax, rcx
	lea	rcx, 0[0+rax*4]
	lea	rax, b[rip]
	mov	eax, DWORD PTR [rcx+rax]
	imul	eax, edx
	cdqe
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	imul	rax, rax, 1000
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, res[rip]
	mov	DWORD PTR [rdx+rax], ecx
	add	DWORD PTR -12[rbp], 1
.L3:
	cmp	DWORD PTR -12[rbp], 999
	jle	.L4
	add	DWORD PTR -16[rbp], 1
.L2:
	mov	eax, DWORD PTR v2[rip]
	cmp	DWORD PTR -16[rbp], eax
	jle	.L5
	mov	eax, DWORD PTR v1[rip]
	add	eax, 250
	mov	DWORD PTR v1[rip], eax
	mov	eax, DWORD PTR v2[rip]
	add	eax, 250
	mov	DWORD PTR v2[rip], eax
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE6:
	.size	calcula_multiplicacao, .-calcula_multiplicacao
	.globl	main
	.type	main, @function
main:
.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, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 4
	mov	esi, 0
	lea	rdi, a[rip]
	call	memset@PLT
	mov	edx, 4
	mov	esi, 0
	lea	rdi, b[rip]
	call	memset@PLT
	mov	edx, 4
	mov	esi, 0
	lea	rdi, res[rip]
	call	memset@PLT
	lea	rax, -56[rbp]
	mov	rdi, rax
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	DWORD PTR -64[rbp], 0
	jmp	.L7
.L10:
	mov	DWORD PTR -60[rbp], 0
	jmp	.L8
.L9:
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, -2004318071
	shr	rdx, 32
	add	edx, eax
	sar	edx, 3
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	mov	ecx, edx
	sal	ecx, 4
	sub	ecx, edx
	sub	eax, ecx
	mov	edx, eax
	mov	eax, DWORD PTR -64[rbp]
	lea	ecx, 1[rdx]
	mov	edx, DWORD PTR -60[rbp]
	movsx	rdx, edx
	cdqe
	imul	rax, rax, 1000
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, a[rip]
	mov	DWORD PTR [rdx+rax], ecx
	add	DWORD PTR -60[rbp], 1
.L8:
	cmp	DWORD PTR -60[rbp], 999
	jle	.L9
	mov	eax, DWORD PTR -64[rbp]
	add	eax, 1
	mov	DWORD PTR -64[rbp], eax
.L7:
	mov	eax, DWORD PTR -64[rbp]
	cmp	eax, 999
	jle	.L10
	mov	DWORD PTR -64[rbp], 0
	jmp	.L11
.L14:
	mov	DWORD PTR -60[rbp], 0
	jmp	.L12
.L13:
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, -2004318071
	shr	rdx, 32
	add	edx, eax
	sar	edx, 3
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	mov	ecx, edx
	sal	ecx, 4
	sub	ecx, edx
	sub	eax, ecx
	mov	edx, eax
	mov	eax, DWORD PTR -64[rbp]
	lea	ecx, 1[rdx]
	mov	edx, DWORD PTR -60[rbp]
	movsx	rdx, edx
	cdqe
	imul	rax, rax, 1000
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, b[rip]
	mov	DWORD PTR [rdx+rax], ecx
	add	DWORD PTR -60[rbp], 1
.L12:
	cmp	DWORD PTR -60[rbp], 999
	jle	.L13
	mov	eax, DWORD PTR -64[rbp]
	add	eax, 1
	mov	DWORD PTR -64[rbp], eax
.L11:
	mov	eax, DWORD PTR -64[rbp]
	cmp	eax, 999
	jle	.L14
	mov	DWORD PTR v1[rip], 0
	mov	DWORD PTR v2[rip], 249
	lea	rdx, -64[rbp]
	lea	rax, -48[rbp]
	mov	rcx, rdx
	lea	rdx, calcula_multiplicacao[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rax, -64[rbp]
	lea	rdx, -48[rbp]
	lea	rdi, 8[rdx]
	mov	rcx, rax
	lea	rdx, calcula_multiplicacao[rip]
	mov	esi, 0
	call	pthread_create@PLT
	lea	rax, -64[rbp]
	lea	rdx, -48[rbp]
	lea	rdi, 16[rdx]
	mov	rcx, rax
	lea	rdx, calcula_multiplicacao[rip]
	mov	esi, 0
	call	pthread_create@PLT
	lea	rax, -64[rbp]
	lea	rdx, -48[rbp]
	lea	rdi, 24[rdx]
	mov	rcx, rax
	lea	rdx, calcula_multiplicacao[rip]
	mov	esi, 0
	call	pthread_create@PLT
	lea	rax, -48[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	lea	rax, -48[rbp]
	add	rax, 8
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	lea	rax, -48[rbp]
	add	rax, 16
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	lea	rax, -48[rbp]
	add	rax, 24
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"311423.c"
	.text
	.comm	res,4000000,4
	.comm	a,4000000,4
	.comm	b,4000000,4
	.comm	v1,4,4
	.comm	v2,4,4
	.align	2
	.global	calcula_multiplicacao
	.syntax unified
	.arm
	.fpu softvfp
	.type	calcula_multiplicacao, %function
calcula_multiplicacao:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, #1
	str	r3, [fp, #-8]
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	b	.L2
.L5:
	mov	r3, #1
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L3
.L4:
	ldr	r1, .L6+4
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	ldr	r2, [fp, #-12]
	add	r3, r3, r2
	ldr	r1, [r1, r3, lsl #2]
	ldr	r0, .L6+8
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	ldr	r2, [fp, #-12]
	add	r3, r3, r2
	ldr	r3, [r0, r3, lsl #2]
	mul	r3, r1, r3
	str	r3, [fp, #-8]
	ldr	r1, .L6+12
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	ldr	r2, [fp, #-12]
	add	r3, r3, r2
	ldr	r2, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L3:
	ldr	r3, [fp, #-12]
	cmp	r3, #1000
	blt	.L4
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L2:
	ldr	r3, .L6+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	ble	.L5
	ldr	r3, .L6
	ldr	r3, [r3]
	add	r3, r3, #250
	ldr	r2, .L6
	str	r3, [r2]
	ldr	r3, .L6+16
	ldr	r3, [r3]
	add	r3, r3, #250
	ldr	r2, .L6+16
	str	r3, [r2]
	mov	r0, #0
	bl	pthread_exit
.L7:
	.align	2
.L6:
	.word	v1
	.word	a
	.word	b
	.word	res
	.word	v2
	.size	calcula_multiplicacao, .-calcula_multiplicacao
	.section	.rodata
	.align	2
.LC0:
	.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
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #4
	mov	r1, #0
	ldr	r0, .L19+4
	bl	memset
	mov	r2, #4
	mov	r1, #0
	ldr	r0, .L19+8
	bl	memset
	mov	r2, #4
	mov	r1, #0
	ldr	r0, .L19+12
	bl	memset
	sub	r3, fp, #36
	mov	r0, r3
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L9
.L12:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L10
.L11:
	bl	rand
	mov	r2, r0
	ldr	r3, .L19+16
	smull	r1, r3, r2, r3
	add	r3, r3, r2
	asr	r1, r3, #3
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #4
	sub	r3, r3, r1
	sub	r1, r2, r3
	ldr	r2, [fp, #-32]
	add	r1, r1, #1
	ldr	r0, .L19+4
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	ldr	r2, [fp, #-28]
	add	r3, r3, r2
	str	r1, [r0, r3, lsl #2]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L10:
	ldr	r3, [fp, #-28]
	cmp	r3, #1000
	blt	.L11
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L9:
	ldr	r3, [fp, #-32]
	cmp	r3, #1000
	blt	.L12
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L13
.L16:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L14
.L15:
	bl	rand
	mov	r2, r0
	ldr	r3, .L19+16
	smull	r1, r3, r2, r3
	add	r3, r3, r2
	asr	r1, r3, #3
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #4
	sub	r3, r3, r1
	sub	r1, r2, r3
	ldr	r2, [fp, #-32]
	add	r1, r1, #1
	ldr	r0, .L19+8
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	ldr	r2, [fp, #-28]
	add	r3, r3, r2
	str	r1, [r0, r3, lsl #2]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L14:
	ldr	r3, [fp, #-28]
	cmp	r3, #1000
	blt	.L15
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L13:
	ldr	r3, [fp, #-32]
	cmp	r3, #1000
	blt	.L16
	ldr	r3, .L19+20
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L19+24
	mov	r2, #249
	str	r2, [r3]
	sub	r3, fp, #32
	sub	r0, fp, #24
	ldr	r2, .L19+28
	mov	r1, #0
	bl	pthread_create
	sub	r2, fp, #32
	sub	r3, fp, #24
	add	r0, r3, #4
	mov	r3, r2
	ldr	r2, .L19+28
	mov	r1, #0
	bl	pthread_create
	sub	r2, fp, #32
	sub	r3, fp, #24
	add	r0, r3, #8
	mov	r3, r2
	ldr	r2, .L19+28
	mov	r1, #0
	bl	pthread_create
	sub	r2, fp, #32
	sub	r3, fp, #24
	add	r0, r3, #12
	mov	r3, r2
	ldr	r2, .L19+28
	mov	r1, #0
	bl	pthread_create
	sub	r3, fp, #24
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	sub	r3, fp, #24
	add	r3, r3, #4
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	sub	r3, fp, #24
	add	r3, r3, #8
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	sub	r3, fp, #24
	add	r3, r3, #12
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	mov	r3, #0
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC0
	.word	a
	.word	b
	.word	res
	.word	-2004318071
	.word	v1
	.word	v2
	.word	calcula_multiplicacao
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
