	.file	"57951506.c"
	.intel_syntax noprefix
	.text
	.globl	pixels
	.bss
	.align 8
	.type	pixels, @object
	.size	pixels, 8
pixels:
	.zero	8
	.globl	color_values
	.align 8
	.type	color_values, @object
	.size	color_values, 8
color_values:
	.zero	8
	.globl	img_width
	.align 8
	.type	img_width, @object
	.size	img_width, 8
img_width:
	.zero	8
	.globl	img_height
	.align 8
	.type	img_height, @object
	.size	img_height, 8
img_height:
	.zero	8
	.globl	exit_ratio
	.align 4
	.type	exit_ratio, @object
	.size	exit_ratio, 4
exit_ratio:
	.zero	4
	.globl	hits
	.align 8
	.type	hits, @object
	.size	hits, 8
hits:
	.zero	8
	.globl	misses
	.align 8
	.type	misses, @object
	.size	misses, 8
misses:
	.zero	8
	.section	.rodata
	.align 8
.LC0:
	.ascii	"The input must conta"
	.string	"in the arguments:\n\t./parallel_sampling <.grey> <ratio> <num-threads>\nWhere the .grey is the relative filename to the converted image to text\nAnd ratio is a value between 0.01 and 0.99 to determine when to stop sampling the image for the hits/misses ratio.\n"
.LC1:
	.string	"r"
.LC2:
	.string	"Could not open file %s\n"
.LC3:
	.string	"%f"
	.align 8
.LC4:
	.string	"Could not get ratio from input %s\n"
	.text
	.globl	parse_command_line
	.type	parse_command_line, @function
parse_command_line:
.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, 32
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	QWORD PTR -32[rbp], rcx
	cmp	DWORD PTR -4[rbp], 3
	je	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 276
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L4
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L3
.L4:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -32[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	test	eax, eax
	jg	.L5
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L3
.L5:
	mov	eax, 0
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	parse_command_line, .-parse_command_line
	.globl	radius_size
	.type	radius_size, @function
radius_size:
.LFB7:
	.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 -24[rbp], rdi
	mov	QWORD PTR -8[rbp], 0
	cmp	QWORD PTR -24[rbp], 208
	jle	.L7
	mov	QWORD PTR -8[rbp], 10
	jmp	.L8
.L7:
	cmp	QWORD PTR -24[rbp], 160
	jle	.L9
	mov	QWORD PTR -8[rbp], 8
	jmp	.L8
.L9:
	cmp	QWORD PTR -24[rbp], 112
	jle	.L10
	mov	QWORD PTR -8[rbp], 6
	jmp	.L8
.L10:
	cmp	QWORD PTR -24[rbp], 64
	jle	.L11
	mov	QWORD PTR -8[rbp], 4
	jmp	.L8
.L11:
	cmp	QWORD PTR -24[rbp], 24
	jle	.L12
	mov	QWORD PTR -8[rbp], 2
	jmp	.L8
.L12:
	mov	QWORD PTR -8[rbp], 1
.L8:
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	radius_size, .-radius_size
	.globl	update_ratio
	.type	update_ratio, @function
update_ratio:
.LFB8:
	.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
	cmp	DWORD PTR -4[rbp], 0
	jne	.L15
	mov	rax, QWORD PTR hits[rip]
	add	rax, 1
	mov	QWORD PTR hits[rip], rax
	jmp	.L17
.L15:
	mov	rax, QWORD PTR misses[rip]
	add	rax, 1
	mov	QWORD PTR misses[rip], rax
.L17:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	update_ratio, .-update_ratio
	.section	.rodata
.LC5:
	.string	"OMP Spawning threads"
	.text
	.globl	sample
	.type	sample, @function
sample:
.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, 96
	mov	DWORD PTR -84[rbp], 0
	lea	rdi, .LC5[rip]
	call	puts@PLT
.L30:
	call	rand@PLT
	cdqe
	mov	rcx, QWORD PTR img_width[rip]
	cqo
	idiv	rcx
	mov	rax, rdx
	mov	QWORD PTR -32[rbp], rax
	call	rand@PLT
	cdqe
	mov	rcx, QWORD PTR img_height[rip]
	cqo
	idiv	rcx
	mov	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	mov	rdx, QWORD PTR color_values[rip]
	mov	rax, QWORD PTR -24[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	radius_size
	mov	DWORD PTR -8[rbp], eax
	mov	DWORD PTR -84[rbp], 0
	mov	eax, DWORD PTR -8[rbp]
	neg	eax
	cdqe
	mov	QWORD PTR -80[rbp], rax
	jmp	.L19
.L23:
	mov	eax, DWORD PTR -8[rbp]
	neg	eax
	cdqe
	mov	QWORD PTR -72[rbp], rax
	jmp	.L20
.L22:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	QWORD PTR -48[rbp], rax
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -48[rbp], 0
	js	.L21
	mov	rax, QWORD PTR img_width[rip]
	cmp	QWORD PTR -48[rbp], rax
	jge	.L21
	cmp	QWORD PTR -40[rbp], 0
	js	.L21
	mov	rax, QWORD PTR img_height[rip]
	cmp	QWORD PTR -40[rbp], rax
	jge	.L21
	mov	rdx, QWORD PTR pixels[rip]
	mov	rax, QWORD PTR -40[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -48[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L21
	mov	DWORD PTR -84[rbp], 1
.L21:
	add	QWORD PTR -72[rbp], 1
.L20:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	cmp	QWORD PTR -72[rbp], rax
	jl	.L22
	add	QWORD PTR -80[rbp], 1
.L19:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	cmp	QWORD PTR -80[rbp], rax
	jl	.L23
	cmp	DWORD PTR -84[rbp], 0
	jne	.L24
	mov	eax, DWORD PTR -8[rbp]
	neg	eax
	cdqe
	mov	QWORD PTR -80[rbp], rax
	jmp	.L25
.L29:
	mov	eax, DWORD PTR -8[rbp]
	neg	eax
	cdqe
	mov	QWORD PTR -72[rbp], rax
	jmp	.L26
.L28:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	QWORD PTR -64[rbp], rax
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -64[rbp], 0
	js	.L27
	mov	rax, QWORD PTR img_width[rip]
	cmp	QWORD PTR -64[rbp], rax
	jge	.L27
	cmp	QWORD PTR -56[rbp], 0
	js	.L27
	mov	rax, QWORD PTR img_height[rip]
	cmp	QWORD PTR -56[rbp], rax
	jge	.L27
	mov	rdx, QWORD PTR pixels[rip]
	mov	rax, QWORD PTR -56[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -64[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	QWORD PTR [rax], 1
.L27:
	add	QWORD PTR -72[rbp], 1
.L26:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	cmp	QWORD PTR -72[rbp], rax
	jl	.L28
	add	QWORD PTR -80[rbp], 1
.L25:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	cmp	QWORD PTR -80[rbp], rax
	jl	.L29
.L24:
	mov	eax, DWORD PTR -84[rbp]
	mov	edi, eax
	call	update_ratio
	mov	rax, QWORD PTR misses[rip]
	test	rax, rax
	je	.L30
	mov	rax, QWORD PTR hits[rip]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	mov	rax, QWORD PTR misses[rip]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	divsd	xmm0, xmm1
	movss	xmm1, DWORD PTR exit_ratio[rip]
	cvtss2sd	xmm1, xmm1
	comisd	xmm0, xmm1
	ja	.L30
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	sample, .-sample
	.section	.rodata
	.align 8
.LC6:
	.string	"Color values failed allocation"
.LC7:
	.string	"Pixels failed allocation"
	.text
	.globl	setup_arrays
	.type	setup_arrays, @function
setup_arrays:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 24
	.cfi_offset 3, -24
	mov	rax, QWORD PTR img_height[rip]
	mov	esi, 8
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR color_values[rip], rax
	mov	rax, QWORD PTR img_height[rip]
	mov	esi, 8
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR pixels[rip], rax
	mov	QWORD PTR -24[rbp], 0
	jmp	.L32
.L36:
	mov	rax, QWORD PTR img_width[rip]
	mov	rdx, rax
	mov	rcx, QWORD PTR color_values[rip]
	mov	rax, QWORD PTR -24[rbp]
	sal	rax, 3
	lea	rbx, [rcx+rax]
	mov	esi, 8
	mov	rdi, rdx
	call	calloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	rax, QWORD PTR img_width[rip]
	mov	rdx, rax
	mov	rcx, QWORD PTR pixels[rip]
	mov	rax, QWORD PTR -24[rbp]
	sal	rax, 3
	lea	rbx, [rcx+rax]
	mov	esi, 8
	mov	rdi, rdx
	call	calloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	rdx, QWORD PTR color_values[rip]
	mov	rax, QWORD PTR -24[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L33
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L34
.L33:
	mov	rdx, QWORD PTR pixels[rip]
	mov	rax, QWORD PTR -24[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L35
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L34
.L35:
	add	QWORD PTR -24[rbp], 1
.L32:
	mov	rax, QWORD PTR img_height[rip]
	cmp	QWORD PTR -24[rbp], rax
	jl	.L36
	mov	eax, 0
.L34:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	setup_arrays, .-setup_arrays
	.section	.rodata
	.align 8
.LC8:
	.string	"Exited on failed command line parsing."
.LC9:
	.string	"%ld %ld\n"
	.align 8
.LC10:
	.string	"Failed to read from given .grey file the dimensions of the image!\n"
	.align 8
.LC11:
	.string	"Could not allocate memory for the image's color values!\n"
	.align 8
.LC12:
	.string	"Cannot allocate space for the pixel values.\n"
.LC13:
	.string	"Reading in color values..."
.LC14:
	.string	"%ld\n"
	.align 8
.LC15:
	.string	"Multithreaded Anisotropic Sampling\n\t\tStarted with %d threads, will end at %.4f hits/misses.\n\t\tUsing grey file: %s (%ld, %ld)\n"
.LC16:
	.string	"Sampling took %0.2f seconds\n"
.LC17:
	.string	"Hits: %ld\nMisses: %ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 80
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	lea	rdx, -96[rbp]
	mov	rsi, QWORD PTR -112[rbp]
	mov	eax, DWORD PTR -100[rbp]
	lea	rcx, exit_ratio[rip]
	mov	edi, eax
	call	parse_command_line
	test	eax, eax
	je	.L38
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L49
.L38:
	mov	rax, QWORD PTR -96[rbp]
	lea	rcx, img_height[rip]
	lea	rdx, img_width[rip]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 1
	jg	.L40
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 66
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L49
.L40:
	mov	eax, 0
	call	setup_arrays
	test	eax, eax
	je	.L41
	mov	eax, 1
	jmp	.L49
.L41:
	mov	rax, QWORD PTR color_values[rip]
	test	rax, rax
	jne	.L42
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 56
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L49
.L42:
	mov	rax, QWORD PTR pixels[rip]
	test	rax, rax
	jne	.L43
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 44
	mov	esi, 1
	lea	rdi, .LC12[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L49
.L43:
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	QWORD PTR -72[rbp], 0
	jmp	.L44
.L48:
	mov	QWORD PTR -64[rbp], 0
	jmp	.L45
.L47:
	mov	rax, QWORD PTR -96[rbp]
	lea	rdx, -88[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 1
	jne	.L46
	mov	rdx, QWORD PTR color_values[rip]
	mov	rax, QWORD PTR -72[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -64[rbp]
	sal	rax, 3
	add	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR [rdx], rax
.L46:
	add	QWORD PTR -64[rbp], 1
.L45:
	mov	rax, QWORD PTR img_width[rip]
	cmp	QWORD PTR -64[rbp], rax
	jl	.L47
	add	QWORD PTR -72[rbp], 1
.L44:
	mov	rax, QWORD PTR img_height[rip]
	cmp	QWORD PTR -72[rbp], rax
	jl	.L48
	mov	r14, QWORD PTR img_height[rip]
	mov	r13, QWORD PTR img_width[rip]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 8
	mov	r12, QWORD PTR [rax]
	movss	xmm0, DWORD PTR exit_ratio[rip]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movq	rbx, xmm1
	mov	eax, 0
	call	omp_get_max_threads@PLT
	mov	r8, r14
	mov	rcx, r13
	mov	rdx, r12
	movq	xmm0, rbx
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 1
	call	printf@PLT
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -56[rbp], rax
	lea	rax, -80[rbp]
	mov	rdi, rax
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	QWORD PTR hits[rip], 0
	mov	QWORD PTR misses[rip], 0
	mov	eax, 0
	call	sample
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	sub	rax, QWORD PTR -56[rbp]
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, rax
	movq	rax, xmm2
	movq	xmm0, rax
	lea	rdi, .LC16[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rdx, QWORD PTR misses[rip]
	mov	rax, QWORD PTR hits[rip]
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L49:
	mov	rbx, QWORD PTR -40[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L50
	call	__stack_chk_fail@PLT
.L50:
	add	rsp, 80
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.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	"57951506.c"
	.text
	.comm	pixels,4,4
	.comm	color_values,4,4
	.comm	img_width,4,4
	.comm	img_height,4,4
	.comm	exit_ratio,4,4
	.comm	hits,4,4
	.comm	misses,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"The input must contain the arguments:\012\011./para"
	.ascii	"llel_sampling <.grey> <ratio> <num-threads>\012Wher"
	.ascii	"e the .grey is the relative filename to the convert"
	.ascii	"ed image to text\012And ratio is a value between 0."
	.ascii	"01 and 0.99 to determine when to stop sampling the "
	.ascii	"image for the hits/misses ratio.\012\000"
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"Could not open file %s\012\000"
	.align	2
.LC3:
	.ascii	"%f\000"
	.align	2
.LC4:
	.ascii	"Could not get ratio from input %s\012\000"
	.text
	.align	2
	.global	parse_command_line
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_command_line, %function
parse_command_line:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	beq	.L2
	ldr	r3, .L6
	ldr	r3, [r3]
	mov	r2, #276
	mov	r1, #1
	ldr	r0, .L6+4
	bl	fwrite
	mov	r3, #1
	b	.L3
.L2:
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L6+8
	mov	r0, r3
	bl	fopen
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L4
	ldr	r3, .L6
	ldr	r0, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L6+12
	bl	fprintf
	mov	r3, #1
	b	.L3
.L4:
	ldr	r3, [fp, #-12]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	ldr	r1, .L6+16
	mov	r0, r3
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #0
	bgt	.L5
	ldr	r3, .L6
	ldr	r0, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L6+20
	bl	fprintf
	mov	r3, #1
	b	.L3
.L5:
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	parse_command_line, .-parse_command_line
	.align	2
	.global	radius_size
	.syntax unified
	.arm
	.fpu softvfp
	.type	radius_size, %function
radius_size:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r3, #208
	ble	.L9
	mov	r3, #10
	str	r3, [fp, #-8]
	b	.L10
.L9:
	ldr	r3, [fp, #-16]
	cmp	r3, #160
	ble	.L11
	mov	r3, #8
	str	r3, [fp, #-8]
	b	.L10
.L11:
	ldr	r3, [fp, #-16]
	cmp	r3, #112
	ble	.L12
	mov	r3, #6
	str	r3, [fp, #-8]
	b	.L10
.L12:
	ldr	r3, [fp, #-16]
	cmp	r3, #64
	ble	.L13
	mov	r3, #4
	str	r3, [fp, #-8]
	b	.L10
.L13:
	ldr	r3, [fp, #-16]
	cmp	r3, #24
	ble	.L14
	mov	r3, #2
	str	r3, [fp, #-8]
	b	.L10
.L14:
	mov	r3, #1
	str	r3, [fp, #-8]
.L10:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	radius_size, .-radius_size
	.align	2
	.global	update_ratio
	.syntax unified
	.arm
	.fpu softvfp
	.type	update_ratio, %function
update_ratio:
	@ 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	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L17
	ldr	r3, .L20
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L20
	str	r3, [r2]
	b	.L19
.L17:
	ldr	r3, .L20+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L20+4
	str	r3, [r2]
.L19:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L21:
	.align	2
.L20:
	.word	hits
	.word	misses
	.size	update_ratio, .-update_ratio
	.section	.rodata
	.align	2
.LC5:
	.ascii	"OMP Spawning threads\000"
	.global	__aeabi_idivmod
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_f2d
	.global	__aeabi_dcmpgt
	.text
	.align	2
	.global	sample
	.syntax unified
	.arm
	.fpu softvfp
	.type	sample, %function
sample:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #48
	mov	r3, #0
	str	r3, [fp, #-56]
	ldr	r0, .L35
	bl	puts
.L34:
	bl	rand
	mov	r2, r0
	ldr	r3, .L35+4
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-28]
	bl	rand
	mov	r2, r0
	ldr	r3, .L35+8
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-24]
	ldr	r3, .L35+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	radius_size
	mov	r3, r0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-16]
	rsb	r3, r3, #0
	str	r3, [fp, #-52]
	b	.L23
.L27:
	ldr	r3, [fp, #-16]
	rsb	r3, r3, #0
	str	r3, [fp, #-48]
	b	.L24
.L26:
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	blt	.L25
	ldr	r3, .L35+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	bge	.L25
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	blt	.L25
	ldr	r3, .L35+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bge	.L25
	ldr	r3, .L35+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L25
	mov	r3, #1
	str	r3, [fp, #-56]
.L25:
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L24:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	blt	.L26
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L23:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	blt	.L27
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bne	.L28
	ldr	r3, [fp, #-16]
	rsb	r3, r3, #0
	str	r3, [fp, #-52]
	b	.L29
.L33:
	ldr	r3, [fp, #-16]
	rsb	r3, r3, #0
	str	r3, [fp, #-48]
	b	.L30
.L32:
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	blt	.L31
	ldr	r3, .L35+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	bge	.L31
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	blt	.L31
	ldr	r3, .L35+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	bge	.L31
	ldr	r3, .L35+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3]
.L31:
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L30:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	blt	.L32
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L29:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	blt	.L33
.L28:
	ldr	r0, [fp, #-56]
	bl	update_ratio
	ldr	r3, .L35+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L34
	ldr	r3, .L35+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, .L35+20
	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
	mov	r4, r2
	mov	r5, r3
	ldr	r3, .L35+28
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	bne	.L34
	nop
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L36:
	.align	2
.L35:
	.word	.LC5
	.word	img_width
	.word	img_height
	.word	color_values
	.word	pixels
	.word	misses
	.word	hits
	.word	exit_ratio
	.size	sample, .-sample
	.section	.rodata
	.align	2
.LC6:
	.ascii	"Color values failed allocation\000"
	.align	2
.LC7:
	.ascii	"Pixels failed allocation\000"
	.text
	.align	2
	.global	setup_arrays
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_arrays, %function
setup_arrays:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	ldr	r3, .L43
	ldr	r3, [r3]
	mov	r1, #4
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L43+4
	str	r2, [r3]
	ldr	r3, .L43
	ldr	r3, [r3]
	mov	r1, #4
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L43+8
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L38
.L42:
	ldr	r3, .L43+12
	ldr	r3, [r3]
	mov	r0, r3
	ldr	r3, .L43+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r4, r2, r3
	mov	r1, #4
	bl	calloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, .L43+12
	ldr	r3, [r3]
	mov	r0, r3
	ldr	r3, .L43+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r4, r2, r3
	mov	r1, #4
	bl	calloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, .L43+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L39
	ldr	r0, .L43+16
	bl	puts
	mov	r3, #1
	b	.L40
.L39:
	ldr	r3, .L43+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L41
	ldr	r0, .L43+20
	bl	puts
	mov	r3, #1
	b	.L40
.L41:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L38:
	ldr	r3, .L43
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L42
	mov	r3, #0
.L40:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L44:
	.align	2
.L43:
	.word	img_height
	.word	color_values
	.word	pixels
	.word	img_width
	.word	.LC6
	.word	.LC7
	.size	setup_arrays, .-setup_arrays
	.section	.rodata
	.align	2
.LC8:
	.ascii	"Exited on failed command line parsing.\000"
	.align	2
.LC9:
	.ascii	"%ld %ld\012\000"
	.align	2
.LC10:
	.ascii	"Failed to read from given .grey file the dimensions"
	.ascii	" of the image!\012\000"
	.align	2
.LC11:
	.ascii	"Could not allocate memory for the image's color val"
	.ascii	"ues!\012\000"
	.align	2
.LC12:
	.ascii	"Cannot allocate space for the pixel values.\012\000"
	.align	2
.LC13:
	.ascii	"Reading in color values...\000"
	.align	2
.LC14:
	.ascii	"%ld\012\000"
	.align	2
.LC15:
	.ascii	"Multithreaded Anisotropic Sampling\012\011\011Start"
	.ascii	"ed with %d threads, will end at %.4f hits/misses.\012"
	.ascii	"\011\011Using grey file: %s (%ld, %ld)\012\000"
	.align	2
.LC16:
	.ascii	"Sampling took %0.2f seconds\012\000"
	.align	2
.LC17:
	.ascii	"Hits: %ld\012Misses: %ld\012\000"
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #60
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L59
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r2, fp, #44
	ldr	r3, .L59+4
	ldr	r1, [fp, #-52]
	ldr	r0, [fp, #-48]
	bl	parse_command_line
	mov	r3, r0
	cmp	r3, #0
	beq	.L46
	ldr	r0, .L59+8
	bl	puts
	mov	r3, #1
	b	.L57
.L46:
	ldr	r0, [fp, #-44]
	ldr	r3, .L59+12
	ldr	r2, .L59+16
	ldr	r1, .L59+20
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #1
	bgt	.L48
	ldr	r3, .L59+24
	ldr	r3, [r3]
	mov	r2, #66
	mov	r1, #1
	ldr	r0, .L59+28
	bl	fwrite
	mov	r3, #1
	b	.L57
.L48:
	bl	setup_arrays
	mov	r3, r0
	cmp	r3, #0
	beq	.L49
	mov	r3, #1
	b	.L57
.L49:
	ldr	r3, .L59+32
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L50
	ldr	r3, .L59+24
	ldr	r3, [r3]
	mov	r2, #56
	mov	r1, #1
	ldr	r0, .L59+36
	bl	fwrite
	mov	r3, #1
	b	.L57
.L50:
	ldr	r3, .L59+40
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L51
	ldr	r3, .L59+24
	ldr	r3, [r3]
	mov	r2, #44
	mov	r1, #1
	ldr	r0, .L59+44
	bl	fwrite
	mov	r3, #1
	b	.L57
.L51:
	ldr	r0, .L59+48
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L52
.L56:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L53
.L55:
	ldr	r3, [fp, #-44]
	sub	r2, fp, #40
	ldr	r1, .L59+52
	mov	r0, r3
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #1
	bne	.L54
	ldr	r3, .L59+32
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-40]
	str	r2, [r3]
.L54:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L53:
	ldr	r3, .L59+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	blt	.L55
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L52:
	ldr	r3, .L59+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	blt	.L56
	bl	omp_get_max_threads
	mov	r4, r0
	ldr	r3, .L59+4
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-52]
	add	r1, r1, #4
	ldr	r1, [r1]
	ldr	r0, .L59+16
	ldr	r0, [r0]
	ldr	ip, .L59+12
	ldr	ip, [ip]
	str	ip, [sp, #8]
	str	r0, [sp, #4]
	str	r1, [sp]
	mov	r1, r4
	ldr	r0, .L59+56
	bl	printf
	mov	r0, #0
	bl	time
	str	r0, [fp, #-24]
	sub	r3, fp, #36
	mov	r0, r3
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	ldr	r3, .L59+60
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L59+64
	mov	r2, #0
	str	r2, [r3]
	bl	sample
	mov	r0, #0
	bl	time
	str	r0, [fp, #-20]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L59+68
	bl	printf
	ldr	r3, .L59+60
	ldr	r3, [r3]
	ldr	r2, .L59+64
	ldr	r2, [r2]
	mov	r1, r3
	ldr	r0, .L59+72
	bl	printf
	mov	r3, #0
.L57:
	ldr	r2, .L59
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L58
	bl	__stack_chk_fail
.L58:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L60:
	.align	2
.L59:
	.word	.LC18
	.word	exit_ratio
	.word	.LC8
	.word	img_height
	.word	img_width
	.word	.LC9
	.word	stderr
	.word	.LC10
	.word	color_values
	.word	.LC11
	.word	pixels
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	hits
	.word	misses
	.word	.LC16
	.word	.LC17
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
