	.file	"65622.c"
	.intel_syntax noprefix
	.text
	.globl	a
	.data
	.align 8
	.type	a, @object
	.size	a, 8
a:
	.long	0
	.long	1072693248
	.globl	b
	.align 8
	.type	b, @object
	.size	b, 8
b:
	.long	0
	.long	1076101120
	.globl	number_of_trapezoids
	.bss
	.align 4
	.type	number_of_trapezoids, @object
	.size	number_of_trapezoids, 4
number_of_trapezoids:
	.zero	4
	.globl	number_of_threads
	.align 4
	.type	number_of_threads, @object
	.size	number_of_threads, 4
number_of_threads:
	.zero	4
	.globl	thread_return_array
	.align 8
	.type	thread_return_array, @object
	.size	thread_return_array, 8
thread_return_array:
	.zero	8
	.section	.rodata
.LC0:
	.string	"Thread %i local a: %f \n"
.LC1:
	.string	"Thread %i local b: %f \n"
.LC2:
	.string	"Trap\303\251zios na thread: %i \n"
.LC4:
	.string	"Total area: %f \n"
	.text
	.globl	calculate_area
	.type	calculate_area, @function
calculate_area:
.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, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR -44[rbp], eax
	movsd	xmm0, QWORD PTR b[rip]
	movsd	xmm1, QWORD PTR a[rip]
	subsd	xmm0, xmm1
	mov	eax, DWORD PTR number_of_trapezoids[rip]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	divsd	xmm0, xmm1
	movsd	QWORD PTR -24[rbp], xmm0
	mov	eax, DWORD PTR number_of_trapezoids[rip]
	mov	esi, DWORD PTR number_of_threads[rip]
	cdq
	idiv	esi
	mov	DWORD PTR -52[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	imul	eax, DWORD PTR -52[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movapd	xmm1, xmm0
	mulsd	xmm1, QWORD PTR -24[rbp]
	movsd	xmm0, QWORD PTR a[rip]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -16[rbp], xmm0
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -52[rbp]
	mulsd	xmm0, QWORD PTR -24[rbp]
	movsd	xmm1, QWORD PTR -16[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -40[rbp], xmm0
	mov	eax, DWORD PTR number_of_threads[rip]
	sub	eax, 1
	cmp	DWORD PTR -44[rbp], eax
	jne	.L2
	mov	eax, DWORD PTR number_of_trapezoids[rip]
	mov	ecx, DWORD PTR number_of_threads[rip]
	cdq
	idiv	ecx
	mov	eax, edx
	test	eax, eax
	je	.L2
	mov	eax, DWORD PTR number_of_trapezoids[rip]
	mov	ecx, DWORD PTR number_of_threads[rip]
	cdq
	idiv	ecx
	mov	eax, edx
	add	DWORD PTR -52[rbp], eax
	movsd	xmm0, QWORD PTR b[rip]
	movsd	QWORD PTR -40[rbp], xmm0
.L2:
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -44[rbp]
	movq	xmm0, rdx
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rdx, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -44[rbp]
	movq	xmm0, rdx
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -16[rbp]
	movq	xmm0, rax
	call	f
	movsd	QWORD PTR -80[rbp], xmm0
	mov	rax, QWORD PTR -40[rbp]
	movq	xmm0, rax
	call	f
	addsd	xmm0, QWORD PTR -80[rbp]
	movsd	xmm1, QWORD PTR .LC3[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -32[rbp], xmm0
	mov	DWORD PTR -48[rbp], 1
	jmp	.L3
.L4:
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -48[rbp]
	mulsd	xmm0, QWORD PTR -24[rbp]
	movsd	xmm1, QWORD PTR -16[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	mov	rax, QWORD PTR -8[rbp]
	movq	xmm0, rax
	call	f
	movsd	xmm1, QWORD PTR -32[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -32[rbp], xmm0
	add	DWORD PTR -48[rbp], 1
.L3:
	mov	eax, DWORD PTR -48[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L4
	movsd	xmm0, QWORD PTR -32[rbp]
	mulsd	xmm0, QWORD PTR -24[rbp]
	movsd	QWORD PTR -32[rbp], xmm0
	mov	rax, QWORD PTR -32[rbp]
	movq	xmm0, rax
	lea	rdi, .LC4[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rdx, QWORD PTR thread_return_array[rip]
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	movsd	xmm0, QWORD PTR -32[rbp]
	movsd	QWORD PTR [rax], xmm0
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE6:
	.size	calculate_area, .-calculate_area
	.section	.rodata
.LC5:
	.string	"N\303\272mero de threads: %s \n"
.LC6:
	.string	"N\303\272mero de trap\303\251zios: %s \n"
.LC7:
	.string	"Criando thread #%i \n"
	.align 8
.LC8:
	.string	"Erro na cria\303\247\303\243o da thread. Codigo de erro: %i \n"
	.align 8
.LC9:
	.string	"Esperando thread #%i finalizar \n"
.LC10:
	.string	"Retorno da thread %i: %f \n"
.LC11:
	.string	"Thread #%i finalizada \n"
.LC13:
	.string	"Area da funcao: %.2e \n"
	.text
	.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
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 88
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR -116[rbp], edi
	mov	QWORD PTR -128[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR number_of_threads[rip], eax
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR number_of_trapezoids[rip], eax
	mov	eax, DWORD PTR number_of_threads[rip]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -72[rbp], rdx
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	movsx	rdx, eax
	mov	r12, rdx
	mov	r13d, 0
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ecx, 16
	mov	edx, 0
	div	rcx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L6:
	cmp	rsp, rdx
	je	.L7
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L6
.L7:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L8
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L8:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -64[rbp], rax
	mov	eax, DWORD PTR number_of_threads[rip]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR thread_return_array[rip], rax
	mov	DWORD PTR -96[rbp], 0
	jmp	.L9
.L12:
	mov	eax, DWORD PTR -96[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	mov	rdx, rax
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rcx
	mov	rcx, rdx
	lea	rdx, calculate_area[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -92[rbp], eax
	cmp	DWORD PTR -92[rbp], 0
	je	.L10
	mov	eax, DWORD PTR -92[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L11
.L10:
	add	DWORD PTR -96[rbp], 1
.L9:
	mov	eax, DWORD PTR number_of_threads[rip]
	cmp	DWORD PTR -96[rbp], eax
	jl	.L12
	mov	DWORD PTR -100[rbp], 0
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -100[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -100[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	lea	rdx, -88[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rdx, QWORD PTR thread_return_array[rip]
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -100[rbp]
	movq	xmm0, rdx
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, DWORD PTR -100[rbp]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -100[rbp], 1
.L13:
	mov	eax, DWORD PTR number_of_threads[rip]
	cmp	DWORD PTR -100[rbp], eax
	jl	.L14
	mov	edi, 10
	call	putchar@PLT
	pxor	xmm0, xmm0
	movsd	QWORD PTR -80[rbp], xmm0
	mov	DWORD PTR -104[rbp], 0
	jmp	.L15
.L16:
	mov	rdx, QWORD PTR thread_return_array[rip]
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	movsd	xmm1, QWORD PTR -80[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -80[rbp], xmm0
	add	DWORD PTR -104[rbp], 1
.L15:
	mov	eax, DWORD PTR number_of_threads[rip]
	cmp	DWORD PTR -104[rbp], eax
	jl	.L16
	mov	rax, QWORD PTR -80[rbp]
	movq	xmm0, rax
	lea	rdi, .LC13[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rax, QWORD PTR thread_return_array[rip]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
.L11:
	mov	rsp, rbx
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.globl	f
	.type	f, @function
f:
.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, 16
	movsd	QWORD PTR -8[rbp], xmm0
	mov	rax, QWORD PTR -8[rbp]
	movq	xmm0, rax
	call	log@PLT
	movq	rax, xmm0
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	f, .-f
	.section	.rodata
	.align 8
.LC3:
	.long	0
	.long	1073741824
	.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	"65622.c"
	.text
	.global	a
	.data
	.align	3
	.type	a, %object
	.size	a, 8
a:
	.word	0
	.word	1072693248
	.global	b
	.align	3
	.type	b, %object
	.size	b, 8
b:
	.word	0
	.word	1076101120
	.comm	number_of_trapezoids,4,4
	.comm	number_of_threads,4,4
	.comm	thread_return_array,4,4
	.global	__aeabi_dsub
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_idiv
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.global	__aeabi_idivmod
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Thread %i local a: %f \012\000"
	.align	2
.LC1:
	.ascii	"Thread %i local b: %f \012\000"
	.align	2
.LC2:
	.ascii	"Trap\303\251zios na thread: %i \012\000"
	.align	2
.LC3:
	.ascii	"Total area: %f \012\000"
	.text
	.align	2
	.global	calculate_area
	.syntax unified
	.arm
	.fpu softvfp
	.type	calculate_area, %function
calculate_area:
	@ 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]
	ldr	r3, [fp, #-72]
	str	r3, [fp, #-56]
	ldr	r3, .L5
	ldmia	r3, {r0-r1}
	ldr	r3, .L5+4
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, .L5+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, .L5+8
	ldr	r3, [r3]
	ldr	r2, .L5+12
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-64]
	mul	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, .L5+4
	ldmia	r3, {r2-r3}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r0, [fp, #-64]
	bl	__aeabi_i2d
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	ldr	r3, .L5+12
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	bne	.L2
	ldr	r3, .L5+8
	ldr	r3, [r3]
	ldr	r2, .L5+12
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L5+8
	ldr	r3, [r3]
	ldr	r2, .L5+12
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, [fp, #-64]
	add	r3, r3, r2
	str	r3, [fp, #-64]
	ldr	r3, .L5
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
.L2:
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-56]
	ldr	r0, .L5+16
	bl	printf
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-56]
	ldr	r0, .L5+20
	bl	printf
	ldr	r1, [fp, #-64]
	ldr	r0, .L5+24
	bl	printf
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	f
	mov	r4, r0
	mov	r5, r1
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	f
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	mov	r3, #1073741824
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	mov	r3, #1
	str	r3, [fp, #-60]
	b	.L3
.L4:
	ldr	r0, [fp, #-60]
	bl	__aeabi_i2d
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	f
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L3:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-64]
	cmp	r2, r3
	blt	.L4
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	ldr	r0, .L5+28
	bl	printf
	ldr	r3, .L5+32
	ldr	r2, [r3]
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #3
	add	r1, r2, r3
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	mov	r0, #0
	bl	pthread_exit
.L6:
	.align	2
.L5:
	.word	b
	.word	a
	.word	number_of_trapezoids
	.word	number_of_threads
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	thread_return_array
	.size	calculate_area, .-calculate_area
	.section	.rodata
	.align	2
.LC4:
	.ascii	"N\303\272mero de threads: %s \012\000"
	.align	2
.LC5:
	.ascii	"N\303\272mero de trap\303\251zios: %s \012\000"
	.align	2
.LC6:
	.ascii	"Criando thread #%i \012\000"
	.align	2
.LC7:
	.ascii	"Erro na cria\303\247\303\243o da thread. Codigo de "
	.ascii	"erro: %i \012\000"
	.align	2
.LC8:
	.ascii	"Esperando thread #%i finalizar \012\000"
	.align	2
.LC9:
	.ascii	"Retorno da thread %i: %f \012\000"
	.align	2
.LC10:
	.ascii	"Thread #%i finalizada \012\000"
	.align	2
.LC11:
	.ascii	"Area da funcao: %.2e \012\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #60
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	ldr	r3, [fp, #-68]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L18+4
	bl	printf
	ldr	r3, [fp, #-68]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L18+8
	bl	printf
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-68]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L18+12
	str	r3, [r2]
	ldr	r3, [fp, #-68]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L18+16
	str	r3, [r2]
	ldr	r3, .L18+12
	ldr	ip, [r3]
	sub	r3, ip, #1
	str	r3, [fp, #-40]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-36]
	ldr	r3, .L18+12
	ldr	r3, [r3]
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L18+20
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L8
.L11:
	ldr	r1, [fp, #-44]
	ldr	r0, .L18+24
	bl	printf
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r0, r2, r3
	ldr	r3, [fp, #-44]
	ldr	r2, .L18+28
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L9
	ldr	r1, [fp, #-32]
	ldr	r0, .L18+32
	bl	printf
	mov	r3, #1
	b	.L10
.L9:
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L8:
	ldr	r3, .L18+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	blt	.L11
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L12
.L13:
	ldr	r1, [fp, #-48]
	ldr	r0, .L18+36
	bl	printf
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-48]
	ldr	r3, [r3, r2, lsl #2]
	sub	r2, fp, #56
	mov	r1, r2
	mov	r0, r3
	bl	pthread_join
	ldr	r3, .L18+20
	ldr	r2, [r3]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-48]
	ldr	r0, .L18+40
	bl	printf
	ldr	r1, [fp, #-48]
	ldr	r0, .L18+44
	bl	printf
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L12:
	ldr	r3, .L18+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	blt	.L13
	mov	r0, #10
	bl	putchar
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L14
.L15:
	ldr	r3, .L18+20
	ldr	r2, [r3]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L14:
	ldr	r3, .L18+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	blt	.L15
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	ldr	r0, .L18+48
	bl	printf
	ldr	r3, .L18+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	mov	r3, #0
.L10:
	mov	sp, r4
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC12
	.word	.LC4
	.word	.LC5
	.word	number_of_threads
	.word	number_of_trapezoids
	.word	thread_return_array
	.word	.LC6
	.word	calculate_area
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.align	2
	.global	f
	.syntax unified
	.arm
	.fpu softvfp
	.type	f, %function
f:
	@ 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, #-12]
	str	r1, [fp, #-8]
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	log
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	f, .-f
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
