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 flag[60];

int main(void) {
	int a, b, c;
	int cur, t;

	scanf("%d %d %d", &a, &b, &c);

	cur = t = 0;
	flag[0] = 1;
	while (1) {
		if (cur <= c + t * 60 && c + t * 60 <= cur + a) {
			printf("%d\n", c + t * 60);
			return 0;
		}

		cur += a + b;
		if (flag[cur % 60]) {
			puts("-1");
			return 0;
		}
		flag[cur % 60] = 1;

		while (c + t * 60 < cur)
			t++;
	}

	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"-1"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebx
	movl	16(%rsp), %r10d
	xorl	%ecx, %ecx
	movl	$1, flag(%rip)
	movl	20(%rsp), %esi
	xorl	%edx, %edx
	leaq	flag(%rip), %r9
	movdqa	.LC3(%rip), %xmm4
	movdqa	.LC4(%rip), %xmm3
	addl	%ebx, %r10d
	movl	$2290649225, %r11d
	movdqa	.LC5(%rip), %xmm2
	.p2align 4,,10
	.p2align 3
.L12:
	imull	$60, %ecx, %edi
	leal	(%rdi,%rsi), %r8d
	cmpl	%edx, %r8d
	jl	.L2
	leal	(%rdx,%rbx), %eax
	cmpl	%eax, %r8d
	jle	.L26
.L2:
	addl	%r10d, %edx
	movslq	%edx, %rax
	movl	%edx, %ebp
	imulq	$-2004318071, %rax, %rax
	sarl	$31, %ebp
	shrq	$32, %rax
	addl	%edx, %eax
	sarl	$5, %eax
	subl	%ebp, %eax
	imull	$60, %eax, %ebp
	movl	%edx, %eax
	subl	%ebp, %eax
	cltq
	movl	(%r9,%rax,4), %ebp
	testl	%ebp, %ebp
	jne	.L27
	movl	$1, (%r9,%rax,4)
	cmpl	%edx, %r8d
	jge	.L12
	leal	60(%rdi,%rsi), %edi
	leal	59(%rdx), %eax
	subl	%edi, %eax
	subl	$59, %edi
	cmpl	%edi, %edx
	jl	.L10
	cmpl	$1319, %eax
	jbe	.L10
	movl	%eax, %edi
	movd	%ecx, %xmm5
	xorl	%eax, %eax
	imulq	%r11, %rdi
	pshufd	$0, %xmm5, %xmm1
	paddd	%xmm4, %xmm1
	shrq	$37, %rdi
	addl	$1, %edi
	movl	%edi, %r8d
	shrl	$2, %r8d
	.p2align 4,,10
	.p2align 3
.L7:
	movdqa	%xmm1, %xmm0
	addl	$1, %eax
	paddd	%xmm3, %xmm1
	paddd	%xmm2, %xmm0
	cmpl	%eax, %r8d
	ja	.L7
	movl	%edi, %eax
	pshufd	$255, %xmm0, %xmm0
	andl	$-4, %eax
	leal	(%rax,%rcx), %r8d
	movd	%xmm0, %ecx
	cmpl	%eax, %edi
	je	.L12
	leal	1(%r8), %ecx
	imull	$60, %ecx, %eax
	leal	(%rsi,%rax), %edi
	cmpl	%edx, %edi
	jge	.L12
	leal	60(%rsi,%rax), %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %edx
	setg	%cl
	leal	2(%rcx,%r8), %ecx
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L10:
	addl	$60, %r8d
	addl	$1, %ecx
	cmpl	%r8d, %edx
	jle	.L12
	addl	$60, %r8d
	addl	$1, %ecx
	cmpl	%r8d, %edx
	jg	.L10
	jmp	.L12
.L27:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L3:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L26:
	.cfi_restore_state
	movl	%r8d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	flag
	.bss
	.align 32
	.type	flag, @object
	.size	flag, 240
flag:
	.zero	240
	.section	.rodata.cst16,"aM",@progbits,16
	.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	1
	.long	1
	.long	1
	.long	1
	.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 %d %d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"-1"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebx
	movl	16(%rsp), %r10d
	xorl	%ecx, %ecx
	movl	$1, flag(%rip)
	movl	20(%rsp), %esi
	xorl	%edx, %edx
	leaq	flag(%rip), %r9
	movdqa	.LC3(%rip), %xmm4
	movdqa	.LC4(%rip), %xmm3
	addl	%ebx, %r10d
	movl	$2290649225, %r11d
	movdqa	.LC5(%rip), %xmm2
	.p2align 4,,10
	.p2align 3
.L12:
	imull	$60, %ecx, %edi
	leal	(%rdi,%rsi), %r8d
	cmpl	%edx, %r8d
	jl	.L2
	leal	(%rdx,%rbx), %eax
	cmpl	%eax, %r8d
	jle	.L26
.L2:
	addl	%r10d, %edx
	movslq	%edx, %rax
	movl	%edx, %ebp
	imulq	$-2004318071, %rax, %rax
	sarl	$31, %ebp
	shrq	$32, %rax
	addl	%edx, %eax
	sarl	$5, %eax
	subl	%ebp, %eax
	imull	$60, %eax, %ebp
	movl	%edx, %eax
	subl	%ebp, %eax
	cltq
	movl	(%r9,%rax,4), %ebp
	testl	%ebp, %ebp
	jne	.L27
	movl	$1, (%r9,%rax,4)
	cmpl	%edx, %r8d
	jge	.L12
	leal	60(%rdi,%rsi), %edi
	leal	59(%rdx), %eax
	subl	%edi, %eax
	subl	$59, %edi
	cmpl	%edi, %edx
	jl	.L10
	cmpl	$1319, %eax
	jbe	.L10
	movl	%eax, %edi
	movd	%ecx, %xmm5
	xorl	%eax, %eax
	imulq	%r11, %rdi
	pshufd	$0, %xmm5, %xmm1
	paddd	%xmm4, %xmm1
	shrq	$37, %rdi
	addl	$1, %edi
	movl	%edi, %r8d
	shrl	$2, %r8d
	.p2align 4,,10
	.p2align 3
.L7:
	movdqa	%xmm1, %xmm0
	addl	$1, %eax
	paddd	%xmm3, %xmm1
	paddd	%xmm2, %xmm0
	cmpl	%eax, %r8d
	ja	.L7
	movl	%edi, %eax
	pshufd	$255, %xmm0, %xmm0
	andl	$-4, %eax
	leal	(%rax,%rcx), %r8d
	movd	%xmm0, %ecx
	cmpl	%eax, %edi
	je	.L12
	leal	1(%r8), %ecx
	imull	$60, %ecx, %eax
	leal	(%rsi,%rax), %edi
	cmpl	%edx, %edi
	jge	.L12
	leal	60(%rsi,%rax), %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %edx
	setg	%cl
	leal	2(%rcx,%r8), %ecx
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L10:
	addl	$60, %r8d
	addl	$1, %ecx
	cmpl	%r8d, %edx
	jle	.L12
	addl	$60, %r8d
	addl	$1, %ecx
	cmpl	%r8d, %edx
	jg	.L10
	jmp	.L12
.L27:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L3:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L26:
	.cfi_restore_state
	movl	%r8d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	flag
	.bss
	.align 32
	.type	flag, @object
	.size	flag, 240
flag:
	.zero	240
	.section	.rodata.cst16,"aM",@progbits,16
	.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	1
	.long	1
	.long	1
	.long	1
	.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 %d %d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"-1"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebx
	movl	16(%rsp), %r10d
	xorl	%ecx, %ecx
	movl	$1, flag(%rip)
	movl	20(%rsp), %esi
	xorl	%edx, %edx
	leaq	flag(%rip), %r9
	movdqa	.LC3(%rip), %xmm4
	movdqa	.LC4(%rip), %xmm3
	addl	%ebx, %r10d
	movl	$2290649225, %r11d
	movdqa	.LC5(%rip), %xmm2
	.p2align 4,,10
	.p2align 3
.L12:
	imull	$60, %ecx, %edi
	leal	(%rdi,%rsi), %r8d
	cmpl	%edx, %r8d
	jl	.L2
	leal	(%rdx,%rbx), %eax
	cmpl	%eax, %r8d
	jle	.L26
.L2:
	addl	%r10d, %edx
	movslq	%edx, %rax
	movl	%edx, %ebp
	imulq	$-2004318071, %rax, %rax
	sarl	$31, %ebp
	shrq	$32, %rax
	addl	%edx, %eax
	sarl	$5, %eax
	subl	%ebp, %eax
	imull	$60, %eax, %ebp
	movl	%edx, %eax
	subl	%ebp, %eax
	cltq
	movl	(%r9,%rax,4), %ebp
	testl	%ebp, %ebp
	jne	.L27
	movl	$1, (%r9,%rax,4)
	cmpl	%edx, %r8d
	jge	.L12
	leal	60(%rdi,%rsi), %edi
	leal	59(%rdx), %eax
	subl	%edi, %eax
	subl	$59, %edi
	cmpl	%edi, %edx
	jl	.L10
	cmpl	$1319, %eax
	jbe	.L10
	movl	%eax, %edi
	movd	%ecx, %xmm5
	xorl	%eax, %eax
	imulq	%r11, %rdi
	pshufd	$0, %xmm5, %xmm1
	paddd	%xmm4, %xmm1
	shrq	$37, %rdi
	addl	$1, %edi
	movl	%edi, %r8d
	shrl	$2, %r8d
	.p2align 4,,10
	.p2align 3
.L7:
	movdqa	%xmm1, %xmm0
	addl	$1, %eax
	paddd	%xmm3, %xmm1
	paddd	%xmm2, %xmm0
	cmpl	%eax, %r8d
	ja	.L7
	movl	%edi, %eax
	pshufd	$255, %xmm0, %xmm0
	andl	$-4, %eax
	leal	(%rax,%rcx), %r8d
	movd	%xmm0, %ecx
	cmpl	%eax, %edi
	je	.L12
	leal	1(%r8), %ecx
	imull	$60, %ecx, %eax
	leal	(%rsi,%rax), %edi
	cmpl	%edx, %edi
	jge	.L12
	leal	60(%rsi,%rax), %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %edx
	setg	%cl
	leal	2(%rcx,%r8), %ecx
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L10:
	addl	$60, %r8d
	addl	$1, %ecx
	cmpl	%r8d, %edx
	jle	.L12
	addl	$60, %r8d
	addl	$1, %ecx
	cmpl	%r8d, %edx
	jg	.L10
	jmp	.L12
.L27:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L3:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L26:
	.cfi_restore_state
	movl	%r8d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	flag
	.bss
	.align 32
	.type	flag, @object
	.size	flag, 240
flag:
	.zero	240
	.section	.rodata.cst16,"aM",@progbits,16
	.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	1
	.long	1
	.long	1
	.long	1
	.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 flag[60];

int main(void) {
	int a, b, c;
	int cur, t;

	scanf("%d %d %d", &a, &b, &c);

	cur = t = 0;
	flag[0] = 1;
	while (1) {
		if (cur <= c + t * 60 && c + t * 60 <= cur + a) {
			printf("%d\n", c + t * 60);
			return 0;
		}

		cur += a + b;
		if (flag[cur % 60]) {
			puts("-1");
			return 0;
		}
		flag[cur % 60] = 1;

		while (c + t * 60 < cur)
			t++;
	}

	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 flag[60];

int main(void) {
	int a, b, c;
	int cur, t;

	scanf("%d %d %d", &a, &b, &c);

	cur = t = 0;
	flag[0] = 1;
	while (1) {
		if (cur <= c + t * 60 && c + t * 60 <= cur + a) {
			printf("%d\n", c + t * 60);
			return 0;
		}

		cur += a + b;
		if (flag[cur % 60]) {
			puts("-1");
			return 0;
		}
		flag[cur % 60] = 1;

		while (c + t * 60 < cur)
			t++;
	}

	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:

20 25 20
 89 40 51
 10 14 5
 36 18 15
 3 18 15
 16 5 4
 0 18 15
 128 12 16
 0 18 12
 2 5 4

20
 51
 5
 15
 255
 4
 -1
 16
 72
 64

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 flag[60];

int main(void) {
	int a, b, c;
	int cur, t;

	scanf("%d %d %d", &a, &b, &c);

	cur = t = 0;
	flag[0] = 1;
	while (1) {
		if (cur <= c + t * 60 && c + t * 60 <= cur + a) {
			printf("%d\n", c + t * 60);
			return 0;
		}

		cur += a + b;
		if (flag[cur % 60]) {
			puts("-1");
			return 0;
		}
		flag[cur % 60] = 1;

		while (c + t * 60 < cur)
			t++;
	}

	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"-1"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebx
	movl	16(%rsp), %r10d
	xorl	%ecx, %ecx
	movl	$1, flag(%rip)
	movl	20(%rsp), %esi
	xorl	%edx, %edx
	leaq	flag(%rip), %r9
	movdqa	.LC3(%rip), %xmm4
	movdqa	.LC4(%rip), %xmm3
	addl	%ebx, %r10d
	movl	$2290649225, %r11d
	movdqa	.LC5(%rip), %xmm2
	.p2align 4,,10
	.p2align 3
.L12:
	imull	$60, %ecx, %edi
	leal	(%rdi,%rsi), %r8d
	cmpl	%edx, %r8d
	jl	.L2
	leal	(%rdx,%rbx), %eax
	cmpl	%eax, %r8d
	jle	.L26
.L2:
	addl	%r10d, %edx
	movslq	%edx, %rax
	movl	%edx, %ebp
	imulq	$-2004318071, %rax, %rax
	sarl	$31, %ebp
	shrq	$32, %rax
	addl	%edx, %eax
	sarl	$5, %eax
	subl	%ebp, %eax
	imull	$60, %eax, %ebp
	movl	%edx, %eax
	subl	%ebp, %eax
	cltq
	movl	(%r9,%rax,4), %ebp
	testl	%ebp, %ebp
	jne	.L27
	movl	$1, (%r9,%rax,4)
	cmpl	%edx, %r8d
	jge	.L12
	leal	60(%rdi,%rsi), %edi
	leal	59(%rdx), %eax
	subl	%edi, %eax
	subl	$59, %edi
	cmpl	%edi, %edx
	jl	.L10
	cmpl	$1319, %eax
	jbe	.L10
	movl	%eax, %edi
	movd	%ecx, %xmm5
	xorl	%eax, %eax
	imulq	%r11, %rdi
	pshufd	$0, %xmm5, %xmm1
	paddd	%xmm4, %xmm1
	shrq	$37, %rdi
	addl	$1, %edi
	movl	%edi, %r8d
	shrl	$2, %r8d
	.p2align 4,,10
	.p2align 3
.L7:
	movdqa	%xmm1, %xmm0
	addl	$1, %eax
	paddd	%xmm3, %xmm1
	paddd	%xmm2, %xmm0
	cmpl	%eax, %r8d
	ja	.L7
	movl	%edi, %eax
	pshufd	$255, %xmm0, %xmm0
	andl	$-4, %eax
	leal	(%rax,%rcx), %r8d
	movd	%xmm0, %ecx
	cmpl	%eax, %edi
	je	.L12
	leal	1(%r8), %ecx
	imull	$60, %ecx, %eax
	leal	(%rsi,%rax), %edi
	cmpl	%edx, %edi
	jge	.L12
	leal	60(%rsi,%rax), %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %edx
	setg	%cl
	leal	2(%rcx,%r8), %ecx
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L10:
	addl	$60, %r8d
	addl	$1, %ecx
	cmpl	%r8d, %edx
	jle	.L12
	addl	$60, %r8d
	addl	$1, %ecx
	cmpl	%r8d, %edx
	jg	.L10
	jmp	.L12
.L27:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L3:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L26:
	.cfi_restore_state
	movl	%r8d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	flag
	.bss
	.align 32
	.type	flag, @object
	.size	flag, 240
flag:
	.zero	240
	.section	.rodata.cst16,"aM",@progbits,16
	.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	1
	.long	1
	.long	1
	.long	1
	.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 %d %d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"-1"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebx
	movl	16(%rsp), %r10d
	xorl	%ecx, %ecx
	movl	$1, flag(%rip)
	movl	20(%rsp), %esi
	xorl	%edx, %edx
	leaq	flag(%rip), %r9
	movdqa	.LC3(%rip), %xmm4
	movdqa	.LC4(%rip), %xmm3
	addl	%ebx, %r10d
	movl	$2290649225, %r11d
	movdqa	.LC5(%rip), %xmm2
	.p2align 4,,10
	.p2align 3
.L12:
	imull	$60, %ecx, %edi
	leal	(%rdi,%rsi), %r8d
	cmpl	%edx, %r8d
	jl	.L2
	leal	(%rdx,%rbx), %eax
	cmpl	%eax, %r8d
	jle	.L26
.L2:
	addl	%r10d, %edx
	movslq	%edx, %rax
	movl	%edx, %ebp
	imulq	$-2004318071, %rax, %rax
	sarl	$31, %ebp
	shrq	$32, %rax
	addl	%edx, %eax
	sarl	$5, %eax
	subl	%ebp, %eax
	imull	$60, %eax, %ebp
	movl	%edx, %eax
	subl	%ebp, %eax
	cltq
	movl	(%r9,%rax,4), %ebp
	testl	%ebp, %ebp
	jne	.L27
	movl	$1, (%r9,%rax,4)
	cmpl	%edx, %r8d
	jge	.L12
	leal	60(%rdi,%rsi), %edi
	leal	59(%rdx), %eax
	subl	%edi, %eax
	subl	$59, %edi
	cmpl	%edi, %edx
	jl	.L10
	cmpl	$1319, %eax
	jbe	.L10
	movl	%eax, %edi
	movd	%ecx, %xmm5
	xorl	%eax, %eax
	imulq	%r11, %rdi
	pshufd	$0, %xmm5, %xmm1
	paddd	%xmm4, %xmm1
	shrq	$37, %rdi
	addl	$1, %edi
	movl	%edi, %r8d
	shrl	$2, %r8d
	.p2align 4,,10
	.p2align 3
.L7:
	movdqa	%xmm1, %xmm0
	addl	$1, %eax
	paddd	%xmm3, %xmm1
	paddd	%xmm2, %xmm0
	cmpl	%eax, %r8d
	ja	.L7
	movl	%edi, %eax
	pshufd	$255, %xmm0, %xmm0
	andl	$-4, %eax
	leal	(%rax,%rcx), %r8d
	movd	%xmm0, %ecx
	cmpl	%eax, %edi
	je	.L12
	leal	1(%r8), %ecx
	imull	$60, %ecx, %eax
	leal	(%rsi,%rax), %edi
	cmpl	%edx, %edi
	jge	.L12
	leal	60(%rsi,%rax), %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %edx
	setg	%cl
	leal	2(%rcx,%r8), %ecx
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L10:
	addl	$60, %r8d
	addl	$1, %ecx
	cmpl	%r8d, %edx
	jle	.L12
	addl	$60, %r8d
	addl	$1, %ecx
	cmpl	%r8d, %edx
	jg	.L10
	jmp	.L12
.L27:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L3:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L26:
	.cfi_restore_state
	movl	%r8d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	flag
	.bss
	.align 32
	.type	flag, @object
	.size	flag, 240
flag:
	.zero	240
	.section	.rodata.cst16,"aM",@progbits,16
	.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	1
	.long	1
	.long	1
	.long	1
	.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:
```