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

```c
#include<stdio.h>
#include<stdlib.h>
int main(void)
{
  int N,M,i,k,tmp;
  scanf("%d %d",&N,&M);
  int A[N];
  for(i=0;i<N;i++) scanf("%d",&A[i]);
  for(k=1;k<=M;k++)
  {
    for(i=0;i<N-1;i++)
    {
      if(A[i]%k>A[i+1]%k)
      {
        tmp=A[i];
        A[i]=A[i+1];
        A[i+1]=tmp;
      }
    }
  }
  for(i=0;i<N;i++) printf("%d\n",A[i]);
  return 0;
}

```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r14
	pushq	%r13
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rsi
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-48(%rbp), %rax
	movq	%rsp, %rsi
	movq	%rax, %rcx
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L3
.L25:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L25
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L26
.L4:
	movq	%rsp, %rbx
	testl	%ecx, %ecx
	jle	.L5
	movq	%rbx, %r13
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	-48(%rbp), %r9d
	addq	$4, %r13
	cmpl	%r12d, %r9d
	jg	.L6
	movl	-44(%rbp), %r10d
	testl	%r10d, %r10d
	jle	.L7
	cmpl	$1, %r9d
	jle	.L7
	leal	-2(%r9), %eax
	movl	$1, %esi
	leaq	4(%rbx,%rax,4), %r8
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%rbx, %rcx
	.p2align 4,,10
	.p2align 3
.L11:
	movl	(%rcx), %eax
	movq	(%rcx), %xmm0
	cltd
	pshufd	$0xe5, %xmm0, %xmm2
	pshufd	$225, %xmm0, %xmm1
	idivl	%esi
	movd	%xmm2, %eax
	movl	%edx, %edi
	cltd
	idivl	%esi
	cmpl	%edx, %edi
	jle	.L10
	movq	%xmm1, (%rcx)
.L10:
	addq	$4, %rcx
	cmpq	%rcx, %r8
	jne	.L11
	addl	$1, %esi
	cmpl	%r10d, %esi
	jle	.L9
.L7:
	testl	%r9d, %r9d
	jle	.L5
	xorl	%r12d, %r12d
	leaq	.LC2(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L12:
	movl	(%rbx,%r12,4), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %r12
	call	__printf_chk@PLT
	cmpl	%r12d, -48(%rbp)
	jg	.L12
.L5:
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L27
	leaq	-32(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L26:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r14
	pushq	%r13
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rsi
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-48(%rbp), %rax
	movq	%rsp, %rsi
	movq	%rax, %rcx
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L3
.L25:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L25
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L26
.L4:
	movq	%rsp, %rbx
	testl	%ecx, %ecx
	jle	.L5
	movq	%rbx, %r13
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	-48(%rbp), %r9d
	addq	$4, %r13
	cmpl	%r12d, %r9d
	jg	.L6
	movl	-44(%rbp), %r10d
	testl	%r10d, %r10d
	jle	.L7
	cmpl	$1, %r9d
	jle	.L7
	leal	-2(%r9), %eax
	movl	$1, %esi
	leaq	4(%rbx,%rax,4), %r8
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%rbx, %rcx
	.p2align 4,,10
	.p2align 3
.L11:
	movl	(%rcx), %eax
	movq	(%rcx), %xmm0
	cltd
	pshufd	$0xe5, %xmm0, %xmm2
	pshufd	$225, %xmm0, %xmm1
	idivl	%esi
	movd	%xmm2, %eax
	movl	%edx, %edi
	cltd
	idivl	%esi
	cmpl	%edx, %edi
	jle	.L10
	movq	%xmm1, (%rcx)
.L10:
	addq	$4, %rcx
	cmpq	%rcx, %r8
	jne	.L11
	addl	$1, %esi
	cmpl	%r10d, %esi
	jle	.L9
.L7:
	testl	%r9d, %r9d
	jle	.L5
	xorl	%r12d, %r12d
	leaq	.LC2(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L12:
	movl	(%rbx,%r12,4), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %r12
	call	__printf_chk@PLT
	cmpl	%r12d, -48(%rbp)
	jg	.L12
.L5:
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L27
	leaq	-32(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L26:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r14
	pushq	%r13
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rsi
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-48(%rbp), %rax
	movq	%rsp, %rsi
	movq	%rax, %rcx
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L3
.L25:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L25
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L26
.L4:
	movq	%rsp, %rbx
	testl	%ecx, %ecx
	jle	.L5
	movq	%rbx, %r13
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	-48(%rbp), %r9d
	addq	$4, %r13
	cmpl	%r12d, %r9d
	jg	.L6
	movl	-44(%rbp), %r10d
	testl	%r10d, %r10d
	jle	.L7
	cmpl	$1, %r9d
	jle	.L7
	leal	-2(%r9), %eax
	movl	$1, %esi
	leaq	4(%rbx,%rax,4), %r8
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%rbx, %rcx
	.p2align 4,,10
	.p2align 3
.L11:
	movl	(%rcx), %eax
	movq	(%rcx), %xmm0
	cltd
	pshufd	$0xe5, %xmm0, %xmm2
	pshufd	$225, %xmm0, %xmm1
	idivl	%esi
	movd	%xmm2, %eax
	movl	%edx, %edi
	cltd
	idivl	%esi
	cmpl	%edx, %edi
	jle	.L10
	movq	%xmm1, (%rcx)
.L10:
	addq	$4, %rcx
	cmpq	%rcx, %r8
	jne	.L11
	addl	$1, %esi
	cmpl	%r10d, %esi
	jle	.L9
.L7:
	testl	%r9d, %r9d
	jle	.L5
	xorl	%r12d, %r12d
	leaq	.LC2(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L12:
	movl	(%rbx,%r12,4), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %r12
	call	__printf_chk@PLT
	cmpl	%r12d, -48(%rbp)
	jg	.L12
.L5:
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L27
	leaq	-32(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L26:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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:
```
```c
#include<stdio.h>
#include<stdlib.h>
int main(void)
{
  int N,M,i,k,tmp;
  scanf("%d %d",&N,&M);
  int A[N];
  for(i=0;i<N;i++) scanf("%d",&A[i]);
  for(k=1;k<=M;k++)
  {
    for(i=0;i<N-1;i++)
    {
      if(A[i]%k>A[i+1]%k)
      {
        tmp=A[i];
        A[i]=A[i+1];
        A[i+1]=tmp;
      }
    }
  }
  for(i=0;i<N;i++) printf("%d\n",A[i]);
  return 0;
}

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

```c
#include<stdio.h>
#include<stdlib.h>
int main(void)
{
  int N,M,i,k,tmp;
  scanf("%d %d",&N,&M);
  int A[N];
  for(i=0;i<N;i++) scanf("%d",&A[i]);
  for(k=1;k<=M;k++)
  {
    for(i=0;i<N-1;i++)
    {
      if(A[i]%k>A[i+1]%k)
      {
        tmp=A[i];
        A[i]=A[i+1];
        A[i+1]=tmp;
      }
    }
  }
  for(i=0;i<N;i++) printf("%d\n",A[i]);
  return 0;
}

```

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.
Optimized Assembly Code:

6 4
3
2
11
3
1
5
 6 4
3
0
11
3
1
5
 1 4
3
0
11
3
1
5
 1 8
5
0
4
2
2
9
 6 4
3
2
8
0
1
5
 6 4
3
2
11
0
1
5
 6 4
3
0
11
3
0
5
 2 4
3
0
11
3
1
5
 1 4
2
0
11
2
2
9
 6 4
3
2
4
0
1
5

2
3
1
3
5
11
 0
3
1
3
5
11
 3
 5
 0
2
1
8
5
3
 0
2
1
3
5
11
 0
0
3
3
5
11
 0
3
 2
 4
0
1
2
5
3

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

```c
#include<stdio.h>
#include<stdlib.h>
int main(void)
{
  int N,M,i,k,tmp;
  scanf("%d %d",&N,&M);
  int A[N];
  for(i=0;i<N;i++) scanf("%d",&A[i]);
  for(k=1;k<=M;k++)
  {
    for(i=0;i<N-1;i++)
    {
      if(A[i]%k>A[i+1]%k)
      {
        tmp=A[i];
        A[i]=A[i+1];
        A[i+1]=tmp;
      }
    }
  }
  for(i=0;i<N;i++) printf("%d\n",A[i]);
  return 0;
}

```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r14
	pushq	%r13
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rsi
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-48(%rbp), %rax
	movq	%rsp, %rsi
	movq	%rax, %rcx
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L3
.L25:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L25
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L26
.L4:
	movq	%rsp, %rbx
	testl	%ecx, %ecx
	jle	.L5
	movq	%rbx, %r13
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	-48(%rbp), %r9d
	addq	$4, %r13
	cmpl	%r12d, %r9d
	jg	.L6
	movl	-44(%rbp), %r10d
	testl	%r10d, %r10d
	jle	.L7
	cmpl	$1, %r9d
	jle	.L7
	leal	-2(%r9), %eax
	movl	$1, %esi
	leaq	4(%rbx,%rax,4), %r8
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%rbx, %rcx
	.p2align 4,,10
	.p2align 3
.L11:
	movl	(%rcx), %eax
	movq	(%rcx), %xmm0
	cltd
	pshufd	$0xe5, %xmm0, %xmm2
	pshufd	$225, %xmm0, %xmm1
	idivl	%esi
	movd	%xmm2, %eax
	movl	%edx, %edi
	cltd
	idivl	%esi
	cmpl	%edx, %edi
	jle	.L10
	movq	%xmm1, (%rcx)
.L10:
	addq	$4, %rcx
	cmpq	%rcx, %r8
	jne	.L11
	addl	$1, %esi
	cmpl	%r10d, %esi
	jle	.L9
.L7:
	testl	%r9d, %r9d
	jle	.L5
	xorl	%r12d, %r12d
	leaq	.LC2(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L12:
	movl	(%rbx,%r12,4), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %r12
	call	__printf_chk@PLT
	cmpl	%r12d, -48(%rbp)
	jg	.L12
.L5:
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L27
	leaq	-32(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L26:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r14
	pushq	%r13
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rsi
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-48(%rbp), %rax
	movq	%rsp, %rsi
	movq	%rax, %rcx
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L3
.L25:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L25
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L26
.L4:
	movq	%rsp, %rbx
	testl	%ecx, %ecx
	jle	.L5
	movq	%rbx, %r13
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	-48(%rbp), %r9d
	addq	$4, %r13
	cmpl	%r12d, %r9d
	jg	.L6
	movl	-44(%rbp), %r10d
	testl	%r10d, %r10d
	jle	.L7
	cmpl	$1, %r9d
	jle	.L7
	leal	-2(%r9), %eax
	movl	$1, %esi
	leaq	4(%rbx,%rax,4), %r8
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%rbx, %rcx
	.p2align 4,,10
	.p2align 3
.L11:
	movl	(%rcx), %eax
	movq	(%rcx), %xmm0
	cltd
	pshufd	$0xe5, %xmm0, %xmm2
	pshufd	$225, %xmm0, %xmm1
	idivl	%esi
	movd	%xmm2, %eax
	movl	%edx, %edi
	cltd
	idivl	%esi
	cmpl	%edx, %edi
	jle	.L10
	movq	%xmm1, (%rcx)
.L10:
	addq	$4, %rcx
	cmpq	%rcx, %r8
	jne	.L11
	addl	$1, %esi
	cmpl	%r10d, %esi
	jle	.L9
.L7:
	testl	%r9d, %r9d
	jle	.L5
	xorl	%r12d, %r12d
	leaq	.LC2(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L12:
	movl	(%rbx,%r12,4), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %r12
	call	__printf_chk@PLT
	cmpl	%r12d, -48(%rbp)
	jg	.L12
.L5:
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L27
	leaq	-32(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L26:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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:
```