	.file	"604866.c"
	.intel_syntax noprefix
	.text
	.globl	g_count
	.bss
	.align 4
	.type	g_count, @object
	.size	g_count, 4
g_count:
	.zero	4
	.section	.rodata
	.align 8
.LC0:
	.string	"enter a number between 4 and 16 (inclusive): "
.LC1:
	.string	"%s"
	.text
	.globl	get_number
	.type	get_number, @function
get_number:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	check_number
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get_number, .-get_number
	.section	.rodata
	.align 8
.LC2:
	.string	"incorrect input, let's try again..."
	.text
	.globl	check_number
	.type	check_number, @function
check_number:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L3
.L7:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jle	.L4
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 57
	jg	.L4
	cmp	DWORD PTR -4[rbp], 2
	je	.L4
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	atoi@PLT
	cmp	eax, 3
	jle	.L4
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	atoi@PLT
	cmp	eax, 16
	jle	.L5
.L4:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	get_number
	jmp	.L6
.L5:
	add	DWORD PTR -4[rbp], 1
.L3:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L7
	nop
.L6:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	check_number, .-check_number
	.globl	recursive_solver
	.type	recursive_solver, @function
recursive_solver:
.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, 48
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -28[rbp], edx
	mov	DWORD PTR -32[rbp], ecx
	mov	DWORD PTR -36[rbp], r8d
	mov	eax, DWORD PTR -28[rbp]
	or	eax, DWORD PTR -24[rbp]
	or	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -8[rbp], eax
	mov	DWORD PTR -12[rbp], 0
	and	DWORD PTR -28[rbp], 65535
	jmp	.L9
.L12:
	mov	eax, 15
	sub	eax, DWORD PTR -12[rbp]
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	and	eax, DWORD PTR -8[rbp]
	test	eax, eax
	jne	.L10
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, 1
	cmp	DWORD PTR -20[rbp], eax
	jne	.L11
	mov	eax, DWORD PTR g_count[rip]
	add	eax, 1
	mov	DWORD PTR g_count[rip], eax
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -32[rbp]
	or	eax, DWORD PTR -4[rbp]
	mov	edx, DWORD PTR -28[rbp]
	or	edx, DWORD PTR -4[rbp]
	add	edx, edx
	mov	ecx, DWORD PTR -24[rbp]
	or	ecx, DWORD PTR -4[rbp]
	mov	esi, ecx
	sar	esi
	mov	ecx, DWORD PTR -20[rbp]
	lea	edi, 1[rcx]
	mov	ecx, DWORD PTR -36[rbp]
	mov	r8d, ecx
	mov	ecx, eax
	call	recursive_solver
.L10:
	add	DWORD PTR -12[rbp], 1
.L9:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L12
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	recursive_solver, .-recursive_solver
	.section	.rodata
.LC3:
	.string	"solutions = %d\n"
	.text
	.globl	solve_queens
	.type	solve_queens, @function
solve_queens:
.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	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	mov	esi, DWORD PTR -20[rbp]
	mov	ecx, DWORD PTR -4[rbp]
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	r8d, esi
	mov	esi, eax
	mov	edi, 0
	call	recursive_solver
	mov	eax, DWORD PTR g_count[rip]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	solve_queens, .-solve_queens
	.section	.rodata
.LC4:
	.string	"you entered %d\n"
	.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, 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -96[rbp]
	mov	rdi, rax
	call	get_number
	lea	rax, -96[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -100[rbp], eax
	mov	eax, DWORD PTR -100[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -100[rbp]
	mov	edi, eax
	call	solve_queens
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	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	"604866.c"
	.text
	.global	g_count
	.bss
	.align	2
	.type	g_count, %object
	.size	g_count, 4
g_count:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"enter a number between 4 and 16 (inclusive): \000"
	.align	2
.LC1:
	.ascii	"%s\000"
	.text
	.align	2
	.global	get_number
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_number, %function
get_number:
	@ 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]
	ldr	r0, .L2
	bl	printf
	ldr	r1, [fp, #-8]
	ldr	r0, .L2+4
	bl	__isoc99_scanf
	ldr	r0, [fp, #-8]
	bl	check_number
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	.LC0
	.word	.LC1
	.size	get_number, .-get_number
	.section	.rodata
	.align	2
.LC2:
	.ascii	"incorrect input, let's try again...\000"
	.text
	.align	2
	.global	check_number
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_number, %function
check_number:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L5
.L9:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L6
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #57
	bhi	.L6
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	beq	.L6
	ldr	r0, [fp, #-16]
	bl	atoi
	mov	r3, r0
	cmp	r3, #3
	ble	.L6
	ldr	r0, [fp, #-16]
	bl	atoi
	mov	r3, r0
	cmp	r3, #16
	ble	.L7
.L6:
	ldr	r0, .L10
	bl	puts
	ldr	r0, [fp, #-16]
	bl	get_number
	b	.L8
.L7:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L5:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L9
	nop
.L8:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC2
	.size	check_number, .-check_number
	.align	2
	.global	recursive_solver
	.syntax unified
	.arm
	.fpu softvfp
	.type	recursive_solver, %function
recursive_solver:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	orr	r3, r2, r3
	ldr	r2, [fp, #-36]
	orr	r3, r2, r3
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	str	r3, [fp, #-32]
	b	.L13
.L16:
	ldr	r3, [fp, #-16]
	rsb	r3, r3, #15
	mov	r2, #1
	lsl	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	and	r3, r3, r2
	cmp	r3, #0
	bne	.L14
	ldr	r3, [fp, #4]
	sub	r3, r3, #1
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bne	.L15
	ldr	r3, .L17
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L17
	str	r3, [r2]
	b	.L14
.L15:
	ldr	r3, [fp, #-24]
	add	r0, r3, #1
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-8]
	orr	r3, r2, r3
	asr	r1, r3, #1
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-8]
	orr	r3, r2, r3
	lsl	ip, r3, #1
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-8]
	orr	r2, r2, r3
	ldr	r3, [fp, #4]
	str	r3, [sp]
	mov	r3, r2
	mov	r2, ip
	bl	recursive_solver
.L14:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L13:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	blt	.L16
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	g_count
	.size	recursive_solver, .-recursive_solver
	.section	.rodata
	.align	2
.LC3:
	.ascii	"solutions = %d\012\000"
	.text
	.align	2
	.global	solve_queens
	.syntax unified
	.arm
	.fpu softvfp
	.type	solve_queens, %function
solve_queens:
	@ 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, #-24]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-24]
	str	r3, [sp]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-16]
	mov	r0, #0
	bl	recursive_solver
	ldr	r3, .L20
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L20+4
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	g_count
	.word	.LC3
	.size	solve_queens, .-solve_queens
	.section	.rodata
	.align	2
.LC4:
	.ascii	"you entered %d\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #88
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #88
	mov	r0, r3
	bl	get_number
	sub	r3, fp, #88
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-92]
	ldr	r1, [fp, #-92]
	ldr	r0, .L25+4
	bl	printf
	ldr	r0, [fp, #-92]
	bl	solve_queens
	mov	r3, #0
	ldr	r2, .L25
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC5
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
