	.file	"128248.c"
	.intel_syntax noprefix
	.text
	.globl	cells
	.bss
	.align 8
	.type	cells, @object
	.size	cells, 8
cells:
	.zero	8
	.globl	start
	.align 8
	.type	start, @object
	.size	start, 8
start:
	.zero	8
	.globl	end
	.align 8
	.type	end, @object
	.size	end, 8
end:
	.zero	8
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.text
	.globl	make_grid
	.type	make_grid, @function
make_grid:
.LFB6:
	.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, 40
	.cfi_offset 3, -24
	movsd	QWORD PTR -40[rbp], xmm0
	mov	DWORD PTR -44[rbp], edi
	mov	DWORD PTR -48[rbp], esi
	movsd	xmm1, QWORD PTR -40[rbp]
	movsd	xmm0, QWORD PTR .LC0[rip]
	mulsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR m[rip], eax
	mov	eax, DWORD PTR -48[rbp]
	mov	DWORD PTR n[rip], eax
	mov	eax, DWORD PTR n[rip]
	lea	edx, 2[rax]
	mov	eax, DWORD PTR m[rip]
	imul	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR start[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR start[rip], rax
	mov	rdx, QWORD PTR start[rip]
	mov	eax, DWORD PTR m[rip]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	QWORD PTR cells[rip], rax
	mov	DWORD PTR -28[rbp], 0
	jmp	.L2
.L3:
	mov	rdx, QWORD PTR start[rip]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 6
	add	DWORD PTR -28[rbp], 1
.L2:
	mov	eax, DWORD PTR m[rip]
	cmp	DWORD PTR -28[rbp], eax
	jl	.L3
	mov	DWORD PTR -28[rbp], 0
	mov	rax, QWORD PTR cells[rip]
	mov	QWORD PTR end[rip], rax
	jmp	.L4
.L13:
	mov	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR -24[rbp], eax
	jmp	.L5
.L10:
	call	rand@PLT
	cmp	DWORD PTR -20[rbp], eax
	jle	.L6
	mov	ebx, 4
	jmp	.L7
.L6:
	mov	ebx, 0
.L7:
	call	rand@PLT
	cmp	DWORD PTR -20[rbp], eax
	jle	.L8
	mov	eax, 2
	jmp	.L9
.L8:
	mov	eax, 0
.L9:
	or	ebx, eax
	mov	ecx, ebx
	mov	rax, QWORD PTR end[rip]
	lea	rdx, 4[rax]
	mov	QWORD PTR end[rip], rdx
	mov	edx, ecx
	mov	DWORD PTR [rax], edx
.L5:
	sub	DWORD PTR -24[rbp], 1
	cmp	DWORD PTR -24[rbp], 0
	jne	.L10
	call	rand@PLT
	cmp	DWORD PTR -20[rbp], eax
	jle	.L11
	mov	ecx, 6
	jmp	.L12
.L11:
	mov	ecx, 2
.L12:
	mov	rax, QWORD PTR end[rip]
	lea	rdx, 4[rax]
	mov	QWORD PTR end[rip], rdx
	mov	DWORD PTR [rax], ecx
	add	DWORD PTR -28[rbp], 1
.L4:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -48[rbp]
	jl	.L13
	mov	eax, DWORD PTR m[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR end[rip]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	make_grid, .-make_grid
	.section	.rodata
.LC1:
	.string	"+--"
.LC2:
	.string	"+"
.LC3:
	.string	"[]"
.LC4:
	.string	"  "
.LC5:
	.string	"+  "
	.text
	.globl	show_grid
	.type	show_grid, @function
show_grid:
.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, 16
	mov	DWORD PTR -4[rbp], 0
	jmp	.L15
.L16:
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L15:
	mov	eax, DWORD PTR m[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L16
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	DWORD PTR -8[rbp], 0
	jmp	.L17
.L32:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -8[rbp], eax
	jne	.L18
	mov	eax, 32
	jmp	.L19
.L18:
	mov	eax, 124
.L19:
	mov	edi, eax
	call	putchar@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L20
.L25:
	mov	rdx, QWORD PTR cells[rip]
	mov	eax, DWORD PTR m[rip]
	imul	eax, DWORD PTR -8[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -4[rbp]
	add	eax, ecx
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	and	eax, 1
	test	eax, eax
	je	.L21
	lea	rax, .LC3[rip]
	jmp	.L22
.L21:
	lea	rax, .LC4[rip]
.L22:
	mov	rdi, rax
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR cells[rip]
	mov	eax, DWORD PTR m[rip]
	imul	eax, DWORD PTR -8[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -4[rbp]
	add	eax, ecx
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	and	eax, 2
	test	eax, eax
	je	.L23
	mov	eax, 124
	jmp	.L24
.L23:
	mov	eax, 32
.L24:
	mov	edi, eax
	call	putchar@PLT
	add	DWORD PTR -4[rbp], 1
.L20:
	mov	eax, DWORD PTR m[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L25
	mov	edi, 10
	call	putchar@PLT
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -8[rbp], eax
	je	.L33
	mov	DWORD PTR -4[rbp], 0
	jmp	.L28
.L31:
	mov	rdx, QWORD PTR cells[rip]
	mov	eax, DWORD PTR m[rip]
	imul	eax, DWORD PTR -8[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -4[rbp]
	add	eax, ecx
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	and	eax, 4
	test	eax, eax
	je	.L29
	lea	rax, .LC1[rip]
	jmp	.L30
.L29:
	lea	rax, .LC5[rip]
.L30:
	mov	rdi, rax
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L28:
	mov	eax, DWORD PTR m[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L31
	lea	rdi, .LC2[rip]
	call	puts@PLT
	add	DWORD PTR -8[rbp], 1
.L17:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -8[rbp], eax
	jle	.L32
	jmp	.L14
.L33:
	nop
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	show_grid, .-show_grid
	.globl	fill
	.type	fill, @function
fill:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	and	eax, 1
	test	eax, eax
	je	.L35
	mov	eax, 0
	jmp	.L36
.L35:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	or	eax, 1
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR end[rip]
	cmp	QWORD PTR -8[rbp], rax
	jb	.L37
	mov	eax, 1
	jmp	.L36
.L37:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	and	eax, 4
	test	eax, eax
	jne	.L38
	mov	eax, DWORD PTR m[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	fill
	test	eax, eax
	jne	.L39
.L38:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	and	eax, 2
	test	eax, eax
	jne	.L40
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 4
	mov	rdi, rax
	call	fill
	test	eax, eax
	jne	.L39
.L40:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, 4
	mov	eax, DWORD PTR [rax]
	and	eax, 2
	test	eax, eax
	jne	.L41
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, 4
	mov	rdi, rax
	call	fill
	test	eax, eax
	jne	.L39
.L41:
	mov	eax, DWORD PTR m[rip]
	neg	eax
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	and	eax, 4
	test	eax, eax
	jne	.L42
	mov	eax, DWORD PTR m[rip]
	cdqe
	sal	rax, 2
	neg	rax
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	fill
	test	eax, eax
	je	.L42
.L39:
	mov	eax, 1
	jmp	.L36
.L42:
	mov	eax, 0
.L36:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	fill, .-fill
	.globl	percolate
	.type	percolate, @function
percolate:
.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, 16
	mov	DWORD PTR -4[rbp], 0
	jmp	.L45
.L47:
	add	DWORD PTR -4[rbp], 1
.L45:
	mov	eax, DWORD PTR m[rip]
	cmp	DWORD PTR -4[rbp], eax
	jge	.L46
	mov	rdx, QWORD PTR cells[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rdi, rax
	call	fill
	test	eax, eax
	je	.L47
.L46:
	mov	eax, DWORD PTR m[rip]
	cmp	DWORD PTR -4[rbp], eax
	setl	al
	movzx	eax, al
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	percolate, .-percolate
	.section	.rodata
	.align 8
.LC7:
	.string	"\nrunning 10x10 grids 10000 times for each p:"
.LC9:
	.string	"p = %3g: %.4f\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 16
	mov	rax, QWORD PTR .LC6[rip]
	mov	esi, 10
	mov	edi, 10
	movq	xmm0, rax
	call	make_grid
	call	percolate
	call	show_grid
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	DWORD PTR -4[rbp], 1
	jmp	.L50
.L53:
	mov	DWORD PTR -8[rbp], 0
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L51
.L52:
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -4[rbp]
	movsd	xmm1, QWORD PTR .LC8[rip]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	mov	esi, 10
	mov	edi, 10
	movq	xmm0, rax
	call	make_grid
	call	percolate
	add	DWORD PTR -12[rbp], eax
	add	DWORD PTR -8[rbp], 1
.L51:
	cmp	DWORD PTR -8[rbp], 9999
	jle	.L52
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -12[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -8[rbp]
	movapd	xmm2, xmm0
	divsd	xmm2, xmm1
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -4[rbp]
	movsd	xmm1, QWORD PTR .LC8[rip]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movapd	xmm1, xmm2
	movq	xmm0, rax
	lea	rdi, .LC9[rip]
	mov	eax, 2
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L50:
	cmp	DWORD PTR -4[rbp], 9
	jle	.L53
	mov	rax, QWORD PTR start[rip]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	-4194304
	.long	1105199103
	.align 8
.LC6:
	.long	0
	.long	1071644672
	.align 8
.LC8:
	.long	0
	.long	1076101120
	.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	"128248.c"
	.text
	.comm	cells,4,4
	.comm	start,4,4
	.comm	end,4,4
	.comm	m,4,4
	.comm	n,4,4
	.global	__aeabi_dmul
	.global	__aeabi_d2iz
	.align	2
	.global	make_grid
	.syntax unified
	.arm
	.fpu softvfp
	.type	make_grid, %function
make_grid:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-36]
	str	r1, [fp, #-32]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	ldr	r2, .L14
	ldr	r3, .L14+4
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r2, .L14+8
	ldr	r3, [fp, #-40]
	str	r3, [r2]
	ldr	r2, .L14+12
	ldr	r3, [fp, #-44]
	str	r3, [r2]
	ldr	r3, .L14+16
	ldr	r0, [r3]
	ldr	r3, .L14+12
	ldr	r3, [r3]
	add	r3, r3, #2
	ldr	r2, .L14+8
	ldr	r2, [r2]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	mov	r1, r3
	bl	realloc
	mov	r3, r0
	ldr	r2, .L14+16
	str	r3, [r2]
	ldr	r3, .L14+16
	ldr	r2, [r3]
	ldr	r3, .L14+8
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, .L14+20
	str	r3, [r2]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L2
.L3:
	ldr	r3, .L14+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #6
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L2:
	ldr	r3, .L14+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L3
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, .L14+20
	ldr	r3, [r3]
	ldr	r2, .L14+24
	str	r3, [r2]
	b	.L4
.L13:
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-20]
	b	.L5
.L10:
	bl	rand
	mov	r2, r0
	ldr	r3, [fp, #-16]
	cmp	r3, r2
	ble	.L6
	mov	r4, #4
	b	.L7
.L6:
	mov	r4, #0
.L7:
	bl	rand
	mov	r2, r0
	ldr	r3, [fp, #-16]
	cmp	r3, r2
	ble	.L8
	mov	r3, #2
	b	.L9
.L8:
	mov	r3, #0
.L9:
	orr	r0, r4, r3
	ldr	r3, .L14+24
	ldr	r3, [r3]
	add	r2, r3, #4
	ldr	r1, .L14+24
	str	r2, [r1]
	mov	r2, r0
	str	r2, [r3]
.L5:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L10
	bl	rand
	mov	r2, r0
	ldr	r3, [fp, #-16]
	cmp	r3, r2
	ble	.L11
	mov	r2, #6
	b	.L12
.L11:
	mov	r2, #2
.L12:
	ldr	r3, .L14+24
	ldr	r3, [r3]
	add	r1, r3, #4
	ldr	r0, .L14+24
	str	r1, [r0]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L4:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	blt	.L13
	ldr	r3, .L14+24
	ldr	r3, [r3]
	ldr	r2, .L14+8
	ldr	r2, [r2]
	lsl	r2, r2, #2
	mov	r1, #0
	mov	r0, r3
	bl	memset
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L15:
	.align	2
.L14:
	.word	-4194304
	.word	1105199103
	.word	m
	.word	n
	.word	start
	.word	cells
	.word	end
	.size	make_grid, .-make_grid
	.section	.rodata
	.align	2
.LC0:
	.ascii	"+--\000"
	.align	2
.LC1:
	.ascii	"+\000"
	.align	2
.LC2:
	.ascii	"[]\000"
	.align	2
.LC3:
	.ascii	"  \000"
	.align	2
.LC4:
	.ascii	"+  \000"
	.text
	.align	2
	.global	show_grid
	.syntax unified
	.arm
	.fpu softvfp
	.type	show_grid, %function
show_grid:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L17
.L18:
	ldr	r0, .L36
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L17:
	ldr	r3, .L36+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L18
	ldr	r0, .L36+8
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L19
.L34:
	ldr	r3, .L36+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L20
	mov	r3, #32
	b	.L21
.L20:
	mov	r3, #124
.L21:
	mov	r0, r3
	bl	putchar
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L22
.L27:
	ldr	r3, .L36+16
	ldr	r2, [r3]
	ldr	r3, .L36+4
	ldr	r3, [r3]
	ldr	r1, [fp, #-12]
	mul	r1, r3, r1
	ldr	r3, [fp, #-8]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L23
	ldr	r3, .L36+20
	b	.L24
.L23:
	ldr	r3, .L36+24
.L24:
	mov	r0, r3
	bl	printf
	ldr	r3, .L36+16
	ldr	r2, [r3]
	ldr	r3, .L36+4
	ldr	r3, [r3]
	ldr	r1, [fp, #-12]
	mul	r1, r3, r1
	ldr	r3, [fp, #-8]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L25
	mov	r3, #124
	b	.L26
.L25:
	mov	r3, #32
.L26:
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L22:
	ldr	r3, .L36+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L27
	mov	r0, #10
	bl	putchar
	ldr	r3, .L36+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	beq	.L35
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L30
.L33:
	ldr	r3, .L36+16
	ldr	r2, [r3]
	ldr	r3, .L36+4
	ldr	r3, [r3]
	ldr	r1, [fp, #-12]
	mul	r1, r3, r1
	ldr	r3, [fp, #-8]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	and	r3, r3, #4
	cmp	r3, #0
	beq	.L31
	ldr	r3, .L36
	b	.L32
.L31:
	ldr	r3, .L36+28
.L32:
	mov	r0, r3
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L30:
	ldr	r3, .L36+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L33
	ldr	r0, .L36+8
	bl	puts
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L19:
	ldr	r3, .L36+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L34
	b	.L16
.L35:
	nop
.L16:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC0
	.word	m
	.word	.LC1
	.word	n
	.word	cells
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	show_grid, .-show_grid
	.align	2
	.global	fill
	.syntax unified
	.arm
	.fpu softvfp
	.type	fill, %function
fill:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L39
	mov	r3, #0
	b	.L40
.L39:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	orr	r2, r3, #1
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, .L48
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bcc	.L41
	mov	r3, #1
	b	.L40
.L41:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	and	r3, r3, #4
	cmp	r3, #0
	bne	.L42
	ldr	r3, .L48+4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	mov	r0, r3
	bl	fill
	mov	r3, r0
	cmp	r3, #0
	bne	.L43
.L42:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	and	r3, r3, #2
	cmp	r3, #0
	bne	.L44
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	mov	r0, r3
	bl	fill
	mov	r3, r0
	cmp	r3, #0
	bne	.L43
.L44:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #4
	ldr	r3, [r3]
	and	r3, r3, #2
	cmp	r3, #0
	bne	.L45
	ldr	r3, [fp, #-8]
	sub	r3, r3, #4
	mov	r0, r3
	bl	fill
	mov	r3, r0
	cmp	r3, #0
	bne	.L43
.L45:
	ldr	r3, .L48+4
	ldr	r3, [r3]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #30
	sub	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	ldr	r3, [r3]
	and	r3, r3, #4
	cmp	r3, #0
	bne	.L46
	ldr	r3, .L48+4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	rsb	r3, r3, #0
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	mov	r0, r3
	bl	fill
	mov	r3, r0
	cmp	r3, #0
	beq	.L46
.L43:
	mov	r3, #1
	b	.L40
.L46:
	mov	r3, #0
.L40:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L49:
	.align	2
.L48:
	.word	end
	.word	m
	.size	fill, .-fill
	.align	2
	.global	percolate
	.syntax unified
	.arm
	.fpu softvfp
	.type	percolate, %function
percolate:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L51
.L53:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L51:
	ldr	r3, .L55
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bge	.L52
	ldr	r3, .L55+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r0, r3
	bl	fill
	mov	r3, r0
	cmp	r3, #0
	beq	.L53
.L52:
	ldr	r3, .L55
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	movlt	r3, #1
	movge	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L56:
	.align	2
.L55:
	.word	m
	.word	cells
	.size	percolate, .-percolate
	.section	.rodata
	.align	2
.LC5:
	.ascii	"\012running 10x10 grids 10000 times for each p:\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.align	2
.LC6:
	.ascii	"p = %3g: %.4f\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #24
	mov	r3, #10
	mov	r2, #10
	mov	r0, #0
	ldr	r1, .L63
	bl	make_grid
	bl	percolate
	bl	show_grid
	ldr	r0, .L63+4
	bl	puts
	mov	r3, #1
	str	r3, [fp, #-24]
	b	.L58
.L61:
	mov	r3, #0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-32]
	b	.L59
.L60:
	ldr	r0, [fp, #-24]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L63+8
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r3, #10
	mov	r2, #10
	bl	make_grid
	bl	percolate
	mov	r2, r0
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L59:
	ldr	r3, [fp, #-28]
	ldr	r2, .L63+12
	cmp	r3, r2
	ble	.L60
	ldr	r0, [fp, #-24]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L63+8
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r0, [fp, #-32]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-28]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r2, r6
	mov	r3, r7
	ldr	r0, .L63+16
	bl	printf
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L58:
	ldr	r3, [fp, #-24]
	cmp	r3, #9
	ble	.L61
	ldr	r3, .L63+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L64:
	.align	2
.L63:
	.word	1071644672
	.word	.LC5
	.word	1076101120
	.word	9999
	.word	.LC6
	.word	start
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
