	.file	"93918.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"manc.ppm"
.LC1:
	.string	"wb"
.LC2:
	.string	"P6\n #\n %d\n %d\n 255\n"
	.align 8
.LC10:
	.string	"Mandelbrot host execution time (ms): %f \n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	lea	rax, .LC0[rip]
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	ecx, 4096
	mov	edx, 4096
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -100[rbp], 16777216
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	call	clock@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	DWORD PTR -112[rbp], 0
	jmp	.L2
.L12:
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -112[rbp]
	movsd	xmm0, QWORD PTR .LC3[rip]
	mulsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR .LC4[rip]
	divsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR .LC5[rip]
	subsd	xmm0, xmm1
	movsd	QWORD PTR -88[rbp], xmm0
	movsd	xmm0, QWORD PTR -88[rbp]
	movq	xmm1, QWORD PTR .LC6[rip]
	andpd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC7[rip]
	comisd	xmm0, xmm1
	jbe	.L3
	pxor	xmm0, xmm0
	movsd	QWORD PTR -88[rbp], xmm0
.L3:
	mov	DWORD PTR -116[rbp], 0
	jmp	.L5
.L11:
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -116[rbp]
	movsd	xmm0, QWORD PTR .LC3[rip]
	mulsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR .LC4[rip]
	divsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR .LC9[rip]
	subsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -80[rbp], xmm0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -72[rbp], xmm0
	movsd	xmm0, QWORD PTR -80[rbp]
	mulsd	xmm0, xmm0
	movsd	QWORD PTR -64[rbp], xmm0
	movsd	xmm0, QWORD PTR -72[rbp]
	mulsd	xmm0, xmm0
	movsd	QWORD PTR -56[rbp], xmm0
	mov	eax, DWORD PTR -112[rbp]
	sal	eax, 12
	mov	edx, eax
	mov	eax, DWORD PTR -116[rbp]
	add	eax, edx
	mov	DWORD PTR -92[rbp], eax
	mov	DWORD PTR -108[rbp], 0
	jmp	.L6
.L8:
	movsd	xmm0, QWORD PTR -80[rbp]
	addsd	xmm0, xmm0
	mulsd	xmm0, QWORD PTR -72[rbp]
	movsd	xmm1, QWORD PTR -88[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -72[rbp], xmm0
	movsd	xmm0, QWORD PTR -64[rbp]
	subsd	xmm0, QWORD PTR -56[rbp]
	movsd	xmm1, QWORD PTR -8[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -80[rbp], xmm0
	movsd	xmm0, QWORD PTR -80[rbp]
	mulsd	xmm0, xmm0
	movsd	QWORD PTR -64[rbp], xmm0
	movsd	xmm0, QWORD PTR -72[rbp]
	mulsd	xmm0, xmm0
	movsd	QWORD PTR -56[rbp], xmm0
	add	DWORD PTR -108[rbp], 1
.L6:
	cmp	DWORD PTR -108[rbp], 9999
	jg	.L7
	movsd	xmm0, QWORD PTR -64[rbp]
	movapd	xmm1, xmm0
	addsd	xmm1, QWORD PTR -56[rbp]
	movsd	xmm0, QWORD PTR .LC3[rip]
	comisd	xmm0, xmm1
	ja	.L8
.L7:
	cmp	DWORD PTR -108[rbp], 10000
	jne	.L9
	mov	eax, DWORD PTR -92[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1
	jmp	.L10
.L9:
	mov	eax, DWORD PTR -92[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 0
.L10:
	add	DWORD PTR -116[rbp], 1
.L5:
	cmp	DWORD PTR -116[rbp], 4095
	jle	.L11
	add	DWORD PTR -112[rbp], 1
.L2:
	cmp	DWORD PTR -112[rbp], 4095
	jle	.L12
	call	clock@PLT
	sub	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rcx, QWORD PTR -16[rbp]
	movabs	rdx, 2361183241434822607
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 7
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rax
	movss	DWORD PTR -96[rbp], xmm0
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, DWORD PTR -96[rbp]
	movq	rax, xmm2
	movq	xmm0, rax
	lea	rdi, .LC10[rip]
	mov	eax, 1
	call	printf@PLT
	mov	DWORD PTR -104[rbp], 0
	jmp	.L13
.L16:
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 1
	jne	.L14
	mov	BYTE PTR color.0[rip], 0
	mov	BYTE PTR color.0[rip+1], 0
	mov	BYTE PTR color.0[rip+2], 0
	jmp	.L15
.L14:
	mov	BYTE PTR color.0[rip], -1
	mov	BYTE PTR color.0[rip+1], -1
	mov	BYTE PTR color.0[rip+2], -1
.L15:
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rax
	mov	edx, 3
	mov	esi, 1
	lea	rdi, color.0[rip]
	call	fwrite@PLT
	add	DWORD PTR -104[rbp], 1
.L13:
	mov	eax, DWORD PTR -104[rbp]
	cmp	eax, DWORD PTR -100[rbp]
	jl	.L16
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.local	color.0
	.comm	color.0,3,1
	.section	.rodata
	.align 8
.LC3:
	.long	0
	.long	1074790400
	.align 8
.LC4:
	.long	0
	.long	1085276160
	.align 8
.LC5:
	.long	0
	.long	1073741824
	.align 16
.LC6:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.align 8
.LC7:
	.long	0
	.long	1061158912
	.align 8
.LC9:
	.long	0
	.long	1074003968
	.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	"93918.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"manc.ppm\000"
	.align	2
.LC1:
	.ascii	"wb\000"
	.align	2
.LC2:
	.ascii	"P6\012 #\012 %d\012 %d\012 255\012\000"
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_ddiv
	.global	__aeabi_dsub
	.global	__aeabi_dcmplt
	.global	__aeabi_dadd
	.global	__aeabi_i2f
	.global	__aeabi_f2d
	.align	2
.LC3:
	.ascii	"Mandelbrot host execution time (ms): %f \012\000"
	.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, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #96
	ldr	r3, .L19
	str	r3, [fp, #-92]
	ldr	r1, .L19+4
	ldr	r0, [fp, #-92]
	bl	fopen
	str	r0, [fp, #-88]
	mov	r3, #4096
	mov	r2, #4096
	ldr	r1, .L19+8
	ldr	r0, [fp, #-88]
	bl	fprintf
	mov	r3, #16777216
	str	r3, [fp, #-84]
	ldr	r3, [fp, #-84]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-80]
	bl	clock
	str	r0, [fp, #-76]
	mov	r3, #0
	str	r3, [fp, #-104]
	b	.L2
.L12:
	ldr	r0, [fp, #-104]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L19+12
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L19+16
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	mov	r3, #1073741824
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	ldr	r4, [fp, #-60]
	ldr	r3, [fp, #-56]
	bic	r5, r3, #-2147483648
	mov	r2, #0
	mov	r3, #1061158912
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
.L3:
	mov	r3, #0
	str	r3, [fp, #-108]
	b	.L5
.L11:
	ldr	r0, [fp, #-108]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L19+12
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L19+16
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L19+20
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	mov	r2, #0
	mov	r3, #0
	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, #-36]
	str	r3, [fp, #-32]
	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
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-104]
	lsl	r2, r3, #12
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-100]
	b	.L6
.L8:
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	mov	r2, r0
	mov	r3, r1
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	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, #-36]
	str	r3, [fp, #-32]
	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
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
.L6:
	ldr	r3, [fp, #-100]
	ldr	r2, .L19+24
	cmp	r3, r2
	bgt	.L7
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L19+12
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
.L7:
	ldr	r3, [fp, #-100]
	ldr	r2, .L19+28
	cmp	r3, r2
	bne	.L9
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-80]
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3]
	b	.L10
.L9:
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-80]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
.L10:
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
.L5:
	ldr	r3, [fp, #-108]
	cmp	r3, #4096
	blt	.L11
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
.L2:
	ldr	r3, [fp, #-104]
	cmp	r3, #4096
	blt	.L12
	bl	clock
	mov	r2, r0
	ldr	r3, [fp, #-76]
	sub	r3, r2, r3
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-72]
	ldr	r2, .L19+32
	smull	r1, r2, r3, r2
	asr	r2, r2, #6
	asr	r3, r3, #31
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	str	r3, [fp, #-68]	@ float
	ldr	r0, [fp, #-68]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L19+36
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-96]
	b	.L13
.L16:
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-80]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L14
	ldr	r3, .L19+40
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L19+40
	mov	r2, #0
	strb	r2, [r3, #1]
	ldr	r3, .L19+40
	mov	r2, #0
	strb	r2, [r3, #2]
	b	.L15
.L14:
	ldr	r3, .L19+40
	mvn	r2, #0
	strb	r2, [r3]
	ldr	r3, .L19+40
	mvn	r2, #0
	strb	r2, [r3, #1]
	ldr	r3, .L19+40
	mvn	r2, #0
	strb	r2, [r3, #2]
.L15:
	ldr	r3, [fp, #-88]
	mov	r2, #3
	mov	r1, #1
	ldr	r0, .L19+40
	bl	fwrite
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	str	r3, [fp, #-96]
.L13:
	ldr	r2, [fp, #-96]
	ldr	r3, [fp, #-84]
	cmp	r2, r3
	blt	.L16
	ldr	r0, [fp, #-88]
	bl	fclose
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	1074790400
	.word	1085276160
	.word	1074003968
	.word	9999
	.word	10000
	.word	274877907
	.word	.LC3
	.word	color.6299
	.size	main, .-main
	.local	color.6299
	.comm	color.6299,3,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
