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 a[3],a1=0,a2=0,i,j;
  for(j=0;j<3;j++){
    a1=0;a2=0;
  for(i=0;i<3;i++){
    scanf("%d",&a[i]);
    if(i==0)a1+=a[i]*3600;
    else if(i==1)a1+=a[i]*60;
    else if(i==2)a1+=a[i];
  }
  for(i=0;i<3;i++){
    scanf("%d",&a[i]);
    if(i==0)a2+=a[i]*3600;
    else if(i==1)a2+=a[i]*60;
    else if(i==2)a2+=a[i];
  }
  a1=a2-a1;
  printf("%d %d %d\n",a1/3600,(a1%3600)/60,(a1%3600)%60);
}
  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %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	.LC1(%rip), %r15
	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
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	movl	$3, 12(%rsp)
	leaq	28(%rsp), %r12
.L2:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
.L13:
	xorl	%eax, %eax
	leaq	(%r12,%rbx,4), %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	testq	%rbx, %rbx
	je	.L18
	cmpl	$1, %ebx
	je	.L19
	addl	36(%rsp), %r14d
	movl	%r14d, %r13d
	cmpq	$2, %rbx
	jne	.L6
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
.L11:
	xorl	%eax, %eax
	leaq	(%r12,%rbx,4), %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	testq	%rbx, %rbx
	je	.L20
	cmpl	$1, %ebx
	je	.L21
	addl	36(%rsp), %r14d
	cmpq	$2, %rbx
	jne	.L14
	movl	%r14d, %eax
	movl	$1, %edi
	subl	%r13d, %eax
	movslq	%eax, %rdx
	movl	%eax, %esi
	imulq	$-1851608123, %rdx, %rdx
	sarl	$31, %esi
	shrq	$32, %rdx
	addl	%eax, %edx
	sarl	$11, %edx
	movl	%edx, %r8d
	subl	%esi, %edx
	subl	%esi, %r8d
	movq	%r15, %rsi
	imull	$3600, %r8d, %ecx
	subl	%ecx, %eax
	movslq	%eax, %rcx
	sarl	$31, %eax
	movq	%rcx, %r8
	imulq	$-2004318071, %rcx, %rcx
	shrq	$32, %rcx
	addl	%r8d, %ecx
	sarl	$5, %ecx
	subl	%eax, %ecx
	imull	$60, %ecx, %eax
	subl	%eax, %r8d
	xorl	%eax, %eax
	call	__printf_chk@PLT
	subl	$1, 12(%rsp)
	jne	.L2
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$56, %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
.L20:
	.cfi_restore_state
	imull	$3600, 28(%rsp), %eax
	addl	%eax, %r14d
.L14:
	addq	$1, %rbx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L18:
	imull	$3600, 28(%rsp), %eax
	addl	%eax, %r14d
.L6:
	addq	$1, %rbx
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L21:
	imull	$60, 32(%rsp), %eax
	addq	$1, %rbx
	addl	%eax, %r14d
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L19:
	imull	$60, 32(%rsp), %eax
	addq	$1, %rbx
	addl	%eax, %r14d
	jmp	.L13
.L22:
	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\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	.LC1(%rip), %r15
	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
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	movl	$3, 12(%rsp)
	leaq	28(%rsp), %r12
.L2:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
.L13:
	xorl	%eax, %eax
	leaq	(%r12,%rbx,4), %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	testq	%rbx, %rbx
	je	.L18
	cmpl	$1, %ebx
	je	.L19
	addl	36(%rsp), %r14d
	movl	%r14d, %r13d
	cmpq	$2, %rbx
	jne	.L6
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
.L11:
	xorl	%eax, %eax
	leaq	(%r12,%rbx,4), %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	testq	%rbx, %rbx
	je	.L20
	cmpl	$1, %ebx
	je	.L21
	addl	36(%rsp), %r14d
	cmpq	$2, %rbx
	jne	.L14
	movl	%r14d, %eax
	movl	$1, %edi
	subl	%r13d, %eax
	movslq	%eax, %rdx
	movl	%eax, %esi
	imulq	$-1851608123, %rdx, %rdx
	sarl	$31, %esi
	shrq	$32, %rdx
	addl	%eax, %edx
	sarl	$11, %edx
	movl	%edx, %r8d
	subl	%esi, %edx
	subl	%esi, %r8d
	movq	%r15, %rsi
	imull	$3600, %r8d, %ecx
	subl	%ecx, %eax
	movslq	%eax, %rcx
	sarl	$31, %eax
	movq	%rcx, %r8
	imulq	$-2004318071, %rcx, %rcx
	shrq	$32, %rcx
	addl	%r8d, %ecx
	sarl	$5, %ecx
	subl	%eax, %ecx
	imull	$60, %ecx, %eax
	subl	%eax, %r8d
	xorl	%eax, %eax
	call	__printf_chk@PLT
	subl	$1, 12(%rsp)
	jne	.L2
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$56, %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
.L20:
	.cfi_restore_state
	imull	$3600, 28(%rsp), %eax
	addl	%eax, %r14d
.L14:
	addq	$1, %rbx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L18:
	imull	$3600, 28(%rsp), %eax
	addl	%eax, %r14d
.L6:
	addq	$1, %rbx
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L21:
	imull	$60, 32(%rsp), %eax
	addq	$1, %rbx
	addl	%eax, %r14d
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L19:
	imull	$60, 32(%rsp), %eax
	addq	$1, %rbx
	addl	%eax, %r14d
	jmp	.L13
.L22:
	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\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	.LC1(%rip), %r15
	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
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	movl	$3, 12(%rsp)
	leaq	28(%rsp), %r12
.L2:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
.L13:
	xorl	%eax, %eax
	leaq	(%r12,%rbx,4), %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	testq	%rbx, %rbx
	je	.L18
	cmpl	$1, %ebx
	je	.L19
	addl	36(%rsp), %r14d
	movl	%r14d, %r13d
	cmpq	$2, %rbx
	jne	.L6
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
.L11:
	xorl	%eax, %eax
	leaq	(%r12,%rbx,4), %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	testq	%rbx, %rbx
	je	.L20
	cmpl	$1, %ebx
	je	.L21
	addl	36(%rsp), %r14d
	cmpq	$2, %rbx
	jne	.L14
	movl	%r14d, %eax
	movl	$1, %edi
	subl	%r13d, %eax
	movslq	%eax, %rdx
	movl	%eax, %esi
	imulq	$-1851608123, %rdx, %rdx
	sarl	$31, %esi
	shrq	$32, %rdx
	addl	%eax, %edx
	sarl	$11, %edx
	movl	%edx, %r8d
	subl	%esi, %edx
	subl	%esi, %r8d
	movq	%r15, %rsi
	imull	$3600, %r8d, %ecx
	subl	%ecx, %eax
	movslq	%eax, %rcx
	sarl	$31, %eax
	movq	%rcx, %r8
	imulq	$-2004318071, %rcx, %rcx
	shrq	$32, %rcx
	addl	%r8d, %ecx
	sarl	$5, %ecx
	subl	%eax, %ecx
	imull	$60, %ecx, %eax
	subl	%eax, %r8d
	xorl	%eax, %eax
	call	__printf_chk@PLT
	subl	$1, 12(%rsp)
	jne	.L2
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$56, %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
.L20:
	.cfi_restore_state
	imull	$3600, 28(%rsp), %eax
	addl	%eax, %r14d
.L14:
	addq	$1, %rbx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L18:
	imull	$3600, 28(%rsp), %eax
	addl	%eax, %r14d
.L6:
	addq	$1, %rbx
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L21:
	imull	$60, 32(%rsp), %eax
	addq	$1, %rbx
	addl	%eax, %r14d
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L19:
	imull	$60, 32(%rsp), %eax
	addq	$1, %rbx
	addl	%eax, %r14d
	jmp	.L13
.L22:
	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 a[3],a1=0,a2=0,i,j;
  for(j=0;j<3;j++){
    a1=0;a2=0;
  for(i=0;i<3;i++){
    scanf("%d",&a[i]);
    if(i==0)a1+=a[i]*3600;
    else if(i==1)a1+=a[i]*60;
    else if(i==2)a1+=a[i];
  }
  for(i=0;i<3;i++){
    scanf("%d",&a[i]);
    if(i==0)a2+=a[i]*3600;
    else if(i==1)a2+=a[i]*60;
    else if(i==2)a2+=a[i];
  }
  a1=a2-a1;
  printf("%d %d %d\n",a1/3600,(a1%3600)/60,(a1%3600)%60);
}
  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 a[3],a1=0,a2=0,i,j;
  for(j=0;j<3;j++){
    a1=0;a2=0;
  for(i=0;i<3;i++){
    scanf("%d",&a[i]);
    if(i==0)a1+=a[i]*3600;
    else if(i==1)a1+=a[i]*60;
    else if(i==2)a1+=a[i];
  }
  for(i=0;i<3;i++){
    scanf("%d",&a[i]);
    if(i==0)a2+=a[i]*3600;
    else if(i==1)a2+=a[i]*60;
    else if(i==2)a2+=a[i];
  }
  a1=a2-a1;
  printf("%d %d %d\n",a1/3600,(a1%3600)/60,(a1%3600)%60);
}
  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:

9 0 0 18 0 0
9 0 1 18 0 0
9 14 52 12 15 30
 enoN
 9 0 0 0 0 0
9 0 1 18 0 0
9 14 52 12 15 30
 9 0 0 0 0 0
9 0 1 18 0 0
8 14 52 12 15 30
 9 0 0 0 0 0
9 0 1 18 0 0
8 14 86 12 15 30
 9 0 0 0 0 0
9 0 1 18 0 0
8 14 86 10 15 30
 9 0 0 0 0 0
9 0 0 18 0 0
8 14 86 10 15 30
 9 0 0 0 0 0
9 0 0 33 0 0
8 14 86 10 15 30
 9 0 0 0 0 0
9 0 0 33 0 0
8 14 130 10 15 30
 8 0 0 0 0 0
9 0 0 33 0 0
8 14 130 10 15 30

9 0 0
8 59 59
3 0 38
 0 0 0
0 0 0
0 0 0
 -9 0 0
8 59 59
3 0 38
 -9 0 0
8 59 59
4 0 38
 -9 0 0
8 59 59
4 0 4
 -9 0 0
8 59 59
2 0 4
 -9 0 0
9 0 0
2 0 4
 -9 0 0
24 0 0
2 0 4
 -9 0 0
24 0 0
1 59 20
 -8 0 0
24 0 0
1 59 20

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 a[3],a1=0,a2=0,i,j;
  for(j=0;j<3;j++){
    a1=0;a2=0;
  for(i=0;i<3;i++){
    scanf("%d",&a[i]);
    if(i==0)a1+=a[i]*3600;
    else if(i==1)a1+=a[i]*60;
    else if(i==2)a1+=a[i];
  }
  for(i=0;i<3;i++){
    scanf("%d",&a[i]);
    if(i==0)a2+=a[i]*3600;
    else if(i==1)a2+=a[i]*60;
    else if(i==2)a2+=a[i];
  }
  a1=a2-a1;
  printf("%d %d %d\n",a1/3600,(a1%3600)/60,(a1%3600)%60);
}
  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %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	.LC1(%rip), %r15
	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
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	movl	$3, 12(%rsp)
	leaq	28(%rsp), %r12
.L2:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
.L13:
	xorl	%eax, %eax
	leaq	(%r12,%rbx,4), %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	testq	%rbx, %rbx
	je	.L18
	cmpl	$1, %ebx
	je	.L19
	addl	36(%rsp), %r14d
	movl	%r14d, %r13d
	cmpq	$2, %rbx
	jne	.L6
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
.L11:
	xorl	%eax, %eax
	leaq	(%r12,%rbx,4), %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	testq	%rbx, %rbx
	je	.L20
	cmpl	$1, %ebx
	je	.L21
	addl	36(%rsp), %r14d
	cmpq	$2, %rbx
	jne	.L14
	movl	%r14d, %eax
	movl	$1, %edi
	subl	%r13d, %eax
	movslq	%eax, %rdx
	movl	%eax, %esi
	imulq	$-1851608123, %rdx, %rdx
	sarl	$31, %esi
	shrq	$32, %rdx
	addl	%eax, %edx
	sarl	$11, %edx
	movl	%edx, %r8d
	subl	%esi, %edx
	subl	%esi, %r8d
	movq	%r15, %rsi
	imull	$3600, %r8d, %ecx
	subl	%ecx, %eax
	movslq	%eax, %rcx
	sarl	$31, %eax
	movq	%rcx, %r8
	imulq	$-2004318071, %rcx, %rcx
	shrq	$32, %rcx
	addl	%r8d, %ecx
	sarl	$5, %ecx
	subl	%eax, %ecx
	imull	$60, %ecx, %eax
	subl	%eax, %r8d
	xorl	%eax, %eax
	call	__printf_chk@PLT
	subl	$1, 12(%rsp)
	jne	.L2
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$56, %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
.L20:
	.cfi_restore_state
	imull	$3600, 28(%rsp), %eax
	addl	%eax, %r14d
.L14:
	addq	$1, %rbx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L18:
	imull	$3600, 28(%rsp), %eax
	addl	%eax, %r14d
.L6:
	addq	$1, %rbx
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L21:
	imull	$60, 32(%rsp), %eax
	addq	$1, %rbx
	addl	%eax, %r14d
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L19:
	imull	$60, 32(%rsp), %eax
	addq	$1, %rbx
	addl	%eax, %r14d
	jmp	.L13
.L22:
	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\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	.LC1(%rip), %r15
	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
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	movl	$3, 12(%rsp)
	leaq	28(%rsp), %r12
.L2:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
.L13:
	xorl	%eax, %eax
	leaq	(%r12,%rbx,4), %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	testq	%rbx, %rbx
	je	.L18
	cmpl	$1, %ebx
	je	.L19
	addl	36(%rsp), %r14d
	movl	%r14d, %r13d
	cmpq	$2, %rbx
	jne	.L6
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
.L11:
	xorl	%eax, %eax
	leaq	(%r12,%rbx,4), %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	testq	%rbx, %rbx
	je	.L20
	cmpl	$1, %ebx
	je	.L21
	addl	36(%rsp), %r14d
	cmpq	$2, %rbx
	jne	.L14
	movl	%r14d, %eax
	movl	$1, %edi
	subl	%r13d, %eax
	movslq	%eax, %rdx
	movl	%eax, %esi
	imulq	$-1851608123, %rdx, %rdx
	sarl	$31, %esi
	shrq	$32, %rdx
	addl	%eax, %edx
	sarl	$11, %edx
	movl	%edx, %r8d
	subl	%esi, %edx
	subl	%esi, %r8d
	movq	%r15, %rsi
	imull	$3600, %r8d, %ecx
	subl	%ecx, %eax
	movslq	%eax, %rcx
	sarl	$31, %eax
	movq	%rcx, %r8
	imulq	$-2004318071, %rcx, %rcx
	shrq	$32, %rcx
	addl	%r8d, %ecx
	sarl	$5, %ecx
	subl	%eax, %ecx
	imull	$60, %ecx, %eax
	subl	%eax, %r8d
	xorl	%eax, %eax
	call	__printf_chk@PLT
	subl	$1, 12(%rsp)
	jne	.L2
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$56, %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
.L20:
	.cfi_restore_state
	imull	$3600, 28(%rsp), %eax
	addl	%eax, %r14d
.L14:
	addq	$1, %rbx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L18:
	imull	$3600, 28(%rsp), %eax
	addl	%eax, %r14d
.L6:
	addq	$1, %rbx
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L21:
	imull	$60, 32(%rsp), %eax
	addq	$1, %rbx
	addl	%eax, %r14d
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L19:
	imull	$60, 32(%rsp), %eax
	addq	$1, %rbx
	addl	%eax, %r14d
	jmp	.L13
.L22:
	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:
```