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 q, c, n, a, s, f;
	
	scanf("%d", &q);
	while (q--){
		scanf("%d %d %d", &c, &a, &n);
		
		s = 0;
		f = -1;
		while (s != f){
			f = s;
			if (c >= 1 && a >= 1 && n >= 1){
				c--;
				n--;
				a--;
				s++;
			}
			else if (c >= 2 && a >= 1){
				c -= 2;
				a--;
				s++;
			}
			else if (c >= 3){
				c -= 3;
				s++;
			}
		}
		printf("%d\n", s);
	}
		
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$32, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 8(%rsp)
	testl	%eax, %eax
	je	.L17
	leaq	16(%rsp), %r14
	leaq	20(%rsp), %r13
	leaq	12(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	leaq	.LC2(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r14, %rcx
	movq	%r13, %rdx
	movq	%rbp, %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %ecx
	movl	16(%rsp), %r9d
	xorl	%edi, %edi
	movl	12(%rsp), %edx
	movl	$1, %eax
	xorl	%r11d, %r11d
	xorl	%r10d, %r10d
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L3:
	testl	%ecx, %ecx
	jle	.L8
	testl	%r9d, %r9d
	jle	.L9
	subl	$1, %edx
	subl	$1, %r9d
	subl	$1, %ecx
	movl	%eax, %esi
	movl	$1, %r11d
	movl	$1, %r10d
.L10:
	addl	$1, %eax
	movl	$1, %edi
	cmpl	%r8d, %esi
	je	.L68
.L11:
	leal	-1(%rax), %r8d
	testl	%edx, %edx
	jg	.L3
.L62:
	testb	%r11b, %r11b
	je	.L14
	movl	%r9d, 16(%rsp)
.L14:
	testb	%r10b, %r10b
	je	.L15
	movl	%ecx, 20(%rsp)
.L15:
	testb	%dil, %dil
	je	.L7
	movl	%edx, 12(%rsp)
.L7:
	movl	%r8d, %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	8(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 8(%rsp)
	testl	%eax, %eax
	jne	.L2
.L17:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L69
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	cmpl	$2, %edx
	jle	.L62
	subl	$3, %edx
	movl	%eax, %esi
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L9:
	cmpl	$1, %edx
	je	.L70
	subl	$2, %edx
	subl	$1, %ecx
	movl	%eax, %esi
	movl	$1, %r10d
	jmp	.L10
.L68:
	testb	%r11b, %r11b
	je	.L12
	movl	%r9d, 16(%rsp)
.L12:
	testb	%r10b, %r10b
	je	.L13
	movl	%ecx, 20(%rsp)
.L13:
	movl	%edx, 12(%rsp)
	movl	%esi, %r8d
	jmp	.L7
.L70:
	testb	%r11b, %r11b
	je	.L19
	movl	%r9d, 16(%rsp)
.L19:
	testb	%r10b, %r10b
	je	.L20
	movl	%ecx, 20(%rsp)
.L20:
	testb	%dil, %dil
	je	.L7
	movl	$1, 12(%rsp)
	jmp	.L7
.L69:
	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 %d %d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$32, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 8(%rsp)
	testl	%eax, %eax
	je	.L17
	leaq	16(%rsp), %r14
	leaq	20(%rsp), %r13
	leaq	12(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	leaq	.LC2(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r14, %rcx
	movq	%r13, %rdx
	movq	%rbp, %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %ecx
	movl	16(%rsp), %r9d
	xorl	%edi, %edi
	movl	12(%rsp), %edx
	movl	$1, %eax
	xorl	%r11d, %r11d
	xorl	%r10d, %r10d
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L3:
	testl	%ecx, %ecx
	jle	.L8
	testl	%r9d, %r9d
	jle	.L9
	subl	$1, %edx
	subl	$1, %r9d
	subl	$1, %ecx
	movl	%eax, %esi
	movl	$1, %r11d
	movl	$1, %r10d
.L10:
	addl	$1, %eax
	movl	$1, %edi
	cmpl	%r8d, %esi
	je	.L68
.L11:
	leal	-1(%rax), %r8d
	testl	%edx, %edx
	jg	.L3
.L62:
	testb	%r11b, %r11b
	je	.L14
	movl	%r9d, 16(%rsp)
.L14:
	testb	%r10b, %r10b
	je	.L15
	movl	%ecx, 20(%rsp)
.L15:
	testb	%dil, %dil
	je	.L7
	movl	%edx, 12(%rsp)
.L7:
	movl	%r8d, %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	8(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 8(%rsp)
	testl	%eax, %eax
	jne	.L2
.L17:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L69
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	cmpl	$2, %edx
	jle	.L62
	subl	$3, %edx
	movl	%eax, %esi
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L9:
	cmpl	$1, %edx
	je	.L70
	subl	$2, %edx
	subl	$1, %ecx
	movl	%eax, %esi
	movl	$1, %r10d
	jmp	.L10
.L68:
	testb	%r11b, %r11b
	je	.L12
	movl	%r9d, 16(%rsp)
.L12:
	testb	%r10b, %r10b
	je	.L13
	movl	%ecx, 20(%rsp)
.L13:
	movl	%edx, 12(%rsp)
	movl	%esi, %r8d
	jmp	.L7
.L70:
	testb	%r11b, %r11b
	je	.L19
	movl	%r9d, 16(%rsp)
.L19:
	testb	%r10b, %r10b
	je	.L20
	movl	%ecx, 20(%rsp)
.L20:
	testb	%dil, %dil
	je	.L7
	movl	$1, 12(%rsp)
	jmp	.L7
.L69:
	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 %d %d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$32, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 8(%rsp)
	testl	%eax, %eax
	je	.L17
	leaq	16(%rsp), %r14
	leaq	20(%rsp), %r13
	leaq	12(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	leaq	.LC2(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r14, %rcx
	movq	%r13, %rdx
	movq	%rbp, %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %ecx
	movl	16(%rsp), %r9d
	xorl	%edi, %edi
	movl	12(%rsp), %edx
	movl	$1, %eax
	xorl	%r11d, %r11d
	xorl	%r10d, %r10d
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L3:
	testl	%ecx, %ecx
	jle	.L8
	testl	%r9d, %r9d
	jle	.L9
	subl	$1, %edx
	subl	$1, %r9d
	subl	$1, %ecx
	movl	%eax, %esi
	movl	$1, %r11d
	movl	$1, %r10d
.L10:
	addl	$1, %eax
	movl	$1, %edi
	cmpl	%r8d, %esi
	je	.L68
.L11:
	leal	-1(%rax), %r8d
	testl	%edx, %edx
	jg	.L3
.L62:
	testb	%r11b, %r11b
	je	.L14
	movl	%r9d, 16(%rsp)
.L14:
	testb	%r10b, %r10b
	je	.L15
	movl	%ecx, 20(%rsp)
.L15:
	testb	%dil, %dil
	je	.L7
	movl	%edx, 12(%rsp)
.L7:
	movl	%r8d, %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	8(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 8(%rsp)
	testl	%eax, %eax
	jne	.L2
.L17:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L69
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	cmpl	$2, %edx
	jle	.L62
	subl	$3, %edx
	movl	%eax, %esi
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L9:
	cmpl	$1, %edx
	je	.L70
	subl	$2, %edx
	subl	$1, %ecx
	movl	%eax, %esi
	movl	$1, %r10d
	jmp	.L10
.L68:
	testb	%r11b, %r11b
	je	.L12
	movl	%r9d, 16(%rsp)
.L12:
	testb	%r10b, %r10b
	je	.L13
	movl	%ecx, 20(%rsp)
.L13:
	movl	%edx, 12(%rsp)
	movl	%esi, %r8d
	jmp	.L7
.L70:
	testb	%r11b, %r11b
	je	.L19
	movl	%r9d, 16(%rsp)
.L19:
	testb	%r10b, %r10b
	je	.L20
	movl	%ecx, 20(%rsp)
.L20:
	testb	%dil, %dil
	je	.L7
	movl	$1, 12(%rsp)
	jmp	.L7
.L69:
	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 q, c, n, a, s, f;
	
	scanf("%d", &q);
	while (q--){
		scanf("%d %d %d", &c, &a, &n);
		
		s = 0;
		f = -1;
		while (s != f){
			f = s;
			if (c >= 1 && a >= 1 && n >= 1){
				c--;
				n--;
				a--;
				s++;
			}
			else if (c >= 2 && a >= 1){
				c -= 2;
				a--;
				s++;
			}
			else if (c >= 3){
				c -= 3;
				s++;
			}
		}
		printf("%d\n", s);
	}
		
	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 q, c, n, a, s, f;
	
	scanf("%d", &q);
	while (q--){
		scanf("%d %d %d", &c, &a, &n);
		
		s = 0;
		f = -1;
		while (s != f){
			f = s;
			if (c >= 1 && a >= 1 && n >= 1){
				c--;
				n--;
				a--;
				s++;
			}
			else if (c >= 2 && a >= 1){
				c -= 2;
				a--;
				s++;
			}
			else if (c >= 3){
				c -= 3;
				s++;
			}
		}
		printf("%d\n", s);
	}
		
	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:

4
3 0 0
1 1 1
9 4 2
0 1 2
 4
2 0 0
1 1 1
9 4 2
0 1 2
 4
3 0 1
1 1 1
9 4 1
0 1 2
 4
3 0 0
1 2 1
0 4 2
0 1 2
 4
0 0 0
1 2 1
0 4 2
0 1 3
 4
2 1 0
2 2 2
9 8 2
0 1 3
 4
0 1 2
3 0 2
9 19 0
0 2 3
 4
0 1 2
3 0 2
9 0 0
0 2 3
 4
3 0 0
1 2 1
12 4 2
0 1 2
 4
0 0 0
1 2 1
1 4 2
0 0 3

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

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 q, c, n, a, s, f;
	
	scanf("%d", &q);
	while (q--){
		scanf("%d %d %d", &c, &a, &n);
		
		s = 0;
		f = -1;
		while (s != f){
			f = s;
			if (c >= 1 && a >= 1 && n >= 1){
				c--;
				n--;
				a--;
				s++;
			}
			else if (c >= 2 && a >= 1){
				c -= 2;
				a--;
				s++;
			}
			else if (c >= 3){
				c -= 3;
				s++;
			}
		}
		printf("%d\n", s);
	}
		
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$32, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 8(%rsp)
	testl	%eax, %eax
	je	.L17
	leaq	16(%rsp), %r14
	leaq	20(%rsp), %r13
	leaq	12(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	leaq	.LC2(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r14, %rcx
	movq	%r13, %rdx
	movq	%rbp, %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %ecx
	movl	16(%rsp), %r9d
	xorl	%edi, %edi
	movl	12(%rsp), %edx
	movl	$1, %eax
	xorl	%r11d, %r11d
	xorl	%r10d, %r10d
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L3:
	testl	%ecx, %ecx
	jle	.L8
	testl	%r9d, %r9d
	jle	.L9
	subl	$1, %edx
	subl	$1, %r9d
	subl	$1, %ecx
	movl	%eax, %esi
	movl	$1, %r11d
	movl	$1, %r10d
.L10:
	addl	$1, %eax
	movl	$1, %edi
	cmpl	%r8d, %esi
	je	.L68
.L11:
	leal	-1(%rax), %r8d
	testl	%edx, %edx
	jg	.L3
.L62:
	testb	%r11b, %r11b
	je	.L14
	movl	%r9d, 16(%rsp)
.L14:
	testb	%r10b, %r10b
	je	.L15
	movl	%ecx, 20(%rsp)
.L15:
	testb	%dil, %dil
	je	.L7
	movl	%edx, 12(%rsp)
.L7:
	movl	%r8d, %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	8(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 8(%rsp)
	testl	%eax, %eax
	jne	.L2
.L17:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L69
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	cmpl	$2, %edx
	jle	.L62
	subl	$3, %edx
	movl	%eax, %esi
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L9:
	cmpl	$1, %edx
	je	.L70
	subl	$2, %edx
	subl	$1, %ecx
	movl	%eax, %esi
	movl	$1, %r10d
	jmp	.L10
.L68:
	testb	%r11b, %r11b
	je	.L12
	movl	%r9d, 16(%rsp)
.L12:
	testb	%r10b, %r10b
	je	.L13
	movl	%ecx, 20(%rsp)
.L13:
	movl	%edx, 12(%rsp)
	movl	%esi, %r8d
	jmp	.L7
.L70:
	testb	%r11b, %r11b
	je	.L19
	movl	%r9d, 16(%rsp)
.L19:
	testb	%r10b, %r10b
	je	.L20
	movl	%ecx, 20(%rsp)
.L20:
	testb	%dil, %dil
	je	.L7
	movl	$1, 12(%rsp)
	jmp	.L7
.L69:
	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 %d %d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$32, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 8(%rsp)
	testl	%eax, %eax
	je	.L17
	leaq	16(%rsp), %r14
	leaq	20(%rsp), %r13
	leaq	12(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	leaq	.LC2(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r14, %rcx
	movq	%r13, %rdx
	movq	%rbp, %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %ecx
	movl	16(%rsp), %r9d
	xorl	%edi, %edi
	movl	12(%rsp), %edx
	movl	$1, %eax
	xorl	%r11d, %r11d
	xorl	%r10d, %r10d
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L3:
	testl	%ecx, %ecx
	jle	.L8
	testl	%r9d, %r9d
	jle	.L9
	subl	$1, %edx
	subl	$1, %r9d
	subl	$1, %ecx
	movl	%eax, %esi
	movl	$1, %r11d
	movl	$1, %r10d
.L10:
	addl	$1, %eax
	movl	$1, %edi
	cmpl	%r8d, %esi
	je	.L68
.L11:
	leal	-1(%rax), %r8d
	testl	%edx, %edx
	jg	.L3
.L62:
	testb	%r11b, %r11b
	je	.L14
	movl	%r9d, 16(%rsp)
.L14:
	testb	%r10b, %r10b
	je	.L15
	movl	%ecx, 20(%rsp)
.L15:
	testb	%dil, %dil
	je	.L7
	movl	%edx, 12(%rsp)
.L7:
	movl	%r8d, %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	8(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 8(%rsp)
	testl	%eax, %eax
	jne	.L2
.L17:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L69
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	cmpl	$2, %edx
	jle	.L62
	subl	$3, %edx
	movl	%eax, %esi
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L9:
	cmpl	$1, %edx
	je	.L70
	subl	$2, %edx
	subl	$1, %ecx
	movl	%eax, %esi
	movl	$1, %r10d
	jmp	.L10
.L68:
	testb	%r11b, %r11b
	je	.L12
	movl	%r9d, 16(%rsp)
.L12:
	testb	%r10b, %r10b
	je	.L13
	movl	%ecx, 20(%rsp)
.L13:
	movl	%edx, 12(%rsp)
	movl	%esi, %r8d
	jmp	.L7
.L70:
	testb	%r11b, %r11b
	je	.L19
	movl	%r9d, 16(%rsp)
.L19:
	testb	%r10b, %r10b
	je	.L20
	movl	%ecx, 20(%rsp)
.L20:
	testb	%dil, %dil
	je	.L7
	movl	$1, 12(%rsp)
	jmp	.L7
.L69:
	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:
```