	.file	"158266.c"
	.intel_syntax noprefix
	.text
	.globl	dest
	.bss
	.align 8
	.type	dest, @object
	.size	dest, 8
dest:
	.zero	8
	.section	.rodata
.LC1:
	.string	"%s took %f seconds\n"
	.text
	.globl	output_time_difference
	.type	output_time_difference, @function
output_time_difference:
.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, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rax, rdx
	sub	rax, rcx
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, rdx
	sub	rax, rcx
	mov	QWORD PTR -16[rbp], rax
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, QWORD PTR -24[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, QWORD PTR -16[rbp]
	movsd	xmm2, QWORD PTR .LC0[rip]
	divsd	xmm0, xmm2
	addsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -40[rbp]
	movq	xmm0, rdx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 1
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	output_time_difference, .-output_time_difference
	.globl	power
	.type	power, @function
power:
.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 -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -4[rbp], 1
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -20[rbp]
	imul	eax, eax
	mov	DWORD PTR -20[rbp], eax
	add	DWORD PTR -4[rbp], 1
.L3:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jl	.L4
	mov	eax, DWORD PTR -20[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	power, .-power
	.globl	threadFun
	.type	threadFun, @function
threadFun:
.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, 24
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -8[rbp], eax
	jmp	.L7
.L8:
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, edx
	mov	edi, eax
	call	power
	mov	edx, eax
	mov	rcx, QWORD PTR dest[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, edx
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -8[rbp], 5
.L7:
	cmp	DWORD PTR -8[rbp], 79999
	jle	.L8
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	threadFun, .-threadFun
	.section	.rodata
.LC2:
	.string	"simple for loop"
.LC3:
	.string	"fork"
.LC4:
	.string	"kernel threads"
	.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, 160
	mov	DWORD PTR -148[rbp], edi
	mov	QWORD PTR -160[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 320000
	call	malloc@PLT
	mov	QWORD PTR dest[rip], rax
	lea	rax, -112[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	DWORD PTR -136[rbp], 0
	jmp	.L10
.L11:
	mov	edx, DWORD PTR -136[rbp]
	mov	eax, DWORD PTR -136[rbp]
	mov	esi, edx
	mov	edi, eax
	call	power
	mov	edx, eax
	mov	rcx, QWORD PTR dest[rip]
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, edx
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -136[rbp], 1
.L10:
	cmp	DWORD PTR -136[rbp], 79999
	jle	.L11
	lea	rax, -96[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	lea	rdx, -96[rbp]
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	call	output_time_difference
	lea	rax, -112[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	r9d, 0
	mov	r8d, -1
	mov	ecx, 33
	mov	edx, 3
	mov	esi, 320000
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR dest[rip], rax
	mov	DWORD PTR -132[rbp], 1
	jmp	.L12
.L16:
	call	fork@PLT
	mov	DWORD PTR -116[rbp], eax
	cmp	DWORD PTR -116[rbp], 0
	jne	.L13
	jmp	.L14
.L15:
	mov	edx, DWORD PTR -132[rbp]
	mov	eax, DWORD PTR -132[rbp]
	mov	esi, edx
	mov	edi, eax
	call	power
	mov	edx, eax
	mov	rcx, QWORD PTR dest[rip]
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, edx
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -132[rbp], 5
.L14:
	cmp	DWORD PTR -132[rbp], 79999
	jle	.L15
	mov	edi, 0
	call	exit@PLT
.L13:
	add	DWORD PTR -132[rbp], 1
.L12:
	cmp	DWORD PTR -132[rbp], 4
	jle	.L16
	mov	DWORD PTR -136[rbp], 0
	jmp	.L17
.L18:
	mov	edx, DWORD PTR -136[rbp]
	mov	eax, DWORD PTR -136[rbp]
	mov	esi, edx
	mov	edi, eax
	call	power
	mov	edx, eax
	mov	rcx, QWORD PTR dest[rip]
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, edx
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -136[rbp], 5
.L17:
	cmp	DWORD PTR -136[rbp], 79999
	jle	.L18
	mov	DWORD PTR -128[rbp], 1
	jmp	.L19
.L20:
	mov	edi, 0
	call	wait@PLT
	add	DWORD PTR -128[rbp], 1
.L19:
	cmp	DWORD PTR -128[rbp], 4
	jle	.L20
	lea	rax, -96[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	lea	rdx, -96[rbp]
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	call	output_time_difference
	lea	rax, -112[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	DWORD PTR -124[rbp], 1
	jmp	.L21
.L22:
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	mov	edx, DWORD PTR -124[rbp]
	mov	DWORD PTR -80[rbp+rax*4], edx
	lea	rdx, -80[rbp]
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -124[rbp]
	sub	eax, 1
	lea	rcx, -48[rbp]
	cdqe
	sal	rax, 3
	add	rax, rcx
	mov	rcx, rdx
	lea	rdx, threadFun[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	add	DWORD PTR -124[rbp], 1
.L21:
	cmp	DWORD PTR -124[rbp], 4
	jle	.L22
	mov	DWORD PTR -140[rbp], 0
	lea	rax, -140[rbp]
	mov	rdi, rax
	call	threadFun
	mov	DWORD PTR -120[rbp], 1
	jmp	.L23
.L24:
	mov	eax, DWORD PTR -120[rbp]
	sub	eax, 1
	cdqe
	mov	rax, QWORD PTR -48[rbp+rax*8]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	add	DWORD PTR -120[rbp], 1
.L23:
	cmp	DWORD PTR -120[rbp], 4
	jle	.L24
	lea	rax, -96[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	lea	rdx, -96[rbp]
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	call	output_time_difference
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1093567616
	.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	"158266.c"
	.text
	.comm	dest,4,4
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dadd
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s took %f seconds\012\000"
	.text
	.align	2
	.global	output_time_difference
	.syntax unified
	.arm
	.fpu softvfp
	.type	output_time_difference, %function
output_time_difference:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, [fp, #-40]
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	sub	r3, r2, r3
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-40]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #4]
	sub	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r0, [fp, #-28]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-24]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L2
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-32]
	ldr	r0, .L2+4
	bl	printf
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L3:
	.align	2
.L2:
	.word	1093567616
	.word	.LC0
	.size	output_time_difference, .-output_time_difference
	.align	2
	.global	power
	.syntax unified
	.arm
	.fpu softvfp
	.type	power, %function
power:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L5
.L6:
	ldr	r3, [fp, #-16]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L5:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L6
	ldr	r3, [fp, #-16]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	power, .-power
	.global	__aeabi_i2f
	.align	2
	.global	threadFun
	.syntax unified
	.arm
	.fpu softvfp
	.type	threadFun, %function
threadFun:
	@ 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]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-20]
	b	.L9
.L10:
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-20]
	bl	power
	mov	r1, r0
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r4, r2, r3
	mov	r0, r1
	bl	__aeabi_i2f
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-20]
	add	r3, r3, #5
	str	r3, [fp, #-20]
.L9:
	ldr	r3, [fp, #-20]
	ldr	r2, .L11+4
	cmp	r3, r2
	ble	.L10
	nop
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L12:
	.align	2
.L11:
	.word	dest
	.word	79999
	.size	threadFun, .-threadFun
	.section	.rodata
	.align	2
.LC1:
	.ascii	"simple for loop\000"
	.align	2
.LC2:
	.ascii	"fork\000"
	.align	2
.LC3:
	.ascii	"kernel threads\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #108
	str	r0, [fp, #-104]
	str	r1, [fp, #-108]
	ldr	r3, .L31
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r0, .L31+4
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L31+8
	str	r2, [r3]
	sub	r3, fp, #68
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	mov	r3, #0
	str	r3, [fp, #-92]
	b	.L14
.L15:
	ldr	r1, [fp, #-92]
	ldr	r0, [fp, #-92]
	bl	power
	mov	r1, r0
	ldr	r3, .L31+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #2
	add	r4, r2, r3
	mov	r0, r1
	bl	__aeabi_i2f
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	str	r3, [fp, #-92]
.L14:
	ldr	r3, [fp, #-92]
	ldr	r2, .L31+12
	cmp	r3, r2
	ble	.L15
	sub	r3, fp, #60
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	sub	r2, fp, #60
	sub	r3, fp, #68
	mov	r1, r3
	ldr	r0, .L31+16
	bl	output_time_difference
	sub	r3, fp, #68
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	mov	r3, #0
	str	r3, [sp, #4]
	mvn	r3, #0
	str	r3, [sp]
	mov	r3, #33
	mov	r2, #3
	ldr	r1, .L31+4
	mov	r0, #0
	bl	mmap
	mov	r3, r0
	ldr	r2, .L31+8
	str	r3, [r2]
	mov	r3, #1
	str	r3, [fp, #-88]
	b	.L16
.L20:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	bne	.L17
	b	.L18
.L19:
	ldr	r1, [fp, #-88]
	ldr	r0, [fp, #-88]
	bl	power
	mov	r1, r0
	ldr	r3, .L31+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	add	r4, r2, r3
	mov	r0, r1
	bl	__aeabi_i2f
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-88]
	add	r3, r3, #5
	str	r3, [fp, #-88]
.L18:
	ldr	r3, [fp, #-88]
	ldr	r2, .L31+12
	cmp	r3, r2
	ble	.L19
	mov	r0, #0
	bl	exit
.L17:
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L16:
	ldr	r3, [fp, #-88]
	cmp	r3, #4
	ble	.L20
	mov	r3, #0
	str	r3, [fp, #-92]
	b	.L21
.L22:
	ldr	r1, [fp, #-92]
	ldr	r0, [fp, #-92]
	bl	power
	mov	r1, r0
	ldr	r3, .L31+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #2
	add	r4, r2, r3
	mov	r0, r1
	bl	__aeabi_i2f
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-92]
	add	r3, r3, #5
	str	r3, [fp, #-92]
.L21:
	ldr	r3, [fp, #-92]
	ldr	r2, .L31+12
	cmp	r3, r2
	ble	.L22
	mov	r3, #1
	str	r3, [fp, #-84]
	b	.L23
.L24:
	mov	r0, #0
	bl	wait
	ldr	r3, [fp, #-84]
	add	r3, r3, #1
	str	r3, [fp, #-84]
.L23:
	ldr	r3, [fp, #-84]
	cmp	r3, #4
	ble	.L24
	sub	r3, fp, #60
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	sub	r2, fp, #60
	sub	r3, fp, #68
	mov	r1, r3
	ldr	r0, .L31+20
	bl	output_time_difference
	sub	r3, fp, #68
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	mov	r3, #1
	str	r3, [fp, #-80]
	b	.L25
.L26:
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [fp, #-80]
	str	r2, [r3, #-24]
	ldr	r3, [fp, #-80]
	sub	r3, r3, #1
	sub	r2, fp, #52
	lsl	r3, r3, #2
	add	r0, r2, r3
	sub	r2, fp, #36
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, .L31+24
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L25:
	ldr	r3, [fp, #-80]
	cmp	r3, #4
	ble	.L26
	mov	r3, #0
	str	r3, [fp, #-96]
	sub	r3, fp, #96
	mov	r0, r3
	bl	threadFun
	mov	r3, #1
	str	r3, [fp, #-76]
	b	.L27
.L28:
	ldr	r3, [fp, #-76]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-40]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L27:
	ldr	r3, [fp, #-76]
	cmp	r3, #4
	ble	.L28
	sub	r3, fp, #60
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	sub	r2, fp, #60
	sub	r3, fp, #68
	mov	r1, r3
	ldr	r0, .L31+28
	bl	output_time_difference
	mov	r3, #0
	ldr	r2, .L31
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L30
	bl	__stack_chk_fail
.L30:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC4
	.word	320000
	.word	dest
	.word	79999
	.word	.LC1
	.word	.LC2
	.word	threadFun
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
