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>
int main(){
	int n,m,k,i,j,a[101],te;
	scanf("%d",&n);
	scanf("%d",&m);
	for(j=1;j<=n;j++){
		scanf("%d",&a[j]);
	}
	i=1;
	for(j=1;j<=m;){
		if(i<n&&1<=i){
			if(a[i]%j>a[i+1]%j){
			te=a[i];
			a[i]=a[i+1];
			a[i+1]=te;
			i++;
			}
			else{
				i++;
			}
		}
		if(i==n){
			j++;
			i=1;
		}
	}
	for(j=1;j<=n;j++){
		printf("%d\n",a[j]);
	}
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$432, %rsp
	.cfi_def_cfa_offset 464
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	leaq	12(%rsp), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L2
	leaq	20(%rsp), %rbp
	movl	$1, %ebx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %ecx
	addq	$4, %rbp
	cmpl	%ebx, %ecx
	jge	.L3
	movl	12(%rsp), %r9d
	testl	%r9d, %r9d
	jle	.L10
.L4:
	movl	$1, %esi
	movl	$1, %edi
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L25:
	testl	%edi, %edi
	jg	.L24
.L8:
	cmpl	%esi, %r9d
	jl	.L10
.L13:
	cmpl	%edi, %ecx
	jg	.L25
.L12:
	cmpl	%ecx, %edi
	jne	.L8
.L26:
	addl	$1, %esi
	cmpl	%esi, %r9d
	jl	.L10
	movl	$1, %r8d
	movl	$1, %edi
	cmpl	$1, %ecx
	jle	.L12
	movl	$2, %edi
.L11:
	movl	16(%rsp,%r8,4), %r10d
	movslq	%edi, %rbx
	movl	16(%rsp,%rbx,4), %r11d
	movl	%r10d, %eax
	cltd
	idivl	%esi
	movl	%r11d, %eax
	movl	%edx, %ebp
	cltd
	idivl	%esi
	cmpl	%edx, %ebp
	jle	.L12
	movl	%r11d, 16(%rsp,%r8,4)
	movl	%r10d, 16(%rsp,%rbx,4)
	cmpl	%ecx, %edi
	jne	.L8
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L10:
	movl	8(%rsp), %eax
	movl	$1, %ebx
	leaq	16(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	testl	%eax, %eax
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	movl	(%r12,%rbx,4), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, 8(%rsp)
	jge	.L5
.L6:
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$432, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	movslq	%edi, %r8
	addl	$1, %edi
	jmp	.L11
.L2:
	movl	12(%rsp), %r9d
	testl	%r9d, %r9d
	jg	.L4
	jmp	.L6
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$432, %rsp
	.cfi_def_cfa_offset 464
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	leaq	12(%rsp), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L2
	leaq	20(%rsp), %rbp
	movl	$1, %ebx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %ecx
	addq	$4, %rbp
	cmpl	%ebx, %ecx
	jge	.L3
	movl	12(%rsp), %r9d
	testl	%r9d, %r9d
	jle	.L10
.L4:
	movl	$1, %esi
	movl	$1, %edi
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L25:
	testl	%edi, %edi
	jg	.L24
.L8:
	cmpl	%esi, %r9d
	jl	.L10
.L13:
	cmpl	%edi, %ecx
	jg	.L25
.L12:
	cmpl	%ecx, %edi
	jne	.L8
.L26:
	addl	$1, %esi
	cmpl	%esi, %r9d
	jl	.L10
	movl	$1, %r8d
	movl	$1, %edi
	cmpl	$1, %ecx
	jle	.L12
	movl	$2, %edi
.L11:
	movl	16(%rsp,%r8,4), %r10d
	movslq	%edi, %rbx
	movl	16(%rsp,%rbx,4), %r11d
	movl	%r10d, %eax
	cltd
	idivl	%esi
	movl	%r11d, %eax
	movl	%edx, %ebp
	cltd
	idivl	%esi
	cmpl	%edx, %ebp
	jle	.L12
	movl	%r11d, 16(%rsp,%r8,4)
	movl	%r10d, 16(%rsp,%rbx,4)
	cmpl	%ecx, %edi
	jne	.L8
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L10:
	movl	8(%rsp), %eax
	movl	$1, %ebx
	leaq	16(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	testl	%eax, %eax
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	movl	(%r12,%rbx,4), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, 8(%rsp)
	jge	.L5
.L6:
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$432, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	movslq	%edi, %r8
	addl	$1, %edi
	jmp	.L11
.L2:
	movl	12(%rsp), %r9d
	testl	%r9d, %r9d
	jg	.L4
	jmp	.L6
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$432, %rsp
	.cfi_def_cfa_offset 464
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	leaq	12(%rsp), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L2
	leaq	20(%rsp), %rbp
	movl	$1, %ebx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %ecx
	addq	$4, %rbp
	cmpl	%ebx, %ecx
	jge	.L3
	movl	12(%rsp), %r9d
	testl	%r9d, %r9d
	jle	.L10
.L4:
	movl	$1, %esi
	movl	$1, %edi
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L25:
	testl	%edi, %edi
	jg	.L24
.L8:
	cmpl	%esi, %r9d
	jl	.L10
.L13:
	cmpl	%edi, %ecx
	jg	.L25
.L12:
	cmpl	%ecx, %edi
	jne	.L8
.L26:
	addl	$1, %esi
	cmpl	%esi, %r9d
	jl	.L10
	movl	$1, %r8d
	movl	$1, %edi
	cmpl	$1, %ecx
	jle	.L12
	movl	$2, %edi
.L11:
	movl	16(%rsp,%r8,4), %r10d
	movslq	%edi, %rbx
	movl	16(%rsp,%rbx,4), %r11d
	movl	%r10d, %eax
	cltd
	idivl	%esi
	movl	%r11d, %eax
	movl	%edx, %ebp
	cltd
	idivl	%esi
	cmpl	%edx, %ebp
	jle	.L12
	movl	%r11d, 16(%rsp,%r8,4)
	movl	%r10d, 16(%rsp,%rbx,4)
	cmpl	%ecx, %edi
	jne	.L8
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L10:
	movl	8(%rsp), %eax
	movl	$1, %ebx
	leaq	16(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	testl	%eax, %eax
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	movl	(%r12,%rbx,4), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, 8(%rsp)
	jge	.L5
.L6:
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$432, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	movslq	%edi, %r8
	addl	$1, %edi
	jmp	.L11
.L2:
	movl	12(%rsp), %r9d
	testl	%r9d, %r9d
	jg	.L4
	jmp	.L6
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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>
int main(){
	int n,m,k,i,j,a[101],te;
	scanf("%d",&n);
	scanf("%d",&m);
	for(j=1;j<=n;j++){
		scanf("%d",&a[j]);
	}
	i=1;
	for(j=1;j<=m;){
		if(i<n&&1<=i){
			if(a[i]%j>a[i+1]%j){
			te=a[i];
			a[i]=a[i+1];
			a[i+1]=te;
			i++;
			}
			else{
				i++;
			}
		}
		if(i==n){
			j++;
			i=1;
		}
	}
	for(j=1;j<=n;j++){
		printf("%d\n",a[j]);
	}
	return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
int main(){
	int n,m,k,i,j,a[101],te;
	scanf("%d",&n);
	scanf("%d",&m);
	for(j=1;j<=n;j++){
		scanf("%d",&a[j]);
	}
	i=1;
	for(j=1;j<=m;){
		if(i<n&&1<=i){
			if(a[i]%j>a[i+1]%j){
			te=a[i];
			a[i]=a[i+1];
			a[i+1]=te;
			i++;
			}
			else{
				i++;
			}
		}
		if(i==n){
			j++;
			i=1;
		}
	}
	for(j=1;j<=n;j++){
		printf("%d\n",a[j]);
	}
	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>
int main(){
	int n,m,k,i,j,a[101],te;
	scanf("%d",&n);
	scanf("%d",&m);
	for(j=1;j<=n;j++){
		scanf("%d",&a[j]);
	}
	i=1;
	for(j=1;j<=m;){
		if(i<n&&1<=i){
			if(a[i]%j>a[i+1]%j){
			te=a[i];
			a[i]=a[i+1];
			a[i+1]=te;
			i++;
			}
			else{
				i++;
			}
		}
		if(i==n){
			j++;
			i=1;
		}
	}
	for(j=1;j<=n;j++){
		printf("%d\n",a[j]);
	}
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$432, %rsp
	.cfi_def_cfa_offset 464
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	leaq	12(%rsp), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L2
	leaq	20(%rsp), %rbp
	movl	$1, %ebx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %ecx
	addq	$4, %rbp
	cmpl	%ebx, %ecx
	jge	.L3
	movl	12(%rsp), %r9d
	testl	%r9d, %r9d
	jle	.L10
.L4:
	movl	$1, %esi
	movl	$1, %edi
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L25:
	testl	%edi, %edi
	jg	.L24
.L8:
	cmpl	%esi, %r9d
	jl	.L10
.L13:
	cmpl	%edi, %ecx
	jg	.L25
.L12:
	cmpl	%ecx, %edi
	jne	.L8
.L26:
	addl	$1, %esi
	cmpl	%esi, %r9d
	jl	.L10
	movl	$1, %r8d
	movl	$1, %edi
	cmpl	$1, %ecx
	jle	.L12
	movl	$2, %edi
.L11:
	movl	16(%rsp,%r8,4), %r10d
	movslq	%edi, %rbx
	movl	16(%rsp,%rbx,4), %r11d
	movl	%r10d, %eax
	cltd
	idivl	%esi
	movl	%r11d, %eax
	movl	%edx, %ebp
	cltd
	idivl	%esi
	cmpl	%edx, %ebp
	jle	.L12
	movl	%r11d, 16(%rsp,%r8,4)
	movl	%r10d, 16(%rsp,%rbx,4)
	cmpl	%ecx, %edi
	jne	.L8
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L10:
	movl	8(%rsp), %eax
	movl	$1, %ebx
	leaq	16(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	testl	%eax, %eax
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	movl	(%r12,%rbx,4), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, 8(%rsp)
	jge	.L5
.L6:
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$432, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	movslq	%edi, %r8
	addl	$1, %edi
	jmp	.L11
.L2:
	movl	12(%rsp), %r9d
	testl	%r9d, %r9d
	jg	.L4
	jmp	.L6
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$432, %rsp
	.cfi_def_cfa_offset 464
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	leaq	12(%rsp), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L2
	leaq	20(%rsp), %rbp
	movl	$1, %ebx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %ecx
	addq	$4, %rbp
	cmpl	%ebx, %ecx
	jge	.L3
	movl	12(%rsp), %r9d
	testl	%r9d, %r9d
	jle	.L10
.L4:
	movl	$1, %esi
	movl	$1, %edi
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L25:
	testl	%edi, %edi
	jg	.L24
.L8:
	cmpl	%esi, %r9d
	jl	.L10
.L13:
	cmpl	%edi, %ecx
	jg	.L25
.L12:
	cmpl	%ecx, %edi
	jne	.L8
.L26:
	addl	$1, %esi
	cmpl	%esi, %r9d
	jl	.L10
	movl	$1, %r8d
	movl	$1, %edi
	cmpl	$1, %ecx
	jle	.L12
	movl	$2, %edi
.L11:
	movl	16(%rsp,%r8,4), %r10d
	movslq	%edi, %rbx
	movl	16(%rsp,%rbx,4), %r11d
	movl	%r10d, %eax
	cltd
	idivl	%esi
	movl	%r11d, %eax
	movl	%edx, %ebp
	cltd
	idivl	%esi
	cmpl	%edx, %ebp
	jle	.L12
	movl	%r11d, 16(%rsp,%r8,4)
	movl	%r10d, 16(%rsp,%rbx,4)
	cmpl	%ecx, %edi
	jne	.L8
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L10:
	movl	8(%rsp), %eax
	movl	$1, %ebx
	leaq	16(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	testl	%eax, %eax
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	movl	(%r12,%rbx,4), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, 8(%rsp)
	jge	.L5
.L6:
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$432, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	movslq	%edi, %r8
	addl	$1, %edi
	jmp	.L11
.L2:
	movl	12(%rsp), %r9d
	testl	%r9d, %r9d
	jg	.L4
	jmp	.L6
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:
```