	.file	"761762.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%c "
	.text
	.globl	print_board
	.type	print_board, @function
print_board:
.LFB6:
	.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
	mov	DWORD PTR -8[rbp], 0
	jmp	.L2
.L5:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -8[rbp]
	imul	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L3:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L4
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -8[rbp], 1
.L2:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L5
	mov	edi, 10
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	print_board, .-print_board
	.globl	calc_row
	.type	calc_row, @function
calc_row:
.LFB7:
	.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 -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -8[rbp]
	cdq
	idiv	DWORD PTR -4[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	cvttsd2si	eax, xmm0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	calc_row, .-calc_row
	.globl	calc_col
	.type	calc_col, @function
calc_col:
.LFB8:
	.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 -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -8[rbp]
	cdq
	idiv	DWORD PTR -4[rbp]
	mov	eax, edx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	calc_col, .-calc_col
	.globl	calc_index
	.type	calc_index, @function
calc_index:
.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 -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	DWORD PTR -12[rbp], edx
	mov	eax, DWORD PTR -8[rbp]
	imul	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	calc_index, .-calc_index
	.globl	remove_rows
	.type	remove_rows, @function
remove_rows:
.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	DWORD PTR -24[rbp], esi
	mov	QWORD PTR -32[rbp], rdx
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, edx
	mov	edi, eax
	call	calc_row
	mov	DWORD PTR -12[rbp], eax
	mov	ecx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 0
	mov	esi, ecx
	mov	edi, eax
	call	calc_index
	mov	DWORD PTR -8[rbp], eax
	mov	edx, DWORD PTR -20[rbp]
	mov	ecx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	calc_index
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -16[rbp], eax
	jmp	.L13
.L15:
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 113
	je	.L14
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 42
.L14:
	add	DWORD PTR -16[rbp], 1
.L13:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jl	.L15
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	remove_rows, .-remove_rows
	.globl	remove_cols
	.type	remove_cols, @function
remove_cols:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	QWORD PTR -32[rbp], rdx
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, edx
	mov	edi, eax
	call	calc_col
	mov	DWORD PTR -12[rbp], eax
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, 0
	mov	edi, eax
	call	calc_index
	mov	DWORD PTR -8[rbp], eax
	mov	edx, DWORD PTR -12[rbp]
	mov	ecx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	calc_index
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -16[rbp], eax
	jmp	.L17
.L19:
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 113
	je	.L18
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 42
.L18:
	mov	eax, DWORD PTR -20[rbp]
	add	DWORD PTR -16[rbp], eax
.L17:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jl	.L19
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	remove_cols, .-remove_cols
	.globl	remove_diagonals
	.type	remove_diagonals, @function
remove_diagonals:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	QWORD PTR -48[rbp], rdx
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, edx
	mov	edi, eax
	call	calc_row
	mov	DWORD PTR -28[rbp], eax
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, edx
	mov	edi, eax
	call	calc_col
	add	eax, 1
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -24[rbp], eax
	jmp	.L21
.L23:
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 1
	cmp	DWORD PTR -36[rbp], eax
	jle	.L22
	add	DWORD PTR -28[rbp], 1
	mov	edx, DWORD PTR -24[rbp]
	mov	ecx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	calc_index
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 113
	je	.L22
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 42
.L22:
	add	DWORD PTR -24[rbp], 1
.L21:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L23
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, edx
	mov	edi, eax
	call	calc_row
	mov	DWORD PTR -28[rbp], eax
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, edx
	mov	edi, eax
	call	calc_col
	sub	eax, 1
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -20[rbp], eax
	jmp	.L24
.L26:
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 1
	cmp	DWORD PTR -36[rbp], eax
	jle	.L25
	add	DWORD PTR -28[rbp], 1
	mov	edx, DWORD PTR -20[rbp]
	mov	ecx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	calc_index
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 113
	je	.L25
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 42
.L25:
	sub	DWORD PTR -20[rbp], 1
.L24:
	cmp	DWORD PTR -20[rbp], 0
	jns	.L26
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, edx
	mov	edi, eax
	call	calc_row
	mov	DWORD PTR -28[rbp], eax
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, edx
	mov	edi, eax
	call	calc_col
	add	eax, 1
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -16[rbp], eax
	jmp	.L27
.L29:
	cmp	DWORD PTR -28[rbp], 0
	jle	.L28
	sub	DWORD PTR -28[rbp], 1
	mov	edx, DWORD PTR -16[rbp]
	mov	ecx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	calc_index
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 113
	je	.L28
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 42
.L28:
	add	DWORD PTR -16[rbp], 1
.L27:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L29
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, edx
	mov	edi, eax
	call	calc_row
	mov	DWORD PTR -28[rbp], eax
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, edx
	mov	edi, eax
	call	calc_col
	sub	eax, 1
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L30
.L32:
	cmp	DWORD PTR -28[rbp], 0
	jle	.L31
	sub	DWORD PTR -28[rbp], 1
	mov	edx, DWORD PTR -12[rbp]
	mov	ecx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	calc_index
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 113
	je	.L31
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 42
.L31:
	sub	DWORD PTR -12[rbp], 1
.L30:
	cmp	DWORD PTR -12[rbp], 0
	jns	.L32
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	remove_diagonals, .-remove_diagonals
	.globl	place_piece
	.type	place_piece, @function
place_piece:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	QWORD PTR -16[rbp], rdx
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 113
	mov	rdx, QWORD PTR -16[rbp]
	mov	ecx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	remove_rows
	mov	rdx, QWORD PTR -16[rbp]
	mov	ecx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	remove_cols
	mov	rdx, QWORD PTR -16[rbp]
	mov	ecx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	remove_diagonals
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	place_piece, .-place_piece
	.globl	remaining_moves
	.type	remaining_moves, @function
remaining_moves:
.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 -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L35
.L37:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 95
	jne	.L36
	add	DWORD PTR -8[rbp], 1
.L36:
	add	DWORD PTR -4[rbp], 1
.L35:
	mov	eax, DWORD PTR -20[rbp]
	imul	eax, eax
	cmp	DWORD PTR -4[rbp], eax
	jl	.L37
	mov	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	remaining_moves, .-remaining_moves
	.globl	new_solution
	.type	new_solution, @function
new_solution:
.LFB15:
	.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	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -24[rbp], edx
	mov	QWORD PTR -40[rbp], rcx
	mov	DWORD PTR -4[rbp], 0
	jmp	.L40
.L41:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -24[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -40[rbp]
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	add	rdx, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -4[rbp], 1
.L40:
	mov	eax, DWORD PTR -20[rbp]
	imul	eax, eax
	cmp	DWORD PTR -4[rbp], eax
	jl	.L41
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	new_solution, .-new_solution
	.globl	validate_board
	.type	validate_board, @function
validate_board:
.LFB16:
	.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	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L43
.L45:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 113
	jne	.L44
	add	DWORD PTR -8[rbp], 1
.L44:
	add	DWORD PTR -4[rbp], 1
.L43:
	mov	eax, DWORD PTR -20[rbp]
	imul	eax, eax
	cmp	DWORD PTR -4[rbp], eax
	jl	.L45
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jne	.L46
	mov	eax, 1
	jmp	.L47
.L46:
	mov	eax, 0
.L47:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	validate_board, .-validate_board
	.globl	new_board
	.type	new_board, @function
new_board:
.LFB17:
	.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	QWORD PTR -40[rbp], rcx
	mov	DWORD PTR -4[rbp], 0
	jmp	.L49
.L50:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, rdx
	mov	edx, DWORD PTR -4[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -32[rbp]
	add	rdx, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -4[rbp], 1
.L49:
	mov	eax, DWORD PTR -20[rbp]
	imul	eax, eax
	cmp	DWORD PTR -4[rbp], eax
	jl	.L50
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	new_board, .-new_board
	.globl	validate_stack_size
	.type	validate_stack_size, @function
validate_stack_size:
.LFB18:
	.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, 56
	.cfi_offset 3, -24
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	QWORD PTR -48[rbp], rdx
	mov	QWORD PTR -56[rbp], rcx
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -40[rbp], eax
	jl	.L55
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -36[rbp]
	add	eax, edx
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	addsd	xmm0, xmm1
	cvttsd2si	edx, xmm0
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -20[rbp], eax
	jmp	.L53
.L54:
	mov	eax, DWORD PTR -36[rbp]
	imul	eax, eax
	cdqe
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -56[rbp]
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -20[rbp], 1
.L53:
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -20[rbp], eax
	jl	.L54
.L55:
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	validate_stack_size, .-validate_stack_size
	.globl	backtrack
	.type	backtrack, @function
backtrack:
.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, 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
	mov	rdx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	remaining_moves
	cmp	eax, 1
	jle	.L60
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 42
	mov	DWORD PTR -4[rbp], 0
	jmp	.L58
.L59:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	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 -4[rbp]
	cdqe
	add	rdx, rax
	movzx	eax, BYTE PTR [rcx]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -4[rbp], 1
.L58:
	mov	eax, DWORD PTR -20[rbp]
	imul	eax, eax
	cmp	DWORD PTR -4[rbp], eax
	jl	.L59
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
.L60:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	backtrack, .-backtrack
	.section	.rodata
.LC1:
	.string	"clear"
.LC2:
	.string	"reset"
.LC3:
	.string	"Solutions: %d\n\n"
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rdi, .LC1[rip]
	call	system@PLT
	lea	rdi, .LC2[rip]
	call	system@PLT
	mov	DWORD PTR -68[rbp], 10
	mov	eax, DWORD PTR -68[rbp]
	mov	DWORD PTR -132[rbp], eax
	mov	DWORD PTR -128[rbp], 0
	mov	DWORD PTR -124[rbp], 0
	mov	eax, DWORD PTR -68[rbp]
	imul	eax, eax
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	DWORD PTR -120[rbp], 0
	jmp	.L62
.L63:
	mov	eax, DWORD PTR -68[rbp]
	imul	eax, eax
	cdqe
	mov	edx, DWORD PTR -120[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -48[rbp]
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -120[rbp], 1
.L62:
	mov	eax, DWORD PTR -68[rbp]
	imul	eax, eax
	cmp	DWORD PTR -120[rbp], eax
	jl	.L63
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	DWORD PTR -116[rbp], 0
	jmp	.L64
.L65:
	mov	eax, DWORD PTR -68[rbp]
	imul	eax, eax
	cdqe
	mov	edx, DWORD PTR -116[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -56[rbp]
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -116[rbp], 1
.L64:
	mov	eax, DWORD PTR -116[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L65
	mov	DWORD PTR -112[rbp], 0
	jmp	.L66
.L71:
	mov	DWORD PTR -108[rbp], 0
	jmp	.L67
.L70:
	mov	eax, DWORD PTR -108[rbp]
	cmp	eax, DWORD PTR -112[rbp]
	jge	.L68
	mov	eax, DWORD PTR -112[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 -108[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR [rax], 42
	jmp	.L69
.L68:
	mov	eax, DWORD PTR -112[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 -108[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR [rax], 95
.L69:
	add	DWORD PTR -108[rbp], 1
.L67:
	mov	eax, DWORD PTR -68[rbp]
	imul	eax, eax
	cmp	DWORD PTR -108[rbp], eax
	jl	.L70
	add	DWORD PTR -112[rbp], 1
.L66:
	mov	eax, DWORD PTR -68[rbp]
	imul	eax, eax
	cmp	DWORD PTR -112[rbp], eax
	jl	.L71
	mov	DWORD PTR -104[rbp], 0
	jmp	.L72
.L96:
	call	omp_get_thread_num@PLT
	mov	DWORD PTR -64[rbp], eax
	mov	DWORD PTR -140[rbp], 0
	mov	eax, DWORD PTR -68[rbp]
	imul	eax, eax
	mov	DWORD PTR -136[rbp], eax
	mov	DWORD PTR -100[rbp], 0
	mov	DWORD PTR -60[rbp], 0
	mov	DWORD PTR -96[rbp], 0
	mov	BYTE PTR -142[rbp], 102
	mov	BYTE PTR -141[rbp], 102
	mov	eax, DWORD PTR -68[rbp]
	imul	eax, eax
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	rcx, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	esi, DWORD PTR -104[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	edi, eax
	call	new_board
	mov	eax, DWORD PTR -68[rbp]
	imul	eax, eax
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	DWORD PTR -92[rbp], 0
	jmp	.L73
.L74:
	mov	eax, DWORD PTR -68[rbp]
	imul	eax, eax
	cdqe
	mov	edx, DWORD PTR -92[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -32[rbp]
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -92[rbp], 1
.L73:
	mov	eax, DWORD PTR -68[rbp]
	imul	eax, eax
	cmp	DWORD PTR -92[rbp], eax
	jl	.L74
	jmp	.L75
.L95:
	mov	rdx, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	remaining_moves
	test	eax, eax
	jle	.L76
	mov	DWORD PTR -100[rbp], 0
	mov	BYTE PTR -141[rbp], 102
	jmp	.L77
.L79:
	mov	eax, DWORD PTR -100[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 95
	jne	.L78
	mov	esi, DWORD PTR -140[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	lea	rdx, -136[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	edi, eax
	call	validate_stack_size
	mov	rdi, QWORD PTR -32[rbp]
	lea	rcx, -140[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	esi, DWORD PTR -100[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	r8, rdi
	mov	edi, eax
	call	backtrack
	mov	rdx, QWORD PTR -40[rbp]
	mov	ecx, DWORD PTR -100[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	place_piece
	mov	BYTE PTR -141[rbp], 116
	jmp	.L77
.L78:
	add	DWORD PTR -100[rbp], 1
.L77:
	mov	eax, DWORD PTR -68[rbp]
	imul	eax, eax
	cmp	DWORD PTR -100[rbp], eax
	jge	.L75
	cmp	BYTE PTR -141[rbp], 102
	je	.L79
	jmp	.L75
.L76:
	mov	rdx, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	validate_board
	cmp	eax, 1
	jne	.L80
	cmp	DWORD PTR -128[rbp], 0
	jne	.L81
	mov	DWORD PTR -88[rbp], 0
	jmp	.L82
.L83:
	mov	eax, DWORD PTR -88[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -128[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -56[rbp]
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -88[rbp]
	movsx	rdx, edx
	add	rdx, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -88[rbp], 1
.L82:
	mov	eax, DWORD PTR -68[rbp]
	imul	eax, eax
	cmp	DWORD PTR -88[rbp], eax
	jl	.L83
	add	DWORD PTR -128[rbp], 1
	add	DWORD PTR -124[rbp], 1
	jmp	.L80
.L81:
	mov	BYTE PTR -142[rbp], 102
	mov	DWORD PTR -84[rbp], 0
	jmp	.L84
.L89:
	cmp	BYTE PTR -142[rbp], 102
	jne	.L85
	mov	DWORD PTR -96[rbp], 0
	mov	DWORD PTR -80[rbp], 0
	jmp	.L86
.L88:
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -80[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jne	.L87
	add	DWORD PTR -96[rbp], 1
.L87:
	add	DWORD PTR -80[rbp], 1
.L86:
	mov	eax, DWORD PTR -68[rbp]
	imul	eax, eax
	cmp	DWORD PTR -80[rbp], eax
	jl	.L88
	mov	eax, DWORD PTR -68[rbp]
	imul	eax, eax
	cmp	DWORD PTR -96[rbp], eax
	jne	.L85
	mov	BYTE PTR -142[rbp], 116
.L85:
	add	DWORD PTR -84[rbp], 1
.L84:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -128[rbp]
	jl	.L89
	cmp	BYTE PTR -142[rbp], 102
	jne	.L80
	mov	eax, DWORD PTR -128[rbp]
	cmp	eax, DWORD PTR -132[rbp]
	jl	.L90
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -132[rbp]
	mov	eax, DWORD PTR -132[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	addsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -132[rbp], eax
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	eax, DWORD PTR -128[rbp]
	mov	DWORD PTR -76[rbp], eax
	jmp	.L91
.L92:
	mov	eax, DWORD PTR -68[rbp]
	imul	eax, eax
	cdqe
	mov	edx, DWORD PTR -76[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -56[rbp]
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -76[rbp], 1
.L91:
	mov	eax, DWORD PTR -76[rbp]
	cmp	eax, DWORD PTR -132[rbp]
	jl	.L92
.L90:
	mov	DWORD PTR -72[rbp], 0
	jmp	.L93
.L94:
	mov	eax, DWORD PTR -72[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -128[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -56[rbp]
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -72[rbp]
	movsx	rdx, edx
	add	rdx, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -72[rbp], 1
.L93:
	mov	eax, DWORD PTR -68[rbp]
	imul	eax, eax
	cmp	DWORD PTR -72[rbp], eax
	jl	.L94
	add	DWORD PTR -128[rbp], 1
	mov	rdx, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	validate_board
	add	DWORD PTR -124[rbp], eax
.L80:
	mov	eax, DWORD PTR -140[rbp]
	sub	eax, 1
	mov	DWORD PTR -140[rbp], eax
	mov	eax, DWORD PTR -140[rbp]
	test	eax, eax
	js	.L75
	mov	esi, DWORD PTR -140[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	edi, eax
	call	new_board
.L75:
	mov	eax, DWORD PTR -140[rbp]
	test	eax, eax
	jns	.L95
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -104[rbp], 1
.L72:
	mov	eax, DWORD PTR -68[rbp]
	imul	eax, eax
	cmp	DWORD PTR -104[rbp], eax
	jl	.L96
	mov	eax, DWORD PTR -124[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L98
	call	__stack_chk_fail@PLT
.L98:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.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	"761762.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%c \000"
	.text
	.align	2
	.global	print_board
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_board, %function
print_board:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L2
.L5:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L3
.L4:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	mul	r2, r3, r2
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L6
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L3:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L4
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L5
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC0
	.size	print_board, .-print_board
	.global	__aeabi_idiv
	.global	__aeabi_i2d
	.global	__aeabi_d2iz
	.align	2
	.global	calc_row
	.syntax unified
	.arm
	.fpu softvfp
	.type	calc_row, %function
calc_row:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	calc_row, .-calc_row
	.global	__aeabi_idivmod
	.align	2
	.global	calc_col
	.syntax unified
	.arm
	.fpu softvfp
	.type	calc_col, %function
calc_col:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	calc_col, .-calc_col
	.align	2
	.global	calc_index
	.syntax unified
	.arm
	.fpu softvfp
	.type	calc_index, %function
calc_index:
	@ 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]
	ldr	r2, [fp, #-8]
	mul	r2, r3, r2
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	calc_index, .-calc_index
	.align	2
	.global	remove_rows
	.syntax unified
	.arm
	.fpu softvfp
	.type	remove_rows, %function
remove_rows:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	calc_row
	str	r0, [fp, #-16]
	mov	r2, #0
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-24]
	bl	calc_index
	str	r0, [fp, #-12]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-24]
	bl	calc_index
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-20]
	b	.L15
.L17:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #113
	beq	.L16
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	mov	r2, #42
	strb	r2, [r3]
.L16:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L15:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L17
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	remove_rows, .-remove_rows
	.align	2
	.global	remove_cols
	.syntax unified
	.arm
	.fpu softvfp
	.type	remove_cols, %function
remove_cols:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	calc_col
	str	r0, [fp, #-16]
	ldr	r2, [fp, #-16]
	mov	r1, #0
	ldr	r0, [fp, #-24]
	bl	calc_index
	str	r0, [fp, #-12]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-24]
	bl	calc_index
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-20]
	b	.L19
.L21:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #113
	beq	.L20
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	mov	r2, #42
	strb	r2, [r3]
.L20:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-20]
.L19:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L21
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	remove_cols, .-remove_cols
	.align	2
	.global	remove_diagonals
	.syntax unified
	.arm
	.fpu softvfp
	.type	remove_diagonals, %function
remove_diagonals:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	calc_row
	str	r0, [fp, #-32]
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	calc_col
	mov	r3, r0
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-28]
	b	.L23
.L25:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	ble	.L24
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-40]
	bl	calc_index
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #113
	beq	.L24
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	mov	r2, #42
	strb	r2, [r3]
.L24:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L23:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L25
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	calc_row
	str	r0, [fp, #-32]
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	calc_col
	mov	r3, r0
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-24]
	b	.L26
.L28:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	ble	.L27
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-40]
	bl	calc_index
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #113
	beq	.L27
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	mov	r2, #42
	strb	r2, [r3]
.L27:
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
.L26:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bge	.L28
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	calc_row
	str	r0, [fp, #-32]
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	calc_col
	mov	r3, r0
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-20]
	b	.L29
.L31:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	ble	.L30
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-40]
	bl	calc_index
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #113
	beq	.L30
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	mov	r2, #42
	strb	r2, [r3]
.L30:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L29:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L31
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	calc_row
	str	r0, [fp, #-32]
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	calc_col
	mov	r3, r0
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-16]
	b	.L32
.L34:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	ble	.L33
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-40]
	bl	calc_index
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #113
	beq	.L33
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	mov	r2, #42
	strb	r2, [r3]
.L33:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
.L32:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L34
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	remove_diagonals, .-remove_diagonals
	.align	2
	.global	place_piece
	.syntax unified
	.arm
	.fpu softvfp
	.type	place_piece, %function
place_piece:
	@ 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]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #113
	strb	r2, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	remove_rows
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	remove_cols
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	remove_diagonals
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	place_piece, .-place_piece
	.align	2
	.global	remaining_moves
	.syntax unified
	.arm
	.fpu softvfp
	.type	remaining_moves, %function
remaining_moves:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L37
.L39:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #95
	bne	.L38
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L38:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L37:
	ldr	r3, [fp, #-16]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L39
	ldr	r3, [fp, #-12]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	remaining_moves, .-remaining_moves
	.align	2
	.global	new_solution
	.syntax unified
	.arm
	.fpu softvfp
	.type	new_solution, %function
new_solution:
	@ 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, #-8]
	b	.L42
.L43:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-28]
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r1, r3
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L42:
	ldr	r3, [fp, #-16]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L43
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	new_solution, .-new_solution
	.align	2
	.global	validate_board
	.syntax unified
	.arm
	.fpu softvfp
	.type	validate_board, %function
validate_board:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L45
.L47:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #113
	bne	.L46
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L46:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L45:
	ldr	r3, [fp, #-16]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L47
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bne	.L48
	mov	r3, #1
	b	.L49
.L48:
	mov	r3, #0
.L49:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	validate_board, .-validate_board
	.align	2
	.global	new_board
	.syntax unified
	.arm
	.fpu softvfp
	.type	new_board, %function
new_board:
	@ 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, #-8]
	b	.L51
.L52:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L51:
	ldr	r3, [fp, #-16]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L52
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	new_board, .-new_board
	.global	__aeabi_dadd
	.align	2
	.global	validate_stack_size
	.syntax unified
	.arm
	.fpu softvfp
	.type	validate_stack_size, %function
validate_stack_size:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	blt	.L57
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-32]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r2, r0
	ldr	r3, [fp, #-32]
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	realloc
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-16]
	b	.L55
.L56:
	ldr	r3, [fp, #-24]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	mov	r1, r3
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L55:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L56
.L57:
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	validate_stack_size, .-validate_stack_size
	.align	2
	.global	backtrack
	.syntax unified
	.arm
	.fpu softvfp
	.type	backtrack, %function
backtrack:
	@ args = 4, 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-16]
	bl	remaining_moves
	mov	r3, r0
	cmp	r3, #1
	ble	.L62
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #42
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L60
.L61:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	add	r2, r2, r3
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r1, [fp, #4]
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r1, r3
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L60:
	ldr	r3, [fp, #-16]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L61
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-28]
	str	r2, [r3]
.L62:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	backtrack, .-backtrack
	.section	.rodata
	.align	2
.LC1:
	.ascii	"clear\000"
	.align	2
.LC2:
	.ascii	"reset\000"
	.align	2
.LC3:
	.ascii	"Solutions: %d\012\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #120
	ldr	r3, .L101
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r0, .L101+4
	bl	system
	ldr	r0, .L101+8
	bl	system
	mov	r3, #10
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-108]
	mov	r3, #0
	str	r3, [fp, #-104]
	mov	r3, #0
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-40]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-96]
	b	.L64
.L65:
	ldr	r3, [fp, #-40]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	mov	r1, r3
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	str	r3, [fp, #-96]
.L64:
	ldr	r3, [fp, #-40]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	ldr	r2, [fp, #-96]
	cmp	r2, r3
	blt	.L65
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-92]
	mov	r3, #0
	str	r3, [fp, #-88]
	b	.L66
.L67:
	ldr	r3, [fp, #-40]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	mov	r1, r3
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-92]
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L66:
	ldr	r2, [fp, #-88]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L67
	mov	r3, #0
	str	r3, [fp, #-84]
	b	.L68
.L73:
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L69
.L72:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-84]
	cmp	r2, r3
	bge	.L70
	ldr	r3, [fp, #-84]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-80]
	add	r3, r2, r3
	mov	r2, #42
	strb	r2, [r3]
	b	.L71
.L70:
	ldr	r3, [fp, #-84]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-80]
	add	r3, r2, r3
	mov	r2, #95
	strb	r2, [r3]
.L71:
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L69:
	ldr	r3, [fp, #-40]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	ldr	r2, [fp, #-80]
	cmp	r2, r3
	blt	.L72
	ldr	r3, [fp, #-84]
	add	r3, r3, #1
	str	r3, [fp, #-84]
.L68:
	ldr	r3, [fp, #-40]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	ldr	r2, [fp, #-84]
	cmp	r2, r3
	blt	.L73
	mov	r3, #0
	str	r3, [fp, #-76]
	b	.L74
.L98:
	bl	omp_get_thread_num
	str	r0, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-40]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	str	r3, [fp, #-112]
	mov	r3, #0
	str	r3, [fp, #-72]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-68]
	mov	r3, #102
	strb	r3, [fp, #-118]
	mov	r3, #102
	strb	r3, [fp, #-117]
	ldr	r3, [fp, #-40]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-76]
	ldr	r0, [fp, #-40]
	bl	new_board
	ldr	r3, [fp, #-40]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L75
.L76:
	ldr	r3, [fp, #-40]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	mov	r1, r3
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L75:
	ldr	r3, [fp, #-40]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	ldr	r2, [fp, #-64]
	cmp	r2, r3
	blt	.L76
	b	.L77
.L97:
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-40]
	bl	remaining_moves
	mov	r3, r0
	cmp	r3, #0
	ble	.L78
	mov	r3, #0
	str	r3, [fp, #-72]
	mov	r3, #102
	strb	r3, [fp, #-117]
	b	.L79
.L81:
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #95
	bne	.L80
	ldr	r1, [fp, #-116]
	sub	r2, fp, #112
	ldr	r3, [fp, #-20]
	ldr	r0, [fp, #-40]
	bl	validate_stack_size
	sub	r2, fp, #116
	ldr	r3, [fp, #-20]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-72]
	ldr	r0, [fp, #-40]
	bl	backtrack
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-72]
	ldr	r0, [fp, #-40]
	bl	place_piece
	mov	r3, #116
	strb	r3, [fp, #-117]
	b	.L79
.L80:
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L79:
	ldr	r3, [fp, #-40]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	ldr	r2, [fp, #-72]
	cmp	r2, r3
	bge	.L77
	ldrb	r3, [fp, #-117]	@ zero_extendqisi2
	cmp	r3, #102
	beq	.L81
	b	.L77
.L78:
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-40]
	bl	validate_board
	mov	r3, r0
	cmp	r3, #1
	bne	.L82
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	bne	.L83
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L84
.L85:
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-24]
	add	r2, r2, r3
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-92]
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-60]
	add	r3, r1, r3
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L84:
	ldr	r3, [fp, #-40]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	ldr	r2, [fp, #-60]
	cmp	r2, r3
	blt	.L85
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
	b	.L82
.L83:
	mov	r3, #102
	strb	r3, [fp, #-118]
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L86
.L91:
	ldrb	r3, [fp, #-118]	@ zero_extendqisi2
	cmp	r3, #102
	bne	.L87
	mov	r3, #0
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L88
.L90:
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-92]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-52]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-52]
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L89
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L89:
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L88:
	ldr	r3, [fp, #-40]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	blt	.L90
	ldr	r3, [fp, #-40]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	ldr	r2, [fp, #-68]
	cmp	r2, r3
	bne	.L87
	mov	r3, #116
	strb	r3, [fp, #-118]
.L87:
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L86:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-104]
	cmp	r2, r3
	blt	.L91
	ldrb	r3, [fp, #-118]	@ zero_extendqisi2
	cmp	r3, #102
	bne	.L82
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-108]
	cmp	r2, r3
	blt	.L92
	ldr	r0, [fp, #-108]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-108]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-108]
	ldr	r3, [fp, #-108]
	lsl	r3, r3, #2
	mov	r1, r3
	ldr	r0, [fp, #-92]
	bl	realloc
	str	r0, [fp, #-92]
	ldr	r3, [fp, #-104]
	str	r3, [fp, #-48]
	b	.L93
.L94:
	ldr	r3, [fp, #-40]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	mov	r1, r3
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-92]
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L93:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-108]
	cmp	r2, r3
	blt	.L94
.L92:
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L95
.L96:
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-24]
	add	r2, r2, r3
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-92]
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-44]
	add	r3, r1, r3
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L95:
	ldr	r3, [fp, #-40]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	blt	.L96
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-40]
	bl	validate_board
	mov	r2, r0
	ldr	r3, [fp, #-100]
	add	r3, r3, r2
	str	r3, [fp, #-100]
.L82:
	ldr	r3, [fp, #-116]
	sub	r3, r3, #1
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	blt	.L77
	ldr	r1, [fp, #-116]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-24]
	ldr	r0, [fp, #-40]
	bl	new_board
.L77:
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	bge	.L97
	ldr	r0, [fp, #-20]
	bl	free
	ldr	r0, [fp, #-24]
	bl	free
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L74:
	ldr	r3, [fp, #-40]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	ldr	r2, [fp, #-76]
	cmp	r2, r3
	blt	.L98
	ldr	r1, [fp, #-100]
	ldr	r0, .L101+12
	bl	printf
	ldr	r0, [fp, #-36]
	bl	free
	ldr	r0, [fp, #-92]
	bl	free
	mov	r3, #0
	ldr	r2, .L101
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L100
	bl	__stack_chk_fail
.L100:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L102:
	.align	2
.L101:
	.word	.LC4
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
