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

```c
#define $ scanf("%d",
a[100],l,r,p,n;main(c){for(;c*=l=$&r)*r;printf("%d\n",c)){for(;c=l;)$--l+a);for($&n);l<r&&!++c|a[p=l+r>>1]-n;)a[p]<n?r=p:(l=p+1);}}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	%edi, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	leaq	n(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	r(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	a(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	imull	r(%rip), %eax
	imull	%eax, %r14d
	movl	%eax, l(%rip)
	testl	%r14d, %r14d
	jne	.L38
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L3:
	subl	$1, %eax
	movq	%rbp, %rdi
	movl	%eax, l(%rip)
	cltq
	leaq	(%rbx,%rax,4), %rsi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	l(%rip), %eax
.L38:
	testl	%eax, %eax
	jne	.L3
	movq	%r13, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	l(%rip), %edx
	movl	r(%rip), %ecx
	cmpl	%ecx, %edx
	jge	.L17
	movl	n(%rip), %edi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L5:
	leal	(%rdx,%rcx), %eax
	addl	$1, %r14d
	sarl	%eax
	movslq	%eax, %rsi
	cmpl	%edi, (%rbx,%rsi,4)
	je	.L40
	jl	.L6
	leal	1(%rax), %edx
	cmpl	%ecx, %edx
	jge	.L41
	movl	$1, %r8d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	cmpl	%edx, %eax
	jle	.L42
	movl	%eax, %ecx
	movl	$1, %r9d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L40:
	movl	%eax, p(%rip)
	testb	%r8b, %r8b
	je	.L11
	movl	%edx, l(%rip)
.L11:
	testb	%r9b, %r9b
	je	.L4
	movl	%ecx, r(%rip)
.L4:
	movl	%r14d, %esi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L42:
	movl	%eax, p(%rip)
	testb	%r8b, %r8b
	je	.L15
	movl	%edx, l(%rip)
.L15:
	movl	%eax, r(%rip)
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L41:
	movl	%eax, p(%rip)
	movl	%edx, l(%rip)
	testb	%r9b, %r9b
	je	.L4
	movl	%ecx, %eax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L24:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L17:
	.cfi_restore_state
	xorl	%r14d, %r14d
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	p
	.align 4
	.type	p, @object
	.size	p, 4
p:
	.zero	4
	.globl	r
	.align 4
	.type	r, @object
	.size	r, 4
r:
	.zero	4
	.globl	l
	.align 4
	.type	l, @object
	.size	l, 4
l:
	.zero	4
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 400
a:
	.zero	400
	.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\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	%edi, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	leaq	n(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	r(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	a(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	imull	r(%rip), %eax
	imull	%eax, %r14d
	movl	%eax, l(%rip)
	testl	%r14d, %r14d
	jne	.L38
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L3:
	subl	$1, %eax
	movq	%rbp, %rdi
	movl	%eax, l(%rip)
	cltq
	leaq	(%rbx,%rax,4), %rsi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	l(%rip), %eax
.L38:
	testl	%eax, %eax
	jne	.L3
	movq	%r13, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	l(%rip), %edx
	movl	r(%rip), %ecx
	cmpl	%ecx, %edx
	jge	.L17
	movl	n(%rip), %edi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L5:
	leal	(%rdx,%rcx), %eax
	addl	$1, %r14d
	sarl	%eax
	movslq	%eax, %rsi
	cmpl	%edi, (%rbx,%rsi,4)
	je	.L40
	jl	.L6
	leal	1(%rax), %edx
	cmpl	%ecx, %edx
	jge	.L41
	movl	$1, %r8d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	cmpl	%edx, %eax
	jle	.L42
	movl	%eax, %ecx
	movl	$1, %r9d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L40:
	movl	%eax, p(%rip)
	testb	%r8b, %r8b
	je	.L11
	movl	%edx, l(%rip)
.L11:
	testb	%r9b, %r9b
	je	.L4
	movl	%ecx, r(%rip)
.L4:
	movl	%r14d, %esi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L42:
	movl	%eax, p(%rip)
	testb	%r8b, %r8b
	je	.L15
	movl	%edx, l(%rip)
.L15:
	movl	%eax, r(%rip)
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L41:
	movl	%eax, p(%rip)
	movl	%edx, l(%rip)
	testb	%r9b, %r9b
	je	.L4
	movl	%ecx, %eax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L24:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L17:
	.cfi_restore_state
	xorl	%r14d, %r14d
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	p
	.align 4
	.type	p, @object
	.size	p, 4
p:
	.zero	4
	.globl	r
	.align 4
	.type	r, @object
	.size	r, 4
r:
	.zero	4
	.globl	l
	.align 4
	.type	l, @object
	.size	l, 4
l:
	.zero	4
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 400
a:
	.zero	400
	.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\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	%edi, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	leaq	n(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	r(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	a(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	imull	r(%rip), %eax
	imull	%eax, %r14d
	movl	%eax, l(%rip)
	testl	%r14d, %r14d
	jne	.L38
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L3:
	subl	$1, %eax
	movq	%rbp, %rdi
	movl	%eax, l(%rip)
	cltq
	leaq	(%rbx,%rax,4), %rsi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	l(%rip), %eax
.L38:
	testl	%eax, %eax
	jne	.L3
	movq	%r13, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	l(%rip), %edx
	movl	r(%rip), %ecx
	cmpl	%ecx, %edx
	jge	.L17
	movl	n(%rip), %edi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L5:
	leal	(%rdx,%rcx), %eax
	addl	$1, %r14d
	sarl	%eax
	movslq	%eax, %rsi
	cmpl	%edi, (%rbx,%rsi,4)
	je	.L40
	jl	.L6
	leal	1(%rax), %edx
	cmpl	%ecx, %edx
	jge	.L41
	movl	$1, %r8d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	cmpl	%edx, %eax
	jle	.L42
	movl	%eax, %ecx
	movl	$1, %r9d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L40:
	movl	%eax, p(%rip)
	testb	%r8b, %r8b
	je	.L11
	movl	%edx, l(%rip)
.L11:
	testb	%r9b, %r9b
	je	.L4
	movl	%ecx, r(%rip)
.L4:
	movl	%r14d, %esi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L42:
	movl	%eax, p(%rip)
	testb	%r8b, %r8b
	je	.L15
	movl	%edx, l(%rip)
.L15:
	movl	%eax, r(%rip)
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L41:
	movl	%eax, p(%rip)
	movl	%edx, l(%rip)
	testb	%r9b, %r9b
	je	.L4
	movl	%ecx, %eax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L24:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L17:
	.cfi_restore_state
	xorl	%r14d, %r14d
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	p
	.align 4
	.type	p, @object
	.size	p, 4
p:
	.zero	4
	.globl	r
	.align 4
	.type	r, @object
	.size	r, 4
r:
	.zero	4
	.globl	l
	.align 4
	.type	l, @object
	.size	l, 4
l:
	.zero	4
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 400
a:
	.zero	400
	.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
#define $ scanf("%d",
a[100],l,r,p,n;main(c){for(;c*=l=$&r)*r;printf("%d\n",c)){for(;c=l;)$--l+a);for($&n);l<r&&!++c|a[p=l+r>>1]-n;)a[p]<n?r=p:(l=p+1);}}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#define $ scanf("%d",
a[100],l,r,p,n;main(c){for(;c*=l=$&r)*r;printf("%d\n",c)){for(;c=l;)$--l+a);for($&n);l<r&&!++c|a[p=l+r>>1]-n;)a[p]<n?r=p:(l=p+1);}}```

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:

7
11
15
0
36
51
61
86
51
4
1
2
3
5
4
0
 7
11
15
0
42
51
61
86
51
4
1
2
4
5
4
0
 7
11
8
-2
53
51
17
109
42
4
1
0
3
1
0
0
 7
11
15
0
42
51
61
86
61
4
1
2
4
5
4
0
 7
11
8
-2
53
51
1
109
42
0
1
0
3
1
0
0
 7
0
15
0
42
51
61
48
61
0
1
3
4
5
4
0
 7
11
15
0
42
51
61
86
51
4
1
2
3
5
4
0
 7
11
20
0
42
51
61
86
51
4
1
2
4
5
4
0
 7
11
20
0
42
51
61
86
51
4
1
1
4
5
4
0
 7
11
15
23
36
51
61
86
51
4
1
2
3
7
4
0

3
3
 3
2
 3
1
 2
2
 3
 2
 3
3
 3
2
 3
2
 3
3

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

```c
#define $ scanf("%d",
a[100],l,r,p,n;main(c){for(;c*=l=$&r)*r;printf("%d\n",c)){for(;c=l;)$--l+a);for($&n);l<r&&!++c|a[p=l+r>>1]-n;)a[p]<n?r=p:(l=p+1);}}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	%edi, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	leaq	n(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	r(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	a(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	imull	r(%rip), %eax
	imull	%eax, %r14d
	movl	%eax, l(%rip)
	testl	%r14d, %r14d
	jne	.L38
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L3:
	subl	$1, %eax
	movq	%rbp, %rdi
	movl	%eax, l(%rip)
	cltq
	leaq	(%rbx,%rax,4), %rsi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	l(%rip), %eax
.L38:
	testl	%eax, %eax
	jne	.L3
	movq	%r13, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	l(%rip), %edx
	movl	r(%rip), %ecx
	cmpl	%ecx, %edx
	jge	.L17
	movl	n(%rip), %edi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L5:
	leal	(%rdx,%rcx), %eax
	addl	$1, %r14d
	sarl	%eax
	movslq	%eax, %rsi
	cmpl	%edi, (%rbx,%rsi,4)
	je	.L40
	jl	.L6
	leal	1(%rax), %edx
	cmpl	%ecx, %edx
	jge	.L41
	movl	$1, %r8d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	cmpl	%edx, %eax
	jle	.L42
	movl	%eax, %ecx
	movl	$1, %r9d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L40:
	movl	%eax, p(%rip)
	testb	%r8b, %r8b
	je	.L11
	movl	%edx, l(%rip)
.L11:
	testb	%r9b, %r9b
	je	.L4
	movl	%ecx, r(%rip)
.L4:
	movl	%r14d, %esi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L42:
	movl	%eax, p(%rip)
	testb	%r8b, %r8b
	je	.L15
	movl	%edx, l(%rip)
.L15:
	movl	%eax, r(%rip)
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L41:
	movl	%eax, p(%rip)
	movl	%edx, l(%rip)
	testb	%r9b, %r9b
	je	.L4
	movl	%ecx, %eax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L24:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L17:
	.cfi_restore_state
	xorl	%r14d, %r14d
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	p
	.align 4
	.type	p, @object
	.size	p, 4
p:
	.zero	4
	.globl	r
	.align 4
	.type	r, @object
	.size	r, 4
r:
	.zero	4
	.globl	l
	.align 4
	.type	l, @object
	.size	l, 4
l:
	.zero	4
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 400
a:
	.zero	400
	.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\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	%edi, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	leaq	n(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	r(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	a(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	imull	r(%rip), %eax
	imull	%eax, %r14d
	movl	%eax, l(%rip)
	testl	%r14d, %r14d
	jne	.L38
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L3:
	subl	$1, %eax
	movq	%rbp, %rdi
	movl	%eax, l(%rip)
	cltq
	leaq	(%rbx,%rax,4), %rsi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	l(%rip), %eax
.L38:
	testl	%eax, %eax
	jne	.L3
	movq	%r13, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	l(%rip), %edx
	movl	r(%rip), %ecx
	cmpl	%ecx, %edx
	jge	.L17
	movl	n(%rip), %edi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L5:
	leal	(%rdx,%rcx), %eax
	addl	$1, %r14d
	sarl	%eax
	movslq	%eax, %rsi
	cmpl	%edi, (%rbx,%rsi,4)
	je	.L40
	jl	.L6
	leal	1(%rax), %edx
	cmpl	%ecx, %edx
	jge	.L41
	movl	$1, %r8d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	cmpl	%edx, %eax
	jle	.L42
	movl	%eax, %ecx
	movl	$1, %r9d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L40:
	movl	%eax, p(%rip)
	testb	%r8b, %r8b
	je	.L11
	movl	%edx, l(%rip)
.L11:
	testb	%r9b, %r9b
	je	.L4
	movl	%ecx, r(%rip)
.L4:
	movl	%r14d, %esi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L42:
	movl	%eax, p(%rip)
	testb	%r8b, %r8b
	je	.L15
	movl	%edx, l(%rip)
.L15:
	movl	%eax, r(%rip)
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L41:
	movl	%eax, p(%rip)
	movl	%edx, l(%rip)
	testb	%r9b, %r9b
	je	.L4
	movl	%ecx, %eax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L24:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L17:
	.cfi_restore_state
	xorl	%r14d, %r14d
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	p
	.align 4
	.type	p, @object
	.size	p, 4
p:
	.zero	4
	.globl	r
	.align 4
	.type	r, @object
	.size	r, 4
r:
	.zero	4
	.globl	l
	.align 4
	.type	l, @object
	.size	l, 4
l:
	.zero	4
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 400
a:
	.zero	400
	.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:
```