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

```c
a,i,v[];main(b,c,n){for(scanf("%d",&n);~scanf("%d%d%d%d",&a,&b,&c,v);)c-*v?v[c>*v?a:b]+=3:++v[a]-++v[b];for(;a=b=i++<n;printf("%d\n",b))for(;a<=n;)b+=v[i]<v[a++];}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d%d%d"
.LC2:
	.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
	xorl	%eax, %eax
	leaq	v(%rip), %r14
	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	a(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	.LC1(%rip), %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movl	%edi, 12(%rsp)
	leaq	8(%rsp), %r13
	leaq	12(%rsp), %r12
	movl	%esi, 8(%rsp)
	leaq	.LC0(%rip), %rdi
	leaq	4(%rsp), %rsi
	movl	%edx, 4(%rsp)
	call	scanf@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%r14, %r8
	movq	%r13, %rcx
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	scanf@PLT
	cmpl	$-1, %eax
	je	.L19
	movl	v(%rip), %eax
	cmpl	8(%rsp), %eax
	je	.L3
	jge	.L4
	movslq	a(%rip), %rdx
.L5:
	addl	$3, %eax
	movl	%eax, (%r14,%rdx,4)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	movslq	12(%rsp), %rdx
	addl	$2, %eax
	movl	%eax, (%r14,%rdx,4)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	movslq	12(%rsp), %rdx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L19:
	movl	i(%rip), %edx
	leaq	.LC2(%rip), %rbx
	leal	1(%rdx), %eax
	movl	%eax, i(%rip)
	movl	4(%rsp), %eax
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L8:
	testl	%eax, %eax
	jle	.L20
	addl	$1, %eax
	movl	$1, %esi
	movq	%rbx, %rdi
	movl	%eax, a(%rip)
	xorl	%eax, %eax
	call	printf@PLT
	movl	i(%rip), %edx
	leal	1(%rdx), %eax
	movl	%eax, i(%rip)
	movl	4(%rsp), %eax
.L17:
	cmpl	%edx, %eax
	setg	%dl
	movzbl	%dl, %edx
	movl	%edx, 12(%rsp)
	movl	%edx, a(%rip)
	jg	.L8
.L9:
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	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
.L20:
	.cfi_restore_state
	xorl	%eax, %eax
	movl	$1, %esi
	movq	%rbx, %rdi
	call	printf@PLT
	movl	i(%rip), %edx
	leal	1(%rdx), %eax
	movl	%eax, i(%rip)
	movl	4(%rsp), %eax
	cmpl	%eax, %edx
	setl	%dl
	movzbl	%dl, %edx
	movl	%edx, 12(%rsp)
	movl	%edx, a(%rip)
	jl	.L8
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	v
	.bss
	.align 4
	.type	v, @object
	.size	v, 4
v:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.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:
```

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%d"
.LC2:
	.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
	xorl	%eax, %eax
	leaq	v(%rip), %r14
	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	a(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	.LC1(%rip), %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movl	%edi, 12(%rsp)
	leaq	8(%rsp), %r13
	leaq	12(%rsp), %r12
	movl	%esi, 8(%rsp)
	leaq	.LC0(%rip), %rdi
	leaq	4(%rsp), %rsi
	movl	%edx, 4(%rsp)
	call	scanf@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%r14, %r8
	movq	%r13, %rcx
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	scanf@PLT
	cmpl	$-1, %eax
	je	.L19
	movl	v(%rip), %eax
	cmpl	8(%rsp), %eax
	je	.L3
	jge	.L4
	movslq	a(%rip), %rdx
.L5:
	addl	$3, %eax
	movl	%eax, (%r14,%rdx,4)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	movslq	12(%rsp), %rdx
	addl	$2, %eax
	movl	%eax, (%r14,%rdx,4)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	movslq	12(%rsp), %rdx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L19:
	movl	i(%rip), %edx
	leaq	.LC2(%rip), %rbx
	leal	1(%rdx), %eax
	movl	%eax, i(%rip)
	movl	4(%rsp), %eax
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L8:
	testl	%eax, %eax
	jle	.L20
	addl	$1, %eax
	movl	$1, %esi
	movq	%rbx, %rdi
	movl	%eax, a(%rip)
	xorl	%eax, %eax
	call	printf@PLT
	movl	i(%rip), %edx
	leal	1(%rdx), %eax
	movl	%eax, i(%rip)
	movl	4(%rsp), %eax
.L17:
	cmpl	%edx, %eax
	setg	%dl
	movzbl	%dl, %edx
	movl	%edx, 12(%rsp)
	movl	%edx, a(%rip)
	jg	.L8
.L9:
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	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
.L20:
	.cfi_restore_state
	xorl	%eax, %eax
	movl	$1, %esi
	movq	%rbx, %rdi
	call	printf@PLT
	movl	i(%rip), %edx
	leal	1(%rdx), %eax
	movl	%eax, i(%rip)
	movl	4(%rsp), %eax
	cmpl	%eax, %edx
	setl	%dl
	movzbl	%dl, %edx
	movl	%edx, 12(%rsp)
	movl	%edx, a(%rip)
	jl	.L8
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	v
	.bss
	.align 4
	.type	v, @object
	.size	v, 4
v:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d%d%d"
.LC2:
	.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
	xorl	%eax, %eax
	leaq	v(%rip), %r14
	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	a(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	.LC1(%rip), %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movl	%edi, 12(%rsp)
	leaq	8(%rsp), %r13
	leaq	12(%rsp), %r12
	movl	%esi, 8(%rsp)
	leaq	.LC0(%rip), %rdi
	leaq	4(%rsp), %rsi
	movl	%edx, 4(%rsp)
	call	scanf@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%r14, %r8
	movq	%r13, %rcx
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	scanf@PLT
	cmpl	$-1, %eax
	je	.L19
	movl	v(%rip), %eax
	cmpl	8(%rsp), %eax
	je	.L3
	jge	.L4
	movslq	a(%rip), %rdx
.L5:
	addl	$3, %eax
	movl	%eax, (%r14,%rdx,4)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	movslq	12(%rsp), %rdx
	addl	$2, %eax
	movl	%eax, (%r14,%rdx,4)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	movslq	12(%rsp), %rdx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L19:
	movl	i(%rip), %edx
	leaq	.LC2(%rip), %rbx
	leal	1(%rdx), %eax
	movl	%eax, i(%rip)
	movl	4(%rsp), %eax
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L8:
	testl	%eax, %eax
	jle	.L20
	addl	$1, %eax
	movl	$1, %esi
	movq	%rbx, %rdi
	movl	%eax, a(%rip)
	xorl	%eax, %eax
	call	printf@PLT
	movl	i(%rip), %edx
	leal	1(%rdx), %eax
	movl	%eax, i(%rip)
	movl	4(%rsp), %eax
.L17:
	cmpl	%edx, %eax
	setg	%dl
	movzbl	%dl, %edx
	movl	%edx, 12(%rsp)
	movl	%edx, a(%rip)
	jg	.L8
.L9:
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	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
.L20:
	.cfi_restore_state
	xorl	%eax, %eax
	movl	$1, %esi
	movq	%rbx, %rdi
	call	printf@PLT
	movl	i(%rip), %edx
	leal	1(%rdx), %eax
	movl	%eax, i(%rip)
	movl	4(%rsp), %eax
	cmpl	%eax, %edx
	setl	%dl
	movzbl	%dl, %edx
	movl	%edx, 12(%rsp)
	movl	%edx, a(%rip)
	jl	.L8
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	v
	.bss
	.align 4
	.type	v, @object
	.size	v, 4
v:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.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:
```
```c
a,i,v[];main(b,c,n){for(scanf("%d",&n);~scanf("%d%d%d%d",&a,&b,&c,v);)c-*v?v[c>*v?a:b]+=3:++v[a]-++v[b];for(;a=b=i++<n;printf("%d\n",b))for(;a<=n;)b+=v[i]<v[a++];}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
a,i,v[];main(b,c,n){for(scanf("%d",&n);~scanf("%d%d%d%d",&a,&b,&c,v);)c-*v?v[c>*v?a:b]+=3:++v[a]-++v[b];for(;a=b=i++<n;printf("%d\n",b))for(;a<=n;)b+=v[i]<v[a++];}```

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:

4
1 2 0 1
1 3 2 1
1 4 2 2
2 3 2 1
2 4 3 0
3 4 1 3
 4
1 2 0 1
1 3 2 1
1 4 2 2
4 3 2 1
2 4 3 0
3 4 1 3
 4
1 2 1 1
1 3 2 1
1 4 2 2
4 0 3 1
2 4 3 0
0 4 1 4
 4
1 1 1 1
1 3 2 1
1 4 2 0
4 0 3 1
2 4 3 0
0 4 1 4
 4
1 2 0 1
2 3 2 1
1 4 2 2
2 3 2 1
2 4 3 0
3 4 1 3
 4
1 2 0 1
1 3 2 1
1 4 2 2
4 0 2 1
3 4 3 0
0 4 1 4
 4
1 1 1 1
1 3 2 1
1 3 2 2
4 0 3 2
2 4 3 0
0 4 1 4
 4
1 4 0 1
1 3 2 1
1 4 2 2
4 0 2 1
3 4 3 0
-1 4 1 4
 4
1 1 1 1
1 3 2 1
2 4 2 0
4 0 3 1
2 4 3 0
0 4 2 8
 4
1 2 0 1
1 3 2 1
1 4 2 2
2 3 1 0
2 4 3 0
3 4 1 0

2
1
4
2
 3
2
4
1
 2
3
4
1
 1
3
4
2
 3
1
4
2
 2
3
3
1
 1
3
4
1
 2
4
3
1
 3
1
4
1
 2
1
3
4

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

```c
a,i,v[];main(b,c,n){for(scanf("%d",&n);~scanf("%d%d%d%d",&a,&b,&c,v);)c-*v?v[c>*v?a:b]+=3:++v[a]-++v[b];for(;a=b=i++<n;printf("%d\n",b))for(;a<=n;)b+=v[i]<v[a++];}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d%d%d"
.LC2:
	.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
	xorl	%eax, %eax
	leaq	v(%rip), %r14
	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	a(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	.LC1(%rip), %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movl	%edi, 12(%rsp)
	leaq	8(%rsp), %r13
	leaq	12(%rsp), %r12
	movl	%esi, 8(%rsp)
	leaq	.LC0(%rip), %rdi
	leaq	4(%rsp), %rsi
	movl	%edx, 4(%rsp)
	call	scanf@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%r14, %r8
	movq	%r13, %rcx
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	scanf@PLT
	cmpl	$-1, %eax
	je	.L19
	movl	v(%rip), %eax
	cmpl	8(%rsp), %eax
	je	.L3
	jge	.L4
	movslq	a(%rip), %rdx
.L5:
	addl	$3, %eax
	movl	%eax, (%r14,%rdx,4)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	movslq	12(%rsp), %rdx
	addl	$2, %eax
	movl	%eax, (%r14,%rdx,4)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	movslq	12(%rsp), %rdx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L19:
	movl	i(%rip), %edx
	leaq	.LC2(%rip), %rbx
	leal	1(%rdx), %eax
	movl	%eax, i(%rip)
	movl	4(%rsp), %eax
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L8:
	testl	%eax, %eax
	jle	.L20
	addl	$1, %eax
	movl	$1, %esi
	movq	%rbx, %rdi
	movl	%eax, a(%rip)
	xorl	%eax, %eax
	call	printf@PLT
	movl	i(%rip), %edx
	leal	1(%rdx), %eax
	movl	%eax, i(%rip)
	movl	4(%rsp), %eax
.L17:
	cmpl	%edx, %eax
	setg	%dl
	movzbl	%dl, %edx
	movl	%edx, 12(%rsp)
	movl	%edx, a(%rip)
	jg	.L8
.L9:
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	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
.L20:
	.cfi_restore_state
	xorl	%eax, %eax
	movl	$1, %esi
	movq	%rbx, %rdi
	call	printf@PLT
	movl	i(%rip), %edx
	leal	1(%rdx), %eax
	movl	%eax, i(%rip)
	movl	4(%rsp), %eax
	cmpl	%eax, %edx
	setl	%dl
	movzbl	%dl, %edx
	movl	%edx, 12(%rsp)
	movl	%edx, a(%rip)
	jl	.L8
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	v
	.bss
	.align 4
	.type	v, @object
	.size	v, 4
v:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.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:
```

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%d"
.LC2:
	.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
	xorl	%eax, %eax
	leaq	v(%rip), %r14
	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	a(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	.LC1(%rip), %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movl	%edi, 12(%rsp)
	leaq	8(%rsp), %r13
	leaq	12(%rsp), %r12
	movl	%esi, 8(%rsp)
	leaq	.LC0(%rip), %rdi
	leaq	4(%rsp), %rsi
	movl	%edx, 4(%rsp)
	call	scanf@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%r14, %r8
	movq	%r13, %rcx
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	scanf@PLT
	cmpl	$-1, %eax
	je	.L19
	movl	v(%rip), %eax
	cmpl	8(%rsp), %eax
	je	.L3
	jge	.L4
	movslq	a(%rip), %rdx
.L5:
	addl	$3, %eax
	movl	%eax, (%r14,%rdx,4)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	movslq	12(%rsp), %rdx
	addl	$2, %eax
	movl	%eax, (%r14,%rdx,4)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	movslq	12(%rsp), %rdx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L19:
	movl	i(%rip), %edx
	leaq	.LC2(%rip), %rbx
	leal	1(%rdx), %eax
	movl	%eax, i(%rip)
	movl	4(%rsp), %eax
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L8:
	testl	%eax, %eax
	jle	.L20
	addl	$1, %eax
	movl	$1, %esi
	movq	%rbx, %rdi
	movl	%eax, a(%rip)
	xorl	%eax, %eax
	call	printf@PLT
	movl	i(%rip), %edx
	leal	1(%rdx), %eax
	movl	%eax, i(%rip)
	movl	4(%rsp), %eax
.L17:
	cmpl	%edx, %eax
	setg	%dl
	movzbl	%dl, %edx
	movl	%edx, 12(%rsp)
	movl	%edx, a(%rip)
	jg	.L8
.L9:
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	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
.L20:
	.cfi_restore_state
	xorl	%eax, %eax
	movl	$1, %esi
	movq	%rbx, %rdi
	call	printf@PLT
	movl	i(%rip), %edx
	leal	1(%rdx), %eax
	movl	%eax, i(%rip)
	movl	4(%rsp), %eax
	cmpl	%eax, %edx
	setl	%dl
	movzbl	%dl, %edx
	movl	%edx, 12(%rsp)
	movl	%edx, a(%rip)
	jl	.L8
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	v
	.bss
	.align 4
	.type	v, @object
	.size	v, 4
v:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.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:
```