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

```c
#include <stdio.h>

int main(void)
{
    int q;
    int c, a, n;
    int cnt;
    int i;
    
    scanf("%d", &q);
    for (i = 0; i < q; i++){
        cnt = 0;
        scanf("%d %d %d", &c, &a, &n);
        
        while (c >= 1  && a >= 1 && n >= 1){
            cnt++;
            c--; a--; n--;
        }
        while (c >= 2 && a >= 1){
            cnt++;
            c -= 2;
            a--;
        }
        while (c >= 3){
            cnt++;
            c -= 3;
        }
        
        
        printf("%d\n", cnt);
    }
    return (0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %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	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -12(%rbp)
	jmp	.L2
.L11:
	movl	$0, -16(%rbp)
	leaq	-20(%rbp), %rcx
	leaq	-24(%rbp), %rdx
	leaq	-28(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L3
.L5:
	addl	$1, -16(%rbp)
	movl	-28(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -28(%rbp)
	movl	-24(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -24(%rbp)
	movl	-20(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -20(%rbp)
.L3:
	movl	-28(%rbp), %eax
	testl	%eax, %eax
	jle	.L6
	movl	-24(%rbp), %eax
	testl	%eax, %eax
	jle	.L6
	movl	-20(%rbp), %eax
	testl	%eax, %eax
	jg	.L5
	jmp	.L6
.L8:
	addl	$1, -16(%rbp)
	movl	-28(%rbp), %eax
	subl	$2, %eax
	movl	%eax, -28(%rbp)
	movl	-24(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -24(%rbp)
.L6:
	movl	-28(%rbp), %eax
	cmpl	$1, %eax
	jle	.L9
	movl	-24(%rbp), %eax
	testl	%eax, %eax
	jg	.L8
	jmp	.L9
.L10:
	addl	$1, -16(%rbp)
	movl	-28(%rbp), %eax
	subl	$3, %eax
	movl	%eax, -28(%rbp)
.L9:
	movl	-28(%rbp), %eax
	cmpl	$2, %eax
	jg	.L10
	movl	-16(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -12(%rbp)
.L2:
	movl	-32(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L11
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %d"
.LC8:
	.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
	leaq	.LC0(%rip), %rdi
	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
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L20
	xorl	%ebx, %ebx
	leaq	20(%rsp), %r15
	leaq	16(%rsp), %r14
	leaq	12(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r14, %rdx
	movq	%r13, %rsi
	xorl	%eax, %eax
	movq	%r15, %rcx
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %esi
	xorl	%edx, %edx
	movdqa	.LC4(%rip), %xmm7
	movdqa	.LC5(%rip), %xmm6
	testl	%esi, %esi
	jle	.L9
	movl	16(%rsp), %eax
	movl	20(%rsp), %ecx
	xorl	%edi, %edi
	xorl	%edx, %edx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L11:
	testl	%ecx, %ecx
	jle	.L39
	addl	$1, %edx
	movl	%esi, %r12d
	subl	$1, %eax
	subl	$1, %ecx
	subl	%edx, %r12d
	movl	$1, %edi
	cmpl	%esi, %edx
	je	.L37
.L5:
	testl	%eax, %eax
	jg	.L11
.L39:
	testb	%dil, %dil
	je	.L23
.L37:
	movl	%ecx, 20(%rsp)
	movl	%eax, 16(%rsp)
	movl	%r12d, 12(%rsp)
.L6:
	cmpl	$1, %r12d
	jle	.L9
	movl	16(%rsp), %ecx
	movl	%r12d, %eax
	xorl	%esi, %esi
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L15:
	subl	$2, %eax
	addl	$1, %edx
	subl	$1, %ecx
	movl	$1, %esi
	cmpl	$1, %eax
	jle	.L41
	movl	%eax, %ebp
.L10:
	testl	%ecx, %ecx
	jg	.L15
	testb	%sil, %sil
	je	.L26
	movl	%ecx, 16(%rsp)
	movl	%ebp, 12(%rsp)
.L16:
	cmpl	$2, %ebp
	jle	.L9
	leal	-3(%rbp), %esi
	movl	$2863311531, %eax
	movq	%rsi, %rcx
	imulq	%rax, %rsi
	shrq	$33, %rsi
	addl	$1, %esi
	cmpl	$11, %ecx
	jbe	.L17
	movd	%ebp, %xmm4
	movd	%edx, %xmm5
	movl	%esi, %ecx
	xorl	%eax, %eax
	pshufd	$0, %xmm4, %xmm3
	pshufd	$0, %xmm5, %xmm2
	paddd	.LC2(%rip), %xmm3
	movdqa	.LC6(%rip), %xmm5
	paddd	.LC3(%rip), %xmm2
	movdqa	.LC7(%rip), %xmm4
	shrl	$2, %ecx
	.p2align 4,,10
	.p2align 3
.L18:
	movdqa	%xmm2, %xmm0
	movdqa	%xmm3, %xmm1
	paddd	%xmm7, %xmm2
	addl	$1, %eax
	paddd	%xmm6, %xmm3
	paddd	%xmm5, %xmm0
	paddd	%xmm4, %xmm1
	cmpl	%ecx, %eax
	jne	.L18
	movl	%esi, %edi
	pshufd	$255, %xmm1, %xmm1
	pshufd	$255, %xmm0, %xmm0
	andl	$-4, %edi
	movd	%xmm1, %ecx
	movd	%xmm0, %eax
	leal	0(,%rdi,4), %r11d
	movl	%edi, %r10d
	addl	%edi, %edx
	subl	%r11d, %r10d
	addl	%r10d, %ebp
	cmpl	%edi, %esi
	je	.L30
	leal	-3(%rbp), %ecx
.L17:
	leal	1(%rdx), %eax
	cmpl	$2, %ecx
	jle	.L30
	leal	-6(%rbp), %ecx
	leal	2(%rdx), %eax
	cmpl	$2, %ecx
	jle	.L30
	leal	-9(%rbp), %ecx
	leal	3(%rdx), %eax
	cmpl	$2, %ecx
	jle	.L30
	addl	$4, %edx
	leal	-12(%rbp), %ecx
.L19:
	movl	%ecx, 12(%rsp)
.L9:
	leaq	.LC8(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__printf_chk@PLT
	cmpl	%ebx, 8(%rsp)
	jg	.L2
.L20:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L42
	addq	$40, %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
.L41:
	.cfi_restore_state
	movl	%ecx, 16(%rsp)
	movl	%eax, 12(%rsp)
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L30:
	movl	%eax, %edx
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L23:
	movl	%esi, %r12d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L26:
	movl	%r12d, %ebp
	jmp	.L16
.L42:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	0
	.long	-3
	.long	-6
	.long	-9
	.align 16
.LC3:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC4:
	.long	4
	.long	4
	.long	4
	.long	4
	.align 16
.LC5:
	.long	-12
	.long	-12
	.long	-12
	.long	-12
	.align 16
.LC6:
	.long	1
	.long	1
	.long	1
	.long	1
	.align 16
.LC7:
	.long	-3
	.long	-3
	.long	-3
	.long	-3
	.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"
.LC1:
	.string	"%d %d %d"
.LC8:
	.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
	leaq	.LC0(%rip), %rdi
	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
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L20
	xorl	%ebx, %ebx
	leaq	20(%rsp), %r15
	leaq	16(%rsp), %r14
	leaq	12(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r14, %rdx
	movq	%r13, %rsi
	xorl	%eax, %eax
	movq	%r15, %rcx
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %esi
	xorl	%edx, %edx
	movdqa	.LC4(%rip), %xmm7
	movdqa	.LC5(%rip), %xmm6
	testl	%esi, %esi
	jle	.L9
	movl	16(%rsp), %eax
	movl	20(%rsp), %ecx
	xorl	%edi, %edi
	xorl	%edx, %edx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L11:
	testl	%ecx, %ecx
	jle	.L39
	addl	$1, %edx
	movl	%esi, %r12d
	subl	$1, %eax
	subl	$1, %ecx
	subl	%edx, %r12d
	movl	$1, %edi
	cmpl	%esi, %edx
	je	.L37
.L5:
	testl	%eax, %eax
	jg	.L11
.L39:
	testb	%dil, %dil
	je	.L23
.L37:
	movl	%ecx, 20(%rsp)
	movl	%eax, 16(%rsp)
	movl	%r12d, 12(%rsp)
.L6:
	cmpl	$1, %r12d
	jle	.L9
	movl	16(%rsp), %ecx
	movl	%r12d, %eax
	xorl	%esi, %esi
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L15:
	subl	$2, %eax
	addl	$1, %edx
	subl	$1, %ecx
	movl	$1, %esi
	cmpl	$1, %eax
	jle	.L41
	movl	%eax, %ebp
.L10:
	testl	%ecx, %ecx
	jg	.L15
	testb	%sil, %sil
	je	.L26
	movl	%ecx, 16(%rsp)
	movl	%ebp, 12(%rsp)
.L16:
	cmpl	$2, %ebp
	jle	.L9
	leal	-3(%rbp), %esi
	movl	$2863311531, %eax
	movq	%rsi, %rcx
	imulq	%rax, %rsi
	shrq	$33, %rsi
	addl	$1, %esi
	cmpl	$11, %ecx
	jbe	.L17
	movd	%ebp, %xmm4
	movd	%edx, %xmm5
	movl	%esi, %ecx
	xorl	%eax, %eax
	pshufd	$0, %xmm4, %xmm3
	pshufd	$0, %xmm5, %xmm2
	paddd	.LC2(%rip), %xmm3
	movdqa	.LC6(%rip), %xmm5
	paddd	.LC3(%rip), %xmm2
	movdqa	.LC7(%rip), %xmm4
	shrl	$2, %ecx
	.p2align 4,,10
	.p2align 3
.L18:
	movdqa	%xmm2, %xmm0
	movdqa	%xmm3, %xmm1
	paddd	%xmm7, %xmm2
	addl	$1, %eax
	paddd	%xmm6, %xmm3
	paddd	%xmm5, %xmm0
	paddd	%xmm4, %xmm1
	cmpl	%ecx, %eax
	jne	.L18
	movl	%esi, %edi
	pshufd	$255, %xmm1, %xmm1
	pshufd	$255, %xmm0, %xmm0
	andl	$-4, %edi
	movd	%xmm1, %ecx
	movd	%xmm0, %eax
	leal	0(,%rdi,4), %r11d
	movl	%edi, %r10d
	addl	%edi, %edx
	subl	%r11d, %r10d
	addl	%r10d, %ebp
	cmpl	%edi, %esi
	je	.L30
	leal	-3(%rbp), %ecx
.L17:
	leal	1(%rdx), %eax
	cmpl	$2, %ecx
	jle	.L30
	leal	-6(%rbp), %ecx
	leal	2(%rdx), %eax
	cmpl	$2, %ecx
	jle	.L30
	leal	-9(%rbp), %ecx
	leal	3(%rdx), %eax
	cmpl	$2, %ecx
	jle	.L30
	addl	$4, %edx
	leal	-12(%rbp), %ecx
.L19:
	movl	%ecx, 12(%rsp)
.L9:
	leaq	.LC8(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__printf_chk@PLT
	cmpl	%ebx, 8(%rsp)
	jg	.L2
.L20:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L42
	addq	$40, %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
.L41:
	.cfi_restore_state
	movl	%ecx, 16(%rsp)
	movl	%eax, 12(%rsp)
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L30:
	movl	%eax, %edx
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L23:
	movl	%esi, %r12d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L26:
	movl	%r12d, %ebp
	jmp	.L16
.L42:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	0
	.long	-3
	.long	-6
	.long	-9
	.align 16
.LC3:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC4:
	.long	4
	.long	4
	.long	4
	.long	4
	.align 16
.LC5:
	.long	-12
	.long	-12
	.long	-12
	.long	-12
	.align 16
.LC6:
	.long	1
	.long	1
	.long	1
	.long	1
	.align 16
.LC7:
	.long	-3
	.long	-3
	.long	-3
	.long	-3
	.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 <stdio.h>

int main(void)
{
    int q;
    int c, a, n;
    int cnt;
    int i;
    
    scanf("%d", &q);
    for (i = 0; i < q; i++){
        cnt = 0;
        scanf("%d %d %d", &c, &a, &n);
        
        while (c >= 1  && a >= 1 && n >= 1){
            cnt++;
            c--; a--; n--;
        }
        while (c >= 2 && a >= 1){
            cnt++;
            c -= 2;
            a--;
        }
        while (c >= 3){
            cnt++;
            c -= 3;
        }
        
        
        printf("%d\n", cnt);
    }
    return (0);
}
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 unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

int main(void)
{
    int q;
    int c, a, n;
    int cnt;
    int i;
    
    scanf("%d", &q);
    for (i = 0; i < q; i++){
        cnt = 0;
        scanf("%d %d %d", &c, &a, &n);
        
        while (c >= 1  && a >= 1 && n >= 1){
            cnt++;
            c--; a--; n--;
        }
        while (c >= 2 && a >= 1){
            cnt++;
            c -= 2;
            a--;
        }
        while (c >= 3){
            cnt++;
            c -= 3;
        }
        
        
        printf("%d\n", cnt);
    }
    return (0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %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	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -12(%rbp)
	jmp	.L2
.L11:
	movl	$0, -16(%rbp)
	leaq	-20(%rbp), %rcx
	leaq	-24(%rbp), %rdx
	leaq	-28(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L3
.L5:
	addl	$1, -16(%rbp)
	movl	-28(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -28(%rbp)
	movl	-24(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -24(%rbp)
	movl	-20(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -20(%rbp)
.L3:
	movl	-28(%rbp), %eax
	testl	%eax, %eax
	jle	.L6
	movl	-24(%rbp), %eax
	testl	%eax, %eax
	jle	.L6
	movl	-20(%rbp), %eax
	testl	%eax, %eax
	jg	.L5
	jmp	.L6
.L8:
	addl	$1, -16(%rbp)
	movl	-28(%rbp), %eax
	subl	$2, %eax
	movl	%eax, -28(%rbp)
	movl	-24(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -24(%rbp)
.L6:
	movl	-28(%rbp), %eax
	cmpl	$1, %eax
	jle	.L9
	movl	-24(%rbp), %eax
	testl	%eax, %eax
	jg	.L8
	jmp	.L9
.L10:
	addl	$1, -16(%rbp)
	movl	-28(%rbp), %eax
	subl	$3, %eax
	movl	%eax, -28(%rbp)
.L9:
	movl	-28(%rbp), %eax
	cmpl	$2, %eax
	jg	.L10
	movl	-16(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -12(%rbp)
.L2:
	movl	-32(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L11
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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.
train
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %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	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -12(%rbp)
	jmp	.L2
.L11:
	movl	$0, -16(%rbp)
	leaq	-20(%rbp), %rcx
	leaq	-24(%rbp), %rdx
	leaq	-28(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L3
.L5:
	addl	$1, -16(%rbp)
	movl	-28(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -28(%rbp)
	movl	-24(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -24(%rbp)
	movl	-20(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -20(%rbp)
.L3:
	movl	-28(%rbp), %eax
	testl	%eax, %eax
	jle	.L6
	movl	-24(%rbp), %eax
	testl	%eax, %eax
	jle	.L6
	movl	-20(%rbp), %eax
	testl	%eax, %eax
	jg	.L5
	jmp	.L6
.L8:
	addl	$1, -16(%rbp)
	movl	-28(%rbp), %eax
	subl	$2, %eax
	movl	%eax, -28(%rbp)
	movl	-24(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -24(%rbp)
.L6:
	movl	-28(%rbp), %eax
	cmpl	$1, %eax
	jle	.L9
	movl	-24(%rbp), %eax
	testl	%eax, %eax
	jg	.L8
	jmp	.L9
.L10:
	addl	$1, -16(%rbp)
	movl	-28(%rbp), %eax
	subl	$3, %eax
	movl	%eax, -28(%rbp)
.L9:
	movl	-28(%rbp), %eax
	cmpl	$2, %eax
	jg	.L10
	movl	-16(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -12(%rbp)
.L2:
	movl	-32(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L11
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
