	.file	"482318.c"
	.intel_syntax noprefix
	.text
	.globl	Initialization
	.type	Initialization, @function
Initialization:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	add	DWORD PTR -4[rbp], 1
.L2:
	cmp	DWORD PTR -4[rbp], 29
	jle	.L3
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	Initialization, .-Initialization
	.section	.rodata
.LC0:
	.string	"\n\n========================"
.LC1:
	.string	"---- SOLUTION FOUND ----"
.LC2:
	.string	"========================"
.LC3:
	.string	"---"
.LC4:
	.string	"---\n##|"
.LC5:
	.string	"%2d "
.LC6:
	.string	"\n---"
.LC7:
	.string	"%2d| "
.LC8:
	.string	"  "
.LC9:
	.string	"---\n"
	.text
	.globl	Map2
	.type	Map2, @function
Map2:
.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 -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	DWORD PTR -28[rbp], 0
	jmp	.L5
.L6:
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -28[rbp], 1
.L5:
	cmp	DWORD PTR -28[rbp], 29
	jle	.L6
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -24[rbp], 0
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -24[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -24[rbp], 1
.L7:
	cmp	DWORD PTR -24[rbp], 29
	jle	.L8
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -20[rbp], 0
	jmp	.L9
.L10:
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -20[rbp], 1
.L9:
	cmp	DWORD PTR -20[rbp], 29
	jle	.L10
	mov	edi, 10
	call	putchar@PLT
	mov	DWORD PTR -16[rbp], 0
	jmp	.L11
.L19:
	mov	eax, DWORD PTR -16[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -12[rbp], 0
	jmp	.L12
.L18:
	mov	BYTE PTR -29[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L13
.L15:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jne	.L14
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -16[rbp], eax
	jne	.L14
	mov	BYTE PTR -29[rbp], 1
.L14:
	add	DWORD PTR -8[rbp], 1
.L13:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L15
	cmp	BYTE PTR -29[rbp], 0
	je	.L16
	mov	edi, 81
	call	putchar@PLT
	jmp	.L17
.L16:
	mov	edi, 126
	call	putchar@PLT
.L17:
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -12[rbp], 1
.L12:
	cmp	DWORD PTR -12[rbp], 29
	jle	.L18
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -16[rbp], 1
.L11:
	cmp	DWORD PTR -16[rbp], 29
	jle	.L19
	mov	DWORD PTR -4[rbp], 0
	jmp	.L20
.L21:
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L20:
	cmp	DWORD PTR -4[rbp], 29
	jle	.L21
	lea	rdi, .LC9[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	Map2, .-Map2
	.globl	isSafeFromPrevious
	.type	isSafeFromPrevious, @function
isSafeFromPrevious:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -4[rbp], eax
	mov	DWORD PTR -8[rbp], 0
	jmp	.L23
.L29:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	je	.L24
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -32[rbp], eax
	jne	.L25
.L24:
	mov	eax, 0
	jmp	.L26
.L25:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, DWORD PTR -8[rbp]
	add	eax, edx
	cmp	DWORD PTR -32[rbp], eax
	je	.L27
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, DWORD PTR -8[rbp]
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	cmp	DWORD PTR -32[rbp], eax
	jne	.L28
.L27:
	mov	eax, 0
	jmp	.L26
.L28:
	add	DWORD PTR -8[rbp], 1
.L23:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jl	.L29
	mov	eax, 1
.L26:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	isSafeFromPrevious, .-isSafeFromPrevious
	.globl	SolveColumn
	.type	SolveColumn, @function
SolveColumn:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -8[rbp], eax
	jmp	.L31
.L34:
	mov	edx, DWORD PTR -8[rbp]
	mov	ecx, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	isSafeFromPrevious
	test	al, al
	je	.L32
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, 1
	jmp	.L33
.L32:
	add	DWORD PTR -8[rbp], 1
.L31:
	cmp	DWORD PTR -8[rbp], 29
	jle	.L34
	mov	eax, 0
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	SolveColumn, .-SolveColumn
	.section	.rodata
	.align 8
.LC10:
	.string	"\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
	.align 8
.LC11:
	.string	"This program implements my backtracking method of solving the \"N-Queens Problem\"."
	.align 8
.LC12:
	.string	"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
	.align 8
.LC13:
	.string	"Now solving the problem. Please wait..."
.LC14:
	.string	"\rStep: %3d, Queen: %2d"
.LC15:
	.string	"Couldn't find a solution"
.LC16:
	.string	"WRONG SOLUTION!!"
	.align 8
.LC17:
	.string	"The solution was validated and is accepted."
	.text
	.globl	main
	.type	main, @function
main:
.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, 288
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -264[rbp]
	mov	edi, eax
	call	srand@PLT
	lea	rdx, -256[rbp]
	mov	eax, 0
	mov	ecx, 15
	mov	rdi, rdx
	rep stosq
	lea	rdx, -128[rbp]
	mov	eax, 0
	mov	ecx, 15
	mov	rdi, rdx
	rep stosq
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	DWORD PTR -276[rbp], 1
	mov	DWORD PTR -272[rbp], 0
	jmp	.L36
.L41:
	add	DWORD PTR -272[rbp], 1
	mov	edx, DWORD PTR -272[rbp]
	movsx	rax, edx
	imul	rax, rax, 1759218605
	shr	rax, 32
	sar	eax, 12
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 10000
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	jne	.L37
	mov	edx, DWORD PTR -276[rbp]
	mov	eax, DWORD PTR -272[rbp]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
.L37:
	mov	eax, DWORD PTR -276[rbp]
	cdqe
	mov	edx, DWORD PTR -128[rbp+rax*4]
	mov	ecx, DWORD PTR -276[rbp]
	lea	rax, -256[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	SolveColumn
	xor	eax, 1
	test	al, al
	je	.L38
	mov	eax, DWORD PTR -276[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -276[rbp], edx
	cdqe
	mov	DWORD PTR -128[rbp+rax*4], 0
	mov	eax, DWORD PTR -276[rbp]
	cdqe
	mov	eax, DWORD PTR -256[rbp+rax*4]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -276[rbp]
	cdqe
	mov	DWORD PTR -128[rbp+rax*4], edx
	mov	eax, DWORD PTR -276[rbp]
	cdqe
	mov	eax, DWORD PTR -128[rbp+rax*4]
	cmp	eax, 30
	jne	.L39
	sub	DWORD PTR -276[rbp], 1
.L39:
	cmp	DWORD PTR -276[rbp], 0
	js	.L40
	cmp	DWORD PTR -276[rbp], 0
	jne	.L36
	mov	eax, DWORD PTR -128[rbp]
	cmp	eax, 30
	jne	.L36
.L40:
	lea	rdi, .LC15[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L38:
	add	DWORD PTR -276[rbp], 1
.L36:
	cmp	DWORD PTR -276[rbp], 29
	jle	.L41
	mov	edx, DWORD PTR -276[rbp]
	mov	eax, DWORD PTR -272[rbp]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -256[rbp]
	mov	esi, 30
	mov	rdi, rax
	call	Map2
	mov	BYTE PTR -277[rbp], 1
	mov	DWORD PTR -268[rbp], 0
	jmp	.L42
.L44:
	mov	eax, DWORD PTR -268[rbp]
	cdqe
	mov	edx, DWORD PTR -256[rbp+rax*4]
	mov	ecx, DWORD PTR -268[rbp]
	lea	rax, -256[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	isSafeFromPrevious
	xor	eax, 1
	test	al, al
	je	.L43
	lea	rdi, .LC16[rip]
	call	puts@PLT
	mov	BYTE PTR -277[rbp], 0
.L43:
	add	DWORD PTR -268[rbp], 1
.L42:
	cmp	DWORD PTR -268[rbp], 28
	jle	.L44
	cmp	BYTE PTR -277[rbp], 0
	je	.L45
	lea	rdi, .LC17[rip]
	call	puts@PLT
.L45:
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L47
	call	__stack_chk_fail@PLT
.L47:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	"482318.c"
	.text
	.align	2
	.global	Initialization
	.syntax unified
	.arm
	.fpu softvfp
	.type	Initialization, %function
Initialization:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #29
	ble	.L3
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	Initialization, .-Initialization
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012\012========================\000"
	.align	2
.LC1:
	.ascii	"---- SOLUTION FOUND ----\000"
	.align	2
.LC2:
	.ascii	"========================\000"
	.align	2
.LC3:
	.ascii	"---\000"
	.align	2
.LC4:
	.ascii	"---\012##|\000"
	.align	2
.LC5:
	.ascii	"%2d \000"
	.align	2
.LC6:
	.ascii	"\012---\000"
	.align	2
.LC7:
	.ascii	"%2d| \000"
	.align	2
.LC8:
	.ascii	"  \000"
	.align	2
.LC9:
	.ascii	"---\012\000"
	.text
	.align	2
	.global	Map2
	.syntax unified
	.arm
	.fpu softvfp
	.type	Map2, %function
Map2:
	@ 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	r0, .L22
	bl	puts
	ldr	r0, .L22+4
	bl	puts
	ldr	r0, .L22+8
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L5
.L6:
	ldr	r0, .L22+12
	bl	printf
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L5:
	ldr	r3, [fp, #-32]
	cmp	r3, #29
	ble	.L6
	ldr	r0, .L22+16
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L7
.L8:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L22+20
	bl	printf
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L7:
	ldr	r3, [fp, #-28]
	cmp	r3, #29
	ble	.L8
	ldr	r0, .L22+24
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L9
.L10:
	ldr	r0, .L22+12
	bl	printf
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L9:
	ldr	r3, [fp, #-24]
	cmp	r3, #29
	ble	.L10
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L11
.L19:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L22+28
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L12
.L18:
	mov	r3, #0
	strb	r3, [fp, #-33]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L13
.L15:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bne	.L14
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bne	.L14
	mov	r3, #1
	strb	r3, [fp, #-33]
.L14:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L13:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	blt	.L15
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L16
	mov	r0, #81
	bl	putchar
	b	.L17
.L16:
	mov	r0, #126
	bl	putchar
.L17:
	ldr	r0, .L22+32
	bl	printf
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L12:
	ldr	r3, [fp, #-16]
	cmp	r3, #29
	ble	.L18
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L11:
	ldr	r3, [fp, #-20]
	cmp	r3, #29
	ble	.L19
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L20
.L21:
	ldr	r0, .L22+12
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L20:
	ldr	r3, [fp, #-8]
	cmp	r3, #29
	ble	.L21
	ldr	r0, .L22+36
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	Map2, .-Map2
	.align	2
	.global	isSafeFromPrevious
	.syntax unified
	.arm
	.fpu softvfp
	.type	isSafeFromPrevious, %function
isSafeFromPrevious:
	@ 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]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L25
.L31:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	beq	.L26
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bne	.L27
.L26:
	mov	r3, #0
	b	.L28
.L27:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r1, [fp, #-8]
	ldr	r3, [fp, #-12]
	sub	r3, r1, r3
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	beq	.L29
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r1, [fp, #-8]
	ldr	r3, [fp, #-12]
	sub	r3, r1, r3
	sub	r3, r2, r3
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bne	.L30
.L29:
	mov	r3, #0
	b	.L28
.L30:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L25:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L31
	mov	r3, #1
.L28:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	isSafeFromPrevious, .-isSafeFromPrevious
	.align	2
	.global	SolveColumn
	.syntax unified
	.arm
	.fpu softvfp
	.type	SolveColumn, %function
SolveColumn:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-12]
	b	.L33
.L36:
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	isSafeFromPrevious
	mov	r3, r0
	cmp	r3, #0
	beq	.L34
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	mov	r3, #1
	b	.L35
.L34:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L33:
	ldr	r3, [fp, #-12]
	cmp	r3, #29
	ble	.L36
	mov	r3, #0
.L35:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	SolveColumn, .-SolveColumn
	.section	.rodata
	.align	2
.LC10:
	.ascii	"\012~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
	.ascii	"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\000"
	.align	2
.LC11:
	.ascii	"This program implements my backtracking method of s"
	.ascii	"olving the \"N-Queens Problem\".\000"
	.align	2
.LC12:
	.ascii	"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
	.ascii	"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\012\000"
	.align	2
.LC13:
	.ascii	"Now solving the problem. Please wait...\000"
	.align	2
.LC14:
	.ascii	"\015Step: %3d, Queen: %2d\000"
	.align	2
.LC15:
	.ascii	"Couldn't find a solution\000"
	.align	2
.LC16:
	.ascii	"WRONG SOLUTION!!\000"
	.align	2
.LC17:
	.ascii	"The solution was validated and is accepted.\000"
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 264
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #264
	ldr	r3, .L50
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L50+4
	bl	puts
	ldr	r0, .L50+8
	bl	puts
	ldr	r0, .L50+12
	bl	puts
	ldr	r3, [fp, #-252]
	mov	r0, r3
	bl	srand
	sub	r3, fp, #248
	mov	r2, #120
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #128
	mov	r2, #120
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, .L50+16
	bl	puts
	mov	r3, #1
	str	r3, [fp, #-264]
	mov	r3, #0
	str	r3, [fp, #-260]
	b	.L38
.L43:
	ldr	r3, [fp, #-260]
	add	r3, r3, #1
	str	r3, [fp, #-260]
	ldr	r1, [fp, #-260]
	ldr	r3, .L50+20
	smull	r2, r3, r1, r3
	asr	r2, r3, #12
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L39
	ldr	r2, [fp, #-264]
	ldr	r1, [fp, #-260]
	ldr	r0, .L50+24
	bl	printf
.L39:
	ldr	r3, [fp, #-264]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-124]
	sub	r3, fp, #248
	ldr	r1, [fp, #-264]
	mov	r0, r3
	bl	SolveColumn
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L40
	ldr	r3, [fp, #-264]
	sub	r2, r3, #1
	str	r2, [fp, #-264]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-124]
	ldr	r3, [fp, #-264]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-244]
	add	r2, r3, #1
	ldr	r3, [fp, #-264]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-124]
	ldr	r3, [fp, #-264]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-124]
	cmp	r3, #30
	bne	.L41
	ldr	r3, [fp, #-264]
	sub	r3, r3, #1
	str	r3, [fp, #-264]
.L41:
	ldr	r3, [fp, #-264]
	cmp	r3, #0
	blt	.L42
	ldr	r3, [fp, #-264]
	cmp	r3, #0
	bne	.L38
	ldr	r3, [fp, #-128]
	cmp	r3, #30
	bne	.L38
.L42:
	ldr	r0, .L50+28
	bl	puts
	mov	r0, #0
	bl	exit
.L40:
	ldr	r3, [fp, #-264]
	add	r3, r3, #1
	str	r3, [fp, #-264]
.L38:
	ldr	r3, [fp, #-264]
	cmp	r3, #29
	ble	.L43
	ldr	r2, [fp, #-264]
	ldr	r1, [fp, #-260]
	ldr	r0, .L50+24
	bl	printf
	sub	r3, fp, #248
	mov	r1, #30
	mov	r0, r3
	bl	Map2
	mov	r3, #1
	strb	r3, [fp, #-265]
	mov	r3, #0
	str	r3, [fp, #-256]
	b	.L44
.L46:
	ldr	r3, [fp, #-256]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-244]
	sub	r3, fp, #248
	ldr	r1, [fp, #-256]
	mov	r0, r3
	bl	isSafeFromPrevious
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L45
	ldr	r0, .L50+32
	bl	puts
	mov	r3, #0
	strb	r3, [fp, #-265]
.L45:
	ldr	r3, [fp, #-256]
	add	r3, r3, #1
	str	r3, [fp, #-256]
.L44:
	ldr	r3, [fp, #-256]
	cmp	r3, #28
	ble	.L46
	ldrb	r3, [fp, #-265]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L47
	ldr	r0, .L50+36
	bl	puts
.L47:
	mov	r3, #0
	ldr	r2, .L50
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L49
	bl	__stack_chk_fail
.L49:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L51:
	.align	2
.L50:
	.word	.LC18
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	1759218605
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
