	.file	"84725.c"
	.intel_syntax noprefix
	.text
	.globl	i
	.bss
	.align 2
	.type	i, @object
	.size	i, 2
i:
	.zero	2
	.globl	chars
	.align 2
	.type	chars, @object
	.size	chars, 2
chars:
	.zero	2
	.globl	lines
	.align 2
	.type	lines, @object
	.size	lines, 2
lines:
	.zero	2
	.globl	inputArray
	.align 32
	.type	inputArray, @object
	.size	inputArray, 32768
inputArray:
	.zero	32768
	.globl	buffer
	.align 32
	.type	buffer, @object
	.size	buffer, 32768
buffer:
	.zero	32768
	.text
	.globl	GameOfLife
	.type	GameOfLife, @function
GameOfLife:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	WORD PTR i[rip], 0
	jmp	.L2
.L13:
	mov	BYTE PTR -1[rbp], 0
	movzx	eax, WORD PTR i[rip]
	movzx	eax, ax
	movzx	edx, WORD PTR i[rip]
	movzx	ecx, dx
	cdqe
	lea	rdx, inputArray[rip]
	movzx	edx, BYTE PTR [rax+rdx]
	movsx	rax, ecx
	lea	rcx, buffer[rip]
	mov	BYTE PTR [rax+rcx], dl
	movzx	eax, WORD PTR i[rip]
	movzx	eax, ax
	sub	eax, 1
	cdqe
	lea	rdx, inputArray[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 35
	jne	.L3
	movzx	eax, BYTE PTR -1[rbp]
	add	eax, 1
	mov	BYTE PTR -1[rbp], al
.L3:
	movzx	eax, WORD PTR i[rip]
	movzx	eax, ax
	add	eax, 1
	cdqe
	lea	rdx, inputArray[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 35
	jne	.L4
	movzx	eax, BYTE PTR -1[rbp]
	add	eax, 1
	mov	BYTE PTR -1[rbp], al
.L4:
	movzx	eax, WORD PTR i[rip]
	movzx	eax, ax
	movzx	edx, WORD PTR lines[rip]
	movzx	edx, dx
	sub	eax, edx
	cdqe
	lea	rdx, inputArray[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 35
	jne	.L5
	movzx	eax, BYTE PTR -1[rbp]
	add	eax, 1
	mov	BYTE PTR -1[rbp], al
.L5:
	movzx	eax, WORD PTR i[rip]
	movzx	eax, ax
	movzx	edx, WORD PTR lines[rip]
	movzx	edx, dx
	sub	eax, edx
	sub	eax, 1
	cdqe
	lea	rdx, inputArray[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 35
	jne	.L6
	movzx	eax, BYTE PTR -1[rbp]
	add	eax, 1
	mov	BYTE PTR -1[rbp], al
.L6:
	movzx	eax, WORD PTR i[rip]
	movzx	eax, ax
	movzx	edx, WORD PTR lines[rip]
	movzx	edx, dx
	sub	eax, edx
	sub	eax, 2
	cdqe
	lea	rdx, inputArray[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 35
	jne	.L7
	movzx	eax, BYTE PTR -1[rbp]
	add	eax, 1
	mov	BYTE PTR -1[rbp], al
.L7:
	movzx	eax, WORD PTR i[rip]
	movzx	edx, ax
	movzx	eax, WORD PTR lines[rip]
	movzx	eax, ax
	add	eax, edx
	cdqe
	lea	rdx, inputArray[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 35
	jne	.L8
	movzx	eax, BYTE PTR -1[rbp]
	add	eax, 1
	mov	BYTE PTR -1[rbp], al
.L8:
	movzx	eax, WORD PTR i[rip]
	movzx	edx, ax
	movzx	eax, WORD PTR lines[rip]
	movzx	eax, ax
	add	eax, edx
	add	eax, 1
	cdqe
	lea	rdx, inputArray[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 35
	jne	.L9
	movzx	eax, BYTE PTR -1[rbp]
	add	eax, 1
	mov	BYTE PTR -1[rbp], al
.L9:
	movzx	eax, WORD PTR i[rip]
	movzx	edx, ax
	movzx	eax, WORD PTR lines[rip]
	movzx	eax, ax
	add	eax, edx
	add	eax, 2
	cdqe
	lea	rdx, inputArray[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 35
	jne	.L10
	movzx	eax, BYTE PTR -1[rbp]
	add	eax, 1
	mov	BYTE PTR -1[rbp], al
.L10:
	movzx	eax, WORD PTR i[rip]
	movzx	eax, ax
	cdqe
	lea	rdx, inputArray[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 76
	jne	.L11
	cmp	BYTE PTR -1[rbp], 0
	jne	.L11
	movzx	eax, WORD PTR i[rip]
	movzx	eax, ax
	cdqe
	lea	rdx, buffer[rip]
	mov	BYTE PTR [rax+rdx], 35
.L11:
	movzx	eax, WORD PTR i[rip]
	movzx	eax, ax
	cdqe
	lea	rdx, inputArray[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 35
	jne	.L12
	cmp	BYTE PTR -1[rbp], 3
	jle	.L12
	movzx	eax, WORD PTR i[rip]
	movzx	eax, ax
	cdqe
	lea	rdx, buffer[rip]
	mov	BYTE PTR [rax+rdx], 76
.L12:
	movzx	eax, WORD PTR i[rip]
	add	eax, 1
	mov	WORD PTR i[rip], ax
.L2:
	movzx	edx, WORD PTR i[rip]
	movzx	eax, WORD PTR chars[rip]
	cmp	dx, ax
	jb	.L13
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	GameOfLife, .-GameOfLife
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"input.txt"
.LC2:
	.string	"%hd\n"
	.text
	.globl	main
	.type	main, @function
main:
.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	WORD PTR -10[rbp], 0
	mov	edx, 32768
	mov	esi, 0
	lea	rdi, inputArray[rip]
	call	memset@PLT
	mov	edx, 32768
	mov	esi, 0
	lea	rdi, buffer[rip]
	call	memset@PLT
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	jmp	.L15
.L17:
	movzx	eax, WORD PTR lines[rip]
	test	ax, ax
	jne	.L16
	cmp	BYTE PTR -11[rbp], 10
	jne	.L16
	movzx	eax, WORD PTR i[rip]
	mov	WORD PTR lines[rip], ax
.L16:
	movzx	eax, WORD PTR i[rip]
	movzx	eax, ax
	movzx	edx, BYTE PTR -11[rbp]
	cdqe
	lea	rcx, inputArray[rip]
	mov	BYTE PTR [rax+rcx], dl
	movzx	eax, WORD PTR i[rip]
	add	eax, 1
	mov	WORD PTR i[rip], ax
.L15:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -11[rbp], al
	cmp	BYTE PTR -11[rbp], -1
	jne	.L17
	movzx	eax, WORD PTR i[rip]
	mov	WORD PTR chars[rip], ax
	mov	BYTE PTR -11[rbp], 0
	jmp	.L18
.L26:
	mov	eax, 0
	call	GameOfLife
	mov	WORD PTR i[rip], 0
	jmp	.L19
.L21:
	movzx	eax, WORD PTR i[rip]
	movzx	eax, ax
	cdqe
	lea	rdx, inputArray[rip]
	movzx	edx, BYTE PTR [rax+rdx]
	movzx	eax, WORD PTR i[rip]
	movzx	eax, ax
	cdqe
	lea	rcx, buffer[rip]
	movzx	eax, BYTE PTR [rax+rcx]
	cmp	dl, al
	jne	.L20
	movzx	eax, WORD PTR -10[rbp]
	add	eax, 1
	mov	WORD PTR -10[rbp], ax
.L20:
	movzx	eax, WORD PTR i[rip]
	add	eax, 1
	mov	WORD PTR i[rip], ax
.L19:
	movzx	edx, WORD PTR i[rip]
	movzx	eax, WORD PTR chars[rip]
	cmp	dx, ax
	jb	.L21
	movsx	edx, WORD PTR -10[rbp]
	movzx	eax, WORD PTR chars[rip]
	movzx	eax, ax
	cmp	edx, eax
	jne	.L22
	mov	BYTE PTR -11[rbp], 1
	jmp	.L23
.L22:
	mov	WORD PTR i[rip], 0
	jmp	.L24
.L25:
	movzx	eax, WORD PTR i[rip]
	movzx	eax, ax
	movzx	edx, WORD PTR i[rip]
	movzx	ecx, dx
	cdqe
	lea	rdx, buffer[rip]
	movzx	edx, BYTE PTR [rax+rdx]
	movsx	rax, ecx
	lea	rcx, inputArray[rip]
	mov	BYTE PTR [rax+rcx], dl
	movzx	eax, WORD PTR i[rip]
	add	eax, 1
	mov	WORD PTR i[rip], ax
.L24:
	movzx	edx, WORD PTR i[rip]
	movzx	eax, WORD PTR chars[rip]
	cmp	dx, ax
	jb	.L25
.L23:
	mov	WORD PTR -10[rbp], 0
.L18:
	cmp	BYTE PTR -11[rbp], 0
	je	.L26
	mov	WORD PTR -10[rbp], 0
	mov	WORD PTR i[rip], 0
	jmp	.L27
.L29:
	movzx	eax, WORD PTR i[rip]
	movzx	eax, ax
	cdqe
	lea	rdx, inputArray[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 35
	jne	.L28
	movzx	eax, WORD PTR -10[rbp]
	add	eax, 1
	mov	WORD PTR -10[rbp], ax
.L28:
	movzx	eax, WORD PTR i[rip]
	add	eax, 1
	mov	WORD PTR i[rip], ax
.L27:
	movzx	edx, WORD PTR i[rip]
	movzx	eax, WORD PTR chars[rip]
	cmp	dx, ax
	jb	.L29
	movsx	eax, WORD PTR -10[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.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	"84725.c"
	.text
	.global	i
	.bss
	.align	1
	.type	i, %object
	.size	i, 2
i:
	.space	2
	.comm	chars,2,2
	.global	lines
	.align	1
	.type	lines, %object
	.size	lines, 2
lines:
	.space	2
	.comm	inputArray,32768,4
	.comm	buffer,32768,4
	.text
	.align	2
	.global	GameOfLife
	.syntax unified
	.arm
	.fpu softvfp
	.type	GameOfLife, %function
GameOfLife:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	ldr	r3, .L14
	mov	r2, #0
	strh	r2, [r3]	@ movhi
	b	.L2
.L13:
	mov	r3, #0
	strb	r3, [fp, #-5]
	ldr	r3, .L14
	ldrh	r3, [r3]
	mov	r1, r3
	ldr	r3, .L14
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, .L14+4
	ldrb	r1, [r3, r1]	@ zero_extendqisi2
	ldr	r3, .L14+8
	strb	r1, [r3, r2]
	ldr	r3, .L14
	ldrh	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L14+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #35
	bne	.L3
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-5]
.L3:
	ldr	r3, .L14
	ldrh	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L14+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #35
	bne	.L4
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-5]
.L4:
	ldr	r3, .L14
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, .L14+12
	ldrh	r3, [r3]
	sub	r3, r2, r3
	ldr	r2, .L14+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #35
	bne	.L5
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-5]
.L5:
	ldr	r3, .L14
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, .L14+12
	ldrh	r3, [r3]
	sub	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, .L14+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #35
	bne	.L6
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-5]
.L6:
	ldr	r3, .L14
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, .L14+12
	ldrh	r3, [r3]
	sub	r3, r2, r3
	sub	r3, r3, #2
	ldr	r2, .L14+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #35
	bne	.L7
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-5]
.L7:
	ldr	r3, .L14
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, .L14+12
	ldrh	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L14+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #35
	bne	.L8
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-5]
.L8:
	ldr	r3, .L14
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, .L14+12
	ldrh	r3, [r3]
	add	r3, r2, r3
	add	r3, r3, #1
	ldr	r2, .L14+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #35
	bne	.L9
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-5]
.L9:
	ldr	r3, .L14
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, .L14+12
	ldrh	r3, [r3]
	add	r3, r2, r3
	add	r3, r3, #2
	ldr	r2, .L14+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #35
	bne	.L10
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-5]
.L10:
	ldr	r3, .L14
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, .L14+4
	ldrb	r3, [r3, r2]	@ zero_extendqisi2
	cmp	r3, #76
	bne	.L11
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L11
	ldr	r3, .L14
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, .L14+8
	mov	r1, #35
	strb	r1, [r3, r2]
.L11:
	ldr	r3, .L14
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, .L14+4
	ldrb	r3, [r3, r2]	@ zero_extendqisi2
	cmp	r3, #35
	bne	.L12
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #3
	bls	.L12
	ldr	r3, .L14
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, .L14+8
	mov	r1, #76
	strb	r1, [r3, r2]
.L12:
	ldr	r3, .L14
	ldrh	r3, [r3]
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldr	r2, .L14
	strh	r3, [r2]	@ movhi
.L2:
	ldr	r3, .L14
	ldrh	r2, [r3]
	ldr	r3, .L14+16
	ldrh	r3, [r3]
	cmp	r2, r3
	bcc	.L13
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L15:
	.align	2
.L14:
	.word	i
	.word	inputArray
	.word	buffer
	.word	lines
	.word	chars
	.size	GameOfLife, .-GameOfLife
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"input.txt\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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
	strh	r3, [fp, #-10]	@ movhi
	mov	r2, #32768
	mov	r1, #0
	ldr	r0, .L21
	bl	memset
	mov	r2, #32768
	mov	r1, #0
	ldr	r0, .L21+4
	bl	memset
	ldr	r1, .L21+8
	ldr	r0, .L21+12
	bl	fopen
	str	r0, [fp, #-8]
	b	.L17
.L20:
	ldrb	r3, [fp, #-11]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L18
	ldr	r3, .L21+16
	ldrh	r3, [r3]
	ldr	r2, .L21+20
	strh	r3, [r2]	@ movhi
.L18:
	ldr	r3, .L21+16
	ldrh	r3, [r3]
	mov	r1, r3
	ldr	r2, .L21
	ldrb	r3, [fp, #-11]
	strb	r3, [r2, r1]
	ldr	r3, .L21+16
	ldrh	r3, [r3]
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldr	r2, .L21+16
	strh	r3, [r2]	@ movhi
.L17:
	ldr	r0, [fp, #-8]
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-11]
	ldr	r3, .L21+20
	ldrh	r3, [r3]
	cmp	r3, #0
	bne	.L18
	b	.L20
.L22:
	.align	2
.L21:
	.word	inputArray
	.word	buffer
	.word	.LC0
	.word	.LC1
	.word	i
	.word	lines
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
