	.file	"950384.c"
	.intel_syntax noprefix
	.text
	.globl	exponent
	.bss
	.align 4
	.type	exponent, @object
	.size	exponent, 4
exponent:
	.zero	4
	.globl	num_threads
	.align 4
	.type	num_threads, @object
	.size	num_threads, 4
num_threads:
	.zero	4
	.globl	n
	.align 8
	.type	n, @object
	.size	n, 8
n:
	.zero	8
	.globl	tosses_per_thread
	.align 8
	.type	tosses_per_thread, @object
	.size	tosses_per_thread, 8
tosses_per_thread:
	.zero	8
	.globl	hits
	.align 8
	.type	hits, @object
	.size	hits, 8
hits:
	.zero	8
	.globl	hits_mutex
	.align 32
	.type	hits_mutex, @object
	.size	hits_mutex, 40
hits_mutex:
	.zero	40
	.text
	.globl	get_cpu_time
	.type	get_cpu_time, @function
get_cpu_time:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	call	clock@PLT
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm1, QWORD PTR .LC0[rip]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get_cpu_time, .-get_cpu_time
	.globl	quick_pow10
	.type	quick_pow10, @function
quick_pow10:
.LFB7:
	.cfi_startproc
	endbr64
	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
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, pow10.0[rip]
	mov	rax, QWORD PTR [rdx+rax]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	quick_pow10, .-quick_pow10
	.globl	toss
	.type	toss, @function
toss:
.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, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movsd	xmm0, QWORD PTR .LC1[rip]
	movsd	QWORD PTR -32[rbp], xmm0
	mov	edi, 0
	call	time@PLT
	mov	DWORD PTR -52[rbp], eax
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	jmp	.L6
.L9:
	lea	rax, -52[rbp]
	mov	rdi, rax
	call	rand_r@PLT
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR -32[rbp]
	mulsd	xmm0, xmm1
	movsd	QWORD PTR -24[rbp], xmm0
	lea	rax, -52[rbp]
	mov	rdi, rax
	call	rand_r@PLT
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR -32[rbp]
	mulsd	xmm0, xmm1
	movsd	QWORD PTR -16[rbp], xmm0
	movsd	xmm0, QWORD PTR -24[rbp]
	movapd	xmm1, xmm0
	mulsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR -16[rbp]
	mulsd	xmm0, xmm0
	addsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC2[rip]
	comisd	xmm0, xmm1
	jbe	.L7
	add	QWORD PTR -40[rbp], 1
.L7:
	add	QWORD PTR -48[rbp], 1
.L6:
	mov	rax, QWORD PTR tosses_per_thread[rip]
	cmp	QWORD PTR -48[rbp], rax
	jl	.L9
	lea	rdi, hits_mutex[rip]
	call	pthread_mutex_lock@PLT
	mov	rdx, QWORD PTR hits[rip]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	QWORD PTR hits[rip], rax
	lea	rdi, hits_mutex[rip]
	call	pthread_mutex_unlock@PLT
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE8:
	.size	toss, .-toss
	.section	.rodata
	.align 8
.LC3:
	.string	"Error. Digite el exponente de 10 y numero de hilos"
.LC4:
	.string	"Error: n es demasiado grande"
	.align 8
.LC5:
	.string	"La divisi\303\263n de 'n' entre el numero de hilos debe ser exacta"
.LC6:
	.string	"Time measured: %.3f seconds.\n"
	.align 8
.LC11:
	.string	"Tosses: %lld, hits: %lld, pi_approx: %f, error: %f%%\n"
.LC12:
	.string	"a"
.LC13:
	.string	"dartboard_threads.csv"
	.align 8
.LC14:
	.string	"No se puede abrir dartboard_threads.csv"
	.align 8
.LC15:
	.string	"%d, %d, %lld, %lld, %f, %f, %f\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.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	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	cmp	DWORD PTR -68[rbp], 3
	je	.L13
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 50
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L14
.L13:
	call	clock@PLT
	mov	edi, eax
	call	srand@PLT
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR exponent[rip], eax
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR num_threads[rip], eax
	mov	eax, DWORD PTR exponent[rip]
	cmp	eax, 11
	jle	.L15
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L14
.L15:
	mov	eax, DWORD PTR exponent[rip]
	mov	edi, eax
	call	quick_pow10
	mov	QWORD PTR n[rip], rax
	mov	rax, QWORD PTR n[rip]
	mov	edx, DWORD PTR num_threads[rip]
	movsx	rcx, edx
	cqo
	idiv	rcx
	mov	rax, rdx
	test	rax, rax
	je	.L16
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 60
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L14
.L16:
	mov	rax, QWORD PTR n[rip]
	mov	edx, DWORD PTR num_threads[rip]
	movsx	rcx, edx
	cqo
	idiv	rcx
	mov	QWORD PTR tosses_per_thread[rip], rax
	mov	eax, DWORD PTR num_threads[rip]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	esi, 0
	lea	rdi, hits_mutex[rip]
	call	pthread_mutex_init@PLT
	mov	eax, 0
	call	get_cpu_time
	movq	rax, xmm0
	mov	QWORD PTR -48[rbp], rax
	mov	DWORD PTR -64[rbp], 0
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	ecx, 0
	lea	rdx, toss[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	add	DWORD PTR -64[rbp], 1
.L17:
	mov	eax, DWORD PTR num_threads[rip]
	cmp	DWORD PTR -64[rbp], eax
	jl	.L18
	mov	DWORD PTR -60[rbp], 0
	jmp	.L19
.L20:
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	add	DWORD PTR -60[rbp], 1
.L19:
	mov	eax, DWORD PTR num_threads[rip]
	cmp	DWORD PTR -60[rbp], eax
	jl	.L20
	mov	eax, 0
	call	get_cpu_time
	movq	rax, xmm0
	mov	QWORD PTR -40[rbp], rax
	movsd	xmm0, QWORD PTR -40[rbp]
	subsd	xmm0, QWORD PTR -48[rbp]
	movsd	QWORD PTR -32[rbp], xmm0
	mov	rax, QWORD PTR -32[rbp]
	movq	xmm0, rax
	lea	rdi, .LC6[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rax, QWORD PTR hits[rip]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	movsd	xmm0, QWORD PTR .LC7[rip]
	mulsd	xmm0, xmm1
	mov	rax, QWORD PTR n[rip]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	divsd	xmm0, xmm1
	movsd	QWORD PTR -24[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC8[rip]
	subsd	xmm0, QWORD PTR -24[rbp]
	movq	xmm1, QWORD PTR .LC9[rip]
	andpd	xmm0, xmm1
	movsd	xmm2, QWORD PTR .LC8[rip]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR .LC10[rip]
	mulsd	xmm0, xmm1
	movsd	QWORD PTR -16[rbp], xmm0
	mov	rdx, QWORD PTR hits[rip]
	mov	rax, QWORD PTR n[rip]
	movsd	xmm0, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	movapd	xmm1, xmm0
	movq	xmm0, rcx
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 2
	call	printf@PLT
	lea	rsi, .LC12[rip]
	lea	rdi, .LC13[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L21
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L14
.L21:
	mov	r8, QWORD PTR hits[rip]
	mov	rdi, QWORD PTR n[rip]
	mov	ecx, DWORD PTR exponent[rip]
	mov	edx, DWORD PTR num_threads[rip]
	movsd	xmm1, QWORD PTR -32[rbp]
	movsd	xmm0, QWORD PTR -16[rbp]
	mov	rsi, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	movapd	xmm2, xmm1
	movapd	xmm1, xmm0
	movq	xmm0, rsi
	mov	r9, r8
	mov	r8, rdi
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 3
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdi, hits_mutex[rip]
	call	pthread_mutex_destroy@PLT
	mov	edi, 0
	call	pthread_exit@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.data
	.align 32
	.type	pow10.0, @object
	.size	pow10.0, 96
pow10.0:
	.quad	1
	.quad	10
	.quad	100
	.quad	1000
	.quad	10000
	.quad	100000
	.quad	1000000
	.quad	10000000
	.quad	100000000
	.quad	1000000000
	.quad	10000000000
	.quad	100000000000
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1093567616
	.align 8
.LC1:
	.long	2097152
	.long	1040187392
	.align 8
.LC2:
	.long	0
	.long	1072693248
	.align 8
.LC7:
	.long	0
	.long	1074790400
	.align 8
.LC8:
	.long	1413754136
	.long	1074340347
	.align 16
.LC9:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.align 8
.LC10:
	.long	0
	.long	1079574528
	.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	"950384.c"
	.text
	.comm	exponent,4,4
	.comm	num_threads,4,4
	.comm	n,8,8
	.comm	tosses_per_thread,8,8
	.global	hits
	.bss
	.align	3
	.type	hits, %object
	.size	hits, 8
hits:
	.space	8
	.comm	hits_mutex,24,4
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.text
	.align	2
	.global	get_cpu_time
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_cpu_time, %function
get_cpu_time:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	clock
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L3
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	1093567616
	.size	get_cpu_time, .-get_cpu_time
	.align	2
	.global	quick_pow10
	.syntax unified
	.arm
	.fpu softvfp
	.type	quick_pow10, %function
quick_pow10:
	@ 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]
	ldr	r2, .L7
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L8:
	.align	2
.L7:
	.word	pow10.6666
	.size	quick_pow10, .-quick_pow10
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.global	__aeabi_dcmplt
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	toss
	.syntax unified
	.arm
	.fpu softvfp
	.type	toss, %function
toss:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #72
	str	r0, [fp, #-88]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r2, #2097152
	mov	r3, #1040187392
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	mov	r0, #0
	bl	time
	mov	r3, r0
	str	r3, [fp, #-80]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	b	.L10
.L13:
	sub	r3, fp, #80
	mov	r0, r3
	bl	rand_r
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	sub	r3, fp, #80
	mov	r0, r3
	bl	rand_r
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-100]
	str	r3, [fp, #-96]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #100
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L16+4
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L11
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	adds	r6, r2, #1
	adc	r7, r3, #0
	str	r6, [fp, #-68]
	str	r7, [fp, #-64]
.L11:
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	adds	r8, r2, #1
	adc	r9, r3, #0
	str	r8, [fp, #-76]
	str	r9, [fp, #-72]
.L10:
	ldr	r3, .L16+8
	ldmia	r3, {r2-r3}
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L13
	ldr	r0, .L16+12
	bl	pthread_mutex_lock
	ldr	r3, .L16+16
	ldmia	r3, {r0-r1}
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	adds	r4, r0, r2
	adc	r5, r1, r3
	ldr	r3, .L16+16
	stm	r3, {r4-r5}
	ldr	r0, .L16+12
	bl	pthread_mutex_unlock
	mov	r0, #0
	bl	pthread_exit
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	1072693248
	.word	tosses_per_thread
	.word	hits_mutex
	.word	hits
	.size	toss, .-toss
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Error. Digite el exponente de 10 y numero de hilos\000"
	.align	2
.LC2:
	.ascii	"Error: n es demasiado grande\000"
	.global	__aeabi_ldivmod
	.align	2
.LC3:
	.ascii	"La divisi\303\263n de 'n' entre el numero de hilos "
	.ascii	"debe ser exacta\000"
	.global	__aeabi_dsub
	.align	2
.LC4:
	.ascii	"Time measured: %.3f seconds.\012\000"
	.global	__aeabi_l2d
	.align	2
.LC5:
	.ascii	"Tosses: %lld, hits: %lld, pi_approx: %f, error: %f%"
	.ascii	"%\012\000"
	.align	2
.LC6:
	.ascii	"a\000"
	.align	2
.LC7:
	.ascii	"dartboard_threads.csv\000"
	.align	2
.LC8:
	.ascii	"No se puede abrir dartboard_threads.csv\000"
	.align	2
.LC9:
	.ascii	"%d, %d, %lld, %lld, %f, %f, %f\012\000"
	.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, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #104
	str	r0, [fp, #-80]
	str	r1, [fp, #-84]
	ldr	r3, [fp, #-80]
	cmp	r3, #3
	beq	.L19
	ldr	r3, .L28
	ldr	r3, [r3]
	mov	r2, #50
	mov	r1, #1
	ldr	r0, .L28+4
	bl	fwrite
	mvn	r3, #0
	b	.L20
.L19:
	bl	clock
	mov	r3, r0
	mov	r0, r3
	bl	srand
	ldr	r3, [fp, #-84]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L28+8
	str	r3, [r2]
	ldr	r3, [fp, #-84]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L28+12
	str	r3, [r2]
	ldr	r3, .L28+8
	ldr	r3, [r3]
	cmp	r3, #11
	ble	.L21
	ldr	r3, .L28
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L28+16
	bl	fwrite
	mvn	r3, #0
	b	.L20
.L21:
	ldr	r3, .L28+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	quick_pow10
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L28+20
	stm	r1, {r2-r3}
	ldr	r3, .L28+20
	ldmia	r3, {r0-r1}
	ldr	r3, .L28+12
	ldr	r3, [r3]
	mov	r2, r3
	asr	r3, r2, #31
	bl	__aeabi_ldivmod
	orrs	r3, r2, r3
	beq	.L22
	ldr	r3, .L28
	ldr	r3, [r3]
	mov	r2, #60
	mov	r1, #1
	ldr	r0, .L28+24
	bl	fwrite
	mvn	r3, #0
	b	.L20
.L22:
	ldr	r3, .L28+20
	ldmia	r3, {r0-r1}
	ldr	r3, .L28+12
	ldr	r3, [r3]
	mov	r2, r3
	asr	r3, r2, #31
	bl	__aeabi_ldivmod
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L28+28
	stm	r1, {r2-r3}
	ldr	r3, .L28+12
	ldr	r3, [r3]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-68]
	mov	r1, #0
	ldr	r0, .L28+32
	bl	pthread_mutex_init
	bl	get_cpu_time
	str	r0, [fp, #-60]
	str	r1, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-76]
	b	.L23
.L24:
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-68]
	add	r0, r2, r3
	mov	r3, #0
	ldr	r2, .L28+36
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L23:
	ldr	r3, .L28+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-76]
	cmp	r2, r3
	blt	.L24
	mov	r3, #0
	str	r3, [fp, #-72]
	b	.L25
.L26:
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L25:
	ldr	r3, .L28+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-72]
	cmp	r2, r3
	blt	.L26
	bl	get_cpu_time
	str	r0, [fp, #-52]
	str	r1, [fp, #-48]
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	ldr	r0, .L28+40
	bl	printf
	ldr	r3, .L28+44
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_l2d
	mov	r2, #0
	ldr	r3, .L28+48
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r3, .L28+20
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_l2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	ldr	r0, .L28+52
	ldr	r1, .L28+56
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	bic	r5, r3, #-2147483648
	ldr	r2, .L28+52
	ldr	r3, .L28+56
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L28+60
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, .L28+20
	ldmia	r3, {r4-r5}
	ldr	r3, .L28+44
	ldmia	r3, {r2-r3}
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	str	r0, [sp, #16]
	str	r1, [sp, #20]
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	str	r0, [sp, #8]
	str	r1, [sp, #12]
	stm	sp, {r2-r3}
	mov	r2, r4
	mov	r3, r5
	ldr	r0, .L28+64
	bl	printf
	ldr	r1, .L28+68
	ldr	r0, .L28+72
	bl	fopen
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bne	.L27
	ldr	r0, .L28+76
	bl	printf
	mvn	r3, #0
	b	.L20
.L27:
	ldr	r3, .L28+12
	ldr	ip, [r3]
	ldr	r3, .L28+8
	ldr	lr, [r3]
	ldr	r3, .L28+20
	ldmia	r3, {r2-r3}
	ldr	r1, .L28+44
	ldmia	r1, {r0-r1}
	sub	r5, fp, #44
	ldmia	r5, {r4-r5}
	str	r4, [sp, #32]
	str	r5, [sp, #36]
	sub	r5, fp, #28
	ldmia	r5, {r4-r5}
	str	r4, [sp, #24]
	str	r5, [sp, #28]
	sub	r5, fp, #36
	ldmia	r5, {r4-r5}
	str	r4, [sp, #16]
	str	r5, [sp, #20]
	str	r0, [sp, #8]
	str	r1, [sp, #12]
	stm	sp, {r2-r3}
	mov	r3, lr
	mov	r2, ip
	ldr	r1, .L28+80
	ldr	r0, [fp, #-64]
	bl	fprintf
	ldr	r0, [fp, #-64]
	bl	fclose
	ldr	r0, .L28+32
	bl	pthread_mutex_destroy
	mov	r0, #0
	bl	pthread_exit
.L20:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L29:
	.align	2
.L28:
	.word	stderr
	.word	.LC1
	.word	exponent
	.word	num_threads
	.word	.LC2
	.word	n
	.word	.LC3
	.word	tosses_per_thread
	.word	hits_mutex
	.word	toss
	.word	.LC4
	.word	hits
	.word	1074790400
	.word	1413754136
	.word	1074340347
	.word	1079574528
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.data
	.align	3
	.type	pow10.6666, %object
	.size	pow10.6666, 96
pow10.6666:
	.word	1
	.word	0
	.word	10
	.word	0
	.word	100
	.word	0
	.word	1000
	.word	0
	.word	10000
	.word	0
	.word	100000
	.word	0
	.word	1000000
	.word	0
	.word	10000000
	.word	0
	.word	100000000
	.word	0
	.word	1000000000
	.word	0
	.word	1410065408
	.word	2
	.word	1215752192
	.word	23
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
