	.file	"310266.c"
	.intel_syntax noprefix
	.text
	.globl	sol_cnt
	.bss
	.align 4
	.type	sol_cnt, @object
	.size	sol_cnt, 4
sol_cnt:
	.zero	4
	.text
	.globl	G
	.type	G, @function
G:
.LFB6:
	.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
	cmp	DWORD PTR -4[rbp], 0
	jle	.L2
	mov	eax, DWORD PTR -8[rbp]
	jmp	.L4
.L2:
	mov	eax, 0
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	G, .-G
	.globl	nqueens
	.type	nqueens, @function
nqueens:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	cmp	DWORD PTR -36[rbp], 4
	jne	.L6
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 4
	mov	rdi, rax
	call	colsSafe
	test	eax, eax
	je	.L7
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 4
	mov	rdi, rax
	call	diagsSafe
	test	eax, eax
	je	.L7
	mov	eax, 1
	jmp	.L8
.L7:
	mov	eax, 0
.L8:
	mov	DWORD PTR -4[rbp], eax
	mov	edx, DWORD PTR sol_cnt[rip]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	mov	DWORD PTR sol_cnt[rip], eax
	mov	edx, DWORD PTR sol_cnt[rip]
	mov	ecx, DWORD PTR -4[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r8d, ecx
	mov	ecx, edx
	mov	edx, 4
	mov	rdi, rax
	call	encodeSol
	jmp	.L5
.L6:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -36[rbp]
	lea	edx, 1[rax]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	nqueens
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	cmp	DWORD PTR -8[rbp], 3
	setne	al
	movzx	eax, al
	imul	eax, edx
	cdqe
	sal	rax, 2
	add	rax, rcx
	mov	DWORD PTR [rax], 1
	add	DWORD PTR -8[rbp], 1
.L10:
	cmp	DWORD PTR -8[rbp], 3
	jle	.L11
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	nqueens, .-nqueens
	.globl	colsSafe
	.type	colsSafe, @function
colsSafe:
.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	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -16[rbp], 1
	mov	DWORD PTR -12[rbp], 0
	jmp	.L13
.L16:
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L14
.L15:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	add	DWORD PTR -8[rbp], eax
	add	DWORD PTR -4[rbp], 1
.L14:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L15
	mov	eax, DWORD PTR -16[rbp]
	imul	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -16[rbp], eax
	add	DWORD PTR -12[rbp], 1
.L13:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L16
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, 1
	mov	edi, eax
	call	G
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	colsSafe, .-colsSafe
	.globl	diagsSafe
	.type	diagsSafe, @function
diagsSafe:
.LFB9:
	.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, 48
	.cfi_offset 3, -24
	mov	QWORD PTR -48[rbp], rdi
	mov	DWORD PTR -52[rbp], esi
	mov	DWORD PTR -40[rbp], 0
	mov	DWORD PTR -36[rbp], 0
	mov	DWORD PTR -32[rbp], 0
	jmp	.L19
.L23:
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	jmp	.L20
.L22:
	mov	eax, DWORD PTR -32[rbp]
	sub	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -52[rbp]
	sub	eax, 1
	sub	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jge	.L21
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jge	.L21
	mov	eax, DWORD PTR -16[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 -12[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	add	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -16[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 -20[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	add	DWORD PTR -28[rbp], eax
.L21:
	add	DWORD PTR -20[rbp], 1
.L20:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jle	.L22
	mov	eax, DWORD PTR -24[rbp]
	sub	eax, 1
	mov	esi, 1
	mov	edi, eax
	call	G
	add	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	mov	esi, 1
	mov	edi, eax
	call	G
	add	DWORD PTR -40[rbp], eax
	add	DWORD PTR -32[rbp], 1
.L19:
	mov	eax, DWORD PTR -52[rbp]
	add	eax, eax
	cmp	DWORD PTR -32[rbp], eax
	jl	.L23
	mov	eax, 1
	sub	eax, DWORD PTR -40[rbp]
	mov	esi, 1
	mov	edi, eax
	call	G
	mov	ebx, eax
	mov	eax, 1
	sub	eax, DWORD PTR -36[rbp]
	mov	esi, 1
	mov	edi, eax
	call	G
	imul	eax, ebx
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	diagsSafe, .-diagsSafe
	.globl	encodeSol
	.type	encodeSol, @function
encodeSol:
.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	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	DWORD PTR -40[rbp], ecx
	mov	DWORD PTR -44[rbp], r8d
	mov	DWORD PTR -8[rbp], 0
	jmp	.L26
.L29:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L27
.L28:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rsi, QWORD PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	movsx	rdx, eax
	mov	eax, DWORD PTR -40[rbp]
	mov	ecx, eax
	sal	rdx, cl
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	imul	rdx, rax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	add	rax, rcx
	add	rdx, rsi
	mov	QWORD PTR [rax], rdx
	add	DWORD PTR -4[rbp], 1
.L27:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L28
	add	DWORD PTR -8[rbp], 1
.L26:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L29
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	encodeSol, .-encodeSol
	.section	.rodata
.LC0:
	.string	"Q "
.LC1:
	.string	"_ "
	.text
	.globl	decodeSols
	.type	decodeSols, @function
decodeSols:
.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	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -12[rbp], 1
	jmp	.L31
.L38:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L32
.L37:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L33
.L36:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	mov	ecx, eax
	shr	rdx, cl
	mov	rax, rdx
	and	eax, 1
	test	rax, rax
	je	.L34
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L35
.L34:
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L35:
	add	DWORD PTR -4[rbp], 1
.L33:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L36
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -8[rbp], 1
.L32:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L37
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -12[rbp], 1
.L31:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jle	.L38
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	decodeSols, .-decodeSols
	.section	.rodata
.LC2:
	.string	"%lu "
.LC3:
	.string	"%d-Queens have %d solutions\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.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, 40
	.cfi_offset 3, -24
	mov	edi, 32
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	edi, 32
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	DWORD PTR -48[rbp], 0
	jmp	.L40
.L43:
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	lea	rbx, [rdx+rax]
	mov	esi, 4
	mov	edi, 4
	call	calloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	lea	rbx, [rdx+rax]
	mov	esi, 8
	mov	edi, 4
	call	calloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	DWORD PTR -44[rbp], 0
	jmp	.L41
.L42:
	cmp	DWORD PTR -44[rbp], 0
	sete	cl
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	movzx	eax, cl
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -44[rbp], 1
.L41:
	cmp	DWORD PTR -44[rbp], 3
	jle	.L42
	add	DWORD PTR -48[rbp], 1
.L40:
	cmp	DWORD PTR -48[rbp], 3
	jle	.L43
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	nqueens
	mov	edx, DWORD PTR sol_cnt[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 4
	mov	rdi, rax
	call	decodeSols
	jmp	.L44
.L47:
	mov	DWORD PTR -36[rbp], 0
	jmp	.L45
.L46:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -36[rbp], 1
.L45:
	cmp	DWORD PTR -36[rbp], 3
	jle	.L46
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -40[rbp], 1
.L44:
	cmp	DWORD PTR -40[rbp], 3
	jle	.L47
	mov	eax, DWORD PTR sol_cnt[rip]
	mov	edx, eax
	mov	esi, 4
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.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	"310266.c"
	.text
	.global	sol_cnt
	.bss
	.align	2
	.type	sol_cnt, %object
	.size	sol_cnt, 4
sol_cnt:
	.space	4
	.text
	.align	2
	.global	G
	.syntax unified
	.arm
	.fpu softvfp
	.type	G, %function
G:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L2
	ldr	r3, [fp, #-12]
	b	.L4
.L2:
	mov	r3, #0
.L4:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	G, .-G
	.align	2
	.global	nqueens
	.syntax unified
	.arm
	.fpu softvfp
	.type	nqueens, %function
nqueens:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #4
	bne	.L6
	mov	r1, #4
	ldr	r0, [fp, #-20]
	bl	colsSafe
	mov	r3, r0
	cmp	r3, #0
	beq	.L7
	mov	r1, #4
	ldr	r0, [fp, #-20]
	bl	diagsSafe
	mov	r3, r0
	cmp	r3, #0
	beq	.L7
	mov	r3, #1
	b	.L8
.L7:
	mov	r3, #0
.L8:
	str	r3, [fp, #-8]
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, .L12
	str	r3, [r2]
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	str	r3, [sp]
	mov	r3, r2
	mov	r2, #4
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	encodeSol
	b	.L5
.L6:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L10
.L11:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	nqueens
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	ldr	r1, [fp, #-12]
	cmp	r1, #3
	movne	r1, #1
	moveq	r1, #0
	and	r1, r1, #255
	mul	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L10:
	ldr	r3, [fp, #-12]
	cmp	r3, #3
	ble	.L11
.L5:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	sol_cnt
	.size	nqueens, .-nqueens
	.align	2
	.global	colsSafe
	.syntax unified
	.arm
	.fpu softvfp
	.type	colsSafe, %function
colsSafe:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #1
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L15
.L18:
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L16
.L17:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L16:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L17
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-12]
	mul	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L15:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L18
	mov	r1, #1
	ldr	r0, [fp, #-20]
	bl	G
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	colsSafe, .-colsSafe
	.align	2
	.global	diagsSafe
	.syntax unified
	.arm
	.fpu softvfp
	.type	diagsSafe, %function
diagsSafe:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L21
.L25:
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L22
.L24:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-52]
	sub	r2, r3, #1
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	bge	.L23
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	bge	.L23
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	str	r3, [fp, #-32]
.L23:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L22:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	ble	.L24
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	mov	r1, #1
	mov	r0, r3
	bl	G
	mov	r2, r0
	ldr	r3, [fp, #-40]
	add	r3, r3, r2
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	mov	r1, #1
	mov	r0, r3
	bl	G
	mov	r2, r0
	ldr	r3, [fp, #-44]
	add	r3, r3, r2
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L21:
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	blt	.L25
	ldr	r3, [fp, #-44]
	rsb	r3, r3, #1
	mov	r1, #1
	mov	r0, r3
	bl	G
	mov	r4, r0
	ldr	r3, [fp, #-40]
	rsb	r3, r3, #1
	mov	r1, #1
	mov	r0, r3
	bl	G
	mov	r3, r0
	mul	r3, r4, r3
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	diagsSafe, .-diagsSafe
	.align	2
	.global	encodeSol
	.syntax unified
	.arm
	.fpu softvfp
	.type	encodeSol, %function
encodeSol:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, r5, r6, r7, r8, r9, fp}
	add	fp, sp, #24
	sub	sp, sp, #28
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L28
.L31:
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L29
.L30:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r6-r7}
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	asr	r3, r2, #31
	ldr	r1, [fp, #-52]
	sub	ip, r1, #32
	rsb	r0, r1, #32
	lsl	r5, r3, r1
	orr	r5, r5, r2, lsl ip
	orr	r5, r5, r2, lsr r0
	lsl	r4, r2, r1
	ldr	r3, [fp, #4]
	mov	r0, r3
	asr	r1, r0, #31
	mul	r2, r0, r5
	mul	r3, r4, r1
	add	ip, r2, r3
	umull	r2, r3, r4, r0
	add	r1, ip, r3
	mov	r3, r1
	ldr	r1, [fp, #-36]
	lsl	r1, r1, #2
	ldr	r0, [fp, #-40]
	add	r1, r0, r1
	ldr	r0, [r1]
	ldr	r1, [fp, #-32]
	lsl	r1, r1, #3
	add	r1, r0, r1
	adds	r8, r6, r2
	adc	r9, r7, r3
	stm	r1, {r8-r9}
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L29:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	blt	.L30
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L28:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	blt	.L31
	nop
	nop
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp}
	bx	lr
	.size	encodeSol, .-encodeSol
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Q \000"
	.align	2
.LC1:
	.ascii	"_ \000"
	.text
	.align	2
	.global	decodeSols
	.syntax unified
	.arm
	.fpu softvfp
	.type	decodeSols, %function
decodeSols:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #32
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	mov	r3, #1
	str	r3, [fp, #-32]
	b	.L33
.L40:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L34
.L39:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L35
.L38:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-32]
	rsb	ip, r1, #32
	sub	r0, r1, #32
	lsr	r4, r2, r1
	orr	r4, r4, r3, lsl ip
	orr	r4, r4, r3, lsr r0
	lsr	r5, r3, r1
	mov	r2, #1
	mov	r3, #0
	and	r6, r4, r2
	and	r7, r5, r3
	orrs	r3, r6, r7
	beq	.L36
	ldr	r0, .L41
	bl	printf
	b	.L37
.L36:
	ldr	r0, .L41+4
	bl	printf
.L37:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L35:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	blt	.L38
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L34:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	blt	.L39
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L33:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	ble	.L40
	nop
	nop
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L42:
	.align	2
.L41:
	.word	.LC0
	.word	.LC1
	.size	decodeSols, .-decodeSols
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%llu \000"
	.align	2
.LC3:
	.ascii	"%d-Queens have %d solutions\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	mov	r0, #16
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	mov	r0, #16
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L44
.L47:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r4, r2, r3
	mov	r1, #4
	mov	r0, #4
	bl	calloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r4, r2, r3
	mov	r1, #8
	mov	r0, #4
	bl	calloc
	mov	r3, r0
	str	r3, [r4]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L45
.L46:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r1, r3, #255
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, r1
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L45:
	ldr	r3, [fp, #-32]
	cmp	r3, #3
	ble	.L46
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L44:
	ldr	r3, [fp, #-36]
	cmp	r3, #3
	ble	.L47
	mov	r2, #0
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	nqueens
	ldr	r3, .L53
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, #4
	ldr	r0, [fp, #-16]
	bl	decodeSols
	b	.L48
.L51:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L49
.L50:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	r0, .L53+4
	bl	printf
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L49:
	ldr	r3, [fp, #-24]
	cmp	r3, #3
	ble	.L50
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L48:
	ldr	r3, [fp, #-28]
	cmp	r3, #3
	ble	.L51
	ldr	r3, .L53
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, #4
	ldr	r0, .L53+8
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L54:
	.align	2
.L53:
	.word	sol_cnt
	.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
