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

```c
toll[7][7]={
	{0},
	{300},
	{500,350},
	{600,450,250},
	{700,600,400,250},
	{1350,1150,1000,850,600},
	{1650,1500,1350,1300,1150,500}
},
far[7][7]={
	{0},
	{0},
	{0},
	{0},
	{0},
	{1},
	{1,1,1}
},
p1,h1,m1,p2,h2,m2,t,f,d;
main(){
	for(;scanf("%d%d%d%d%d%d",&p1,&h1,&m1,&p2,&h2,&m2),p1;){
		p1--,p2--;
		t=toll[p1>p2?p1:p2][p1>p2?p2:p1];
		f=far[p1>p2?p1:p2][p1>p2?p2:p1];
		m1+=h1*60;
		m2+=h2*60;
		m1=m1>=17*60+30&&m1<=19*60+30;
		m2=m2>=17*60+30&&m2<=19*60+30;
		d=(m1||m2)&&!f;
		printf("%d\n",d?(t/2+49)/50*50:t);
	}
	exit(0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	toll
	.data
	.align 32
	.type	toll, @object
	.size	toll, 196
toll:
	.long	0
	.zero	24
	.long	300
	.zero	24
	.long	500
	.long	350
	.zero	20
	.long	600
	.long	450
	.long	250
	.zero	16
	.long	700
	.long	600
	.long	400
	.long	250
	.zero	12
	.long	1350
	.long	1150
	.long	1000
	.long	850
	.long	600
	.zero	8
	.long	1650
	.long	1500
	.long	1350
	.long	1300
	.long	1150
	.long	500
	.zero	4
	.globl	far
	.align 32
	.type	far, @object
	.size	far, 196
far:
	.long	0
	.zero	24
	.long	0
	.zero	24
	.long	0
	.zero	24
	.long	0
	.zero	24
	.long	0
	.zero	24
	.long	1
	.zero	24
	.long	1
	.long	1
	.long	1
	.zero	16
	.globl	p1
	.bss
	.align 4
	.type	p1, @object
	.size	p1, 4
p1:
	.zero	4
	.globl	h1
	.align 4
	.type	h1, @object
	.size	h1, 4
h1:
	.zero	4
	.globl	m1
	.align 4
	.type	m1, @object
	.size	m1, 4
m1:
	.zero	4
	.globl	p2
	.align 4
	.type	p2, @object
	.size	p2, 4
p2:
	.zero	4
	.globl	h2
	.align 4
	.type	h2, @object
	.size	h2, 4
h2:
	.zero	4
	.globl	m2
	.align 4
	.type	m2, @object
	.size	m2, 4
m2:
	.zero	4
	.globl	t
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.globl	f
	.align 4
	.type	f, @object
	.size	f, 4
f:
	.zero	4
	.globl	d
	.align 4
	.type	d, @object
	.size	d, 4
d:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d%d%d%d%d%d"
	.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
	jmp	.L2
.L12:
	movl	p1(%rip), %eax
	subl	$1, %eax
	movl	%eax, p1(%rip)
	movl	p2(%rip), %eax
	subl	$1, %eax
	movl	%eax, p2(%rip)
	movl	p2(%rip), %edx
	movl	p1(%rip), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, %ecx
	movl	p1(%rip), %edx
	movl	p2(%rip), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movslq	%eax, %rsi
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	toll(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, t(%rip)
	movl	p2(%rip), %edx
	movl	p1(%rip), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, %ecx
	movl	p1(%rip), %edx
	movl	p2(%rip), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movslq	%eax, %rsi
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	far(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, f(%rip)
	movl	h1(%rip), %eax
	imull	$60, %eax, %edx
	movl	m1(%rip), %eax
	addl	%edx, %eax
	movl	%eax, m1(%rip)
	movl	h2(%rip), %eax
	imull	$60, %eax, %edx
	movl	m2(%rip), %eax
	addl	%edx, %eax
	movl	%eax, m2(%rip)
	movl	m1(%rip), %eax
	cmpl	$1049, %eax
	jle	.L3
	movl	m1(%rip), %eax
	cmpl	$1170, %eax
	jg	.L3
	movl	$1, %eax
	jmp	.L4
.L3:
	movl	$0, %eax
.L4:
	movl	%eax, m1(%rip)
	movl	m2(%rip), %eax
	cmpl	$1049, %eax
	jle	.L5
	movl	m2(%rip), %eax
	cmpl	$1170, %eax
	jg	.L5
	movl	$1, %eax
	jmp	.L6
.L5:
	movl	$0, %eax
.L6:
	movl	%eax, m2(%rip)
	movl	m1(%rip), %eax
	testl	%eax, %eax
	jne	.L7
	movl	m2(%rip), %eax
	testl	%eax, %eax
	je	.L8
.L7:
	movl	f(%rip), %eax
	testl	%eax, %eax
	jne	.L8
	movl	$1, %eax
	jmp	.L9
.L8:
	movl	$0, %eax
.L9:
	movl	%eax, d(%rip)
	movl	d(%rip), %eax
	testl	%eax, %eax
	je	.L10
	movl	t(%rip), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	addl	$49, %eax
	movslq	%eax, %rdx
	imulq	$1374389535, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$4, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	imull	$50, %eax, %eax
	jmp	.L11
.L10:
	movl	t(%rip), %eax
.L11:
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	subq	$8, %rsp
	leaq	m2(%rip), %rax
	pushq	%rax
	leaq	h2(%rip), %r9
	leaq	p2(%rip), %r8
	leaq	m1(%rip), %rax
	movq	%rax, %rcx
	leaq	h1(%rip), %rax
	movq	%rax, %rdx
	leaq	p1(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	addq	$16, %rsp
	movl	p1(%rip), %eax
	testl	%eax, %eax
	jne	.L12
	movl	$0, %edi
	call	exit@PLT
	.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\n"
.LC1:
	.string	"%d%d%d%d%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	m2(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	m1(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	h1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	p1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC1(%rip), %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L5:
	movl	p2(%rip), %edi
	subl	$1, %eax
	movl	%eax, p1(%rip)
	leal	-1(%rdi), %edx
	leaq	toll(%rip), %rdi
	cmpl	%edx, %eax
	movl	%edx, %ecx
	movl	%edx, p2(%rip)
	cmovge	%eax, %ecx
	cmovg	%edx, %eax
	movslq	%ecx, %rdx
	cltq
	leaq	far(%rip), %rcx
	leaq	(%rax,%rdx,8), %rax
	subq	%rdx, %rax
	imull	$60, h1(%rip), %edx
	addl	m1(%rip), %edx
	subl	$1050, %edx
	movl	(%rdi,%rax,4), %esi
	movl	(%rcx,%rax,4), %ecx
	imull	$60, h2(%rip), %eax
	addl	m2(%rip), %eax
	cmpl	$120, %edx
	setbe	%dil
	setbe	%dl
	subl	$1050, %eax
	movl	%esi, t(%rip)
	cmpl	$120, %eax
	movzbl	%dil, %edi
	movl	%ecx, f(%rip)
	setbe	%al
	movl	%edi, m1(%rip)
	setbe	%dil
	movzbl	%al, %eax
	movl	%eax, m2(%rip)
	testb	%dl, %dl
	jne	.L8
	xorl	%eax, %eax
	testb	%dil, %dil
	je	.L3
.L8:
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	.L3
	movl	%esi, %eax
	shrl	$31, %eax
	addl	%esi, %eax
	sarl	%eax
	addl	$49, %eax
	movslq	%eax, %rsi
	sarl	$31, %eax
	imulq	$1374389535, %rsi, %rsi
	sarq	$36, %rsi
	subl	%eax, %esi
	movl	$1, %eax
	imull	$50, %esi, %esi
.L3:
	movl	%eax, d(%rip)
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	printf@PLT
.L2:
	subq	$8, %rsp
	.cfi_def_cfa_offset 72
	movq	%r13, %rcx
	movq	%r12, %rdx
	movq	%rbp, %rsi
	pushq	%r14
	.cfi_def_cfa_offset 80
	leaq	h2(%rip), %r9
	movq	%rbx, %rdi
	xorl	%eax, %eax
	leaq	p2(%rip), %r8
	call	scanf@PLT
	movl	p1(%rip), %eax
	popq	%rdx
	.cfi_def_cfa_offset 72
	popq	%rcx
	.cfi_def_cfa_offset 64
	testl	%eax, %eax
	jne	.L5
	xorl	%edi, %edi
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	d
	.bss
	.align 4
	.type	d, @object
	.size	d, 4
d:
	.zero	4
	.globl	f
	.align 4
	.type	f, @object
	.size	f, 4
f:
	.zero	4
	.globl	t
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.globl	m2
	.align 4
	.type	m2, @object
	.size	m2, 4
m2:
	.zero	4
	.globl	h2
	.align 4
	.type	h2, @object
	.size	h2, 4
h2:
	.zero	4
	.globl	p2
	.align 4
	.type	p2, @object
	.size	p2, 4
p2:
	.zero	4
	.globl	m1
	.align 4
	.type	m1, @object
	.size	m1, 4
m1:
	.zero	4
	.globl	h1
	.align 4
	.type	h1, @object
	.size	h1, 4
h1:
	.zero	4
	.globl	p1
	.align 4
	.type	p1, @object
	.size	p1, 4
p1:
	.zero	4
	.globl	far
	.data
	.align 32
	.type	far, @object
	.size	far, 196
far:
	.long	0
	.zero	24
	.long	0
	.zero	24
	.long	0
	.zero	24
	.long	0
	.zero	24
	.long	0
	.zero	24
	.long	1
	.zero	24
	.long	1
	.long	1
	.long	1
	.zero	16
	.globl	toll
	.align 32
	.type	toll, @object
	.size	toll, 196
toll:
	.long	0
	.zero	24
	.long	300
	.zero	24
	.long	500
	.long	350
	.zero	20
	.long	600
	.long	450
	.long	250
	.zero	16
	.long	700
	.long	600
	.long	400
	.long	250
	.zero	12
	.long	1350
	.long	1150
	.long	1000
	.long	850
	.long	600
	.zero	8
	.long	1650
	.long	1500
	.long	1350
	.long	1300
	.long	1150
	.long	500
	.zero	4
	.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\n"
.LC1:
	.string	"%d%d%d%d%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	m2(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	m1(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	h1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	p1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC1(%rip), %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L5:
	movl	p2(%rip), %edi
	subl	$1, %eax
	movl	%eax, p1(%rip)
	leal	-1(%rdi), %edx
	leaq	toll(%rip), %rdi
	cmpl	%edx, %eax
	movl	%edx, %ecx
	movl	%edx, p2(%rip)
	cmovge	%eax, %ecx
	cmovg	%edx, %eax
	movslq	%ecx, %rdx
	cltq
	leaq	far(%rip), %rcx
	leaq	(%rax,%rdx,8), %rax
	subq	%rdx, %rax
	imull	$60, h1(%rip), %edx
	addl	m1(%rip), %edx
	subl	$1050, %edx
	movl	(%rdi,%rax,4), %esi
	movl	(%rcx,%rax,4), %ecx
	imull	$60, h2(%rip), %eax
	addl	m2(%rip), %eax
	cmpl	$120, %edx
	setbe	%dil
	setbe	%dl
	subl	$1050, %eax
	movl	%esi, t(%rip)
	cmpl	$120, %eax
	movzbl	%dil, %edi
	movl	%ecx, f(%rip)
	setbe	%al
	movl	%edi, m1(%rip)
	setbe	%dil
	movzbl	%al, %eax
	movl	%eax, m2(%rip)
	testb	%dl, %dl
	jne	.L8
	xorl	%eax, %eax
	testb	%dil, %dil
	je	.L3
.L8:
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	.L3
	movl	%esi, %eax
	shrl	$31, %eax
	addl	%esi, %eax
	sarl	%eax
	addl	$49, %eax
	movslq	%eax, %rsi
	sarl	$31, %eax
	imulq	$1374389535, %rsi, %rsi
	sarq	$36, %rsi
	subl	%eax, %esi
	movl	$1, %eax
	imull	$50, %esi, %esi
.L3:
	movl	%eax, d(%rip)
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	printf@PLT
.L2:
	subq	$8, %rsp
	.cfi_def_cfa_offset 72
	movq	%r13, %rcx
	movq	%r12, %rdx
	movq	%rbp, %rsi
	pushq	%r14
	.cfi_def_cfa_offset 80
	leaq	h2(%rip), %r9
	movq	%rbx, %rdi
	xorl	%eax, %eax
	leaq	p2(%rip), %r8
	call	scanf@PLT
	movl	p1(%rip), %eax
	popq	%rdx
	.cfi_def_cfa_offset 72
	popq	%rcx
	.cfi_def_cfa_offset 64
	testl	%eax, %eax
	jne	.L5
	xorl	%edi, %edi
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	d
	.bss
	.align 4
	.type	d, @object
	.size	d, 4
d:
	.zero	4
	.globl	f
	.align 4
	.type	f, @object
	.size	f, 4
f:
	.zero	4
	.globl	t
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.globl	m2
	.align 4
	.type	m2, @object
	.size	m2, 4
m2:
	.zero	4
	.globl	h2
	.align 4
	.type	h2, @object
	.size	h2, 4
h2:
	.zero	4
	.globl	p2
	.align 4
	.type	p2, @object
	.size	p2, 4
p2:
	.zero	4
	.globl	m1
	.align 4
	.type	m1, @object
	.size	m1, 4
m1:
	.zero	4
	.globl	h1
	.align 4
	.type	h1, @object
	.size	h1, 4
h1:
	.zero	4
	.globl	p1
	.align 4
	.type	p1, @object
	.size	p1, 4
p1:
	.zero	4
	.globl	far
	.data
	.align 32
	.type	far, @object
	.size	far, 196
far:
	.long	0
	.zero	24
	.long	0
	.zero	24
	.long	0
	.zero	24
	.long	0
	.zero	24
	.long	0
	.zero	24
	.long	1
	.zero	24
	.long	1
	.long	1
	.long	1
	.zero	16
	.globl	toll
	.align 32
	.type	toll, @object
	.size	toll, 196
toll:
	.long	0
	.zero	24
	.long	300
	.zero	24
	.long	500
	.long	350
	.zero	20
	.long	600
	.long	450
	.long	250
	.zero	16
	.long	700
	.long	600
	.long	400
	.long	250
	.zero	12
	.long	1350
	.long	1150
	.long	1000
	.long	850
	.long	600
	.zero	8
	.long	1650
	.long	1500
	.long	1350
	.long	1300
	.long	1150
	.long	500
	.zero	4
	.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:

toll[7][7]={
	{0},
	{300},
	{500,350},
	{600,450,250},
	{700,600,400,250},
	{1350,1150,1000,850,600},
	{1650,1500,1350,1300,1150,500}
},
far[7][7]={
	{0},
	{0},
	{0},
	{0},
	{0},
	{1},
	{1,1,1}
},
p1,h1,m1,p2,h2,m2,t,f,d;
main(){
	for(;scanf("%d%d%d%d%d%d",&p1,&h1,&m1,&p2,&h2,&m2),p1;){
		p1--,p2--;
		t=toll[p1>p2?p1:p2][p1>p2?p2:p1];
		f=far[p1>p2?p1:p2][p1>p2?p2:p1];
		m1+=h1*60;
		m2+=h2*60;
		m1=m1>=17*60+30&&m1<=19*60+30;
		m2=m2>=17*60+30&&m2<=19*60+30;
		d=(m1||m2)&&!f;
		printf("%d\n",d?(t/2+49)/50*50:t);
	}
	exit(0);
}
2
17 25
4
17 45
4
17 25
7
1 35
0
 2
19 25
4
17 37
4
17 47
7
0 63
0
 2
14 25
4
3 37
4
17 47
7
0 63
0
 2
13 25
3
17 45
4
17 25
7
1 35
0
 2
14 25
4
17 37
0
17 47
7
0 63
0
 2
13 25
3
17 45
4
17 47
7
1 35
0
 2
19 25
4
23 37
3
17 25
7
1 63
0
 2
14 25
6
17 37
0
17 47
7
0 63
0
 2
14 25
4
3 57
6
17 47
7
0 63
0
 2
19 25
5
17 37
4
17 2
7
-1 63
0

250
1300
 250
650
 450
650
 200
1300
 250
 200
650
 250
1350
 600
 450
250
 300
1300

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

```c
toll[7][7]={
	{0},
	{300},
	{500,350},
	{600,450,250},
	{700,600,400,250},
	{1350,1150,1000,850,600},
	{1650,1500,1350,1300,1150,500}
},
far[7][7]={
	{0},
	{0},
	{0},
	{0},
	{0},
	{1},
	{1,1,1}
},
p1,h1,m1,p2,h2,m2,t,f,d;
main(){
	for(;scanf("%d%d%d%d%d%d",&p1,&h1,&m1,&p2,&h2,&m2),p1;){
		p1--,p2--;
		t=toll[p1>p2?p1:p2][p1>p2?p2:p1];
		f=far[p1>p2?p1:p2][p1>p2?p2:p1];
		m1+=h1*60;
		m2+=h2*60;
		m1=m1>=17*60+30&&m1<=19*60+30;
		m2=m2>=17*60+30&&m2<=19*60+30;
		d=(m1||m2)&&!f;
		printf("%d\n",d?(t/2+49)/50*50:t);
	}
	exit(0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	toll
	.data
	.align 32
	.type	toll, @object
	.size	toll, 196
toll:
	.long	0
	.zero	24
	.long	300
	.zero	24
	.long	500
	.long	350
	.zero	20
	.long	600
	.long	450
	.long	250
	.zero	16
	.long	700
	.long	600
	.long	400
	.long	250
	.zero	12
	.long	1350
	.long	1150
	.long	1000
	.long	850
	.long	600
	.zero	8
	.long	1650
	.long	1500
	.long	1350
	.long	1300
	.long	1150
	.long	500
	.zero	4
	.globl	far
	.align 32
	.type	far, @object
	.size	far, 196
far:
	.long	0
	.zero	24
	.long	0
	.zero	24
	.long	0
	.zero	24
	.long	0
	.zero	24
	.long	0
	.zero	24
	.long	1
	.zero	24
	.long	1
	.long	1
	.long	1
	.zero	16
	.globl	p1
	.bss
	.align 4
	.type	p1, @object
	.size	p1, 4
p1:
	.zero	4
	.globl	h1
	.align 4
	.type	h1, @object
	.size	h1, 4
h1:
	.zero	4
	.globl	m1
	.align 4
	.type	m1, @object
	.size	m1, 4
m1:
	.zero	4
	.globl	p2
	.align 4
	.type	p2, @object
	.size	p2, 4
p2:
	.zero	4
	.globl	h2
	.align 4
	.type	h2, @object
	.size	h2, 4
h2:
	.zero	4
	.globl	m2
	.align 4
	.type	m2, @object
	.size	m2, 4
m2:
	.zero	4
	.globl	t
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.globl	f
	.align 4
	.type	f, @object
	.size	f, 4
f:
	.zero	4
	.globl	d
	.align 4
	.type	d, @object
	.size	d, 4
d:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d%d%d%d%d%d"
	.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
	jmp	.L2
.L12:
	movl	p1(%rip), %eax
	subl	$1, %eax
	movl	%eax, p1(%rip)
	movl	p2(%rip), %eax
	subl	$1, %eax
	movl	%eax, p2(%rip)
	movl	p2(%rip), %edx
	movl	p1(%rip), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, %ecx
	movl	p1(%rip), %edx
	movl	p2(%rip), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movslq	%eax, %rsi
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	toll(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, t(%rip)
	movl	p2(%rip), %edx
	movl	p1(%rip), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, %ecx
	movl	p1(%rip), %edx
	movl	p2(%rip), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movslq	%eax, %rsi
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	far(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, f(%rip)
	movl	h1(%rip), %eax
	imull	$60, %eax, %edx
	movl	m1(%rip), %eax
	addl	%edx, %eax
	movl	%eax, m1(%rip)
	movl	h2(%rip), %eax
	imull	$60, %eax, %edx
	movl	m2(%rip), %eax
	addl	%edx, %eax
	movl	%eax, m2(%rip)
	movl	m1(%rip), %eax
	cmpl	$1049, %eax
	jle	.L3
	movl	m1(%rip), %eax
	cmpl	$1170, %eax
	jg	.L3
	movl	$1, %eax
	jmp	.L4
.L3:
	movl	$0, %eax
.L4:
	movl	%eax, m1(%rip)
	movl	m2(%rip), %eax
	cmpl	$1049, %eax
	jle	.L5
	movl	m2(%rip), %eax
	cmpl	$1170, %eax
	jg	.L5
	movl	$1, %eax
	jmp	.L6
.L5:
	movl	$0, %eax
.L6:
	movl	%eax, m2(%rip)
	movl	m1(%rip), %eax
	testl	%eax, %eax
	jne	.L7
	movl	m2(%rip), %eax
	testl	%eax, %eax
	je	.L8
.L7:
	movl	f(%rip), %eax
	testl	%eax, %eax
	jne	.L8
	movl	$1, %eax
	jmp	.L9
.L8:
	movl	$0, %eax
.L9:
	movl	%eax, d(%rip)
	movl	d(%rip), %eax
	testl	%eax, %eax
	je	.L10
	movl	t(%rip), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	addl	$49, %eax
	movslq	%eax, %rdx
	imulq	$1374389535, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$4, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	imull	$50, %eax, %eax
	jmp	.L11
.L10:
	movl	t(%rip), %eax
.L11:
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	subq	$8, %rsp
	leaq	m2(%rip), %rax
	pushq	%rax
	leaq	h2(%rip), %r9
	leaq	p2(%rip), %r8
	leaq	m1(%rip), %rax
	movq	%rax, %rcx
	leaq	h1(%rip), %rax
	movq	%rax, %rdx
	leaq	p1(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	addq	$16, %rsp
	movl	p1(%rip), %eax
	testl	%eax, %eax
	jne	.L12
	movl	$0, %edi
	call	exit@PLT
	.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
	.globl	toll
	.data
	.align 32
	.type	toll, @object
	.size	toll, 196
toll:
	.long	0
	.zero	24
	.long	300
	.zero	24
	.long	500
	.long	350
	.zero	20
	.long	600
	.long	450
	.long	250
	.zero	16
	.long	700
	.long	600
	.long	400
	.long	250
	.zero	12
	.long	1350
	.long	1150
	.long	1000
	.long	850
	.long	600
	.zero	8
	.long	1650
	.long	1500
	.long	1350
	.long	1300
	.long	1150
	.long	500
	.zero	4
	.globl	far
	.align 32
	.type	far, @object
	.size	far, 196
far:
	.long	0
	.zero	24
	.long	0
	.zero	24
	.long	0
	.zero	24
	.long	0
	.zero	24
	.long	0
	.zero	24
	.long	1
	.zero	24
	.long	1
	.long	1
	.long	1
	.zero	16
	.globl	p1
	.bss
	.align 4
	.type	p1, @object
	.size	p1, 4
p1:
	.zero	4
	.globl	h1
	.align 4
	.type	h1, @object
	.size	h1, 4
h1:
	.zero	4
	.globl	m1
	.align 4
	.type	m1, @object
	.size	m1, 4
m1:
	.zero	4
	.globl	p2
	.align 4
	.type	p2, @object
	.size	p2, 4
p2:
	.zero	4
	.globl	h2
	.align 4
	.type	h2, @object
	.size	h2, 4
h2:
	.zero	4
	.globl	m2
	.align 4
	.type	m2, @object
	.size	m2, 4
m2:
	.zero	4
	.globl	t
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.globl	f
	.align 4
	.type	f, @object
	.size	f, 4
f:
	.zero	4
	.globl	d
	.align 4
	.type	d, @object
	.size	d, 4
d:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d%d%d%d%d%d"
	.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
	jmp	.L2
.L12:
	movl	p1(%rip), %eax
	subl	$1, %eax
	movl	%eax, p1(%rip)
	movl	p2(%rip), %eax
	subl	$1, %eax
	movl	%eax, p2(%rip)
	movl	p2(%rip), %edx
	movl	p1(%rip), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, %ecx
	movl	p1(%rip), %edx
	movl	p2(%rip), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movslq	%eax, %rsi
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	toll(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, t(%rip)
	movl	p2(%rip), %edx
	movl	p1(%rip), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, %ecx
	movl	p1(%rip), %edx
	movl	p2(%rip), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movslq	%eax, %rsi
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	far(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, f(%rip)
	movl	h1(%rip), %eax
	imull	$60, %eax, %edx
	movl	m1(%rip), %eax
	addl	%edx, %eax
	movl	%eax, m1(%rip)
	movl	h2(%rip), %eax
	imull	$60, %eax, %edx
	movl	m2(%rip), %eax
	addl	%edx, %eax
	movl	%eax, m2(%rip)
	movl	m1(%rip), %eax
	cmpl	$1049, %eax
	jle	.L3
	movl	m1(%rip), %eax
	cmpl	$1170, %eax
	jg	.L3
	movl	$1, %eax
	jmp	.L4
.L3:
	movl	$0, %eax
.L4:
	movl	%eax, m1(%rip)
	movl	m2(%rip), %eax
	cmpl	$1049, %eax
	jle	.L5
	movl	m2(%rip), %eax
	cmpl	$1170, %eax
	jg	.L5
	movl	$1, %eax
	jmp	.L6
.L5:
	movl	$0, %eax
.L6:
	movl	%eax, m2(%rip)
	movl	m1(%rip), %eax
	testl	%eax, %eax
	jne	.L7
	movl	m2(%rip), %eax
	testl	%eax, %eax
	je	.L8
.L7:
	movl	f(%rip), %eax
	testl	%eax, %eax
	jne	.L8
	movl	$1, %eax
	jmp	.L9
.L8:
	movl	$0, %eax
.L9:
	movl	%eax, d(%rip)
	movl	d(%rip), %eax
	testl	%eax, %eax
	je	.L10
	movl	t(%rip), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	addl	$49, %eax
	movslq	%eax, %rdx
	imulq	$1374389535, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$4, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	imull	$50, %eax, %eax
	jmp	.L11
.L10:
	movl	t(%rip), %eax
.L11:
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	subq	$8, %rsp
	leaq	m2(%rip), %rax
	pushq	%rax
	leaq	h2(%rip), %r9
	leaq	p2(%rip), %r8
	leaq	m1(%rip), %rax
	movq	%rax, %rcx
	leaq	h1(%rip), %rax
	movq	%rax, %rdx
	leaq	p1(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	addq	$16, %rsp
	movl	p1(%rip), %eax
	testl	%eax, %eax
	jne	.L12
	movl	$0, %edi
	call	exit@PLT
	.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:
