	.file	"685792.c"
	.intel_syntax noprefix
	.text
	.data
	.align 32
	.type	s_randtbl, @object
	.size	s_randtbl, 128
s_randtbl:
	.long	3
	.long	-1726662223
	.long	379960547
	.long	1735697613
	.long	1040273694
	.long	1313901226
	.long	1627687941
	.long	-179304937
	.long	-2073333483
	.long	1780058412
	.long	-1989503057
	.long	-615974602
	.long	344556628
	.long	939512070
	.long	-1249116260
	.long	1507946756
	.long	-812545463
	.long	154635395
	.long	1388815473
	.long	-1926676823
	.long	525320961
	.long	-1009028674
	.long	968117788
	.long	-123449607
	.long	1284210865
	.long	435012392
	.long	-2017506339
	.long	-911064859
	.long	-370259173
	.long	1132637927
	.long	1398500161
	.long	-205601318
	.text
	.globl	my_rand
	.type	my_rand, @function
my_rand:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 128[rax]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 136[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 144[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	add	eax, edx
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -28[rbp], eax
	add	QWORD PTR -24[rbp], 4
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, QWORD PTR -8[rbp]
	jb	.L2
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 152[rax]
	mov	QWORD PTR -24[rbp], rax
	add	QWORD PTR -16[rbp], 4
	jmp	.L3
.L2:
	add	QWORD PTR -16[rbp], 4
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -8[rbp]
	jb	.L3
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 152[rax]
	mov	QWORD PTR -16[rbp], rax
.L3:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 128[rax], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 136[rax], rdx
	mov	eax, DWORD PTR -28[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	my_rand, .-my_rand
	.globl	init_seed
	.type	init_seed, @function
init_seed:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 72
	.cfi_offset 3, -24
	mov	QWORD PTR -72[rbp], rdi
	mov	DWORD PTR -60[rbp], 0
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, s_randtbl[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR -60[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
	add	DWORD PTR -60[rbp], 1
.L6:
	cmp	DWORD PTR -60[rbp], 31
	jle	.L7
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR 128[rax], rdx
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, 4[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR 136[rax], rdx
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, 128[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR 144[rax], rdx
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, 4[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR 152[rax], rdx
	mov	edi, 0
	call	time@PLT
	mov	rbx, rax
	call	omp_get_thread_num@PLT
	mov	ecx, eax
	sal	rbx, cl
	mov	rax, rbx
	mov	DWORD PTR -44[rbp], eax
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 152[rax]
	mov	edx, DWORD PTR -44[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 152[rax]
	mov	QWORD PTR -40[rbp], rax
	mov	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR -56[rbp], eax
	mov	DWORD PTR -52[rbp], 32
	mov	DWORD PTR -48[rbp], 1
	jmp	.L8
.L10:
	mov	eax, DWORD PTR -56[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, -2092037281
	shr	rdx, 32
	add	edx, eax
	sar	edx, 16
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	cdqe
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR -56[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, -2092037281
	shr	rdx, 32
	add	edx, eax
	sar	edx, 16
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 127773
	sub	eax, ecx
	mov	edx, eax
	movsx	rax, edx
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	imul	edx, eax, 16807
	mov	rax, QWORD PTR -32[rbp]
	imul	eax, eax, -2836
	add	eax, edx
	mov	DWORD PTR -56[rbp], eax
	cmp	DWORD PTR -56[rbp], 0
	jns	.L9
	add	DWORD PTR -56[rbp], 2147483647
.L9:
	add	QWORD PTR -40[rbp], 4
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -56[rbp]
	mov	DWORD PTR [rax], edx
	add	DWORD PTR -48[rbp], 1
.L8:
	mov	eax, DWORD PTR -48[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L10
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 152[rax]
	lea	rdx, 12[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR 128[rax], rdx
	mov	rax, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR 152[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR 136[rax], rdx
	mov	edx, DWORD PTR -52[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	DWORD PTR -52[rbp], eax
	jmp	.L11
.L12:
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	my_rand
.L11:
	sub	DWORD PTR -52[rbp], 1
	cmp	DWORD PTR -52[rbp], 0
	jns	.L12
	nop
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	init_seed, .-init_seed
	.section	.rodata
.LC0:
	.string	"Error! memory not allocated."
	.text
	.globl	push
	.type	push, @function
push:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L14
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	push, .-push
	.globl	pop
	.type	pop, @function
pop:
.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 -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rdx]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	pop, .-pop
	.section	.rodata
.LC1:
	.string	"wb"
.LC2:
	.string	"Unable to open file '%s'\n"
.LC3:
	.string	"P6 "
.LC4:
	.string	"%d %d "
.LC5:
	.string	"%d\n"
	.text
	.globl	writePPM
	.type	writePPM, @function
writePPM:
.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	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L19
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L19:
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 3
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	ecx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 255
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	ecx, DWORD PTR 4[rax]
	mov	eax, ecx
	add	eax, eax
	add	eax, ecx
	movsx	rsi, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rcx, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	writePPM, .-writePPM
	.globl	floodFillConnected
	.type	floodFillConnected, @function
floodFillConnected:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 72
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -88[rbp], rdi
	mov	DWORD PTR -92[rbp], esi
	mov	DWORD PTR -96[rbp], edx
	mov	DWORD PTR -100[rbp], ecx
	mov	esi, 16
	mov	edi, 16
	call	calloc@PLT
	mov	QWORD PTR -64[rbp], rax
	cmp	QWORD PTR -64[rbp], 0
	jne	.L21
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L21:
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	eax, DWORD PTR -92[rbp]
	movabs	rdx, -4294967296
	and	rdx, rbx
	or	rax, rdx
	mov	rbx, rax
	mov	eax, DWORD PTR -96[rbp]
	sal	rax, 32
	mov	edx, ebx
	or	rax, rdx
	mov	rbx, rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rbx
	mov	rdi, rax
	call	push
	mov	QWORD PTR -64[rbp], rax
	mov	edi, 8
	call	malloc@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	jne	.L23
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	edi, 1
	call	exit@PLT
.L27:
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pop
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -72[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR -68[rbp], eax
	mov	eax, DWORD PTR -100[rbp]
	imul	eax, DWORD PTR -72[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -68[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 1
	jne	.L23
	mov	eax, DWORD PTR -100[rbp]
	imul	eax, DWORD PTR -72[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -68[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 2
	mov	eax, DWORD PTR -68[rbp]
	add	eax, 1
	cmp	DWORD PTR -100[rbp], eax
	jle	.L24
	mov	eax, DWORD PTR -72[rbp]
	movabs	rdx, -4294967296
	and	rdx, r12
	or	rax, rdx
	mov	r12, rax
	mov	eax, DWORD PTR -68[rbp]
	add	eax, 1
	mov	eax, eax
	sal	rax, 32
	mov	edx, r12d
	or	rax, rdx
	mov	r12, rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, r12
	mov	rdi, rax
	call	push
	mov	QWORD PTR -64[rbp], rax
.L24:
	cmp	DWORD PTR -68[rbp], 0
	jle	.L25
	mov	eax, DWORD PTR -72[rbp]
	movabs	rdx, -4294967296
	and	rdx, r13
	or	rax, rdx
	mov	r13, rax
	mov	eax, DWORD PTR -68[rbp]
	sub	eax, 1
	mov	eax, eax
	sal	rax, 32
	mov	edx, r13d
	or	rax, rdx
	mov	r13, rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, r13
	mov	rdi, rax
	call	push
	mov	QWORD PTR -64[rbp], rax
.L25:
	mov	eax, DWORD PTR -72[rbp]
	add	eax, 1
	cmp	DWORD PTR -100[rbp], eax
	jle	.L26
	mov	eax, DWORD PTR -72[rbp]
	add	eax, 1
	mov	edx, eax
	movabs	rax, -4294967296
	and	rax, r14
	or	rax, rdx
	mov	r14, rax
	mov	eax, DWORD PTR -68[rbp]
	sal	rax, 32
	mov	edx, r14d
	or	rax, rdx
	mov	r14, rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, r14
	mov	rdi, rax
	call	push
	mov	QWORD PTR -64[rbp], rax
.L26:
	cmp	DWORD PTR -72[rbp], 0
	jle	.L23
	mov	eax, DWORD PTR -72[rbp]
	sub	eax, 1
	mov	edx, eax
	movabs	rax, -4294967296
	and	rax, r15
	or	rax, rdx
	mov	r15, rax
	mov	eax, DWORD PTR -68[rbp]
	sal	rax, 32
	mov	edx, r15d
	or	rax, rdx
	mov	r15, rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, r15
	mov	rdi, rax
	call	push
	mov	QWORD PTR -64[rbp], rax
.L23:
	cmp	QWORD PTR -64[rbp], 0
	jne	.L27
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	add	rsp, 72
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	floodFillConnected, .-floodFillConnected
	.globl	isGridConducting
	.type	isGridConducting, @function
isGridConducting:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L29
.L30:
	mov	edx, DWORD PTR -28[rbp]
	mov	esi, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, edx
	mov	edx, 0
	mov	rdi, rax
	call	floodFillConnected
	add	DWORD PTR -4[rbp], 1
.L29:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L30
	mov	DWORD PTR -4[rbp], 0
	jmp	.L31
.L34:
	mov	eax, DWORD PTR -28[rbp]
	imul	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	jne	.L32
	mov	eax, 1
	jmp	.L33
.L32:
	add	DWORD PTR -4[rbp], 1
.L31:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L34
	mov	eax, 0
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	isGridConducting, .-isGridConducting
	.globl	createImage
	.type	createImage, @function
createImage:
.LFB13:
	.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 -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	QWORD PTR -56[rbp], rdx
	mov	QWORD PTR -64[rbp], rcx
	mov	BYTE PTR -17[rbp], -128
	mov	BYTE PTR -16[rbp], -128
	mov	BYTE PTR -15[rbp], -128
	mov	BYTE PTR -14[rbp], 0
	mov	BYTE PTR -13[rbp], 0
	mov	BYTE PTR -12[rbp], 0
	mov	BYTE PTR -11[rbp], -1
	mov	BYTE PTR -10[rbp], -91
	mov	BYTE PTR -9[rbp], 0
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR -44[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR -44[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	QWORD PTR -8[rbp], 0
	jmp	.L36
.L40:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L37
	mov	rax, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rcx
	movzx	edx, WORD PTR -17[rbp]
	mov	WORD PTR [rax], dx
	movzx	edx, BYTE PTR -15[rbp]
	mov	BYTE PTR 2[rax], dl
	jmp	.L38
.L37:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 1
	jne	.L39
	mov	rax, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rcx
	movzx	edx, WORD PTR -14[rbp]
	mov	WORD PTR [rax], dx
	movzx	edx, BYTE PTR -12[rbp]
	mov	BYTE PTR 2[rax], dl
	jmp	.L38
.L39:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	jne	.L38
	mov	rax, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rcx
	movzx	edx, WORD PTR -11[rbp]
	mov	WORD PTR [rax], dx
	movzx	edx, BYTE PTR -9[rbp]
	mov	BYTE PTR 2[rax], dl
.L38:
	add	QWORD PTR -8[rbp], 1
.L36:
	mov	eax, DWORD PTR -44[rbp]
	imul	eax, eax
	cdqe
	cmp	QWORD PTR -8[rbp], rax
	jl	.L40
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	writePPM
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	createImage, .-createImage
	.globl	createConductingFibers
	.type	createConductingFibers, @function
createConductingFibers:
.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, 256
	mov	QWORD PTR -248[rbp], rdi
	mov	DWORD PTR -252[rbp], esi
	mov	DWORD PTR -256[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -176[rbp]
	mov	rdi, rax
	call	init_seed
	mov	eax, DWORD PTR -256[rbp]
	imul	eax, eax
	mov	eax, eax
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -200[rbp], rax
	cmp	QWORD PTR -200[rbp], 0
	jne	.L42
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	rax, QWORD PTR -248[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	edi, 1
	call	exit@PLT
.L42:
	mov	QWORD PTR -224[rbp], 0
	jmp	.L43
.L44:
	mov	rax, QWORD PTR -224[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -200[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -224[rbp]
	mov	QWORD PTR [rdx], rax
	add	QWORD PTR -224[rbp], 1
.L43:
	mov	eax, DWORD PTR -256[rbp]
	imul	eax, eax
	mov	eax, eax
	cmp	QWORD PTR -224[rbp], rax
	jl	.L44
	mov	QWORD PTR -216[rbp], 0
	jmp	.L45
.L46:
	lea	rax, -176[rbp]
	mov	rdi, rax
	call	my_rand
	mov	edx, eax
	mov	eax, DWORD PTR -256[rbp]
	imul	eax, eax
	mov	eax, eax
	sub	rax, QWORD PTR -216[rbp]
	mov	rcx, rax
	mov	rax, rdx
	cqo
	idiv	rcx
	mov	rax, QWORD PTR -216[rbp]
	add	rax, rdx
	mov	QWORD PTR -192[rbp], rax
	mov	rax, QWORD PTR -192[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -200[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -184[rbp], rax
	mov	rax, QWORD PTR -216[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -200[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR -192[rbp]
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -200[rbp]
	add	rdx, rcx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -216[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -200[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -184[rbp]
	mov	QWORD PTR [rdx], rax
	add	QWORD PTR -216[rbp], 1
.L45:
	mov	eax, DWORD PTR -256[rbp]
	imul	eax, eax
	sub	eax, 1
	mov	eax, eax
	cmp	QWORD PTR -216[rbp], rax
	jl	.L46
	mov	QWORD PTR -208[rbp], 0
	jmp	.L47
.L52:
	lea	rax, -176[rbp]
	mov	rdi, rax
	call	my_rand
	and	eax, 1
	mov	DWORD PTR -228[rbp], eax
	mov	rax, QWORD PTR -208[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -200[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -248[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1
	cmp	DWORD PTR -228[rbp], 1
	jne	.L48
	mov	rax, QWORD PTR -208[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -200[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -256[rbp]
	sub	rax, rdx
	test	rax, rax
	js	.L49
	mov	rax, QWORD PTR -208[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -200[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -256[rbp]
	sub	rax, rdx
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -248[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1
.L49:
	mov	rax, QWORD PTR -208[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -200[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -256[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -256[rbp]
	imul	eax, eax
	mov	eax, eax
	cmp	rdx, rax
	jge	.L50
	mov	rax, QWORD PTR -208[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -200[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -256[rbp]
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -248[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1
	jmp	.L50
.L48:
	mov	rax, QWORD PTR -208[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -200[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	ecx, DWORD PTR -256[rbp]
	cqo
	idiv	rcx
	mov	rax, rdx
	test	rax, rax
	je	.L51
	mov	rax, QWORD PTR -208[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -200[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	sal	rax, 2
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -248[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1
.L51:
	mov	rax, QWORD PTR -208[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -200[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	mov	ecx, DWORD PTR -256[rbp]
	cqo
	idiv	rcx
	mov	rax, rdx
	test	rax, rax
	je	.L50
	mov	rax, QWORD PTR -208[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -200[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -248[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1
.L50:
	add	QWORD PTR -208[rbp], 1
.L47:
	mov	eax, DWORD PTR -252[rbp]
	cmp	QWORD PTR -208[rbp], rax
	jl	.L52
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L53
	call	__stack_chk_fail@PLT
.L53:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	createConductingFibers, .-createConductingFibers
	.section	.rodata
.LC8:
	.string	"static"
.LC9:
	.string	"dynamic"
.LC10:
	.string	"guided"
.LC11:
	.string	"auto"
.LC12:
	.string	"Number of threads: %u\n"
	.align 8
.LC13:
	.string	"Average time per thread: %0.lf ms\n"
	.text
	.globl	monteCarlo
	.type	monteCarlo, @function
monteCarlo:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 136
	.cfi_offset 3, -24
	mov	DWORD PTR -132[rbp], edi
	mov	DWORD PTR -136[rbp], esi
	mov	DWORD PTR -140[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -108[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	call	omp_get_num_threads@PLT
	mov	DWORD PTR -96[rbp], eax
	mov	eax, DWORD PTR -96[rbp]
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -72[rbp], rax
	cmp	QWORD PTR -72[rbp], 0
	jne	.L55
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L55:
	mov	eax, DWORD PTR -136[rbp]
	imul	eax, eax
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -80[rbp], rax
	cmp	QWORD PTR -80[rbp], 0
	jne	.L56
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	edi, 1
	call	exit@PLT
.L56:
	call	omp_get_thread_num@PLT
	mov	DWORD PTR -92[rbp], eax
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -72[rbp]
	lea	rbx, [rdx+rax]
	call	omp_get_wtime@PLT
	movq	rax, xmm0
	mov	QWORD PTR [rbx], rax
	mov	DWORD PTR -104[rbp], 0
	jmp	.L57
.L58:
	mov	eax, DWORD PTR -136[rbp]
	imul	eax, eax
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -80[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	edx, DWORD PTR -136[rbp]
	mov	ecx, DWORD PTR -132[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	createConductingFibers
	mov	edx, DWORD PTR -136[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	isGridConducting
	add	DWORD PTR -108[rbp], eax
	add	DWORD PTR -104[rbp], 1
.L57:
	mov	eax, DWORD PTR -104[rbp]
	cmp	eax, DWORD PTR -140[rbp]
	jl	.L58
	call	omp_get_wtime@PLT
	movq	rax, xmm0
	mov	edx, DWORD PTR -92[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -72[rbp]
	add	rdx, rcx
	movsd	xmm0, QWORD PTR [rdx]
	movq	xmm1, rax
	subsd	xmm1, xmm0
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR .LC6[rip]
	mulsd	xmm0, xmm1
	movsd	QWORD PTR [rax], xmm0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -88[rbp], xmm0
	mov	DWORD PTR -100[rbp], 0
	jmp	.L59
.L60:
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	movsd	xmm1, QWORD PTR -88[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -88[rbp], xmm0
	add	DWORD PTR -100[rbp], 1
.L59:
	mov	eax, DWORD PTR -100[rbp]
	cmp	DWORD PTR -96[rbp], eax
	ja	.L60
	lea	rdx, -112[rbp]
	lea	rax, -116[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	omp_get_schedule@PLT
	lea	rax, .LC8[rip]
	mov	QWORD PTR -64[rbp], rax
	lea	rax, .LC9[rip]
	mov	QWORD PTR -56[rbp], rax
	lea	rax, .LC10[rip]
	mov	QWORD PTR -48[rbp], rax
	lea	rax, .LC11[rip]
	mov	QWORD PTR -40[rbp], rax
	mov	eax, DWORD PTR -96[rbp]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -96[rbp]
	test	rax, rax
	js	.L61
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L62
.L61:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L62:
	movsd	xmm1, QWORD PTR -88[rbp]
	divsd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	lea	rdi, .LC13[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, DWORD PTR -108[rbp]
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L64
	call	__stack_chk_fail@PLT
.L64:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	monteCarlo, .-monteCarlo
	.section	.rodata
.LC14:
	.string	"the_stack_data/685792.c"
.LC15:
	.string	"argc >= 4"
.LC16:
	.string	"%u"
.LC17:
	.string	"%f"
.LC18:
	.string	"(flag == 0) || (flag == 1)"
.LC19:
	.string	"N > 0"
.LC22:
	.string	"d >= 0 && d <= 1"
.LC23:
	.string	"argc == 5"
.LC24:
	.string	"M > 0"
	.align 8
.LC25:
	.string	"Args :  Flag: %u  N: %u  d: %.3f  M: %u\n"
	.align 8
.LC26:
	.string	"Args :  Flag: %u  N: %u  d: %.3f\n"
.LC27:
	.string	"Yes!"
.LC28:
	.string	"No!"
.LC29:
	.string	"Grid is conducting? : %s\n"
.LC30:
	.string	"conductingMaterial.ppm"
	.align 8
.LC31:
	.string	"Probability of conductivity: %.3f (%d/%d)\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -68[rbp], 3
	jg	.L66
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 483
	lea	rsi, .LC14[rip]
	lea	rdi, .LC15[rip]
	call	__assert_fail@PLT
.L66:
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdx, -60[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rdx, -56[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	lea	rdx, -48[rbp]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	eax, DWORD PTR -60[rbp]
	test	eax, eax
	je	.L67
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, 1
	je	.L67
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 490
	lea	rsi, .LC14[rip]
	lea	rdi, .LC18[rip]
	call	__assert_fail@PLT
.L67:
	mov	eax, DWORD PTR -56[rbp]
	test	eax, eax
	jne	.L68
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 491
	lea	rsi, .LC14[rip]
	lea	rdi, .LC19[rip]
	call	__assert_fail@PLT
.L68:
	movss	xmm0, DWORD PTR -48[rbp]
	pxor	xmm1, xmm1
	comiss	xmm0, xmm1
	jb	.L69
	movss	xmm1, DWORD PTR -48[rbp]
	movss	xmm0, DWORD PTR .LC21[rip]
	comiss	xmm0, xmm1
	jnb	.L72
.L69:
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 492
	lea	rsi, .LC14[rip]
	lea	rdi, .LC22[rip]
	call	__assert_fail@PLT
.L72:
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, 1
	jne	.L73
	cmp	DWORD PTR -68[rbp], 5
	je	.L74
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 496
	lea	rsi, .LC14[rip]
	lea	rdi, .LC23[rip]
	call	__assert_fail@PLT
.L74:
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	lea	rdx, -52[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	eax, DWORD PTR -52[rbp]
	test	eax, eax
	jne	.L75
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 498
	lea	rsi, .LC14[rip]
	lea	rdi, .LC24[rip]
	call	__assert_fail@PLT
.L75:
	mov	ecx, DWORD PTR -52[rbp]
	movss	xmm0, DWORD PTR -48[rbp]
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm0
	movq	rsi, xmm2
	mov	edx, DWORD PTR -56[rbp]
	mov	eax, DWORD PTR -60[rbp]
	movq	xmm0, rsi
	mov	esi, eax
	lea	rdi, .LC25[rip]
	mov	eax, 1
	call	printf@PLT
	jmp	.L76
.L73:
	movss	xmm0, DWORD PTR -48[rbp]
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, xmm0
	movq	rcx, xmm3
	mov	edx, DWORD PTR -56[rbp]
	mov	eax, DWORD PTR -60[rbp]
	movq	xmm0, rcx
	mov	esi, eax
	lea	rdi, .LC26[rip]
	mov	eax, 1
	call	printf@PLT
.L76:
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	edx, DWORD PTR -56[rbp]
	mov	eax, DWORD PTR -56[rbp]
	imul	eax, edx
	mov	eax, eax
	test	rax, rax
	js	.L77
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rax
	jmp	.L78
.L77:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rdx
	addss	xmm0, xmm0
.L78:
	movss	xmm1, DWORD PTR -48[rbp]
	mulss	xmm0, xmm1
	cvttss2si	rax, xmm0
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR -60[rbp]
	test	eax, eax
	jne	.L79
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L80
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L80:
	mov	edx, DWORD PTR -56[rbp]
	mov	eax, DWORD PTR -56[rbp]
	imul	eax, edx
	mov	edx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L81
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	edi, 1
	call	exit@PLT
.L81:
	mov	edx, DWORD PTR -56[rbp]
	mov	eax, DWORD PTR -56[rbp]
	imul	eax, edx
	mov	eax, eax
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L82
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	edi, 1
	call	exit@PLT
.L82:
	mov	edx, DWORD PTR -56[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	ecx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	createConductingFibers
	mov	eax, DWORD PTR -56[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	isGridConducting
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	je	.L83
	lea	rax, .LC27[rip]
	jmp	.L84
.L83:
	lea	rax, .LC28[rip]
.L84:
	mov	rsi, rax
	lea	rdi, .LC29[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -56[rbp]
	mov	esi, eax
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -16[rbp]
	lea	rcx, .LC30[rip]
	mov	rdi, rax
	call	createImage
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L85
.L79:
	mov	eax, DWORD PTR -52[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -56[rbp]
	mov	ecx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	monteCarlo
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	test	rax, rax
	js	.L86
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rax
	jmp	.L87
.L86:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rdx
	addss	xmm0, xmm0
.L87:
	mov	eax, DWORD PTR -52[rbp]
	mov	eax, eax
	test	rax, rax
	js	.L88
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, rax
	jmp	.L89
.L88:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, rdx
	addss	xmm1, xmm1
.L89:
	divss	xmm0, xmm1
	movss	DWORD PTR -40[rbp], xmm0
	mov	edx, DWORD PTR -52[rbp]
	pxor	xmm4, xmm4
	cvtss2sd	xmm4, DWORD PTR -40[rbp]
	movq	rax, xmm4
	mov	ecx, DWORD PTR -44[rbp]
	mov	esi, ecx
	movq	xmm0, rax
	lea	rdi, .LC31[rip]
	mov	eax, 1
	call	printf@PLT
.L85:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L91
	call	__stack_chk_fail@PLT
.L91:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	main, .-main
	.section	.rodata
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"main"
	.align 8
.LC6:
	.long	0
	.long	1083129856
	.align 4
.LC21:
	.long	1065353216
	.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	"685792.c"
	.text
	.data
	.align	2
	.type	s_randtbl, %object
	.size	s_randtbl, 128
s_randtbl:
	.word	3
	.word	-1726662223
	.word	379960547
	.word	1735697613
	.word	1040273694
	.word	1313901226
	.word	1627687941
	.word	-179304937
	.word	-2073333483
	.word	1780058412
	.word	-1989503057
	.word	-615974602
	.word	344556628
	.word	939512070
	.word	-1249116260
	.word	1507946756
	.word	-812545463
	.word	154635395
	.word	1388815473
	.word	-1926676823
	.word	525320961
	.word	-1009028674
	.word	968117788
	.word	-123449607
	.word	1284210865
	.word	435012392
	.word	-2017506339
	.word	-911064859
	.word	-370259173
	.word	1132637927
	.word	1398500161
	.word	-205601318
	.text
	.align	2
	.global	my_rand
	.syntax unified
	.arm
	.fpu softvfp
	.type	my_rand, %function
my_rand:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #128]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #132]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #136]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bcc	.L2
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #140]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	str	r3, [fp, #-16]
	b	.L3
.L2:
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bcc	.L3
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #140]
	str	r3, [fp, #-16]
.L3:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #128]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #132]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	my_rand, .-my_rand
	.align	2
	.global	init_seed
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_seed, %function
init_seed:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	str	r0, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L6
.L7:
	ldr	r2, .L13
	ldr	r3, [fp, #-44]
	ldr	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-44]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L6:
	ldr	r3, [fp, #-44]
	cmp	r3, #31
	ble	.L7
	ldr	r3, [fp, #-48]
	add	r2, r3, #8
	ldr	r3, [fp, #-48]
	str	r2, [r3, #128]
	ldr	r3, [fp, #-48]
	add	r2, r3, #4
	ldr	r3, [fp, #-48]
	str	r2, [r3, #132]
	ldr	r3, [fp, #-48]
	add	r2, r3, #128
	ldr	r3, [fp, #-48]
	str	r2, [r3, #136]
	ldr	r3, [fp, #-48]
	add	r2, r3, #4
	ldr	r3, [fp, #-48]
	str	r2, [r3, #140]
	mov	r0, #0
	bl	time
	mov	r4, r0
	bl	omp_get_thread_num
	mov	r3, r0
	lsl	r3, r4, r3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #140]
	ldr	r2, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #140]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-36]
	mov	r3, #32
	str	r3, [fp, #-32]
	mov	r3, #1
	str	r3, [fp, #-28]
	b	.L8
.L10:
	ldr	r3, [fp, #-36]
	ldr	r2, .L13+4
	smull	r1, r2, r3, r2
	add	r2, r2, r3
	asr	r2, r2, #16
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-36]
	ldr	r2, .L13+4
	smull	r1, r2, r3, r2
	add	r2, r2, r3
	asr	r1, r2, #16
	asr	r2, r3, #31
	sub	r2, r1, r2
	ldr	r1, .L13+8
	mul	r2, r1, r2
	sub	r3, r3, r2
	str	r3, [fp, #-16]
	ldr	r1, [fp, #-16]
	mov	r2, r1
	lsl	r2, r2, #2
	add	r2, r2, r1
	lsl	r3, r2, #4
	sub	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r1
	lsl	r2, r3, #3
	sub	r2, r2, r3
	ldr	r3, [fp, #-20]
	ldr	r1, .L13+12
	mul	r3, r1, r3
	add	r3, r2, r3
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bge	.L9
	ldr	r3, [fp, #-36]
	sub	r3, r3, #-2147483647
	str	r3, [fp, #-36]
.L9:
	ldr	r3, [fp, #-40]
	add	r3, r3, #4
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-36]
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L8:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L10
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #140]
	add	r2, r3, #12
	ldr	r3, [fp, #-48]
	str	r2, [r3, #128]
	ldr	r3, [fp, #-48]
	ldr	r2, [r3, #140]
	ldr	r3, [fp, #-48]
	str	r2, [r3, #132]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	str	r3, [fp, #-32]
	b	.L11
.L12:
	ldr	r0, [fp, #-48]
	bl	my_rand
.L11:
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L12
	nop
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L14:
	.align	2
.L13:
	.word	s_randtbl
	.word	-2092037281
	.word	127773
	.word	-2836
	.size	init_seed, .-init_seed
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Error! memory not allocated.\000"
	.text
	.align	2
	.global	push
	.syntax unified
	.arm
	.fpu softvfp
	.type	push, %function
push:
	@ 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]
	sub	r3, fp, #24
	stm	r3, {r1, r2}
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L16
	ldr	r0, .L18
	bl	perror
	mov	r0, #1
	bl	exit
.L16:
	ldr	r3, [fp, #-8]
	mov	r2, r3
	sub	r3, fp, #24
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC2
	.size	push, .-push
	.align	2
	.global	pop
	.syntax unified
	.arm
	.fpu softvfp
	.type	pop, %function
pop:
	@ 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]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r0, [fp, #-8]
	bl	free
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	pop, .-pop
	.section	.rodata
	.align	2
.LC3:
	.ascii	"wb\000"
	.align	2
.LC4:
	.ascii	"Unable to open file '%s'\012\000"
	.align	2
.LC5:
	.ascii	"P6 \000"
	.align	2
.LC6:
	.ascii	"%d %d \000"
	.align	2
.LC7:
	.ascii	"%d\012\000"
	.text
	.align	2
	.global	writePPM
	.syntax unified
	.arm
	.fpu softvfp
	.type	writePPM, %function
writePPM:
	@ 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]
	str	r1, [fp, #-20]
	ldr	r1, .L24
	ldr	r0, [fp, #-16]
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L23
	ldr	r3, .L24+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L24+8
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L23:
	ldr	r3, [fp, #-8]
	mov	r2, #3
	mov	r1, #1
	ldr	r0, .L24+12
	bl	fwrite
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	ldr	r1, .L24+16
	ldr	r0, [fp, #-8]
	bl	fprintf
	mov	r2, #255
	ldr	r1, .L24+20
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r3, [fp, #-20]
	ldr	r0, [r3, #8]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #4]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	mov	r1, r3
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-8]
	bl	fwrite
	ldr	r0, [fp, #-8]
	bl	fclose
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC3
	.word	stderr
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	writePPM, .-writePPM
	.align	2
	.global	floodFillConnected
	.syntax unified
	.arm
	.fpu softvfp
	.type	floodFillConnected, %function
floodFillConnected:
	@ 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, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	str	r3, [fp, #-52]
	mov	r1, #12
	mov	r0, #12
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L27
	ldr	r0, .L34
	bl	perror
	mov	r0, #1
	bl	exit
.L27:
	ldr	r3, [fp, #-36]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-16]
	sub	r3, fp, #20
	ldm	r3, {r1, r2}
	ldr	r0, [fp, #-36]
	bl	push
	str	r0, [fp, #-36]
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L29
	ldr	r0, .L34
	bl	perror
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-36]
	bl	free
	mov	r0, #1
	bl	exit
.L33:
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-36]
	bl	pop
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-28]
	mul	r2, r3, r2
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L29
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-28]
	mul	r2, r3, r2
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	mov	r2, #2
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	ble	.L30
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	sub	r3, fp, #12
	ldm	r3, {r1, r2}
	ldr	r0, [fp, #-36]
	bl	push
	str	r0, [fp, #-36]
.L30:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	ble	.L31
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	sub	r3, fp, #12
	ldm	r3, {r1, r2}
	ldr	r0, [fp, #-36]
	bl	push
	str	r0, [fp, #-36]
.L31:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	ble	.L32
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-8]
	sub	r3, fp, #12
	ldm	r3, {r1, r2}
	ldr	r0, [fp, #-36]
	bl	push
	str	r0, [fp, #-36]
.L32:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	ble	.L29
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-8]
	sub	r3, fp, #12
	ldm	r3, {r1, r2}
	ldr	r0, [fp, #-36]
	bl	push
	str	r0, [fp, #-36]
.L29:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L33
	ldr	r0, [fp, #-36]
	bl	free
	ldr	r0, [fp, #-32]
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC2
	.size	floodFillConnected, .-floodFillConnected
	.align	2
	.global	isGridConducting
	.syntax unified
	.arm
	.fpu softvfp
	.type	isGridConducting, %function
isGridConducting:
	@ 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]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L37
.L38:
	ldr	r3, [fp, #-20]
	mov	r2, #0
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	floodFillConnected
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L37:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L38
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L39
.L42:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-8]
	mul	r2, r3, r2
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L40
	mov	r3, #1
	b	.L41
.L40:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L39:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L42
	mov	r3, #0
.L41:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	isGridConducting, .-isGridConducting
	.section	.rodata
	.align	2
.LC0:
	.byte	-128
	.byte	-128
	.byte	-128
	.align	2
.LC1:
	.byte	-1
	.byte	-91
	.byte	0
	.text
	.align	2
	.global	createImage
	.syntax unified
	.arm
	.fpu softvfp
	.type	createImage, %function
createImage:
	@ 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, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r2, .L49
	sub	r3, fp, #20
	ldr	r2, [r2]
	strh	r2, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r2, #16
	strb	r2, [r3]
	mov	r3, #0
	strb	r3, [fp, #-16]
	mov	r3, #0
	strb	r3, [fp, #-15]
	mov	r3, #0
	strb	r3, [fp, #-14]
	ldr	r2, .L49+4
	sub	r3, fp, #12
	ldr	r2, [r2]
	strh	r2, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r2, #16
	strb	r2, [r3]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-28]
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-28]
	str	r2, [r3, #4]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L44
.L48:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L45
	ldr	r3, [fp, #-32]
	ldr	r1, [r3, #8]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r1, r3
	mov	r0, r3
	sub	r3, fp, #20
	mov	r2, #3
	mov	r1, r3
	bl	memcpy
	b	.L46
.L45:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L47
	ldr	r3, [fp, #-32]
	ldr	r1, [r3, #8]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r1, r3
	mov	r0, r3
	sub	r3, fp, #16
	mov	r2, #3
	mov	r1, r3
	bl	memcpy
	b	.L46
.L47:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L46
	ldr	r3, [fp, #-32]
	ldr	r1, [r3, #8]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r1, r3
	mov	r0, r3
	sub	r3, fp, #12
	mov	r2, #3
	mov	r1, r3
	bl	memcpy
.L46:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L44:
	ldr	r3, [fp, #-28]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L48
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-36]
	bl	writePPM
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L50:
	.align	2
.L49:
	.word	.LC0
	.word	.LC1
	.size	createImage, .-createImage
	.global	__aeabi_uidivmod
	.section	.rodata
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	createConductingFibers
	.syntax unified
	.arm
	.fpu softvfp
	.type	createConductingFibers, %function
createConductingFibers:
	@ args = 0, pretend = 0, frame = 192
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #192
	str	r0, [fp, #-184]
	str	r1, [fp, #-188]
	str	r2, [fp, #-192]
	ldr	r3, .L63
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #152
	mov	r0, r3
	bl	init_seed
	ldr	r3, [fp, #-192]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-168]
	ldr	r3, [fp, #-168]
	cmp	r3, #0
	bne	.L52
	ldr	r0, .L63+4
	bl	perror
	ldr	r0, [fp, #-184]
	bl	free
	mov	r0, #1
	bl	exit
.L52:
	mov	r3, #0
	str	r3, [fp, #-180]
	b	.L53
.L54:
	ldr	r3, [fp, #-180]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-168]
	add	r3, r2, r3
	ldr	r2, [fp, #-180]
	str	r2, [r3]
	ldr	r3, [fp, #-180]
	add	r3, r3, #1
	str	r3, [fp, #-180]
.L53:
	ldr	r3, [fp, #-192]
	mul	r2, r3, r3
	ldr	r3, [fp, #-180]
	cmp	r2, r3
	bhi	.L54
	mov	r3, #0
	str	r3, [fp, #-176]
	b	.L55
.L56:
	sub	r3, fp, #152
	mov	r0, r3
	bl	my_rand
	ldr	r3, [fp, #-192]
	mul	r2, r3, r3
	ldr	r3, [fp, #-176]
	sub	r3, r2, r3
	mov	r1, r3
	bl	__aeabi_uidivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, [fp, #-176]
	add	r3, r2, r3
	str	r3, [fp, #-160]
	ldr	r3, [fp, #-160]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-168]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-156]
	ldr	r3, [fp, #-176]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-168]
	add	r2, r2, r3
	ldr	r3, [fp, #-160]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-168]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-176]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-168]
	add	r3, r2, r3
	ldr	r2, [fp, #-156]
	str	r2, [r3]
	ldr	r3, [fp, #-176]
	add	r3, r3, #1
	str	r3, [fp, #-176]
.L55:
	ldr	r3, [fp, #-192]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	sub	r2, r3, #1
	ldr	r3, [fp, #-176]
	cmp	r2, r3
	bhi	.L56
	mov	r3, #0
	str	r3, [fp, #-172]
	b	.L57
.L61:
	sub	r3, fp, #152
	mov	r0, r3
	bl	my_rand
	mov	r3, r0
	and	r3, r3, #1
	str	r3, [fp, #-164]
	ldr	r3, [fp, #-172]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-168]
	add	r3, r2, r3
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-184]
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-164]
	cmp	r3, #1
	bne	.L58
	ldr	r3, [fp, #-172]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-168]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-192]
	sub	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-184]
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-172]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-168]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-192]
	add	r2, r2, r3
	ldr	r3, [fp, #-192]
	mov	r1, r3
	mul	r1, r3, r1
	mov	r3, r1
	cmp	r2, r3
	bcs	.L59
	ldr	r3, [fp, #-172]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-168]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-192]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-184]
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3]
	b	.L59
.L58:
	ldr	r3, [fp, #-172]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-168]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, [fp, #-192]
	mov	r0, r3
	bl	__aeabi_uidivmod
	mov	r3, r1
	cmp	r3, #0
	beq	.L60
	ldr	r3, [fp, #-172]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-168]
	add	r3, r2, r3
	ldr	r3, [r3]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-184]
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3]
.L60:
	ldr	r3, [fp, #-172]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-168]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r1, [fp, #-192]
	mov	r0, r3
	bl	__aeabi_uidivmod
	mov	r3, r1
	cmp	r3, #0
	beq	.L59
	ldr	r3, [fp, #-172]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-168]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-184]
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3]
.L59:
	ldr	r3, [fp, #-172]
	add	r3, r3, #1
	str	r3, [fp, #-172]
.L57:
	ldr	r3, [fp, #-172]
	ldr	r2, [fp, #-188]
	cmp	r2, r3
	bhi	.L61
	nop
	ldr	r3, .L63
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L62
	bl	__stack_chk_fail
.L62:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L64:
	.align	2
.L63:
	.word	.LC8
	.word	.LC2
	.size	createConductingFibers, .-createConductingFibers
	.global	__aeabi_dsub
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.section	.rodata
	.align	2
.LC9:
	.ascii	"static\000"
	.align	2
.LC10:
	.ascii	"dynamic\000"
	.align	2
.LC11:
	.ascii	"guided\000"
	.align	2
.LC12:
	.ascii	"auto\000"
	.align	2
.LC13:
	.ascii	"Number of threads: %u\012\000"
	.global	__aeabi_ui2d
	.global	__aeabi_ddiv
	.align	2
.LC14:
	.ascii	"Average time per thread: %0.lf ms\012\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	monteCarlo
	.syntax unified
	.arm
	.fpu softvfp
	.type	monteCarlo, %function
monteCarlo:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #92
	str	r0, [fp, #-88]
	str	r1, [fp, #-92]
	str	r2, [fp, #-96]
	ldr	r3, .L74
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-72]
	mov	r3, #0
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-56]
	bl	omp_get_num_threads
	mov	r3, r0
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bne	.L66
	ldr	r0, .L74+4
	bl	perror
	mov	r0, #1
	bl	exit
.L66:
	ldr	r3, [fp, #-92]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L67
	ldr	r0, .L74+4
	bl	perror
	ldr	r0, [fp, #-56]
	bl	free
	mov	r0, #1
	bl	exit
.L67:
	bl	omp_get_thread_num
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-56]
	add	r4, r2, r3
	bl	omp_get_wtime
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L68
.L69:
	ldr	r3, [fp, #-92]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-60]
	bl	memset
	ldr	r3, [fp, #-92]
	mov	r2, r3
	ldr	r1, [fp, #-88]
	ldr	r0, [fp, #-60]
	bl	createConductingFibers
	ldr	r1, [fp, #-92]
	ldr	r0, [fp, #-60]
	bl	isGridConducting
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-72]
	add	r3, r3, r2
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L68:
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-96]
	cmp	r2, r3
	blt	.L69
	bl	omp_get_wtime
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-56]
	add	r4, r2, r3
	mov	r2, #0
	ldr	r3, .L74+8
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L70
.L71:
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L70:
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	bhi	.L71
	sub	r2, fp, #76
	sub	r3, fp, #80
	mov	r1, r2
	mov	r0, r3
	bl	omp_get_schedule
	ldr	r3, .L74+12
	str	r3, [fp, #-32]
	ldr	r3, .L74+16
	str	r3, [fp, #-28]
	ldr	r3, .L74+20
	str	r3, [fp, #-24]
	ldr	r3, .L74+24
	str	r3, [fp, #-20]
	ldr	r1, [fp, #-52]
	ldr	r0, .L74+28
	bl	printf
	ldr	r0, [fp, #-52]
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L74+32
	bl	printf
	ldr	r3, [fp, #-72]
	ldr	r2, .L74
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L73
	bl	__stack_chk_fail
.L73:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L75:
	.align	2
.L74:
	.word	.LC15
	.word	.LC2
	.word	1083129856
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	monteCarlo, .-monteCarlo
	.section	.rodata
	.align	2
.LC16:
	.ascii	"the_stack_data/685792.c\000"
	.align	2
.LC17:
	.ascii	"argc >= 4\000"
	.align	2
.LC18:
	.ascii	"%u\000"
	.align	2
.LC19:
	.ascii	"%f\000"
	.align	2
.LC20:
	.ascii	"(flag == 0) || (flag == 1)\000"
	.align	2
.LC21:
	.ascii	"N > 0\000"
	.global	__aeabi_fcmpge
	.global	__aeabi_fcmple
	.align	2
.LC22:
	.ascii	"d >= 0 && d <= 1\000"
	.align	2
.LC23:
	.ascii	"argc == 5\000"
	.align	2
.LC24:
	.ascii	"M > 0\000"
	.global	__aeabi_f2d
	.align	2
.LC25:
	.ascii	"Args :  Flag: %u  N: %u  d: %.3f  M: %u\012\000"
	.align	2
.LC26:
	.ascii	"Args :  Flag: %u  N: %u  d: %.3f\012\000"
	.global	__aeabi_ui2f
	.global	__aeabi_fmul
	.global	__aeabi_f2iz
	.align	2
.LC27:
	.ascii	"Yes!\000"
	.align	2
.LC28:
	.ascii	"No!\000"
	.align	2
.LC29:
	.ascii	"Grid is conducting? : %s\012\000"
	.align	2
.LC30:
	.ascii	"conductingMaterial.ppm\000"
	.global	__aeabi_fdiv
	.align	2
.LC31:
	.ascii	"Probability of conductivity: %.3f (%d/%d)\012\000"
	.align	2
.LC32:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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, #72
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	ldr	r3, .L98
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-64]
	cmp	r3, #3
	bgt	.L77
	ldr	r3, .L98+4
	ldr	r2, .L98+8
	ldr	r1, .L98+12
	ldr	r0, .L98+16
	bl	__assert_fail
.L77:
	ldr	r3, [fp, #-68]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r2, fp, #56
	ldr	r1, .L98+20
	mov	r0, r3
	bl	__isoc99_sscanf
	ldr	r3, [fp, #-68]
	add	r3, r3, #8
	ldr	r3, [r3]
	sub	r2, fp, #52
	ldr	r1, .L98+20
	mov	r0, r3
	bl	__isoc99_sscanf
	ldr	r3, [fp, #-68]
	add	r3, r3, #12
	ldr	r3, [r3]
	sub	r2, fp, #44
	ldr	r1, .L98+24
	mov	r0, r3
	bl	__isoc99_sscanf
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L78
	ldr	r3, [fp, #-56]
	cmp	r3, #1
	beq	.L78
	ldr	r3, .L98+4
	ldr	r2, .L98+28
	ldr	r1, .L98+12
	ldr	r0, .L98+32
	bl	__assert_fail
.L78:
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bne	.L79
	ldr	r3, .L98+4
	ldr	r2, .L98+36
	ldr	r1, .L98+12
	ldr	r0, .L98+40
	bl	__assert_fail
.L79:
	ldr	r3, [fp, #-44]	@ float
	mov	r1, #0
	mov	r0, r3
	bl	__aeabi_fcmpge
	mov	r3, r0
	cmp	r3, #0
	beq	.L80
	ldr	r3, [fp, #-44]	@ float
	mov	r1, #1065353216
	mov	r0, r3
	bl	__aeabi_fcmple
	mov	r3, r0
	cmp	r3, #0
	bne	.L83
.L80:
	ldr	r3, .L98+4
	mov	r2, #492
	ldr	r1, .L98+12
	ldr	r0, .L98+44
	bl	__assert_fail
.L83:
	ldr	r3, [fp, #-56]
	cmp	r3, #1
	bne	.L84
	ldr	r3, [fp, #-64]
	cmp	r3, #5
	beq	.L85
	ldr	r3, .L98+4
	mov	r2, #496
	ldr	r1, .L98+12
	ldr	r0, .L98+48
	bl	__assert_fail
.L85:
	ldr	r3, [fp, #-68]
	add	r3, r3, #16
	ldr	r3, [r3]
	sub	r2, fp, #48
	ldr	r1, .L98+20
	mov	r0, r3
	bl	__isoc99_sscanf
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L86
	ldr	r3, .L98+4
	ldr	r2, .L98+52
	ldr	r1, .L98+12
	ldr	r0, .L98+56
	bl	__assert_fail
.L86:
	ldr	r4, [fp, #-56]
	ldr	r5, [fp, #-52]
	ldr	r3, [fp, #-44]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-48]
	str	r1, [sp, #8]
	stm	sp, {r2-r3}
	mov	r2, r5
	mov	r1, r4
	ldr	r0, .L98+60
	bl	printf
	b	.L87
.L84:
	ldr	r4, [fp, #-56]
	ldr	r5, [fp, #-52]
	ldr	r3, [fp, #-44]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r2, r5
	mov	r1, r4
	ldr	r0, .L98+64
	bl	printf
.L87:
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-52]
	mul	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_ui2f
	mov	r2, r0
	ldr	r3, [fp, #-44]	@ float
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2iz
	mov	r3, r0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bne	.L88
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L89
	ldr	r0, .L98+68
	bl	perror
	mov	r0, #1
	bl	exit
.L89:
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-52]
	mul	r2, r3, r2
	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]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L90
	ldr	r0, .L98+68
	bl	perror
	ldr	r0, [fp, #-28]
	bl	free
	mov	r0, #1
	bl	exit
.L90:
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-52]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L91
	ldr	r0, .L98+68
	bl	perror
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-28]
	bl	free
	mov	r0, #1
	bl	exit
.L91:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-52]
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	createConductingFibers
	ldr	r3, [fp, #-52]
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	isGridConducting
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L92
	ldr	r3, .L98+72
	b	.L93
.L92:
	ldr	r3, .L98+76
.L93:
	mov	r1, r3
	ldr	r0, .L98+80
	bl	printf
	ldr	r3, [fp, #-52]
	mov	r1, r3
	ldr	r3, .L98+84
	ldr	r2, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	createImage
	ldr	r0, [fp, #-24]
	bl	free
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-28]
	bl	free
	b	.L94
.L88:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-52]
	mov	r1, r2
	ldr	r2, [fp, #-48]
	mov	r0, r3
	bl	monteCarlo
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r0, [fp, #-36]
	bl	__aeabi_ui2f
	mov	r4, r0
	ldr	r3, [fp, #-48]
	mov	r0, r3
	bl	__aeabi_ui2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-32]	@ float
	ldr	r0, [fp, #-32]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-48]
	str	r1, [sp, #4]
	ldr	r1, [fp, #-36]
	str	r1, [sp]
	ldr	r0, .L98+88
	bl	printf
.L94:
	mov	r3, #0
	ldr	r2, .L98
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L96
	bl	__stack_chk_fail
.L96:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L99:
	.align	2
.L98:
	.word	.LC32
	.word	__PRETTY_FUNCTION__.6408
	.word	483
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	490
	.word	.LC20
	.word	491
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	498
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC2
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.6408, %object
	.size	__PRETTY_FUNCTION__.6408, 5
__PRETTY_FUNCTION__.6408:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
