	.file	"854608.c"
	.intel_syntax noprefix
	.text
	.globl	x
	.bss
	.align 32
	.type	x, @object
	.size	x, 40
x:
	.zero	40
	.globl	count
	.align 4
	.type	count, @object
	.size	count, 4
count:
	.zero	4
	.section	.rodata
.LC0:
	.string	"Enter the number of queens: "
.LC1:
	.string	"%d"
	.align 8
.LC2:
	.string	"\nNo possible solutions for the number of queens!"
	.align 8
.LC3:
	.string	"\nNumber of possible solutions for %d queens is: %d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	mov	edi, 1
	call	nQueens
	mov	eax, DWORD PTR count[rip]
	test	eax, eax
	jne	.L2
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L3
.L2:
	mov	edx, DWORD PTR count[rip]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L3:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	nQueens
	.type	nQueens, @function
nQueens:
.LFB1:
	.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	DWORD PTR -4[rbp], 1
	jmp	.L7
.L10:
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, edx
	mov	edi, eax
	call	place
	test	eax, eax
	je	.L8
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, x[rip]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jne	.L9
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	display
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, eax
	mov	edi, edx
	call	nQueens
.L8:
	add	DWORD PTR -4[rbp], 1
.L7:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jle	.L10
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	nQueens, .-nQueens
	.globl	place
	.type	place, @function
place:
.LFB2:
	.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	DWORD PTR -4[rbp], 1
	jmp	.L12
.L16:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, x[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -24[rbp], eax
	je	.L13
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, x[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, ecx
	mov	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, DWORD PTR -24[rbp]
	cmp	edx, eax
	je	.L13
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, x[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	add	edx, eax
	mov	ecx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -24[rbp]
	add	eax, ecx
	cmp	edx, eax
	jne	.L14
.L13:
	mov	eax, 0
	jmp	.L15
.L14:
	add	DWORD PTR -4[rbp], 1
.L12:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L16
	mov	eax, 1
.L15:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	place, .-place
	.section	.rodata
.LC4:
	.string	"\nSolution #%d:\n"
.LC5:
	.string	"%c\t"
	.text
	.globl	display
	.type	display, @function
display:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 144
	mov	DWORD PTR -132[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -120[rbp], 1
	jmp	.L18
.L21:
	mov	DWORD PTR -116[rbp], 1
	jmp	.L19
.L20:
	mov	eax, DWORD PTR -116[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -120[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rbp
	add	rax, rcx
	sub	rax, 112
	mov	BYTE PTR [rax], 45
	add	DWORD PTR -116[rbp], 1
.L19:
	mov	eax, DWORD PTR -116[rbp]
	cmp	eax, DWORD PTR -132[rbp]
	jle	.L20
	add	DWORD PTR -120[rbp], 1
.L18:
	mov	eax, DWORD PTR -120[rbp]
	cmp	eax, DWORD PTR -132[rbp]
	jle	.L21
	mov	DWORD PTR -120[rbp], 1
	jmp	.L22
.L23:
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, x[rip]
	mov	eax, DWORD PTR [rdx+rax]
	movsx	rcx, eax
	mov	eax, DWORD PTR -120[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rbp
	add	rax, rcx
	sub	rax, 112
	mov	BYTE PTR [rax], 81
	add	DWORD PTR -120[rbp], 1
.L22:
	mov	eax, DWORD PTR -120[rbp]
	cmp	eax, DWORD PTR -132[rbp]
	jle	.L23
	mov	eax, DWORD PTR count[rip]
	add	eax, 1
	mov	DWORD PTR count[rip], eax
	mov	eax, DWORD PTR count[rip]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -120[rbp], 1
	jmp	.L24
.L27:
	mov	DWORD PTR -116[rbp], 1
	jmp	.L25
.L26:
	mov	eax, DWORD PTR -116[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -120[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rbp
	add	rax, rcx
	sub	rax, 112
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -116[rbp], 1
.L25:
	mov	eax, DWORD PTR -116[rbp]
	cmp	eax, DWORD PTR -132[rbp]
	jle	.L26
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -120[rbp], 1
.L24:
	mov	eax, DWORD PTR -120[rbp]
	cmp	eax, DWORD PTR -132[rbp]
	jle	.L27
	nop
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	display, .-display
	.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	"854608.c"
	.text
	.comm	x,40,4
	.comm	count,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter the number of queens: \000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"\012No possible solutions for the number of queens!"
	.ascii	"\000"
	.align	2
.LC3:
	.ascii	"\012Number of possible solutions for %d queens is: "
	.ascii	"%d\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 = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L6+4
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L6+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	mov	r1, r3
	mov	r0, #1
	bl	nQueens
	ldr	r3, .L6+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L6+16
	bl	printf
	b	.L3
.L2:
	ldr	r3, [fp, #-12]
	ldr	r2, .L6+12
	ldr	r2, [r2]
	mov	r1, r3
	ldr	r0, .L6+20
	bl	printf
.L3:
	mov	r3, #0
	ldr	r2, .L6
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	count
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.align	2
	.global	nQueens
	.syntax unified
	.arm
	.fpu softvfp
	.type	nQueens, %function
nQueens:
	@ 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, #1
	str	r3, [fp, #-8]
	b	.L9
.L12:
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	place
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	ldr	r1, .L13
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bne	.L11
	ldr	r0, [fp, #-20]
	bl	display
	b	.L10
.L11:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	nQueens
.L10:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L9:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	ble	.L12
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	x
	.size	nQueens, .-nQueens
	.align	2
	.global	place
	.syntax unified
	.arm
	.fpu softvfp
	.type	place, %function
place:
	@ 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, #1
	str	r3, [fp, #-8]
	b	.L16
.L20:
	ldr	r2, .L21
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	beq	.L17
	ldr	r2, .L21
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-8]
	sub	r2, r2, r3
	ldr	r1, [fp, #-16]
	ldr	r3, [fp, #-20]
	sub	r3, r1, r3
	cmp	r2, r3
	beq	.L17
	ldr	r2, .L21
	ldr	r3, [fp, #-8]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-8]
	add	r2, r2, r3
	ldr	r1, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r1, r3
	cmp	r2, r3
	bne	.L18
.L17:
	mov	r3, #0
	b	.L19
.L18:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L16:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L20
	mov	r3, #1
.L19:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L22:
	.align	2
.L21:
	.word	x
	.size	place, .-place
	.section	.rodata
	.align	2
.LC5:
	.ascii	"\012Solution #%d:\012\000"
	.align	2
.LC6:
	.ascii	"%c\011\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	display
	.syntax unified
	.arm
	.fpu softvfp
	.type	display, %function
display:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	str	r0, [fp, #-120]
	ldr	r3, .L35
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-116]
	b	.L24
.L27:
	mov	r3, #1
	str	r3, [fp, #-112]
	b	.L25
.L26:
	ldr	r2, [fp, #-116]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-112]
	add	r3, r2, r3
	sub	r3, r3, #104
	mov	r2, #45
	strb	r2, [r3]
	ldr	r3, [fp, #-112]
	add	r3, r3, #1
	str	r3, [fp, #-112]
.L25:
	ldr	r2, [fp, #-112]
	ldr	r3, [fp, #-120]
	cmp	r2, r3
	ble	.L26
	ldr	r3, [fp, #-116]
	add	r3, r3, #1
	str	r3, [fp, #-116]
.L24:
	ldr	r2, [fp, #-116]
	ldr	r3, [fp, #-120]
	cmp	r2, r3
	ble	.L27
	mov	r3, #1
	str	r3, [fp, #-116]
	b	.L28
.L29:
	ldr	r2, .L35+4
	ldr	r3, [fp, #-116]
	ldr	r1, [r2, r3, lsl #2]
	ldr	r2, [fp, #-116]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	add	r3, r3, r1
	sub	r3, r3, #104
	mov	r2, #81
	strb	r2, [r3]
	ldr	r3, [fp, #-116]
	add	r3, r3, #1
	str	r3, [fp, #-116]
.L28:
	ldr	r2, [fp, #-116]
	ldr	r3, [fp, #-120]
	cmp	r2, r3
	ble	.L29
	ldr	r3, .L35+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L35+8
	str	r3, [r2]
	ldr	r3, .L35+8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L35+12
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-116]
	b	.L30
.L33:
	mov	r3, #1
	str	r3, [fp, #-112]
	b	.L31
.L32:
	ldr	r2, [fp, #-116]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-112]
	add	r3, r2, r3
	sub	r3, r3, #104
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L35+16
	bl	printf
	ldr	r3, [fp, #-112]
	add	r3, r3, #1
	str	r3, [fp, #-112]
.L31:
	ldr	r2, [fp, #-112]
	ldr	r3, [fp, #-120]
	cmp	r2, r3
	ble	.L32
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-116]
	add	r3, r3, #1
	str	r3, [fp, #-116]
.L30:
	ldr	r2, [fp, #-116]
	ldr	r3, [fp, #-120]
	cmp	r2, r3
	ble	.L33
	nop
	ldr	r2, .L35
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L34
	bl	__stack_chk_fail
.L34:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	.LC7
	.word	x
	.word	count
	.word	.LC5
	.word	.LC6
	.size	display, .-display
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
