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

```c
#include <stdio.h>

#define MAXN 2*1000000
#define QQQ 1000000007

typedef unsigned long long ll;

ll S[(MAXN+1)*2];
int V[MAXN+1], H[MAXN+1];
int N;

int init(int n )
{
  int i,j;
  i = 1;
  while ( i < n+1 ) i *= 2;

  for ( j = 0; j < 2*i-1; j++ ) S[j] = 0;

  return i;
}

void update ( int no, ll data, int N )
{
  S[no+N-1] = data;

  int p,t,l,r,maxno;

  p = (no+N-1-1)/2;
  t = 1;

  while ( t > 0 ) {
    t = p;
    l = p*2+1; r = p*2+2;
    maxno = (S[l] > S[r] ) ? l:r;
    if ( S[maxno] == S[p] ) break;
    S[p] = S[maxno];
    p = (p-1)/2;
  }
}

ll find(int x, int y, int no, int l, int r )
{
  if ( r <= x ) return 0;
  if ( l >= y ) return 0;
  if ( l >= x && r <= y ) return S[no];

  int mid = (l+r)/2;
  ll tmp1,tmp2;

  tmp1 = find(x,y,no*2+1,l,mid);
  tmp2 = find(x,y,no*2+2,mid,r);

  return ( tmp1 > tmp2 ) ? tmp1:tmp2;
}

ll flower(int n, int N )
{
  int i,j;
  ll tmp,tmp2,max,pos;

  for ( i = 0; i < n; i++ ) {
    pos = find(0,H[i],0,0,N+1);
    tmp = pos+V[i];
    tmp2 = S[H[i]+N-1];
    if ( tmp > tmp2 ) update(H[i],tmp,N);
  }

  max = S[0+N-1];
  for ( i = 1; i <= n; i++ ) {
    if ( max < S[i+N-1] ) max = S[i+N-1];
  }

  return max;
}

int main(void)
{
  int n,i,tmp;

  scanf("%d",&n);
  for ( i = 0; i < n; i++ ) scanf("%d",&H[i]);
  for ( i = 0; i < n; i++ ) scanf("%d",&V[i]);

  N = init(n);

  printf("%ld\n",flower(n,N));

  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	S
	.bss
	.align 32
	.type	S, @object
	.size	S, 32000016
S:
	.zero	32000016
	.globl	V
	.align 32
	.type	V, @object
	.size	V, 8000004
V:
	.zero	8000004
	.globl	H
	.align 32
	.type	H, @object
	.size	H, 8000004
H:
	.zero	8000004
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.text
	.globl	init
	.type	init, @function
init:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	$1, -8(%rbp)
	jmp	.L2
.L3:
	sall	-8(%rbp)
.L2:
	movl	-20(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jge	.L3
	movl	$0, -4(%rbp)
	jmp	.L4
.L5:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	S(%rip), %rax
	movq	$0, (%rdx,%rax)
	addl	$1, -4(%rbp)
.L4:
	movl	-8(%rbp), %eax
	addl	%eax, %eax
	subl	$1, %eax
	cmpl	%eax, -4(%rbp)
	jl	.L5
	movl	-8(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	init, .-init
	.globl	update
	.type	update, @function
update:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -36(%rbp)
	movq	%rsi, -48(%rbp)
	movl	%edx, -40(%rbp)
	movl	-36(%rbp), %edx
	movl	-40(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	S(%rip), %rdx
	movq	-48(%rbp), %rax
	movq	%rax, (%rcx,%rdx)
	movl	-36(%rbp), %edx
	movl	-40(%rbp), %eax
	addl	%edx, %eax
	subl	$2, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -20(%rbp)
	movl	$1, -16(%rbp)
	jmp	.L8
.L13:
	movl	-20(%rbp), %eax
	movl	%eax, -16(%rbp)
	movl	-20(%rbp), %eax
	addl	%eax, %eax
	addl	$1, %eax
	movl	%eax, -12(%rbp)
	movl	-20(%rbp), %eax
	addl	$1, %eax
	addl	%eax, %eax
	movl	%eax, -8(%rbp)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	S(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	S(%rip), %rax
	movq	(%rcx,%rax), %rax
	cmpq	%rax, %rdx
	jbe	.L9
	movl	-12(%rbp), %eax
	jmp	.L10
.L9:
	movl	-8(%rbp), %eax
.L10:
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	S(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	S(%rip), %rax
	movq	(%rcx,%rax), %rax
	cmpq	%rax, %rdx
	je	.L14
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	S(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	S(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	-20(%rbp), %eax
	subl	$1, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -20(%rbp)
.L8:
	cmpl	$0, -16(%rbp)
	jg	.L13
	jmp	.L15
.L14:
	nop
.L15:
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	update, .-update
	.globl	find
	.type	find, @function
find:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movl	%edi, -36(%rbp)
	movl	%esi, -40(%rbp)
	movl	%edx, -44(%rbp)
	movl	%ecx, -48(%rbp)
	movl	%r8d, -52(%rbp)
	movl	-52(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jg	.L17
	movl	$0, %eax
	jmp	.L18
.L17:
	movl	-48(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jl	.L19
	movl	$0, %eax
	jmp	.L18
.L19:
	movl	-48(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jl	.L20
	movl	-52(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jg	.L20
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	S(%rip), %rax
	movq	(%rdx,%rax), %rax
	jmp	.L18
.L20:
	movl	-48(%rbp), %edx
	movl	-52(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -20(%rbp)
	movl	-44(%rbp), %eax
	addl	%eax, %eax
	leal	1(%rax), %edi
	movl	-20(%rbp), %ecx
	movl	-48(%rbp), %edx
	movl	-40(%rbp), %esi
	movl	-36(%rbp), %eax
	movl	%ecx, %r8d
	movl	%edx, %ecx
	movl	%edi, %edx
	movl	%eax, %edi
	call	find
	movq	%rax, -16(%rbp)
	movl	-44(%rbp), %eax
	addl	$1, %eax
	leal	(%rax,%rax), %edi
	movl	-52(%rbp), %ecx
	movl	-20(%rbp), %edx
	movl	-40(%rbp), %esi
	movl	-36(%rbp), %eax
	movl	%ecx, %r8d
	movl	%edx, %ecx
	movl	%edi, %edx
	movl	%eax, %edi
	call	find
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rdx
	movq	-16(%rbp), %rax
	cmpq	%rax, %rdx
	cmovnb	%rdx, %rax
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	find, .-find
	.globl	flower
	.type	flower, @function
flower:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movl	%edi, -52(%rbp)
	movl	%esi, -56(%rbp)
	movl	$0, -36(%rbp)
	jmp	.L22
.L24:
	movl	-56(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	H(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%ecx, %r8d
	movl	$0, %ecx
	movl	$0, %edx
	movl	%eax, %esi
	movl	$0, %edi
	call	find
	movq	%rax, -24(%rbp)
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	V(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	H(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-56(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	S(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, -8(%rbp)
	movq	-16(%rbp), %rax
	cmpq	-8(%rbp), %rax
	jbe	.L23
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	H(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-56(%rbp), %edx
	movq	-16(%rbp), %rcx
	movq	%rcx, %rsi
	movl	%eax, %edi
	call	update
.L23:
	addl	$1, -36(%rbp)
.L22:
	movl	-36(%rbp), %eax
	cmpl	-52(%rbp), %eax
	jl	.L24
	movl	-56(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	S(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, -32(%rbp)
	movl	$1, -36(%rbp)
	jmp	.L25
.L27:
	movl	-36(%rbp), %edx
	movl	-56(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	S(%rip), %rax
	movq	(%rdx,%rax), %rax
	cmpq	%rax, -32(%rbp)
	jnb	.L26
	movl	-36(%rbp), %edx
	movl	-56(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	S(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, -32(%rbp)
.L26:
	addl	$1, -36(%rbp)
.L25:
	movl	-36(%rbp), %eax
	cmpl	-52(%rbp), %eax
	jle	.L27
	movq	-32(%rbp), %rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	flower, .-flower
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB4:
	.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
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -12(%rbp)
	jmp	.L30
.L31:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	H(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -12(%rbp)
.L30:
	movl	-16(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L31
	movl	$0, -12(%rbp)
	jmp	.L32
.L33:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	V(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -12(%rbp)
.L32:
	movl	-16(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L33
	movl	-16(%rbp), %eax
	movl	%eax, %edi
	call	init
	movl	%eax, N(%rip)
	movl	N(%rip), %edx
	movl	-16(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	flower
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L35
	call	__stack_chk_fail@PLT
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.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
	.p2align 4
	.type	find.part.0, @function
find.part.0:
.LFB28:
	.cfi_startproc
	leal	(%r8,%rcx), %eax
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movl	%edx, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	%esi, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	%eax, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	shrl	$31, %r12d
	movl	%edi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	addl	%eax, %r12d
	movl	%r8d, %ebx
	sarl	%r12d
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	cmpl	%edi, %r12d
	jle	.L10
	cmpl	%esi, %ecx
	jge	.L10
	leal	1(%rdx,%rdx), %edx
	cmpl	%edi, %ecx
	jl	.L3
	cmpl	%esi, %r12d
	jg	.L3
	movslq	%edx, %rdx
	leaq	S(%rip), %rax
	movq	(%rax,%rdx,8), %r15
	cmpl	%ebp, %ebx
	jg	.L38
.L1:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movq	%r15, %rax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	xorl	%r15d, %r15d
.L2:
	cmpl	%ebp, %ebx
	jle	.L1
.L38:
	cmpl	%r13d, %r12d
	jge	.L1
	addl	$1, %r14d
	cmpl	%ebp, %r12d
	setge	%dl
	cmpl	%r13d, %ebx
	leal	(%r14,%r14), %eax
	setle	%r10b
	testb	%dl, %dl
	je	.L5
	testb	%r10b, %r10b
	je	.L5
	cltq
	leaq	S(%rip), %rdx
	movq	(%rdx,%rax,8), %rax
	cmpq	%rax, %r15
	cmovb	%rax, %r15
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	leal	(%rbx,%r12), %ecx
	leal	2(%rax,%rax), %r11d
	movl	%ecx, %r9d
	shrl	$31, %r9d
	addl	%ecx, %r9d
	sarl	%r9d
	cmpl	%r9d, %ebp
	jge	.L11
	leal	1(,%r14,4), %r14d
	cmpl	%r9d, %r13d
	jl	.L7
	testb	%dl, %dl
	je	.L7
	movslq	%r14d, %r14
	leaq	S(%rip), %rax
	movq	(%rax,%r14,8), %r12
	cmpl	%r9d, %r13d
	je	.L8
.L9:
	movl	%ebx, %r8d
	movl	%r9d, %ecx
	movl	%r11d, %edx
	movl	%r13d, %esi
	movl	%ebp, %edi
	call	find.part.0
	cmpq	%rax, %r12
	cmovb	%rax, %r12
.L8:
	cmpq	%r12, %r15
	cmovb	%r12, %r15
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%r12d, %r8d
	movl	%r13d, %esi
	movl	%ebp, %edi
	call	find.part.0
	movq	%rax, %r15
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L11:
	xorl	%r12d, %r12d
.L6:
	cmpl	%r9d, %r13d
	jle	.L8
	cmpl	%r9d, %ebp
	jg	.L9
	testb	%r10b, %r10b
	je	.L9
	movslq	%r11d, %r11
	leaq	S(%rip), %rax
	movq	(%rax,%r11,8), %rax
	cmpq	%rax, %r12
	cmovb	%rax, %r12
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	movl	%r9d, %r8d
	movl	%r12d, %ecx
	movl	%r14d, %edx
	movl	%r13d, %esi
	movl	%ebp, %edi
	movb	%r10b, 15(%rsp)
	movl	%r11d, 8(%rsp)
	movl	%r9d, 4(%rsp)
	call	find.part.0
	movl	4(%rsp), %r9d
	movl	8(%rsp), %r11d
	movzbl	15(%rsp), %r10d
	movq	%rax, %r12
	jmp	.L6
	.cfi_endproc
.LFE28:
	.size	find.part.0, .-find.part.0
	.p2align 4
	.globl	init
	.type	init, @function
init:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movl	$1, %r12d
	testl	%edi, %edi
	jle	.L42
	.p2align 4,,10
	.p2align 3
.L41:
	movl	%r12d, %eax
	addl	%r12d, %r12d
	cmpl	%r12d, %edi
	jge	.L41
	leal	-1(,%rax,4), %eax
.L40:
	movslq	%eax, %rdx
	leaq	S(%rip), %rdi
	salq	$3, %rdx
	testl	%eax, %eax
	movl	$8, %eax
	cmovle	%rax, %rdx
	xorl	%esi, %esi
	call	memset@PLT
	movl	%r12d, %eax
	popq	%r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L42:
	.cfi_restore_state
	movl	$1, %eax
	jmp	.L40
	.cfi_endproc
.LFE23:
	.size	init, .-init
	.p2align 4
	.globl	update
	.type	update, @function
update:
.LFB24:
	.cfi_startproc
	endbr64
	addl	%edx, %edi
	movq	%rsi, %r8
	leaq	S(%rip), %rsi
	leal	-1(%rdi), %eax
	subl	$2, %edi
	movl	%edi, %ecx
	cltq
	shrl	$31, %ecx
	movq	%r8, (%rsi,%rax,8)
	addl	%edi, %ecx
	sarl	%ecx
	jmp	.L47
	.p2align 4,,10
	.p2align 3
.L49:
	movl	%eax, %ecx
.L47:
	leal	(%rcx,%rcx), %eax
	leal	2(%rax), %edx
	addl	$1, %eax
	movslq	%edx, %rdx
	cltq
	movq	(%rsi,%rax,8), %rax
	movq	(%rsi,%rdx,8), %rdx
	cmpq	%rax, %rdx
	cmovb	%rax, %rdx
	movslq	%ecx, %rax
	cmpq	(%rsi,%rax,8), %rdx
	je	.L45
	movq	%rdx, (%rsi,%rax,8)
	leal	-1(%rcx), %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	testl	%ecx, %ecx
	jg	.L49
.L45:
	ret
	.cfi_endproc
.LFE24:
	.size	update, .-update
	.p2align 4
	.globl	find
	.type	find, @function
find:
.LFB25:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	cmpl	%edi, %r8d
	jle	.L61
	movl	%esi, %r13d
	cmpl	%esi, %ecx
	jge	.L61
	cmpl	%ecx, %edi
	movl	%r8d, %ebx
	setle	%al
	cmpl	%esi, %r8d
	setle	%bpl
	testb	%al, %al
	je	.L52
	testb	%bpl, %bpl
	je	.L52
	movslq	%edx, %rdx
	leaq	S(%rip), %rax
	movq	(%rax,%rdx,8), %r12
	jmp	.L50
	.p2align 4,,10
	.p2align 3
.L61:
	xorl	%r12d, %r12d
.L50:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movq	%r12, %rax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L52:
	.cfi_restore_state
	leal	(%rbx,%rcx), %esi
	leal	1(%rdx), %r14d
	movl	%esi, %r15d
	leal	(%r14,%r14), %r10d
	shrl	$31, %r15d
	addl	%esi, %r15d
	sarl	%r15d
	cmpl	%r15d, %edi
	jge	.L62
	cmpl	%r15d, %r13d
	leal	-1(%r10), %edx
	setge	%sil
	andb	%al, %sil
	je	.L54
	movslq	%edx, %rdx
	leaq	S(%rip), %rax
	movq	(%rax,%rdx,8), %r12
	cmpl	%r15d, %r13d
	je	.L50
.L56:
	leal	(%rbx,%r15), %eax
	leal	2(%r10,%r10), %r9d
	movl	%eax, %r11d
	shrl	$31, %r11d
	addl	%eax, %r11d
	sarl	%r11d
	cmpl	%r11d, %edi
	jge	.L63
	leal	1(,%r14,4), %edx
	cmpl	%r11d, %r13d
	jl	.L58
	testb	%sil, %sil
	je	.L58
	movslq	%edx, %rdx
	leaq	S(%rip), %rax
	movq	(%rax,%rdx,8), %r14
	cmpl	%r11d, %r13d
	je	.L59
.L60:
	movl	%ebx, %r8d
	movl	%r11d, %ecx
	movl	%r9d, %edx
	movl	%r13d, %esi
	call	find.part.0
	cmpq	%rax, %r14
	cmovb	%rax, %r14
.L59:
	cmpq	%r14, %r12
	cmovb	%r14, %r12
	jmp	.L50
	.p2align 4,,10
	.p2align 3
.L62:
	xorl	%r12d, %r12d
.L53:
	cmpl	%r15d, %r13d
	jle	.L50
	cmpl	%r15d, %edi
	setle	%al
	movl	%eax, %esi
	testb	%bpl, %bpl
	je	.L56
	testb	%al, %al
	je	.L56
	movslq	%r10d, %r10
	leaq	S(%rip), %rax
	movq	(%rax,%r10,8), %rax
	cmpq	%rax, %r12
	cmovb	%rax, %r12
	jmp	.L50
	.p2align 4,,10
	.p2align 3
.L54:
	movl	%r15d, %r8d
	movl	%r13d, %esi
	movl	%r10d, 8(%rsp)
	movl	%edi, 4(%rsp)
	call	find.part.0
	movl	4(%rsp), %edi
	movl	8(%rsp), %r10d
	movq	%rax, %r12
	jmp	.L53
	.p2align 4,,10
	.p2align 3
.L63:
	xorl	%r14d, %r14d
.L57:
	cmpl	%r11d, %r13d
	jle	.L59
	cmpl	%r11d, %edi
	jg	.L60
	testb	%bpl, %bpl
	je	.L60
	movslq	%r9d, %r10
	leaq	S(%rip), %rax
	movq	(%rax,%r10,8), %rax
	cmpq	%rax, %r14
	cmovb	%rax, %r14
	jmp	.L59
.L58:
	movl	%r11d, %r8d
	movl	%r15d, %ecx
	movl	%r13d, %esi
	movl	%r9d, 12(%rsp)
	movl	%r11d, 8(%rsp)
	movl	%edi, 4(%rsp)
	call	find.part.0
	movl	4(%rsp), %edi
	movl	8(%rsp), %r11d
	movl	12(%rsp), %r9d
	movq	%rax, %r14
	jmp	.L57
	.cfi_endproc
.LFE25:
	.size	find, .-find
	.p2align 4
	.globl	flower
	.type	flower, @function
flower:
.LFB26:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movslq	%esi, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leal	-1(%r13), %eax
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movl	%eax, 4(%rsp)
	testl	%edi, %edi
	jle	.L90
	leal	1(%r13), %r9d
	leaq	H(%rip), %rbp
	movl	%r9d, %r11d
	movl	%r9d, %eax
	leaq	V(%rip), %r12
	sarl	$2, %eax
	sarl	%r11d
	leaq	S(%rip), %rbx
	movl	%eax, 20(%rsp)
	leal	(%r11,%r9), %eax
	sarl	%eax
	testl	%r9d, %r9d
	movl	%eax, 16(%rsp)
	leal	-1(%rdi), %eax
	setle	%r10b
	movq	%rax, %rdi
	movq	%rax, 8(%rsp)
	leaq	4(%rbp), %rax
	leaq	(%rax,%rdi,4), %r15
	jmp	.L102
	.p2align 4,,10
	.p2align 3
.L104:
	addq	$4, %rbp
	addq	$4, %r12
	cmpq	%rbp, %r15
	je	.L121
.L102:
	movl	0(%rbp), %esi
	testl	%esi, %esi
	jle	.L110
	testb	%r10b, %r10b
	jne	.L110
	cmpl	%esi, %r9d
	jg	.L92
	movq	(%rbx), %r14
.L91:
	addl	%r13d, %esi
	movslq	(%r12), %rdx
	leal	-1(%rsi), %eax
	cltq
	addq	%r14, %rdx
	cmpq	(%rbx,%rax,8), %rdx
	jbe	.L104
	subl	$2, %esi
	movq	%rdx, (%rbx,%rax,8)
	movl	%esi, %ecx
	shrl	$31, %ecx
	addl	%esi, %ecx
	sarl	%ecx
	jmp	.L105
	.p2align 4,,10
	.p2align 3
.L112:
	movl	%eax, %ecx
.L105:
	leal	(%rcx,%rcx), %eax
	leal	2(%rax), %edx
	addl	$1, %eax
	movslq	%edx, %rdx
	cltq
	movq	(%rbx,%rax,8), %rax
	movq	(%rbx,%rdx,8), %rdx
	cmpq	%rax, %rdx
	cmovb	%rax, %rdx
	movslq	%ecx, %rax
	cmpq	(%rbx,%rax,8), %rdx
	je	.L104
	movq	%rdx, (%rbx,%rax,8)
	leal	-1(%rcx), %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	testl	%ecx, %ecx
	jg	.L112
	addq	$4, %rbp
	addq	$4, %r12
	cmpq	%rbp, %r15
	jne	.L102
	.p2align 4,,10
	.p2align 3
.L121:
	movslq	4(%rsp), %rax
	leaq	8+S(%rip), %rdx
	movq	(%rbx,%rax,8), %r8
	leaq	(%rbx,%r13,8), %rax
	addq	8(%rsp), %r13
	leaq	(%rdx,%r13,8), %rcx
	.p2align 4,,10
	.p2align 3
.L106:
	movq	(%rax), %rdx
	cmpq	%rdx, %r8
	cmovb	%rdx, %r8
	addq	$8, %rax
	cmpq	%rcx, %rax
	jne	.L106
.L89:
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movq	%r8, %rax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L110:
	.cfi_restore_state
	xorl	%r14d, %r14d
	jmp	.L91
	.p2align 4,,10
	.p2align 3
.L92:
	cmpl	%r11d, %esi
	jge	.L122
	cmpl	$3, %r9d
	jle	.L111
	movq	24+S(%rip), %r14
	cmpl	20(%rsp), %esi
	jge	.L96
	movl	20(%rsp), %r8d
	xorl	%ecx, %ecx
	movl	$3, %edx
	xorl	%edi, %edi
	movb	%r10b, 40(%rsp)
	movl	%r11d, 36(%rsp)
	movl	%r9d, 32(%rsp)
	movl	%esi, 24(%rsp)
	call	find.part.0
	movl	24(%rsp), %esi
	movl	32(%rsp), %r9d
	movl	36(%rsp), %r11d
	movzbl	40(%rsp), %r10d
	movq	%rax, %r14
	jmp	.L91
	.p2align 4,,10
	.p2align 3
.L122:
	movq	8+S(%rip), %r14
	jle	.L91
	cmpl	16(%rsp), %esi
	jge	.L107
	movl	16(%rsp), %r8d
	movl	%r11d, %ecx
	movl	$5, %edx
	xorl	%edi, %edi
	movb	%r10b, 47(%rsp)
	movl	%r9d, 40(%rsp)
	movl	%r11d, 36(%rsp)
	movl	%esi, 32(%rsp)
	call	find.part.0
	movl	32(%rsp), %esi
	movl	36(%rsp), %r11d
	movl	40(%rsp), %r9d
	movzbl	47(%rsp), %r10d
	movq	%rax, 24(%rsp)
.L99:
	cmpq	%rax, %r14
	cmovb	%rax, %r14
	jmp	.L91
	.p2align 4,,10
	.p2align 3
.L107:
	movq	40+S(%rip), %rax
	movq	%rax, 24(%rsp)
	je	.L99
	movl	16(%rsp), %ecx
	xorl	%edi, %edi
	movl	%r9d, %r8d
	movl	$6, %edx
	movb	%r10b, 47(%rsp)
	movl	%r11d, 40(%rsp)
	movl	%r9d, 36(%rsp)
	movl	%esi, 32(%rsp)
	call	find.part.0
	movq	24(%rsp), %rdi
	movzbl	47(%rsp), %r10d
	movl	40(%rsp), %r11d
	movl	36(%rsp), %r9d
	cmpq	%rax, %rdi
	movl	32(%rsp), %esi
	cmovnb	%rdi, %rax
	cmpq	%rax, %r14
	movq	%rax, 24(%rsp)
	cmovb	%rax, %r14
	jmp	.L91
.L111:
	xorl	%r14d, %r14d
.L96:
	movl	20(%rsp), %ecx
	cmpl	%ecx, %esi
	jle	.L91
	movl	%r11d, %r8d
	xorl	%edi, %edi
	movl	$4, %edx
	movb	%r10b, 40(%rsp)
	movl	%r9d, 36(%rsp)
	movl	%r11d, 32(%rsp)
	movl	%esi, 24(%rsp)
	call	find.part.0
	movl	24(%rsp), %esi
	movl	32(%rsp), %r11d
	cmpq	%rax, %r14
	movl	36(%rsp), %r9d
	movzbl	40(%rsp), %r10d
	cmovb	%rax, %r14
	jmp	.L91
.L90:
	movslq	4(%rsp), %rax
	leaq	S(%rip), %rdx
	movq	(%rdx,%rax,8), %r8
	jmp	.L89
	.cfi_endproc
.LFE26:
	.size	flower, .-flower
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB27:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %ebp
	testl	%ebp, %ebp
	jle	.L127
	leaq	H(%rip), %r12
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L125:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %ebp
	addq	$4, %r12
	cmpl	%ebx, %ebp
	jg	.L125
	testl	%ebp, %ebp
	jle	.L127
	leaq	V(%rip), %rbx
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L126:
	movq	%rbx, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %ebp
	addq	$4, %rbx
	cmpl	%r12d, %ebp
	jg	.L126
	testl	%ebp, %ebp
	jle	.L127
	movl	$1, %r12d
	.p2align 4,,10
	.p2align 3
.L128:
	movl	%r12d, %eax
	addl	%r12d, %r12d
	cmpl	%r12d, %ebp
	jge	.L128
	leal	-1(,%rax,4), %eax
.L129:
	movslq	%eax, %rdx
	leaq	S(%rip), %rdi
	salq	$3, %rdx
	testl	%eax, %eax
	movl	$8, %eax
	cmovle	%rax, %rdx
	xorl	%esi, %esi
	call	memset@PLT
	movl	%r12d, %esi
	movl	%ebp, %edi
	movl	%r12d, N(%rip)
	call	flower
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L136
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L127:
	.cfi_restore_state
	movl	$1, %r12d
	movl	$1, %eax
	jmp	.L129
.L136:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE27:
	.size	main, .-main
	.globl	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	H
	.align 32
	.type	H, @object
	.size	H, 8000004
H:
	.zero	8000004
	.globl	V
	.align 32
	.type	V, @object
	.size	V, 8000004
V:
	.zero	8000004
	.globl	S
	.align 32
	.type	S, @object
	.size	S, 32000016
S:
	.zero	32000016
	.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
	.p2align 4
	.type	find.part.0, @function
find.part.0:
.LFB28:
	.cfi_startproc
	leal	(%r8,%rcx), %eax
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movl	%edx, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	%esi, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	%eax, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	shrl	$31, %r12d
	movl	%edi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	addl	%eax, %r12d
	movl	%r8d, %ebx
	sarl	%r12d
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	cmpl	%edi, %r12d
	jle	.L10
	cmpl	%esi, %ecx
	jge	.L10
	leal	1(%rdx,%rdx), %edx
	cmpl	%edi, %ecx
	jl	.L3
	cmpl	%esi, %r12d
	jg	.L3
	movslq	%edx, %rdx
	leaq	S(%rip), %rax
	movq	(%rax,%rdx,8), %r15
	cmpl	%ebp, %ebx
	jg	.L38
.L1:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movq	%r15, %rax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	xorl	%r15d, %r15d
.L2:
	cmpl	%ebp, %ebx
	jle	.L1
.L38:
	cmpl	%r13d, %r12d
	jge	.L1
	addl	$1, %r14d
	cmpl	%ebp, %r12d
	setge	%dl
	cmpl	%r13d, %ebx
	leal	(%r14,%r14), %eax
	setle	%r10b
	testb	%dl, %dl
	je	.L5
	testb	%r10b, %r10b
	je	.L5
	cltq
	leaq	S(%rip), %rdx
	movq	(%rdx,%rax,8), %rax
	cmpq	%rax, %r15
	cmovb	%rax, %r15
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	leal	(%rbx,%r12), %ecx
	leal	2(%rax,%rax), %r11d
	movl	%ecx, %r9d
	shrl	$31, %r9d
	addl	%ecx, %r9d
	sarl	%r9d
	cmpl	%r9d, %ebp
	jge	.L11
	leal	1(,%r14,4), %r14d
	cmpl	%r9d, %r13d
	jl	.L7
	testb	%dl, %dl
	je	.L7
	movslq	%r14d, %r14
	leaq	S(%rip), %rax
	movq	(%rax,%r14,8), %r12
	cmpl	%r9d, %r13d
	je	.L8
.L9:
	movl	%ebx, %r8d
	movl	%r9d, %ecx
	movl	%r11d, %edx
	movl	%r13d, %esi
	movl	%ebp, %edi
	call	find.part.0
	cmpq	%rax, %r12
	cmovb	%rax, %r12
.L8:
	cmpq	%r12, %r15
	cmovb	%r12, %r15
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%r12d, %r8d
	movl	%r13d, %esi
	movl	%ebp, %edi
	call	find.part.0
	movq	%rax, %r15
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L11:
	xorl	%r12d, %r12d
.L6:
	cmpl	%r9d, %r13d
	jle	.L8
	cmpl	%r9d, %ebp
	jg	.L9
	testb	%r10b, %r10b
	je	.L9
	movslq	%r11d, %r11
	leaq	S(%rip), %rax
	movq	(%rax,%r11,8), %rax
	cmpq	%rax, %r12
	cmovb	%rax, %r12
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	movl	%r9d, %r8d
	movl	%r12d, %ecx
	movl	%r14d, %edx
	movl	%r13d, %esi
	movl	%ebp, %edi
	movb	%r10b, 15(%rsp)
	movl	%r11d, 8(%rsp)
	movl	%r9d, 4(%rsp)
	call	find.part.0
	movl	4(%rsp), %r9d
	movl	8(%rsp), %r11d
	movzbl	15(%rsp), %r10d
	movq	%rax, %r12
	jmp	.L6
	.cfi_endproc
.LFE28:
	.size	find.part.0, .-find.part.0
	.p2align 4
	.globl	init
	.type	init, @function
init:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movl	$1, %r12d
	testl	%edi, %edi
	jle	.L42
	.p2align 4,,10
	.p2align 3
.L41:
	movl	%r12d, %eax
	addl	%r12d, %r12d
	cmpl	%r12d, %edi
	jge	.L41
	leal	-1(,%rax,4), %eax
.L40:
	movslq	%eax, %rdx
	leaq	S(%rip), %rdi
	salq	$3, %rdx
	testl	%eax, %eax
	movl	$8, %eax
	cmovle	%rax, %rdx
	xorl	%esi, %esi
	call	memset@PLT
	movl	%r12d, %eax
	popq	%r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L42:
	.cfi_restore_state
	movl	$1, %eax
	jmp	.L40
	.cfi_endproc
.LFE23:
	.size	init, .-init
	.p2align 4
	.globl	update
	.type	update, @function
update:
.LFB24:
	.cfi_startproc
	endbr64
	addl	%edx, %edi
	movq	%rsi, %r8
	leaq	S(%rip), %rsi
	leal	-1(%rdi), %eax
	subl	$2, %edi
	movl	%edi, %ecx
	cltq
	shrl	$31, %ecx
	movq	%r8, (%rsi,%rax,8)
	addl	%edi, %ecx
	sarl	%ecx
	jmp	.L47
	.p2align 4,,10
	.p2align 3
.L49:
	movl	%eax, %ecx
.L47:
	leal	(%rcx,%rcx), %eax
	leal	2(%rax), %edx
	addl	$1, %eax
	movslq	%edx, %rdx
	cltq
	movq	(%rsi,%rax,8), %rax
	movq	(%rsi,%rdx,8), %rdx
	cmpq	%rax, %rdx
	cmovb	%rax, %rdx
	movslq	%ecx, %rax
	cmpq	(%rsi,%rax,8), %rdx
	je	.L45
	movq	%rdx, (%rsi,%rax,8)
	leal	-1(%rcx), %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	testl	%ecx, %ecx
	jg	.L49
.L45:
	ret
	.cfi_endproc
.LFE24:
	.size	update, .-update
	.p2align 4
	.globl	find
	.type	find, @function
find:
.LFB25:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	cmpl	%edi, %r8d
	jle	.L61
	movl	%esi, %r13d
	cmpl	%esi, %ecx
	jge	.L61
	cmpl	%ecx, %edi
	movl	%r8d, %ebx
	setle	%al
	cmpl	%esi, %r8d
	setle	%bpl
	testb	%al, %al
	je	.L52
	testb	%bpl, %bpl
	je	.L52
	movslq	%edx, %rdx
	leaq	S(%rip), %rax
	movq	(%rax,%rdx,8), %r12
	jmp	.L50
	.p2align 4,,10
	.p2align 3
.L61:
	xorl	%r12d, %r12d
.L50:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movq	%r12, %rax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L52:
	.cfi_restore_state
	leal	(%rbx,%rcx), %esi
	leal	1(%rdx), %r14d
	movl	%esi, %r15d
	leal	(%r14,%r14), %r10d
	shrl	$31, %r15d
	addl	%esi, %r15d
	sarl	%r15d
	cmpl	%r15d, %edi
	jge	.L62
	cmpl	%r15d, %r13d
	leal	-1(%r10), %edx
	setge	%sil
	andb	%al, %sil
	je	.L54
	movslq	%edx, %rdx
	leaq	S(%rip), %rax
	movq	(%rax,%rdx,8), %r12
	cmpl	%r15d, %r13d
	je	.L50
.L56:
	leal	(%rbx,%r15), %eax
	leal	2(%r10,%r10), %r9d
	movl	%eax, %r11d
	shrl	$31, %r11d
	addl	%eax, %r11d
	sarl	%r11d
	cmpl	%r11d, %edi
	jge	.L63
	leal	1(,%r14,4), %edx
	cmpl	%r11d, %r13d
	jl	.L58
	testb	%sil, %sil
	je	.L58
	movslq	%edx, %rdx
	leaq	S(%rip), %rax
	movq	(%rax,%rdx,8), %r14
	cmpl	%r11d, %r13d
	je	.L59
.L60:
	movl	%ebx, %r8d
	movl	%r11d, %ecx
	movl	%r9d, %edx
	movl	%r13d, %esi
	call	find.part.0
	cmpq	%rax, %r14
	cmovb	%rax, %r14
.L59:
	cmpq	%r14, %r12
	cmovb	%r14, %r12
	jmp	.L50
	.p2align 4,,10
	.p2align 3
.L62:
	xorl	%r12d, %r12d
.L53:
	cmpl	%r15d, %r13d
	jle	.L50
	cmpl	%r15d, %edi
	setle	%al
	movl	%eax, %esi
	testb	%bpl, %bpl
	je	.L56
	testb	%al, %al
	je	.L56
	movslq	%r10d, %r10
	leaq	S(%rip), %rax
	movq	(%rax,%r10,8), %rax
	cmpq	%rax, %r12
	cmovb	%rax, %r12
	jmp	.L50
	.p2align 4,,10
	.p2align 3
.L54:
	movl	%r15d, %r8d
	movl	%r13d, %esi
	movl	%r10d, 8(%rsp)
	movl	%edi, 4(%rsp)
	call	find.part.0
	movl	4(%rsp), %edi
	movl	8(%rsp), %r10d
	movq	%rax, %r12
	jmp	.L53
	.p2align 4,,10
	.p2align 3
.L63:
	xorl	%r14d, %r14d
.L57:
	cmpl	%r11d, %r13d
	jle	.L59
	cmpl	%r11d, %edi
	jg	.L60
	testb	%bpl, %bpl
	je	.L60
	movslq	%r9d, %r10
	leaq	S(%rip), %rax
	movq	(%rax,%r10,8), %rax
	cmpq	%rax, %r14
	cmovb	%rax, %r14
	jmp	.L59
.L58:
	movl	%r11d, %r8d
	movl	%r15d, %ecx
	movl	%r13d, %esi
	movl	%r9d, 12(%rsp)
	movl	%r11d, 8(%rsp)
	movl	%edi, 4(%rsp)
	call	find.part.0
	movl	4(%rsp), %edi
	movl	8(%rsp), %r11d
	movl	12(%rsp), %r9d
	movq	%rax, %r14
	jmp	.L57
	.cfi_endproc
.LFE25:
	.size	find, .-find
	.p2align 4
	.globl	flower
	.type	flower, @function
flower:
.LFB26:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movslq	%esi, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leal	-1(%r13), %eax
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movl	%eax, 4(%rsp)
	testl	%edi, %edi
	jle	.L90
	leal	1(%r13), %r9d
	leaq	H(%rip), %rbp
	movl	%r9d, %r11d
	movl	%r9d, %eax
	leaq	V(%rip), %r12
	sarl	$2, %eax
	sarl	%r11d
	leaq	S(%rip), %rbx
	movl	%eax, 20(%rsp)
	leal	(%r11,%r9), %eax
	sarl	%eax
	testl	%r9d, %r9d
	movl	%eax, 16(%rsp)
	leal	-1(%rdi), %eax
	setle	%r10b
	movq	%rax, %rdi
	movq	%rax, 8(%rsp)
	leaq	4(%rbp), %rax
	leaq	(%rax,%rdi,4), %r15
	jmp	.L102
	.p2align 4,,10
	.p2align 3
.L104:
	addq	$4, %rbp
	addq	$4, %r12
	cmpq	%rbp, %r15
	je	.L121
.L102:
	movl	0(%rbp), %esi
	testl	%esi, %esi
	jle	.L110
	testb	%r10b, %r10b
	jne	.L110
	cmpl	%esi, %r9d
	jg	.L92
	movq	(%rbx), %r14
.L91:
	addl	%r13d, %esi
	movslq	(%r12), %rdx
	leal	-1(%rsi), %eax
	cltq
	addq	%r14, %rdx
	cmpq	(%rbx,%rax,8), %rdx
	jbe	.L104
	subl	$2, %esi
	movq	%rdx, (%rbx,%rax,8)
	movl	%esi, %ecx
	shrl	$31, %ecx
	addl	%esi, %ecx
	sarl	%ecx
	jmp	.L105
	.p2align 4,,10
	.p2align 3
.L112:
	movl	%eax, %ecx
.L105:
	leal	(%rcx,%rcx), %eax
	leal	2(%rax), %edx
	addl	$1, %eax
	movslq	%edx, %rdx
	cltq
	movq	(%rbx,%rax,8), %rax
	movq	(%rbx,%rdx,8), %rdx
	cmpq	%rax, %rdx
	cmovb	%rax, %rdx
	movslq	%ecx, %rax
	cmpq	(%rbx,%rax,8), %rdx
	je	.L104
	movq	%rdx, (%rbx,%rax,8)
	leal	-1(%rcx), %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	testl	%ecx, %ecx
	jg	.L112
	addq	$4, %rbp
	addq	$4, %r12
	cmpq	%rbp, %r15
	jne	.L102
	.p2align 4,,10
	.p2align 3
.L121:
	movslq	4(%rsp), %rax
	leaq	8+S(%rip), %rdx
	movq	(%rbx,%rax,8), %r8
	leaq	(%rbx,%r13,8), %rax
	addq	8(%rsp), %r13
	leaq	(%rdx,%r13,8), %rcx
	.p2align 4,,10
	.p2align 3
.L106:
	movq	(%rax), %rdx
	cmpq	%rdx, %r8
	cmovb	%rdx, %r8
	addq	$8, %rax
	cmpq	%rcx, %rax
	jne	.L106
.L89:
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movq	%r8, %rax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L110:
	.cfi_restore_state
	xorl	%r14d, %r14d
	jmp	.L91
	.p2align 4,,10
	.p2align 3
.L92:
	cmpl	%r11d, %esi
	jge	.L122
	cmpl	$3, %r9d
	jle	.L111
	movq	24+S(%rip), %r14
	cmpl	20(%rsp), %esi
	jge	.L96
	movl	20(%rsp), %r8d
	xorl	%ecx, %ecx
	movl	$3, %edx
	xorl	%edi, %edi
	movb	%r10b, 40(%rsp)
	movl	%r11d, 36(%rsp)
	movl	%r9d, 32(%rsp)
	movl	%esi, 24(%rsp)
	call	find.part.0
	movl	24(%rsp), %esi
	movl	32(%rsp), %r9d
	movl	36(%rsp), %r11d
	movzbl	40(%rsp), %r10d
	movq	%rax, %r14
	jmp	.L91
	.p2align 4,,10
	.p2align 3
.L122:
	movq	8+S(%rip), %r14
	jle	.L91
	cmpl	16(%rsp), %esi
	jge	.L107
	movl	16(%rsp), %r8d
	movl	%r11d, %ecx
	movl	$5, %edx
	xorl	%edi, %edi
	movb	%r10b, 47(%rsp)
	movl	%r9d, 40(%rsp)
	movl	%r11d, 36(%rsp)
	movl	%esi, 32(%rsp)
	call	find.part.0
	movl	32(%rsp), %esi
	movl	36(%rsp), %r11d
	movl	40(%rsp), %r9d
	movzbl	47(%rsp), %r10d
	movq	%rax, 24(%rsp)
.L99:
	cmpq	%rax, %r14
	cmovb	%rax, %r14
	jmp	.L91
	.p2align 4,,10
	.p2align 3
.L107:
	movq	40+S(%rip), %rax
	movq	%rax, 24(%rsp)
	je	.L99
	movl	16(%rsp), %ecx
	xorl	%edi, %edi
	movl	%r9d, %r8d
	movl	$6, %edx
	movb	%r10b, 47(%rsp)
	movl	%r11d, 40(%rsp)
	movl	%r9d, 36(%rsp)
	movl	%esi, 32(%rsp)
	call	find.part.0
	movq	24(%rsp), %rdi
	movzbl	47(%rsp), %r10d
	movl	40(%rsp), %r11d
	movl	36(%rsp), %r9d
	cmpq	%rax, %rdi
	movl	32(%rsp), %esi
	cmovnb	%rdi, %rax
	cmpq	%rax, %r14
	movq	%rax, 24(%rsp)
	cmovb	%rax, %r14
	jmp	.L91
.L111:
	xorl	%r14d, %r14d
.L96:
	movl	20(%rsp), %ecx
	cmpl	%ecx, %esi
	jle	.L91
	movl	%r11d, %r8d
	xorl	%edi, %edi
	movl	$4, %edx
	movb	%r10b, 40(%rsp)
	movl	%r9d, 36(%rsp)
	movl	%r11d, 32(%rsp)
	movl	%esi, 24(%rsp)
	call	find.part.0
	movl	24(%rsp), %esi
	movl	32(%rsp), %r11d
	cmpq	%rax, %r14
	movl	36(%rsp), %r9d
	movzbl	40(%rsp), %r10d
	cmovb	%rax, %r14
	jmp	.L91
.L90:
	movslq	4(%rsp), %rax
	leaq	S(%rip), %rdx
	movq	(%rdx,%rax,8), %r8
	jmp	.L89
	.cfi_endproc
.LFE26:
	.size	flower, .-flower
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB27:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %ebp
	testl	%ebp, %ebp
	jle	.L127
	leaq	H(%rip), %r12
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L125:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %ebp
	addq	$4, %r12
	cmpl	%ebx, %ebp
	jg	.L125
	testl	%ebp, %ebp
	jle	.L127
	leaq	V(%rip), %rbx
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L126:
	movq	%rbx, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %ebp
	addq	$4, %rbx
	cmpl	%r12d, %ebp
	jg	.L126
	testl	%ebp, %ebp
	jle	.L127
	movl	$1, %r12d
	.p2align 4,,10
	.p2align 3
.L128:
	movl	%r12d, %eax
	addl	%r12d, %r12d
	cmpl	%r12d, %ebp
	jge	.L128
	leal	-1(,%rax,4), %eax
.L129:
	movslq	%eax, %rdx
	leaq	S(%rip), %rdi
	salq	$3, %rdx
	testl	%eax, %eax
	movl	$8, %eax
	cmovle	%rax, %rdx
	xorl	%esi, %esi
	call	memset@PLT
	movl	%r12d, %esi
	movl	%ebp, %edi
	movl	%r12d, N(%rip)
	call	flower
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L136
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L127:
	.cfi_restore_state
	movl	$1, %r12d
	movl	$1, %eax
	jmp	.L129
.L136:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE27:
	.size	main, .-main
	.globl	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	H
	.align 32
	.type	H, @object
	.size	H, 8000004
H:
	.zero	8000004
	.globl	V
	.align 32
	.type	V, @object
	.size	V, 8000004
V:
	.zero	8000004
	.globl	S
	.align 32
	.type	S, @object
	.size	S, 32000016
S:
	.zero	32000016
	.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:

#include <stdio.h>

#define MAXN 2*1000000
#define QQQ 1000000007

typedef unsigned long long ll;

ll S[(MAXN+1)*2];
int V[MAXN+1], H[MAXN+1];
int N;

int init(int n )
{
  int i,j;
  i = 1;
  while ( i < n+1 ) i *= 2;

  for ( j = 0; j < 2*i-1; j++ ) S[j] = 0;

  return i;
}

void update ( int no, ll data, int N )
{
  S[no+N-1] = data;

  int p,t,l,r,maxno;

  p = (no+N-1-1)/2;
  t = 1;

  while ( t > 0 ) {
    t = p;
    l = p*2+1; r = p*2+2;
    maxno = (S[l] > S[r] ) ? l:r;
    if ( S[maxno] == S[p] ) break;
    S[p] = S[maxno];
    p = (p-1)/2;
  }
}

ll find(int x, int y, int no, int l, int r )
{
  if ( r <= x ) return 0;
  if ( l >= y ) return 0;
  if ( l >= x && r <= y ) return S[no];

  int mid = (l+r)/2;
  ll tmp1,tmp2;

  tmp1 = find(x,y,no*2+1,l,mid);
  tmp2 = find(x,y,no*2+2,mid,r);

  return ( tmp1 > tmp2 ) ? tmp1:tmp2;
}

ll flower(int n, int N )
{
  int i,j;
  ll tmp,tmp2,max,pos;

  for ( i = 0; i < n; i++ ) {
    pos = find(0,H[i],0,0,N+1);
    tmp = pos+V[i];
    tmp2 = S[H[i]+N-1];
    if ( tmp > tmp2 ) update(H[i],tmp,N);
  }

  max = S[0+N-1];
  for ( i = 1; i <= n; i++ ) {
    if ( max < S[i+N-1] ) max = S[i+N-1];
  }

  return max;
}

int main(void)
{
  int n,i,tmp;

  scanf("%d",&n);
  for ( i = 0; i < n; i++ ) scanf("%d",&H[i]);
  for ( i = 0; i < n; i++ ) scanf("%d",&V[i]);

  N = init(n);

  printf("%ld\n",flower(n,N));

  return 0;
}

5
1 2 3 4 5
1000000000 1000000010 1000000000 1000000000 1000000000
 4
3 1 4 2
10 20 2 40
 9
4 2 5 8 3 6 1 7 9
6 8 8 4 6 5 5 7 5
 5
1 2 3 4 5
1000000000 1000000010 1000000000 1010000000 1000000000
 9
4 2 5 8 3 6 1 7 9
6 8 8 4 6 4 5 7 5
 5
1 2 3 4 5
1000000000 1000000010 1000100000 1010000000 1000000000
 4
3 1 4 2
20 20 2 26
 4
3 1 4 2
15 25 2 40
 5
1 2 3 4 5
1010000000 1000000010 1000100000 1010000000 1000000000
 5
1 2 3 4 5
1010000000 0000000010 1000100000 1010000000 1000000000

5000000010
 60
 33
 5010000010
 32
 5010100010
 46
 65
 5020100010
 4020100010

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

```c
#include <stdio.h>

#define MAXN 2*1000000
#define QQQ 1000000007

typedef unsigned long long ll;

ll S[(MAXN+1)*2];
int V[MAXN+1], H[MAXN+1];
int N;

int init(int n )
{
  int i,j;
  i = 1;
  while ( i < n+1 ) i *= 2;

  for ( j = 0; j < 2*i-1; j++ ) S[j] = 0;

  return i;
}

void update ( int no, ll data, int N )
{
  S[no+N-1] = data;

  int p,t,l,r,maxno;

  p = (no+N-1-1)/2;
  t = 1;

  while ( t > 0 ) {
    t = p;
    l = p*2+1; r = p*2+2;
    maxno = (S[l] > S[r] ) ? l:r;
    if ( S[maxno] == S[p] ) break;
    S[p] = S[maxno];
    p = (p-1)/2;
  }
}

ll find(int x, int y, int no, int l, int r )
{
  if ( r <= x ) return 0;
  if ( l >= y ) return 0;
  if ( l >= x && r <= y ) return S[no];

  int mid = (l+r)/2;
  ll tmp1,tmp2;

  tmp1 = find(x,y,no*2+1,l,mid);
  tmp2 = find(x,y,no*2+2,mid,r);

  return ( tmp1 > tmp2 ) ? tmp1:tmp2;
}

ll flower(int n, int N )
{
  int i,j;
  ll tmp,tmp2,max,pos;

  for ( i = 0; i < n; i++ ) {
    pos = find(0,H[i],0,0,N+1);
    tmp = pos+V[i];
    tmp2 = S[H[i]+N-1];
    if ( tmp > tmp2 ) update(H[i],tmp,N);
  }

  max = S[0+N-1];
  for ( i = 1; i <= n; i++ ) {
    if ( max < S[i+N-1] ) max = S[i+N-1];
  }

  return max;
}

int main(void)
{
  int n,i,tmp;

  scanf("%d",&n);
  for ( i = 0; i < n; i++ ) scanf("%d",&H[i]);
  for ( i = 0; i < n; i++ ) scanf("%d",&V[i]);

  N = init(n);

  printf("%ld\n",flower(n,N));

  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	S
	.bss
	.align 32
	.type	S, @object
	.size	S, 32000016
S:
	.zero	32000016
	.globl	V
	.align 32
	.type	V, @object
	.size	V, 8000004
V:
	.zero	8000004
	.globl	H
	.align 32
	.type	H, @object
	.size	H, 8000004
H:
	.zero	8000004
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.text
	.globl	init
	.type	init, @function
init:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	$1, -8(%rbp)
	jmp	.L2
.L3:
	sall	-8(%rbp)
.L2:
	movl	-20(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jge	.L3
	movl	$0, -4(%rbp)
	jmp	.L4
.L5:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	S(%rip), %rax
	movq	$0, (%rdx,%rax)
	addl	$1, -4(%rbp)
.L4:
	movl	-8(%rbp), %eax
	addl	%eax, %eax
	subl	$1, %eax
	cmpl	%eax, -4(%rbp)
	jl	.L5
	movl	-8(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	init, .-init
	.globl	update
	.type	update, @function
update:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -36(%rbp)
	movq	%rsi, -48(%rbp)
	movl	%edx, -40(%rbp)
	movl	-36(%rbp), %edx
	movl	-40(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	S(%rip), %rdx
	movq	-48(%rbp), %rax
	movq	%rax, (%rcx,%rdx)
	movl	-36(%rbp), %edx
	movl	-40(%rbp), %eax
	addl	%edx, %eax
	subl	$2, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -20(%rbp)
	movl	$1, -16(%rbp)
	jmp	.L8
.L13:
	movl	-20(%rbp), %eax
	movl	%eax, -16(%rbp)
	movl	-20(%rbp), %eax
	addl	%eax, %eax
	addl	$1, %eax
	movl	%eax, -12(%rbp)
	movl	-20(%rbp), %eax
	addl	$1, %eax
	addl	%eax, %eax
	movl	%eax, -8(%rbp)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	S(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	S(%rip), %rax
	movq	(%rcx,%rax), %rax
	cmpq	%rax, %rdx
	jbe	.L9
	movl	-12(%rbp), %eax
	jmp	.L10
.L9:
	movl	-8(%rbp), %eax
.L10:
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	S(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	S(%rip), %rax
	movq	(%rcx,%rax), %rax
	cmpq	%rax, %rdx
	je	.L14
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	S(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	S(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	-20(%rbp), %eax
	subl	$1, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -20(%rbp)
.L8:
	cmpl	$0, -16(%rbp)
	jg	.L13
	jmp	.L15
.L14:
	nop
.L15:
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	update, .-update
	.globl	find
	.type	find, @function
find:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movl	%edi, -36(%rbp)
	movl	%esi, -40(%rbp)
	movl	%edx, -44(%rbp)
	movl	%ecx, -48(%rbp)
	movl	%r8d, -52(%rbp)
	movl	-52(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jg	.L17
	movl	$0, %eax
	jmp	.L18
.L17:
	movl	-48(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jl	.L19
	movl	$0, %eax
	jmp	.L18
.L19:
	movl	-48(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jl	.L20
	movl	-52(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jg	.L20
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	S(%rip), %rax
	movq	(%rdx,%rax), %rax
	jmp	.L18
.L20:
	movl	-48(%rbp), %edx
	movl	-52(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -20(%rbp)
	movl	-44(%rbp), %eax
	addl	%eax, %eax
	leal	1(%rax), %edi
	movl	-20(%rbp), %ecx
	movl	-48(%rbp), %edx
	movl	-40(%rbp), %esi
	movl	-36(%rbp), %eax
	movl	%ecx, %r8d
	movl	%edx, %ecx
	movl	%edi, %edx
	movl	%eax, %edi
	call	find
	movq	%rax, -16(%rbp)
	movl	-44(%rbp), %eax
	addl	$1, %eax
	leal	(%rax,%rax), %edi
	movl	-52(%rbp), %ecx
	movl	-20(%rbp), %edx
	movl	-40(%rbp), %esi
	movl	-36(%rbp), %eax
	movl	%ecx, %r8d
	movl	%edx, %ecx
	movl	%edi, %edx
	movl	%eax, %edi
	call	find
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rdx
	movq	-16(%rbp), %rax
	cmpq	%rax, %rdx
	cmovnb	%rdx, %rax
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	find, .-find
	.globl	flower
	.type	flower, @function
flower:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movl	%edi, -52(%rbp)
	movl	%esi, -56(%rbp)
	movl	$0, -36(%rbp)
	jmp	.L22
.L24:
	movl	-56(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	H(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%ecx, %r8d
	movl	$0, %ecx
	movl	$0, %edx
	movl	%eax, %esi
	movl	$0, %edi
	call	find
	movq	%rax, -24(%rbp)
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	V(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	H(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-56(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	S(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, -8(%rbp)
	movq	-16(%rbp), %rax
	cmpq	-8(%rbp), %rax
	jbe	.L23
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	H(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-56(%rbp), %edx
	movq	-16(%rbp), %rcx
	movq	%rcx, %rsi
	movl	%eax, %edi
	call	update
.L23:
	addl	$1, -36(%rbp)
.L22:
	movl	-36(%rbp), %eax
	cmpl	-52(%rbp), %eax
	jl	.L24
	movl	-56(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	S(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, -32(%rbp)
	movl	$1, -36(%rbp)
	jmp	.L25
.L27:
	movl	-36(%rbp), %edx
	movl	-56(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	S(%rip), %rax
	movq	(%rdx,%rax), %rax
	cmpq	%rax, -32(%rbp)
	jnb	.L26
	movl	-36(%rbp), %edx
	movl	-56(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	S(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, -32(%rbp)
.L26:
	addl	$1, -36(%rbp)
.L25:
	movl	-36(%rbp), %eax
	cmpl	-52(%rbp), %eax
	jle	.L27
	movq	-32(%rbp), %rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	flower, .-flower
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB4:
	.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
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -12(%rbp)
	jmp	.L30
.L31:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	H(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -12(%rbp)
.L30:
	movl	-16(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L31
	movl	$0, -12(%rbp)
	jmp	.L32
.L33:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	V(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -12(%rbp)
.L32:
	movl	-16(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L33
	movl	-16(%rbp), %eax
	movl	%eax, %edi
	call	init
	movl	%eax, N(%rip)
	movl	N(%rip), %edx
	movl	-16(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	flower
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L35
	call	__stack_chk_fail@PLT
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.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	S
	.bss
	.align 32
	.type	S, @object
	.size	S, 32000016
S:
	.zero	32000016
	.globl	V
	.align 32
	.type	V, @object
	.size	V, 8000004
V:
	.zero	8000004
	.globl	H
	.align 32
	.type	H, @object
	.size	H, 8000004
H:
	.zero	8000004
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.text
	.globl	init
	.type	init, @function
init:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	$1, -8(%rbp)
	jmp	.L2
.L3:
	sall	-8(%rbp)
.L2:
	movl	-20(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jge	.L3
	movl	$0, -4(%rbp)
	jmp	.L4
.L5:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	S(%rip), %rax
	movq	$0, (%rdx,%rax)
	addl	$1, -4(%rbp)
.L4:
	movl	-8(%rbp), %eax
	addl	%eax, %eax
	subl	$1, %eax
	cmpl	%eax, -4(%rbp)
	jl	.L5
	movl	-8(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	init, .-init
	.globl	update
	.type	update, @function
update:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -36(%rbp)
	movq	%rsi, -48(%rbp)
	movl	%edx, -40(%rbp)
	movl	-36(%rbp), %edx
	movl	-40(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	S(%rip), %rdx
	movq	-48(%rbp), %rax
	movq	%rax, (%rcx,%rdx)
	movl	-36(%rbp), %edx
	movl	-40(%rbp), %eax
	addl	%edx, %eax
	subl	$2, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -20(%rbp)
	movl	$1, -16(%rbp)
	jmp	.L8
.L13:
	movl	-20(%rbp), %eax
	movl	%eax, -16(%rbp)
	movl	-20(%rbp), %eax
	addl	%eax, %eax
	addl	$1, %eax
	movl	%eax, -12(%rbp)
	movl	-20(%rbp), %eax
	addl	$1, %eax
	addl	%eax, %eax
	movl	%eax, -8(%rbp)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	S(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	S(%rip), %rax
	movq	(%rcx,%rax), %rax
	cmpq	%rax, %rdx
	jbe	.L9
	movl	-12(%rbp), %eax
	jmp	.L10
.L9:
	movl	-8(%rbp), %eax
.L10:
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	S(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	S(%rip), %rax
	movq	(%rcx,%rax), %rax
	cmpq	%rax, %rdx
	je	.L14
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	S(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	S(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	-20(%rbp), %eax
	subl	$1, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -20(%rbp)
.L8:
	cmpl	$0, -16(%rbp)
	jg	.L13
	jmp	.L15
.L14:
	nop
.L15:
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	update, .-update
	.globl	find
	.type	find, @function
find:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movl	%edi, -36(%rbp)
	movl	%esi, -40(%rbp)
	movl	%edx, -44(%rbp)
	movl	%ecx, -48(%rbp)
	movl	%r8d, -52(%rbp)
	movl	-52(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jg	.L17
	movl	$0, %eax
	jmp	.L18
.L17:
	movl	-48(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jl	.L19
	movl	$0, %eax
	jmp	.L18
.L19:
	movl	-48(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jl	.L20
	movl	-52(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jg	.L20
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	S(%rip), %rax
	movq	(%rdx,%rax), %rax
	jmp	.L18
.L20:
	movl	-48(%rbp), %edx
	movl	-52(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -20(%rbp)
	movl	-44(%rbp), %eax
	addl	%eax, %eax
	leal	1(%rax), %edi
	movl	-20(%rbp), %ecx
	movl	-48(%rbp), %edx
	movl	-40(%rbp), %esi
	movl	-36(%rbp), %eax
	movl	%ecx, %r8d
	movl	%edx, %ecx
	movl	%edi, %edx
	movl	%eax, %edi
	call	find
	movq	%rax, -16(%rbp)
	movl	-44(%rbp), %eax
	addl	$1, %eax
	leal	(%rax,%rax), %edi
	movl	-52(%rbp), %ecx
	movl	-20(%rbp), %edx
	movl	-40(%rbp), %esi
	movl	-36(%rbp), %eax
	movl	%ecx, %r8d
	movl	%edx, %ecx
	movl	%edi, %edx
	movl	%eax, %edi
	call	find
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rdx
	movq	-16(%rbp), %rax
	cmpq	%rax, %rdx
	cmovnb	%rdx, %rax
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	find, .-find
	.globl	flower
	.type	flower, @function
flower:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movl	%edi, -52(%rbp)
	movl	%esi, -56(%rbp)
	movl	$0, -36(%rbp)
	jmp	.L22
.L24:
	movl	-56(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	H(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%ecx, %r8d
	movl	$0, %ecx
	movl	$0, %edx
	movl	%eax, %esi
	movl	$0, %edi
	call	find
	movq	%rax, -24(%rbp)
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	V(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	H(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-56(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	S(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, -8(%rbp)
	movq	-16(%rbp), %rax
	cmpq	-8(%rbp), %rax
	jbe	.L23
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	H(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-56(%rbp), %edx
	movq	-16(%rbp), %rcx
	movq	%rcx, %rsi
	movl	%eax, %edi
	call	update
.L23:
	addl	$1, -36(%rbp)
.L22:
	movl	-36(%rbp), %eax
	cmpl	-52(%rbp), %eax
	jl	.L24
	movl	-56(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	S(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, -32(%rbp)
	movl	$1, -36(%rbp)
	jmp	.L25
.L27:
	movl	-36(%rbp), %edx
	movl	-56(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	S(%rip), %rax
	movq	(%rdx,%rax), %rax
	cmpq	%rax, -32(%rbp)
	jnb	.L26
	movl	-36(%rbp), %edx
	movl	-56(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	S(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, -32(%rbp)
.L26:
	addl	$1, -36(%rbp)
.L25:
	movl	-36(%rbp), %eax
	cmpl	-52(%rbp), %eax
	jle	.L27
	movq	-32(%rbp), %rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	flower, .-flower
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB4:
	.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
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -12(%rbp)
	jmp	.L30
.L31:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	H(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -12(%rbp)
.L30:
	movl	-16(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L31
	movl	$0, -12(%rbp)
	jmp	.L32
.L33:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	V(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -12(%rbp)
.L32:
	movl	-16(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L33
	movl	-16(%rbp), %eax
	movl	%eax, %edi
	call	init
	movl	%eax, N(%rip)
	movl	N(%rip), %edx
	movl	-16(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	flower
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L35
	call	__stack_chk_fail@PLT
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.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:
