	.file	"643509.c"
	.intel_syntax noprefix
	.text
	.globl	initialIterations
	.section	.rodata
	.align 4
	.type	initialIterations, @object
	.size	initialIterations, 4
initialIterations:
	.long	100
	.globl	totalThreads
	.align 4
	.type	totalThreads, @object
	.size	totalThreads, 4
totalThreads:
	.long	8
	.globl	scalingfact
	.align 8
	.type	scalingfact, @object
	.size	scalingfact, 8
scalingfact:
	.long	-1717986918
	.long	1069128089
	.globl	movingfact
	.align 8
	.type	movingfact, @object
	.size	movingfact, 8
movingfact:
	.long	0
	.long	1077149696
	.globl	allThreads
	.bss
	.align 8
	.type	allThreads, @object
	.size	allThreads, 8
allThreads:
	.zero	8
	.section	.rodata
.LC0:
	.string	"scale %f\n"
.LC1:
	.string	"height = %d\n"
.LC5:
	.string	"c_im = %f\n"
.LC6:
	.string	"c_re_left = %f\n"
.LC7:
	.string	"re_step = %f\n"
.LC8:
	.string	"im_step = %f\n"
	.text
	.globl	debug
	.type	debug, @function
debug:
.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 -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	DWORD PTR -68[rbp], edx
	mov	DWORD PTR -72[rbp], ecx
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	DWORD PTR -40[rbp], eax
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	movq	xmm0, rax
	lea	rdi, .LC0[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 20[rax]
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -64[rbp]
	movsd	xmm1, QWORD PTR [rax]
	movsd	xmm0, QWORD PTR .LC2[rip]
	mulsd	xmm1, xmm0
	mov	rax, QWORD PTR -64[rbp]
	movsd	xmm0, QWORD PTR 8[rax]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -32[rbp], xmm0
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -68[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -36[rbp]
	movsd	xmm3, QWORD PTR .LC3[rip]
	movapd	xmm2, xmm1
	divsd	xmm2, xmm3
	movapd	xmm1, xmm0
	subsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR .LC4[rip]
	mulsd	xmm0, xmm1
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -36[rbp]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	mov	rax, QWORD PTR -64[rbp]
	movsd	xmm0, QWORD PTR [rax]
	mulsd	xmm1, xmm0
	mov	rax, QWORD PTR -64[rbp]
	movsd	xmm0, QWORD PTR 16[rax]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -24[rbp], xmm0
	mov	rax, QWORD PTR -24[rbp]
	movq	xmm0, rax
	lea	rdi, .LC5[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rax, QWORD PTR -32[rbp]
	movq	xmm0, rax
	lea	rdi, .LC6[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rax, QWORD PTR -64[rbp]
	movsd	xmm1, QWORD PTR [rax]
	movsd	xmm0, QWORD PTR .LC4[rip]
	mulsd	xmm0, xmm1
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -40[rbp]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -16[rbp], xmm0
	mov	rax, QWORD PTR -64[rbp]
	movsd	xmm1, QWORD PTR [rax]
	movsd	xmm0, QWORD PTR .LC4[rip]
	mulsd	xmm0, xmm1
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -36[rbp]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	mov	rax, QWORD PTR -16[rbp]
	movq	xmm0, rax
	lea	rdi, .LC7[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	movq	xmm0, rax
	lea	rdi, .LC8[rip]
	mov	eax, 1
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	debug, .-debug
	.globl	calcMandelbrotPartInC
	.type	calcMandelbrotPartInC, @function
calcMandelbrotPartInC:
.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, 24
	mov	QWORD PTR -120[rbp], rdi
	mov	QWORD PTR -128[rbp], rsi
	mov	DWORD PTR -132[rbp], edx
	mov	DWORD PTR -136[rbp], ecx
	mov	QWORD PTR -144[rbp], r8
	mov	rax, QWORD PTR -120[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	DWORD PTR -92[rbp], eax
	mov	rax, QWORD PTR -120[rbp]
	mov	eax, DWORD PTR 20[rax]
	mov	DWORD PTR -88[rbp], eax
	mov	rax, QWORD PTR -120[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	edx, DWORD PTR -132[rbp]
	imul	eax, edx
	mov	DWORD PTR -108[rbp], eax
	mov	rax, QWORD PTR -128[rbp]
	movsd	xmm1, QWORD PTR [rax]
	movsd	xmm0, QWORD PTR .LC2[rip]
	mulsd	xmm1, xmm0
	mov	rax, QWORD PTR -128[rbp]
	movsd	xmm0, QWORD PTR 8[rax]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -32[rbp], xmm0
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -132[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -88[rbp]
	movsd	xmm3, QWORD PTR .LC3[rip]
	movapd	xmm2, xmm1
	divsd	xmm2, xmm3
	movapd	xmm1, xmm0
	subsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR .LC4[rip]
	mulsd	xmm0, xmm1
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -88[rbp]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	mov	rax, QWORD PTR -128[rbp]
	movsd	xmm0, QWORD PTR [rax]
	mulsd	xmm1, xmm0
	mov	rax, QWORD PTR -128[rbp]
	movsd	xmm0, QWORD PTR 16[rax]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -80[rbp], xmm0
	mov	rax, QWORD PTR -128[rbp]
	movsd	xmm1, QWORD PTR [rax]
	movsd	xmm0, QWORD PTR .LC4[rip]
	mulsd	xmm0, xmm1
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -92[rbp]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -24[rbp], xmm0
	mov	rax, QWORD PTR -128[rbp]
	movsd	xmm1, QWORD PTR [rax]
	movsd	xmm0, QWORD PTR .LC4[rip]
	mulsd	xmm0, xmm1
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -88[rbp]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -16[rbp], xmm0
	mov	edx, DWORD PTR -132[rbp]
	mov	eax, DWORD PTR -136[rbp]
	add	eax, edx
	mov	DWORD PTR -84[rbp], eax
	mov	eax, DWORD PTR -132[rbp]
	mov	DWORD PTR -104[rbp], eax
	jmp	.L3
.L10:
	movsd	xmm0, QWORD PTR -32[rbp]
	movsd	QWORD PTR -72[rbp], xmm0
	mov	DWORD PTR -100[rbp], 0
	jmp	.L4
.L9:
	pxor	xmm0, xmm0
	movsd	QWORD PTR -64[rbp], xmm0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -56[rbp], xmm0
	mov	DWORD PTR -96[rbp], 0
	movsd	xmm0, QWORD PTR -64[rbp]
	mulsd	xmm0, xmm0
	movsd	QWORD PTR -48[rbp], xmm0
	movsd	xmm0, QWORD PTR -56[rbp]
	mulsd	xmm0, xmm0
	movsd	QWORD PTR -40[rbp], xmm0
	jmp	.L5
.L8:
	movsd	xmm0, QWORD PTR -48[rbp]
	subsd	xmm0, QWORD PTR -40[rbp]
	movsd	xmm1, QWORD PTR -72[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	movsd	xmm0, QWORD PTR -64[rbp]
	addsd	xmm0, xmm0
	mulsd	xmm0, QWORD PTR -56[rbp]
	movsd	xmm1, QWORD PTR -80[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -56[rbp], xmm0
	movsd	xmm0, QWORD PTR -8[rbp]
	movsd	QWORD PTR -64[rbp], xmm0
	movsd	xmm0, QWORD PTR -64[rbp]
	mulsd	xmm0, xmm0
	movsd	QWORD PTR -48[rbp], xmm0
	movsd	xmm0, QWORD PTR -56[rbp]
	mulsd	xmm0, xmm0
	movsd	QWORD PTR -40[rbp], xmm0
	add	DWORD PTR -96[rbp], 1
.L5:
	movsd	xmm0, QWORD PTR -48[rbp]
	movapd	xmm1, xmm0
	addsd	xmm1, QWORD PTR -40[rbp]
	movsd	xmm0, QWORD PTR .LC4[rip]
	comisd	xmm0, xmm1
	jb	.L6
	mov	rax, QWORD PTR -128[rbp]
	mov	eax, DWORD PTR 24[rax]
	cmp	DWORD PTR -96[rbp], eax
	jl	.L8
.L6:
	mov	rax, QWORD PTR -128[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR -108[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -144[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	movsd	xmm0, QWORD PTR -72[rbp]
	addsd	xmm0, QWORD PTR -24[rbp]
	movsd	QWORD PTR -72[rbp], xmm0
	add	DWORD PTR -108[rbp], 1
	add	DWORD PTR -100[rbp], 1
.L4:
	mov	eax, DWORD PTR -100[rbp]
	cmp	eax, DWORD PTR -92[rbp]
	jl	.L9
	movsd	xmm0, QWORD PTR -80[rbp]
	addsd	xmm0, QWORD PTR -16[rbp]
	movsd	QWORD PTR -80[rbp], xmm0
	add	DWORD PTR -104[rbp], 1
.L3:
	mov	eax, DWORD PTR -104[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	jl	.L10
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	calcMandelbrotPartInC, .-calcMandelbrotPartInC
	.globl	totalTime
	.type	totalTime, @function
totalTime:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, rdi
	mov	rcx, rsi
	mov	rdx, rcx
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -8[rbp], rdx
	mov	rax, QWORD PTR -16[rbp]
	imul	rdx, rax, 1000000000
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	totalTime, .-totalTime
	.globl	calcMandelbrotPart
	.type	calcMandelbrotPart, @function
calcMandelbrotPart:
.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, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	DWORD PTR -20[rbp], edx
	mov	DWORD PTR -24[rbp], ecx
	mov	QWORD PTR -32[rbp], r8
	mov	rdi, QWORD PTR -32[rbp]
	mov	ecx, DWORD PTR -24[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	rsi, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	mandelbrotAsmV@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	calcMandelbrotPart, .-calcMandelbrotPart
	.globl	threadedFunc
	.type	threadedFunc, @function
threadedFunc:
.LFB10:
	.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	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 104[rax]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L16
.L20:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	jmp	.L17
.L18:
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 56
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_cond_wait@PLT
.L17:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 48[rax]
	test	eax, eax
	je	.L18
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 48[rax]
	test	eax, eax
	je	.L19
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, QWORD PTR 144[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	ecx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, QWORD PTR 136[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 128[rax]
	mov	r8, rdi
	mov	rdi, rax
	call	calcMandelbrotPart
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 8
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 56
	mov	rdi, rax
	call	pthread_cond_signal@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 8
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 48[rax], 0
.L19:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
.L16:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 120[rax]
	test	eax, eax
	je	.L20
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	threadedFunc, .-threadedFunc
	.globl	initThreads
	.type	initThreads, @function
initThreads:
.LFB11:
	.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	edi, 104
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], 0
	mov	edx, 8
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	esi, 0
	mov	rdi, rax
	call	pthread_mutex_init@PLT
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 56
	mov	esi, 0
	mov	rdi, rax
	call	pthread_cond_init@PLT
	mov	edi, 608
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 48[rax], rdx
	mov	DWORD PTR -20[rbp], 0
	jmp	.L22
.L23:
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR 48[rax]
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR 48[rax]
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	DWORD PTR 4[rax], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR 48[rax]
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	add	rax, 8
	mov	esi, 0
	mov	rdi, rax
	call	pthread_mutex_init@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR 48[rax]
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	add	rax, 8
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR 48[rax]
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	DWORD PTR 48[rax], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR 48[rax]
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	add	rax, 56
	mov	esi, 0
	mov	rdi, rax
	call	pthread_cond_init@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR 48[rax]
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	DWORD PTR 120[rax], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR 48[rax]
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rdx, [rcx+rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 104[rdx], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR 48[rax]
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR 48[rax]
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	lea	rdi, 112[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	lea	rdx, threadedFunc[rip]
	mov	esi, 0
	call	pthread_create@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR 48[rax]
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	add	rax, 8
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	add	DWORD PTR -20[rbp], 1
.L22:
	mov	eax, 8
	cmp	DWORD PTR -20[rbp], eax
	jl	.L23
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR allThreads[rip], rax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	initThreads, .-initThreads
	.globl	triggerDrawingInThreads
	.type	triggerDrawingInThreads, @function
triggerDrawingInThreads:
.LFB12:
	.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	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR allThreads[rip]
	add	rax, 8
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR allThreads[rip]
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR allThreads[rip]
	add	rax, 8
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L25
.L26:
	mov	rax, QWORD PTR allThreads[rip]
	mov	rcx, QWORD PTR 48[rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rdx, [rcx+rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 128[rdx], rax
	mov	rax, QWORD PTR allThreads[rip]
	mov	rcx, QWORD PTR 48[rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rdx, [rcx+rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR 136[rdx], rax
	mov	rax, QWORD PTR allThreads[rip]
	mov	rcx, QWORD PTR 48[rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rdx, [rcx+rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 144[rdx], rax
	mov	rax, QWORD PTR allThreads[rip]
	mov	rcx, QWORD PTR 48[rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	add	rax, 8
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR allThreads[rip]
	mov	rcx, QWORD PTR 48[rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	DWORD PTR 48[rax], 1
	mov	rax, QWORD PTR allThreads[rip]
	mov	rcx, QWORD PTR 48[rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	add	rax, 56
	mov	rdi, rax
	call	pthread_cond_signal@PLT
	mov	rax, QWORD PTR allThreads[rip]
	mov	rcx, QWORD PTR 48[rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	add	rax, 8
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	add	DWORD PTR -4[rbp], 1
.L25:
	mov	rax, QWORD PTR allThreads[rip]
	mov	eax, DWORD PTR 4[rax]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L26
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	triggerDrawingInThreads, .-triggerDrawingInThreads
	.globl	waitForThreads
	.type	waitForThreads, @function
waitForThreads:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR allThreads[rip]
	add	rax, 8
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	jmp	.L28
.L29:
	mov	rax, QWORD PTR allThreads[rip]
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR allThreads[rip]
	add	rax, 56
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_cond_wait@PLT
.L28:
	mov	rax, QWORD PTR allThreads[rip]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR allThreads[rip]
	mov	eax, DWORD PTR 4[rax]
	cmp	edx, eax
	jl	.L29
	mov	rax, QWORD PTR allThreads[rip]
	add	rax, 8
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	waitForThreads, .-waitForThreads
	.section	.rodata
.LC10:
	.string	"image was null"
.LC11:
	.string	"xinitimage done"
	.text
	.globl	drawMandelbrot
	.type	drawMandelbrot, @function
drawMandelbrot:
.LFB14:
	.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	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -16[rbp], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 48[rax]
	test	rax, rax
	jne	.L31
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 20[rax]
	imul	eax, edx
	sal	eax, 2
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	jmp	.L32
.L31:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -16[rbp], rax
.L32:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	DWORD PTR -24[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 20[rax]
	mov	DWORD PTR -20[rbp], eax
	mov	rdx, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	triggerDrawingInThreads
	mov	eax, 0
	call	waitForThreads
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 48[rax]
	test	rax, rax
	jne	.L33
	mov	ecx, DWORD PTR -20[rbp]
	mov	edx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 24[rax]
	mov	r10d, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, QWORD PTR -16[rbp]
	push	0
	push	32
	push	rcx
	push	rdx
	mov	r9, rdi
	mov	r8d, 0
	mov	ecx, 2
	mov	edx, r10d
	mov	rdi, rax
	call	XCreateImage@PLT
	add	rsp, 32
	mov	QWORD PTR -8[rbp], rax
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	XInitImage@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 48[rax], rdx
.L33:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 48[rax]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	drawMandelbrot, .-drawMandelbrot
	.section	.rodata
.LC12:
	.string	"rows per thread %d\n"
	.text
	.globl	recalcRowsForThreads
	.type	recalcRowsForThreads, @function
recalcRowsForThreads:
.LFB15:
	.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	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 20[rax]
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR allThreads[rip]
	mov	edi, DWORD PTR 4[rax]
	mov	eax, DWORD PTR -8[rbp]
	cdq
	idiv	edi
	mov	DWORD PTR -4[rbp], eax
	mov	DWORD PTR -16[rbp], 0
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -12[rbp], 0
	jmp	.L36
.L39:
	mov	rax, QWORD PTR allThreads[rip]
	mov	rcx, QWORD PTR 48[rax]
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rdx, [rcx+rax]
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR [rdx], eax
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	cmp	DWORD PTR -8[rbp], eax
	jge	.L37
	mov	rax, QWORD PTR allThreads[rip]
	mov	rcx, QWORD PTR 48[rax]
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rdx, [rcx+rax]
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR 4[rdx], eax
	jmp	.L38
.L37:
	mov	rax, QWORD PTR allThreads[rip]
	mov	rcx, QWORD PTR 48[rax]
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rdx, [rcx+rax]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR 4[rdx], eax
.L38:
	mov	eax, DWORD PTR -4[rbp]
	add	DWORD PTR -16[rbp], eax
	add	DWORD PTR -12[rbp], 1
.L36:
	mov	rax, QWORD PTR allThreads[rip]
	mov	eax, DWORD PTR 4[rax]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L39
	mov	rax, QWORD PTR allThreads[rip]
	mov	rcx, QWORD PTR 48[rax]
	mov	rax, QWORD PTR allThreads[rip]
	mov	eax, DWORD PTR 4[rax]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	sub	rax, 152
	add	rax, rcx
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR allThreads[rip]
	mov	rsi, QWORD PTR 48[rax]
	mov	rax, QWORD PTR allThreads[rip]
	mov	eax, DWORD PTR 4[rax]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	sub	rax, 152
	add	rax, rsi
	mov	edx, DWORD PTR -8[rbp]
	sub	edx, ecx
	mov	DWORD PTR 4[rax], edx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	recalcRowsForThreads, .-recalcRowsForThreads
	.globl	redraw
	.type	redraw, @function
redraw:
.LFB16:
	.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	QWORD PTR -232[rbp], rdi
	mov	QWORD PTR -240[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR -240[rbp]
	mov	rax, QWORD PTR -232[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	drawMandelbrot
	mov	QWORD PTR -216[rbp], rax
	lea	rax, -208[rbp]
	mov	edx, 192
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -208[rbp], 12
	mov	rax, QWORD PTR -232[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -176[rbp], rax
	mov	rax, QWORD PTR -232[rbp]
	mov	rsi, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -232[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, -208[rbp]
	mov	r8, rdx
	mov	ecx, 32768
	mov	edx, 0
	mov	rdi, rax
	call	XSendEvent@PLT
	mov	rax, QWORD PTR -216[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L42
	call	__stack_chk_fail@PLT
.L42:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	redraw, .-redraw
	.globl	freeOldImage
	.type	freeOldImage, @function
freeOldImage:
.LFB17:
	.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	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 48[rax]
	test	rax, rax
	je	.L45
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	rdi, rax
	call	XFree@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 48[rax], 0
.L45:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	freeOldImage, .-freeOldImage
	.section	.rodata
.LC13:
	.string	"Cannot open X display\n"
.LC14:
	.string	"No window attributes.\n"
	.text
	.globl	initDisplayWindow
	.type	initDisplayWindow, @function
initDisplayWindow:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 288
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 64
	call	malloc@PLT
	mov	QWORD PTR -280[rbp], rax
	mov	edi, 0
	call	XOpenDisplay@PLT
	mov	rdx, QWORD PTR -280[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -280[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L47
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 22
	mov	esi, 1
	lea	rdi, .LC13[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L47:
	mov	rax, QWORD PTR -280[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 224[rax]
	mov	DWORD PTR -284[rbp], eax
	mov	rax, QWORD PTR -280[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR 232[rax]
	mov	eax, DWORD PTR -284[rbp]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	QWORD PTR -272[rbp], rax
	mov	QWORD PTR -264[rbp], 2
	mov	rax, QWORD PTR -280[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -272[rbp]
	mov	eax, DWORD PTR 28[rax]
	mov	ecx, eax
	shr	ecx, 31
	add	eax, ecx
	sar	eax
	mov	r8d, eax
	mov	rax, QWORD PTR -272[rbp]
	mov	eax, DWORD PTR 24[rax]
	mov	ecx, eax
	shr	ecx, 31
	add	eax, ecx
	sar	eax
	mov	edi, eax
	mov	rax, QWORD PTR -280[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rcx, QWORD PTR 232[rax]
	mov	eax, DWORD PTR -284[rbp]
	cdqe
	sal	rax, 7
	add	rax, rcx
	mov	rsi, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -280[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rcx, -256[rbp]
	push	rcx
	push	QWORD PTR -264[rbp]
	push	rdx
	push	0
	push	0
	push	1
	mov	r9d, r8d
	mov	r8d, edi
	mov	ecx, 10
	mov	edx, 10
	mov	rdi, rax
	call	XCreateWindow@PLT
	add	rsp, 48
	mov	rdx, QWORD PTR -280[rbp]
	mov	QWORD PTR 8[rdx], rax
	mov	rax, QWORD PTR -280[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -280[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, -144[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	XGetWindowAttributes@PLT
	test	eax, eax
	jne	.L48
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 22
	mov	esi, 1
	lea	rdi, .LC14[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L48:
	mov	edx, DWORD PTR -124[rbp]
	mov	rax, QWORD PTR -280[rbp]
	mov	DWORD PTR 24[rax], edx
	mov	rax, QWORD PTR -280[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -280[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, 163841
	mov	rsi, rcx
	mov	rdi, rax
	call	XSelectInput@PLT
	mov	rax, QWORD PTR -280[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -280[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	XMapWindow@PLT
	mov	rax, QWORD PTR -280[rbp]
	mov	rsi, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -280[rbp]
	mov	rax, QWORD PTR [rax]
	mov	ecx, 0
	mov	edx, 0
	mov	rdi, rax
	call	XCreateGC@PLT
	mov	rdx, QWORD PTR -280[rbp]
	mov	QWORD PTR 40[rdx], rax
	mov	eax, DWORD PTR -136[rbp]
	lea	edx, 3[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 2
	lea	edx, 0[0+rax*4]
	mov	rax, QWORD PTR -280[rbp]
	mov	DWORD PTR 16[rax], edx
	mov	edx, DWORD PTR -132[rbp]
	mov	rax, QWORD PTR -280[rbp]
	mov	DWORD PTR 20[rax], edx
	mov	rax, QWORD PTR -280[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L50
	call	__stack_chk_fail@PLT
.L50:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	initDisplayWindow, .-initDisplayWindow
	.globl	recalcColorTable
	.type	recalcColorTable, @function
recalcColorTable:
.LFB19:
	.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	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 24[rax]
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 32[rax]
	test	rax, rax
	je	.L52
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	rdi, rax
	call	free@PLT
.L52:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 24[rax]
	add	eax, 32
	sal	eax, 2
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 32[rax], rdx
	mov	DWORD PTR -8[rbp], 0
	jmp	.L53
.L54:
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, [rax+rax]
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, edx
	sal	eax, 8
	cdq
	idiv	DWORD PTR -4[rbp]
	mov	BYTE PTR -11[rbp], al
	mov	eax, DWORD PTR -8[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	sal	eax, 8
	cdq
	idiv	DWORD PTR -4[rbp]
	mov	BYTE PTR -10[rbp], al
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 0[0+rax*4]
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, edx
	sal	eax, 8
	cdq
	idiv	DWORD PTR -4[rbp]
	mov	BYTE PTR -9[rbp], al
	movzx	edx, BYTE PTR -11[rbp]
	movzx	eax, BYTE PTR -9[rbp]
	sal	eax, 8
	add	edx, eax
	movzx	eax, BYTE PTR -10[rbp]
	sal	eax, 16
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR 32[rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	mov	DWORD PTR [rax], edx
	add	DWORD PTR -8[rbp], 1
.L53:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 24[rax]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L54
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	recalcColorTable, .-recalcColorTable
	.section	.rodata
.LC16:
	.string	"key = %d\n"
.LC17:
	.string	"ksym = %ld\n"
.LC20:
	.string	"iterations = %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB20:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 384
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 40
	call	malloc@PLT
	mov	QWORD PTR -360[rbp], rax
	mov	rax, QWORD PTR -360[rbp]
	movsd	xmm0, QWORD PTR .LC15[rip]
	movsd	QWORD PTR [rax], xmm0
	mov	rax, QWORD PTR -360[rbp]
	pxor	xmm0, xmm0
	movsd	QWORD PTR 8[rax], xmm0
	mov	rax, QWORD PTR -360[rbp]
	pxor	xmm0, xmm0
	movsd	QWORD PTR 16[rax], xmm0
	mov	edx, 100
	mov	rax, QWORD PTR -360[rbp]
	mov	DWORD PTR 24[rax], edx
	mov	rax, QWORD PTR -360[rbp]
	mov	QWORD PTR 32[rax], 0
	mov	rax, QWORD PTR -360[rbp]
	mov	rdi, rax
	call	recalcColorTable
	call	XInitThreads@PLT
	mov	eax, 0
	call	initDisplayWindow
	mov	QWORD PTR -352[rbp], rax
	mov	eax, 0
	call	initThreads
	mov	rax, QWORD PTR -352[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -344[rbp], rax
	mov	rax, QWORD PTR -352[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -336[rbp], rax
	mov	rax, QWORD PTR -352[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	QWORD PTR -328[rbp], rax
	mov	rax, QWORD PTR -352[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -320[rbp], rax
	mov	rax, QWORD PTR -352[rbp]
	mov	eax, DWORD PTR 24[rax]
	mov	DWORD PTR -372[rbp], eax
	mov	rax, QWORD PTR -352[rbp]
	mov	rdi, rax
	call	recalcRowsForThreads
	mov	rdx, QWORD PTR -360[rbp]
	mov	rax, QWORD PTR -352[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	drawMandelbrot
	mov	QWORD PTR -368[rbp], rax
	jmp	.L56
.L71:
	lea	rdx, -208[rbp]
	mov	rax, QWORD PTR -336[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XNextEvent@PLT
	mov	eax, DWORD PTR -208[rbp]
	cmp	eax, 12
	jne	.L57
	mov	rax, QWORD PTR -352[rbp]
	mov	eax, DWORD PTR 20[rax]
	mov	r8d, eax
	mov	rax, QWORD PTR -352[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	edi, eax
	mov	rax, QWORD PTR -352[rbp]
	mov	rsi, QWORD PTR 8[rax]
	mov	rcx, QWORD PTR -368[rbp]
	mov	rdx, QWORD PTR -320[rbp]
	mov	rax, QWORD PTR -336[rbp]
	push	r8
	push	rdi
	push	0
	push	0
	mov	r9d, 0
	mov	r8d, 0
	mov	rdi, rax
	call	XPutImage@PLT
	add	rsp, 32
.L57:
	mov	eax, DWORD PTR -208[rbp]
	cmp	eax, 2
	jne	.L58
	mov	eax, DWORD PTR -124[rbp]
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -208[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	XLookupKeysym@PLT
	mov	QWORD PTR -312[rbp], rax
	mov	rax, QWORD PTR -312[rbp]
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -124[rbp]
	cmp	eax, 38
	jne	.L59
	mov	rax, QWORD PTR -360[rbp]
	movsd	xmm1, QWORD PTR [rax]
	movsd	xmm2, QWORD PTR .LC18[rip]
	movsd	xmm0, QWORD PTR .LC15[rip]
	addsd	xmm0, xmm2
	mulsd	xmm0, xmm1
	mov	rax, QWORD PTR -360[rbp]
	movsd	QWORD PTR [rax], xmm0
	mov	rdx, QWORD PTR -360[rbp]
	mov	rax, QWORD PTR -352[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	redraw
	mov	QWORD PTR -368[rbp], rax
.L59:
	mov	eax, DWORD PTR -124[rbp]
	cmp	eax, 24
	jne	.L60
	mov	rax, QWORD PTR -360[rbp]
	movsd	xmm1, QWORD PTR [rax]
	movsd	xmm2, QWORD PTR .LC18[rip]
	movsd	xmm0, QWORD PTR .LC15[rip]
	subsd	xmm0, xmm2
	mulsd	xmm0, xmm1
	mov	rax, QWORD PTR -360[rbp]
	movsd	QWORD PTR [rax], xmm0
	mov	rdx, QWORD PTR -360[rbp]
	mov	rax, QWORD PTR -352[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	redraw
	mov	QWORD PTR -368[rbp], rax
.L60:
	cmp	QWORD PTR -312[rbp], 65361
	jne	.L61
	mov	rax, QWORD PTR -360[rbp]
	movsd	xmm0, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -360[rbp]
	movsd	xmm1, QWORD PTR [rax]
	movsd	xmm2, QWORD PTR .LC19[rip]
	divsd	xmm1, xmm2
	subsd	xmm0, xmm1
	mov	rax, QWORD PTR -360[rbp]
	movsd	QWORD PTR 8[rax], xmm0
	mov	rdx, QWORD PTR -360[rbp]
	mov	rax, QWORD PTR -352[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	redraw
	mov	QWORD PTR -368[rbp], rax
.L61:
	cmp	QWORD PTR -312[rbp], 65363
	jne	.L62
	mov	rax, QWORD PTR -360[rbp]
	movsd	xmm1, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -360[rbp]
	movsd	xmm0, QWORD PTR [rax]
	movsd	xmm2, QWORD PTR .LC19[rip]
	divsd	xmm0, xmm2
	addsd	xmm0, xmm1
	mov	rax, QWORD PTR -360[rbp]
	movsd	QWORD PTR 8[rax], xmm0
	mov	rdx, QWORD PTR -360[rbp]
	mov	rax, QWORD PTR -352[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	redraw
	mov	QWORD PTR -368[rbp], rax
.L62:
	cmp	QWORD PTR -312[rbp], 65362
	jne	.L63
	mov	rax, QWORD PTR -360[rbp]
	movsd	xmm0, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -360[rbp]
	movsd	xmm1, QWORD PTR [rax]
	movsd	xmm2, QWORD PTR .LC19[rip]
	divsd	xmm1, xmm2
	subsd	xmm0, xmm1
	mov	rax, QWORD PTR -360[rbp]
	movsd	QWORD PTR 16[rax], xmm0
	mov	rdx, QWORD PTR -360[rbp]
	mov	rax, QWORD PTR -352[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	redraw
	mov	QWORD PTR -368[rbp], rax
.L63:
	cmp	QWORD PTR -312[rbp], 65364
	jne	.L64
	mov	rax, QWORD PTR -360[rbp]
	movsd	xmm1, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -360[rbp]
	movsd	xmm0, QWORD PTR [rax]
	movsd	xmm2, QWORD PTR .LC19[rip]
	divsd	xmm0, xmm2
	addsd	xmm0, xmm1
	mov	rax, QWORD PTR -360[rbp]
	movsd	QWORD PTR 16[rax], xmm0
	mov	rdx, QWORD PTR -360[rbp]
	mov	rax, QWORD PTR -352[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	redraw
	mov	QWORD PTR -368[rbp], rax
.L64:
	mov	eax, DWORD PTR -124[rbp]
	cmp	eax, 27
	jne	.L65
	mov	rax, QWORD PTR -360[rbp]
	mov	ecx, DWORD PTR 24[rax]
	mov	rax, QWORD PTR -360[rbp]
	mov	eax, DWORD PTR 24[rax]
	lea	edx, 3[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 2
	lea	edx, [rcx+rax]
	mov	rax, QWORD PTR -360[rbp]
	mov	DWORD PTR 24[rax], edx
	mov	rax, QWORD PTR -360[rbp]
	mov	eax, DWORD PTR 24[rax]
	mov	esi, eax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -360[rbp]
	mov	rdi, rax
	call	recalcColorTable
	mov	rdx, QWORD PTR -360[rbp]
	mov	rax, QWORD PTR -352[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	redraw
	mov	QWORD PTR -368[rbp], rax
.L65:
	mov	eax, DWORD PTR -124[rbp]
	cmp	eax, 41
	jne	.L74
	mov	rax, QWORD PTR -360[rbp]
	mov	eax, DWORD PTR 24[rax]
	sal	eax, 2
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx
	sar	eax, 31
	sub	edx, eax
	mov	rax, QWORD PTR -360[rbp]
	mov	DWORD PTR 24[rax], edx
	mov	rax, QWORD PTR -360[rbp]
	mov	eax, DWORD PTR 24[rax]
	mov	esi, eax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -360[rbp]
	mov	rdi, rax
	call	recalcColorTable
	mov	rdx, QWORD PTR -360[rbp]
	mov	rax, QWORD PTR -352[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	redraw
	mov	QWORD PTR -368[rbp], rax
	jmp	.L74
.L58:
	mov	eax, DWORD PTR -208[rbp]
	cmp	eax, 22
	jne	.L68
	mov	rax, QWORD PTR -208[rbp]
	mov	rdx, QWORD PTR -200[rbp]
	mov	QWORD PTR -304[rbp], rax
	mov	QWORD PTR -296[rbp], rdx
	mov	rax, QWORD PTR -192[rbp]
	mov	rdx, QWORD PTR -184[rbp]
	mov	QWORD PTR -288[rbp], rax
	mov	QWORD PTR -280[rbp], rdx
	mov	rax, QWORD PTR -176[rbp]
	mov	rdx, QWORD PTR -168[rbp]
	mov	QWORD PTR -272[rbp], rax
	mov	QWORD PTR -264[rbp], rdx
	mov	rax, QWORD PTR -160[rbp]
	mov	rdx, QWORD PTR -152[rbp]
	mov	QWORD PTR -256[rbp], rax
	mov	QWORD PTR -248[rbp], rdx
	mov	rax, QWORD PTR -144[rbp]
	mov	rdx, QWORD PTR -136[rbp]
	mov	QWORD PTR -240[rbp], rax
	mov	QWORD PTR -232[rbp], rdx
	mov	rax, QWORD PTR -128[rbp]
	mov	QWORD PTR -224[rbp], rax
	mov	edx, DWORD PTR -248[rbp]
	mov	rax, QWORD PTR -352[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	edx, eax
	jne	.L69
	mov	edx, DWORD PTR -244[rbp]
	mov	rax, QWORD PTR -352[rbp]
	mov	eax, DWORD PTR 20[rax]
	cmp	edx, eax
	je	.L68
.L69:
	mov	eax, DWORD PTR -248[rbp]
	lea	edx, 3[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 2
	lea	edx, 0[0+rax*4]
	mov	rax, QWORD PTR -352[rbp]
	mov	DWORD PTR 16[rax], edx
	mov	edx, DWORD PTR -244[rbp]
	mov	rax, QWORD PTR -352[rbp]
	mov	DWORD PTR 20[rax], edx
	mov	rax, QWORD PTR -352[rbp]
	mov	rdi, rax
	call	freeOldImage
	mov	rax, QWORD PTR -352[rbp]
	mov	rdi, rax
	call	recalcRowsForThreads
	mov	rdx, QWORD PTR -360[rbp]
	mov	rax, QWORD PTR -352[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	redraw
	mov	QWORD PTR -368[rbp], rax
.L68:
	mov	rax, QWORD PTR -336[rbp]
	mov	rdi, rax
	call	XFlush@PLT
.L56:
	mov	rax, QWORD PTR -336[rbp]
	mov	rdi, rax
	call	XPending@PLT
	test	eax, eax
	jg	.L71
	jmp	.L56
.L74:
	nop
	jmp	.L56
	.cfi_endproc
.LFE20:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.long	0
	.long	-1073741824
	.align 8
.LC3:
	.long	0
	.long	1073741824
	.align 8
.LC4:
	.long	0
	.long	1074790400
	.align 8
.LC15:
	.long	0
	.long	1072693248
	.align 8
.LC18:
	.long	-1717986918
	.long	1069128089
	.align 8
.LC19:
	.long	0
	.long	1077149696
	.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	"643509.c"
	.text
	.global	initialIterations
	.section	.rodata
	.align	2
	.type	initialIterations, %object
	.size	initialIterations, 4
initialIterations:
	.word	100
	.global	totalThreads
	.align	2
	.type	totalThreads, %object
	.size	totalThreads, 4
totalThreads:
	.word	8
	.global	scalingfact
	.align	3
	.type	scalingfact, %object
	.size	scalingfact, 8
scalingfact:
	.word	2576980378
	.word	1069128089
	.global	movingfact
	.align	3
	.type	movingfact, %object
	.size	movingfact, 8
movingfact:
	.word	0
	.word	1077149696
	.comm	allThreads,4,4
	.align	2
.LC0:
	.ascii	"scale %f\012\000"
	.align	2
.LC1:
	.ascii	"height = %d\012\000"
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dsub
	.align	2
.LC2:
	.ascii	"c_im = %f\012\000"
	.align	2
.LC3:
	.ascii	"c_re_left = %f\012\000"
	.align	2
.LC4:
	.ascii	"re_step = %f\012\000"
	.align	2
.LC5:
	.ascii	"im_step = %f\012\000"
	.text
	.align	2
	.global	debug
	.syntax unified
	.arm
	.fpu softvfp
	.type	debug, %function
debug:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	str	r2, [fp, #-64]
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-60]
	ldmia	r3, {r2-r3}
	ldr	r0, .L2
	bl	printf
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-48]
	ldr	r1, [fp, #-48]
	ldr	r0, .L2+4
	bl	printf
	ldr	r3, [fp, #-60]
	ldmia	r3, {r0-r1}
	mov	r2, #0
	mov	r3, #-1073741824
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-60]
	add	r3, r3, #8
	ldmia	r3, {r2-r3}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r0, [fp, #-64]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-48]
	bl	__aeabi_i2d
	mov	r2, #0
	mov	r3, #1073741824
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L2+8
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-48]
	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	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-60]
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-60]
	add	r3, r3, #16
	ldmia	r3, {r2-r3}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	ldr	r0, .L2+12
	bl	printf
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	ldr	r0, .L2+16
	bl	printf
	ldr	r3, [fp, #-60]
	ldmia	r3, {r0-r1}
	mov	r2, #0
	ldr	r3, .L2+8
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-52]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-60]
	ldmia	r3, {r0-r1}
	mov	r2, #0
	ldr	r3, .L2+8
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-48]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	ldr	r0, .L2+20
	bl	printf
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	ldr	r0, .L2+24
	bl	printf
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L3:
	.align	2
.L2:
	.word	.LC0
	.word	.LC1
	.word	1074790400
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	debug, .-debug
	.global	__aeabi_dcmple
	.align	2
	.global	calcMandelbrotPartInC
	.syntax unified
	.arm
	.fpu softvfp
	.type	calcMandelbrotPartInC, %function
calcMandelbrotPartInC:
	@ args = 4, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #128
	str	r0, [fp, #-128]
	str	r1, [fp, #-132]
	str	r2, [fp, #-136]
	str	r3, [fp, #-140]
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-104]
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-128]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-136]
	mul	r3, r2, r3
	str	r3, [fp, #-120]
	ldr	r3, [fp, #-132]
	ldmia	r3, {r0-r1}
	mov	r2, #0
	mov	r3, #-1073741824
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-132]
	add	r3, r3, #8
	ldmia	r3, {r2-r3}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r0, [fp, #-136]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-100]
	bl	__aeabi_i2d
	mov	r2, #0
	mov	r3, #1073741824
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L14
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-100]
	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	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-132]
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-132]
	add	r3, r3, #16
	ldmia	r3, {r2-r3}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-92]
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-132]
	ldmia	r3, {r0-r1}
	mov	r2, #0
	ldr	r3, .L14
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-104]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-132]
	ldmia	r3, {r0-r1}
	mov	r2, #0
	ldr	r3, .L14
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-100]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-136]
	ldr	r3, [fp, #-140]
	add	r3, r2, r3
	str	r3, [fp, #-96]
	ldr	r3, [fp, #-136]
	str	r3, [fp, #-116]
	b	.L5
.L12:
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-84]
	str	r3, [fp, #-80]
	mov	r3, #0
	str	r3, [fp, #-112]
	b	.L6
.L11:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-108]
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	b	.L7
.L10:
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #84
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	sub	r1, fp, #76
	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, #68
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #92
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
.L7:
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L14
	bl	__aeabi_dcmple
	mov	r3, r0
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-132]
	ldr	r3, [r3, #24]
	ldr	r2, [fp, #-108]
	cmp	r2, r3
	blt	.L10
.L8:
	ldr	r3, [fp, #-132]
	ldr	r2, [r3, #28]
	ldr	r3, [fp, #-108]
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #2
	ldr	r1, [fp, #4]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	sub	r1, fp, #84
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-84]
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-120]
	ldr	r3, [fp, #-112]
	add	r3, r3, #1
	str	r3, [fp, #-112]
.L6:
	ldr	r2, [fp, #-112]
	ldr	r3, [fp, #-104]
	cmp	r2, r3
	blt	.L11
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	sub	r1, fp, #92
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-92]
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-116]
	add	r3, r3, #1
	str	r3, [fp, #-116]
.L5:
	ldr	r2, [fp, #-116]
	ldr	r3, [fp, #-96]
	cmp	r2, r3
	blt	.L12
	nop
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L15:
	.align	2
.L14:
	.word	1074790400
	.size	calcMandelbrotPartInC, .-calcMandelbrotPartInC
	.align	2
	.global	totalTime
	.syntax unified
	.arm
	.fpu softvfp
	.type	totalTime, %function
totalTime:
	@ 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
	sub	r3, fp, #12
	stm	r3, {r0, r1}
	ldr	r3, [fp, #-12]
	ldr	r2, .L18
	mul	r2, r3, r2
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L19:
	.align	2
.L18:
	.word	1000000000
	.size	totalTime, .-totalTime
	.align	2
	.global	calcMandelbrotPart
	.syntax unified
	.arm
	.fpu softvfp
	.type	calcMandelbrotPart, %function
calcMandelbrotPart:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	mandelbrotAsmV
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	calcMandelbrotPart, .-calcMandelbrotPart
	.align	2
	.global	threadedFunc
	.syntax unified
	.arm
	.fpu softvfp
	.type	threadedFunc, %function
threadedFunc:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #88]
	str	r3, [fp, #-8]
	b	.L22
.L26:
	ldr	r3, [fp, #-12]
	add	r3, r3, #8
	mov	r0, r3
	bl	pthread_mutex_lock
	b	.L23
.L24:
	ldr	r3, [fp, #-12]
	add	r2, r3, #40
	ldr	r3, [fp, #-12]
	add	r3, r3, #8
	mov	r1, r3
	mov	r0, r2
	bl	pthread_cond_wait
.L23:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #32]
	cmp	r3, #0
	beq	.L24
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #32]
	cmp	r3, #0
	beq	.L25
	ldr	r3, [fp, #-12]
	ldr	r0, [r3, #100]
	ldr	r3, [fp, #-12]
	ldr	r1, [r3, #104]
	ldr	r3, [fp, #-12]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	ip, [r3, #4]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #108]
	str	r3, [sp]
	mov	r3, ip
	bl	calcMandelbrotPart
	ldr	r3, [fp, #-8]
	add	r3, r3, #8
	mov	r0, r3
	bl	pthread_mutex_lock
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #40
	mov	r0, r3
	bl	pthread_cond_signal
	ldr	r3, [fp, #-8]
	add	r3, r3, #8
	mov	r0, r3
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3, #32]
.L25:
	ldr	r3, [fp, #-12]
	add	r3, r3, #8
	mov	r0, r3
	bl	pthread_mutex_unlock
.L22:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #96]
	cmp	r3, #0
	beq	.L26
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	threadedFunc, .-threadedFunc
	.align	2
	.global	initThreads
	.syntax unified
	.arm
	.fpu softvfp
	.type	initThreads, %function
initThreads:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r0, #88
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3]
	mov	r2, #8
	ldr	r3, [fp, #-12]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	add	r3, r3, #8
	mov	r1, #0
	mov	r0, r3
	bl	pthread_mutex_init
	ldr	r3, [fp, #-12]
	add	r3, r3, #40
	mov	r1, #0
	mov	r0, r3
	bl	pthread_cond_init
	mov	r0, #448
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-12]
	str	r2, [r3, #32]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L28
.L29:
	ldr	r3, [fp, #-12]
	ldr	r1, [r3, #32]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r1, [r3, #32]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	ldr	r1, [r3, #32]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	add	r3, r3, #8
	mov	r1, #0
	mov	r0, r3
	bl	pthread_mutex_init
	ldr	r3, [fp, #-12]
	ldr	r1, [r3, #32]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	add	r3, r3, #8
	mov	r0, r3
	bl	pthread_mutex_lock
	ldr	r3, [fp, #-12]
	ldr	r1, [r3, #32]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	mov	r2, #0
	str	r2, [r3, #32]
	ldr	r3, [fp, #-12]
	ldr	r1, [r3, #32]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	add	r3, r3, #40
	mov	r1, #0
	mov	r0, r3
	bl	pthread_cond_init
	ldr	r3, [fp, #-12]
	ldr	r1, [r3, #32]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	mov	r2, #0
	str	r2, [r3, #96]
	ldr	r3, [fp, #-12]
	ldr	r1, [r3, #32]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r2, [fp, #-12]
	str	r2, [r3, #88]
	ldr	r3, [fp, #-12]
	ldr	r1, [r3, #32]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	ldr	r1, [r3, #32]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	add	r0, r3, #92
	ldr	r3, [fp, #-8]
	ldr	r2, .L30
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-12]
	ldr	r1, [r3, #32]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	add	r3, r3, #8
	mov	r0, r3
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L28:
	mov	r2, #8
	ldr	r3, [fp, #-16]
	cmp	r3, r2
	blt	.L29
	ldr	r2, .L30+4
	ldr	r3, [fp, #-12]
	str	r3, [r2]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	threadedFunc
	.word	allThreads
	.size	initThreads, .-initThreads
	.align	2
	.global	triggerDrawingInThreads
	.syntax unified
	.arm
	.fpu softvfp
	.type	triggerDrawingInThreads, %function
triggerDrawingInThreads:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, .L35
	ldr	r3, [r3]
	add	r3, r3, #8
	mov	r0, r3
	bl	pthread_mutex_lock
	ldr	r3, .L35
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L35
	ldr	r3, [r3]
	add	r3, r3, #8
	mov	r0, r3
	bl	pthread_mutex_unlock
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L33
.L34:
	ldr	r3, .L35
	ldr	r3, [r3]
	ldr	r1, [r3, #32]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r2, [fp, #-16]
	str	r2, [r3, #100]
	ldr	r3, .L35
	ldr	r3, [r3]
	ldr	r1, [r3, #32]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r2, [fp, #-20]
	str	r2, [r3, #104]
	ldr	r3, .L35
	ldr	r3, [r3]
	ldr	r1, [r3, #32]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r2, [fp, #-24]
	str	r2, [r3, #108]
	ldr	r3, .L35
	ldr	r3, [r3]
	ldr	r1, [r3, #32]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	add	r3, r3, #8
	mov	r0, r3
	bl	pthread_mutex_lock
	ldr	r3, .L35
	ldr	r3, [r3]
	ldr	r1, [r3, #32]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	mov	r2, #1
	str	r2, [r3, #32]
	ldr	r3, .L35
	ldr	r3, [r3]
	ldr	r1, [r3, #32]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	add	r3, r3, #40
	mov	r0, r3
	bl	pthread_cond_signal
	ldr	r3, .L35
	ldr	r3, [r3]
	ldr	r1, [r3, #32]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	add	r3, r3, #8
	mov	r0, r3
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L33:
	ldr	r3, .L35
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L34
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	allThreads
	.size	triggerDrawingInThreads, .-triggerDrawingInThreads
	.align	2
	.global	waitForThreads
	.syntax unified
	.arm
	.fpu softvfp
	.type	waitForThreads, %function
waitForThreads:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L40
	ldr	r3, [r3]
	add	r3, r3, #8
	mov	r0, r3
	bl	pthread_mutex_lock
	b	.L38
.L39:
	ldr	r3, .L40
	ldr	r3, [r3]
	add	r2, r3, #40
	ldr	r3, .L40
	ldr	r3, [r3]
	add	r3, r3, #8
	mov	r1, r3
	mov	r0, r2
	bl	pthread_cond_wait
.L38:
	ldr	r3, .L40
	ldr	r3, [r3]
	ldr	r2, [r3]
	ldr	r3, .L40
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	blt	.L39
	ldr	r3, .L40
	ldr	r3, [r3]
	add	r3, r3, #8
	mov	r0, r3
	bl	pthread_mutex_unlock
	nop
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	allThreads
	.size	waitForThreads, .-waitForThreads
	.section	.rodata
	.align	2
.LC6:
	.ascii	"image was null\000"
	.align	2
.LC7:
	.ascii	"xinitimage done\000"
	.text
	.align	2
	.global	drawMandelbrot
	.syntax unified
	.arm
	.fpu softvfp
	.type	drawMandelbrot, %function
drawMandelbrot:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #28]
	cmp	r3, #0
	bne	.L43
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-24]
	ldr	r2, [r2, #12]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	b	.L44
.L43:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #28]
	ldr	r3, [r3, #16]
	str	r3, [fp, #-20]
.L44:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	triggerDrawingInThreads
	bl	waitForThreads
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #28]
	cmp	r3, #0
	bne	.L45
	ldr	r3, [fp, #-24]
	ldr	r0, [r3]
	ldr	r3, [fp, #-24]
	ldr	r1, [r3, #20]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #16]
	mov	lr, r3
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	mov	ip, #0
	str	ip, [sp, #20]
	mov	ip, #32
	str	ip, [sp, #16]
	str	r2, [sp, #12]
	str	r3, [sp, #8]
	ldr	r3, [fp, #-20]
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #2
	mov	r2, lr
	bl	XCreateImage
	str	r0, [fp, #-8]
	ldr	r0, .L47
	bl	puts
	ldr	r0, [fp, #-8]
	bl	XInitImage
	ldr	r0, .L47+4
	bl	puts
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #28]
.L45:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #28]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L48:
	.align	2
.L47:
	.word	.LC6
	.word	.LC7
	.size	drawMandelbrot, .-drawMandelbrot
	.global	__aeabi_idiv
	.section	.rodata
	.align	2
.LC8:
	.ascii	"rows per thread %d\012\000"
	.text
	.align	2
	.global	recalcRowsForThreads
	.syntax unified
	.arm
	.fpu softvfp
	.type	recalcRowsForThreads, %function
recalcRowsForThreads:
	@ 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]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-12]
	ldr	r3, .L54
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r1, [fp, #-8]
	ldr	r0, .L54+4
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L50
.L53:
	ldr	r3, .L54
	ldr	r3, [r3]
	ldr	r1, [r3, #32]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bge	.L51
	ldr	r3, .L54
	ldr	r3, [r3]
	ldr	r1, [r3, #32]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r1, [fp, #-12]
	ldr	r2, [fp, #-20]
	sub	r2, r1, r2
	str	r2, [r3, #4]
	b	.L52
.L51:
	ldr	r3, .L54
	ldr	r3, [r3]
	ldr	r1, [r3, #32]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
.L52:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L50:
	ldr	r3, .L54
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L53
	ldr	r3, .L54
	ldr	r3, [r3]
	ldr	r2, [r3, #32]
	ldr	r3, .L54
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #3
	sub	r3, r3, r1
	lsl	r3, r3, #4
	sub	r3, r3, #112
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L54
	ldr	r3, [r3]
	ldr	r1, [r3, #32]
	ldr	r3, .L54
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	mov	r0, r3
	mov	r3, r0
	lsl	r3, r3, #3
	sub	r3, r3, r0
	lsl	r3, r3, #4
	sub	r3, r3, #112
	add	r3, r1, r3
	ldr	r1, [fp, #-12]
	sub	r2, r1, r2
	str	r2, [r3, #4]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L55:
	.align	2
.L54:
	.word	allThreads
	.word	.LC8
	.size	recalcRowsForThreads, .-recalcRowsForThreads
	.section	.rodata
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	redraw
	.syntax unified
	.arm
	.fpu softvfp
	.type	redraw, %function
redraw:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	ldr	r3, .L59
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, [fp, #-116]
	ldr	r0, [fp, #-112]
	bl	drawMandelbrot
	str	r0, [fp, #-108]
	sub	r3, fp, #104
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #12
	str	r3, [fp, #-104]
	ldr	r3, [fp, #-112]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-112]
	ldr	r0, [r3]
	ldr	r3, [fp, #-112]
	ldr	r1, [r3, #4]
	sub	r3, fp, #104
	str	r3, [sp]
	mov	r3, #32768
	mov	r2, #0
	bl	XSendEvent
	ldr	r3, [fp, #-108]
	ldr	r2, .L59
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L58
	bl	__stack_chk_fail
.L58:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L60:
	.align	2
.L59:
	.word	.LC9
	.size	redraw, .-redraw
	.align	2
	.global	freeOldImage
	.syntax unified
	.arm
	.fpu softvfp
	.type	freeOldImage, %function
freeOldImage:
	@ 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, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #28]
	cmp	r3, #0
	beq	.L63
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #28]
	ldr	r3, [r3, #16]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #28]
	mov	r0, r3
	bl	XFree
	ldr	r0, [fp, #-8]
	bl	free
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #28]
.L63:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	freeOldImage, .-freeOldImage
	.section	.rodata
	.align	2
.LC10:
	.ascii	"Cannot open X display\012\000"
	.align	2
.LC11:
	.ascii	"No window attributes.\012\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	initDisplayWindow
	.syntax unified
	.arm
	.fpu softvfp
	.type	initDisplayWindow, %function
initDisplayWindow:
	@ args = 0, pretend = 0, frame = 176
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #208
	ldr	r3, .L69
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #36
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-176]
	mov	r0, #0
	bl	XOpenDisplay
	mov	r2, r0
	ldr	r3, [fp, #-176]
	str	r2, [r3]
	ldr	r3, [fp, #-176]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L65
	ldr	r3, .L69+4
	ldr	r3, [r3]
	mov	r2, #22
	mov	r1, #1
	ldr	r0, .L69+8
	bl	fwrite
	mov	r0, #1
	bl	exit
.L65:
	ldr	r3, [fp, #-176]
	ldr	r3, [r3]
	ldr	r3, [r3, #132]
	str	r3, [fp, #-172]
	ldr	r3, [fp, #-176]
	ldr	r3, [r3]
	ldr	r1, [r3, #140]
	ldr	r2, [fp, #-172]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	str	r3, [fp, #-168]
	mov	r3, #2
	str	r3, [fp, #-164]
	ldr	r3, [fp, #-176]
	ldr	r0, [r3]
	ldr	r3, [fp, #-176]
	ldr	r3, [r3]
	ldr	r1, [r3, #140]
	ldr	r2, [fp, #-172]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-168]
	ldr	r3, [r3, #12]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	ip, r3
	ldr	r3, [fp, #-168]
	ldr	r3, [r3, #16]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	lr, r3
	ldr	r3, [fp, #-176]
	ldr	r3, [r3, #20]
	sub	r2, fp, #160
	str	r2, [sp, #28]
	ldr	r2, [fp, #-164]
	str	r2, [sp, #24]
	str	r3, [sp, #20]
	mov	r3, #0
	str	r3, [sp, #16]
	mov	r3, #0
	str	r3, [sp, #12]
	mov	r3, #1
	str	r3, [sp, #8]
	str	lr, [sp, #4]
	str	ip, [sp]
	mov	r3, #10
	mov	r2, #10
	bl	XCreateWindow
	mov	r2, r0
	ldr	r3, [fp, #-176]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-176]
	ldr	r0, [r3]
	ldr	r3, [fp, #-176]
	ldr	r3, [r3, #4]
	sub	r2, fp, #100
	mov	r1, r3
	bl	XGetWindowAttributes
	mov	r3, r0
	cmp	r3, #0
	bne	.L66
	ldr	r3, .L69+4
	ldr	r3, [r3]
	mov	r2, #22
	mov	r1, #1
	ldr	r0, .L69+12
	bl	fwrite
	mov	r0, #1
	bl	exit
.L66:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-176]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-176]
	ldr	r0, [r3]
	ldr	r3, [fp, #-176]
	ldr	r3, [r3, #4]
	ldr	r2, .L69+16
	mov	r1, r3
	bl	XSelectInput
	ldr	r3, [fp, #-176]
	ldr	r2, [r3]
	ldr	r3, [fp, #-176]
	ldr	r3, [r3, #4]
	mov	r1, r3
	mov	r0, r2
	bl	XMapWindow
	ldr	r3, [fp, #-176]
	ldr	r0, [r3]
	ldr	r3, [fp, #-176]
	ldr	r1, [r3, #4]
	mov	r3, #0
	mov	r2, #0
	bl	XCreateGC
	mov	r2, r0
	ldr	r3, [fp, #-176]
	str	r2, [r3, #24]
	ldr	r3, [fp, #-92]
	add	r2, r3, #3
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #2
	lsl	r2, r3, #2
	ldr	r3, [fp, #-176]
	str	r2, [r3, #8]
	ldr	r2, [fp, #-88]
	ldr	r3, [fp, #-176]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-176]
	ldr	r2, .L69
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L68
	bl	__stack_chk_fail
.L68:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L70:
	.align	2
.L69:
	.word	.LC12
	.word	stderr
	.word	.LC10
	.word	.LC11
	.word	163841
	.size	initDisplayWindow, .-initDisplayWindow
	.align	2
	.global	recalcColorTable
	.syntax unified
	.arm
	.fpu softvfp
	.type	recalcColorTable, %function
recalcColorTable:
	@ 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]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #24]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #28]
	cmp	r3, #0
	beq	.L72
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #28]
	mov	r0, r3
	bl	free
.L72:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #24]
	add	r3, r3, #32
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-24]
	str	r2, [r3, #28]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L73
.L74:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-8]
	sub	r3, r2, r3
	lsl	r3, r3, #8
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	strb	r3, [fp, #-15]
	ldr	r3, [fp, #-12]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	lsl	r3, r3, #8
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	strb	r3, [fp, #-14]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-8]
	sub	r3, r2, r3
	lsl	r3, r3, #8
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	strb	r3, [fp, #-13]
	ldrb	r2, [fp, #-15]	@ zero_extendqisi2
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	lsl	r3, r3, #8
	add	r2, r2, r3
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	lsl	r3, r3, #16
	add	r1, r2, r3
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #28]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, r1
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L73:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #24]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L74
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	recalcColorTable, .-recalcColorTable
	.section	.rodata
	.align	2
.LC13:
	.ascii	"key = %d\012\000"
	.align	2
.LC14:
	.ascii	"ksym = %ld\012\000"
	.align	2
.LC15:
	.ascii	"iterations = %d\012\000"
	.align	2
.LC16:
	.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	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #216
	ldr	r3, .L95
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r0, #32
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-196]
	ldr	r1, [fp, #-196]
	mov	r2, #0
	ldr	r3, .L95+4
	stm	r1, {r2-r3}
	ldr	r1, [fp, #-196]
	mov	r2, #0
	mov	r3, #0
	str	r2, [r1, #8]
	str	r3, [r1, #12]
	ldr	r1, [fp, #-196]
	mov	r2, #0
	mov	r3, #0
	str	r2, [r1, #16]
	str	r3, [r1, #20]
	mov	r2, #100
	ldr	r3, [fp, #-196]
	str	r2, [r3, #24]
	ldr	r3, [fp, #-196]
	mov	r2, #0
	str	r2, [r3, #28]
	ldr	r0, [fp, #-196]
	bl	recalcColorTable
	bl	XInitThreads
	bl	initDisplayWindow
	str	r0, [fp, #-192]
	bl	initThreads
	ldr	r3, [fp, #-192]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-188]
	ldr	r3, [fp, #-192]
	ldr	r3, [r3]
	str	r3, [fp, #-184]
	ldr	r3, [fp, #-192]
	ldr	r3, [r3, #20]
	str	r3, [fp, #-180]
	ldr	r3, [fp, #-192]
	ldr	r3, [r3, #24]
	str	r3, [fp, #-176]
	ldr	r3, [fp, #-192]
	ldr	r3, [r3, #16]
	str	r3, [fp, #-172]
	ldr	r0, [fp, #-192]
	bl	recalcRowsForThreads
	ldr	r1, [fp, #-196]
	ldr	r0, [fp, #-192]
	bl	drawMandelbrot
	str	r0, [fp, #-200]
	b	.L76
.L91:
	sub	r3, fp, #112
	mov	r1, r3
	ldr	r0, [fp, #-184]
	bl	XNextEvent
	ldr	r3, [fp, #-112]
	cmp	r3, #12
	bne	.L77
	ldr	r3, [fp, #-192]
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-192]
	ldr	r3, [r3, #8]
	mov	r2, r3
	ldr	r3, [fp, #-192]
	ldr	r3, [r3, #12]
	str	r3, [sp, #20]
	str	r2, [sp, #16]
	mov	r3, #0
	str	r3, [sp, #12]
	mov	r3, #0
	str	r3, [sp, #8]
	mov	r3, #0
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	ldr	r3, [fp, #-200]
	ldr	r2, [fp, #-176]
	ldr	r0, [fp, #-184]
	bl	XPutImage
.L77:
	ldr	r3, [fp, #-112]
	cmp	r3, #2
	bne	.L78
	ldr	r3, [fp, #-60]
	mov	r1, r3
	ldr	r0, .L95+8
	bl	printf
	sub	r3, fp, #112
	mov	r1, #1
	mov	r0, r3
	bl	XLookupKeysym
	str	r0, [fp, #-168]
	ldr	r1, [fp, #-168]
	ldr	r0, .L95+12
	bl	printf
	ldr	r3, [fp, #-60]
	cmp	r3, #38
	bne	.L79
	ldr	r3, [fp, #-196]
	ldmia	r3, {r4-r5}
	ldr	r0, .L95+16
	ldr	r1, .L95+20
	mov	r2, #0
	ldr	r3, .L95+4
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-196]
	stm	r1, {r2-r3}
	ldr	r1, [fp, #-196]
	ldr	r0, [fp, #-192]
	bl	redraw
	str	r0, [fp, #-200]
.L79:
	ldr	r3, [fp, #-60]
	cmp	r3, #24
	bne	.L80
	ldr	r3, [fp, #-196]
	ldmia	r3, {r4-r5}
	ldr	r2, .L95+16
	ldr	r3, .L95+20
	mov	r0, #0
	ldr	r1, .L95+4
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-196]
	stm	r1, {r2-r3}
	ldr	r1, [fp, #-196]
	ldr	r0, [fp, #-192]
	bl	redraw
	str	r0, [fp, #-200]
.L80:
	ldr	r3, [fp, #-168]
	ldr	r2, .L95+24
	cmp	r3, r2
	bne	.L81
	ldr	r3, [fp, #-196]
	add	r5, r3, #8
	ldmia	r5, {r4-r5}
	ldr	r3, [fp, #-196]
	ldmia	r3, {r0-r1}
	mov	r2, #0
	ldr	r3, .L95+28
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-196]
	str	r2, [r1, #8]
	str	r3, [r1, #12]
	ldr	r1, [fp, #-196]
	ldr	r0, [fp, #-192]
	bl	redraw
	str	r0, [fp, #-200]
.L81:
	ldr	r3, [fp, #-168]
	ldr	r2, .L95+32
	cmp	r3, r2
	bne	.L82
	ldr	r3, [fp, #-196]
	add	r5, r3, #8
	ldmia	r5, {r4-r5}
	ldr	r3, [fp, #-196]
	ldmia	r3, {r0-r1}
	mov	r2, #0
	ldr	r3, .L95+28
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-196]
	str	r2, [r1, #8]
	str	r3, [r1, #12]
	ldr	r1, [fp, #-196]
	ldr	r0, [fp, #-192]
	bl	redraw
	str	r0, [fp, #-200]
.L82:
	ldr	r3, [fp, #-168]
	ldr	r2, .L95+36
	cmp	r3, r2
	bne	.L83
	ldr	r3, [fp, #-196]
	add	r5, r3, #16
	ldmia	r5, {r4-r5}
	ldr	r3, [fp, #-196]
	ldmia	r3, {r0-r1}
	mov	r2, #0
	ldr	r3, .L95+28
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-196]
	str	r2, [r1, #16]
	str	r3, [r1, #20]
	ldr	r1, [fp, #-196]
	ldr	r0, [fp, #-192]
	bl	redraw
	str	r0, [fp, #-200]
.L83:
	ldr	r3, [fp, #-168]
	ldr	r2, .L95+40
	cmp	r3, r2
	bne	.L84
	ldr	r3, [fp, #-196]
	add	r5, r3, #16
	ldmia	r5, {r4-r5}
	ldr	r3, [fp, #-196]
	ldmia	r3, {r0-r1}
	mov	r2, #0
	ldr	r3, .L95+28
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-196]
	str	r2, [r1, #16]
	str	r3, [r1, #20]
	ldr	r1, [fp, #-196]
	ldr	r0, [fp, #-192]
	bl	redraw
	str	r0, [fp, #-200]
.L84:
	ldr	r3, [fp, #-60]
	cmp	r3, #27
	bne	.L85
	ldr	r3, [fp, #-196]
	ldr	r2, [r3, #24]
	ldr	r3, [fp, #-196]
	ldr	r3, [r3, #24]
	add	r1, r3, #3
	cmp	r3, #0
	movlt	r3, r1
	movge	r3, r3
	asr	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, [fp, #-196]
	str	r2, [r3, #24]
	ldr	r3, [fp, #-196]
	ldr	r3, [r3, #24]
	mov	r1, r3
	ldr	r0, .L95+44
	bl	printf
	ldr	r0, [fp, #-196]
	bl	recalcColorTable
	ldr	r1, [fp, #-196]
	ldr	r0, [fp, #-192]
	bl	redraw
	str	r0, [fp, #-200]
.L85:
	ldr	r3, [fp, #-60]
	cmp	r3, #41
	bne	.L94
	ldr	r3, [fp, #-196]
	ldr	r3, [r3, #24]
	lsl	r3, r3, #2
	ldr	r2, .L95+48
	smull	r1, r2, r3, r2
	asr	r2, r2, #1
	asr	r3, r3, #31
	sub	r2, r2, r3
	ldr	r3, [fp, #-196]
	str	r2, [r3, #24]
	ldr	r3, [fp, #-196]
	ldr	r3, [r3, #24]
	mov	r1, r3
	ldr	r0, .L95+44
	bl	printf
	ldr	r0, [fp, #-196]
	bl	recalcColorTable
	ldr	r1, [fp, #-196]
	ldr	r0, [fp, #-192]
	bl	redraw
	str	r0, [fp, #-200]
	b	.L94
.L78:
	ldr	r3, [fp, #-112]
	cmp	r3, #22
	bne	.L88
	sub	ip, fp, #164
	sub	lr, fp, #112
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	ldr	r2, [fp, #-132]
	ldr	r3, [fp, #-192]
	ldr	r3, [r3, #8]
	cmp	r2, r3
	bne	.L89
	ldr	r2, [fp, #-128]
	ldr	r3, [fp, #-192]
	ldr	r3, [r3, #12]
	cmp	r2, r3
	beq	.L88
.L89:
	ldr	r3, [fp, #-132]
	add	r2, r3, #3
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #2
	lsl	r2, r3, #2
	ldr	r3, [fp, #-192]
	str	r2, [r3, #8]
	ldr	r2, [fp, #-128]
	ldr	r3, [fp, #-192]
	str	r2, [r3, #12]
	ldr	r0, [fp, #-192]
	bl	freeOldImage
	ldr	r0, [fp, #-192]
	bl	recalcRowsForThreads
	ldr	r1, [fp, #-196]
	ldr	r0, [fp, #-192]
	bl	redraw
	str	r0, [fp, #-200]
.L88:
	ldr	r0, [fp, #-184]
	bl	XFlush
.L76:
	ldr	r0, [fp, #-184]
	bl	XPending
	mov	r3, r0
	cmp	r3, #0
	bgt	.L91
	b	.L76
.L94:
	nop
	b	.L76
.L96:
	.align	2
.L95:
	.word	.LC16
	.word	1072693248
	.word	.LC13
	.word	.LC14
	.word	-1717986918
	.word	1069128089
	.word	65361
	.word	1077149696
	.word	65363
	.word	65362
	.word	65364
	.word	.LC15
	.word	1717986919
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
