	.file	"973384.c"
	.intel_syntax noprefix
	.text
	.globl	grid
	.bss
	.align 32
	.type	grid, @object
	.size	grid, 324
grid:
	.zero	324
	.text
	.globl	reset_grid
	.type	reset_grid, @function
reset_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	edx, 324
	mov	esi, 0
	lea	rdi, grid[rip]
	call	memset@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	reset_grid, .-reset_grid
	.section	.rodata
.LC0:
	.string	"Grid %d: %s\n"
.LC1:
	.string	"Grid %d\n"
.LC2:
	.string	" %d"
.LC3:
	.string	" ."
	.text
	.globl	print_puzzle
	.type	print_puzzle, @function
print_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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	cmp	QWORD PTR -32[rbp], 0
	je	.L3
	mov	rdx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L4
.L3:
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L4:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L5
.L12:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L6
.L10:
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, edx
	sal	eax, 3
	add	edx, eax
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, grid[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jle	.L7
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L8
.L7:
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L8:
	mov	edx, DWORD PTR -8[rbp]
	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
	cmp	eax, 2
	jne	.L9
	mov	edi, 32
	call	putchar@PLT
.L9:
	add	DWORD PTR -8[rbp], 1
.L6:
	cmp	DWORD PTR -8[rbp], 8
	jle	.L10
	mov	edi, 10
	call	putchar@PLT
	mov	edx, DWORD PTR -12[rbp]
	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
	cmp	eax, 2
	jne	.L11
	mov	edi, 10
	call	putchar@PLT
.L11:
	add	DWORD PTR -12[rbp], 1
.L5:
	cmp	DWORD PTR -12[rbp], 8
	jle	.L12
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	print_puzzle, .-print_puzzle
	.section	.rodata
.LC4:
	.string	"%s %d"
.LC5:
	.string	"Grid"
.LC6:
	.string	"Expected Grid, got %s\n"
.LC7:
	.string	"Expected id %d, got %d\n"
.LC8:
	.string	"%s"
	.align 8
.LC9:
	.string	"strlen(%s) is %zu, should be 9\n"
	.text
	.globl	load_puzzle
	.type	load_puzzle, @function
load_puzzle:
.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rcx, -44[rbp]
	lea	rdx, -32[rbp]
	mov	rax, QWORD PTR -64[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	call	strcmp@PLT
	test	eax, eax
	je	.L14
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	mov	eax, DWORD PTR -44[rbp]
	cmp	DWORD PTR -52[rbp], eax
	je	.L15
	mov	edx, DWORD PTR -44[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	mov	DWORD PTR -40[rbp], 0
	jmp	.L16
.L20:
	lea	rdx, -32[rbp]
	mov	rax, QWORD PTR -64[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 9
	je	.L17
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L17:
	mov	DWORD PTR -36[rbp], 0
	jmp	.L18
.L19:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	movzx	eax, BYTE PTR -32[rbp+rax]
	movsx	ecx, al
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, edx
	sal	eax, 3
	add	edx, eax
	mov	eax, DWORD PTR -36[rbp]
	add	eax, edx
	sub	ecx, 48
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, grid[rip]
	mov	DWORD PTR [rdx+rax], ecx
	add	DWORD PTR -36[rbp], 1
.L18:
	cmp	DWORD PTR -36[rbp], 8
	jle	.L19
	add	DWORD PTR -40[rbp], 1
.L16:
	cmp	DWORD PTR -40[rbp], 8
	jle	.L20
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	load_puzzle, .-load_puzzle
	.globl	is_okay
	.type	is_okay, @function
is_okay:
.LFB9:
	.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	edx, DWORD PTR -20[rbp]
	mov	eax, edx
	sal	eax, 3
	add	edx, eax
	mov	eax, DWORD PTR -24[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, grid[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L23
	mov	eax, 0
	jmp	.L24
.L23:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L25
.L28:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	je	.L26
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, edx
	sal	eax, 3
	add	edx, eax
	mov	eax, DWORD PTR -24[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, grid[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, edx
	sal	eax, 3
	add	edx, eax
	mov	eax, DWORD PTR -24[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, grid[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	ecx, eax
	jne	.L26
	mov	eax, 0
	jmp	.L24
.L26:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	je	.L27
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, edx
	sal	eax, 3
	add	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, grid[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, edx
	sal	eax, 3
	add	edx, eax
	mov	eax, DWORD PTR -24[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, grid[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	ecx, eax
	jne	.L27
	mov	eax, 0
	jmp	.L24
.L27:
	add	DWORD PTR -12[rbp], 1
.L25:
	cmp	DWORD PTR -12[rbp], 8
	jle	.L28
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1431655766
	shr	rdx, 32
	sar	eax, 31
	sub	edx, eax
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	mov	DWORD PTR -8[rbp], eax
	jmp	.L29
.L34:
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1431655766
	shr	rdx, 32
	sar	eax, 31
	sub	edx, eax
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	mov	DWORD PTR -4[rbp], eax
	jmp	.L30
.L33:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jne	.L31
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	je	.L32
.L31:
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, edx
	sal	eax, 3
	add	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, grid[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, edx
	sal	eax, 3
	add	edx, eax
	mov	eax, DWORD PTR -24[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, grid[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	ecx, eax
	jne	.L32
	mov	eax, 0
	jmp	.L24
.L32:
	add	DWORD PTR -4[rbp], 1
.L30:
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1431655766
	shr	rdx, 32
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	lea	edx, 1[rax]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	cmp	DWORD PTR -4[rbp], eax
	jl	.L33
	add	DWORD PTR -8[rbp], 1
.L29:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1431655766
	shr	rdx, 32
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	lea	edx, 1[rax]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	cmp	DWORD PTR -8[rbp], eax
	jl	.L34
	mov	eax, 1
.L24:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	is_okay, .-is_okay
	.globl	solve_puzzle
	.type	solve_puzzle, @function
solve_puzzle:
.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	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 954437177
	shr	rdx, 32
	sar	edx
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 954437177
	shr	rdx, 32
	sar	edx
	mov	esi, eax
	sar	esi, 31
	mov	ecx, edx
	sub	ecx, esi
	mov	edx, ecx
	sal	edx, 3
	add	edx, ecx
	sub	eax, edx
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -20[rbp], 81
	jne	.L36
	mov	eax, 1
	jmp	.L37
.L36:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, grid[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L38
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 1
	mov	edi, eax
	call	solve_puzzle
	jmp	.L37
.L38:
	mov	DWORD PTR -12[rbp], 1
	jmp	.L39
.L41:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, grid[rip]
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, edx
	mov	edi, eax
	call	is_okay
	test	eax, eax
	je	.L40
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 1
	mov	edi, eax
	call	solve_puzzle
	test	eax, eax
	je	.L40
	mov	eax, 1
	jmp	.L37
.L40:
	add	DWORD PTR -12[rbp], 1
.L39:
	cmp	DWORD PTR -12[rbp], 9
	jle	.L41
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, grid[rip]
	mov	DWORD PTR [rdx+rax], 0
	mov	eax, 0
.L37:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	solve_puzzle, .-solve_puzzle
	.section	.rodata
.LC10:
	.string	"r"
.LC11:
	.string	"sudoku.txt"
.LC12:
	.string	"loaded"
.LC13:
	.string	"Failed to solve puzzle %d\n"
.LC14:
	.string	"error"
.LC15:
	.string	"solved"
.LC16:
	.string	"sum: %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	lea	rsi, .LC10[rip]
	lea	rdi, .LC11[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L43
	mov	edi, 1
	call	exit@PLT
.L43:
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -16[rbp], 1
	jmp	.L44
.L46:
	call	reset_grid
	mov	rdx, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	load_puzzle
	mov	eax, DWORD PTR -16[rbp]
	lea	rsi, .LC12[rip]
	mov	edi, eax
	call	print_puzzle
	mov	edi, 0
	call	solve_puzzle
	test	eax, eax
	jne	.L45
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -16[rbp]
	lea	rsi, .LC14[rip]
	mov	edi, eax
	call	print_puzzle
	mov	edi, 1
	call	exit@PLT
.L45:
	mov	eax, DWORD PTR -16[rbp]
	lea	rsi, .LC15[rip]
	mov	edi, eax
	call	print_puzzle
	mov	eax, DWORD PTR grid[rip]
	imul	ecx, eax, 100
	mov	edx, DWORD PTR grid[rip+4]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	lea	edx, [rcx+rax]
	mov	eax, DWORD PTR grid[rip+8]
	add	eax, edx
	add	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -16[rbp], 1
.L44:
	cmp	DWORD PTR -16[rbp], 50
	jle	.L46
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE11:
	.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	"973384.c"
	.text
	.comm	grid,324,4
	.align	2
	.global	reset_grid
	.syntax unified
	.arm
	.fpu softvfp
	.type	reset_grid, %function
reset_grid:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r2, #324
	mov	r1, #0
	ldr	r0, .L2
	bl	memset
	nop
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	grid
	.size	reset_grid, .-reset_grid
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Grid %d: %s\012\000"
	.align	2
.LC1:
	.ascii	"Grid %d\012\000"
	.align	2
.LC2:
	.ascii	" %d\000"
	.align	2
.LC3:
	.ascii	" .\000"
	.text
	.align	2
	.global	print_puzzle
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_puzzle, %function
print_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]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L5
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-24]
	ldr	r0, .L15
	bl	printf
	b	.L6
.L5:
	ldr	r1, [fp, #-24]
	ldr	r0, .L15+4
	bl	printf
.L6:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L7
.L14:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L8
.L12:
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r2, r3, r2
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldr	r2, .L15+8
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L9
	ldr	r1, [fp, #-8]
	ldr	r0, .L15+12
	bl	printf
	b	.L10
.L9:
	ldr	r0, .L15+16
	bl	printf
.L10:
	ldr	r1, [fp, #-12]
	ldr	r3, .L15+20
	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, #2
	bne	.L11
	mov	r0, #32
	bl	putchar
.L11:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L8:
	ldr	r3, [fp, #-12]
	cmp	r3, #8
	ble	.L12
	mov	r0, #10
	bl	putchar
	ldr	r1, [fp, #-16]
	ldr	r3, .L15+20
	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, #2
	bne	.L13
	mov	r0, #10
	bl	putchar
.L13:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L7:
	ldr	r3, [fp, #-16]
	cmp	r3, #8
	ble	.L14
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	.LC1
	.word	grid
	.word	.LC2
	.word	.LC3
	.word	1431655766
	.size	print_puzzle, .-print_puzzle
	.section	.rodata
	.align	2
.LC4:
	.ascii	"%s %d\000"
	.align	2
.LC5:
	.ascii	"Grid\000"
	.align	2
.LC6:
	.ascii	"Expected Grid, got %s\012\000"
	.align	2
.LC7:
	.ascii	"Expected id %d, got %d\012\000"
	.align	2
.LC8:
	.ascii	"%s\000"
	.align	2
.LC9:
	.ascii	"strlen(%s) is %zu, should be 9\012\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	load_puzzle
	.syntax unified
	.arm
	.fpu softvfp
	.type	load_puzzle, %function
load_puzzle:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #36
	sub	r2, fp, #24
	ldr	r1, .L26+4
	ldr	r0, [fp, #-44]
	bl	__isoc99_fscanf
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L26+8
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L18
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L26+12
	bl	printf
	mov	r0, #1
	bl	exit
.L18:
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	beq	.L19
	ldr	r3, [fp, #-36]
	mov	r2, r3
	ldr	r1, [fp, #-40]
	ldr	r0, .L26+16
	bl	printf
	mov	r0, #1
	bl	exit
.L19:
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L20
.L24:
	sub	r3, fp, #24
	mov	r2, r3
	ldr	r1, .L26+20
	ldr	r0, [fp, #-44]
	bl	__isoc99_fscanf
	sub	r3, fp, #24
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	cmp	r3, #9
	beq	.L21
	sub	r3, fp, #24
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L26+24
	bl	printf
	mov	r0, #1
	bl	exit
.L21:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L22
.L23:
	sub	r2, fp, #24
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r2, r3, r2
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	sub	r2, r1, #48
	ldr	r1, .L26+28
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L22:
	ldr	r3, [fp, #-28]
	cmp	r3, #8
	ble	.L23
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L20:
	ldr	r3, [fp, #-32]
	cmp	r3, #8
	ble	.L24
	nop
	ldr	r3, .L26
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC10
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	grid
	.size	load_puzzle, .-load_puzzle
	.align	2
	.global	is_okay
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_okay, %function
is_okay:
	@ 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]
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r2, r3, r2
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, .L41
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L29
	mov	r3, #0
	b	.L30
.L29:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L31
.L34:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	beq	.L32
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r2, r3, r2
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, .L41
	ldr	r1, [r2, r3, lsl #2]
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r2, r3, r2
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, .L41
	ldr	r3, [r2, r3, lsl #2]
	cmp	r1, r3
	bne	.L32
	mov	r3, #0
	b	.L30
.L32:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	beq	.L33
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r2, r3, r2
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, .L41
	ldr	r1, [r2, r3, lsl #2]
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r2, r3, r2
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, .L41
	ldr	r3, [r2, r3, lsl #2]
	cmp	r1, r3
	bne	.L33
	mov	r3, #0
	b	.L30
.L33:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L31:
	ldr	r3, [fp, #-16]
	cmp	r3, #8
	ble	.L34
	ldr	r3, [fp, #-24]
	ldr	r2, .L41+4
	smull	r1, r2, r3, r2
	asr	r3, r3, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	str	r3, [fp, #-12]
	b	.L35
.L40:
	ldr	r3, [fp, #-28]
	ldr	r2, .L41+4
	smull	r1, r2, r3, r2
	asr	r3, r3, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	str	r3, [fp, #-8]
	b	.L36
.L39:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bne	.L37
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	beq	.L38
.L37:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r2, r3, r2
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, .L41
	ldr	r1, [r2, r3, lsl #2]
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r2, r3, r2
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, .L41
	ldr	r3, [r2, r3, lsl #2]
	cmp	r1, r3
	bne	.L38
	mov	r3, #0
	b	.L30
.L38:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L36:
	ldr	r3, [fp, #-28]
	ldr	r2, .L41+4
	smull	r1, r2, r3, r2
	asr	r3, r3, #31
	sub	r3, r2, r3
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L39
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L35:
	ldr	r3, [fp, #-24]
	ldr	r2, .L41+4
	smull	r1, r2, r3, r2
	asr	r3, r3, #31
	sub	r3, r2, r3
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L40
	mov	r3, #1
.L30:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L42:
	.align	2
.L41:
	.word	grid
	.word	1431655766
	.size	is_okay, .-is_okay
	.align	2
	.global	solve_puzzle
	.syntax unified
	.arm
	.fpu softvfp
	.type	solve_puzzle, %function
solve_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]
	ldr	r2, .L50
	smull	r1, r2, r3, r2
	asr	r2, r2, #1
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	ldr	r3, .L50
	smull	r1, r3, r2, r3
	asr	r1, r3, #1
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #3
	add	r3, r3, r1
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r3, #81
	bne	.L44
	mov	r3, #1
	b	.L45
.L44:
	ldr	r2, .L50+4
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L46
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	mov	r0, r3
	bl	solve_puzzle
	mov	r3, r0
	b	.L45
.L46:
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L47
.L49:
	ldr	r1, .L50+4
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	is_okay
	mov	r3, r0
	cmp	r3, #0
	beq	.L48
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	mov	r0, r3
	bl	solve_puzzle
	mov	r3, r0
	cmp	r3, #0
	beq	.L48
	mov	r3, #1
	b	.L45
.L48:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L47:
	ldr	r3, [fp, #-16]
	cmp	r3, #9
	ble	.L49
	ldr	r2, .L50+4
	ldr	r3, [fp, #-24]
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
	mov	r3, #0
.L45:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L51:
	.align	2
.L50:
	.word	954437177
	.word	grid
	.size	solve_puzzle, .-solve_puzzle
	.section	.rodata
	.align	2
.LC11:
	.ascii	"r\000"
	.align	2
.LC12:
	.ascii	"sudoku.txt\000"
	.align	2
.LC13:
	.ascii	"loaded\000"
	.align	2
.LC14:
	.ascii	"Failed to solve puzzle %d\012\000"
	.align	2
.LC15:
	.ascii	"error\000"
	.align	2
.LC16:
	.ascii	"solved\000"
	.align	2
.LC17:
	.ascii	"sum: %d\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r1, .L57
	ldr	r0, .L57+4
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L53
	mov	r0, #1
	bl	exit
.L53:
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L54
.L56:
	bl	reset_grid
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	load_puzzle
	ldr	r1, .L57+8
	ldr	r0, [fp, #-16]
	bl	print_puzzle
	mov	r0, #0
	bl	solve_puzzle
	mov	r3, r0
	cmp	r3, #0
	bne	.L55
	ldr	r1, [fp, #-16]
	ldr	r0, .L57+12
	bl	printf
	ldr	r1, .L57+16
	ldr	r0, [fp, #-16]
	bl	print_puzzle
	mov	r0, #1
	bl	exit
.L55:
	ldr	r1, .L57+20
	ldr	r0, [fp, #-16]
	bl	print_puzzle
	ldr	r3, .L57+24
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r1, r3
	ldr	r3, .L57+24
	ldr	r2, [r3, #4]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, .L57+24
	ldr	r3, [r3, #8]
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, .L57+28
	bl	printf
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L54:
	ldr	r3, [fp, #-16]
	cmp	r3, #50
	ble	.L56
	mov	r0, #0
	bl	exit
.L58:
	.align	2
.L57:
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	grid
	.word	.LC17
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
