	.file	"904941.c"
	.intel_syntax noprefix
	.text
	.globl	verbose
	.bss
	.align 4
	.type	verbose, @object
	.size	verbose, 4
verbose:
	.zero	4
	.globl	tinfo
	.align 8
	.type	tinfo, @object
	.size	tinfo, 8
tinfo:
	.zero	8
	.globl	n_mem
	.align 8
	.type	n_mem, @object
	.size	n_mem, 8
n_mem:
	.zero	8
	.globl	mem
	.align 32
	.type	mem, @object
	.size	mem, 64000000
mem:
	.zero	64000000
	.globl	indices
	.align 32
	.type	indices, @object
	.size	indices, 870400
indices:
	.zero	870400
	.text
	.type	thread_sync, @function
thread_sync:
.LFB6:
	.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 -56[rbp], rdi
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 12[rax]
	mov	DWORD PTR -44[rbp], eax
	mov	DWORD PTR -48[rbp], 0
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 8[rax]
	imul	eax, eax, 13600
	cdqe
	mov	QWORD PTR -24[rbp], rax
	mov	QWORD PTR -32[rbp], 0
	jmp	.L2
.L7:
	mov	rax, QWORD PTR n_mem[rip]
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -40[rbp], 0
	jmp	.L3
.L4:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, indices[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, 0[0+rax*4]
	lea	rdx, mem[rip]
	mov	eax, DWORD PTR -48[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	add	QWORD PTR -40[rbp], 1
.L3:
	mov	rax, QWORD PTR -40[rbp]
	cmp	rax, QWORD PTR -16[rbp]
	jl	.L4
	mov	rdx, QWORD PTR n_mem[rip]
	mov	eax, 13600
	sub	rax, rdx
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -40[rbp], 0
	jmp	.L5
.L6:
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, 1[rax]
	mov	eax, DWORD PTR -48[rbp]
	add	eax, 1
	cdqe
	mov	rcx, rdx
	imul	rcx, rax
	movabs	rdx, 5270498306774157605
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	mov	DWORD PTR -48[rbp], eax
	add	QWORD PTR -40[rbp], 1
.L5:
	mov	rax, QWORD PTR -40[rbp]
	cmp	rax, QWORD PTR -16[rbp]
	jl	.L6
	add	QWORD PTR -32[rbp], 1
.L2:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	cmp	QWORD PTR -32[rbp], rax
	jl	.L7
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	thread_sync, .-thread_sync
	.section	.rodata
.LC0:
	.string	"%s:\t%lu\n"
	.text
	.globl	print_time
	.type	print_time, @function
print_time:
.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	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	clock_gettime@PLT
	mov	rax, QWORD PTR -32[rbp]
	imul	rsi, rax, 1000
	mov	rcx, QWORD PTR -24[rbp]
	movabs	rdx, 4835703278458516699
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 18
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	add	rax, rsi
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	sub	rax, QWORD PTR -56[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	print_time, .-print_time
	.section	.rodata
	.align 8
.LC1:
	.string	"*error(%d): pthread_attr_setaffinity_np, %d\n"
	.align 8
.LC2:
	.string	"*error(%d): pthread_create, %d\n"
	.text
	.globl	parallelize
	.type	parallelize, @function
parallelize:
.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, 256
	mov	DWORD PTR -228[rbp], edi
	mov	QWORD PTR -240[rbp], rsi
	mov	QWORD PTR -248[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -208[rbp]
	mov	rdi, rax
	call	pthread_attr_init@PLT
	mov	DWORD PTR -224[rbp], 0
	jmp	.L13
.L18:
	mov	rdx, QWORD PTR tinfo[rip]
	mov	eax, DWORD PTR -224[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	edx, DWORD PTR -224[rbp]
	add	edx, 1
	mov	DWORD PTR 8[rax], edx
	lea	rax, -144[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 16
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	mov	eax, DWORD PTR -224[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -240[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	cdqe
	mov	QWORD PTR -216[rbp], rax
	cmp	QWORD PTR -216[rbp], 1023
	ja	.L15
	mov	rax, QWORD PTR -216[rbp]
	shr	rax, 6
	lea	rdx, 0[0+rax*8]
	lea	rcx, -144[rbp]
	add	rdx, rcx
	mov	rsi, QWORD PTR [rdx]
	mov	rdx, QWORD PTR -216[rbp]
	and	edx, 63
	mov	edi, 1
	mov	ecx, edx
	sal	rdi, cl
	mov	rdx, rdi
	lea	rcx, 0[0+rax*8]
	lea	rax, -144[rbp]
	add	rax, rcx
	or	rdx, rsi
	mov	QWORD PTR [rax], rdx
.L15:
	lea	rdx, -144[rbp]
	lea	rax, -208[rbp]
	mov	esi, 128
	mov	rdi, rax
	call	pthread_attr_setaffinity_np@PLT
	mov	DWORD PTR -220[rbp], eax
	cmp	DWORD PTR -220[rbp], 0
	je	.L16
	mov	eax, DWORD PTR -220[rbp]
	mov	edx, eax
	mov	esi, 71
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L16:
	mov	rdx, QWORD PTR tinfo[rip]
	mov	eax, DWORD PTR -224[rbp]
	cdqe
	sal	rax, 4
	lea	rcx, [rdx+rax]
	mov	rdx, QWORD PTR tinfo[rip]
	mov	eax, DWORD PTR -224[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	rdi, rax
	mov	rdx, QWORD PTR -248[rbp]
	lea	rax, -208[rbp]
	mov	rsi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -220[rbp], eax
	cmp	DWORD PTR -220[rbp], 0
	je	.L17
	mov	eax, DWORD PTR -220[rbp]
	mov	edx, eax
	mov	esi, 76
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L17:
	add	DWORD PTR -224[rbp], 1
.L13:
	mov	eax, DWORD PTR -224[rbp]
	cmp	eax, DWORD PTR -228[rbp]
	jl	.L18
	mov	DWORD PTR -224[rbp], 0
	jmp	.L19
.L20:
	mov	rdx, QWORD PTR tinfo[rip]
	mov	eax, DWORD PTR -224[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	add	DWORD PTR -224[rbp], 1
.L19:
	mov	eax, DWORD PTR -224[rbp]
	cmp	eax, DWORD PTR -228[rbp]
	jl	.L20
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	parallelize, .-parallelize
	.section	.rodata
.LC3:
	.string	"01"
	.align 8
.LC5:
	.string	"Usage: %s [-v] [-m mem_ratio] [-w workload] [-c core_affinities]\n"
.LC6:
	.string	"vm:w:r:z:c:"
.LC7:
	.string	"%d threads...\n"
	.align 8
.LC9:
	.string	"*error(%d): pthread_getaffinity_np, %d\n"
.LC10:
	.string	"Start"
.LC11:
	.string	"Time"
	.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, 240
	mov	DWORD PTR -228[rbp], edi
	mov	QWORD PTR -240[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -212[rbp], 10000
	lea	rax, .LC3[rip]
	mov	QWORD PTR -192[rbp], rax
	movss	xmm0, DWORD PTR .LC4[rip]
	movss	DWORD PTR -208[rbp], xmm0
	lea	rax, thread_sync[rip]
	mov	QWORD PTR -184[rbp], rax
	mov	QWORD PTR -176[rbp], 0
	jmp	.L23
.L29:
	cmp	DWORD PTR -204[rbp], 119
	je	.L24
	cmp	DWORD PTR -204[rbp], 119
	jg	.L25
	cmp	DWORD PTR -204[rbp], 118
	je	.L26
	cmp	DWORD PTR -204[rbp], 118
	jg	.L25
	cmp	DWORD PTR -204[rbp], 99
	je	.L27
	cmp	DWORD PTR -204[rbp], 109
	je	.L28
	jmp	.L25
.L26:
	mov	DWORD PTR verbose[rip], 1
	jmp	.L23
.L28:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atof@PLT
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -208[rbp], xmm0
	jmp	.L23
.L24:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -212[rbp], eax
	jmp	.L23
.L27:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -192[rbp], rax
	mov	rdx, QWORD PTR optarg[rip]
	mov	rax, QWORD PTR -192[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	jmp	.L23
.L25:
	mov	rax, QWORD PTR -240[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L23:
	mov	rcx, QWORD PTR -240[rbp]
	mov	eax, DWORD PTR -228[rbp]
	lea	rdx, .LC6[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -204[rbp], eax
	cmp	DWORD PTR -204[rbp], -1
	jne	.L29
	mov	rax, QWORD PTR -192[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -200[rbp], eax
	mov	eax, DWORD PTR -200[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -200[rbp]
	cdqe
	mov	esi, 16
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR tinfo[rip], rax
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, DWORD PTR -208[rbp]
	movsd	xmm0, QWORD PTR .LC8[rip]
	mulsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	cdqe
	mov	QWORD PTR n_mem[rip], rax
	mov	DWORD PTR -216[rbp], 0
	jmp	.L30
.L31:
	mov	rdx, QWORD PTR tinfo[rip]
	mov	eax, DWORD PTR -216[rbp]
	cdqe
	sal	rax, 4
	add	rdx, rax
	mov	eax, DWORD PTR -212[rbp]
	mov	DWORD PTR 12[rdx], eax
	add	DWORD PTR -216[rbp], 1
.L30:
	mov	eax, DWORD PTR -216[rbp]
	cmp	eax, DWORD PTR -200[rbp]
	jl	.L31
	mov	DWORD PTR -216[rbp], 0
	jmp	.L32
.L33:
	call	rand@PLT
	cdqe
	imul	rcx, rax, 16000000
	movabs	rdx, -9223372032559808509
	mov	rax, rcx
	imul	rdx
	lea	rax, [rdx+rcx]
	sar	rax, 30
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	mov	ecx, eax
	mov	eax, DWORD PTR -216[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, indices[rip]
	mov	DWORD PTR [rdx+rax], ecx
	add	DWORD PTR -216[rbp], 1
.L32:
	cmp	DWORD PTR -216[rbp], 217599
	jle	.L33
	call	pthread_self@PLT
	mov	QWORD PTR -168[rbp], rax
	lea	rax, -144[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 16
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	mov	QWORD PTR -160[rbp], 0
	cmp	QWORD PTR -160[rbp], 1023
	ja	.L35
	mov	rax, QWORD PTR -160[rbp]
	shr	rax, 6
	lea	rdx, 0[0+rax*8]
	lea	rcx, -144[rbp]
	add	rdx, rcx
	mov	rsi, QWORD PTR [rdx]
	mov	rdx, QWORD PTR -160[rbp]
	and	edx, 63
	mov	edi, 1
	mov	ecx, edx
	sal	rdi, cl
	mov	rdx, rdi
	lea	rcx, 0[0+rax*8]
	lea	rax, -144[rbp]
	add	rax, rcx
	or	rdx, rsi
	mov	QWORD PTR [rax], rdx
.L35:
	lea	rdx, -144[rbp]
	mov	rax, QWORD PTR -168[rbp]
	mov	esi, 128
	mov	rdi, rax
	call	pthread_setaffinity_np@PLT
	mov	DWORD PTR -196[rbp], eax
	cmp	DWORD PTR -196[rbp], 0
	je	.L36
	mov	eax, DWORD PTR -196[rbp]
	mov	edx, eax
	mov	esi, 143
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
.L36:
	mov	rax, QWORD PTR -176[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	print_time
	mov	QWORD PTR -176[rbp], rax
	mov	rax, QWORD PTR -176[rbp]
	mov	QWORD PTR -152[rbp], rax
	mov	rdx, QWORD PTR -184[rbp]
	mov	rcx, QWORD PTR -192[rbp]
	mov	eax, DWORD PTR -200[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	parallelize
	mov	rax, QWORD PTR -152[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	print_time
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.section	.rodata
	.align 4
.LC4:
	.long	1056964608
	.align 8
.LC8:
	.long	0
	.long	1087016960
	.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	"904941.c"
	.text
	.global	verbose
	.bss
	.align	2
	.type	verbose, %object
	.size	verbose, 4
verbose:
	.space	4
	.comm	tinfo,4,4
	.global	n_mem
	.align	2
	.type	n_mem, %object
	.size	n_mem, 4
n_mem:
	.space	4
	.comm	mem,64000000,4
	.comm	indices,870400,4
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread_sync, %function
thread_sync:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #44
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-40]
	ldr	r2, [r3, #4]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #4
	add	r3, r3, r2
	lsl	r3, r3, #5
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L2
.L7:
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L3
.L4:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, .L9+4
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-8]
	ldr	r1, .L9+8
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-32]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L3:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	blt	.L4
	ldr	r3, .L9
	ldr	r3, [r3]
	rsb	r3, r3, #13568
	add	r3, r3, #32
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L5
.L6:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	ldr	r2, [fp, #-32]
	add	r2, r2, #1
	mul	r3, r2, r3
	ldr	r2, .L9+12
	smull	r1, r2, r3, r2
	add	r2, r2, r3
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L5:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	blt	.L6
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L2:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L7
	mov	r3, #0
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L10:
	.align	2
.L9:
	.word	n_mem
	.word	indices
	.word	mem
	.word	-1840700269
	.size	thread_sync, .-thread_sync
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s:\011%lu\012\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	print_time
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_time, %function
print_time:
	@ 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]
	str	r1, [fp, #-28]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #16
	mov	r1, r3
	mov	r0, #0
	bl	clock_gettime
	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
	mov	r1, r3
	ldr	r3, [fp, #-12]
	ldr	r2, .L14+4
	smull	r0, r2, r3, r2
	asr	r2, r2, #18
	asr	r3, r3, #31
	sub	r3, r2, r3
	add	r3, r1, r3
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r1, [fp, #-28]
	ldr	r0, .L14+8
	bl	printf
	ldr	r3, [fp, #-20]
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC1
	.word	1125899907
	.word	.LC0
	.size	print_time, .-print_time
	.section	.rodata
	.align	2
.LC2:
	.ascii	"*error(%d): pthread_attr_setaffinity_np, %d\012\000"
	.align	2
.LC3:
	.ascii	"*error(%d): pthread_create, %d\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	parallelize
	.syntax unified
	.arm
	.fpu softvfp
	.type	parallelize, %function
parallelize:
	@ args = 0, pretend = 0, frame = 200
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #200
	str	r0, [fp, #-192]
	str	r1, [fp, #-196]
	str	r2, [fp, #-200]
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #172
	mov	r0, r3
	bl	pthread_attr_init
	mov	r3, #0
	str	r3, [fp, #-184]
	b	.L17
.L22:
	ldr	r3, .L26+4
	ldr	r1, [r3]
	ldr	r2, [fp, #-184]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [fp, #-184]
	add	r2, r2, #1
	str	r2, [r3, #4]
	sub	r3, fp, #136
	mov	r0, r3
	mov	r3, #128
	mov	r2, r3
	mov	r1, #0
	bl	memset
	ldr	r3, [fp, #-184]
	ldr	r2, [fp, #-196]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	str	r3, [fp, #-180]
	ldr	r3, [fp, #-180]
	cmp	r3, #1024
	bcs	.L19
	ldr	r3, [fp, #-180]
	lsr	r3, r3, #5
	lsl	r2, r3, #2
	sub	r1, fp, #136
	add	r2, r1, r2
	ldr	r1, [r2]
	ldr	r2, [fp, #-180]
	and	r2, r2, #31
	mov	r0, #1
	lsl	r2, r0, r2
	lsl	r3, r3, #2
	sub	r0, fp, #136
	add	r3, r0, r3
	orr	r2, r1, r2
	str	r2, [r3]
.L19:
	sub	r2, fp, #136
	sub	r3, fp, #172
	mov	r1, #128
	mov	r0, r3
	bl	pthread_attr_setaffinity_np
	str	r0, [fp, #-176]
	ldr	r3, [fp, #-176]
	cmp	r3, #0
	beq	.L20
	ldr	r2, [fp, #-176]
	mov	r1, #71
	ldr	r0, .L26+8
	bl	printf
.L20:
	ldr	r3, .L26+4
	ldr	r1, [r3]
	ldr	r2, [fp, #-184]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r0, r3
	ldr	r3, .L26+4
	ldr	r1, [r3]
	ldr	r2, [fp, #-184]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	sub	r1, fp, #172
	ldr	r2, [fp, #-200]
	bl	pthread_create
	str	r0, [fp, #-176]
	ldr	r3, [fp, #-176]
	cmp	r3, #0
	beq	.L21
	ldr	r2, [fp, #-176]
	mov	r1, #76
	ldr	r0, .L26+12
	bl	printf
.L21:
	ldr	r3, [fp, #-184]
	add	r3, r3, #1
	str	r3, [fp, #-184]
.L17:
	ldr	r2, [fp, #-184]
	ldr	r3, [fp, #-192]
	cmp	r2, r3
	blt	.L22
	mov	r3, #0
	str	r3, [fp, #-184]
	b	.L23
.L24:
	ldr	r3, .L26+4
	ldr	r1, [r3]
	ldr	r2, [fp, #-184]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-184]
	add	r3, r3, #1
	str	r3, [fp, #-184]
.L23:
	ldr	r2, [fp, #-184]
	ldr	r3, [fp, #-192]
	cmp	r2, r3
	blt	.L24
	nop
	ldr	r3, .L26
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC4
	.word	tinfo
	.word	.LC2
	.word	.LC3
	.size	parallelize, .-parallelize
	.section	.rodata
	.align	2
.LC5:
	.ascii	"01\000"
	.global	__aeabi_d2f
	.align	2
.LC6:
	.ascii	"Usage: %s [-v] [-m mem_ratio] [-w workload] [-c cor"
	.ascii	"e_affinities]\012\000"
	.align	2
.LC7:
	.ascii	"vm:w:r:z:c:\000"
	.align	2
.LC8:
	.ascii	"%d threads...\012\000"
	.global	__aeabi_f2d
	.global	__aeabi_dmul
	.global	__aeabi_d2iz
	.align	2
.LC9:
	.ascii	"*error(%d): pthread_getaffinity_np, %d\012\000"
	.align	2
.LC10:
	.ascii	"Start\000"
	.align	2
.LC11:
	.ascii	"Time\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 = 192
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #192
	str	r0, [fp, #-192]
	str	r1, [fp, #-196]
	ldr	r3, .L46
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L46+4
	str	r3, [fp, #-180]
	ldr	r3, .L46+8
	str	r3, [fp, #-176]
	mov	r3, #1056964608
	str	r3, [fp, #-172]	@ float
	ldr	r3, .L46+12
	str	r3, [fp, #-168]
	mov	r3, #0
	str	r3, [fp, #-164]
	b	.L29
.L36:
	ldr	r3, [fp, #-160]
	sub	r3, r3, #99
	cmp	r3, #20
	ldrls	pc, [pc, r3, asl #2]
	b	.L30
.L32:
	.word	.L35
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L34
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L33
	.word	.L31
.L33:
	ldr	r3, .L46+16
	mov	r2, #1
	str	r2, [r3]
	b	.L29
.L34:
	ldr	r3, .L46+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	atof
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-172]	@ float
	b	.L29
.L31:
	ldr	r3, .L46+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-180]
	b	.L29
.L35:
	ldr	r3, .L46+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-176]
	ldr	r3, .L46+20
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-176]
	bl	strcpy
	b	.L29
.L30:
	ldr	r3, .L46+24
	ldr	r0, [r3]
	ldr	r3, [fp, #-196]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L46+28
	bl	fprintf
	mov	r0, #1
	bl	exit
.L29:
	ldr	r2, .L46+32
	ldr	r1, [fp, #-196]
	ldr	r0, [fp, #-192]
	bl	getopt
	str	r0, [fp, #-160]
	ldr	r3, [fp, #-160]
	cmn	r3, #1
	bne	.L36
	ldr	r0, [fp, #-176]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-156]
	ldr	r1, [fp, #-156]
	ldr	r0, .L46+36
	bl	printf
	ldr	r3, [fp, #-156]
	mov	r1, #12
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L46+40
	str	r2, [r3]
	ldr	r0, [fp, #-172]	@ float
	bl	__aeabi_f2d
	mov	r2, #0
	ldr	r3, .L46+44
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	ldr	r2, .L46+48
	str	r3, [r2]
	mov	r3, #0
	str	r3, [fp, #-184]
	b	.L37
.L38:
	ldr	r3, .L46+40
	ldr	r1, [r3]
	ldr	r2, [fp, #-184]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [fp, #-180]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-184]
	add	r3, r3, #1
	str	r3, [fp, #-184]
.L37:
	ldr	r2, [fp, #-184]
	ldr	r3, [fp, #-156]
	cmp	r2, r3
	blt	.L38
	mov	r3, #0
	str	r3, [fp, #-184]
	b	.L39
.L40:
	bl	rand
	mov	r1, r0
	mov	r2, r1
	lsl	r2, r2, #5
	sub	r2, r2, r1
	lsl	r3, r2, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #10
	mov	r2, #1073741825
	smull	r1, r2, r3, r2
	asr	r2, r2, #29
	asr	r3, r3, #31
	sub	r2, r2, r3
	ldr	r1, .L46+52
	ldr	r3, [fp, #-184]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-184]
	add	r3, r3, #1
	str	r3, [fp, #-184]
.L39:
	ldr	r3, [fp, #-184]
	ldr	r2, .L46+56
	cmp	r3, r2
	blt	.L40
	bl	pthread_self
	str	r0, [fp, #-152]
	sub	r3, fp, #136
	mov	r0, r3
	mov	r3, #128
	mov	r2, r3
	mov	r1, #0
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-148]
	ldr	r3, [fp, #-148]
	cmp	r3, #1024
	bcs	.L42
	ldr	r3, [fp, #-148]
	lsr	r3, r3, #5
	lsl	r2, r3, #2
	sub	r1, fp, #136
	add	r2, r1, r2
	ldr	r1, [r2]
	ldr	r2, [fp, #-148]
	and	r2, r2, #31
	mov	r0, #1
	lsl	r2, r0, r2
	lsl	r3, r3, #2
	sub	r0, fp, #136
	add	r3, r0, r3
	orr	r2, r1, r2
	str	r2, [r3]
.L42:
	sub	r3, fp, #136
	mov	r2, r3
	mov	r1, #128
	ldr	r0, [fp, #-152]
	bl	pthread_setaffinity_np
	str	r0, [fp, #-144]
	ldr	r3, [fp, #-144]
	cmp	r3, #0
	beq	.L43
	ldr	r2, [fp, #-144]
	mov	r1, #143
	ldr	r0, .L46+60
	bl	printf
.L43:
	ldr	r1, .L46+64
	ldr	r0, [fp, #-164]
	bl	print_time
	str	r0, [fp, #-164]
	ldr	r3, [fp, #-164]
	str	r3, [fp, #-140]
	ldr	r2, [fp, #-168]
	ldr	r1, [fp, #-176]
	ldr	r0, [fp, #-156]
	bl	parallelize
	ldr	r1, .L46+68
	ldr	r0, [fp, #-140]
	bl	print_time
	mov	r3, #0
	ldr	r2, .L46
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L45
	bl	__stack_chk_fail
.L45:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L47:
	.align	2
.L46:
	.word	.LC12
	.word	10000
	.word	.LC5
	.word	thread_sync
	.word	verbose
	.word	optarg
	.word	stderr
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	tinfo
	.word	1087016960
	.word	n_mem
	.word	indices
	.word	217600
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
