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

```c
#include <math.h>
#include <stdbool.h>
#include <stdio.h>
int main() {
	int n, p[8], q[8], t[8], pCnt, qCnt, cnt = 0;
	bool isUse[8], isPerm, isP, isQ;
	scanf("%d", &n);
	for (int i = 0; i < n; i++) {
		scanf("%d", &p[i]);
	}
	for (int i = 0; i < n; i++) {
		scanf("%d", &q[i]);
	}
    int l = pow(n, n) - 1;
	for (int i = 0; i < l; i++) {
		int num = i;
		isPerm = true;
		for (int j = 0; j < n; j++) {
			isUse[j] = false;
		}
		for (int j = 0; j < n; j++) {
			t[j] = num % n + 1;
			isUse[t[j] - 1] = true;
			num /= n;
		}
		for (int j = 0; j < n; j++) {
			if (!isUse[j]) {
				isPerm = false;
				break;
			}
		}
		if (isPerm) {
			cnt++;
			isP = isQ = true;
			for (int j = 0; j < n; j++) {
				if (t[n - j - 1] != p[j]) {
					isP = false;
				}
				if (t[n - j - 1] != q[j]) {
					isQ = false;
				}
				if (!isQ && !isP)
					break;
			}
			if (isP) {
				pCnt = cnt;
			}
			if (isQ) {
				qCnt = cnt;
			}
		}
	}
	printf("%d\n", abs(pCnt - qCnt));
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$176, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -160(%rbp)
	leaq	-172(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -156(%rbp)
	jmp	.L2
.L3:
	leaq	-112(%rbp), %rdx
	movl	-156(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -156(%rbp)
.L2:
	movl	-172(%rbp), %eax
	cmpl	%eax, -156(%rbp)
	jl	.L3
	movl	$0, -152(%rbp)
	jmp	.L4
.L5:
	leaq	-80(%rbp), %rdx
	movl	-152(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -152(%rbp)
.L4:
	movl	-172(%rbp), %eax
	cmpl	%eax, -152(%rbp)
	jl	.L5
	movl	-172(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movl	-172(%rbp), %eax
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%eax, %xmm2
	movq	%xmm2, %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	movq	%xmm0, %rax
	movsd	.LC1(%rip), %xmm0
	movq	%rax, %xmm1
	subsd	%xmm0, %xmm1
	cvttsd2sil	%xmm1, %eax
	movl	%eax, -124(%rbp)
	movl	$0, -148(%rbp)
	jmp	.L6
.L23:
	movl	-148(%rbp), %eax
	movl	%eax, -144(%rbp)
	movb	$1, -175(%rbp)
	movl	$0, -140(%rbp)
	jmp	.L7
.L8:
	movl	-140(%rbp), %eax
	cltq
	movb	$0, -120(%rbp,%rax)
	addl	$1, -140(%rbp)
.L7:
	movl	-172(%rbp), %eax
	cmpl	%eax, -140(%rbp)
	jl	.L8
	movl	$0, -136(%rbp)
	jmp	.L9
.L10:
	movl	-172(%rbp), %ecx
	movl	-144(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, %eax
	leal	1(%rax), %edx
	movl	-136(%rbp), %eax
	cltq
	movl	%edx, -48(%rbp,%rax,4)
	movl	-136(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %eax
	subl	$1, %eax
	cltq
	movb	$1, -120(%rbp,%rax)
	movl	-172(%rbp), %ecx
	movl	-144(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%eax, -144(%rbp)
	addl	$1, -136(%rbp)
.L9:
	movl	-172(%rbp), %eax
	cmpl	%eax, -136(%rbp)
	jl	.L10
	movl	$0, -132(%rbp)
	jmp	.L11
.L14:
	movl	-132(%rbp), %eax
	cltq
	movzbl	-120(%rbp,%rax), %eax
	xorl	$1, %eax
	testb	%al, %al
	je	.L12
	movb	$0, -175(%rbp)
	jmp	.L13
.L12:
	addl	$1, -132(%rbp)
.L11:
	movl	-172(%rbp), %eax
	cmpl	%eax, -132(%rbp)
	jl	.L14
.L13:
	cmpb	$0, -175(%rbp)
	je	.L15
	addl	$1, -160(%rbp)
	movb	$1, -173(%rbp)
	movzbl	-173(%rbp), %eax
	movb	%al, -174(%rbp)
	movl	$0, -128(%rbp)
	jmp	.L16
.L21:
	movl	-172(%rbp), %eax
	subl	-128(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-48(%rbp,%rax,4), %edx
	movl	-128(%rbp), %eax
	cltq
	movl	-112(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	je	.L17
	movb	$0, -174(%rbp)
.L17:
	movl	-172(%rbp), %eax
	subl	-128(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-48(%rbp,%rax,4), %edx
	movl	-128(%rbp), %eax
	cltq
	movl	-80(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	je	.L18
	movb	$0, -173(%rbp)
.L18:
	movzbl	-173(%rbp), %eax
	xorl	$1, %eax
	testb	%al, %al
	je	.L19
	movzbl	-174(%rbp), %eax
	xorl	$1, %eax
	testb	%al, %al
	jne	.L26
.L19:
	addl	$1, -128(%rbp)
.L16:
	movl	-172(%rbp), %eax
	cmpl	%eax, -128(%rbp)
	jl	.L21
	jmp	.L20
.L26:
	nop
.L20:
	cmpb	$0, -174(%rbp)
	je	.L22
	movl	-160(%rbp), %eax
	movl	%eax, -168(%rbp)
.L22:
	cmpb	$0, -173(%rbp)
	je	.L15
	movl	-160(%rbp), %eax
	movl	%eax, -164(%rbp)
.L15:
	addl	$1, -148(%rbp)
.L6:
	movl	-148(%rbp), %eax
	cmpl	-124(%rbp), %eax
	jl	.L23
	movl	-168(%rbp), %eax
	subl	-164(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1072693248
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$152, %rsp
	.cfi_def_cfa_offset 208
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %r15d
	testl	%r15d, %r15d
	jle	.L2
	leaq	32(%rsp), %r12
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %r15d
	addq	$4, %r12
	cmpl	%ebx, %r15d
	jg	.L3
	testl	%r15d, %r15d
	jle	.L2
	leaq	64(%rsp), %r12
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %r15d
	addq	$4, %r12
	cmpl	%ebx, %r15d
	jg	.L4
.L2:
	pxor	%xmm1, %xmm1
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	cvtsi2sdl	%r15d, %xmm1
	movapd	%xmm1, %xmm0
	call	pow@PLT
	subsd	.LC1(%rip), %xmm0
	cvttsd2sil	%xmm0, %ebx
	testl	%ebx, %ebx
	jle	.L6
	leal	-1(%r15), %eax
	movslq	%r15d, %r13
	leaq	24(%rsp), %rdi
	cltq
	movq	%rax, (%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L16:
	movq	%r13, %rdx
	xorl	%esi, %esi
	call	memset@PLT
	movq	%rax, %rdi
	movl	%r14d, %eax
	cltd
	idivl	%r15d
	movslq	%edx, %r9
	leal	1(%r9), %edx
	movl	%edx, 96(%rsp)
	cmpl	$1, %r15d
	je	.L7
	cltd
	idivl	%r15d
	movslq	%edx, %r10
	movl	%eax, %esi
	leal	1(%r10), %eax
	movl	%eax, 100(%rsp)
	cmpl	$2, %r15d
	je	.L8
	movl	%esi, %eax
	cltd
	idivl	%r15d
	addl	$1, %edx
	movl	%edx, 104(%rsp)
	cmpl	$3, %r15d
	je	.L8
	cltd
	idivl	%r15d
	addl	$1, %edx
	movl	%edx, 108(%rsp)
	cmpl	$4, %r15d
	je	.L8
	cltd
	idivl	%r15d
	addl	$1, %edx
	movl	%edx, 112(%rsp)
	cmpl	$5, %r15d
	je	.L8
	cltd
	idivl	%r15d
	addl	$1, %edx
	movl	%edx, 116(%rsp)
	cmpl	$6, %r15d
	je	.L8
	cltd
	idivl	%r15d
	addl	$1, %edx
	movl	%edx, 120(%rsp)
	cmpl	$7, %r15d
	je	.L8
	cltd
	idivl	%r15d
	addl	$1, %edx
	movl	%edx, 124(%rsp)
.L8:
	movb	$1, 24(%rsp,%r9)
	movb	$1, 24(%rsp,%r10)
	cmpl	$2, %r15d
	je	.L9
	movl	%esi, %eax
	cltd
	idivl	%r15d
	movslq	%edx, %rdx
	movb	$1, 24(%rsp,%rdx)
	cmpl	$3, %r15d
	je	.L9
	cltd
	idivl	%r15d
	movslq	%edx, %rdx
	movb	$1, 24(%rsp,%rdx)
	cmpl	$4, %r15d
	je	.L9
	cltd
	idivl	%r15d
	movslq	%edx, %rdx
	movb	$1, 24(%rsp,%rdx)
	cmpl	$5, %r15d
	je	.L9
	cltd
	idivl	%r15d
	movslq	%edx, %rdx
	movb	$1, 24(%rsp,%rdx)
	cmpl	$6, %r15d
	je	.L9
	cltd
	idivl	%r15d
	movslq	%edx, %rdx
	movb	$1, 24(%rsp,%rdx)
	cmpl	$7, %r15d
	je	.L9
	cltd
	idivl	%r15d
	movslq	%edx, %rdx
	movb	$1, 24(%rsp,%rdx)
.L9:
	cmpb	$0, 24(%rsp)
	je	.L10
	cmpb	$0, 25(%rsp)
	je	.L10
	cmpl	$2, %r15d
	je	.L11
	cmpb	$0, 26(%rsp)
	je	.L10
	cmpl	$3, %r15d
	je	.L11
	cmpb	$0, 27(%rsp)
	je	.L10
	cmpl	$4, %r15d
	je	.L11
	cmpb	$0, 28(%rsp)
	je	.L10
	cmpl	$5, %r15d
	je	.L11
	cmpb	$0, 29(%rsp)
	je	.L10
	cmpl	$6, %r15d
	je	.L11
	cmpb	$0, 30(%rsp)
	je	.L10
	cmpl	$7, %r15d
	je	.L11
	cmpb	$0, 31(%rsp)
	je	.L10
.L11:
	movq	(%rsp), %rax
	addl	$1, %r12d
	movl	96(%rsp,%rax,4), %eax
	cmpl	32(%rsp), %eax
	je	.L18
	cmpl	64(%rsp), %eax
	je	.L157
	.p2align 4,,10
	.p2align 3
.L10:
	addl	$1, %r14d
	cmpl	%r14d, %ebx
	je	.L6
.L5:
	testl	%r15d, %r15d
	jg	.L16
	leal	1(%r12), %ebp
	addl	$1, %r14d
	movl	%ebp, 12(%rsp)
	movl	%ebp, %r12d
	cmpl	%r14d, %ebx
	jne	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	subl	12(%rsp), %ebp
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	movl	%ebp, %edx
	negl	%edx
	cmovs	%ebp, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L158
	addq	$152, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	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
.L7:
	.cfi_restore_state
	movb	$1, 24(%rsp,%r9)
	cmpb	$0, 24(%rsp)
	je	.L10
	jmp	.L11
.L18:
	cmpl	64(%rsp), %eax
	je	.L20
	movl	$1, %esi
	xorl	%edx, %edx
	cmpl	$1, %r15d
	jne	.L21
.L154:
	movl	%r12d, %ebp
	jmp	.L10
.L20:
	cmpl	$1, %r15d
	je	.L51
	movl	$1, %esi
	movl	$1, %edx
.L21:
	leal	-2(%r15), %eax
	cltq
	movl	96(%rsp,%rax,4), %eax
	cmpl	%eax, 36(%rsp)
	je	.L23
	xorl	%esi, %esi
	cmpl	68(%rsp), %eax
	jne	.L10
.L24:
	movl	%esi, %eax
	orl	%edx, %esi
.L25:
	testb	%sil, %sil
	je	.L10
	cmpl	$2, %r15d
	je	.L26
	leal	-3(%r15), %esi
	movslq	%esi, %rsi
	movl	96(%rsp,%rsi,4), %esi
	cmpl	40(%rsp), %esi
	je	.L27
	xorl	%eax, %eax
	cmpl	72(%rsp), %esi
	jne	.L10
.L28:
	movl	%edx, %esi
	orl	%eax, %esi
.L29:
	testb	%sil, %sil
	je	.L10
	cmpl	$3, %r15d
	je	.L26
	leal	-4(%r15), %esi
	movslq	%esi, %rsi
	movl	96(%rsp,%rsi,4), %esi
	cmpl	44(%rsp), %esi
	je	.L30
	xorl	%eax, %eax
	cmpl	76(%rsp), %esi
	jne	.L10
.L31:
	movl	%edx, %esi
	orl	%eax, %esi
.L32:
	testb	%sil, %sil
	je	.L10
	cmpl	$4, %r15d
	je	.L26
	leal	-5(%r15), %esi
	movslq	%esi, %rsi
	movl	96(%rsp,%rsi,4), %esi
	cmpl	48(%rsp), %esi
	je	.L33
	xorl	%eax, %eax
	cmpl	80(%rsp), %esi
	jne	.L10
.L34:
	movl	%edx, %esi
	orl	%eax, %esi
.L35:
	testb	%sil, %sil
	je	.L10
	cmpl	$5, %r15d
	je	.L26
	leal	-6(%r15), %esi
	movslq	%esi, %rsi
	movl	96(%rsp,%rsi,4), %esi
	cmpl	52(%rsp), %esi
	je	.L36
	xorl	%eax, %eax
	cmpl	84(%rsp), %esi
	jne	.L10
.L37:
	movl	%edx, %esi
	orl	%eax, %esi
.L38:
	testb	%sil, %sil
	je	.L10
	cmpl	$6, %r15d
	je	.L26
	leal	-7(%r15), %esi
	movslq	%esi, %rsi
	movl	96(%rsp,%rsi,4), %esi
	cmpl	56(%rsp), %esi
	je	.L39
	xorl	%eax, %eax
	cmpl	%esi, 88(%rsp)
	jne	.L10
.L40:
	movl	%eax, %esi
	orl	%edx, %esi
.L41:
	testb	%sil, %sil
	je	.L10
	cmpl	$7, %r15d
	je	.L26
	leal	-8(%r15), %esi
	movslq	%esi, %rsi
	movl	96(%rsp,%rsi,4), %esi
	cmpl	60(%rsp), %esi
	je	.L12
	cmpl	92(%rsp), %esi
	jne	.L10
	jmp	.L153
.L12:
	cmpl	92(%rsp), %esi
	movl	%eax, %esi
	je	.L159
	xorl	%edx, %edx
.L14:
	testb	%sil, %sil
	je	.L10
.L26:
	testb	%al, %al
	cmovne	%r12d, %ebp
.L153:
	testb	%dl, %dl
	je	.L10
.L155:
	movl	%r12d, 12(%rsp)
	jmp	.L10
.L23:
	cmpl	%eax, 68(%rsp)
	je	.L24
	movl	%esi, %eax
	xorl	%edx, %edx
	jmp	.L25
.L27:
	cmpl	72(%rsp), %esi
	je	.L28
	movl	%eax, %esi
	xorl	%edx, %edx
	jmp	.L29
.L30:
	cmpl	76(%rsp), %esi
	je	.L31
	movl	%eax, %esi
	xorl	%edx, %edx
	jmp	.L32
.L157:
	xorl	%esi, %esi
	movl	$1, %edx
	cmpl	$1, %r15d
	jne	.L21
	jmp	.L155
.L33:
	cmpl	80(%rsp), %esi
	je	.L34
	movl	%eax, %esi
	xorl	%edx, %edx
	jmp	.L35
.L36:
	cmpl	84(%rsp), %esi
	je	.L37
	movl	%eax, %esi
	xorl	%edx, %edx
	jmp	.L38
.L39:
	cmpl	88(%rsp), %esi
	je	.L40
	movl	%eax, %esi
	xorl	%edx, %edx
	jmp	.L41
.L159:
	orl	%edx, %esi
	jmp	.L14
.L51:
	movl	%r12d, 12(%rsp)
	jmp	.L154
.L158:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1072693248
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$152, %rsp
	.cfi_def_cfa_offset 208
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %r15d
	testl	%r15d, %r15d
	jle	.L2
	leaq	32(%rsp), %r12
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %r15d
	addq	$4, %r12
	cmpl	%ebx, %r15d
	jg	.L3
	testl	%r15d, %r15d
	jle	.L2
	leaq	64(%rsp), %r12
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %r15d
	addq	$4, %r12
	cmpl	%ebx, %r15d
	jg	.L4
.L2:
	pxor	%xmm1, %xmm1
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	cvtsi2sdl	%r15d, %xmm1
	movapd	%xmm1, %xmm0
	call	pow@PLT
	subsd	.LC1(%rip), %xmm0
	cvttsd2sil	%xmm0, %ebx
	testl	%ebx, %ebx
	jle	.L6
	leal	-1(%r15), %eax
	movslq	%r15d, %r13
	leaq	24(%rsp), %rdi
	cltq
	movq	%rax, (%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L16:
	movq	%r13, %rdx
	xorl	%esi, %esi
	call	memset@PLT
	movq	%rax, %rdi
	movl	%r14d, %eax
	cltd
	idivl	%r15d
	movslq	%edx, %r9
	leal	1(%r9), %edx
	movl	%edx, 96(%rsp)
	cmpl	$1, %r15d
	je	.L7
	cltd
	idivl	%r15d
	movslq	%edx, %r10
	movl	%eax, %esi
	leal	1(%r10), %eax
	movl	%eax, 100(%rsp)
	cmpl	$2, %r15d
	je	.L8
	movl	%esi, %eax
	cltd
	idivl	%r15d
	addl	$1, %edx
	movl	%edx, 104(%rsp)
	cmpl	$3, %r15d
	je	.L8
	cltd
	idivl	%r15d
	addl	$1, %edx
	movl	%edx, 108(%rsp)
	cmpl	$4, %r15d
	je	.L8
	cltd
	idivl	%r15d
	addl	$1, %edx
	movl	%edx, 112(%rsp)
	cmpl	$5, %r15d
	je	.L8
	cltd
	idivl	%r15d
	addl	$1, %edx
	movl	%edx, 116(%rsp)
	cmpl	$6, %r15d
	je	.L8
	cltd
	idivl	%r15d
	addl	$1, %edx
	movl	%edx, 120(%rsp)
	cmpl	$7, %r15d
	je	.L8
	cltd
	idivl	%r15d
	addl	$1, %edx
	movl	%edx, 124(%rsp)
.L8:
	movb	$1, 24(%rsp,%r9)
	movb	$1, 24(%rsp,%r10)
	cmpl	$2, %r15d
	je	.L9
	movl	%esi, %eax
	cltd
	idivl	%r15d
	movslq	%edx, %rdx
	movb	$1, 24(%rsp,%rdx)
	cmpl	$3, %r15d
	je	.L9
	cltd
	idivl	%r15d
	movslq	%edx, %rdx
	movb	$1, 24(%rsp,%rdx)
	cmpl	$4, %r15d
	je	.L9
	cltd
	idivl	%r15d
	movslq	%edx, %rdx
	movb	$1, 24(%rsp,%rdx)
	cmpl	$5, %r15d
	je	.L9
	cltd
	idivl	%r15d
	movslq	%edx, %rdx
	movb	$1, 24(%rsp,%rdx)
	cmpl	$6, %r15d
	je	.L9
	cltd
	idivl	%r15d
	movslq	%edx, %rdx
	movb	$1, 24(%rsp,%rdx)
	cmpl	$7, %r15d
	je	.L9
	cltd
	idivl	%r15d
	movslq	%edx, %rdx
	movb	$1, 24(%rsp,%rdx)
.L9:
	cmpb	$0, 24(%rsp)
	je	.L10
	cmpb	$0, 25(%rsp)
	je	.L10
	cmpl	$2, %r15d
	je	.L11
	cmpb	$0, 26(%rsp)
	je	.L10
	cmpl	$3, %r15d
	je	.L11
	cmpb	$0, 27(%rsp)
	je	.L10
	cmpl	$4, %r15d
	je	.L11
	cmpb	$0, 28(%rsp)
	je	.L10
	cmpl	$5, %r15d
	je	.L11
	cmpb	$0, 29(%rsp)
	je	.L10
	cmpl	$6, %r15d
	je	.L11
	cmpb	$0, 30(%rsp)
	je	.L10
	cmpl	$7, %r15d
	je	.L11
	cmpb	$0, 31(%rsp)
	je	.L10
.L11:
	movq	(%rsp), %rax
	addl	$1, %r12d
	movl	96(%rsp,%rax,4), %eax
	cmpl	32(%rsp), %eax
	je	.L18
	cmpl	64(%rsp), %eax
	je	.L157
	.p2align 4,,10
	.p2align 3
.L10:
	addl	$1, %r14d
	cmpl	%r14d, %ebx
	je	.L6
.L5:
	testl	%r15d, %r15d
	jg	.L16
	leal	1(%r12), %ebp
	addl	$1, %r14d
	movl	%ebp, 12(%rsp)
	movl	%ebp, %r12d
	cmpl	%r14d, %ebx
	jne	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	subl	12(%rsp), %ebp
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	movl	%ebp, %edx
	negl	%edx
	cmovs	%ebp, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L158
	addq	$152, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	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
.L7:
	.cfi_restore_state
	movb	$1, 24(%rsp,%r9)
	cmpb	$0, 24(%rsp)
	je	.L10
	jmp	.L11
.L18:
	cmpl	64(%rsp), %eax
	je	.L20
	movl	$1, %esi
	xorl	%edx, %edx
	cmpl	$1, %r15d
	jne	.L21
.L154:
	movl	%r12d, %ebp
	jmp	.L10
.L20:
	cmpl	$1, %r15d
	je	.L51
	movl	$1, %esi
	movl	$1, %edx
.L21:
	leal	-2(%r15), %eax
	cltq
	movl	96(%rsp,%rax,4), %eax
	cmpl	%eax, 36(%rsp)
	je	.L23
	xorl	%esi, %esi
	cmpl	68(%rsp), %eax
	jne	.L10
.L24:
	movl	%esi, %eax
	orl	%edx, %esi
.L25:
	testb	%sil, %sil
	je	.L10
	cmpl	$2, %r15d
	je	.L26
	leal	-3(%r15), %esi
	movslq	%esi, %rsi
	movl	96(%rsp,%rsi,4), %esi
	cmpl	40(%rsp), %esi
	je	.L27
	xorl	%eax, %eax
	cmpl	72(%rsp), %esi
	jne	.L10
.L28:
	movl	%edx, %esi
	orl	%eax, %esi
.L29:
	testb	%sil, %sil
	je	.L10
	cmpl	$3, %r15d
	je	.L26
	leal	-4(%r15), %esi
	movslq	%esi, %rsi
	movl	96(%rsp,%rsi,4), %esi
	cmpl	44(%rsp), %esi
	je	.L30
	xorl	%eax, %eax
	cmpl	76(%rsp), %esi
	jne	.L10
.L31:
	movl	%edx, %esi
	orl	%eax, %esi
.L32:
	testb	%sil, %sil
	je	.L10
	cmpl	$4, %r15d
	je	.L26
	leal	-5(%r15), %esi
	movslq	%esi, %rsi
	movl	96(%rsp,%rsi,4), %esi
	cmpl	48(%rsp), %esi
	je	.L33
	xorl	%eax, %eax
	cmpl	80(%rsp), %esi
	jne	.L10
.L34:
	movl	%edx, %esi
	orl	%eax, %esi
.L35:
	testb	%sil, %sil
	je	.L10
	cmpl	$5, %r15d
	je	.L26
	leal	-6(%r15), %esi
	movslq	%esi, %rsi
	movl	96(%rsp,%rsi,4), %esi
	cmpl	52(%rsp), %esi
	je	.L36
	xorl	%eax, %eax
	cmpl	84(%rsp), %esi
	jne	.L10
.L37:
	movl	%edx, %esi
	orl	%eax, %esi
.L38:
	testb	%sil, %sil
	je	.L10
	cmpl	$6, %r15d
	je	.L26
	leal	-7(%r15), %esi
	movslq	%esi, %rsi
	movl	96(%rsp,%rsi,4), %esi
	cmpl	56(%rsp), %esi
	je	.L39
	xorl	%eax, %eax
	cmpl	%esi, 88(%rsp)
	jne	.L10
.L40:
	movl	%eax, %esi
	orl	%edx, %esi
.L41:
	testb	%sil, %sil
	je	.L10
	cmpl	$7, %r15d
	je	.L26
	leal	-8(%r15), %esi
	movslq	%esi, %rsi
	movl	96(%rsp,%rsi,4), %esi
	cmpl	60(%rsp), %esi
	je	.L12
	cmpl	92(%rsp), %esi
	jne	.L10
	jmp	.L153
.L12:
	cmpl	92(%rsp), %esi
	movl	%eax, %esi
	je	.L159
	xorl	%edx, %edx
.L14:
	testb	%sil, %sil
	je	.L10
.L26:
	testb	%al, %al
	cmovne	%r12d, %ebp
.L153:
	testb	%dl, %dl
	je	.L10
.L155:
	movl	%r12d, 12(%rsp)
	jmp	.L10
.L23:
	cmpl	%eax, 68(%rsp)
	je	.L24
	movl	%esi, %eax
	xorl	%edx, %edx
	jmp	.L25
.L27:
	cmpl	72(%rsp), %esi
	je	.L28
	movl	%eax, %esi
	xorl	%edx, %edx
	jmp	.L29
.L30:
	cmpl	76(%rsp), %esi
	je	.L31
	movl	%eax, %esi
	xorl	%edx, %edx
	jmp	.L32
.L157:
	xorl	%esi, %esi
	movl	$1, %edx
	cmpl	$1, %r15d
	jne	.L21
	jmp	.L155
.L33:
	cmpl	80(%rsp), %esi
	je	.L34
	movl	%eax, %esi
	xorl	%edx, %edx
	jmp	.L35
.L36:
	cmpl	84(%rsp), %esi
	je	.L37
	movl	%eax, %esi
	xorl	%edx, %edx
	jmp	.L38
.L39:
	cmpl	88(%rsp), %esi
	je	.L40
	movl	%eax, %esi
	xorl	%edx, %edx
	jmp	.L41
.L159:
	orl	%edx, %esi
	jmp	.L14
.L51:
	movl	%r12d, 12(%rsp)
	jmp	.L154
.L158:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1072693248
	.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 <math.h>
#include <stdbool.h>
#include <stdio.h>
int main() {
	int n, p[8], q[8], t[8], pCnt, qCnt, cnt = 0;
	bool isUse[8], isPerm, isP, isQ;
	scanf("%d", &n);
	for (int i = 0; i < n; i++) {
		scanf("%d", &p[i]);
	}
	for (int i = 0; i < n; i++) {
		scanf("%d", &q[i]);
	}
    int l = pow(n, n) - 1;
	for (int i = 0; i < l; i++) {
		int num = i;
		isPerm = true;
		for (int j = 0; j < n; j++) {
			isUse[j] = false;
		}
		for (int j = 0; j < n; j++) {
			t[j] = num % n + 1;
			isUse[t[j] - 1] = true;
			num /= n;
		}
		for (int j = 0; j < n; j++) {
			if (!isUse[j]) {
				isPerm = false;
				break;
			}
		}
		if (isPerm) {
			cnt++;
			isP = isQ = true;
			for (int j = 0; j < n; j++) {
				if (t[n - j - 1] != p[j]) {
					isP = false;
				}
				if (t[n - j - 1] != q[j]) {
					isQ = false;
				}
				if (!isQ && !isP)
					break;
			}
			if (isP) {
				pCnt = cnt;
			}
			if (isQ) {
				qCnt = cnt;
			}
		}
	}
	printf("%d\n", abs(pCnt - qCnt));
	return 0;
}
3
1 3 2
3 1 2

3

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

```c
#include <math.h>
#include <stdbool.h>
#include <stdio.h>
int main() {
	int n, p[8], q[8], t[8], pCnt, qCnt, cnt = 0;
	bool isUse[8], isPerm, isP, isQ;
	scanf("%d", &n);
	for (int i = 0; i < n; i++) {
		scanf("%d", &p[i]);
	}
	for (int i = 0; i < n; i++) {
		scanf("%d", &q[i]);
	}
    int l = pow(n, n) - 1;
	for (int i = 0; i < l; i++) {
		int num = i;
		isPerm = true;
		for (int j = 0; j < n; j++) {
			isUse[j] = false;
		}
		for (int j = 0; j < n; j++) {
			t[j] = num % n + 1;
			isUse[t[j] - 1] = true;
			num /= n;
		}
		for (int j = 0; j < n; j++) {
			if (!isUse[j]) {
				isPerm = false;
				break;
			}
		}
		if (isPerm) {
			cnt++;
			isP = isQ = true;
			for (int j = 0; j < n; j++) {
				if (t[n - j - 1] != p[j]) {
					isP = false;
				}
				if (t[n - j - 1] != q[j]) {
					isQ = false;
				}
				if (!isQ && !isP)
					break;
			}
			if (isP) {
				pCnt = cnt;
			}
			if (isQ) {
				qCnt = cnt;
			}
		}
	}
	printf("%d\n", abs(pCnt - qCnt));
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$176, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -160(%rbp)
	leaq	-172(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -156(%rbp)
	jmp	.L2
.L3:
	leaq	-112(%rbp), %rdx
	movl	-156(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -156(%rbp)
.L2:
	movl	-172(%rbp), %eax
	cmpl	%eax, -156(%rbp)
	jl	.L3
	movl	$0, -152(%rbp)
	jmp	.L4
.L5:
	leaq	-80(%rbp), %rdx
	movl	-152(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -152(%rbp)
.L4:
	movl	-172(%rbp), %eax
	cmpl	%eax, -152(%rbp)
	jl	.L5
	movl	-172(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movl	-172(%rbp), %eax
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%eax, %xmm2
	movq	%xmm2, %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	movq	%xmm0, %rax
	movsd	.LC1(%rip), %xmm0
	movq	%rax, %xmm1
	subsd	%xmm0, %xmm1
	cvttsd2sil	%xmm1, %eax
	movl	%eax, -124(%rbp)
	movl	$0, -148(%rbp)
	jmp	.L6
.L23:
	movl	-148(%rbp), %eax
	movl	%eax, -144(%rbp)
	movb	$1, -175(%rbp)
	movl	$0, -140(%rbp)
	jmp	.L7
.L8:
	movl	-140(%rbp), %eax
	cltq
	movb	$0, -120(%rbp,%rax)
	addl	$1, -140(%rbp)
.L7:
	movl	-172(%rbp), %eax
	cmpl	%eax, -140(%rbp)
	jl	.L8
	movl	$0, -136(%rbp)
	jmp	.L9
.L10:
	movl	-172(%rbp), %ecx
	movl	-144(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, %eax
	leal	1(%rax), %edx
	movl	-136(%rbp), %eax
	cltq
	movl	%edx, -48(%rbp,%rax,4)
	movl	-136(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %eax
	subl	$1, %eax
	cltq
	movb	$1, -120(%rbp,%rax)
	movl	-172(%rbp), %ecx
	movl	-144(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%eax, -144(%rbp)
	addl	$1, -136(%rbp)
.L9:
	movl	-172(%rbp), %eax
	cmpl	%eax, -136(%rbp)
	jl	.L10
	movl	$0, -132(%rbp)
	jmp	.L11
.L14:
	movl	-132(%rbp), %eax
	cltq
	movzbl	-120(%rbp,%rax), %eax
	xorl	$1, %eax
	testb	%al, %al
	je	.L12
	movb	$0, -175(%rbp)
	jmp	.L13
.L12:
	addl	$1, -132(%rbp)
.L11:
	movl	-172(%rbp), %eax
	cmpl	%eax, -132(%rbp)
	jl	.L14
.L13:
	cmpb	$0, -175(%rbp)
	je	.L15
	addl	$1, -160(%rbp)
	movb	$1, -173(%rbp)
	movzbl	-173(%rbp), %eax
	movb	%al, -174(%rbp)
	movl	$0, -128(%rbp)
	jmp	.L16
.L21:
	movl	-172(%rbp), %eax
	subl	-128(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-48(%rbp,%rax,4), %edx
	movl	-128(%rbp), %eax
	cltq
	movl	-112(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	je	.L17
	movb	$0, -174(%rbp)
.L17:
	movl	-172(%rbp), %eax
	subl	-128(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-48(%rbp,%rax,4), %edx
	movl	-128(%rbp), %eax
	cltq
	movl	-80(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	je	.L18
	movb	$0, -173(%rbp)
.L18:
	movzbl	-173(%rbp), %eax
	xorl	$1, %eax
	testb	%al, %al
	je	.L19
	movzbl	-174(%rbp), %eax
	xorl	$1, %eax
	testb	%al, %al
	jne	.L26
.L19:
	addl	$1, -128(%rbp)
.L16:
	movl	-172(%rbp), %eax
	cmpl	%eax, -128(%rbp)
	jl	.L21
	jmp	.L20
.L26:
	nop
.L20:
	cmpb	$0, -174(%rbp)
	je	.L22
	movl	-160(%rbp), %eax
	movl	%eax, -168(%rbp)
.L22:
	cmpb	$0, -173(%rbp)
	je	.L15
	movl	-160(%rbp), %eax
	movl	%eax, -164(%rbp)
.L15:
	addl	$1, -148(%rbp)
.L6:
	movl	-148(%rbp), %eax
	cmpl	-124(%rbp), %eax
	jl	.L23
	movl	-168(%rbp), %eax
	subl	-164(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1072693248
	.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
	.section	.rodata
.LC0:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$176, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -160(%rbp)
	leaq	-172(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -156(%rbp)
	jmp	.L2
.L3:
	leaq	-112(%rbp), %rdx
	movl	-156(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -156(%rbp)
.L2:
	movl	-172(%rbp), %eax
	cmpl	%eax, -156(%rbp)
	jl	.L3
	movl	$0, -152(%rbp)
	jmp	.L4
.L5:
	leaq	-80(%rbp), %rdx
	movl	-152(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -152(%rbp)
.L4:
	movl	-172(%rbp), %eax
	cmpl	%eax, -152(%rbp)
	jl	.L5
	movl	-172(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movl	-172(%rbp), %eax
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%eax, %xmm2
	movq	%xmm2, %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	movq	%xmm0, %rax
	movsd	.LC1(%rip), %xmm0
	movq	%rax, %xmm1
	subsd	%xmm0, %xmm1
	cvttsd2sil	%xmm1, %eax
	movl	%eax, -124(%rbp)
	movl	$0, -148(%rbp)
	jmp	.L6
.L23:
	movl	-148(%rbp), %eax
	movl	%eax, -144(%rbp)
	movb	$1, -175(%rbp)
	movl	$0, -140(%rbp)
	jmp	.L7
.L8:
	movl	-140(%rbp), %eax
	cltq
	movb	$0, -120(%rbp,%rax)
	addl	$1, -140(%rbp)
.L7:
	movl	-172(%rbp), %eax
	cmpl	%eax, -140(%rbp)
	jl	.L8
	movl	$0, -136(%rbp)
	jmp	.L9
.L10:
	movl	-172(%rbp), %ecx
	movl	-144(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, %eax
	leal	1(%rax), %edx
	movl	-136(%rbp), %eax
	cltq
	movl	%edx, -48(%rbp,%rax,4)
	movl	-136(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %eax
	subl	$1, %eax
	cltq
	movb	$1, -120(%rbp,%rax)
	movl	-172(%rbp), %ecx
	movl	-144(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%eax, -144(%rbp)
	addl	$1, -136(%rbp)
.L9:
	movl	-172(%rbp), %eax
	cmpl	%eax, -136(%rbp)
	jl	.L10
	movl	$0, -132(%rbp)
	jmp	.L11
.L14:
	movl	-132(%rbp), %eax
	cltq
	movzbl	-120(%rbp,%rax), %eax
	xorl	$1, %eax
	testb	%al, %al
	je	.L12
	movb	$0, -175(%rbp)
	jmp	.L13
.L12:
	addl	$1, -132(%rbp)
.L11:
	movl	-172(%rbp), %eax
	cmpl	%eax, -132(%rbp)
	jl	.L14
.L13:
	cmpb	$0, -175(%rbp)
	je	.L15
	addl	$1, -160(%rbp)
	movb	$1, -173(%rbp)
	movzbl	-173(%rbp), %eax
	movb	%al, -174(%rbp)
	movl	$0, -128(%rbp)
	jmp	.L16
.L21:
	movl	-172(%rbp), %eax
	subl	-128(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-48(%rbp,%rax,4), %edx
	movl	-128(%rbp), %eax
	cltq
	movl	-112(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	je	.L17
	movb	$0, -174(%rbp)
.L17:
	movl	-172(%rbp), %eax
	subl	-128(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-48(%rbp,%rax,4), %edx
	movl	-128(%rbp), %eax
	cltq
	movl	-80(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	je	.L18
	movb	$0, -173(%rbp)
.L18:
	movzbl	-173(%rbp), %eax
	xorl	$1, %eax
	testb	%al, %al
	je	.L19
	movzbl	-174(%rbp), %eax
	xorl	$1, %eax
	testb	%al, %al
	jne	.L26
.L19:
	addl	$1, -128(%rbp)
.L16:
	movl	-172(%rbp), %eax
	cmpl	%eax, -128(%rbp)
	jl	.L21
	jmp	.L20
.L26:
	nop
.L20:
	cmpb	$0, -174(%rbp)
	je	.L22
	movl	-160(%rbp), %eax
	movl	%eax, -168(%rbp)
.L22:
	cmpb	$0, -173(%rbp)
	je	.L15
	movl	-160(%rbp), %eax
	movl	%eax, -164(%rbp)
.L15:
	addl	$1, -148(%rbp)
.L6:
	movl	-148(%rbp), %eax
	cmpl	-124(%rbp), %eax
	jl	.L23
	movl	-168(%rbp), %eax
	subl	-164(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1072693248
	.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:
