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(void) {
	int n = 0;
	int l[100] = { 0 };
	int cnt = 0;
	int i, j, k;

	scanf("%d", &n);

	for (i = 0; i < n; i++)
		scanf("%d", &l[i]);

	for (i = 0; i < n; i++) {				//�z��̏���1��
		for (j = i + 1; j < n; j++) {		//�z��̏���2��
			for (k = j + 1; k < n; k++) {	//�z��̏���3��
				if ((l[i] != l[j]) && (l[j] != l[k]) && (l[k] != l[i])) { //3�̕ӂ��قȂ�Ƃ�������
					if ((l[i] + l[j] > l[k]) && (l[j] + l[k] > l[i]) && (l[k] + l[i] > l[j])) //2�̕ӂ𑫂������̂��c��̕ӂ����傫��
						cnt++; //�����𖞂�������J�E���g�𑝂₵�Ă���
				}
			}
		}
	}
	printf("%d", cnt);
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.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
	movl	$50, %ecx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$440, %rsp
	.cfi_def_cfa_offset 496
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbx
	leaq	12(%rsp), %rsi
	movl	$0, 12(%rsp)
	movq	%rbx, %rdi
	rep stosq
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	movq	%rbx, %rbp
	movq	%rbx, %r14
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r14, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edi
	addq	$4, %r14
	cmpl	%r13d, %edi
	jg	.L3
	testl	%edi, %edi
	jle	.L2
	cmpl	$1, %edi
	je	.L2
	leal	1(%rdi), %r14d
	movl	$2, %r13d
	xorl	%r11d, %r11d
	.p2align 4,,10
	.p2align 3
.L7:
	movl	%r13d, %r9d
	cmpl	%r13d, %edi
	jle	.L13
	movl	0(%rbp), %ecx
	movq	%r13, %r8
	.p2align 4,,10
	.p2align 3
.L12:
	movl	-4(%rbx,%r8,4), %esi
	leal	(%rsi,%rcx), %r10d
	cmpl	%esi, %ecx
	je	.L9
	movq	%r8, %rax
	.p2align 4,,10
	.p2align 3
.L11:
	movl	(%rbx,%rax,4), %edx
	cmpl	%edx, %ecx
	je	.L10
	cmpl	%edx, %esi
	je	.L10
	cmpl	%r10d, %edx
	jge	.L10
	leal	(%rsi,%rdx), %r15d
	cmpl	%r15d, %ecx
	jge	.L10
	addl	%ecx, %edx
	cmpl	%edx, %esi
	setl	%dl
	movzbl	%dl, %edx
	addl	%edx, %r11d
	.p2align 4,,10
	.p2align 3
.L10:
	addq	$1, %rax
	cmpl	%eax, %edi
	jg	.L11
.L9:
	addl	$1, %r9d
	addq	$1, %r8
	cmpl	%r9d, %edi
	jne	.L12
.L13:
	addq	$1, %r13
	addq	$4, %rbp
	cmpq	%r14, %r13
	jne	.L7
.L5:
	xorl	%eax, %eax
	movl	%r11d, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$440, %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
.L2:
	.cfi_restore_state
	xorl	%r11d, %r11d
	jmp	.L5
.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"
	.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
	movl	$50, %ecx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$440, %rsp
	.cfi_def_cfa_offset 496
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbx
	leaq	12(%rsp), %rsi
	movl	$0, 12(%rsp)
	movq	%rbx, %rdi
	rep stosq
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	movq	%rbx, %rbp
	movq	%rbx, %r14
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r14, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edi
	addq	$4, %r14
	cmpl	%r13d, %edi
	jg	.L3
	testl	%edi, %edi
	jle	.L2
	cmpl	$1, %edi
	je	.L2
	leal	1(%rdi), %r14d
	movl	$2, %r13d
	xorl	%r11d, %r11d
	.p2align 4,,10
	.p2align 3
.L7:
	movl	%r13d, %r9d
	cmpl	%r13d, %edi
	jle	.L13
	movl	0(%rbp), %ecx
	movq	%r13, %r8
	.p2align 4,,10
	.p2align 3
.L12:
	movl	-4(%rbx,%r8,4), %esi
	leal	(%rsi,%rcx), %r10d
	cmpl	%esi, %ecx
	je	.L9
	movq	%r8, %rax
	.p2align 4,,10
	.p2align 3
.L11:
	movl	(%rbx,%rax,4), %edx
	cmpl	%edx, %ecx
	je	.L10
	cmpl	%edx, %esi
	je	.L10
	cmpl	%r10d, %edx
	jge	.L10
	leal	(%rsi,%rdx), %r15d
	cmpl	%r15d, %ecx
	jge	.L10
	addl	%ecx, %edx
	cmpl	%edx, %esi
	setl	%dl
	movzbl	%dl, %edx
	addl	%edx, %r11d
	.p2align 4,,10
	.p2align 3
.L10:
	addq	$1, %rax
	cmpl	%eax, %edi
	jg	.L11
.L9:
	addl	$1, %r9d
	addq	$1, %r8
	cmpl	%r9d, %edi
	jne	.L12
.L13:
	addq	$1, %r13
	addq	$4, %rbp
	cmpq	%r14, %r13
	jne	.L7
.L5:
	xorl	%eax, %eax
	movl	%r11d, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$440, %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
.L2:
	.cfi_restore_state
	xorl	%r11d, %r11d
	jmp	.L5
.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"
	.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
	movl	$50, %ecx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$440, %rsp
	.cfi_def_cfa_offset 496
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbx
	leaq	12(%rsp), %rsi
	movl	$0, 12(%rsp)
	movq	%rbx, %rdi
	rep stosq
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	movq	%rbx, %rbp
	movq	%rbx, %r14
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r14, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edi
	addq	$4, %r14
	cmpl	%r13d, %edi
	jg	.L3
	testl	%edi, %edi
	jle	.L2
	cmpl	$1, %edi
	je	.L2
	leal	1(%rdi), %r14d
	movl	$2, %r13d
	xorl	%r11d, %r11d
	.p2align 4,,10
	.p2align 3
.L7:
	movl	%r13d, %r9d
	cmpl	%r13d, %edi
	jle	.L13
	movl	0(%rbp), %ecx
	movq	%r13, %r8
	.p2align 4,,10
	.p2align 3
.L12:
	movl	-4(%rbx,%r8,4), %esi
	leal	(%rsi,%rcx), %r10d
	cmpl	%esi, %ecx
	je	.L9
	movq	%r8, %rax
	.p2align 4,,10
	.p2align 3
.L11:
	movl	(%rbx,%rax,4), %edx
	cmpl	%edx, %ecx
	je	.L10
	cmpl	%edx, %esi
	je	.L10
	cmpl	%r10d, %edx
	jge	.L10
	leal	(%rsi,%rdx), %r15d
	cmpl	%r15d, %ecx
	jge	.L10
	addl	%ecx, %edx
	cmpl	%edx, %esi
	setl	%dl
	movzbl	%dl, %edx
	addl	%edx, %r11d
	.p2align 4,,10
	.p2align 3
.L10:
	addq	$1, %rax
	cmpl	%eax, %edi
	jg	.L11
.L9:
	addl	$1, %r9d
	addq	$1, %r8
	cmpl	%r9d, %edi
	jne	.L12
.L13:
	addq	$1, %r13
	addq	$4, %rbp
	cmpq	%r14, %r13
	jne	.L7
.L5:
	xorl	%eax, %eax
	movl	%r11d, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$440, %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
.L2:
	.cfi_restore_state
	xorl	%r11d, %r11d
	jmp	.L5
.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(void) {
	int n = 0;
	int l[100] = { 0 };
	int cnt = 0;
	int i, j, k;

	scanf("%d", &n);

	for (i = 0; i < n; i++)
		scanf("%d", &l[i]);

	for (i = 0; i < n; i++) {				//�z��̏���1��
		for (j = i + 1; j < n; j++) {		//�z��̏���2��
			for (k = j + 1; k < n; k++) {	//�z��̏���3��
				if ((l[i] != l[j]) && (l[j] != l[k]) && (l[k] != l[i])) { //3�̕ӂ��قȂ�Ƃ�������
					if ((l[i] + l[j] > l[k]) && (l[j] + l[k] > l[i]) && (l[k] + l[i] > l[j])) //2�̕ӂ𑫂������̂��c��̕ӂ����傫��
						cnt++; //�����𖞂�������J�E���g�𑝂₵�Ă���
				}
			}
		}
	}
	printf("%d", cnt);
	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(void) {
	int n = 0;
	int l[100] = { 0 };
	int cnt = 0;
	int i, j, k;

	scanf("%d", &n);

	for (i = 0; i < n; i++)
		scanf("%d", &l[i]);

	for (i = 0; i < n; i++) {				//�z��̏���1��
		for (j = i + 1; j < n; j++) {		//�z��̏���2��
			for (k = j + 1; k < n; k++) {	//�z��̏���3��
				if ((l[i] != l[j]) && (l[j] != l[k]) && (l[k] != l[i])) { //3�̕ӂ��قȂ�Ƃ�������
					if ((l[i] + l[j] > l[k]) && (l[j] + l[k] > l[i]) && (l[k] + l[i] > l[j])) //2�̕ӂ𑫂������̂��c��̕ӂ����傫��
						cnt++; //�����𖞂�������J�E���g�𑝂₵�Ă���
				}
			}
		}
	}
	printf("%d", cnt);
	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:

2
1 0
 10
9 4 8 1 9 6 10 6 6 8
 6
4 5 8 3 3 5
 5
4 4 3 7 5
 10
9 4 16 1 9 6 10 6 6 8
 6
4 5 6 3 3 5
 5
4 0 3 7 5
 10
9 7 16 1 9 6 10 6 6 8
 5
4 -1 0 7 5
 10
9 7 13 2 9 6 10 6 6 8

0 48 6 5 36 12 3 40 1 63
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(void) {
	int n = 0;
	int l[100] = { 0 };
	int cnt = 0;
	int i, j, k;

	scanf("%d", &n);

	for (i = 0; i < n; i++)
		scanf("%d", &l[i]);

	for (i = 0; i < n; i++) {				//�z��̏���1��
		for (j = i + 1; j < n; j++) {		//�z��̏���2��
			for (k = j + 1; k < n; k++) {	//�z��̏���3��
				if ((l[i] != l[j]) && (l[j] != l[k]) && (l[k] != l[i])) { //3�̕ӂ��قȂ�Ƃ�������
					if ((l[i] + l[j] > l[k]) && (l[j] + l[k] > l[i]) && (l[k] + l[i] > l[j])) //2�̕ӂ𑫂������̂��c��̕ӂ����傫��
						cnt++; //�����𖞂�������J�E���g�𑝂₵�Ă���
				}
			}
		}
	}
	printf("%d", cnt);
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.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
	movl	$50, %ecx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$440, %rsp
	.cfi_def_cfa_offset 496
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbx
	leaq	12(%rsp), %rsi
	movl	$0, 12(%rsp)
	movq	%rbx, %rdi
	rep stosq
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	movq	%rbx, %rbp
	movq	%rbx, %r14
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r14, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edi
	addq	$4, %r14
	cmpl	%r13d, %edi
	jg	.L3
	testl	%edi, %edi
	jle	.L2
	cmpl	$1, %edi
	je	.L2
	leal	1(%rdi), %r14d
	movl	$2, %r13d
	xorl	%r11d, %r11d
	.p2align 4,,10
	.p2align 3
.L7:
	movl	%r13d, %r9d
	cmpl	%r13d, %edi
	jle	.L13
	movl	0(%rbp), %ecx
	movq	%r13, %r8
	.p2align 4,,10
	.p2align 3
.L12:
	movl	-4(%rbx,%r8,4), %esi
	leal	(%rsi,%rcx), %r10d
	cmpl	%esi, %ecx
	je	.L9
	movq	%r8, %rax
	.p2align 4,,10
	.p2align 3
.L11:
	movl	(%rbx,%rax,4), %edx
	cmpl	%edx, %ecx
	je	.L10
	cmpl	%edx, %esi
	je	.L10
	cmpl	%r10d, %edx
	jge	.L10
	leal	(%rsi,%rdx), %r15d
	cmpl	%r15d, %ecx
	jge	.L10
	addl	%ecx, %edx
	cmpl	%edx, %esi
	setl	%dl
	movzbl	%dl, %edx
	addl	%edx, %r11d
	.p2align 4,,10
	.p2align 3
.L10:
	addq	$1, %rax
	cmpl	%eax, %edi
	jg	.L11
.L9:
	addl	$1, %r9d
	addq	$1, %r8
	cmpl	%r9d, %edi
	jne	.L12
.L13:
	addq	$1, %r13
	addq	$4, %rbp
	cmpq	%r14, %r13
	jne	.L7
.L5:
	xorl	%eax, %eax
	movl	%r11d, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$440, %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
.L2:
	.cfi_restore_state
	xorl	%r11d, %r11d
	jmp	.L5
.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"
	.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
	movl	$50, %ecx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$440, %rsp
	.cfi_def_cfa_offset 496
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbx
	leaq	12(%rsp), %rsi
	movl	$0, 12(%rsp)
	movq	%rbx, %rdi
	rep stosq
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	movq	%rbx, %rbp
	movq	%rbx, %r14
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r14, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edi
	addq	$4, %r14
	cmpl	%r13d, %edi
	jg	.L3
	testl	%edi, %edi
	jle	.L2
	cmpl	$1, %edi
	je	.L2
	leal	1(%rdi), %r14d
	movl	$2, %r13d
	xorl	%r11d, %r11d
	.p2align 4,,10
	.p2align 3
.L7:
	movl	%r13d, %r9d
	cmpl	%r13d, %edi
	jle	.L13
	movl	0(%rbp), %ecx
	movq	%r13, %r8
	.p2align 4,,10
	.p2align 3
.L12:
	movl	-4(%rbx,%r8,4), %esi
	leal	(%rsi,%rcx), %r10d
	cmpl	%esi, %ecx
	je	.L9
	movq	%r8, %rax
	.p2align 4,,10
	.p2align 3
.L11:
	movl	(%rbx,%rax,4), %edx
	cmpl	%edx, %ecx
	je	.L10
	cmpl	%edx, %esi
	je	.L10
	cmpl	%r10d, %edx
	jge	.L10
	leal	(%rsi,%rdx), %r15d
	cmpl	%r15d, %ecx
	jge	.L10
	addl	%ecx, %edx
	cmpl	%edx, %esi
	setl	%dl
	movzbl	%dl, %edx
	addl	%edx, %r11d
	.p2align 4,,10
	.p2align 3
.L10:
	addq	$1, %rax
	cmpl	%eax, %edi
	jg	.L11
.L9:
	addl	$1, %r9d
	addq	$1, %r8
	cmpl	%r9d, %edi
	jne	.L12
.L13:
	addq	$1, %r13
	addq	$4, %rbp
	cmpq	%r14, %r13
	jne	.L7
.L5:
	xorl	%eax, %eax
	movl	%r11d, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$440, %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
.L2:
	.cfi_restore_state
	xorl	%r11d, %r11d
	jmp	.L5
.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:
```