	.file	"89200222.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"rb"
.LC1:
	.string	"Unable to open file '%s'\n"
	.align 8
.LC2:
	.string	"Invalid image format (must be 'P6')\n"
.LC3:
	.string	"Unable to allocate memory\n"
.LC4:
	.string	"%d %d"
	.align 8
.LC5:
	.string	"Invalid image size (error loading '%s')\n"
.LC6:
	.string	"%d"
	.align 8
.LC7:
	.string	"Invalid rgb component (error loading '%s')\n"
	.align 8
.LC8:
	.string	"'%s' does not have 8-bits components\n"
.LC9:
	.string	"Error loading image '%s'\n"
	.text
	.type	readPPM, @function
readPPM:
.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 fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -72[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], 0
	jne	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -72[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rdx, QWORD PTR -48[rbp]
	lea	rax, -32[rbp]
	mov	esi, 16
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L3
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	movzx	eax, BYTE PTR -32[rbp]
	cmp	al, 80
	jne	.L4
	movzx	eax, BYTE PTR -31[rbp]
	cmp	al, 54
	je	.L5
.L4:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 36
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 26
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -52[rbp], eax
	jmp	.L7
.L9:
	nop
.L8:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	getc@PLT
	cmp	eax, 10
	jne	.L8
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -52[rbp], eax
.L7:
	cmp	DWORD PTR -52[rbp], 35
	je	.L9
	mov	rdx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	ungetc@PLT
	mov	rax, QWORD PTR -40[rbp]
	lea	rcx, 4[rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -48[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 2
	je	.L10
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -72[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	lea	rdx, -56[rbp]
	mov	rax, QWORD PTR -48[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 1
	je	.L11
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -72[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L11:
	mov	eax, DWORD PTR -56[rbp]
	cmp	eax, 255
	je	.L18
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -72[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L18:
	nop
.L13:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	cmp	eax, 10
	jne	.L13
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 4[rax]
	imul	eax, edx
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 8[rax], rdx
	cmp	QWORD PTR -40[rbp], 0
	jne	.L14
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 26
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 4[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	eax, ecx
	add	eax, eax
	add	eax, ecx
	movsx	rsi, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rcx, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	fread@PLT
	mov	rdx, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 4[rdx]
	movsx	rdx, edx
	cmp	rax, rdx
	je	.L15
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -72[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	readPPM, .-readPPM
	.globl	Histogram
	.type	Histogram, @function
Histogram:
.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 -56[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR [rax]
	imul	eax, edx
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	movss	DWORD PTR -20[rbp], xmm0
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -16[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR -12[rbp], eax
	call	omp_get_wtime@PLT
	movq	rax, xmm0
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -44[rbp], 0
	jmp	.L20
.L21:
	mov	rax, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -44[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -44[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rcx
	cvttsd2si	edx, xmm0
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -44[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rcx
	movzx	eax, BYTE PTR 2[rax]
	movzx	eax, al
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -44[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rcx
	cvttsd2si	edx, xmm0
	mov	BYTE PTR 2[rax], dl
	mov	rax, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -44[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rcx
	movzx	eax, BYTE PTR 1[rax]
	movzx	eax, al
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -44[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rcx
	cvttsd2si	edx, xmm0
	mov	BYTE PTR 1[rax], dl
	add	DWORD PTR -44[rbp], 1
.L20:
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -44[rbp]
	movss	xmm0, DWORD PTR -20[rbp]
	comiss	xmm0, xmm1
	ja	.L21
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -40[rbp], 0
	jmp	.L22
.L30:
	mov	DWORD PTR -36[rbp], 0
	jmp	.L23
.L29:
	mov	DWORD PTR -32[rbp], 0
	jmp	.L24
.L28:
	mov	DWORD PTR -44[rbp], 0
	jmp	.L25
.L27:
	mov	rax, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -44[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	cmp	DWORD PTR -40[rbp], eax
	jne	.L26
	mov	rax, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -44[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rcx
	movzx	eax, BYTE PTR 1[rax]
	movzx	eax, al
	cmp	DWORD PTR -36[rbp], eax
	jne	.L26
	mov	rax, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -44[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rcx
	movzx	eax, BYTE PTR 2[rax]
	movzx	eax, al
	cmp	DWORD PTR -32[rbp], eax
	jne	.L26
	add	DWORD PTR -24[rbp], 1
.L26:
	add	DWORD PTR -44[rbp], 1
.L25:
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -44[rbp]
	movss	xmm0, DWORD PTR -20[rbp]
	comiss	xmm0, xmm1
	ja	.L27
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	divss	xmm0, DWORD PTR -20[rbp]
	movss	DWORD PTR [rax], xmm0
	mov	DWORD PTR -24[rbp], 0
	add	DWORD PTR -28[rbp], 1
	add	DWORD PTR -32[rbp], 1
.L24:
	cmp	DWORD PTR -32[rbp], 3
	jle	.L28
	add	DWORD PTR -36[rbp], 1
.L23:
	cmp	DWORD PTR -36[rbp], 3
	jle	.L29
	add	DWORD PTR -40[rbp], 1
.L22:
	cmp	DWORD PTR -40[rbp], 3
	jle	.L30
	call	omp_get_wtime@PLT
	movq	rax, xmm0
	movq	xmm0, rax
	subsd	xmm0, QWORD PTR -8[rbp]
	movsd	QWORD PTR -8[rbp], xmm0
	movsd	xmm0, QWORD PTR -8[rbp]
	movq	rax, xmm0
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	Histogram, .-Histogram
	.section	.rodata
	.align 8
.LC10:
	.string	"Error: missing path to input file\n"
.LC12:
	.string	"%0.3f "
.LC13:
	.string	"%lf\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	cmp	DWORD PTR -36[rbp], 1
	jg	.L33
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 34
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L34
.L33:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	readPPM
	mov	QWORD PTR -24[rbp], rax
	mov	edi, 256
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -32[rbp], 0
	jmp	.L35
.L36:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	pxor	xmm0, xmm0
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -32[rbp], 1
.L35:
	cmp	DWORD PTR -32[rbp], 63
	jle	.L36
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	Histogram
	movq	rax, xmm0
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -28[rbp], 0
	jmp	.L37
.L38:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	lea	rdi, .LC12[rip]
	mov	eax, 1
	call	printf@PLT
	add	DWORD PTR -28[rbp], 1
.L37:
	cmp	DWORD PTR -28[rbp], 63
	jle	.L38
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	movq	xmm0, rdx
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 1
	call	fprintf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"89200222.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"rb\000"
	.align	2
.LC1:
	.ascii	"Unable to open file '%s'\012\000"
	.align	2
.LC2:
	.ascii	"Invalid image format (must be 'P6')\012\000"
	.align	2
.LC3:
	.ascii	"Unable to allocate memory\012\000"
	.align	2
.LC4:
	.ascii	"%d %d\000"
	.align	2
.LC5:
	.ascii	"Invalid image size (error loading '%s')\012\000"
	.align	2
.LC6:
	.ascii	"%d\000"
	.align	2
.LC7:
	.ascii	"Invalid rgb component (error loading '%s')\012\000"
	.align	2
.LC8:
	.ascii	"'%s' does not have 8-bits components\012\000"
	.align	2
.LC9:
	.ascii	"Error loading image '%s'\012\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	readPPM, %function
readPPM:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L19+4
	ldr	r0, [fp, #-48]
	bl	fopen
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L19+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-48]
	ldr	r1, .L19+12
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L2:
	sub	r3, fp, #24
	ldr	r2, [fp, #-32]
	mov	r1, #16
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L3
	ldr	r0, [fp, #-48]
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	ldrb	r3, [fp, #-24]	@ zero_extendqisi2
	cmp	r3, #80
	bne	.L4
	ldrb	r3, [fp, #-23]	@ zero_extendqisi2
	cmp	r3, #54
	beq	.L5
.L4:
	ldr	r3, .L19+8
	ldr	r3, [r3]
	mov	r2, #36
	mov	r1, #1
	ldr	r0, .L19+16
	bl	fwrite
	mov	r0, #1
	bl	exit
.L5:
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L6
	ldr	r3, .L19+8
	ldr	r3, [r3]
	mov	r2, #26
	mov	r1, #1
	ldr	r0, .L19+20
	bl	fwrite
	mov	r0, #1
	bl	exit
.L6:
	ldr	r0, [fp, #-32]
	bl	getc
	str	r0, [fp, #-36]
	b	.L7
.L9:
	nop
.L8:
	ldr	r0, [fp, #-32]
	bl	getc
	mov	r3, r0
	cmp	r3, #10
	bne	.L8
	ldr	r0, [fp, #-32]
	bl	getc
	str	r0, [fp, #-36]
.L7:
	ldr	r3, [fp, #-36]
	cmp	r3, #35
	beq	.L9
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-36]
	bl	ungetc
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r1, .L19+24
	ldr	r0, [fp, #-32]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #2
	beq	.L10
	ldr	r3, .L19+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-48]
	ldr	r1, .L19+28
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L10:
	sub	r3, fp, #40
	mov	r2, r3
	ldr	r1, .L19+32
	ldr	r0, [fp, #-32]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L11
	ldr	r3, .L19+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-48]
	ldr	r1, .L19+36
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L11:
	ldr	r3, [fp, #-40]
	cmp	r3, #255
	beq	.L18
	ldr	r3, .L19+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-48]
	ldr	r1, .L19+40
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L18:
	nop
.L13:
	ldr	r0, [fp, #-32]
	bl	fgetc
	mov	r3, r0
	cmp	r3, #10
	bne	.L13
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	ldr	r2, [r2, #4]
	mul	r3, r2, r3
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-28]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L14
	ldr	r3, .L19+8
	ldr	r3, [r3]
	mov	r2, #26
	mov	r1, #1
	ldr	r0, .L19+20
	bl	fwrite
	mov	r0, #1
	bl	exit
.L14:
	ldr	r3, [fp, #-28]
	ldr	r0, [r3, #8]
	ldr	r3, [fp, #-28]
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	mov	r1, r3
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r3, [fp, #-32]
	bl	fread
	mov	r2, r0
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	beq	.L15
	ldr	r3, .L19+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-48]
	ldr	r1, .L19+44
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L15:
	ldr	r0, [fp, #-32]
	bl	fclose
	ldr	r3, [fp, #-28]
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC10
	.word	.LC0
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	readPPM, .-readPPM
	.global	__aeabi_i2f
	.global	__aeabi_i2d
	.global	__aeabi_d2uiz
	.global	__aeabi_fcmpgt
	.global	__aeabi_fdiv
	.global	__aeabi_dsub
	.align	2
	.global	Histogram
	.syntax unified
	.arm
	.fpu softvfp
	.type	Histogram, %function
Histogram:
	@ 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, [fp, #-64]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-64]
	ldr	r2, [r2]
	mul	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	str	r3, [fp, #-32]	@ float
	ldr	r3, [fp, #-64]
	ldr	r3, [r3]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-64]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-24]
	bl	omp_get_wtime
	str	r0, [fp, #-20]
	str	r1, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L22
.L23:
	ldr	r3, [fp, #-64]
	ldr	r1, [r3, #8]
	ldr	r2, [fp, #-56]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r2, r3, #63
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #6
	mov	r0, r3
	bl	__aeabi_i2d
	ldr	r3, [fp, #-64]
	ldr	ip, [r3, #8]
	ldr	r2, [fp, #-56]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r4, ip, r3
	bl	__aeabi_d2uiz
	mov	r3, r0
	and	r3, r3, #255
	strb	r3, [r4]
	ldr	r3, [fp, #-64]
	ldr	r1, [r3, #8]
	ldr	r2, [fp, #-56]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r1, r3
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	add	r2, r3, #63
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #6
	mov	r0, r3
	bl	__aeabi_i2d
	ldr	r3, [fp, #-64]
	ldr	ip, [r3, #8]
	ldr	r2, [fp, #-56]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r4, ip, r3
	bl	__aeabi_d2uiz
	mov	r3, r0
	and	r3, r3, #255
	strb	r3, [r4, #2]
	ldr	r3, [fp, #-64]
	ldr	r1, [r3, #8]
	ldr	r2, [fp, #-56]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r1, r3
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	add	r2, r3, #63
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #6
	mov	r0, r3
	bl	__aeabi_i2d
	ldr	r3, [fp, #-64]
	ldr	ip, [r3, #8]
	ldr	r2, [fp, #-56]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r4, ip, r3
	bl	__aeabi_d2uiz
	mov	r3, r0
	and	r3, r3, #255
	strb	r3, [r4, #1]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L22:
	ldr	r0, [fp, #-56]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-32]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	bne	.L23
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L24
.L32:
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L25
.L31:
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L26
.L30:
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L27
.L29:
	ldr	r3, [fp, #-64]
	ldr	r1, [r3, #8]
	ldr	r2, [fp, #-56]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-52]
	cmp	r3, r2
	bne	.L28
	ldr	r3, [fp, #-64]
	ldr	r1, [r3, #8]
	ldr	r2, [fp, #-56]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r1, r3
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-48]
	cmp	r3, r2
	bne	.L28
	ldr	r3, [fp, #-64]
	ldr	r1, [r3, #8]
	ldr	r2, [fp, #-56]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r1, r3
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-44]
	cmp	r3, r2
	bne	.L28
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L28:
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L27:
	ldr	r0, [fp, #-56]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-32]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	bne	.L29
	ldr	r0, [fp, #-36]
	bl	__aeabi_i2f
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-68]
	add	r4, r2, r3
	ldr	r1, [fp, #-32]	@ float
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [r4]	@ float
	mov	r3, #0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L26:
	ldr	r3, [fp, #-44]
	cmp	r3, #3
	ble	.L30
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L25:
	ldr	r3, [fp, #-48]
	cmp	r3, #3
	ble	.L31
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L24:
	ldr	r3, [fp, #-52]
	cmp	r3, #3
	ble	.L32
	bl	omp_get_wtime
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	Histogram, .-Histogram
	.section	.rodata
	.align	2
.LC11:
	.ascii	"Error: missing path to input file\012\000"
	.global	__aeabi_f2d
	.align	2
.LC12:
	.ascii	"%0.3f \000"
	.align	2
.LC13:
	.ascii	"%lf\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	bgt	.L35
	ldr	r3, .L41
	ldr	r3, [r3]
	mov	r2, #34
	mov	r1, #1
	ldr	r0, .L41+4
	bl	fwrite
	mov	r3, #1
	b	.L36
.L35:
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	readPPM
	str	r0, [fp, #-20]
	mov	r0, #256
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L37
.L38:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]	@ float
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L37:
	ldr	r3, [fp, #-28]
	cmp	r3, #63
	ble	.L38
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	Histogram
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L39
.L40:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L41+8
	bl	printf
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L39:
	ldr	r3, [fp, #-24]
	cmp	r3, #63
	ble	.L40
	mov	r0, #10
	bl	putchar
	ldr	r3, .L41
	ldr	r0, [r3]
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	ldr	r1, .L41+12
	bl	fprintf
	ldr	r0, [fp, #-16]
	bl	free
	mov	r3, #0
.L36:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L42:
	.align	2
.L41:
	.word	stderr
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
