	.file	"11076441.c"
	.intel_syntax noprefix
	.text
	.globl	height
	.bss
	.align 4
	.type	height, @object
	.size	height, 4
height:
	.zero	4
	.globl	width
	.align 4
	.type	width, @object
	.size	width, 4
width:
	.zero	4
	.globl	nthreads
	.align 4
	.type	nthreads, @object
	.size	nthreads, 4
nthreads:
	.zero	4
	.globl	t_ids
	.align 8
	.type	t_ids, @object
	.size	t_ids, 8
t_ids:
	.zero	8
	.globl	barrier
	.align 32
	.type	barrier, @object
	.size	barrier, 32
barrier:
	.zero	32
	.globl	array1
	.align 8
	.type	array1, @object
	.size	array1, 8
array1:
	.zero	8
	.globl	array2
	.align 8
	.type	array2, @object
	.size	array2, 8
array2:
	.zero	8
	.globl	curptr
	.align 8
	.type	curptr, @object
	.size	curptr, 8
curptr:
	.zero	8
	.globl	nextptr
	.align 8
	.type	nextptr, @object
	.size	nextptr, 8
nextptr:
	.zero	8
	.globl	temp
	.align 8
	.type	temp, @object
	.size	temp, 8
temp:
	.zero	8
	.globl	step_flag
	.align 4
	.type	step_flag, @object
	.size	step_flag, 4
step_flag:
	.zero	4
	.globl	max_step
	.align 4
	.type	max_step, @object
	.size	max_step, 4
max_step:
	.zero	4
	.globl	dflag
	.align 4
	.type	dflag, @object
	.size	dflag, 4
dflag:
	.zero	4
	.globl	filename
	.align 8
	.type	filename, @object
	.size	filename, 8
filename:
	.zero	8
	.section	.rodata
.LC0:
	.string	"Error of allocating memory"
.LC1:
	.string	"Problem in memory allocation"
	.align 8
.LC2:
	.string	"WARNING!!!! Too large board to print in screen."
	.align 8
.LC3:
	.string	"Maximum allowed dimensions is %d x %d.\n"
	.align 8
.LC4:
	.string	"Bigger values are allowed only in bench mode."
	.align 8
.LC5:
	.string	"Error of initialization barrier: %s\n"
.LC6:
	.string	"Error of creating thread: %s\n"
.LC7:
	.string	"Error of joining thread: %s\n"
	.align 8
.LC8:
	.string	"-------------------------------"
.LC9:
	.string	" Board's Last (%d) State "
	.align 8
.LC10:
	.string	"--------------------------------"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 56
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	DWORD PTR dflag[rip], 1
	mov	DWORD PTR step_flag[rip], 0
	mov	DWORD PTR max_step[rip], 100
	mov	DWORD PTR height[rip], 0
	mov	DWORD PTR width[rip], 0
	mov	QWORD PTR filename[rip], 0
	mov	DWORD PTR nthreads[rip], 1
	mov	rdx, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR -84[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	arg_check
	test	eax, eax
	je	.L2
	mov	eax, -1
	jmp	.L3
.L2:
	mov	eax, DWORD PTR height[rip]
	mov	eax, eax
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR array1[rip], rax
	mov	rax, QWORD PTR array1[rip]
	test	rax, rax
	jne	.L4
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L3
.L4:
	mov	DWORD PTR -76[rbp], 0
	jmp	.L5
.L7:
	mov	eax, DWORD PTR width[rip]
	mov	eax, eax
	sal	rax, 2
	mov	rcx, QWORD PTR array1[rip]
	mov	edx, DWORD PTR -76[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	rdx, QWORD PTR array1[rip]
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L6
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L3
.L6:
	add	DWORD PTR -76[rbp], 1
.L5:
	mov	edx, DWORD PTR -76[rbp]
	mov	eax, DWORD PTR height[rip]
	cmp	edx, eax
	jb	.L7
	mov	eax, DWORD PTR height[rip]
	mov	eax, eax
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR array2[rip], rax
	mov	rax, QWORD PTR array2[rip]
	test	rax, rax
	jne	.L8
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L3
.L8:
	mov	DWORD PTR -76[rbp], 0
	jmp	.L9
.L11:
	mov	eax, DWORD PTR width[rip]
	mov	eax, eax
	sal	rax, 2
	mov	rcx, QWORD PTR array2[rip]
	mov	edx, DWORD PTR -76[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	rdx, QWORD PTR array2[rip]
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L10
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L3
.L10:
	add	DWORD PTR -76[rbp], 1
.L9:
	mov	edx, DWORD PTR -76[rbp]
	mov	eax, DWORD PTR height[rip]
	cmp	edx, eax
	jb	.L11
	mov	rax, QWORD PTR array1[rip]
	mov	QWORD PTR curptr[rip], rax
	mov	rax, QWORD PTR array2[rip]
	mov	QWORD PTR nextptr[rip], rax
	mov	rax, QWORD PTR curptr[rip]
	mov	rdi, rax
	call	initialize_board
	mov	rax, QWORD PTR filename[rip]
	test	rax, rax
	je	.L12
	mov	rdx, QWORD PTR filename[rip]
	mov	rax, QWORD PTR curptr[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	read_file
	test	eax, eax
	je	.L13
	mov	eax, -1
	jmp	.L3
.L12:
	mov	eax, DWORD PTR height[rip]
	cmp	eax, 50
	ja	.L14
	mov	eax, DWORD PTR width[rip]
	cmp	eax, 160
	jbe	.L13
.L14:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edx, 160
	mov	esi, 50
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L3
.L13:
	mov	eax, DWORD PTR nthreads[rip]
	mov	rdx, rsp
	mov	rbx, rdx
	mov	edx, eax
	sub	rdx, 1
	mov	QWORD PTR -72[rbp], rdx
	mov	edx, eax
	mov	r14, rdx
	mov	r15d, 0
	mov	edx, eax
	mov	r12, rdx
	mov	r13d, 0
	mov	eax, eax
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L15:
	cmp	rsp, rdx
	je	.L16
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L15
.L16:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L17
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L17:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -64[rbp], rax
	mov	eax, DWORD PTR nthreads[rip]
	mov	eax, eax
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR t_ids[rip], rax
	mov	rax, QWORD PTR t_ids[rip]
	test	rax, rax
	jne	.L18
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L19
.L18:
	mov	eax, DWORD PTR nthreads[rip]
	mov	edx, eax
	mov	esi, 0
	lea	rdi, barrier[rip]
	call	pthread_barrier_init@PLT
	test	eax, eax
	je	.L20
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L19
.L20:
	mov	DWORD PTR -76[rbp], 0
	jmp	.L21
.L23:
	mov	rdx, QWORD PTR t_ids[rip]
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -76[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rdx, QWORD PTR t_ids[rip]
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rcx
	mov	rcx, rdx
	lea	rdx, entry_function[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	test	eax, eax
	je	.L22
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L19
.L22:
	add	DWORD PTR -76[rbp], 1
.L21:
	mov	edx, DWORD PTR -76[rbp]
	mov	eax, DWORD PTR nthreads[rip]
	cmp	edx, eax
	jb	.L23
	mov	DWORD PTR -76[rbp], 0
	jmp	.L24
.L26:
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -76[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	test	eax, eax
	je	.L25
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L19
.L25:
	add	DWORD PTR -76[rbp], 1
.L24:
	mov	edx, DWORD PTR -76[rbp]
	mov	eax, DWORD PTR nthreads[rip]
	cmp	edx, eax
	jb	.L26
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR max_step[rip]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	rax, QWORD PTR curptr[rip]
	mov	rdi, rax
	call	print
	call	free_memory
	mov	eax, 0
.L19:
	mov	rsp, rbx
.L3:
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC11:
	.string	"n:h:w:f:m:s"
.LC12:
	.string	"Give width dimension too!"
.LC13:
	.string	"Or leave default."
.LC14:
	.string	"Give length dimension too!"
.LC15:
	.string	"\nWARNING!"
	.align 8
.LC16:
	.string	"Dimensions arguments have overscale default input file"
.LC17:
	.string	"Hit ENTER to continue."
	.align 8
.LC18:
	.string	"Program create random aria, cause you don't put filename."
	.text
	.globl	arg_check
	.type	arg_check, @function
arg_check:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	cmp	DWORD PTR -20[rbp], 1
	jne	.L31
	call	print_help
	mov	eax, -1
	jmp	.L30
.L40:
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 102
	cmp	eax, 17
	ja	.L32
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L34[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L34[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L34:
	.long	.L39-.L34
	.long	.L32-.L34
	.long	.L38-.L34
	.long	.L32-.L34
	.long	.L32-.L34
	.long	.L32-.L34
	.long	.L32-.L34
	.long	.L37-.L34
	.long	.L36-.L34
	.long	.L32-.L34
	.long	.L32-.L34
	.long	.L32-.L34
	.long	.L32-.L34
	.long	.L35-.L34
	.long	.L32-.L34
	.long	.L32-.L34
	.long	.L32-.L34
	.long	.L33-.L34
	.text
.L36:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR nthreads[rip], eax
	jmp	.L31
.L38:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR height[rip], eax
	jmp	.L31
.L33:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR width[rip], eax
	jmp	.L31
.L39:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR filename[rip], rax
	jmp	.L31
.L37:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR max_step[rip], eax
	jmp	.L31
.L35:
	mov	DWORD PTR step_flag[rip], 1
	jmp	.L31
.L32:
	call	print_help
	nop
.L31:
	mov	rcx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	lea	rdx, .LC11[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L40
	mov	eax, DWORD PTR height[rip]
	test	eax, eax
	jne	.L41
	mov	eax, DWORD PTR width[rip]
	test	eax, eax
	jne	.L41
	mov	DWORD PTR dflag[rip], 1
	jmp	.L42
.L41:
	mov	eax, DWORD PTR height[rip]
	test	eax, eax
	je	.L43
	mov	eax, DWORD PTR width[rip]
	test	eax, eax
	jne	.L43
	lea	rdi, .LC12[rip]
	call	puts@PLT
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L30
.L43:
	mov	eax, DWORD PTR width[rip]
	test	eax, eax
	je	.L44
	mov	eax, DWORD PTR height[rip]
	test	eax, eax
	jne	.L44
	lea	rdi, .LC14[rip]
	call	puts@PLT
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L30
.L44:
	mov	eax, DWORD PTR width[rip]
	test	eax, eax
	je	.L42
	mov	eax, DWORD PTR height[rip]
	test	eax, eax
	je	.L42
	mov	DWORD PTR dflag[rip], 0
	mov	rax, QWORD PTR filename[rip]
	test	rax, rax
	je	.L42
	lea	rdi, .LC15[rip]
	call	puts@PLT
	lea	rdi, .LC16[rip]
	call	puts@PLT
	lea	rdi, .LC17[rip]
	call	puts@PLT
	call	getchar@PLT
.L42:
	mov	eax, DWORD PTR dflag[rip]
	test	eax, eax
	je	.L45
	mov	DWORD PTR height[rip], 25
	mov	DWORD PTR width[rip], 80
	mov	rax, QWORD PTR filename[rip]
	test	rax, rax
	jne	.L45
	lea	rdi, .LC18[rip]
	call	puts@PLT
.L45:
	mov	eax, 0
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	arg_check, .-arg_check
	.globl	initialize_board
	.type	initialize_board, @function
initialize_board:
.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	DWORD PTR -8[rbp], 0
	jmp	.L47
.L52:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L48
.L51:
	mov	eax, DWORD PTR dflag[rip]
	test	eax, eax
	je	.L49
	mov	rax, QWORD PTR filename[rip]
	test	rax, rax
	jne	.L49
	call	rand@PLT
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	mov	edx, eax
	jmp	.L50
.L49:
	mov	edx, 0
.L50:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	mov	DWORD PTR [rax], edx
	add	DWORD PTR -4[rbp], 1
.L48:
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR width[rip]
	cmp	edx, eax
	jb	.L51
	add	DWORD PTR -8[rbp], 1
.L47:
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR height[rip]
	cmp	edx, eax
	jb	.L52
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	initialize_board, .-initialize_board
	.section	.rodata
.LC19:
	.string	"r"
.LC20:
	.string	"Error opening file: %s\n"
	.text
	.globl	read_file
	.type	read_file, @function
read_file:
.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, 208
	mov	QWORD PTR -200[rbp], rdi
	mov	QWORD PTR -208[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -208[rbp]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -184[rbp], rax
	cmp	QWORD PTR -184[rbp], 0
	jne	.L54
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L60
.L54:
	mov	DWORD PTR -192[rbp], 0
	jmp	.L56
.L59:
	mov	rdx, QWORD PTR -184[rbp]
	lea	rax, -176[rbp]
	mov	esi, 160
	mov	rdi, rax
	call	fgets@PLT
	mov	DWORD PTR -188[rbp], 0
	jmp	.L57
.L58:
	mov	eax, DWORD PTR -188[rbp]
	cdqe
	movzx	eax, BYTE PTR -176[rbp+rax]
	cmp	al, 120
	sete	cl
	mov	eax, DWORD PTR -192[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -200[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -188[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	movzx	eax, cl
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -188[rbp], 1
.L57:
	mov	edx, DWORD PTR -188[rbp]
	mov	eax, DWORD PTR width[rip]
	cmp	edx, eax
	jb	.L58
	add	DWORD PTR -192[rbp], 1
.L56:
	mov	edx, DWORD PTR -192[rbp]
	mov	eax, DWORD PTR height[rip]
	cmp	edx, eax
	jb	.L59
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L60:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L61
	call	__stack_chk_fail@PLT
.L61:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	read_file, .-read_file
	.section	.rodata
.LC21:
	.string	"Could not wait on barrier"
.LC22:
	.string	"clear"
.LC23:
	.string	"-----------------------------"
.LC24:
	.string	" Board's Initial State "
.LC25:
	.string	"\n\t\tRenew every %d us  "
.LC26:
	.string	"Hit ENTER to start play!"
.LC27:
	.string	"----------------------------"
.LC28:
	.string	" Board's state in round: %*d "
.LC29:
	.string	"---------------------------"
.LC30:
	.string	"Hit ENTER to next step!"
	.text
	.globl	entry_function
	.type	entry_function, @function
entry_function:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR height[rip]
	mov	ecx, DWORD PTR nthreads[rip]
	mov	edx, 0
	div	ecx
	mov	DWORD PTR -24[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edx, DWORD PTR -24[rbp]
	imul	eax, edx
	mov	DWORD PTR -20[rbp], eax
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -24[rbp]
	add	eax, edx
	mov	DWORD PTR -16[rbp], eax
	mov	DWORD PTR -28[rbp], 0
	jmp	.L63
.L71:
	mov	rsi, QWORD PTR nextptr[rip]
	mov	rax, QWORD PTR curptr[rip]
	mov	ecx, DWORD PTR -16[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	rdi, rax
	call	play
	lea	rdi, barrier[rip]
	call	pthread_barrier_wait@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	je	.L64
	cmp	DWORD PTR -12[rbp], -1
	je	.L64
	lea	rdi, .LC21[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L64:
	cmp	DWORD PTR -12[rbp], -1
	jne	.L65
	cmp	DWORD PTR -28[rbp], 0
	jne	.L66
	mov	eax, DWORD PTR step_flag[rip]
	test	eax, eax
	jne	.L67
	lea	rdi, .LC22[rip]
	call	system@PLT
.L67:
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC24[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	rax, QWORD PTR curptr[rip]
	mov	rdi, rax
	call	print
	mov	eax, DWORD PTR step_flag[rip]
	test	eax, eax
	jne	.L68
	mov	esi, 500000
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC26[rip]
	call	puts@PLT
	call	getchar@PLT
	jmp	.L68
.L66:
	lea	rdi, .LC27[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, eax
	mov	esi, 3
	lea	rdi, .LC28[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC29[rip]
	call	puts@PLT
	mov	rax, QWORD PTR curptr[rip]
	mov	QWORD PTR temp[rip], rax
	mov	rax, QWORD PTR nextptr[rip]
	mov	QWORD PTR curptr[rip], rax
	mov	rax, QWORD PTR temp[rip]
	mov	QWORD PTR nextptr[rip], rax
	mov	rax, QWORD PTR curptr[rip]
	mov	rdi, rax
	call	print
.L68:
	mov	eax, DWORD PTR step_flag[rip]
	test	eax, eax
	je	.L69
	lea	rdi, .LC27[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC27[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC27[rip]
	call	puts@PLT
	lea	rdi, .LC30[rip]
	call	puts@PLT
	call	getchar@PLT
	jmp	.L65
.L69:
	mov	edi, 500000
	call	usleep@PLT
	lea	rdi, .LC22[rip]
	call	system@PLT
.L65:
	lea	rdi, barrier[rip]
	call	pthread_barrier_wait@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	je	.L70
	cmp	DWORD PTR -12[rbp], -1
	je	.L70
	lea	rdi, .LC21[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L70:
	add	DWORD PTR -28[rbp], 1
.L63:
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR max_step[rip]
	cmp	edx, eax
	jb	.L71
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	entry_function, .-entry_function
	.globl	play
	.type	play, @function
play:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	DWORD PTR -40[rbp], ecx
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L74
.L81:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L75
.L80:
	mov	edx, DWORD PTR -8[rbp]
	mov	ecx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	adjacent_to
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 2
	jne	.L76
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -32[rbp]
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
.L76:
	cmp	DWORD PTR -4[rbp], 3
	jne	.L77
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 1
.L77:
	cmp	DWORD PTR -4[rbp], 1
	jg	.L78
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 0
.L78:
	cmp	DWORD PTR -4[rbp], 3
	jle	.L79
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 0
.L79:
	add	DWORD PTR -8[rbp], 1
.L75:
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR width[rip]
	cmp	edx, eax
	jb	.L80
	add	DWORD PTR -12[rbp], 1
.L74:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -40[rbp]
	jl	.L81
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	play, .-play
	.globl	adjacent_to
	.type	adjacent_to, @function
adjacent_to:
.LFB12:
	.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 -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -12[rbp], -1
	jmp	.L83
.L90:
	mov	DWORD PTR -8[rbp], -1
	jmp	.L84
.L89:
	cmp	DWORD PTR -12[rbp], 0
	jne	.L85
	cmp	DWORD PTR -8[rbp], 0
	je	.L86
.L85:
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	test	eax, eax
	jle	.L86
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	mov	edx, eax
	mov	eax, DWORD PTR height[rip]
	cmp	edx, eax
	jnb	.L86
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	test	eax, eax
	jle	.L86
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	mov	edx, eax
	mov	eax, DWORD PTR width[rip]
	cmp	edx, eax
	jnb	.L86
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	ecx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, ecx
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L86
	add	DWORD PTR -4[rbp], 1
.L86:
	cmp	DWORD PTR -4[rbp], 3
	jle	.L87
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L88
.L87:
	add	DWORD PTR -8[rbp], 1
.L84:
	cmp	DWORD PTR -8[rbp], 1
	jle	.L89
	add	DWORD PTR -12[rbp], 1
.L83:
	cmp	DWORD PTR -12[rbp], 1
	jle	.L90
	mov	eax, DWORD PTR -4[rbp]
.L88:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	adjacent_to, .-adjacent_to
	.section	.rodata
.LC31:
	.string	"|"
	.text
	.globl	print
	.type	print, @function
print:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -8[rbp], 0
	jmp	.L92
.L97:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L93
.L96:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L94
	mov	eax, 120
	jmp	.L95
.L94:
	mov	eax, 32
.L95:
	mov	edi, eax
	call	putchar@PLT
	add	DWORD PTR -4[rbp], 1
.L93:
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR width[rip]
	cmp	edx, eax
	jb	.L96
	lea	rdi, .LC31[rip]
	call	puts@PLT
	add	DWORD PTR -8[rbp], 1
.L92:
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR height[rip]
	cmp	edx, eax
	jb	.L97
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	print, .-print
	.section	.rodata
.LC32:
	.string	"\nUsage:\t ./GOL OPTIONS"
.LC33:
	.string	"\tOPTIONS:"
	.align 8
.LC34:
	.string	"\t\t-n  Number of Threads (mandatory option)"
.LC35:
	.string	"\t\t-h  Set Board Height (Raws)"
	.align 8
.LC36:
	.string	"\t\t-w  Set Board Width (Columns)"
.LC37:
	.string	"\t\t-f  Input File"
.LC38:
	.string	"\t\t-s  Step Mode\n"
	.align 8
.LC39:
	.string	"\t\t-m  Count of Steps (default: 100)\n"
	.text
	.globl	print_help
	.type	print_help, @function
print_help:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC32[rip]
	call	puts@PLT
	lea	rdi, .LC33[rip]
	call	puts@PLT
	lea	rdi, .LC34[rip]
	call	puts@PLT
	lea	rdi, .LC35[rip]
	call	puts@PLT
	lea	rdi, .LC36[rip]
	call	puts@PLT
	lea	rdi, .LC37[rip]
	call	puts@PLT
	lea	rdi, .LC38[rip]
	call	puts@PLT
	lea	rdi, .LC39[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	print_help, .-print_help
	.globl	free_memory
	.type	free_memory, @function
free_memory:
.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, 16
	mov	DWORD PTR -4[rbp], 0
	jmp	.L100
.L101:
	mov	rdx, QWORD PTR array1[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -4[rbp], 1
.L100:
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR height[rip]
	cmp	edx, eax
	jb	.L101
	mov	rax, QWORD PTR array1[rip]
	mov	rdi, rax
	call	free@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L102
.L103:
	mov	rdx, QWORD PTR array2[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -4[rbp], 1
.L102:
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR height[rip]
	cmp	edx, eax
	jb	.L103
	mov	rax, QWORD PTR array2[rip]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR t_ids[rip]
	mov	rdi, rax
	call	free@PLT
	lea	rdi, barrier[rip]
	call	pthread_barrier_destroy@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	free_memory, .-free_memory
	.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	"11076441.c"
	.text
	.comm	height,4,4
	.comm	width,4,4
	.comm	nthreads,4,4
	.comm	t_ids,4,4
	.comm	barrier,20,4
	.comm	array1,4,4
	.comm	array2,4,4
	.comm	curptr,4,4
	.comm	nextptr,4,4
	.comm	temp,4,4
	.comm	step_flag,4,4
	.comm	max_step,4,4
	.comm	dflag,4,4
	.comm	filename,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Error of allocating memory\000"
	.align	2
.LC1:
	.ascii	"Problem in memory allocation\000"
	.align	2
.LC2:
	.ascii	"WARNING!!!! Too large board to print in screen.\000"
	.align	2
.LC3:
	.ascii	"Maximum allowed dimensions is %d x %d.\012\000"
	.align	2
.LC4:
	.ascii	"Bigger values are allowed only in bench mode.\000"
	.align	2
.LC5:
	.ascii	"Error of initialization barrier: %s\012\000"
	.align	2
.LC6:
	.ascii	"Error of creating thread: %s\012\000"
	.align	2
.LC7:
	.ascii	"Error of joining thread: %s\012\000"
	.align	2
.LC8:
	.ascii	"-------------------------------\000"
	.align	2
.LC9:
	.ascii	" Board's Last (%d) State \000"
	.align	2
.LC10:
	.ascii	"--------------------------------\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L25+4
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L25+8
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L25+12
	mov	r2, #100
	str	r2, [r3]
	ldr	r3, .L25+16
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L25+20
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L25+24
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L25+28
	mov	r2, #1
	str	r2, [r3]
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	arg_check
	mov	r3, r0
	cmp	r3, #0
	beq	.L2
	mvn	r3, #0
	b	.L3
.L2:
	ldr	r3, .L25+16
	ldr	r3, [r3]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L25+32
	str	r2, [r3]
	ldr	r3, .L25+32
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L4
	ldr	r0, .L25+36
	bl	puts
	mvn	r3, #0
	b	.L3
.L4:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L5
.L7:
	ldr	r3, .L25+20
	ldr	r3, [r3]
	lsl	r1, r3, #2
	ldr	r3, .L25+32
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, .L25+32
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L6
	ldr	r0, .L25+36
	bl	puts
	mvn	r3, #0
	b	.L3
.L6:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L5:
	ldr	r2, [fp, #-28]
	ldr	r3, .L25+16
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L7
	ldr	r3, .L25+16
	ldr	r3, [r3]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L25+40
	str	r2, [r3]
	ldr	r3, .L25+40
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L8
	ldr	r0, .L25+36
	bl	puts
	mvn	r3, #0
	b	.L3
.L8:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L9
.L11:
	ldr	r3, .L25+20
	ldr	r3, [r3]
	lsl	r1, r3, #2
	ldr	r3, .L25+40
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, .L25+40
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L10
	ldr	r0, .L25+44
	bl	puts
	mvn	r3, #0
	b	.L3
.L10:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L9:
	ldr	r2, [fp, #-28]
	ldr	r3, .L25+16
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L11
	ldr	r3, .L25+32
	ldr	r3, [r3]
	ldr	r2, .L25+48
	str	r3, [r2]
	ldr	r3, .L25+40
	ldr	r3, [r3]
	ldr	r2, .L25+52
	str	r3, [r2]
	ldr	r3, .L25+48
	ldr	r3, [r3]
	mov	r0, r3
	bl	initialize_board
	ldr	r3, .L25+24
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L12
	ldr	r3, .L25+48
	ldr	r3, [r3]
	ldr	r2, .L25+24
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	read_file
	mov	r3, r0
	cmp	r3, #0
	beq	.L13
	mvn	r3, #0
	b	.L3
.L12:
	ldr	r3, .L25+16
	ldr	r3, [r3]
	cmp	r3, #50
	bhi	.L14
	ldr	r3, .L25+20
	ldr	r3, [r3]
	cmp	r3, #160
	bls	.L13
.L14:
	ldr	r0, .L25+56
	bl	puts
	mov	r2, #160
	mov	r1, #50
	ldr	r0, .L25+60
	bl	printf
	ldr	r0, .L25+64
	bl	puts
	mvn	r3, #0
	b	.L3
.L13:
	ldr	r3, .L25+28
	ldr	ip, [r3]
	mov	r3, sp
	mov	r4, r3
	mov	r3, ip
	sub	r3, r3, #1
	str	r3, [fp, #-24]
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	lsl	r3, ip, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-20]
	ldr	r3, .L25+28
	ldr	r3, [r3]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L25+68
	str	r2, [r3]
	ldr	r3, .L25+68
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L15
	ldr	r0, .L25+36
	bl	puts
	mvn	r3, #0
	b	.L16
.L15:
	ldr	r3, .L25+28
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, #0
	ldr	r0, .L25+72
	bl	pthread_barrier_init
	mov	r3, r0
	cmp	r3, #0
	beq	.L17
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L25+76
	bl	printf
	mvn	r3, #0
	b	.L16
.L17:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L18
.L20:
	ldr	r3, .L25+68
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-28]
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r0, r2, r3
	ldr	r3, .L25+68
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, .L25+80
	mov	r1, #0
	bl	pthread_create
	mov	r3, r0
	cmp	r3, #0
	beq	.L19
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L25+84
	bl	printf
	mvn	r3, #0
	b	.L16
.L19:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L18:
	ldr	r2, [fp, #-28]
	ldr	r3, .L25+28
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L20
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L21
.L23:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-28]
	ldr	r3, [r3, r2, lsl #2]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	mov	r3, r0
	cmp	r3, #0
	beq	.L22
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L25+88
	bl	printf
	mvn	r3, #0
	b	.L16
.L22:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L21:
	ldr	r2, [fp, #-28]
	ldr	r3, .L25+28
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L23
	ldr	r0, .L25+92
	bl	printf
	ldr	r3, .L25+12
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L25+96
	bl	printf
	ldr	r0, .L25+100
	bl	puts
	ldr	r3, .L25+48
	ldr	r3, [r3]
	mov	r0, r3
	bl	print
	bl	free_memory
	mov	r3, #0
.L16:
	mov	sp, r4
.L3:
	ldr	r2, .L25
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC11
	.word	dflag
	.word	step_flag
	.word	max_step
	.word	height
	.word	width
	.word	filename
	.word	nthreads
	.word	array1
	.word	.LC0
	.word	array2
	.word	.LC1
	.word	curptr
	.word	nextptr
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	t_ids
	.word	barrier
	.word	.LC5
	.word	entry_function
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.section	.rodata
	.align	2
.LC12:
	.ascii	"n:h:w:f:m:s\000"
	.align	2
.LC13:
	.ascii	"Give width dimension too!\000"
	.align	2
.LC14:
	.ascii	"Or leave default.\000"
	.align	2
.LC15:
	.ascii	"Give length dimension too!\000"
	.align	2
.LC16:
	.ascii	"\012WARNING!\000"
	.align	2
.LC17:
	.ascii	"Dimensions arguments have overscale default input f"
	.ascii	"ile\000"
	.align	2
.LC18:
	.ascii	"Hit ENTER to continue.\000"
	.align	2
.LC19:
	.ascii	"Program create random aria, cause you don't put fil"
	.ascii	"ename.\000"
	.text
	.align	2
	.global	arg_check
	.syntax unified
	.arm
	.fpu softvfp
	.type	arg_check, %function
arg_check:
	@ 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]
	cmp	r3, #1
	bne	.L30
	bl	print_help
	mvn	r3, #0
	b	.L29
.L39:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #102
	cmp	r3, #17
	ldrls	pc, [pc, r3, asl #2]
	b	.L31
.L33:
	.word	.L38
	.word	.L31
	.word	.L37
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L36
	.word	.L35
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L34
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L32
.L35:
	ldr	r3, .L45
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L45+4
	str	r2, [r3]
	b	.L30
.L37:
	ldr	r3, .L45
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L45+8
	str	r2, [r3]
	b	.L30
.L32:
	ldr	r3, .L45
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L45+12
	str	r2, [r3]
	b	.L30
.L38:
	ldr	r3, .L45
	ldr	r3, [r3]
	ldr	r2, .L45+16
	str	r3, [r2]
	b	.L30
.L36:
	ldr	r3, .L45
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L45+20
	str	r2, [r3]
	b	.L30
.L34:
	ldr	r3, .L45+24
	mov	r2, #1
	str	r2, [r3]
	b	.L30
.L31:
	bl	print_help
	nop
.L30:
	ldr	r2, .L45+28
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	getopt
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L39
	ldr	r3, .L45+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L40
	ldr	r3, .L45+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L40
	ldr	r3, .L45+32
	mov	r2, #1
	str	r2, [r3]
	b	.L41
.L40:
	ldr	r3, .L45+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L42
	ldr	r3, .L45+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L42
	ldr	r0, .L45+36
	bl	puts
	ldr	r0, .L45+40
	bl	puts
	mvn	r3, #0
	b	.L29
.L42:
	ldr	r3, .L45+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L43
	ldr	r3, .L45+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L43
	ldr	r0, .L45+44
	bl	puts
	ldr	r0, .L45+40
	bl	puts
	mvn	r3, #0
	b	.L29
.L43:
	ldr	r3, .L45+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L41
	ldr	r3, .L45+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L41
	ldr	r3, .L45+32
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L45+16
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L41
	ldr	r0, .L45+48
	bl	puts
	ldr	r0, .L45+52
	bl	puts
	ldr	r0, .L45+56
	bl	puts
	bl	getchar
.L41:
	ldr	r3, .L45+32
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L44
	ldr	r3, .L45+8
	mov	r2, #25
	str	r2, [r3]
	ldr	r3, .L45+12
	mov	r2, #80
	str	r2, [r3]
	ldr	r3, .L45+16
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L44
	ldr	r0, .L45+60
	bl	puts
.L44:
	mov	r3, #0
.L29:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L46:
	.align	2
.L45:
	.word	optarg
	.word	nthreads
	.word	height
	.word	width
	.word	filename
	.word	max_step
	.word	step_flag
	.word	.LC12
	.word	dflag
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.size	arg_check, .-arg_check
	.align	2
	.global	initialize_board
	.syntax unified
	.arm
	.fpu softvfp
	.type	initialize_board, %function
initialize_board:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L48
.L53:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L49
.L52:
	ldr	r3, .L54
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L50
	ldr	r3, .L54+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L50
	bl	rand
	mov	r3, r0
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	b	.L51
.L50:
	mov	r3, #0
.L51:
	ldr	r2, [fp, #-12]
	lsl	r2, r2, #2
	ldr	r1, [fp, #-16]
	add	r2, r1, r2
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	lsl	r2, r2, #2
	add	r2, r1, r2
	str	r3, [r2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L49:
	ldr	r2, [fp, #-8]
	ldr	r3, .L54+8
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L52
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L48:
	ldr	r2, [fp, #-12]
	ldr	r3, .L54+12
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L53
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L55:
	.align	2
.L54:
	.word	dflag
	.word	filename
	.word	width
	.word	height
	.size	initialize_board, .-initialize_board
	.section	.rodata
	.align	2
.LC20:
	.ascii	"r\000"
	.align	2
.LC21:
	.ascii	"Error opening file: %s\012\000"
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	read_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_file, %function
read_file:
	@ args = 0, pretend = 0, frame = 184
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #184
	str	r0, [fp, #-184]
	str	r1, [fp, #-188]
	ldr	r3, .L65
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L65+4
	ldr	r0, [fp, #-188]
	bl	fopen
	str	r0, [fp, #-172]
	ldr	r3, [fp, #-172]
	cmp	r3, #0
	bne	.L57
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L65+8
	bl	printf
	mov	r3, #1
	b	.L63
.L57:
	mov	r3, #0
	str	r3, [fp, #-180]
	b	.L59
.L62:
	sub	r3, fp, #168
	ldr	r2, [fp, #-172]
	mov	r1, #160
	mov	r0, r3
	bl	fgets
	mov	r3, #0
	str	r3, [fp, #-176]
	b	.L60
.L61:
	sub	r2, fp, #168
	ldr	r3, [fp, #-176]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #120
	moveq	r3, #1
	movne	r3, #0
	and	r1, r3, #255
	ldr	r3, [fp, #-180]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-184]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-176]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, r1
	str	r2, [r3]
	ldr	r3, [fp, #-176]
	add	r3, r3, #1
	str	r3, [fp, #-176]
.L60:
	ldr	r2, [fp, #-176]
	ldr	r3, .L65+12
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L61
	ldr	r3, [fp, #-180]
	add	r3, r3, #1
	str	r3, [fp, #-180]
.L59:
	ldr	r2, [fp, #-180]
	ldr	r3, .L65+16
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L62
	ldr	r0, [fp, #-172]
	bl	fclose
	mov	r3, #0
.L63:
	ldr	r2, .L65
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L64
	bl	__stack_chk_fail
.L64:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L66:
	.align	2
.L65:
	.word	.LC22
	.word	.LC20
	.word	.LC21
	.word	width
	.word	height
	.size	read_file, .-read_file
	.global	__aeabi_uidiv
	.section	.rodata
	.align	2
.LC23:
	.ascii	"Could not wait on barrier\000"
	.align	2
.LC24:
	.ascii	"clear\000"
	.align	2
.LC25:
	.ascii	"-----------------------------\000"
	.align	2
.LC26:
	.ascii	" Board's Initial State \000"
	.align	2
.LC27:
	.ascii	"\012\011\011Renew every %d us  \000"
	.align	2
.LC28:
	.ascii	"Hit ENTER to start play!\000"
	.align	2
.LC29:
	.ascii	"----------------------------\000"
	.align	2
.LC30:
	.ascii	" Board's state in round: %*d \000"
	.align	2
.LC31:
	.ascii	"---------------------------\000"
	.align	2
.LC32:
	.ascii	"Hit ENTER to next step!\000"
	.text
	.align	2
	.global	entry_function
	.syntax unified
	.arm
	.fpu softvfp
	.type	entry_function, %function
entry_function:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-24]
	ldr	r3, .L78
	ldr	r3, [r3]
	ldr	r2, .L78+4
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_uidiv
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	mul	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L68
.L76:
	ldr	r3, .L78+8
	ldr	r0, [r3]
	ldr	r3, .L78+12
	ldr	r1, [r3]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	bl	play
	ldr	r0, .L78+16
	bl	pthread_barrier_wait
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L69
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	beq	.L69
	ldr	r0, .L78+20
	bl	puts
	mvn	r0, #0
	bl	exit
.L69:
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L70
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L71
	ldr	r3, .L78+24
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L72
	ldr	r0, .L78+28
	bl	system
.L72:
	ldr	r0, .L78+32
	bl	printf
	ldr	r0, .L78+36
	bl	printf
	ldr	r0, .L78+40
	bl	puts
	ldr	r3, .L78+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	print
	ldr	r3, .L78+24
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L73
	ldr	r1, .L78+44
	ldr	r0, .L78+48
	bl	printf
	ldr	r0, .L78+52
	bl	puts
	bl	getchar
	b	.L73
.L71:
	ldr	r0, .L78+56
	bl	printf
	ldr	r2, [fp, #-28]
	mov	r1, #3
	ldr	r0, .L78+60
	bl	printf
	ldr	r0, .L78+64
	bl	puts
	ldr	r3, .L78+8
	ldr	r3, [r3]
	ldr	r2, .L78+68
	str	r3, [r2]
	ldr	r3, .L78+12
	ldr	r3, [r3]
	ldr	r2, .L78+8
	str	r3, [r2]
	ldr	r3, .L78+68
	ldr	r3, [r3]
	ldr	r2, .L78+12
	str	r3, [r2]
	ldr	r3, .L78+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	print
.L73:
	ldr	r3, .L78+24
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L74
	ldr	r0, .L78+56
	bl	printf
	ldr	r0, .L78+56
	bl	printf
	ldr	r0, .L78+56
	bl	puts
	ldr	r0, .L78+72
	bl	puts
	bl	getchar
	b	.L70
.L74:
	ldr	r0, .L78+44
	bl	usleep
	ldr	r0, .L78+28
	bl	system
.L70:
	ldr	r0, .L78+16
	bl	pthread_barrier_wait
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L75
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	beq	.L75
	ldr	r0, .L78+20
	bl	puts
	mvn	r0, #0
	bl	exit
.L75:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L68:
	ldr	r2, [fp, #-28]
	ldr	r3, .L78+76
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L76
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L79:
	.align	2
.L78:
	.word	height
	.word	nthreads
	.word	curptr
	.word	nextptr
	.word	barrier
	.word	.LC23
	.word	step_flag
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC10
	.word	500000
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	temp
	.word	.LC32
	.word	max_step
	.size	entry_function, .-entry_function
	.align	2
	.global	play
	.syntax unified
	.arm
	.fpu softvfp
	.type	play, %function
play:
	@ 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	r3, [fp, #-32]
	str	r3, [fp, #-16]
	b	.L81
.L88:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L82
.L87:
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-24]
	bl	adjacent_to
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	bne	.L83
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-28]
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
.L83:
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	bne	.L84
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3]
.L84:
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bgt	.L85
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
.L85:
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	ble	.L86
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
.L86:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L82:
	ldr	r2, [fp, #-12]
	ldr	r3, .L89
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L87
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L81:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	blt	.L88
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L90:
	.align	2
.L89:
	.word	width
	.size	play, .-play
	.align	2
	.global	adjacent_to
	.syntax unified
	.arm
	.fpu softvfp
	.type	adjacent_to, %function
adjacent_to:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #36
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-8]
	mvn	r3, #0
	str	r3, [fp, #-16]
	b	.L92
.L99:
	mvn	r3, #0
	str	r3, [fp, #-12]
	b	.L93
.L98:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L94
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L95
.L94:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	cmp	r3, #0
	ble	.L95
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, .L100
	ldr	r3, [r3]
	cmp	r2, r3
	bcs	.L95
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	cmp	r3, #0
	ble	.L95
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, .L100+4
	ldr	r3, [r3]
	cmp	r2, r3
	bcs	.L95
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r1, [fp, #-32]
	ldr	r3, [fp, #-12]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L95
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L95:
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	ble	.L96
	ldr	r3, [fp, #-8]
	b	.L97
.L96:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L93:
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	ble	.L98
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L92:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	ble	.L99
	ldr	r3, [fp, #-8]
.L97:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L101:
	.align	2
.L100:
	.word	height
	.word	width
	.size	adjacent_to, .-adjacent_to
	.section	.rodata
	.align	2
.LC33:
	.ascii	"|\000"
	.text
	.align	2
	.global	print
	.syntax unified
	.arm
	.fpu softvfp
	.type	print, %function
print:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L103
.L108:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L104
.L107:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L105
	mov	r3, #120
	b	.L106
.L105:
	mov	r3, #32
.L106:
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L104:
	ldr	r2, [fp, #-8]
	ldr	r3, .L109
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L107
	ldr	r0, .L109+4
	bl	puts
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L103:
	ldr	r2, [fp, #-12]
	ldr	r3, .L109+8
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L108
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L110:
	.align	2
.L109:
	.word	width
	.word	.LC33
	.word	height
	.size	print, .-print
	.section	.rodata
	.align	2
.LC34:
	.ascii	"\012Usage:\011 ./GOL OPTIONS\000"
	.align	2
.LC35:
	.ascii	"\011OPTIONS:\000"
	.align	2
.LC36:
	.ascii	"\011\011-n  Number of Threads (mandatory option)\000"
	.align	2
.LC37:
	.ascii	"\011\011-h  Set Board Height (Raws)\000"
	.align	2
.LC38:
	.ascii	"\011\011-w  Set Board Width (Columns)\000"
	.align	2
.LC39:
	.ascii	"\011\011-f  Input File\000"
	.align	2
.LC40:
	.ascii	"\011\011-s  Step Mode\012\000"
	.align	2
.LC41:
	.ascii	"\011\011-m  Count of Steps (default: 100)\012\000"
	.text
	.align	2
	.global	print_help
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_help, %function
print_help:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L112
	bl	puts
	ldr	r0, .L112+4
	bl	puts
	ldr	r0, .L112+8
	bl	puts
	ldr	r0, .L112+12
	bl	puts
	ldr	r0, .L112+16
	bl	puts
	ldr	r0, .L112+20
	bl	puts
	ldr	r0, .L112+24
	bl	puts
	ldr	r0, .L112+28
	bl	puts
	nop
	pop	{fp, pc}
.L113:
	.align	2
.L112:
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.word	.LC39
	.word	.LC40
	.word	.LC41
	.size	print_help, .-print_help
	.align	2
	.global	free_memory
	.syntax unified
	.arm
	.fpu softvfp
	.type	free_memory, %function
free_memory:
	@ 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	.L115
.L116:
	ldr	r3, .L119
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L115:
	ldr	r2, [fp, #-8]
	ldr	r3, .L119+4
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L116
	ldr	r3, .L119
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L117
.L118:
	ldr	r3, .L119+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L117:
	ldr	r2, [fp, #-8]
	ldr	r3, .L119+4
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L118
	ldr	r3, .L119+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L119+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r0, .L119+16
	bl	pthread_barrier_destroy
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L120:
	.align	2
.L119:
	.word	array1
	.word	height
	.word	array2
	.word	t_ids
	.word	barrier
	.size	free_memory, .-free_memory
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
