	.file	"919161.c"
	.intel_syntax noprefix
	.text
	.local	_start_
	.comm	_start_,8,8
	.local	_end_
	.comm	_end_,8,8
	.local	_time_flag_
	.comm	_time_flag_,4,4
	.local	_time_only_flag_
	.comm	_time_only_flag_,4,4
	.local	_states_searched_
	.comm	_states_searched_,4,4
	.section	.rodata
.LC0:
	.string	"ERROR: Too many arguments."
.LC1:
	.string	"ERROR: Missing arguments."
.LC2:
	.string	"-to"
.LC3:
	.string	"-t"
.LC4:
	.string	"r"
	.align 8
.LC5:
	.string	"ERROR: Could not open file %s\n"
.LC6:
	.string	"%d\n"
.LC7:
	.string	"%d"
.LC8:
	.string	"\n"
.LC9:
	.string	"w"
.LC10:
	.string	"Elapsed time: %f (s)\n"
.LC11:
	.string	"No solution"
.LC12:
	.string	"Searched %d states in total.\n"
	.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	rbx
	sub	rsp, 104
	.cfi_offset 3, -24
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	call	omp_get_wtime@PLT
	movq	rax, xmm0
	mov	QWORD PTR _start_[rip], rax
	cmp	DWORD PTR -100[rbp], 4
	jle	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	cmp	DWORD PTR -100[rbp], 1
	jg	.L3
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	cmp	DWORD PTR -100[rbp], 3
	jne	.L4
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L4
	mov	DWORD PTR _time_only_flag_[rip], 1
	jmp	.L5
.L4:
	cmp	DWORD PTR -100[rbp], 3
	jne	.L6
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L6
	mov	DWORD PTR _time_flag_[rip], 1
	jmp	.L5
.L6:
	cmp	DWORD PTR -100[rbp], 3
	jle	.L5
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L7
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L5
.L7:
	mov	DWORD PTR _time_only_flag_[rip], 1
.L5:
	mov	rax, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	jne	.L8
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L8:
	lea	rdx, -88[rbp]
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	edx, DWORD PTR -88[rbp]
	mov	eax, DWORD PTR -88[rbp]
	imul	eax, edx
	mov	DWORD PTR -76[rbp], eax
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR -76[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	edx, DWORD PTR -88[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	DWORD PTR -84[rbp], 0
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	sal	rax, 2
	mov	rdx, QWORD PTR -48[rbp]
	mov	rcx, QWORD PTR 8[rdx]
	mov	edx, DWORD PTR -84[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -84[rbp], 1
.L9:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -76[rbp]
	jl	.L10
	mov	DWORD PTR -72[rbp], 0
	mov	DWORD PTR -68[rbp], 0
	mov	DWORD PTR -84[rbp], 0
	jmp	.L11
.L14:
	mov	DWORD PTR -80[rbp], 0
	jmp	.L12
.L13:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	add	DWORD PTR -80[rbp], 1
.L12:
	mov	eax, DWORD PTR -80[rbp]
	cmp	eax, DWORD PTR -76[rbp]
	jl	.L13
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	add	DWORD PTR -84[rbp], 1
.L11:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -76[rbp]
	jl	.L14
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	solve
	test	eax, eax
	je	.L15
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, -3[rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 4
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1953853230
	mov	BYTE PTR 4[rax], 0
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	print_puzzle_to_file
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	end_on_solution_found
	jmp	.L16
.L15:
	call	omp_get_wtime@PLT
	movq	rax, xmm0
	mov	QWORD PTR _end_[rip], rax
	mov	eax, DWORD PTR _time_only_flag_[rip]
	test	eax, eax
	je	.L17
	movsd	xmm0, QWORD PTR _end_[rip]
	movsd	xmm1, QWORD PTR _start_[rip]
	subsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC10[rip]
	mov	eax, 1
	call	printf@PLT
	jmp	.L16
.L17:
	mov	eax, DWORD PTR _time_flag_[rip]
	test	eax, eax
	je	.L18
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	eax, DWORD PTR _states_searched_[rip]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	movsd	xmm0, QWORD PTR _end_[rip]
	movsd	xmm1, QWORD PTR _start_[rip]
	subsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC10[rip]
	mov	eax, 1
	call	printf@PLT
	jmp	.L16
.L18:
	lea	rdi, .LC11[rip]
	call	puts@PLT
.L16:
	mov	DWORD PTR -84[rbp], 0
	jmp	.L19
.L20:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -84[rbp], 1
.L19:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -76[rbp]
	jl	.L20
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC13:
	.string	"%d "
	.text
	.globl	debug_puzzle
	.type	debug_puzzle, @function
debug_puzzle:
.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
	cmp	QWORD PTR -24[rbp], 0
	je	.L29
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR -4[rbp], eax
	mov	DWORD PTR -12[rbp], 0
	jmp	.L25
.L28:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L26
.L27:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -8[rbp], 1
.L26:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jl	.L27
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -12[rbp], 1
.L25:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jl	.L28
.L29:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	debug_puzzle, .-debug_puzzle
	.globl	print_puzzle_to_file
	.type	print_puzzle_to_file, @function
print_puzzle_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	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR -4[rbp], eax
	mov	DWORD PTR -12[rbp], 0
	jmp	.L31
.L34:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L32
.L33:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 3
	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	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -8[rbp], 1
.L32:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jl	.L33
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	add	DWORD PTR -12[rbp], 1
.L31:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jl	.L34
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	print_puzzle_to_file, .-print_puzzle_to_file
	.globl	check_grid
	.type	check_grid, @function
check_grid:
.LFB9:
	.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 -36[rbp], ecx
	mov	DWORD PTR -8[rbp], 0
	jmp	.L36
.L41:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L37
.L40:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	ecx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -28[rbp]
	add	eax, ecx
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	ecx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -32[rbp]
	add	eax, ecx
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -36[rbp], eax
	jne	.L38
	mov	eax, 1
	jmp	.L39
.L38:
	add	DWORD PTR -4[rbp], 1
.L37:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L40
	add	DWORD PTR -8[rbp], 1
.L36:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L41
	mov	eax, 0
.L39:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	check_grid, .-check_grid
	.globl	check_column
	.type	check_column, @function
check_column:
.LFB10:
	.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
	jmp	.L43
.L46:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -32[rbp], eax
	jne	.L44
	mov	eax, 1
	jmp	.L45
.L44:
	add	DWORD PTR -4[rbp], 1
.L43:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L46
	mov	eax, 0
.L45:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	check_column, .-check_column
	.globl	check_row
	.type	check_row, @function
check_row:
.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	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -4[rbp], 0
	jmp	.L48
.L51:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 3
	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 -32[rbp], eax
	jne	.L49
	mov	eax, 1
	jmp	.L50
.L49:
	add	DWORD PTR -4[rbp], 1
.L48:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L51
	mov	eax, 0
.L50:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	check_row, .-check_row
	.globl	is_valid
	.type	is_valid, @function
is_valid:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 24
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	DWORD PTR -20[rbp], ecx
	mov	edx, DWORD PTR -20[rbp]
	mov	ecx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	check_row
	test	eax, eax
	jne	.L53
	mov	edx, DWORD PTR -20[rbp]
	mov	ecx, DWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	check_column
	test	eax, eax
	jne	.L53
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	eax, DWORD PTR -16[rbp]
	cdq
	idiv	ecx
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, edx
	mov	edi, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdq
	idiv	ecx
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, edx
	mov	esi, eax
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, edx
	mov	edx, edi
	mov	rdi, rax
	call	check_grid
	test	eax, eax
	jne	.L53
	mov	eax, 1
	jmp	.L55
.L53:
	mov	eax, 0
.L55:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	is_valid, .-is_valid
	.globl	find_empty
	.type	find_empty, @function
find_empty:
.LFB13:
	.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 -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], 0
	jmp	.L57
.L62:
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], 0
	jmp	.L58
.L61:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L59
	mov	eax, 1
	jmp	.L60
.L59:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
.L58:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	edx, eax
	jl	.L61
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], edx
.L57:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	edx, eax
	jl	.L62
	mov	eax, 0
.L60:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	find_empty, .-find_empty
	.globl	solve
	.type	solve, @function
solve:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR _states_searched_[rip]
	add	eax, 1
	mov	DWORD PTR _states_searched_[rip], eax
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	lea	rdx, -16[rbp]
	lea	rcx, -20[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	find_empty
	test	eax, eax
	jne	.L64
	mov	eax, 1
	jmp	.L70
.L64:
	mov	DWORD PTR -12[rbp], 1
	jmp	.L66
.L69:
	mov	edx, DWORD PTR -16[rbp]
	mov	esi, DWORD PTR -20[rbp]
	mov	ecx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	is_valid
	test	eax, eax
	je	.L67
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	solve
	test	eax, eax
	je	.L68
	mov	eax, 1
	jmp	.L70
.L68:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 0
.L67:
	add	DWORD PTR -12[rbp], 1
.L66:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	DWORD PTR -12[rbp], eax
	jle	.L69
	mov	eax, 0
.L70:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L71
	call	__stack_chk_fail@PLT
.L71:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	solve, .-solve
	.globl	end_on_solution_found
	.type	end_on_solution_found, @function
end_on_solution_found:
.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	QWORD PTR -8[rbp], rdi
	call	omp_get_wtime@PLT
	movq	rax, xmm0
	mov	QWORD PTR _end_[rip], rax
	mov	eax, DWORD PTR _time_only_flag_[rip]
	test	eax, eax
	je	.L73
	movsd	xmm0, QWORD PTR _end_[rip]
	movsd	xmm1, QWORD PTR _start_[rip]
	subsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC10[rip]
	mov	eax, 1
	call	printf@PLT
	jmp	.L74
.L73:
	mov	eax, DWORD PTR _time_flag_[rip]
	test	eax, eax
	je	.L75
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	debug_puzzle
	mov	eax, DWORD PTR _states_searched_[rip]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	movsd	xmm0, QWORD PTR _end_[rip]
	movsd	xmm1, QWORD PTR _start_[rip]
	subsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC10[rip]
	mov	eax, 1
	call	printf@PLT
	jmp	.L74
.L75:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	debug_puzzle
.L74:
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE15:
	.size	end_on_solution_found, .-end_on_solution_found
	.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	"919161.c"
	.text
	.local	_start_
	.comm	_start_,8,8
	.local	_end_
	.comm	_end_,8,8
	.local	_time_flag_
	.comm	_time_flag_,4,4
	.local	_time_only_flag_
	.comm	_time_only_flag_,4,4
	.local	_states_searched_
	.comm	_states_searched_,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"ERROR: Too many arguments.\000"
	.align	2
.LC1:
	.ascii	"ERROR: Missing arguments.\000"
	.align	2
.LC2:
	.ascii	"-to\000"
	.align	2
.LC3:
	.ascii	"-t\000"
	.align	2
.LC4:
	.ascii	"r\000"
	.align	2
.LC5:
	.ascii	"ERROR: Could not open file %s\012\000"
	.align	2
.LC6:
	.ascii	"%d\012\000"
	.align	2
.LC7:
	.ascii	"%d\000"
	.align	2
.LC8:
	.ascii	"\012\000"
	.align	2
.LC9:
	.ascii	".out\000"
	.align	2
.LC10:
	.ascii	"w\000"
	.global	__aeabi_dsub
	.align	2
.LC11:
	.ascii	"Elapsed time: %f (s)\012\000"
	.align	2
.LC12:
	.ascii	"No solution\000"
	.align	2
.LC13:
	.ascii	"Searched %d states in total.\012\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #60
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	bl	omp_get_wtime
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L23+4
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-64]
	cmp	r3, #4
	ble	.L2
	ldr	r0, .L23+8
	bl	puts
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-64]
	cmp	r3, #1
	bgt	.L3
	ldr	r0, .L23+12
	bl	puts
	mov	r0, #1
	bl	exit
.L3:
	ldr	r3, [fp, #-64]
	cmp	r3, #3
	bne	.L4
	ldr	r3, [fp, #-68]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L23+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	ldr	r3, .L23+20
	mov	r2, #1
	str	r2, [r3]
	b	.L5
.L4:
	ldr	r3, [fp, #-64]
	cmp	r3, #3
	bne	.L6
	ldr	r3, [fp, #-68]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L23+24
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	ldr	r3, .L23+28
	mov	r2, #1
	str	r2, [r3]
	b	.L5
.L6:
	ldr	r3, [fp, #-64]
	cmp	r3, #3
	ble	.L5
	ldr	r3, [fp, #-68]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L23+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L7
	ldr	r3, [fp, #-68]
	add	r3, r3, #12
	ldr	r3, [r3]
	ldr	r1, .L23+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
.L7:
	ldr	r3, .L23+20
	mov	r2, #1
	str	r2, [r3]
.L5:
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-48]
	ldr	r1, .L23+32
	ldr	r0, [fp, #-48]
	bl	fopen
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L8
	ldr	r1, [fp, #-48]
	ldr	r0, .L23+36
	bl	printf
	mov	r0, #1
	bl	exit
.L8:
	sub	r3, fp, #60
	mov	r2, r3
	ldr	r1, .L23+40
	ldr	r0, [fp, #-44]
	bl	__isoc99_fscanf
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-60]
	mul	r3, r2, r3
	str	r3, [fp, #-40]
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-40]
	str	r2, [r3, #4]
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-36]
	str	r2, [r3]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-36]
	str	r2, [r3, #8]
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L9
.L10:
	ldr	r3, [fp, #-40]
	lsl	r1, r3, #2
	ldr	r3, [fp, #-36]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L9:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L10
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L11
.L14:
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L12
.L13:
	ldr	r3, [fp, #-36]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, r3
	ldr	r1, .L23+44
	ldr	r0, [fp, #-44]
	bl	__isoc99_fscanf
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L12:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L13
	ldr	r1, .L23+48
	ldr	r0, [fp, #-44]
	bl	__isoc99_fscanf
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L11:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L14
	ldr	r0, [fp, #-44]
	bl	fclose
	ldr	r0, [fp, #-36]
	bl	solve
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	ldr	r0, [fp, #-48]
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #3
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r0, [fp, #-48]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #4
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r1, [fp, #-48]
	ldr	r0, [fp, #-24]
	bl	strcpy
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, r2
	ldr	r2, .L23+52
	mov	r0, r3
	mov	r1, r2
	mov	r3, #5
	mov	r2, r3
	bl	memcpy
	ldr	r1, .L23+56
	ldr	r0, [fp, #-24]
	bl	fopen
	str	r0, [fp, #-20]
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-20]
	bl	print_puzzle_to_file
	ldr	r0, [fp, #-20]
	bl	fclose
	ldr	r0, [fp, #-36]
	bl	end_on_solution_found
	b	.L16
.L15:
	bl	omp_get_wtime
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L23+60
	stm	r1, {r2-r3}
	ldr	r3, .L23+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L17
	ldr	r3, .L23+60
	ldmia	r3, {r0-r1}
	ldr	r3, .L23+4
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L23+64
	bl	printf
	b	.L16
.L17:
	ldr	r3, .L23+28
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L18
	ldr	r0, .L23+68
	bl	puts
	ldr	r3, .L23+72
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L23+76
	bl	printf
	ldr	r3, .L23+60
	ldmia	r3, {r0-r1}
	ldr	r3, .L23+4
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L23+64
	bl	printf
	b	.L16
.L18:
	ldr	r0, .L23+68
	bl	puts
.L16:
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L19
.L20:
	ldr	r3, [fp, #-36]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L19:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L20
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-36]
	bl	free
	mov	r3, #0
	ldr	r2, .L23
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC14
	.word	_start_
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	_time_only_flag_
	.word	.LC3
	.word	_time_flag_
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	_end_
	.word	.LC11
	.word	.LC12
	.word	_states_searched_
	.word	.LC13
	.size	main, .-main
	.section	.rodata
	.align	2
.LC15:
	.ascii	"%d \000"
	.text
	.align	2
	.global	debug_puzzle
	.syntax unified
	.arm
	.fpu softvfp
	.type	debug_puzzle, %function
debug_puzzle:
	@ 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]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L31
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L27
.L30:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L28
.L29:
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L32
	bl	printf
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L28:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L29
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L27:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L30
.L31:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC15
	.size	debug_puzzle, .-debug_puzzle
	.align	2
	.global	print_puzzle_to_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_puzzle_to_file, %function
print_puzzle_to_file:
	@ 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]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L35
.L38:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L36
.L37:
	ldr	r3, [fp, #-28]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L39
	ldr	r0, [fp, #-24]
	bl	fprintf
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L36:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L37
	ldr	r1, [fp, #-24]
	mov	r0, #10
	bl	fputc
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L35:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L38
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L40:
	.align	2
.L39:
	.word	.LC15
	.size	print_puzzle_to_file, .-print_puzzle_to_file
	.align	2
	.global	check_grid
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_grid, %function
check_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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L42
.L47:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L43
.L46:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #8]
	ldr	r1, [fp, #-12]
	ldr	r3, [fp, #-20]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r1, [fp, #-8]
	ldr	r3, [fp, #-24]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bne	.L44
	mov	r3, #1
	b	.L45
.L44:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L43:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L46
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L42:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L47
	mov	r3, #0
.L45:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	check_grid, .-check_grid
	.align	2
	.global	check_column
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_column, %function
check_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, #-8]
	b	.L49
.L52:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bne	.L50
	mov	r3, #1
	b	.L51
.L50:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L49:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L52
	mov	r3, #0
.L51:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	check_column, .-check_column
	.align	2
	.global	check_row
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_row, %function
check_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, #-8]
	b	.L54
.L57:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	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, #-24]
	cmp	r2, r3
	bne	.L55
	mov	r3, #1
	b	.L56
.L55:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L54:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L57
	mov	r3, #0
.L56:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	check_row, .-check_row
	.global	__aeabi_idivmod
	.align	2
	.global	is_valid
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_valid, %function
is_valid:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	check_row
	mov	r3, r0
	cmp	r3, #0
	bne	.L59
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-16]
	bl	check_column
	mov	r3, r0
	cmp	r3, #0
	bne	.L59
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, [fp, #-20]
	sub	r4, r3, r2
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, [fp, #-24]
	sub	r2, r3, r2
	ldr	r3, [fp, #-28]
	mov	r1, r4
	ldr	r0, [fp, #-16]
	bl	check_grid
	mov	r3, r0
	cmp	r3, #0
	bne	.L59
	mov	r3, #1
	b	.L61
.L59:
	mov	r3, #0
.L61:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	is_valid, .-is_valid
	.align	2
	.global	find_empty
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_empty, %function
find_empty:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3]
	b	.L63
.L68:
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3]
	b	.L64
.L67:
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L65
	mov	r3, #1
	b	.L66
.L65:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3]
.L64:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	blt	.L67
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-12]
	str	r2, [r3]
.L63:
	ldr	r3, [fp, #-12]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	blt	.L68
	mov	r3, #0
.L66:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	find_empty, .-find_empty
	.section	.rodata
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	solve
	.syntax unified
	.arm
	.fpu softvfp
	.type	solve, %function
solve:
	@ 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]
	ldr	r3, .L78
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L78+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L78+4
	str	r3, [r2]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	sub	r2, fp, #16
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	find_empty
	mov	r3, r0
	cmp	r3, #0
	bne	.L70
	mov	r3, #1
	b	.L76
.L70:
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L72
.L75:
	ldr	r1, [fp, #-20]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	ldr	r0, [fp, #-24]
	bl	is_valid
	mov	r3, r0
	cmp	r3, #0
	beq	.L73
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r0, [fp, #-24]
	bl	solve
	mov	r3, r0
	cmp	r3, #0
	beq	.L74
	mov	r3, #1
	b	.L76
.L74:
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
.L73:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L72:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L75
	mov	r3, #0
.L76:
	ldr	r2, .L78
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L77
	bl	__stack_chk_fail
.L77:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L79:
	.align	2
.L78:
	.word	.LC16
	.word	_states_searched_
	.size	solve, .-solve
	.align	2
	.global	end_on_solution_found
	.syntax unified
	.arm
	.fpu softvfp
	.type	end_on_solution_found, %function
end_on_solution_found:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	bl	omp_get_wtime
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L84
	stm	r1, {r2-r3}
	ldr	r3, .L84+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L81
	ldr	r3, .L84
	ldmia	r3, {r0-r1}
	ldr	r3, .L84+8
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L84+12
	bl	printf
	b	.L82
.L81:
	ldr	r3, .L84+16
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L83
	ldr	r0, [fp, #-8]
	bl	debug_puzzle
	ldr	r3, .L84+20
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L84+24
	bl	printf
	ldr	r3, .L84
	ldmia	r3, {r0-r1}
	ldr	r3, .L84+8
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L84+12
	bl	printf
	b	.L82
.L83:
	ldr	r0, [fp, #-8]
	bl	debug_puzzle
.L82:
	mov	r0, #0
	bl	exit
.L85:
	.align	2
.L84:
	.word	_end_
	.word	_time_only_flag_
	.word	_start_
	.word	.LC11
	.word	_time_flag_
	.word	_states_searched_
	.word	.LC13
	.size	end_on_solution_found, .-end_on_solution_found
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
