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

```c
z=60,t;p(){printf("0%d:%02d:%02d\n",t/z/z,t/z%z,t%z);}main(h,m,s){for(;scanf("%d%d%d",&h,&m,&s),~h;p(t),t*=3,p(t))t=7200-h*z*z-m*z-s;exit(0);}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	z
	.data
	.align 4
	.type	z, @object
	.size	z, 4
z:
	.long	60
	.globl	t
	.bss
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.section	.rodata
.LC0:
	.string	"0%d:%02d:%02d\n"
	.text
	.globl	p
	.type	p, @function
p:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	t(%rip), %eax
	movl	z(%rip), %ecx
	cltd
	idivl	%ecx
	movl	%edx, %edi
	movl	t(%rip), %eax
	movl	z(%rip), %esi
	cltd
	idivl	%esi
	movl	z(%rip), %ecx
	cltd
	idivl	%ecx
	movl	%edx, %esi
	movl	t(%rip), %eax
	movl	z(%rip), %ecx
	cltd
	idivl	%ecx
	movl	z(%rip), %ecx
	cltd
	idivl	%ecx
	movl	%edi, %ecx
	movl	%esi, %edx
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	p, .-p
	.section	.rodata
.LC1:
	.string	"%d%d%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	jmp	.L3
.L4:
	movl	-4(%rbp), %edx
	movl	z(%rip), %eax
	imull	%eax, %edx
	movl	z(%rip), %eax
	imull	%edx, %eax
	movl	$7200, %edx
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	-8(%rbp), %edx
	movl	z(%rip), %eax
	imull	%eax, %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	movl	-12(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, t(%rip)
	movl	t(%rip), %eax
	movl	%eax, %edi
	movl	$0, %eax
	call	p
	movl	t(%rip), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	movl	%eax, t(%rip)
	movl	t(%rip), %eax
	movl	%eax, %edi
	movl	$0, %eax
	call	p
.L3:
	leaq	-12(%rbp), %rcx
	leaq	-8(%rbp), %rdx
	leaq	-4(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-4(%rbp), %eax
	cmpl	$-1, %eax
	jne	.L4
	movl	$0, %edi
	call	exit@PLT
	.cfi_endproc
.LFE1:
	.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	"0%d:%02d:%02d\n"
	.text
	.p2align 4
	.globl	p
	.type	p, @function
p:
.LFB0:
	.cfi_startproc
	endbr64
	movl	t(%rip), %eax
	movl	z(%rip), %esi
	leaq	.LC0(%rip), %rdi
	cltd
	idivl	%esi
	movl	%edx, %ecx
	cltd
	idivl	%esi
	movl	%eax, %esi
	xorl	%eax, %eax
	jmp	printf@PLT
	.cfi_endproc
.LFE0:
	.size	p, .-p
	.section	.rodata.str1.1
.LC1:
	.string	"%d%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	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
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	.LC0(%rip), %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movl	%edi, 12(%rsp)
	leaq	4(%rsp), %r14
	leaq	8(%rsp), %r13
	movl	%esi, 8(%rsp)
	leaq	12(%rsp), %r12
	movl	%edx, 4(%rsp)
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movl	z(%rip), %esi
	movq	%rbx, %rdi
	imull	%esi, %eax
	imull	%esi, %eax
	movl	%eax, %edx
	movl	$7200, %eax
	subl	%edx, %eax
	movl	8(%rsp), %edx
	imull	%esi, %edx
	subl	%edx, %eax
	subl	4(%rsp), %eax
	cltd
	movl	%eax, t(%rip)
	idivl	%esi
	movl	%edx, %ecx
	cltd
	idivl	%esi
	movl	%eax, %esi
	xorl	%eax, %eax
	call	printf@PLT
	movl	t(%rip), %eax
	movl	z(%rip), %esi
	movq	%rbx, %rdi
	leal	(%rax,%rax,2), %eax
	cltd
	movl	%eax, t(%rip)
	idivl	%esi
	movl	%edx, %ecx
	cltd
	idivl	%esi
	movl	%eax, %esi
	xorl	%eax, %eax
	call	printf@PLT
.L4:
	movq	%r14, %rcx
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	12(%rsp), %eax
	cmpl	$-1, %eax
	jne	.L5
	xorl	%edi, %edi
	call	exit@PLT
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.globl	t
	.bss
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.globl	z
	.data
	.align 4
	.type	z, @object
	.size	z, 4
z:
	.long	60
	.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	"0%d:%02d:%02d\n"
	.text
	.p2align 4
	.globl	p
	.type	p, @function
p:
.LFB0:
	.cfi_startproc
	endbr64
	movl	t(%rip), %eax
	movl	z(%rip), %esi
	leaq	.LC0(%rip), %rdi
	cltd
	idivl	%esi
	movl	%edx, %ecx
	cltd
	idivl	%esi
	movl	%eax, %esi
	xorl	%eax, %eax
	jmp	printf@PLT
	.cfi_endproc
.LFE0:
	.size	p, .-p
	.section	.rodata.str1.1
.LC1:
	.string	"%d%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	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
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	.LC0(%rip), %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movl	%edi, 12(%rsp)
	leaq	4(%rsp), %r14
	leaq	8(%rsp), %r13
	movl	%esi, 8(%rsp)
	leaq	12(%rsp), %r12
	movl	%edx, 4(%rsp)
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movl	z(%rip), %esi
	movq	%rbx, %rdi
	imull	%esi, %eax
	imull	%esi, %eax
	movl	%eax, %edx
	movl	$7200, %eax
	subl	%edx, %eax
	movl	8(%rsp), %edx
	imull	%esi, %edx
	subl	%edx, %eax
	subl	4(%rsp), %eax
	cltd
	movl	%eax, t(%rip)
	idivl	%esi
	movl	%edx, %ecx
	cltd
	idivl	%esi
	movl	%eax, %esi
	xorl	%eax, %eax
	call	printf@PLT
	movl	t(%rip), %eax
	movl	z(%rip), %esi
	movq	%rbx, %rdi
	leal	(%rax,%rax,2), %eax
	cltd
	movl	%eax, t(%rip)
	idivl	%esi
	movl	%edx, %ecx
	cltd
	idivl	%esi
	movl	%eax, %esi
	xorl	%eax, %eax
	call	printf@PLT
.L4:
	movq	%r14, %rcx
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	12(%rsp), %eax
	cmpl	$-1, %eax
	jne	.L5
	xorl	%edi, %edi
	call	exit@PLT
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.globl	t
	.bss
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.globl	z
	.data
	.align 4
	.type	z, @object
	.size	z, 4
z:
	.long	60
	.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:

z=60,t;p(){printf("0%d:%02d:%02d\n",t/z/z,t/z%z,t%z);}main(h,m,s){for(;scanf("%d%d%d",&h,&m,&s),~h;p(t),t*=3,p(t))t=7200-h*z*z-m*z-s;exit(0);}
1 36 0
-1 -1 -1
 0 30 0
-1 -1 -1
 0 32 0
-1 -1 -1
 1 16 0
-1 -1 -1
 0 36 0
-1 -1 -1
 0 22 0
-1 -1 -1
 0 55 0
-1 -1 -1
 0 22 1
-1 -1 -1
 0 31 1
-1 -1 -1
 0 26 1
-1 -1 -1

00:24:00
01:12:00
 01:30:00
04:30:00
 01:28:00
04:24:00
 00:44:00
02:12:00
 01:24:00
04:12:00
 01:38:00
04:54:00
 01:05:00
03:15:00
 01:37:59
04:53:57
 01:28:59
04:26:57
 01:33:59
04:41:57

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

```c
z=60,t;p(){printf("0%d:%02d:%02d\n",t/z/z,t/z%z,t%z);}main(h,m,s){for(;scanf("%d%d%d",&h,&m,&s),~h;p(t),t*=3,p(t))t=7200-h*z*z-m*z-s;exit(0);}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	z
	.data
	.align 4
	.type	z, @object
	.size	z, 4
z:
	.long	60
	.globl	t
	.bss
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.section	.rodata
.LC0:
	.string	"0%d:%02d:%02d\n"
	.text
	.globl	p
	.type	p, @function
p:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	t(%rip), %eax
	movl	z(%rip), %ecx
	cltd
	idivl	%ecx
	movl	%edx, %edi
	movl	t(%rip), %eax
	movl	z(%rip), %esi
	cltd
	idivl	%esi
	movl	z(%rip), %ecx
	cltd
	idivl	%ecx
	movl	%edx, %esi
	movl	t(%rip), %eax
	movl	z(%rip), %ecx
	cltd
	idivl	%ecx
	movl	z(%rip), %ecx
	cltd
	idivl	%ecx
	movl	%edi, %ecx
	movl	%esi, %edx
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	p, .-p
	.section	.rodata
.LC1:
	.string	"%d%d%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	jmp	.L3
.L4:
	movl	-4(%rbp), %edx
	movl	z(%rip), %eax
	imull	%eax, %edx
	movl	z(%rip), %eax
	imull	%edx, %eax
	movl	$7200, %edx
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	-8(%rbp), %edx
	movl	z(%rip), %eax
	imull	%eax, %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	movl	-12(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, t(%rip)
	movl	t(%rip), %eax
	movl	%eax, %edi
	movl	$0, %eax
	call	p
	movl	t(%rip), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	movl	%eax, t(%rip)
	movl	t(%rip), %eax
	movl	%eax, %edi
	movl	$0, %eax
	call	p
.L3:
	leaq	-12(%rbp), %rcx
	leaq	-8(%rbp), %rdx
	leaq	-4(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-4(%rbp), %eax
	cmpl	$-1, %eax
	jne	.L4
	movl	$0, %edi
	call	exit@PLT
	.cfi_endproc
.LFE1:
	.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
	.globl	z
	.data
	.align 4
	.type	z, @object
	.size	z, 4
z:
	.long	60
	.globl	t
	.bss
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.section	.rodata
.LC0:
	.string	"0%d:%02d:%02d\n"
	.text
	.globl	p
	.type	p, @function
p:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	t(%rip), %eax
	movl	z(%rip), %ecx
	cltd
	idivl	%ecx
	movl	%edx, %edi
	movl	t(%rip), %eax
	movl	z(%rip), %esi
	cltd
	idivl	%esi
	movl	z(%rip), %ecx
	cltd
	idivl	%ecx
	movl	%edx, %esi
	movl	t(%rip), %eax
	movl	z(%rip), %ecx
	cltd
	idivl	%ecx
	movl	z(%rip), %ecx
	cltd
	idivl	%ecx
	movl	%edi, %ecx
	movl	%esi, %edx
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	p, .-p
	.section	.rodata
.LC1:
	.string	"%d%d%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	jmp	.L3
.L4:
	movl	-4(%rbp), %edx
	movl	z(%rip), %eax
	imull	%eax, %edx
	movl	z(%rip), %eax
	imull	%edx, %eax
	movl	$7200, %edx
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	-8(%rbp), %edx
	movl	z(%rip), %eax
	imull	%eax, %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	movl	-12(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, t(%rip)
	movl	t(%rip), %eax
	movl	%eax, %edi
	movl	$0, %eax
	call	p
	movl	t(%rip), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	movl	%eax, t(%rip)
	movl	t(%rip), %eax
	movl	%eax, %edi
	movl	$0, %eax
	call	p
.L3:
	leaq	-12(%rbp), %rcx
	leaq	-8(%rbp), %rdx
	leaq	-4(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-4(%rbp), %eax
	cmpl	$-1, %eax
	jne	.L4
	movl	$0, %edi
	call	exit@PLT
	.cfi_endproc
.LFE1:
	.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:
