	.file	"980502.c"
	.intel_syntax noprefix
	.text
	.globl	is_valid_grid
	.type	is_valid_grid, @function
is_valid_grid:
.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 -24[rbp], rdi
	mov	DWORD PTR -12[rbp], 1
	mov	DWORD PTR -8[rbp], 0
	jmp	.L2
.L9:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L3
.L7:
	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
	js	.L4
	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]
	cmp	eax, 9
	jle	.L5
.L4:
	mov	DWORD PTR -12[rbp], 0
.L5:
	add	DWORD PTR -4[rbp], 1
.L3:
	cmp	DWORD PTR -4[rbp], 8
	jg	.L6
	cmp	DWORD PTR -12[rbp], 1
	je	.L7
.L6:
	add	DWORD PTR -8[rbp], 1
.L2:
	cmp	DWORD PTR -8[rbp], 8
	jg	.L8
	cmp	DWORD PTR -12[rbp], 1
	je	.L9
.L8:
	mov	eax, DWORD PTR -12[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	is_valid_grid, .-is_valid_grid
	.section	.rodata
.LC0:
	.string	"\n  +-----+-----+-----+"
.LC1:
	.string	"  "
.LC2:
	.string	"|%d"
.LC3:
	.string	"|"
.LC4:
	.string	"  +-----+-----+-----+"
	.text
	.globl	print_grid
	.type	print_grid, @function
print_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, 32
	mov	QWORD PTR -24[rbp], rdi
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	DWORD PTR -8[rbp], 0
	jmp	.L12
.L16:
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L13
.L14:
	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]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L13:
	cmp	DWORD PTR -4[rbp], 8
	jle	.L14
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	movsx	rax, edx
	imul	rax, rax, 1431655766
	shr	rax, 32
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	add	ecx, ecx
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	jne	.L15
	lea	rdi, .LC4[rip]
	call	puts@PLT
.L15:
	add	DWORD PTR -8[rbp], 1
.L12:
	cmp	DWORD PTR -8[rbp], 8
	jle	.L16
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	print_grid, .-print_grid
	.section	.rodata
.LC5:
	.string	"%d"
	.text
	.globl	save_grid_to_file
	.type	save_grid_to_file, @function
save_grid_to_file:
.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	DWORD PTR -8[rbp], 0
	jmp	.L18
.L22:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L19
.L21:
	mov	eax, DWORD PTR -8[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 -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	cmp	DWORD PTR -4[rbp], 8
	jne	.L20
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
.L20:
	add	DWORD PTR -4[rbp], 1
.L19:
	cmp	DWORD PTR -4[rbp], 8
	jle	.L21
	add	DWORD PTR -8[rbp], 1
.L18:
	cmp	DWORD PTR -8[rbp], 8
	jle	.L22
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	save_grid_to_file, .-save_grid_to_file
	.globl	free_grid
	.type	free_grid, @function
free_grid:
.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	DWORD PTR -4[rbp], 0
	jmp	.L24
.L26:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L25
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], 0
.L25:
	add	DWORD PTR -4[rbp], 1
.L24:
	cmp	DWORD PTR -4[rbp], 8
	jle	.L26
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -24[rbp], 0
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	free_grid, .-free_grid
	.globl	get_grid
	.type	get_grid, @function
get_grid:
.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	DWORD PTR -8[rbp], 0
	jmp	.L28
.L31:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L29
.L30:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -9[rbp], al
	cmp	BYTE PTR -9[rbp], 10
	je	.L29
	cmp	BYTE PTR -9[rbp], 13
	je	.L29
	movsx	edx, BYTE PTR -9[rbp]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rcx
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	sub	edx, 48
	mov	DWORD PTR [rax], edx
	add	DWORD PTR -4[rbp], 1
.L29:
	cmp	DWORD PTR -4[rbp], 8
	jle	.L30
	add	DWORD PTR -8[rbp], 1
.L28:
	cmp	DWORD PTR -8[rbp], 8
	jle	.L31
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	get_grid, .-get_grid
	.globl	compare_grid
	.type	compare_grid, @function
compare_grid:
.LFB11:
	.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	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -12[rbp], 1
	mov	DWORD PTR -8[rbp], 0
	jmp	.L33
.L37:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L34
.L36:
	mov	eax, DWORD PTR -4[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 [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rcx
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	je	.L35
	mov	DWORD PTR -12[rbp], 0
.L35:
	add	DWORD PTR -4[rbp], 1
.L34:
	cmp	DWORD PTR -4[rbp], 8
	jle	.L36
	add	DWORD PTR -8[rbp], 1
.L33:
	cmp	DWORD PTR -8[rbp], 8
	jle	.L37
	mov	eax, DWORD PTR -12[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	compare_grid, .-compare_grid
	.globl	same_column
	.type	same_column, @function
same_column:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	QWORD PTR -32[rbp], rdx
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L40
.L43:
	mov	eax, DWORD PTR -20[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 -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -24[rbp], eax
	jne	.L41
	mov	DWORD PTR -8[rbp], 1
.L41:
	add	DWORD PTR -4[rbp], 1
.L40:
	cmp	DWORD PTR -4[rbp], 8
	jg	.L42
	cmp	DWORD PTR -8[rbp], 1
	jne	.L43
.L42:
	mov	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	same_column, .-same_column
	.globl	same_row
	.type	same_row, @function
same_row:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	QWORD PTR -32[rbp], rdx
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L46
.L49:
	mov	eax, DWORD PTR -4[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 -20[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -24[rbp], eax
	jne	.L47
	mov	DWORD PTR -8[rbp], 1
.L47:
	add	DWORD PTR -4[rbp], 1
.L46:
	cmp	DWORD PTR -4[rbp], 8
	jg	.L48
	cmp	DWORD PTR -8[rbp], 1
	jne	.L49
.L48:
	mov	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	same_row, .-same_row
	.globl	same_square
	.type	same_square, @function
same_square:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	DWORD PTR -44[rbp], edx
	mov	QWORD PTR -56[rbp], rcx
	mov	DWORD PTR -20[rbp], 0
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1431655766
	shr	rdx, 32
	mov	esi, eax
	sar	esi, 31
	mov	ecx, edx
	sub	ecx, esi
	mov	edx, ecx
	add	edx, edx
	add	edx, ecx
	sub	eax, edx
	mov	ecx, eax
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, ecx
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1431655766
	shr	rdx, 32
	mov	esi, eax
	sar	esi, 31
	mov	ecx, edx
	sub	ecx, esi
	mov	edx, ecx
	add	edx, edx
	add	edx, ecx
	sub	eax, edx
	mov	ecx, eax
	mov	eax, DWORD PTR -40[rbp]
	sub	eax, ecx
	mov	DWORD PTR -4[rbp], eax
	mov	DWORD PTR -16[rbp], 0
	jmp	.L52
.L58:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L53
.L56:
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	ecx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, ecx
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -44[rbp], eax
	jne	.L54
	mov	DWORD PTR -20[rbp], 1
.L54:
	add	DWORD PTR -12[rbp], 1
.L53:
	cmp	DWORD PTR -12[rbp], 2
	jg	.L55
	cmp	DWORD PTR -20[rbp], 1
	jne	.L56
.L55:
	add	DWORD PTR -16[rbp], 1
.L52:
	cmp	DWORD PTR -16[rbp], 2
	jg	.L57
	cmp	DWORD PTR -20[rbp], 1
	jne	.L58
.L57:
	mov	eax, DWORD PTR -20[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	same_square, .-same_square
	.globl	is_placable
	.type	is_placable, @function
is_placable:
.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, 24
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	DWORD PTR -12[rbp], edx
	mov	QWORD PTR -24[rbp], rcx
	mov	rcx, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	esi, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	same_square
	test	eax, eax
	jne	.L61
	mov	rdx, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	same_row
	test	eax, eax
	jne	.L61
	mov	rdx, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	same_column
	test	eax, eax
	jne	.L61
	mov	eax, 1
	jmp	.L62
.L61:
	mov	eax, 0
.L62:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	is_placable, .-is_placable
	.section	.rodata
.LC6:
	.string	"\033[H\033[J"
	.text
	.globl	solve_grid
	.type	solve_grid, @function
solve_grid:
.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, 48
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	QWORD PTR -32[rbp], rdx
	mov	QWORD PTR -40[rbp], rcx
	mov	QWORD PTR -48[rbp], r8
	cmp	DWORD PTR -20[rbp], 8
	jne	.L64
	cmp	DWORD PTR -24[rbp], 9
	jne	.L64
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	add	edx, 1
	mov	DWORD PTR [rax], edx
	mov	eax, 1
	jmp	.L65
.L64:
	cmp	DWORD PTR -24[rbp], 9
	jne	.L66
	add	DWORD PTR -20[rbp], 1
	mov	DWORD PTR -24[rbp], 0
.L66:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L67
	mov	eax, DWORD PTR -24[rbp]
	lea	esi, 1[rax]
	mov	rdi, QWORD PTR -48[rbp]
	mov	rcx, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	r8, rdi
	mov	edi, eax
	call	solve_grid
	jmp	.L65
.L67:
	mov	DWORD PTR -4[rbp], 1
	jmp	.L68
.L70:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	print_grid
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 6
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	rcx, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	esi, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	is_placable
	test	eax, eax
	je	.L69
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -24[rbp]
	lea	esi, 1[rax]
	mov	rdi, QWORD PTR -48[rbp]
	mov	rcx, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	r8, rdi
	mov	edi, eax
	call	solve_grid
	cmp	eax, 1
	jne	.L69
	mov	eax, 1
	jmp	.L65
.L69:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	add	DWORD PTR -4[rbp], 1
.L68:
	cmp	DWORD PTR -4[rbp], 9
	jle	.L70
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	add	edx, 1
	mov	DWORD PTR [rax], edx
	mov	eax, 0
.L65:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	solve_grid, .-solve_grid
	.globl	cpy_grid
	.type	cpy_grid, @function
cpy_grid:
.LFB17:
	.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	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -8[rbp], 0
	jmp	.L72
.L75:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L73
.L74:
	mov	eax, DWORD PTR -8[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 -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -4[rbp], 1
.L73:
	cmp	DWORD PTR -4[rbp], 8
	jle	.L74
	add	DWORD PTR -8[rbp], 1
.L72:
	cmp	DWORD PTR -8[rbp], 8
	jle	.L75
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	cpy_grid, .-cpy_grid
	.section	.rodata
	.align 8
.LC7:
	.string	"program usage: ./sudoku <grid_file> <result_file>\ngrid_file being the grid file and result_file being the output file."
	.text
	.globl	print_instruction
	.type	print_instruction, @function
print_instruction:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC7[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	print_instruction, .-print_instruction
	.section	.rodata
.LC8:
	.string	"\n  Resolved in %d tries\n"
	.align 8
.LC10:
	.string	"  -------------------------------"
	.align 8
.LC11:
	.string	"  Elapsed Time       : less than 1 sec\n"
.LC12:
	.string	"  Solving Wait Time  : %f ms\n"
.LC13:
	.string	"  Printing Wait Time : %f ms\n"
	.align 8
.LC14:
	.string	"  Elapsed Time       : %f ms\n\n"
	.text
	.globl	print_timers
	.type	print_timers, @function
print_timers:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	movsd	QWORD PTR -8[rbp], xmm0
	movsd	QWORD PTR -16[rbp], xmm1
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	pxor	xmm0, xmm0
	ucomisd	xmm0, QWORD PTR -8[rbp]
	jp	.L78
	pxor	xmm0, xmm0
	ucomisd	xmm0, QWORD PTR -8[rbp]
	jne	.L78
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	jmp	.L77
.L78:
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -16[rbp]
	movq	xmm0, rax
	lea	rdi, .LC12[rip]
	mov	eax, 1
	call	printf@PLT
	movsd	xmm0, QWORD PTR -8[rbp]
	subsd	xmm0, QWORD PTR -16[rbp]
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC13[rip]
	mov	eax, 1
	call	printf@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8[rbp]
	movq	xmm0, rax
	lea	rdi, .LC14[rip]
	mov	eax, 1
	call	printf@PLT
.L77:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	print_timers, .-print_timers
	.section	.rodata
.LC15:
	.string	"ERROR: unknown option %s\n"
.LC16:
	.string	"ERROR: too few arguments\n"
.LC17:
	.string	"r"
.LC18:
	.string	"ERROR: can't open ./%s file\n"
	.align 8
.LC19:
	.string	"ERROR: allocation of grid pointer failed\n"
	.align 8
.LC20:
	.string	"ERROR: allocation of grid[%d] pointer failed\n"
	.align 8
.LC21:
	.string	"ERROR: ./%s grid file is not valid\n"
	.align 8
.LC22:
	.string	"ERROR: allocation of grid_cpy pointer failed\n"
	.align 8
.LC23:
	.string	"ERROR: allocation of grid_cpy[%d] pointer failed\n"
	.align 8
.LC24:
	.string	"ERROR: allocation of solution_counter pointer failed\n"
	.align 8
.LC25:
	.string	"ERROR: allocation of try_counter pointer failed\n"
.LC26:
	.string	"\033[?25l"
.LC28:
	.string	"\033[?25h"
	.align 8
.LC29:
	.string	"ERROR: ./%s grid file is unsolvable\n"
.LC30:
	.string	"w"
	.text
	.globl	main
	.type	main, @function
main:
.LFB20:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 136
	.cfi_offset 3, -24
	mov	DWORD PTR -132[rbp], edi
	mov	QWORD PTR -144[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -88[rbp], rax
	mov	QWORD PTR -120[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	rax, QWORD PTR stdout[rip]
	mov	ecx, 0
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	setvbuf@PLT
	mov	rax, QWORD PTR -144[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L83
	mov	rax, QWORD PTR -144[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L84
.L83:
	mov	rax, QWORD PTR -144[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L85
	mov	rax, QWORD PTR -144[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 104
	jne	.L86
.L85:
	mov	eax, 0
	call	print_instruction
	jmp	.L87
.L86:
	mov	rax, QWORD PTR -144[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L87:
	mov	eax, 0
	jmp	.L104
.L84:
	mov	rax, QWORD PTR -144[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L89
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 25
	mov	esi, 1
	lea	rdi, .LC16[rip]
	call	fwrite@PLT
	mov	eax, 0
	jmp	.L104
.L89:
	mov	rax, QWORD PTR -144[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -104[rbp], rax
	cmp	QWORD PTR -104[rbp], 0
	jne	.L90
	mov	rax, QWORD PTR -144[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	jmp	.L104
.L90:
	mov	edi, 72
	call	malloc@PLT
	mov	QWORD PTR -80[rbp], rax
	cmp	QWORD PTR -80[rbp], 0
	jne	.L91
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 41
	mov	esi, 1
	lea	rdi, .LC19[rip]
	call	fwrite@PLT
	mov	eax, 0
	jmp	.L104
.L91:
	mov	DWORD PTR -124[rbp], 0
	jmp	.L92
.L94:
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	lea	rbx, [rdx+rax]
	mov	edi, 36
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L93
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -124[rbp]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	free_grid
	mov	eax, 0
	jmp	.L104
.L93:
	add	DWORD PTR -124[rbp], 1
.L92:
	cmp	DWORD PTR -124[rbp], 8
	jle	.L94
	mov	rdx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	get_grid
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	is_valid_grid
	test	eax, eax
	jne	.L95
	mov	rax, QWORD PTR -144[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	free_grid
	mov	eax, 0
	jmp	.L104
.L95:
	mov	edi, 72
	call	malloc@PLT
	mov	QWORD PTR -72[rbp], rax
	cmp	QWORD PTR -72[rbp], 0
	jne	.L96
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 45
	mov	esi, 1
	lea	rdi, .LC22[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	free_grid
	mov	eax, 0
	jmp	.L104
.L96:
	mov	DWORD PTR -124[rbp], 0
	jmp	.L97
.L99:
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -72[rbp]
	lea	rbx, [rdx+rax]
	mov	edi, 36
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L98
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -124[rbp]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	free_grid
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	free_grid
	mov	eax, 0
	jmp	.L104
.L98:
	add	DWORD PTR -124[rbp], 1
.L97:
	cmp	DWORD PTR -124[rbp], 8
	jle	.L99
	mov	rdx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	cpy_grid
	mov	edi, 4
	call	malloc@PLT
	mov	QWORD PTR -112[rbp], rax
	mov	rax, QWORD PTR -112[rbp]
	test	rax, rax
	jne	.L100
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 53
	mov	esi, 1
	lea	rdi, .LC24[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	free_grid
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	free_grid
	mov	eax, 0
	jmp	.L104
.L100:
	mov	rax, QWORD PTR -112[rbp]
	mov	DWORD PTR [rax], 0
	mov	edi, 4
	call	malloc@PLT
	mov	QWORD PTR -120[rbp], rax
	mov	rax, QWORD PTR -120[rbp]
	test	rax, rax
	jne	.L101
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 48
	mov	esi, 1
	lea	rdi, .LC25[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	free_grid
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	free_grid
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -112[rbp], 0
	mov	eax, 0
	jmp	.L104
.L101:
	mov	rax, QWORD PTR -120[rbp]
	mov	DWORD PTR [rax], 0
	lea	rdi, .LC26[rip]
	mov	eax, 0
	call	printf@PLT
	call	clock@PLT
	mov	QWORD PTR -64[rbp], rax
	mov	rcx, QWORD PTR -80[rbp]
	lea	rdx, -120[rbp]
	lea	rax, -112[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	rdx, rax
	mov	esi, 0
	mov	edi, 0
	call	solve_grid
	call	clock@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, QWORD PTR -64[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm1, QWORD PTR .LC27[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -48[rbp], xmm0
	lea	rdi, .LC28[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	compare_grid
	cmp	eax, 1
	jne	.L102
	mov	rax, QWORD PTR -144[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC29[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	free_grid
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	free_grid
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -112[rbp], 0
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -120[rbp], 0
	mov	eax, 0
	jmp	.L104
.L102:
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	print_grid
	mov	rax, QWORD PTR -144[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC30[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -96[rbp], rax
	cmp	QWORD PTR -96[rbp], 0
	jne	.L103
	mov	rax, QWORD PTR -144[rbp]
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	free_grid
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	free_grid
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -112[rbp], 0
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -120[rbp], 0
	mov	eax, 0
	jmp	.L104
.L103:
	mov	rdx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -96[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	save_grid_to_file
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	rdx, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	difftime@PLT
	movsd	xmm1, QWORD PTR .LC31[rip]
	mulsd	xmm0, xmm1
	movsd	QWORD PTR -32[rbp], xmm0
	mov	rdx, QWORD PTR -120[rbp]
	movsd	xmm0, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rdx
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	print_timers
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	free_grid
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	free_grid
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -112[rbp], 0
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -120[rbp], 0
	mov	eax, 0
.L104:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L105
	call	__stack_chk_fail@PLT
.L105:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC27:
	.long	0
	.long	1093567616
	.align 8
.LC31:
	.long	0
	.long	1083129856
	.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	"980502.c"
	.text
	.align	2
	.global	is_valid_grid
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_valid_grid, %function
is_valid_grid:
	@ 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]
	mov	r3, #1
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L2
.L9:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L3
.L7:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	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
	blt	.L4
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #9
	ble	.L5
.L4:
	mov	r3, #0
	str	r3, [fp, #-16]
.L5:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L3:
	ldr	r3, [fp, #-8]
	cmp	r3, #8
	bgt	.L6
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	beq	.L7
.L6:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	ldr	r3, [fp, #-12]
	cmp	r3, #8
	bgt	.L8
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	beq	.L9
.L8:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	is_valid_grid, .-is_valid_grid
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012  +-----+-----+-----+\000"
	.align	2
.LC1:
	.ascii	"  \000"
	.align	2
.LC2:
	.ascii	"|%d\000"
	.align	2
.LC3:
	.ascii	"|\000"
	.align	2
.LC4:
	.ascii	"  +-----+-----+-----+\000"
	.text
	.align	2
	.global	print_grid
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_grid, %function
print_grid:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r0, .L17
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L12
.L16:
	ldr	r0, .L17+4
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L13
.L14:
	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]
	mov	r1, r3
	ldr	r0, .L17+8
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L13:
	ldr	r3, [fp, #-8]
	cmp	r3, #8
	ble	.L14
	ldr	r0, .L17+12
	bl	puts
	ldr	r3, [fp, #-12]
	add	r1, r3, #1
	ldr	r3, .L17+16
	smull	r0, r2, r3, r1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L15
	ldr	r0, .L17+20
	bl	puts
.L15:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L12:
	ldr	r3, [fp, #-12]
	cmp	r3, #8
	ble	.L16
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	1431655766
	.word	.LC4
	.size	print_grid, .-print_grid
	.section	.rodata
	.align	2
.LC5:
	.ascii	"%d\000"
	.text
	.align	2
	.global	save_grid_to_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	save_grid_to_file, %function
save_grid_to_file:
	@ 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, #-12]
	b	.L20
.L24:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L21
.L23:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L25
	ldr	r0, [fp, #-16]
	bl	fprintf
	ldr	r3, [fp, #-8]
	cmp	r3, #8
	bne	.L22
	ldr	r1, [fp, #-16]
	mov	r0, #10
	bl	fputc
.L22:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L21:
	ldr	r3, [fp, #-8]
	cmp	r3, #8
	ble	.L23
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L20:
	ldr	r3, [fp, #-12]
	cmp	r3, #8
	ble	.L24
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC5
	.size	save_grid_to_file, .-save_grid_to_file
	.align	2
	.global	free_grid
	.syntax unified
	.arm
	.fpu softvfp
	.type	free_grid, %function
free_grid:
	@ 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, #-8]
	b	.L28
.L30:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L29
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
.L29:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L28:
	ldr	r3, [fp, #-8]
	cmp	r3, #8
	ble	.L30
	ldr	r0, [fp, #-16]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-16]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	free_grid, .-free_grid
	.align	2
	.global	get_grid
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_grid, %function
get_grid:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L32
.L35:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L33
.L34:
	ldr	r0, [fp, #-24]
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-13]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L33
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #13
	beq	.L33
	ldrb	r2, [fp, #-13]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-28]
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r1, r3
	sub	r2, r2, #48
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L33:
	ldr	r3, [fp, #-8]
	cmp	r3, #8
	ble	.L34
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L32:
	ldr	r3, [fp, #-12]
	cmp	r3, #8
	ble	.L35
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-24]
	bl	fseek
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	get_grid, .-get_grid
	.align	2
	.global	compare_grid
	.syntax unified
	.arm
	.fpu softvfp
	.type	compare_grid, %function
compare_grid:
	@ 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]
	str	r1, [fp, #-28]
	mov	r3, #1
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L37
.L41:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L38
.L40:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	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	r3, [r3]
	cmp	r2, r3
	beq	.L39
	mov	r3, #0
	str	r3, [fp, #-16]
.L39:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L38:
	ldr	r3, [fp, #-8]
	cmp	r3, #8
	ble	.L40
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L37:
	ldr	r3, [fp, #-12]
	cmp	r3, #8
	ble	.L41
	ldr	r3, [fp, #-16]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	compare_grid, .-compare_grid
	.align	2
	.global	same_column
	.syntax unified
	.arm
	.fpu softvfp
	.type	same_column, %function
same_column:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L44
.L47:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bne	.L45
	mov	r3, #1
	str	r3, [fp, #-12]
.L45:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L44:
	ldr	r3, [fp, #-8]
	cmp	r3, #8
	bgt	.L46
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bne	.L47
.L46:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	same_column, .-same_column
	.align	2
	.global	same_row
	.syntax unified
	.arm
	.fpu softvfp
	.type	same_row, %function
same_row:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L50
.L53:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bne	.L51
	mov	r3, #1
	str	r3, [fp, #-12]
.L51:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L50:
	ldr	r3, [fp, #-8]
	cmp	r3, #8
	bgt	.L52
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bne	.L53
.L52:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	same_row, .-same_row
	.align	2
	.global	same_square
	.syntax unified
	.arm
	.fpu softvfp
	.type	same_square, %function
same_square:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #44
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r1, [fp, #-32]
	ldr	r3, .L64
	smull	r0, r2, r3, r1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, r1, r3
	ldr	r3, [fp, #-32]
	sub	r3, r3, r2
	str	r3, [fp, #-12]
	ldr	r1, [fp, #-36]
	ldr	r3, .L64
	smull	r0, r2, r3, r1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, r1, r3
	ldr	r3, [fp, #-36]
	sub	r3, r3, r2
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L56
.L62:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L57
.L60:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r1, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	bne	.L58
	mov	r3, #1
	str	r3, [fp, #-24]
.L58:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L57:
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	bgt	.L59
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	bne	.L60
.L59:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L56:
	ldr	r3, [fp, #-20]
	cmp	r3, #2
	bgt	.L61
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	bne	.L62
.L61:
	ldr	r3, [fp, #-24]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L65:
	.align	2
.L64:
	.word	1431655766
	.size	same_square, .-same_square
	.align	2
	.global	is_placable
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_placable, %function
is_placable:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	same_square
	mov	r3, r0
	cmp	r3, #0
	bne	.L67
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-12]
	bl	same_row
	mov	r3, r0
	cmp	r3, #0
	bne	.L67
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	same_column
	mov	r3, r0
	cmp	r3, #0
	bne	.L67
	mov	r3, #1
	b	.L68
.L67:
	mov	r3, #0
.L68:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	is_placable, .-is_placable
	.section	.rodata
	.align	2
.LC6:
	.ascii	"\033[H\033[J\000"
	.text
	.align	2
	.global	solve_grid
	.syntax unified
	.arm
	.fpu softvfp
	.type	solve_grid, %function
solve_grid:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-16]
	cmp	r3, #8
	bne	.L70
	ldr	r3, [fp, #-20]
	cmp	r3, #9
	bne	.L70
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	add	r2, r2, #1
	str	r2, [r3]
	mov	r3, #1
	b	.L71
.L70:
	ldr	r3, [fp, #-20]
	cmp	r3, #9
	bne	.L72
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-20]
.L72:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #4]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L73
	ldr	r3, [fp, #-20]
	add	r1, r3, #1
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	ldr	r0, [fp, #-16]
	bl	solve_grid
	mov	r3, r0
	b	.L71
.L73:
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L74
.L76:
	ldr	r0, [fp, #4]
	bl	print_grid
	ldr	r3, .L77
	ldr	r3, [r3]
	mov	r2, #6
	mov	r1, #1
	ldr	r0, .L77+4
	bl	fwrite
	ldr	r3, [fp, #4]
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	is_placable
	mov	r3, r0
	cmp	r3, #0
	beq	.L75
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #4]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r1, r3, #1
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	ldr	r0, [fp, #-16]
	bl	solve_grid
	mov	r3, r0
	cmp	r3, #1
	bne	.L75
	mov	r3, #1
	b	.L71
.L75:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #4]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L74:
	ldr	r3, [fp, #-8]
	cmp	r3, #9
	ble	.L76
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	add	r2, r2, #1
	str	r2, [r3]
	mov	r3, #0
.L71:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L78:
	.align	2
.L77:
	.word	stdout
	.word	.LC6
	.size	solve_grid, .-solve_grid
	.align	2
	.global	cpy_grid
	.syntax unified
	.arm
	.fpu softvfp
	.type	cpy_grid, %function
cpy_grid:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L80
.L83:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L81
.L82:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-16]
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L81:
	ldr	r3, [fp, #-8]
	cmp	r3, #8
	ble	.L82
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L80:
	ldr	r3, [fp, #-12]
	cmp	r3, #8
	ble	.L83
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	cpy_grid, .-cpy_grid
	.section	.rodata
	.align	2
.LC7:
	.ascii	"program usage: ./sudoku <grid_file> <result_file>\012"
	.ascii	"grid_file being the grid file and result_file being"
	.ascii	" the output file.\000"
	.text
	.align	2
	.global	print_instruction
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_instruction, %function
print_instruction:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L85
	bl	puts
	nop
	pop	{fp, pc}
.L86:
	.align	2
.L85:
	.word	.LC7
	.size	print_instruction, .-print_instruction
	.section	.rodata
	.align	2
.LC8:
	.ascii	"\012  Resolved in %d tries\012\000"
	.global	__aeabi_dcmpeq
	.align	2
.LC9:
	.ascii	"  -------------------------------\000"
	.align	2
.LC10:
	.ascii	"  Elapsed Time       : less than 1 sec\012\000"
	.align	2
.LC11:
	.ascii	"  Solving Wait Time  : %f ms\012\000"
	.global	__aeabi_dsub
	.align	2
.LC12:
	.ascii	"  Printing Wait Time : %f ms\012\000"
	.align	2
.LC13:
	.ascii	"  Elapsed Time       : %f ms\012\012\000"
	.text
	.align	2
	.global	print_timers
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_timers, %function
print_timers:
	@ args = 4, 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, #-12]
	str	r1, [fp, #-8]
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L93
	bl	printf
	mov	r2, #0
	mov	r3, #0
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	beq	.L92
	ldr	r0, .L93+4
	bl	puts
	ldr	r0, .L93+8
	bl	puts
	b	.L87
.L92:
	ldr	r0, .L93+4
	bl	puts
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	ldr	r0, .L93+12
	bl	printf
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L93+16
	bl	printf
	ldr	r0, .L93+4
	bl	puts
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	ldr	r0, .L93+20
	bl	printf
.L87:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L94:
	.align	2
.L93:
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	print_timers, .-print_timers
	.section	.rodata
	.align	2
.LC14:
	.ascii	"ERROR: unknown option %s\012\000"
	.align	2
.LC15:
	.ascii	"ERROR: too few arguments\012\000"
	.align	2
.LC16:
	.ascii	"r\000"
	.align	2
.LC17:
	.ascii	"ERROR: can't open ./%s file\012\000"
	.align	2
.LC18:
	.ascii	"ERROR: allocation of grid pointer failed\012\000"
	.align	2
.LC19:
	.ascii	"ERROR: allocation of grid[%d] pointer failed\012\000"
	.align	2
.LC20:
	.ascii	"ERROR: ./%s grid file is not valid\012\000"
	.align	2
.LC21:
	.ascii	"ERROR: allocation of grid_cpy pointer failed\012\000"
	.align	2
.LC22:
	.ascii	"ERROR: allocation of grid_cpy[%d] pointer failed\012"
	.ascii	"\000"
	.align	2
.LC23:
	.ascii	"ERROR: allocation of solution_counter pointer faile"
	.ascii	"d\012\000"
	.align	2
.LC24:
	.ascii	"ERROR: allocation of try_counter pointer failed\012"
	.ascii	"\000"
	.align	2
.LC25:
	.ascii	"\033[?25l\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.align	2
.LC26:
	.ascii	"\033[?25h\000"
	.align	2
.LC27:
	.ascii	"ERROR: ./%s grid file is unsolvable\012\000"
	.align	2
.LC28:
	.ascii	"w\000"
	.global	__aeabi_dmul
	.align	2
.LC29:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 80
	@ 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]
	ldr	r3, .L119
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-64]
	mov	r0, #0
	bl	time
	str	r0, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-80]
	mov	r3, #0
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-76]
	ldr	r3, .L119+4
	ldr	r0, [r3]
	mov	r3, #0
	mov	r2, #2
	mov	r1, #0
	bl	setvbuf
	ldr	r3, [fp, #-92]
	add	r3, r3, #4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L96
	ldr	r3, [fp, #-92]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L97
.L96:
	ldr	r3, [fp, #-92]
	add	r3, r3, #4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L98
	ldr	r3, [fp, #-92]
	add	r3, r3, #4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #104
	bne	.L99
.L98:
	bl	print_instruction
	b	.L100
.L99:
	ldr	r3, .L119+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-92]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L119+12
	bl	fprintf
.L100:
	mov	r3, #0
	b	.L117
.L97:
	ldr	r3, [fp, #-92]
	add	r3, r3, #8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L102
	ldr	r3, .L119+8
	ldr	r3, [r3]
	mov	r2, #25
	mov	r1, #1
	ldr	r0, .L119+16
	bl	fwrite
	mov	r3, #0
	b	.L117
.L102:
	ldr	r3, [fp, #-92]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L119+20
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-68]
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bne	.L103
	ldr	r3, .L119+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-92]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L119+24
	bl	fprintf
	mov	r3, #0
	b	.L117
.L103:
	mov	r0, #36
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bne	.L104
	ldr	r3, .L119+8
	ldr	r3, [r3]
	mov	r2, #41
	mov	r1, #1
	ldr	r0, .L119+28
	bl	fwrite
	mov	r3, #0
	b	.L117
.L104:
	mov	r3, #0
	str	r3, [fp, #-72]
	b	.L105
.L107:
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r4, r2, r3
	mov	r0, #36
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L106
	ldr	r3, .L119+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-72]
	ldr	r1, .L119+32
	mov	r0, r3
	bl	fprintf
	ldr	r0, [fp, #-56]
	bl	free_grid
	mov	r3, #0
	b	.L117
.L106:
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L105:
	ldr	r3, [fp, #-72]
	cmp	r3, #8
	ble	.L107
	ldr	r1, [fp, #-56]
	ldr	r0, [fp, #-68]
	bl	get_grid
	ldr	r0, [fp, #-68]
	bl	fclose
	ldr	r0, [fp, #-56]
	bl	is_valid_grid
	mov	r3, r0
	cmp	r3, #0
	bne	.L108
	ldr	r3, .L119+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-92]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L119+36
	bl	fprintf
	ldr	r0, [fp, #-56]
	bl	free_grid
	mov	r3, #0
	b	.L117
.L108:
	mov	r0, #36
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bne	.L109
	ldr	r3, .L119+8
	ldr	r3, [r3]
	mov	r2, #45
	mov	r1, #1
	ldr	r0, .L119+40
	bl	fwrite
	ldr	r0, [fp, #-56]
	bl	free_grid
	mov	r3, #0
	b	.L117
.L109:
	mov	r3, #0
	str	r3, [fp, #-72]
	b	.L110
.L112:
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r4, r2, r3
	mov	r0, #36
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L111
	ldr	r3, .L119+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-72]
	ldr	r1, .L119+44
	mov	r0, r3
	bl	fprintf
	ldr	r0, [fp, #-56]
	bl	free_grid
	ldr	r0, [fp, #-52]
	bl	free_grid
	mov	r3, #0
	b	.L117
.L111:
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L110:
	ldr	r3, [fp, #-72]
	cmp	r3, #8
	ble	.L112
	ldr	r1, [fp, #-56]
	ldr	r0, [fp, #-52]
	bl	cpy_grid
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	bne	.L113
	ldr	r3, .L119+8
	ldr	r3, [r3]
	mov	r2, #53
	mov	r1, #1
	ldr	r0, .L119+48
	bl	fwrite
	ldr	r0, [fp, #-56]
	bl	free_grid
	ldr	r0, [fp, #-52]
	bl	free_grid
	mov	r3, #0
	b	.L117
.L113:
	ldr	r3, [fp, #-76]
	mov	r2, #0
	str	r2, [r3]
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	bne	.L114
	ldr	r3, .L119+8
	ldr	r3, [r3]
	mov	r2, #48
	mov	r1, #1
	ldr	r0, .L119+52
	bl	fwrite
	ldr	r0, [fp, #-56]
	bl	free_grid
	ldr	r0, [fp, #-52]
	bl	free_grid
	ldr	r3, [fp, #-76]
	mov	r0, r3
	bl	free
	mov	r3, #0
	str	r3, [fp, #-76]
	mov	r3, #0
	b	.L117
.L114:
	ldr	r3, [fp, #-80]
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, .L119+56
	bl	printf
	bl	clock
	str	r0, [fp, #-48]
	sub	r1, fp, #80
	sub	r2, fp, #76
	ldr	r3, [fp, #-56]
	str	r3, [sp]
	mov	r3, r1
	mov	r1, #0
	mov	r0, #0
	bl	solve_grid
	bl	clock
	str	r0, [fp, #-44]
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-48]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L119+60
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r0, .L119+64
	bl	printf
	ldr	r1, [fp, #-52]
	ldr	r0, [fp, #-56]
	bl	compare_grid
	mov	r3, r0
	cmp	r3, #1
	bne	.L115
	ldr	r3, .L119+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-92]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L119+68
	bl	fprintf
	ldr	r0, [fp, #-56]
	bl	free_grid
	ldr	r0, [fp, #-52]
	bl	free_grid
	ldr	r3, [fp, #-76]
	mov	r0, r3
	bl	free
	mov	r3, #0
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-80]
	mov	r0, r3
	bl	free
	mov	r3, #0
	str	r3, [fp, #-80]
	mov	r3, #0
	b	.L117
.L115:
	ldr	r0, [fp, #-56]
	bl	print_grid
	ldr	r3, [fp, #-92]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L119+72
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bne	.L116
	ldr	r3, .L119+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-92]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L119+24
	bl	fprintf
	ldr	r0, [fp, #-56]
	bl	free_grid
	ldr	r0, [fp, #-52]
	bl	free_grid
	ldr	r3, [fp, #-76]
	mov	r0, r3
	bl	free
	mov	r3, #0
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-80]
	mov	r0, r3
	bl	free
	mov	r3, #0
	str	r3, [fp, #-80]
	mov	r3, #0
	b	.L117
.L116:
	ldr	r1, [fp, #-56]
	ldr	r0, [fp, #-64]
	bl	save_grid_to_file
	ldr	r0, [fp, #-64]
	bl	fclose
	mov	r0, #0
	bl	time
	str	r0, [fp, #-40]
	ldr	r1, [fp, #-60]
	ldr	r0, [fp, #-40]
	bl	difftime
	mov	r2, #0
	ldr	r3, .L119+76
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-80]
	str	r3, [sp]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	print_timers
	ldr	r0, [fp, #-56]
	bl	free_grid
	ldr	r0, [fp, #-52]
	bl	free_grid
	ldr	r3, [fp, #-76]
	mov	r0, r3
	bl	free
	mov	r3, #0
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-80]
	mov	r0, r3
	bl	free
	mov	r3, #0
	str	r3, [fp, #-80]
	mov	r3, #0
.L117:
	ldr	r2, .L119
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L118
	bl	__stack_chk_fail
.L118:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L120:
	.align	2
.L119:
	.word	.LC29
	.word	stdout
	.word	stderr
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	1093567616
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	1083129856
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
