Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

int get_uint() {
    int n = 0;
    int c = getchar_unlocked();
    if(c < 48 || 57 < c) return c;
    while(47 < c && c < 58) n = 10 * n + (c & 0xf), c = getchar_unlocked();
    return n;
}

void print(const unsigned char Q[8]) {
    for(int i = 0; i < 8; ++i) {
        for(int j = 0; j < 8; ++j)
            putchar_unlocked(Q[i] == j ? 'Q' : '.');
        putchar_unlocked('\n');
    }
}
void queen_eight(unsigned char Q[8], unsigned char col[8], unsigned char lrd[15], unsigned char lld[15], int cnt) {
    if(cnt == 8) {
        print(Q);
        return;
    }
    if(Q[cnt] != 9) {
        queen_eight(Q, col, lrd, lld, cnt + 1);
        return;
    }
    for(int i = 0; i < 8; ++i) {
        if(col[i] || lrd[cnt - i + 7] || lld[cnt + i]) continue;
        Q[cnt] = i;
        col[i] = lrd[cnt - i + 7] = lld[cnt + i] = 1;
        queen_eight(Q, col, lrd, lld, cnt + 1);
        Q[cnt] = 9;
        col[i] = lrd[cnt - i + 7] = lld[cnt + i] = 0;
    }
}
int main(int argc, char **argv) {
    unsigned char Q[8] = {9, 9, 9, 9, 9, 9, 9, 9};
    unsigned char col[8] = {};
    unsigned char lrd[15] = {};
    unsigned char lld[15] = {};

    int k = get_uint();
    for(int i = 0; i < k; ++i) {
        int r = get_uint();
        int c = get_uint();
        Q[r] = c;
        col[c] = lrd[r - c + 7] = lld[r + c] = 1;
    }
    queen_eight(Q, col, lrd, lld, 0);
    return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	get_uint
	.type	get_uint, @function
get_uint:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$0, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
	cmpl	$47, -4(%rbp)
	jle	.L2
	cmpl	$57, -4(%rbp)
	jle	.L5
.L2:
	movl	-4(%rbp), %eax
	jmp	.L4
.L7:
	movl	-8(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	andl	$15, %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
.L5:
	cmpl	$47, -4(%rbp)
	jle	.L6
	cmpl	$57, -4(%rbp)
	jle	.L7
.L6:
	movl	-8(%rbp), %eax
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	get_uint, .-get_uint
	.globl	print
	.type	print, @function
print:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L9
.L14:
	movl	$0, -4(%rbp)
	jmp	.L10
.L13:
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movzbl	%al, %eax
	cmpl	%eax, -4(%rbp)
	jne	.L11
	movl	$81, %eax
	jmp	.L12
.L11:
	movl	$46, %eax
.L12:
	movl	%eax, %edi
	call	putchar_unlocked@PLT
	addl	$1, -4(%rbp)
.L10:
	cmpl	$7, -4(%rbp)
	jle	.L13
	movl	$10, %edi
	call	putchar_unlocked@PLT
	addl	$1, -8(%rbp)
.L9:
	cmpl	$7, -8(%rbp)
	jle	.L14
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	print, .-print
	.globl	queen_eight
	.type	queen_eight, @function
queen_eight:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movq	%rcx, -48(%rbp)
	movl	%r8d, -52(%rbp)
	cmpl	$8, -52(%rbp)
	jne	.L16
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	print
	jmp	.L15
.L16:
	movl	-52(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$9, %al
	je	.L18
	movl	-52(%rbp), %eax
	leal	1(%rax), %edi
	movq	-48(%rbp), %rcx
	movq	-40(%rbp), %rdx
	movq	-32(%rbp), %rsi
	movq	-24(%rbp), %rax
	movl	%edi, %r8d
	movq	%rax, %rdi
	call	queen_eight
	jmp	.L15
.L18:
	movl	$0, -4(%rbp)
	jmp	.L19
.L23:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L24
	movl	-52(%rbp), %eax
	subl	-4(%rbp), %eax
	cltq
	leaq	7(%rax), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L24
	movl	-52(%rbp), %edx
	movl	-4(%rbp), %eax
	addl	%edx, %eax
	movslq	%eax, %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L24
	movl	-52(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-4(%rbp), %edx
	movb	%dl, (%rax)
	movl	-52(%rbp), %edx
	movl	-4(%rbp), %eax
	addl	%edx, %eax
	movslq	%eax, %rdx
	movq	-48(%rbp), %rax
	addq	%rax, %rdx
	movb	$1, (%rdx)
	movl	-52(%rbp), %eax
	subl	-4(%rbp), %eax
	cltq
	leaq	7(%rax), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movzbl	(%rdx), %edx
	movb	%dl, (%rax)
	movl	-4(%rbp), %edx
	movslq	%edx, %rcx
	movq	-32(%rbp), %rdx
	addq	%rcx, %rdx
	movzbl	(%rax), %eax
	movb	%al, (%rdx)
	movl	-52(%rbp), %eax
	leal	1(%rax), %edi
	movq	-48(%rbp), %rcx
	movq	-40(%rbp), %rdx
	movq	-32(%rbp), %rsi
	movq	-24(%rbp), %rax
	movl	%edi, %r8d
	movq	%rax, %rdi
	call	queen_eight
	movl	-52(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movb	$9, (%rax)
	movl	-52(%rbp), %edx
	movl	-4(%rbp), %eax
	addl	%edx, %eax
	movslq	%eax, %rdx
	movq	-48(%rbp), %rax
	addq	%rax, %rdx
	movb	$0, (%rdx)
	movl	-52(%rbp), %eax
	subl	-4(%rbp), %eax
	cltq
	leaq	7(%rax), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movzbl	(%rdx), %edx
	movb	%dl, (%rax)
	movl	-4(%rbp), %edx
	movslq	%edx, %rcx
	movq	-32(%rbp), %rdx
	addq	%rcx, %rdx
	movzbl	(%rax), %eax
	movb	%al, (%rdx)
	jmp	.L22
.L24:
	nop
.L22:
	addl	$1, -4(%rbp)
.L19:
	cmpl	$7, -4(%rbp)
	jle	.L23
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	queen_eight, .-queen_eight
	.globl	main
	.type	main, @function
main:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$96, %rsp
	movl	%edi, -84(%rbp)
	movq	%rsi, -96(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movabsq	$651061555542690057, %rax
	movq	%rax, -54(%rbp)
	movq	$0, -46(%rbp)
	movq	$0, -38(%rbp)
	movl	$0, -30(%rbp)
	movw	$0, -26(%rbp)
	movb	$0, -24(%rbp)
	movq	$0, -23(%rbp)
	movl	$0, -15(%rbp)
	movw	$0, -11(%rbp)
	movb	$0, -9(%rbp)
	movl	$0, %eax
	call	get_uint
	movl	%eax, -68(%rbp)
	movl	$0, -72(%rbp)
	jmp	.L26
.L27:
	movl	$0, %eax
	call	get_uint
	movl	%eax, -64(%rbp)
	movl	$0, %eax
	call	get_uint
	movl	%eax, -60(%rbp)
	movl	-60(%rbp), %eax
	movl	%eax, %edx
	movl	-64(%rbp), %eax
	cltq
	movb	%dl, -54(%rbp,%rax)
	movl	-64(%rbp), %edx
	movl	-60(%rbp), %eax
	addl	%eax, %edx
	movslq	%edx, %rax
	movb	$1, -23(%rbp,%rax)
	movl	-64(%rbp), %eax
	subl	-60(%rbp), %eax
	addl	$7, %eax
	movslq	%edx, %rdx
	movzbl	-23(%rbp,%rdx), %ecx
	movslq	%eax, %rdx
	movb	%cl, -38(%rbp,%rdx)
	cltq
	movzbl	-38(%rbp,%rax), %edx
	movl	-60(%rbp), %eax
	cltq
	movb	%dl, -46(%rbp,%rax)
	addl	$1, -72(%rbp)
.L26:
	movl	-72(%rbp), %eax
	cmpl	-68(%rbp), %eax
	jl	.L27
	leaq	-23(%rbp), %rcx
	leaq	-38(%rbp), %rdx
	leaq	-46(%rbp), %rsi
	leaq	-54(%rbp), %rax
	movl	$0, %r8d
	movq	%rax, %rdi
	call	queen_eight
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.p2align 4
	.globl	get_uint
	.type	get_uint, @function
get_uint:
.LFB23:
	.cfi_startproc
	endbr64
	movq	stdin(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jnb	.L13
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L3:
	leal	-48(%rax), %edx
	movl	%eax, %r12d
	cmpl	$9, %edx
	ja	.L1
	xorl	%r12d, %r12d
.L11:
	movq	stdin(%rip), %rdi
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
	leal	-48(%rax), %edx
	cmpl	$9, %edx
	ja	.L1
.L7:
	andl	$15, %eax
	leal	(%r12,%r12,4), %edx
	leal	(%rax,%rdx,2), %r12d
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jb	.L5
	call	__uflow@PLT
	leal	-48(%rax), %edx
	cmpl	$9, %edx
	jbe	.L11
.L1:
	movl	%r12d, %eax
	popq	%r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	call	__uflow@PLT
	jmp	.L3
	.cfi_endproc
.LFE23:
	.size	get_uint, .-get_uint
	.p2align 4
	.globl	print
	.type	print, @function
print:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	8(%rdi), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movl	$81, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	$46, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	$81, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	$46, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rdi, %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L15:
	cmpb	$1, (%rbx)
	movq	stdout(%rip), %rdi
	sbbl	%eax, %eax
	andl	$35, %eax
	movq	40(%rdi), %rdx
	addl	$46, %eax
	cmpb	$1, (%rbx)
	sbbl	%esi, %esi
	andl	$35, %esi
	addl	$46, %esi
	cmpq	48(%rdi), %rdx
	jnb	.L19
	leaq	1(%rdx), %rcx
	movq	%rcx, 40(%rdi)
	movb	%al, (%rdx)
.L20:
	movq	stdout(%rip), %rdi
	cmpb	$1, (%rbx)
	movl	%r13d, %edx
	movl	%ebp, %esi
	cmove	%r14d, %edx
	cmove	%r12d, %esi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L22
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L23:
	movq	stdout(%rip), %rdi
	cmpb	$2, (%rbx)
	movl	%r13d, %edx
	movl	%ebp, %esi
	cmove	%r14d, %edx
	cmove	%r12d, %esi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L25
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L26:
	movq	stdout(%rip), %rdi
	cmpb	$3, (%rbx)
	movl	%r13d, %edx
	movl	%ebp, %esi
	cmove	%r14d, %edx
	cmove	%r12d, %esi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L28
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L29:
	movq	stdout(%rip), %rdi
	cmpb	$4, (%rbx)
	movl	%r13d, %edx
	movl	%ebp, %esi
	cmove	%r14d, %edx
	cmove	%r12d, %esi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L31
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L32:
	movq	stdout(%rip), %rdi
	cmpb	$5, (%rbx)
	movl	%r13d, %edx
	movl	%ebp, %esi
	cmove	%r14d, %edx
	cmove	%r12d, %esi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L34
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L35:
	movq	stdout(%rip), %rdi
	cmpb	$6, (%rbx)
	movl	%r13d, %edx
	movl	%ebp, %esi
	cmove	%r14d, %edx
	cmove	%r12d, %esi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L37
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L38:
	movq	stdout(%rip), %rdi
	cmpb	$7, (%rbx)
	movl	%r13d, %edx
	movl	%ebp, %esi
	cmove	%r14d, %edx
	cmove	%r12d, %esi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L40
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L41:
	movq	stdout(%rip), %rdi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L54
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	$10, (%rax)
.L16:
	addq	$1, %rbx
	cmpq	%rbx, %r15
	jne	.L15
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L54:
	.cfi_restore_state
	movl	$10, %esi
	call	__overflow@PLT
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L40:
	call	__overflow@PLT
	jmp	.L41
	.p2align 4,,10
	.p2align 3
.L37:
	call	__overflow@PLT
	jmp	.L38
	.p2align 4,,10
	.p2align 3
.L34:
	call	__overflow@PLT
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L31:
	call	__overflow@PLT
	jmp	.L32
	.p2align 4,,10
	.p2align 3
.L28:
	call	__overflow@PLT
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L25:
	call	__overflow@PLT
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L22:
	call	__overflow@PLT
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L19:
	call	__overflow@PLT
	jmp	.L20
	.cfi_endproc
.LFE24:
	.size	print, .-print
	.p2align 4
	.globl	queen_eight
	.type	queen_eight, @function
queen_eight:
.LFB25:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rdi, %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rdx, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rsi, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rcx, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movslq	%r8d, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rbp, %rbx
	addq	%rdi, %rbp
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	cmpl	$8, %ebx
	jne	.L59
	jmp	.L58
	.p2align 4,,10
	.p2align 3
.L74:
	addl	$1, %ebx
	addq	$1, %rbp
	cmpl	$8, %ebx
	je	.L58
.L59:
	cmpb	$9, 0(%rbp)
	jne	.L74
	cmpb	$0, 0(%r13)
	jne	.L60
	movslq	%ebx, %rax
	leaq	7(%r14,%rax), %r9
	cmpb	$0, (%r9)
	jne	.L60
	addq	%r12, %rax
	cmpb	$0, (%rax)
	je	.L75
.L60:
	cmpb	$0, 1(%r13)
	jne	.L61
	movslq	%ebx, %rax
	leaq	6(%r14,%rax), %r9
	cmpb	$0, (%r9)
	jne	.L61
	leal	1(%rbx), %r8d
	movslq	%r8d, %rax
	addq	%r12, %rax
	cmpb	$0, (%rax)
	je	.L76
.L61:
	cmpb	$0, 2(%r13)
	jne	.L62
	movslq	%ebx, %rax
	leaq	5(%r14,%rax), %r9
	cmpb	$0, (%r9)
	jne	.L62
	leal	2(%rbx), %eax
	cltq
	addq	%r12, %rax
	cmpb	$0, (%rax)
	je	.L77
.L62:
	cmpb	$0, 3(%r13)
	jne	.L63
	movslq	%ebx, %rax
	leaq	4(%r14,%rax), %r9
	cmpb	$0, (%r9)
	jne	.L63
	leal	3(%rbx), %eax
	cltq
	addq	%r12, %rax
	cmpb	$0, (%rax)
	je	.L78
.L63:
	cmpb	$0, 4(%r13)
	jne	.L64
	movslq	%ebx, %rax
	leaq	3(%r14,%rax), %r9
	cmpb	$0, (%r9)
	jne	.L64
	leal	4(%rbx), %eax
	cltq
	addq	%r12, %rax
	cmpb	$0, (%rax)
	je	.L79
.L64:
	cmpb	$0, 5(%r13)
	jne	.L65
	movslq	%ebx, %rax
	leaq	2(%r14,%rax), %r9
	cmpb	$0, (%r9)
	jne	.L65
	leal	5(%rbx), %eax
	cltq
	addq	%r12, %rax
	cmpb	$0, (%rax)
	je	.L80
.L65:
	cmpb	$0, 6(%r13)
	jne	.L66
	movslq	%ebx, %rax
	leaq	1(%r14,%rax), %r9
	cmpb	$0, (%r9)
	jne	.L66
	leal	6(%rbx), %eax
	cltq
	addq	%r12, %rax
	cmpb	$0, (%rax)
	je	.L81
.L66:
	cmpb	$0, 7(%r13)
	jne	.L55
	movslq	%ebx, %r9
	addq	%r14, %r9
	cmpb	$0, (%r9)
	jne	.L55
	leal	7(%rbx), %eax
	cltq
	addq	%r12, %rax
	cmpb	$0, (%rax)
	je	.L82
.L55:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L58:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movq	%r15, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	print
	.p2align 4,,10
	.p2align 3
.L82:
	.cfi_restore_state
	movb	$7, 0(%rbp)
	leal	1(%rbx), %r8d
	movq	%r12, %rcx
	movq	%r14, %rdx
	movb	$1, (%rax)
	movq	%r13, %rsi
	movq	%r15, %rdi
	movb	$1, (%r9)
	movb	$1, 7(%r13)
	movq	%rax, 8(%rsp)
	movq	%r9, (%rsp)
	call	queen_eight
	movq	8(%rsp), %rax
	movq	(%rsp), %r9
	movb	$9, 0(%rbp)
	movb	$0, (%rax)
	movb	$0, (%r9)
	movb	$0, 7(%r13)
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L81:
	.cfi_restore_state
	movb	$6, 0(%rbp)
	leal	1(%rbx), %r8d
	movq	%r12, %rcx
	movq	%r14, %rdx
	movb	$1, (%rax)
	movq	%r13, %rsi
	movq	%r15, %rdi
	movb	$1, (%r9)
	movb	$1, 6(%r13)
	movq	%rax, 8(%rsp)
	movq	%r9, (%rsp)
	call	queen_eight
	movq	8(%rsp), %rax
	movq	(%rsp), %r9
	movb	$9, 0(%rbp)
	movb	$0, (%rax)
	movb	$0, (%r9)
	movb	$0, 6(%r13)
	jmp	.L66
	.p2align 4,,10
	.p2align 3
.L80:
	movb	$5, 0(%rbp)
	leal	1(%rbx), %r8d
	movq	%r12, %rcx
	movq	%r14, %rdx
	movb	$1, (%rax)
	movq	%r13, %rsi
	movq	%r15, %rdi
	movb	$1, (%r9)
	movb	$1, 5(%r13)
	movq	%rax, 8(%rsp)
	movq	%r9, (%rsp)
	call	queen_eight
	movq	8(%rsp), %rax
	movq	(%rsp), %r9
	movb	$9, 0(%rbp)
	movb	$0, (%rax)
	movb	$0, (%r9)
	movb	$0, 5(%r13)
	jmp	.L65
	.p2align 4,,10
	.p2align 3
.L79:
	movb	$4, 0(%rbp)
	leal	1(%rbx), %r8d
	movq	%r12, %rcx
	movq	%r14, %rdx
	movb	$1, (%rax)
	movq	%r13, %rsi
	movq	%r15, %rdi
	movb	$1, (%r9)
	movb	$1, 4(%r13)
	movq	%rax, 8(%rsp)
	movq	%r9, (%rsp)
	call	queen_eight
	movq	8(%rsp), %rax
	movq	(%rsp), %r9
	movb	$9, 0(%rbp)
	movb	$0, (%rax)
	movb	$0, (%r9)
	movb	$0, 4(%r13)
	jmp	.L64
	.p2align 4,,10
	.p2align 3
.L78:
	movb	$3, 0(%rbp)
	leal	1(%rbx), %r8d
	movq	%r12, %rcx
	movq	%r14, %rdx
	movb	$1, (%rax)
	movq	%r13, %rsi
	movq	%r15, %rdi
	movb	$1, (%r9)
	movb	$1, 3(%r13)
	movq	%rax, 8(%rsp)
	movq	%r9, (%rsp)
	call	queen_eight
	movq	8(%rsp), %rax
	movq	(%rsp), %r9
	movb	$9, 0(%rbp)
	movb	$0, (%rax)
	movb	$0, (%r9)
	movb	$0, 3(%r13)
	jmp	.L63
	.p2align 4,,10
	.p2align 3
.L77:
	movb	$2, 0(%rbp)
	leal	1(%rbx), %r8d
	movq	%r12, %rcx
	movq	%r14, %rdx
	movb	$1, (%rax)
	movq	%r13, %rsi
	movq	%r15, %rdi
	movb	$1, (%r9)
	movb	$1, 2(%r13)
	movq	%rax, 8(%rsp)
	movq	%r9, (%rsp)
	call	queen_eight
	movq	8(%rsp), %rax
	movq	(%rsp), %r9
	movb	$9, 0(%rbp)
	movb	$0, (%rax)
	movb	$0, (%r9)
	movb	$0, 2(%r13)
	jmp	.L62
	.p2align 4,,10
	.p2align 3
.L76:
	movb	$1, 0(%rbp)
	movq	%r12, %rcx
	movq	%r14, %rdx
	movq	%r13, %rsi
	movb	$1, (%rax)
	movq	%r15, %rdi
	movb	$1, (%r9)
	movb	$1, 1(%r13)
	movq	%rax, 8(%rsp)
	movq	%r9, (%rsp)
	call	queen_eight
	movq	8(%rsp), %rax
	movq	(%rsp), %r9
	movb	$9, 0(%rbp)
	movb	$0, (%rax)
	movb	$0, (%r9)
	movb	$0, 1(%r13)
	jmp	.L61
	.p2align 4,,10
	.p2align 3
.L75:
	movb	$0, 0(%rbp)
	leal	1(%rbx), %r8d
	movq	%r12, %rcx
	movq	%r14, %rdx
	movb	$1, (%rax)
	movq	%r13, %rsi
	movq	%r15, %rdi
	movb	$1, (%r9)
	movb	$1, 0(%r13)
	movq	%rax, 8(%rsp)
	movq	%r9, (%rsp)
	call	queen_eight
	movq	8(%rsp), %rax
	movq	(%rsp), %r9
	movb	$9, 0(%rbp)
	movb	$0, (%rax)
	movb	$0, (%r9)
	movb	$0, 0(%r13)
	jmp	.L60
	.cfi_endproc
.LFE25:
	.size	queen_eight, .-queen_eight
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB26:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xorl	%edx, %edx
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$72, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	movabsq	$651061555542690057, %rax
	movl	$0, 34(%rsp)
	movq	$0, 18(%rsp)
	movq	$0, 26(%rsp)
	movb	$0, 40(%rsp)
	movq	$0, 41(%rsp)
	movl	$0, 49(%rsp)
	movq	%rax, 10(%rsp)
	xorl	%eax, %eax
	movw	%ax, 38(%rsp)
	xorl	%eax, %eax
	movw	%dx, 53(%rsp)
	movb	$0, 55(%rsp)
	call	get_uint
	testl	%eax, %eax
	jle	.L84
	movl	%eax, %ebx
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L97:
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	movq	16(%rdi), %rsi
	cmpq	%rsi, %rax
	jnb	.L123
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L86:
	leal	-48(%rax), %ecx
	cmpl	$9, %ecx
	ja	.L109
	xorl	%ebp, %ebp
	jmp	.L90
	.p2align 4,,10
	.p2align 3
.L88:
	leaq	1(%rdx), %rcx
	movq	%rcx, 8(%rdi)
	movzbl	(%rdx), %eax
	leal	-48(%rax), %edx
	cmpl	$9, %edx
	ja	.L87
.L89:
	movq	%rcx, %rdx
.L90:
	leal	0(%rbp,%rbp,4), %ecx
	andl	$15, %eax
	leal	(%rax,%rcx,2), %ebp
	cmpq	%rsi, %rdx
	jb	.L88
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	leal	-48(%rax), %edx
	movq	8(%rdi), %rcx
	movq	16(%rdi), %rsi
	cmpl	$9, %edx
	jbe	.L89
	.p2align 4,,10
	.p2align 3
.L87:
	cmpq	%rsi, %rcx
	jnb	.L124
.L91:
	leaq	1(%rcx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rcx), %eax
.L92:
	leal	-48(%rax), %edx
	movl	%eax, %r13d
	cmpl	$9, %edx
	ja	.L93
	xorl	%r13d, %r13d
.L122:
	movq	stdin(%rip), %rdi
	jmp	.L96
	.p2align 4,,10
	.p2align 3
.L94:
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
	leal	-48(%rax), %edx
	cmpl	$9, %edx
	ja	.L93
.L96:
	andl	$15, %eax
	leal	0(%r13,%r13,4), %edx
	leal	(%rax,%rdx,2), %r13d
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jb	.L94
	call	__uflow@PLT
	leal	-48(%rax), %edx
	cmpl	$9, %edx
	jbe	.L122
	.p2align 4,,10
	.p2align 3
.L93:
	movslq	%ebp, %rax
	addl	$1, %r12d
	movb	%r13b, 10(%rsp,%rax)
	leal	0(%r13,%rbp), %eax
	subl	%r13d, %ebp
	movslq	%r13d, %r13
	addl	$7, %ebp
	cltq
	movb	$1, 18(%rsp,%r13)
	movslq	%ebp, %rbp
	movb	$1, 41(%rsp,%rax)
	movb	$1, 26(%rsp,%rbp)
	cmpl	%r12d, %ebx
	jne	.L97
.L84:
	cmpb	$9, 10(%rsp)
	je	.L111
	cmpb	$9, 11(%rsp)
	je	.L112
	cmpb	$9, 12(%rsp)
	je	.L113
	cmpb	$9, 13(%rsp)
	je	.L114
	cmpb	$9, 14(%rsp)
	je	.L115
	cmpb	$9, 15(%rsp)
	je	.L116
	cmpb	$9, 16(%rsp)
	je	.L117
	cmpb	$9, 17(%rsp)
	je	.L118
	leaq	10(%rsp), %rdi
	call	print
.L99:
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L125
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L109:
	.cfi_restore_state
	movq	%rdx, %rcx
	movl	%eax, %ebp
	cmpq	%rsi, %rcx
	jb	.L91
.L124:
	call	__uflow@PLT
	jmp	.L92
	.p2align 4,,10
	.p2align 3
.L123:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rsi
	jmp	.L86
.L111:
	xorl	%ebx, %ebx
	leaq	10(%rsp), %r12
.L98:
	cmpb	$0, 18(%rsp)
	jne	.L100
	leal	7(%rbx), %ebp
	leaq	26(%rsp), %rdx
	movslq	%ebp, %rbp
	addq	%rdx, %rbp
	cmpb	$0, 0(%rbp)
	jne	.L100
	leaq	41(%rsp), %rcx
	movslq	%ebx, %r13
	addq	%rcx, %r13
	cmpb	$0, 0(%r13)
	jne	.L100
	movb	$0, (%r12)
	leaq	18(%rsp), %rsi
	leaq	10(%rsp), %rdi
	movb	$1, 0(%r13)
	leal	1(%rbx), %r8d
	movb	$1, 0(%rbp)
	movb	$1, 18(%rsp)
	call	queen_eight
	movb	$0, 0(%r13)
	movb	$0, 0(%rbp)
	movb	$0, 18(%rsp)
.L100:
	cmpb	$0, 19(%rsp)
	jne	.L101
	leal	6(%rbx), %ebp
	leaq	26(%rsp), %rdx
	movslq	%ebp, %rbp
	addq	%rdx, %rbp
	cmpb	$0, 0(%rbp)
	jne	.L101
	leal	1(%rbx), %r8d
	leaq	41(%rsp), %rcx
	movslq	%r8d, %r13
	addq	%rcx, %r13
	cmpb	$0, 0(%r13)
	jne	.L101
	movb	$1, (%r12)
	leaq	18(%rsp), %rsi
	leaq	10(%rsp), %rdi
	movb	$1, 0(%r13)
	movb	$1, 0(%rbp)
	movb	$1, 19(%rsp)
	call	queen_eight
	movb	$0, 0(%r13)
	movb	$0, 0(%rbp)
	movb	$0, 19(%rsp)
.L101:
	cmpb	$0, 20(%rsp)
	jne	.L102
	leal	5(%rbx), %ebp
	leaq	26(%rsp), %rdx
	movslq	%ebp, %rbp
	addq	%rdx, %rbp
	cmpb	$0, 0(%rbp)
	jne	.L102
	leal	2(%rbx), %r13d
	leaq	41(%rsp), %rcx
	movslq	%r13d, %r13
	addq	%rcx, %r13
	cmpb	$0, 0(%r13)
	jne	.L102
	movb	$2, (%r12)
	leaq	18(%rsp), %rsi
	leaq	10(%rsp), %rdi
	movb	$1, 0(%r13)
	leal	1(%rbx), %r8d
	movb	$1, 0(%rbp)
	movb	$1, 20(%rsp)
	call	queen_eight
	movb	$0, 0(%r13)
	movb	$0, 0(%rbp)
	movb	$0, 20(%rsp)
.L102:
	cmpb	$0, 21(%rsp)
	jne	.L103
	leal	4(%rbx), %ebp
	leaq	26(%rsp), %rdx
	movslq	%ebp, %rbp
	addq	%rdx, %rbp
	cmpb	$0, 0(%rbp)
	jne	.L103
	leal	3(%rbx), %r13d
	leaq	41(%rsp), %rcx
	movslq	%r13d, %r13
	addq	%rcx, %r13
	cmpb	$0, 0(%r13)
	jne	.L103
	movb	$3, (%r12)
	leaq	18(%rsp), %rsi
	leaq	10(%rsp), %rdi
	movb	$1, 0(%r13)
	leal	1(%rbx), %r8d
	movb	$1, 0(%rbp)
	movb	$1, 21(%rsp)
	call	queen_eight
	movb	$0, 0(%r13)
	movb	$0, 0(%rbp)
	movb	$0, 21(%rsp)
.L103:
	cmpb	$0, 22(%rsp)
	jne	.L104
	leal	3(%rbx), %ebp
	leaq	26(%rsp), %rdx
	movslq	%ebp, %rbp
	addq	%rdx, %rbp
	cmpb	$0, 0(%rbp)
	jne	.L104
	leal	4(%rbx), %r13d
	leaq	41(%rsp), %rcx
	movslq	%r13d, %r13
	addq	%rcx, %r13
	cmpb	$0, 0(%r13)
	jne	.L104
	movb	$4, (%r12)
	leaq	18(%rsp), %rsi
	leaq	10(%rsp), %rdi
	movb	$1, 0(%r13)
	leal	1(%rbx), %r8d
	movb	$1, 0(%rbp)
	movb	$1, 22(%rsp)
	call	queen_eight
	movb	$0, 0(%r13)
	movb	$0, 0(%rbp)
	movb	$0, 22(%rsp)
.L104:
	cmpb	$0, 23(%rsp)
	jne	.L105
	leal	2(%rbx), %ebp
	leaq	26(%rsp), %rdx
	movslq	%ebp, %rbp
	addq	%rdx, %rbp
	cmpb	$0, 0(%rbp)
	jne	.L105
	leal	5(%rbx), %r13d
	leaq	41(%rsp), %rcx
	movslq	%r13d, %r13
	addq	%rcx, %r13
	cmpb	$0, 0(%r13)
	jne	.L105
	movb	$5, (%r12)
	leaq	18(%rsp), %rsi
	leaq	10(%rsp), %rdi
	movb	$1, 0(%r13)
	leal	1(%rbx), %r8d
	movb	$1, 0(%rbp)
	movb	$1, 23(%rsp)
	call	queen_eight
	movb	$0, 0(%r13)
	movb	$0, 0(%rbp)
	movb	$0, 23(%rsp)
.L105:
	cmpb	$0, 24(%rsp)
	jne	.L106
	leal	1(%rbx), %r8d
	leaq	26(%rsp), %rdx
	movslq	%r8d, %rbp
	addq	%rdx, %rbp
	cmpb	$0, 0(%rbp)
	jne	.L106
	leal	6(%rbx), %r13d
	leaq	41(%rsp), %rcx
	movslq	%r13d, %r13
	addq	%rcx, %r13
	cmpb	$0, 0(%r13)
	jne	.L106
	movb	$6, (%r12)
	leaq	18(%rsp), %rsi
	leaq	10(%rsp), %rdi
	movb	$1, 0(%r13)
	movb	$1, 0(%rbp)
	movb	$1, 24(%rsp)
	call	queen_eight
	movb	$0, 0(%r13)
	movb	$0, 0(%rbp)
	movb	$0, 24(%rsp)
.L106:
	cmpb	$0, 25(%rsp)
	jne	.L99
	leaq	26(%rsp), %r9
	movslq	%ebx, %rax
	addq	%r9, %rax
	cmpb	$0, (%rax)
	jne	.L99
	leal	7(%rbx), %edx
	leaq	41(%rsp), %rcx
	movslq	%edx, %rdx
	addq	%rcx, %rdx
	cmpb	$0, (%rdx)
	jne	.L99
	movb	$7, (%r12)
	leaq	18(%rsp), %rsi
	leaq	10(%rsp), %rdi
	movb	$1, (%rdx)
	leal	1(%rbx), %r8d
	movq	%r9, %rdx
	movb	$1, (%rax)
	movb	$1, 25(%rsp)
	call	queen_eight
	jmp	.L99
.L112:
	movl	$1, %ebx
	leaq	11(%rsp), %r12
	jmp	.L98
.L113:
	movl	$2, %ebx
	leaq	12(%rsp), %r12
	jmp	.L98
.L114:
	movl	$3, %ebx
	leaq	13(%rsp), %r12
	jmp	.L98
.L115:
	movl	$4, %ebx
	leaq	14(%rsp), %r12
	jmp	.L98
.L116:
	movl	$5, %ebx
	leaq	15(%rsp), %r12
	jmp	.L98
.L117:
	movl	$6, %ebx
	leaq	16(%rsp), %r12
	jmp	.L98
.L118:
	movl	$7, %ebx
	leaq	17(%rsp), %r12
	jmp	.L98
.L125:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE26:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:

rule
	.file	"temp.c"
	.text
	.p2align 4
	.globl	get_uint
	.type	get_uint, @function
get_uint:
.LFB23:
	.cfi_startproc
	endbr64
	movq	stdin(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jnb	.L13
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L3:
	leal	-48(%rax), %edx
	movl	%eax, %r12d
	cmpl	$9, %edx
	ja	.L1
	xorl	%r12d, %r12d
.L11:
	movq	stdin(%rip), %rdi
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
	leal	-48(%rax), %edx
	cmpl	$9, %edx
	ja	.L1
.L7:
	andl	$15, %eax
	leal	(%r12,%r12,4), %edx
	leal	(%rax,%rdx,2), %r12d
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jb	.L5
	call	__uflow@PLT
	leal	-48(%rax), %edx
	cmpl	$9, %edx
	jbe	.L11
.L1:
	movl	%r12d, %eax
	popq	%r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	call	__uflow@PLT
	jmp	.L3
	.cfi_endproc
.LFE23:
	.size	get_uint, .-get_uint
	.p2align 4
	.globl	print
	.type	print, @function
print:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	8(%rdi), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movl	$81, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	$46, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	$81, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	$46, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rdi, %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L15:
	cmpb	$1, (%rbx)
	movq	stdout(%rip), %rdi
	sbbl	%eax, %eax
	andl	$35, %eax
	movq	40(%rdi), %rdx
	addl	$46, %eax
	cmpb	$1, (%rbx)
	sbbl	%esi, %esi
	andl	$35, %esi
	addl	$46, %esi
	cmpq	48(%rdi), %rdx
	jnb	.L19
	leaq	1(%rdx), %rcx
	movq	%rcx, 40(%rdi)
	movb	%al, (%rdx)
.L20:
	movq	stdout(%rip), %rdi
	cmpb	$1, (%rbx)
	movl	%r13d, %edx
	movl	%ebp, %esi
	cmove	%r14d, %edx
	cmove	%r12d, %esi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L22
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L23:
	movq	stdout(%rip), %rdi
	cmpb	$2, (%rbx)
	movl	%r13d, %edx
	movl	%ebp, %esi
	cmove	%r14d, %edx
	cmove	%r12d, %esi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L25
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L26:
	movq	stdout(%rip), %rdi
	cmpb	$3, (%rbx)
	movl	%r13d, %edx
	movl	%ebp, %esi
	cmove	%r14d, %edx
	cmove	%r12d, %esi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L28
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L29:
	movq	stdout(%rip), %rdi
	cmpb	$4, (%rbx)
	movl	%r13d, %edx
	movl	%ebp, %esi
	cmove	%r14d, %edx
	cmove	%r12d, %esi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L31
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L32:
	movq	stdout(%rip), %rdi
	cmpb	$5, (%rbx)
	movl	%r13d, %edx
	movl	%ebp, %esi
	cmove	%r14d, %edx
	cmove	%r12d, %esi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L34
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L35:
	movq	stdout(%rip), %rdi
	cmpb	$6, (%rbx)
	movl	%r13d, %edx
	movl	%ebp, %esi
	cmove	%r14d, %edx
	cmove	%r12d, %esi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L37
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L38:
	movq	stdout(%rip), %rdi
	cmpb	$7, (%rbx)
	movl	%r13d, %edx
	movl	%ebp, %esi
	cmove	%r14d, %edx
	cmove	%r12d, %esi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L40
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L41:
	movq	stdout(%rip), %rdi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L54
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	$10, (%rax)
.L16:
	addq	$1, %rbx
	cmpq	%rbx, %r15
	jne	.L15
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L54:
	.cfi_restore_state
	movl	$10, %esi
	call	__overflow@PLT
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L40:
	call	__overflow@PLT
	jmp	.L41
	.p2align 4,,10
	.p2align 3
.L37:
	call	__overflow@PLT
	jmp	.L38
	.p2align 4,,10
	.p2align 3
.L34:
	call	__overflow@PLT
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L31:
	call	__overflow@PLT
	jmp	.L32
	.p2align 4,,10
	.p2align 3
.L28:
	call	__overflow@PLT
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L25:
	call	__overflow@PLT
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L22:
	call	__overflow@PLT
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L19:
	call	__overflow@PLT
	jmp	.L20
	.cfi_endproc
.LFE24:
	.size	print, .-print
	.p2align 4
	.globl	queen_eight
	.type	queen_eight, @function
queen_eight:
.LFB25:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rdi, %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rdx, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rsi, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rcx, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movslq	%r8d, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rbp, %rbx
	addq	%rdi, %rbp
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	cmpl	$8, %ebx
	jne	.L59
	jmp	.L58
	.p2align 4,,10
	.p2align 3
.L74:
	addl	$1, %ebx
	addq	$1, %rbp
	cmpl	$8, %ebx
	je	.L58
.L59:
	cmpb	$9, 0(%rbp)
	jne	.L74
	cmpb	$0, 0(%r13)
	jne	.L60
	movslq	%ebx, %rax
	leaq	7(%r14,%rax), %r9
	cmpb	$0, (%r9)
	jne	.L60
	addq	%r12, %rax
	cmpb	$0, (%rax)
	je	.L75
.L60:
	cmpb	$0, 1(%r13)
	jne	.L61
	movslq	%ebx, %rax
	leaq	6(%r14,%rax), %r9
	cmpb	$0, (%r9)
	jne	.L61
	leal	1(%rbx), %r8d
	movslq	%r8d, %rax
	addq	%r12, %rax
	cmpb	$0, (%rax)
	je	.L76
.L61:
	cmpb	$0, 2(%r13)
	jne	.L62
	movslq	%ebx, %rax
	leaq	5(%r14,%rax), %r9
	cmpb	$0, (%r9)
	jne	.L62
	leal	2(%rbx), %eax
	cltq
	addq	%r12, %rax
	cmpb	$0, (%rax)
	je	.L77
.L62:
	cmpb	$0, 3(%r13)
	jne	.L63
	movslq	%ebx, %rax
	leaq	4(%r14,%rax), %r9
	cmpb	$0, (%r9)
	jne	.L63
	leal	3(%rbx), %eax
	cltq
	addq	%r12, %rax
	cmpb	$0, (%rax)
	je	.L78
.L63:
	cmpb	$0, 4(%r13)
	jne	.L64
	movslq	%ebx, %rax
	leaq	3(%r14,%rax), %r9
	cmpb	$0, (%r9)
	jne	.L64
	leal	4(%rbx), %eax
	cltq
	addq	%r12, %rax
	cmpb	$0, (%rax)
	je	.L79
.L64:
	cmpb	$0, 5(%r13)
	jne	.L65
	movslq	%ebx, %rax
	leaq	2(%r14,%rax), %r9
	cmpb	$0, (%r9)
	jne	.L65
	leal	5(%rbx), %eax
	cltq
	addq	%r12, %rax
	cmpb	$0, (%rax)
	je	.L80
.L65:
	cmpb	$0, 6(%r13)
	jne	.L66
	movslq	%ebx, %rax
	leaq	1(%r14,%rax), %r9
	cmpb	$0, (%r9)
	jne	.L66
	leal	6(%rbx), %eax
	cltq
	addq	%r12, %rax
	cmpb	$0, (%rax)
	je	.L81
.L66:
	cmpb	$0, 7(%r13)
	jne	.L55
	movslq	%ebx, %r9
	addq	%r14, %r9
	cmpb	$0, (%r9)
	jne	.L55
	leal	7(%rbx), %eax
	cltq
	addq	%r12, %rax
	cmpb	$0, (%rax)
	je	.L82
.L55:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L58:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movq	%r15, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	print
	.p2align 4,,10
	.p2align 3
.L82:
	.cfi_restore_state
	movb	$7, 0(%rbp)
	leal	1(%rbx), %r8d
	movq	%r12, %rcx
	movq	%r14, %rdx
	movb	$1, (%rax)
	movq	%r13, %rsi
	movq	%r15, %rdi
	movb	$1, (%r9)
	movb	$1, 7(%r13)
	movq	%rax, 8(%rsp)
	movq	%r9, (%rsp)
	call	queen_eight
	movq	8(%rsp), %rax
	movq	(%rsp), %r9
	movb	$9, 0(%rbp)
	movb	$0, (%rax)
	movb	$0, (%r9)
	movb	$0, 7(%r13)
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L81:
	.cfi_restore_state
	movb	$6, 0(%rbp)
	leal	1(%rbx), %r8d
	movq	%r12, %rcx
	movq	%r14, %rdx
	movb	$1, (%rax)
	movq	%r13, %rsi
	movq	%r15, %rdi
	movb	$1, (%r9)
	movb	$1, 6(%r13)
	movq	%rax, 8(%rsp)
	movq	%r9, (%rsp)
	call	queen_eight
	movq	8(%rsp), %rax
	movq	(%rsp), %r9
	movb	$9, 0(%rbp)
	movb	$0, (%rax)
	movb	$0, (%r9)
	movb	$0, 6(%r13)
	jmp	.L66
	.p2align 4,,10
	.p2align 3
.L80:
	movb	$5, 0(%rbp)
	leal	1(%rbx), %r8d
	movq	%r12, %rcx
	movq	%r14, %rdx
	movb	$1, (%rax)
	movq	%r13, %rsi
	movq	%r15, %rdi
	movb	$1, (%r9)
	movb	$1, 5(%r13)
	movq	%rax, 8(%rsp)
	movq	%r9, (%rsp)
	call	queen_eight
	movq	8(%rsp), %rax
	movq	(%rsp), %r9
	movb	$9, 0(%rbp)
	movb	$0, (%rax)
	movb	$0, (%r9)
	movb	$0, 5(%r13)
	jmp	.L65
	.p2align 4,,10
	.p2align 3
.L79:
	movb	$4, 0(%rbp)
	leal	1(%rbx), %r8d
	movq	%r12, %rcx
	movq	%r14, %rdx
	movb	$1, (%rax)
	movq	%r13, %rsi
	movq	%r15, %rdi
	movb	$1, (%r9)
	movb	$1, 4(%r13)
	movq	%rax, 8(%rsp)
	movq	%r9, (%rsp)
	call	queen_eight
	movq	8(%rsp), %rax
	movq	(%rsp), %r9
	movb	$9, 0(%rbp)
	movb	$0, (%rax)
	movb	$0, (%r9)
	movb	$0, 4(%r13)
	jmp	.L64
	.p2align 4,,10
	.p2align 3
.L78:
	movb	$3, 0(%rbp)
	leal	1(%rbx), %r8d
	movq	%r12, %rcx
	movq	%r14, %rdx
	movb	$1, (%rax)
	movq	%r13, %rsi
	movq	%r15, %rdi
	movb	$1, (%r9)
	movb	$1, 3(%r13)
	movq	%rax, 8(%rsp)
	movq	%r9, (%rsp)
	call	queen_eight
	movq	8(%rsp), %rax
	movq	(%rsp), %r9
	movb	$9, 0(%rbp)
	movb	$0, (%rax)
	movb	$0, (%r9)
	movb	$0, 3(%r13)
	jmp	.L63
	.p2align 4,,10
	.p2align 3
.L77:
	movb	$2, 0(%rbp)
	leal	1(%rbx), %r8d
	movq	%r12, %rcx
	movq	%r14, %rdx
	movb	$1, (%rax)
	movq	%r13, %rsi
	movq	%r15, %rdi
	movb	$1, (%r9)
	movb	$1, 2(%r13)
	movq	%rax, 8(%rsp)
	movq	%r9, (%rsp)
	call	queen_eight
	movq	8(%rsp), %rax
	movq	(%rsp), %r9
	movb	$9, 0(%rbp)
	movb	$0, (%rax)
	movb	$0, (%r9)
	movb	$0, 2(%r13)
	jmp	.L62
	.p2align 4,,10
	.p2align 3
.L76:
	movb	$1, 0(%rbp)
	movq	%r12, %rcx
	movq	%r14, %rdx
	movq	%r13, %rsi
	movb	$1, (%rax)
	movq	%r15, %rdi
	movb	$1, (%r9)
	movb	$1, 1(%r13)
	movq	%rax, 8(%rsp)
	movq	%r9, (%rsp)
	call	queen_eight
	movq	8(%rsp), %rax
	movq	(%rsp), %r9
	movb	$9, 0(%rbp)
	movb	$0, (%rax)
	movb	$0, (%r9)
	movb	$0, 1(%r13)
	jmp	.L61
	.p2align 4,,10
	.p2align 3
.L75:
	movb	$0, 0(%rbp)
	leal	1(%rbx), %r8d
	movq	%r12, %rcx
	movq	%r14, %rdx
	movb	$1, (%rax)
	movq	%r13, %rsi
	movq	%r15, %rdi
	movb	$1, (%r9)
	movb	$1, 0(%r13)
	movq	%rax, 8(%rsp)
	movq	%r9, (%rsp)
	call	queen_eight
	movq	8(%rsp), %rax
	movq	(%rsp), %r9
	movb	$9, 0(%rbp)
	movb	$0, (%rax)
	movb	$0, (%r9)
	movb	$0, 0(%r13)
	jmp	.L60
	.cfi_endproc
.LFE25:
	.size	queen_eight, .-queen_eight
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB26:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xorl	%edx, %edx
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$72, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	movabsq	$651061555542690057, %rax
	movl	$0, 34(%rsp)
	movq	$0, 18(%rsp)
	movq	$0, 26(%rsp)
	movb	$0, 40(%rsp)
	movq	$0, 41(%rsp)
	movl	$0, 49(%rsp)
	movq	%rax, 10(%rsp)
	xorl	%eax, %eax
	movw	%ax, 38(%rsp)
	xorl	%eax, %eax
	movw	%dx, 53(%rsp)
	movb	$0, 55(%rsp)
	call	get_uint
	testl	%eax, %eax
	jle	.L84
	movl	%eax, %ebx
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L97:
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	movq	16(%rdi), %rsi
	cmpq	%rsi, %rax
	jnb	.L123
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L86:
	leal	-48(%rax), %ecx
	cmpl	$9, %ecx
	ja	.L109
	xorl	%ebp, %ebp
	jmp	.L90
	.p2align 4,,10
	.p2align 3
.L88:
	leaq	1(%rdx), %rcx
	movq	%rcx, 8(%rdi)
	movzbl	(%rdx), %eax
	leal	-48(%rax), %edx
	cmpl	$9, %edx
	ja	.L87
.L89:
	movq	%rcx, %rdx
.L90:
	leal	0(%rbp,%rbp,4), %ecx
	andl	$15, %eax
	leal	(%rax,%rcx,2), %ebp
	cmpq	%rsi, %rdx
	jb	.L88
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	leal	-48(%rax), %edx
	movq	8(%rdi), %rcx
	movq	16(%rdi), %rsi
	cmpl	$9, %edx
	jbe	.L89
	.p2align 4,,10
	.p2align 3
.L87:
	cmpq	%rsi, %rcx
	jnb	.L124
.L91:
	leaq	1(%rcx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rcx), %eax
.L92:
	leal	-48(%rax), %edx
	movl	%eax, %r13d
	cmpl	$9, %edx
	ja	.L93
	xorl	%r13d, %r13d
.L122:
	movq	stdin(%rip), %rdi
	jmp	.L96
	.p2align 4,,10
	.p2align 3
.L94:
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
	leal	-48(%rax), %edx
	cmpl	$9, %edx
	ja	.L93
.L96:
	andl	$15, %eax
	leal	0(%r13,%r13,4), %edx
	leal	(%rax,%rdx,2), %r13d
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jb	.L94
	call	__uflow@PLT
	leal	-48(%rax), %edx
	cmpl	$9, %edx
	jbe	.L122
	.p2align 4,,10
	.p2align 3
.L93:
	movslq	%ebp, %rax
	addl	$1, %r12d
	movb	%r13b, 10(%rsp,%rax)
	leal	0(%r13,%rbp), %eax
	subl	%r13d, %ebp
	movslq	%r13d, %r13
	addl	$7, %ebp
	cltq
	movb	$1, 18(%rsp,%r13)
	movslq	%ebp, %rbp
	movb	$1, 41(%rsp,%rax)
	movb	$1, 26(%rsp,%rbp)
	cmpl	%r12d, %ebx
	jne	.L97
.L84:
	cmpb	$9, 10(%rsp)
	je	.L111
	cmpb	$9, 11(%rsp)
	je	.L112
	cmpb	$9, 12(%rsp)
	je	.L113
	cmpb	$9, 13(%rsp)
	je	.L114
	cmpb	$9, 14(%rsp)
	je	.L115
	cmpb	$9, 15(%rsp)
	je	.L116
	cmpb	$9, 16(%rsp)
	je	.L117
	cmpb	$9, 17(%rsp)
	je	.L118
	leaq	10(%rsp), %rdi
	call	print
.L99:
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L125
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L109:
	.cfi_restore_state
	movq	%rdx, %rcx
	movl	%eax, %ebp
	cmpq	%rsi, %rcx
	jb	.L91
.L124:
	call	__uflow@PLT
	jmp	.L92
	.p2align 4,,10
	.p2align 3
.L123:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rsi
	jmp	.L86
.L111:
	xorl	%ebx, %ebx
	leaq	10(%rsp), %r12
.L98:
	cmpb	$0, 18(%rsp)
	jne	.L100
	leal	7(%rbx), %ebp
	leaq	26(%rsp), %rdx
	movslq	%ebp, %rbp
	addq	%rdx, %rbp
	cmpb	$0, 0(%rbp)
	jne	.L100
	leaq	41(%rsp), %rcx
	movslq	%ebx, %r13
	addq	%rcx, %r13
	cmpb	$0, 0(%r13)
	jne	.L100
	movb	$0, (%r12)
	leaq	18(%rsp), %rsi
	leaq	10(%rsp), %rdi
	movb	$1, 0(%r13)
	leal	1(%rbx), %r8d
	movb	$1, 0(%rbp)
	movb	$1, 18(%rsp)
	call	queen_eight
	movb	$0, 0(%r13)
	movb	$0, 0(%rbp)
	movb	$0, 18(%rsp)
.L100:
	cmpb	$0, 19(%rsp)
	jne	.L101
	leal	6(%rbx), %ebp
	leaq	26(%rsp), %rdx
	movslq	%ebp, %rbp
	addq	%rdx, %rbp
	cmpb	$0, 0(%rbp)
	jne	.L101
	leal	1(%rbx), %r8d
	leaq	41(%rsp), %rcx
	movslq	%r8d, %r13
	addq	%rcx, %r13
	cmpb	$0, 0(%r13)
	jne	.L101
	movb	$1, (%r12)
	leaq	18(%rsp), %rsi
	leaq	10(%rsp), %rdi
	movb	$1, 0(%r13)
	movb	$1, 0(%rbp)
	movb	$1, 19(%rsp)
	call	queen_eight
	movb	$0, 0(%r13)
	movb	$0, 0(%rbp)
	movb	$0, 19(%rsp)
.L101:
	cmpb	$0, 20(%rsp)
	jne	.L102
	leal	5(%rbx), %ebp
	leaq	26(%rsp), %rdx
	movslq	%ebp, %rbp
	addq	%rdx, %rbp
	cmpb	$0, 0(%rbp)
	jne	.L102
	leal	2(%rbx), %r13d
	leaq	41(%rsp), %rcx
	movslq	%r13d, %r13
	addq	%rcx, %r13
	cmpb	$0, 0(%r13)
	jne	.L102
	movb	$2, (%r12)
	leaq	18(%rsp), %rsi
	leaq	10(%rsp), %rdi
	movb	$1, 0(%r13)
	leal	1(%rbx), %r8d
	movb	$1, 0(%rbp)
	movb	$1, 20(%rsp)
	call	queen_eight
	movb	$0, 0(%r13)
	movb	$0, 0(%rbp)
	movb	$0, 20(%rsp)
.L102:
	cmpb	$0, 21(%rsp)
	jne	.L103
	leal	4(%rbx), %ebp
	leaq	26(%rsp), %rdx
	movslq	%ebp, %rbp
	addq	%rdx, %rbp
	cmpb	$0, 0(%rbp)
	jne	.L103
	leal	3(%rbx), %r13d
	leaq	41(%rsp), %rcx
	movslq	%r13d, %r13
	addq	%rcx, %r13
	cmpb	$0, 0(%r13)
	jne	.L103
	movb	$3, (%r12)
	leaq	18(%rsp), %rsi
	leaq	10(%rsp), %rdi
	movb	$1, 0(%r13)
	leal	1(%rbx), %r8d
	movb	$1, 0(%rbp)
	movb	$1, 21(%rsp)
	call	queen_eight
	movb	$0, 0(%r13)
	movb	$0, 0(%rbp)
	movb	$0, 21(%rsp)
.L103:
	cmpb	$0, 22(%rsp)
	jne	.L104
	leal	3(%rbx), %ebp
	leaq	26(%rsp), %rdx
	movslq	%ebp, %rbp
	addq	%rdx, %rbp
	cmpb	$0, 0(%rbp)
	jne	.L104
	leal	4(%rbx), %r13d
	leaq	41(%rsp), %rcx
	movslq	%r13d, %r13
	addq	%rcx, %r13
	cmpb	$0, 0(%r13)
	jne	.L104
	movb	$4, (%r12)
	leaq	18(%rsp), %rsi
	leaq	10(%rsp), %rdi
	movb	$1, 0(%r13)
	leal	1(%rbx), %r8d
	movb	$1, 0(%rbp)
	movb	$1, 22(%rsp)
	call	queen_eight
	movb	$0, 0(%r13)
	movb	$0, 0(%rbp)
	movb	$0, 22(%rsp)
.L104:
	cmpb	$0, 23(%rsp)
	jne	.L105
	leal	2(%rbx), %ebp
	leaq	26(%rsp), %rdx
	movslq	%ebp, %rbp
	addq	%rdx, %rbp
	cmpb	$0, 0(%rbp)
	jne	.L105
	leal	5(%rbx), %r13d
	leaq	41(%rsp), %rcx
	movslq	%r13d, %r13
	addq	%rcx, %r13
	cmpb	$0, 0(%r13)
	jne	.L105
	movb	$5, (%r12)
	leaq	18(%rsp), %rsi
	leaq	10(%rsp), %rdi
	movb	$1, 0(%r13)
	leal	1(%rbx), %r8d
	movb	$1, 0(%rbp)
	movb	$1, 23(%rsp)
	call	queen_eight
	movb	$0, 0(%r13)
	movb	$0, 0(%rbp)
	movb	$0, 23(%rsp)
.L105:
	cmpb	$0, 24(%rsp)
	jne	.L106
	leal	1(%rbx), %r8d
	leaq	26(%rsp), %rdx
	movslq	%r8d, %rbp
	addq	%rdx, %rbp
	cmpb	$0, 0(%rbp)
	jne	.L106
	leal	6(%rbx), %r13d
	leaq	41(%rsp), %rcx
	movslq	%r13d, %r13
	addq	%rcx, %r13
	cmpb	$0, 0(%r13)
	jne	.L106
	movb	$6, (%r12)
	leaq	18(%rsp), %rsi
	leaq	10(%rsp), %rdi
	movb	$1, 0(%r13)
	movb	$1, 0(%rbp)
	movb	$1, 24(%rsp)
	call	queen_eight
	movb	$0, 0(%r13)
	movb	$0, 0(%rbp)
	movb	$0, 24(%rsp)
.L106:
	cmpb	$0, 25(%rsp)
	jne	.L99
	leaq	26(%rsp), %r9
	movslq	%ebx, %rax
	addq	%r9, %rax
	cmpb	$0, (%rax)
	jne	.L99
	leal	7(%rbx), %edx
	leaq	41(%rsp), %rcx
	movslq	%edx, %rdx
	addq	%rcx, %rdx
	cmpb	$0, (%rdx)
	jne	.L99
	movb	$7, (%r12)
	leaq	18(%rsp), %rsi
	leaq	10(%rsp), %rdi
	movb	$1, (%rdx)
	leal	1(%rbx), %r8d
	movq	%r9, %rdx
	movb	$1, (%rax)
	movb	$1, 25(%rsp)
	call	queen_eight
	jmp	.L99
.L112:
	movl	$1, %ebx
	leaq	11(%rsp), %r12
	jmp	.L98
.L113:
	movl	$2, %ebx
	leaq	12(%rsp), %r12
	jmp	.L98
.L114:
	movl	$3, %ebx
	leaq	13(%rsp), %r12
	jmp	.L98
.L115:
	movl	$4, %ebx
	leaq	14(%rsp), %r12
	jmp	.L98
.L116:
	movl	$5, %ebx
	leaq	15(%rsp), %r12
	jmp	.L98
.L117:
	movl	$6, %ebx
	leaq	16(%rsp), %r12
	jmp	.L98
.L118:
	movl	$7, %ebx
	leaq	17(%rsp), %r12
	jmp	.L98
.L125:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE26:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:

#include <stdio.h>

int get_uint() {
    int n = 0;
    int c = getchar_unlocked();
    if(c < 48 || 57 < c) return c;
    while(47 < c && c < 58) n = 10 * n + (c & 0xf), c = getchar_unlocked();
    return n;
}

void print(const unsigned char Q[8]) {
    for(int i = 0; i < 8; ++i) {
        for(int j = 0; j < 8; ++j)
            putchar_unlocked(Q[i] == j ? 'Q' : '.');
        putchar_unlocked('\n');
    }
}
void queen_eight(unsigned char Q[8], unsigned char col[8], unsigned char lrd[15], unsigned char lld[15], int cnt) {
    if(cnt == 8) {
        print(Q);
        return;
    }
    if(Q[cnt] != 9) {
        queen_eight(Q, col, lrd, lld, cnt + 1);
        return;
    }
    for(int i = 0; i < 8; ++i) {
        if(col[i] || lrd[cnt - i + 7] || lld[cnt + i]) continue;
        Q[cnt] = i;
        col[i] = lrd[cnt - i + 7] = lld[cnt + i] = 1;
        queen_eight(Q, col, lrd, lld, cnt + 1);
        Q[cnt] = 9;
        col[i] = lrd[cnt - i + 7] = lld[cnt + i] = 0;
    }
}
int main(int argc, char **argv) {
    unsigned char Q[8] = {9, 9, 9, 9, 9, 9, 9, 9};
    unsigned char col[8] = {};
    unsigned char lrd[15] = {};
    unsigned char lld[15] = {};

    int k = get_uint();
    for(int i = 0; i < k; ++i) {
        int r = get_uint();
        int c = get_uint();
        Q[r] = c;
        col[c] = lrd[r - c + 7] = lld[r + c] = 1;
    }
    queen_eight(Q, col, lrd, lld, 0);
    return 0;
}


2
1 4
5 3
 2
0 4
5 3
 2
0 4
5 2
 2
1 4
6 3
 2
1 0
5 3
 2
2 4
6 3
 2
0 0
5 1
 2
3 0
5 5
 2
0 4
4 3
 2
2 0
5 5

..Q.....
....Q...
.Q......
.......Q
.....Q..
...Q....
......Q.
Q.......
 ....Q...
.Q......
.....Q..
Q.......
......Q.
...Q....
.......Q
..Q.....
 ....Q...
.Q......
...Q....
.....Q..
.......Q
..Q.....
Q.......
......Q.
 ..Q.....
....Q...
.Q......
.......Q
Q.......
......Q.
...Q....
.....Q..
 ......Q.
Q.......
..Q.....
.......Q
.....Q..
...Q....
.Q......
....Q...
 .......Q
.Q......
....Q...
..Q.....
Q.......
......Q.
...Q....
.....Q..
 Q.......
......Q.
...Q....
.....Q..
.......Q
.Q......
....Q...
..Q.....
 ....Q...
.......Q
...Q....
Q.......
..Q.....
.....Q..
.Q......
......Q.
 ....Q...
.Q......
.......Q
Q.......
...Q....
......Q.
..Q.....
.....Q..
 ....Q...
......Q.
Q.......
..Q.....
.......Q
.....Q..
...Q....
.Q......

Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

int get_uint() {
    int n = 0;
    int c = getchar_unlocked();
    if(c < 48 || 57 < c) return c;
    while(47 < c && c < 58) n = 10 * n + (c & 0xf), c = getchar_unlocked();
    return n;
}

void print(const unsigned char Q[8]) {
    for(int i = 0; i < 8; ++i) {
        for(int j = 0; j < 8; ++j)
            putchar_unlocked(Q[i] == j ? 'Q' : '.');
        putchar_unlocked('\n');
    }
}
void queen_eight(unsigned char Q[8], unsigned char col[8], unsigned char lrd[15], unsigned char lld[15], int cnt) {
    if(cnt == 8) {
        print(Q);
        return;
    }
    if(Q[cnt] != 9) {
        queen_eight(Q, col, lrd, lld, cnt + 1);
        return;
    }
    for(int i = 0; i < 8; ++i) {
        if(col[i] || lrd[cnt - i + 7] || lld[cnt + i]) continue;
        Q[cnt] = i;
        col[i] = lrd[cnt - i + 7] = lld[cnt + i] = 1;
        queen_eight(Q, col, lrd, lld, cnt + 1);
        Q[cnt] = 9;
        col[i] = lrd[cnt - i + 7] = lld[cnt + i] = 0;
    }
}
int main(int argc, char **argv) {
    unsigned char Q[8] = {9, 9, 9, 9, 9, 9, 9, 9};
    unsigned char col[8] = {};
    unsigned char lrd[15] = {};
    unsigned char lld[15] = {};

    int k = get_uint();
    for(int i = 0; i < k; ++i) {
        int r = get_uint();
        int c = get_uint();
        Q[r] = c;
        col[c] = lrd[r - c + 7] = lld[r + c] = 1;
    }
    queen_eight(Q, col, lrd, lld, 0);
    return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	get_uint
	.type	get_uint, @function
get_uint:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$0, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
	cmpl	$47, -4(%rbp)
	jle	.L2
	cmpl	$57, -4(%rbp)
	jle	.L5
.L2:
	movl	-4(%rbp), %eax
	jmp	.L4
.L7:
	movl	-8(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	andl	$15, %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
.L5:
	cmpl	$47, -4(%rbp)
	jle	.L6
	cmpl	$57, -4(%rbp)
	jle	.L7
.L6:
	movl	-8(%rbp), %eax
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	get_uint, .-get_uint
	.globl	print
	.type	print, @function
print:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L9
.L14:
	movl	$0, -4(%rbp)
	jmp	.L10
.L13:
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movzbl	%al, %eax
	cmpl	%eax, -4(%rbp)
	jne	.L11
	movl	$81, %eax
	jmp	.L12
.L11:
	movl	$46, %eax
.L12:
	movl	%eax, %edi
	call	putchar_unlocked@PLT
	addl	$1, -4(%rbp)
.L10:
	cmpl	$7, -4(%rbp)
	jle	.L13
	movl	$10, %edi
	call	putchar_unlocked@PLT
	addl	$1, -8(%rbp)
.L9:
	cmpl	$7, -8(%rbp)
	jle	.L14
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	print, .-print
	.globl	queen_eight
	.type	queen_eight, @function
queen_eight:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movq	%rcx, -48(%rbp)
	movl	%r8d, -52(%rbp)
	cmpl	$8, -52(%rbp)
	jne	.L16
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	print
	jmp	.L15
.L16:
	movl	-52(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$9, %al
	je	.L18
	movl	-52(%rbp), %eax
	leal	1(%rax), %edi
	movq	-48(%rbp), %rcx
	movq	-40(%rbp), %rdx
	movq	-32(%rbp), %rsi
	movq	-24(%rbp), %rax
	movl	%edi, %r8d
	movq	%rax, %rdi
	call	queen_eight
	jmp	.L15
.L18:
	movl	$0, -4(%rbp)
	jmp	.L19
.L23:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L24
	movl	-52(%rbp), %eax
	subl	-4(%rbp), %eax
	cltq
	leaq	7(%rax), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L24
	movl	-52(%rbp), %edx
	movl	-4(%rbp), %eax
	addl	%edx, %eax
	movslq	%eax, %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L24
	movl	-52(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-4(%rbp), %edx
	movb	%dl, (%rax)
	movl	-52(%rbp), %edx
	movl	-4(%rbp), %eax
	addl	%edx, %eax
	movslq	%eax, %rdx
	movq	-48(%rbp), %rax
	addq	%rax, %rdx
	movb	$1, (%rdx)
	movl	-52(%rbp), %eax
	subl	-4(%rbp), %eax
	cltq
	leaq	7(%rax), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movzbl	(%rdx), %edx
	movb	%dl, (%rax)
	movl	-4(%rbp), %edx
	movslq	%edx, %rcx
	movq	-32(%rbp), %rdx
	addq	%rcx, %rdx
	movzbl	(%rax), %eax
	movb	%al, (%rdx)
	movl	-52(%rbp), %eax
	leal	1(%rax), %edi
	movq	-48(%rbp), %rcx
	movq	-40(%rbp), %rdx
	movq	-32(%rbp), %rsi
	movq	-24(%rbp), %rax
	movl	%edi, %r8d
	movq	%rax, %rdi
	call	queen_eight
	movl	-52(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movb	$9, (%rax)
	movl	-52(%rbp), %edx
	movl	-4(%rbp), %eax
	addl	%edx, %eax
	movslq	%eax, %rdx
	movq	-48(%rbp), %rax
	addq	%rax, %rdx
	movb	$0, (%rdx)
	movl	-52(%rbp), %eax
	subl	-4(%rbp), %eax
	cltq
	leaq	7(%rax), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movzbl	(%rdx), %edx
	movb	%dl, (%rax)
	movl	-4(%rbp), %edx
	movslq	%edx, %rcx
	movq	-32(%rbp), %rdx
	addq	%rcx, %rdx
	movzbl	(%rax), %eax
	movb	%al, (%rdx)
	jmp	.L22
.L24:
	nop
.L22:
	addl	$1, -4(%rbp)
.L19:
	cmpl	$7, -4(%rbp)
	jle	.L23
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	queen_eight, .-queen_eight
	.globl	main
	.type	main, @function
main:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$96, %rsp
	movl	%edi, -84(%rbp)
	movq	%rsi, -96(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movabsq	$651061555542690057, %rax
	movq	%rax, -54(%rbp)
	movq	$0, -46(%rbp)
	movq	$0, -38(%rbp)
	movl	$0, -30(%rbp)
	movw	$0, -26(%rbp)
	movb	$0, -24(%rbp)
	movq	$0, -23(%rbp)
	movl	$0, -15(%rbp)
	movw	$0, -11(%rbp)
	movb	$0, -9(%rbp)
	movl	$0, %eax
	call	get_uint
	movl	%eax, -68(%rbp)
	movl	$0, -72(%rbp)
	jmp	.L26
.L27:
	movl	$0, %eax
	call	get_uint
	movl	%eax, -64(%rbp)
	movl	$0, %eax
	call	get_uint
	movl	%eax, -60(%rbp)
	movl	-60(%rbp), %eax
	movl	%eax, %edx
	movl	-64(%rbp), %eax
	cltq
	movb	%dl, -54(%rbp,%rax)
	movl	-64(%rbp), %edx
	movl	-60(%rbp), %eax
	addl	%eax, %edx
	movslq	%edx, %rax
	movb	$1, -23(%rbp,%rax)
	movl	-64(%rbp), %eax
	subl	-60(%rbp), %eax
	addl	$7, %eax
	movslq	%edx, %rdx
	movzbl	-23(%rbp,%rdx), %ecx
	movslq	%eax, %rdx
	movb	%cl, -38(%rbp,%rdx)
	cltq
	movzbl	-38(%rbp,%rax), %edx
	movl	-60(%rbp), %eax
	cltq
	movb	%dl, -46(%rbp,%rax)
	addl	$1, -72(%rbp)
.L26:
	movl	-72(%rbp), %eax
	cmpl	-68(%rbp), %eax
	jl	.L27
	leaq	-23(%rbp), %rcx
	leaq	-38(%rbp), %rdx
	leaq	-46(%rbp), %rsi
	leaq	-54(%rbp), %rax
	movl	$0, %r8d
	movq	%rax, %rdi
	call	queen_eight
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.globl	get_uint
	.type	get_uint, @function
get_uint:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$0, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
	cmpl	$47, -4(%rbp)
	jle	.L2
	cmpl	$57, -4(%rbp)
	jle	.L5
.L2:
	movl	-4(%rbp), %eax
	jmp	.L4
.L7:
	movl	-8(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	andl	$15, %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
.L5:
	cmpl	$47, -4(%rbp)
	jle	.L6
	cmpl	$57, -4(%rbp)
	jle	.L7
.L6:
	movl	-8(%rbp), %eax
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	get_uint, .-get_uint
	.globl	print
	.type	print, @function
print:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L9
.L14:
	movl	$0, -4(%rbp)
	jmp	.L10
.L13:
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movzbl	%al, %eax
	cmpl	%eax, -4(%rbp)
	jne	.L11
	movl	$81, %eax
	jmp	.L12
.L11:
	movl	$46, %eax
.L12:
	movl	%eax, %edi
	call	putchar_unlocked@PLT
	addl	$1, -4(%rbp)
.L10:
	cmpl	$7, -4(%rbp)
	jle	.L13
	movl	$10, %edi
	call	putchar_unlocked@PLT
	addl	$1, -8(%rbp)
.L9:
	cmpl	$7, -8(%rbp)
	jle	.L14
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	print, .-print
	.globl	queen_eight
	.type	queen_eight, @function
queen_eight:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movq	%rcx, -48(%rbp)
	movl	%r8d, -52(%rbp)
	cmpl	$8, -52(%rbp)
	jne	.L16
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	print
	jmp	.L15
.L16:
	movl	-52(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$9, %al
	je	.L18
	movl	-52(%rbp), %eax
	leal	1(%rax), %edi
	movq	-48(%rbp), %rcx
	movq	-40(%rbp), %rdx
	movq	-32(%rbp), %rsi
	movq	-24(%rbp), %rax
	movl	%edi, %r8d
	movq	%rax, %rdi
	call	queen_eight
	jmp	.L15
.L18:
	movl	$0, -4(%rbp)
	jmp	.L19
.L23:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L24
	movl	-52(%rbp), %eax
	subl	-4(%rbp), %eax
	cltq
	leaq	7(%rax), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L24
	movl	-52(%rbp), %edx
	movl	-4(%rbp), %eax
	addl	%edx, %eax
	movslq	%eax, %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L24
	movl	-52(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-4(%rbp), %edx
	movb	%dl, (%rax)
	movl	-52(%rbp), %edx
	movl	-4(%rbp), %eax
	addl	%edx, %eax
	movslq	%eax, %rdx
	movq	-48(%rbp), %rax
	addq	%rax, %rdx
	movb	$1, (%rdx)
	movl	-52(%rbp), %eax
	subl	-4(%rbp), %eax
	cltq
	leaq	7(%rax), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movzbl	(%rdx), %edx
	movb	%dl, (%rax)
	movl	-4(%rbp), %edx
	movslq	%edx, %rcx
	movq	-32(%rbp), %rdx
	addq	%rcx, %rdx
	movzbl	(%rax), %eax
	movb	%al, (%rdx)
	movl	-52(%rbp), %eax
	leal	1(%rax), %edi
	movq	-48(%rbp), %rcx
	movq	-40(%rbp), %rdx
	movq	-32(%rbp), %rsi
	movq	-24(%rbp), %rax
	movl	%edi, %r8d
	movq	%rax, %rdi
	call	queen_eight
	movl	-52(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movb	$9, (%rax)
	movl	-52(%rbp), %edx
	movl	-4(%rbp), %eax
	addl	%edx, %eax
	movslq	%eax, %rdx
	movq	-48(%rbp), %rax
	addq	%rax, %rdx
	movb	$0, (%rdx)
	movl	-52(%rbp), %eax
	subl	-4(%rbp), %eax
	cltq
	leaq	7(%rax), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movzbl	(%rdx), %edx
	movb	%dl, (%rax)
	movl	-4(%rbp), %edx
	movslq	%edx, %rcx
	movq	-32(%rbp), %rdx
	addq	%rcx, %rdx
	movzbl	(%rax), %eax
	movb	%al, (%rdx)
	jmp	.L22
.L24:
	nop
.L22:
	addl	$1, -4(%rbp)
.L19:
	cmpl	$7, -4(%rbp)
	jle	.L23
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	queen_eight, .-queen_eight
	.globl	main
	.type	main, @function
main:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$96, %rsp
	movl	%edi, -84(%rbp)
	movq	%rsi, -96(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movabsq	$651061555542690057, %rax
	movq	%rax, -54(%rbp)
	movq	$0, -46(%rbp)
	movq	$0, -38(%rbp)
	movl	$0, -30(%rbp)
	movw	$0, -26(%rbp)
	movb	$0, -24(%rbp)
	movq	$0, -23(%rbp)
	movl	$0, -15(%rbp)
	movw	$0, -11(%rbp)
	movb	$0, -9(%rbp)
	movl	$0, %eax
	call	get_uint
	movl	%eax, -68(%rbp)
	movl	$0, -72(%rbp)
	jmp	.L26
.L27:
	movl	$0, %eax
	call	get_uint
	movl	%eax, -64(%rbp)
	movl	$0, %eax
	call	get_uint
	movl	%eax, -60(%rbp)
	movl	-60(%rbp), %eax
	movl	%eax, %edx
	movl	-64(%rbp), %eax
	cltq
	movb	%dl, -54(%rbp,%rax)
	movl	-64(%rbp), %edx
	movl	-60(%rbp), %eax
	addl	%eax, %edx
	movslq	%edx, %rax
	movb	$1, -23(%rbp,%rax)
	movl	-64(%rbp), %eax
	subl	-60(%rbp), %eax
	addl	$7, %eax
	movslq	%edx, %rdx
	movzbl	-23(%rbp,%rdx), %ecx
	movslq	%eax, %rdx
	movb	%cl, -38(%rbp,%rdx)
	cltq
	movzbl	-38(%rbp,%rax), %edx
	movl	-60(%rbp), %eax
	cltq
	movb	%dl, -46(%rbp,%rax)
	addl	$1, -72(%rbp)
.L26:
	movl	-72(%rbp), %eax
	cmpl	-68(%rbp), %eax
	jl	.L27
	leaq	-23(%rbp), %rcx
	leaq	-38(%rbp), %rdx
	leaq	-46(%rbp), %rsi
	leaq	-54(%rbp), %rax
	movl	$0, %r8d
	movq	%rax, %rdi
	call	queen_eight
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
