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>
int MIN(int a,int b){return a<b?a:b;}
int ta[100010],to[100010],co[100010],nt[100010],it[100010],l[100010];
void mklsb(int v,int e,int *a,int *b,int *c){
  int i;
  for(i=0;i<v;i++)ta[i]=-1;
  for(i=0;i<e;i++){
    nt[i  ]=ta[to[i+e]=a[i]];
    nt[i+e]=ta[to[i  ]=b[i]];
    co[ta[a[i]]=i  ]=c[i];      
    co[ta[b[i]]=i+e]=0;
  }
}
int MF(int e,int s,int t,int min){
  if(s==t)return min;
  int i,r;
  for(;it[s]+1;it[s]=nt[it[s]]){
    if(co[it[s]]==0||l[s]>=l[to[it[s]]])continue;
    r=MF(e,to[it[s]],t,MIN(min,co[it[s]]));
    co[it[s]]-=r;
    co[(it[s]+e)%(2*e)]+=r;
    if(r)return r;
  }
  return 0;
}
int maxf(int v,int e,int s,int g){
  int i,a=0,q[100010],t,r,c=3;
  while(1){
    for(i=t=0;i<v;i++)l[i]=0;
    l[q[0]=s]=1;
    for(r=1;r-t;t++){
      for(i=ta[q[t]];i+1;i=nt[i]){
	if(co[i]&&l[to[i]]==0)l[q[r++]=to[i]]=l[q[t]]+1;
      }
    }
    if(l[g]==0)return a;
    for(i=0;i<v;i++)it[i]=ta[i];
    while(r=MF(e,s,g,1e9))a+=r;
  }
}
int main(){
  int n,m,i,a[100010],b[100010],c[1000010],m1,m2;
  scanf("%d %d",&n,&m);
  for(i=0;i<m;i++)scanf("%d %d %d",&a[i],&b[i],&c[i]);
  mklsb(n,m,a,b,c);//prls(n);
  printf("%d\n",maxf (n,m,0,n-1));
  return 0;
}
  ```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	MIN
	.type	MIN, @function
MIN:
.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, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-8(%rbp), %edx
	movl	-4(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	MIN, .-MIN
	.globl	ta
	.bss
	.align 32
	.type	ta, @object
	.size	ta, 400040
ta:
	.zero	400040
	.globl	to
	.align 32
	.type	to, @object
	.size	to, 400040
to:
	.zero	400040
	.globl	co
	.align 32
	.type	co, @object
	.size	co, 400040
co:
	.zero	400040
	.globl	nt
	.align 32
	.type	nt, @object
	.size	nt, 400040
nt:
	.zero	400040
	.globl	it
	.align 32
	.type	it, @object
	.size	it, 400040
it:
	.zero	400040
	.globl	l
	.align 32
	.type	l, @object
	.size	l, 400040
l:
	.zero	400040
	.text
	.globl	mklsb
	.type	mklsb, @function
mklsb:
.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, -20(%rbp)
	movl	%esi, -24(%rbp)
	movq	%rdx, -32(%rbp)
	movq	%rcx, -40(%rbp)
	movq	%r8, -48(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L4
.L5:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ta(%rip), %rax
	movl	$-1, (%rdx,%rax)
	addl	$1, -4(%rbp)
.L4:
	movl	-4(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jl	.L5
	movl	$0, -4(%rbp)
	jmp	.L6
.L7:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %ecx
	movl	-24(%rbp), %eax
	addl	%ecx, %eax
	movl	(%rdx), %edx
	movslq	%eax, %rcx
	leaq	0(,%rcx,4), %rsi
	leaq	to(%rip), %rcx
	movl	%edx, (%rsi,%rcx)
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	to(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ta(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	nt(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	to(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	to(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-4(%rbp), %ecx
	movl	-24(%rbp), %edx
	addl	%edx, %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ta(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%ecx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	nt(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-48(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rdi
	leaq	ta(%rip), %rsi
	movl	-4(%rbp), %edx
	movl	%edx, (%rdi,%rsi)
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ta(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	(%rcx), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	co(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-4(%rbp), %ecx
	movl	-24(%rbp), %edx
	leal	(%rcx,%rdx), %esi
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	ta(%rip), %rdx
	movl	%esi, (%rcx,%rdx)
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ta(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	co(%rip), %rax
	movl	$0, (%rdx,%rax)
	addl	$1, -4(%rbp)
.L6:
	movl	-4(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jl	.L7
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	mklsb, .-mklsb
	.globl	MF
	.type	MF, @function
MF:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	%edx, -28(%rbp)
	movl	%ecx, -32(%rbp)
	movl	-24(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jne	.L11
	movl	-32(%rbp), %eax
	jmp	.L10
.L15:
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	it(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	co(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L16
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	l(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	it(%rip), %rax
	movl	(%rcx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	to(%rip), %rax
	movl	(%rcx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	l(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jge	.L16
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	it(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	co(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-32(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	MIN
	movl	%eax, %ecx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	it(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	to(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	-28(%rbp), %edx
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	MF
	movl	%eax, -4(%rbp)
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	it(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	co(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-24(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	it(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	-4(%rbp), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	co(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	it(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	addl	%edx, %eax
	movl	-20(%rbp), %edx
	leal	(%rdx,%rdx), %ecx
	cltd
	idivl	%ecx
	movl	%edx, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	co(%rip), %rdx
	movl	(%rcx,%rdx), %ecx
	movl	-4(%rbp), %edx
	addl	%edx, %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	co(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	cmpl	$0, -4(%rbp)
	je	.L14
	movl	-4(%rbp), %eax
	jmp	.L10
.L16:
	nop
.L14:
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	it(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	nt(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-24(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	it(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
.L11:
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	it(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	jne	.L15
	movl	$0, %eax
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	MF, .-MF
	.globl	maxf
	.type	maxf, @function
maxf:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2784, %rsp
	movl	%edi, -400084(%rbp)
	movl	%esi, -400088(%rbp)
	movl	%edx, -400092(%rbp)
	movl	%ecx, -400096(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -400064(%rbp)
	movl	$3, -400052(%rbp)
.L31:
	movl	$0, -400060(%rbp)
	movl	-400060(%rbp), %eax
	movl	%eax, -400068(%rbp)
	jmp	.L18
.L19:
	movl	-400068(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	l(%rip), %rax
	movl	$0, (%rdx,%rax)
	addl	$1, -400068(%rbp)
.L18:
	movl	-400068(%rbp), %eax
	cmpl	-400084(%rbp), %eax
	jl	.L19
	movl	-400092(%rbp), %eax
	movl	%eax, -400048(%rbp)
	movl	-400048(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	l(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	$1, -400056(%rbp)
	jmp	.L20
.L24:
	movl	-400060(%rbp), %eax
	cltq
	movl	-400048(%rbp,%rax,4), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ta(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -400068(%rbp)
	jmp	.L21
.L23:
	movl	-400068(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	co(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L22
	movl	-400068(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	to(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	l(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L22
	movl	-400060(%rbp), %eax
	cltq
	movl	-400048(%rbp,%rax,4), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	l(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	-400056(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -400056(%rbp)
	movl	-400068(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	to(%rip), %rdx
	movl	(%rcx,%rdx), %ecx
	movslq	%eax, %rdx
	movl	%ecx, -400048(%rbp,%rdx,4)
	cltq
	movl	-400048(%rbp,%rax,4), %eax
	leal	1(%rsi), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	l(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L22:
	movl	-400068(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	nt(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -400068(%rbp)
.L21:
	cmpl	$-1, -400068(%rbp)
	jne	.L23
	addl	$1, -400060(%rbp)
.L20:
	movl	-400056(%rbp), %eax
	cmpl	-400060(%rbp), %eax
	jne	.L24
	movl	-400096(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	l(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L25
	movl	-400064(%rbp), %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L32
	jmp	.L33
.L25:
	movl	$0, -400068(%rbp)
	jmp	.L27
.L28:
	movl	-400068(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ta(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-400068(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	it(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -400068(%rbp)
.L27:
	movl	-400068(%rbp), %eax
	cmpl	-400084(%rbp), %eax
	jl	.L28
	jmp	.L29
.L30:
	movl	-400056(%rbp), %eax
	addl	%eax, -400064(%rbp)
.L29:
	movl	-400096(%rbp), %edx
	movl	-400092(%rbp), %esi
	movl	-400088(%rbp), %eax
	movl	$1000000000, %ecx
	movl	%eax, %edi
	call	MF
	movl	%eax, -400056(%rbp)
	cmpl	$0, -400056(%rbp)
	jne	.L30
	jmp	.L31
.L33:
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	maxf, .-maxf
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"%d\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
	leaq	-4796416(%rsp), %r11
.LPSRL1:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL1
	subq	$3744, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-4800152(%rbp), %rdx
	leaq	-4800156(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -4800148(%rbp)
	jmp	.L35
.L36:
	leaq	-4000048(%rbp), %rdx
	movl	-4800148(%rbp), %eax
	cltq
	salq	$2, %rax
	leaq	(%rdx,%rax), %rcx
	leaq	-4400096(%rbp), %rdx
	movl	-4800148(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-4800144(%rbp), %rsi
	movl	-4800148(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -4800148(%rbp)
.L35:
	movl	-4800152(%rbp), %eax
	cmpl	%eax, -4800148(%rbp)
	jl	.L36
	movl	-4800152(%rbp), %esi
	movl	-4800156(%rbp), %eax
	leaq	-4000048(%rbp), %rdi
	leaq	-4400096(%rbp), %rcx
	leaq	-4800144(%rbp), %rdx
	movq	%rdi, %r8
	movl	%eax, %edi
	call	mklsb
	movl	-4800156(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-4800152(%rbp), %esi
	movl	-4800156(%rbp), %eax
	movl	%edx, %ecx
	movl	$0, %edx
	movl	%eax, %edi
	call	maxf
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	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	MF.part.0, @function
MF.part.0:
.LFB28:
	.cfi_startproc
	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
	leaq	it(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movslq	%esi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	0(%r13,%rbp,4), %eax
	cmpl	$-1, %eax
	je	.L7
	movl	%edx, %r8d
	movl	%ecx, %r14d
	leal	(%rdi,%rdi), %r10d
	leaq	co(%rip), %rbx
	leaq	to(%rip), %r9
	leaq	l(%rip), %r12
	leaq	nt(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L6:
	movslq	%eax, %rsi
	movl	(%rbx,%rsi,4), %ecx
	testl	%ecx, %ecx
	je	.L4
	movslq	(%r9,%rsi,4), %rdx
	movq	%rdx, %r11
	movl	(%r12,%rdx,4), %edx
	cmpl	%edx, (%r12,%rbp,4)
	jge	.L4
	cmpl	%r14d, %ecx
	cmovg	%r14d, %ecx
	cmpl	%r8d, %r11d
	je	.L5
	movl	%r8d, %edx
	movl	%r11d, %esi
	movl	%r10d, 12(%rsp)
	movl	%r8d, 8(%rsp)
	movl	%edi, 4(%rsp)
	call	MF.part.0
	movslq	0(%r13,%rbp,4), %rsi
	movl	12(%rsp), %r10d
	leaq	to(%rip), %r9
	movl	8(%rsp), %r8d
	movl	4(%rsp), %edi
	movl	%eax, %ecx
	movq	%rsi, %rax
.L5:
	addl	%edi, %eax
	subl	%ecx, (%rbx,%rsi,4)
	cltd
	idivl	%r10d
	movslq	%edx, %rdx
	addl	%ecx, (%rbx,%rdx,4)
	testl	%ecx, %ecx
	jne	.L1
.L4:
	movl	(%r15,%rsi,4), %eax
	movl	%eax, 0(%r13,%rbp,4)
	cmpl	$-1, %eax
	jne	.L6
.L7:
	xorl	%ecx, %ecx
.L1:
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	movl	%ecx, %eax
	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
	.cfi_endproc
.LFE28:
	.size	MF.part.0, .-MF.part.0
	.p2align 4
	.globl	MIN
	.type	MIN, @function
MIN:
.LFB23:
	.cfi_startproc
	endbr64
	cmpl	%edi, %esi
	movl	%edi, %eax
	cmovle	%esi, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	MIN, .-MIN
	.p2align 4
	.globl	mklsb
	.type	mklsb, @function
mklsb:
.LFB24:
	.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
	movq	%r8, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	%esi, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%rcx, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rdx, %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	testl	%edi, %edi
	jle	.L18
	movslq	%edi, %rdi
	movl	$255, %esi
	leaq	0(,%rdi,4), %rdx
	leaq	ta(%rip), %rdi
	call	memset@PLT
.L18:
	testl	%r12d, %r12d
	jle	.L17
	movslq	%r12d, %r10
	leaq	to(%rip), %r9
	leaq	nt(%rip), %r8
	xorl	%eax, %eax
	leaq	0(,%r10,4), %rcx
	leaq	co(%rip), %rsi
	leaq	(%r9,%rcx), %r14
	leaq	(%r8,%rcx), %r11
	addq	%rsi, %rcx
	leaq	ta(%rip), %rdi
	.p2align 4,,10
	.p2align 3
.L20:
	movslq	(%rbx,%rax,4), %rdx
	leal	(%r12,%rax), %r15d
	movl	%edx, (%r14,%rax,4)
	movl	(%rdi,%rdx,4), %edx
	movl	%edx, (%r8,%rax,4)
	movslq	0(%rbp,%rax,4), %rdx
	movl	%edx, (%r9,%rax,4)
	movl	(%rdi,%rdx,4), %edx
	movl	%edx, (%r11,%rax,4)
	movslq	(%rbx,%rax,4), %rdx
	movl	%eax, (%rdi,%rdx,4)
	movl	0(%r13,%rax,4), %edx
	movl	%edx, (%rsi,%rax,4)
	movslq	0(%rbp,%rax,4), %rdx
	movl	$0, (%rcx,%rax,4)
	addq	$1, %rax
	movl	%r15d, (%rdi,%rdx,4)
	cmpq	%r10, %rax
	jne	.L20
.L17:
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	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
	.cfi_endproc
.LFE24:
	.size	mklsb, .-mklsb
	.p2align 4
	.globl	MF
	.type	MF, @function
MF:
.LFB25:
	.cfi_startproc
	endbr64
	cmpl	%edx, %esi
	je	.L24
	jmp	MF.part.0
	.p2align 4,,10
	.p2align 3
.L24:
	movl	%ecx, %eax
	ret
	.cfi_endproc
.LFE25:
	.size	MF, .-MF
	.p2align 4
	.globl	maxf
	.type	maxf, @function
maxf:
.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
	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
	leaq	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397368
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2792, %rsp
	.cfi_def_cfa_offset 400160
	leaq	l(%rip), %rbp
	leaq	co(%rip), %rbx
	leaq	to(%rip), %r13
	movl	%edi, 20(%rsp)
	movl	%esi, %r15d
	movl	%ecx, %r14d
	movslq	%edx, %r12
	movl	%edx, 12(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 400088(%rsp)
	xorl	%eax, %eax
	leal	(%rsi,%rsi), %eax
	movl	$0, 16(%rsp)
	movl	%eax, 8(%rsp)
	leal	-1(%rdi), %eax
	leaq	4(,%rax,4), %rax
	movq	%rax, 24(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 40(%rsp)
	movslq	%ecx, %rax
	movq	%rax, 32(%rsp)
	.p2align 4,,10
	.p2align 3
.L38:
	movl	20(%rsp), %r11d
	testl	%r11d, %r11d
	jle	.L28
	movq	24(%rsp), %rdx
	xorl	%esi, %esi
	movq	%rbp, %rdi
	call	memset@PLT
.L28:
	movl	12(%rsp), %eax
	movq	40(%rsp), %r9
	xorl	%r11d, %r11d
	movl	$1, 0(%rbp,%r12,4)
	movl	$1, %r8d
	leaq	nt(%rip), %rsi
	movl	%eax, 48(%rsp)
	.p2align 4,,10
	.p2align 3
.L27:
	movslq	(%r9), %rax
	leaq	ta(%rip), %rdi
	movslq	(%rdi,%rax,4), %rax
	cmpl	$-1, %eax
	je	.L29
	.p2align 4,,10
	.p2align 3
.L31:
	movl	(%rbx,%rax,4), %r10d
	testl	%r10d, %r10d
	je	.L30
	movslq	0(%r13,%rax,4), %rdx
	movl	0(%rbp,%rdx,4), %edi
	testl	%edi, %edi
	jne	.L30
	movslq	(%r9), %rdi
	movslq	%r8d, %r10
	addl	$1, %r8d
	movl	%edx, 48(%rsp,%r10,4)
	movl	0(%rbp,%rdi,4), %edi
	leal	1(%rdi), %ecx
	movl	%ecx, 0(%rbp,%rdx,4)
.L30:
	movslq	(%rsi,%rax,4), %rax
	cmpl	$-1, %eax
	jne	.L31
.L29:
	addl	$1, %r11d
	addq	$4, %r9
	cmpl	%r8d, %r11d
	jne	.L27
	movq	32(%rsp), %rax
	movl	0(%rbp,%rax,4), %edx
	testl	%edx, %edx
	je	.L25
	movl	20(%rsp), %eax
	leaq	it(%rip), %r8
	testl	%eax, %eax
	jle	.L35
	movq	24(%rsp), %rdx
	movq	%r8, %rdi
	leaq	ta(%rip), %rsi
	call	memcpy@PLT
	movq	%rax, %r8
.L35:
	movq	%r12, %rax
	movl	(%r8,%r12,4), %esi
	leaq	nt(%rip), %r9
	movl	%r15d, %r12d
	movq	%rax, %r15
	.p2align 4,,10
	.p2align 3
.L34:
	cmpl	%r14d, 12(%rsp)
	je	.L43
	cmpl	$-1, %esi
	je	.L54
	movl	%r12d, %edi
	movq	%r8, %r12
	.p2align 4,,10
	.p2align 3
.L37:
	movslq	%esi, %r8
	movl	(%rbx,%r8,4), %eax
	testl	%eax, %eax
	je	.L39
	movslq	0(%r13,%r8,4), %rdx
	movl	0(%rbp,%rdx,4), %ecx
	movq	%rdx, %r10
	cmpl	%ecx, 0(%rbp,%r15,4)
	jge	.L39
	movl	$1000000000, %edx
	cmpl	%edx, %eax
	cmovle	%eax, %edx
	movl	%edx, %ecx
	cmpl	%r10d, %r14d
	je	.L40
	movl	%r10d, %esi
	movl	%r14d, %edx
	movl	%edi, 4(%rsp)
	call	MF.part.0
	movslq	(%r12,%r15,4), %r8
	movl	4(%rsp), %edi
	leaq	nt(%rip), %r9
	movl	%eax, %ecx
	movq	%r8, %rsi
.L40:
	leal	(%rdi,%rsi), %eax
	subl	%ecx, (%rbx,%r8,4)
	cltd
	idivl	8(%rsp)
	movslq	%edx, %rdx
	addl	%ecx, (%rbx,%rdx,4)
	testl	%ecx, %ecx
	jne	.L55
.L39:
	movl	(%r9,%r8,4), %esi
	movl	%esi, (%r12,%r15,4)
	cmpl	$-1, %esi
	jne	.L37
	movq	%r15, %r12
	movl	%edi, %r15d
	jmp	.L38
	.p2align 4,,10
	.p2align 3
.L43:
	movl	$1000000000, %ecx
.L36:
	addl	%ecx, 16(%rsp)
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L55:
	movq	%r12, %r8
	movl	%edi, %r12d
	jmp	.L36
	.p2align 4,,10
	.p2align 3
.L54:
	movq	%r15, %rax
	movl	%r12d, %r15d
	movq	%rax, %r12
	jmp	.L38
.L25:
	movq	400088(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L57
	movl	16(%rsp), %eax
	addq	$400104, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L57:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE26:
	.size	maxf, .-maxf
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB27:
	.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
	leaq	-4796416(%rsp), %r11
	.cfi_def_cfa 11, 4796472
.LPSRL1:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL1
	.cfi_def_cfa_register 7
	subq	$3752, %rsp
	.cfi_def_cfa_offset 4800224
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 4800152(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	leaq	12(%rsp), %rdx
	leaq	800112(%rsp), %r14
	leaq	400064(%rsp), %r13
	leaq	16(%rsp), %r12
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %esi
	testl	%esi, %esi
	jle	.L59
	xorl	%ebx, %ebx
	leaq	16(%rsp), %r12
	leaq	.LC1(%rip), %r15
	xorl	%ebp, %ebp
	leaq	800112(%rsp), %r14
	leaq	400064(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L60:
	leaq	(%r12,%rbx), %rsi
	leaq	(%r14,%rbx), %rcx
	movq	%r15, %rdi
	xorl	%eax, %eax
	leaq	0(%r13,%rbx), %rdx
	addl	$1, %ebp
	addq	$4, %rbx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %esi
	cmpl	%ebp, %esi
	jg	.L60
.L59:
	movl	8(%rsp), %edi
	movq	%r14, %r8
	movq	%r13, %rcx
	movq	%r12, %rdx
	call	mklsb
	movl	8(%rsp), %edi
	movl	12(%rsp), %esi
	xorl	%edx, %edx
	leal	-1(%rdi), %ecx
	call	maxf
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	4800152(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L66
	addq	$4800168, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	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
.L66:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE27:
	.size	main, .-main
	.globl	l
	.bss
	.align 32
	.type	l, @object
	.size	l, 400040
l:
	.zero	400040
	.globl	it
	.align 32
	.type	it, @object
	.size	it, 400040
it:
	.zero	400040
	.globl	nt
	.align 32
	.type	nt, @object
	.size	nt, 400040
nt:
	.zero	400040
	.globl	co
	.align 32
	.type	co, @object
	.size	co, 400040
co:
	.zero	400040
	.globl	to
	.align 32
	.type	to, @object
	.size	to, 400040
to:
	.zero	400040
	.globl	ta
	.align 32
	.type	ta, @object
	.size	ta, 400040
ta:
	.zero	400040
	.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	MF.part.0, @function
MF.part.0:
.LFB28:
	.cfi_startproc
	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
	leaq	it(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movslq	%esi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	0(%r13,%rbp,4), %eax
	cmpl	$-1, %eax
	je	.L7
	movl	%edx, %r8d
	movl	%ecx, %r14d
	leal	(%rdi,%rdi), %r10d
	leaq	co(%rip), %rbx
	leaq	to(%rip), %r9
	leaq	l(%rip), %r12
	leaq	nt(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L6:
	movslq	%eax, %rsi
	movl	(%rbx,%rsi,4), %ecx
	testl	%ecx, %ecx
	je	.L4
	movslq	(%r9,%rsi,4), %rdx
	movq	%rdx, %r11
	movl	(%r12,%rdx,4), %edx
	cmpl	%edx, (%r12,%rbp,4)
	jge	.L4
	cmpl	%r14d, %ecx
	cmovg	%r14d, %ecx
	cmpl	%r8d, %r11d
	je	.L5
	movl	%r8d, %edx
	movl	%r11d, %esi
	movl	%r10d, 12(%rsp)
	movl	%r8d, 8(%rsp)
	movl	%edi, 4(%rsp)
	call	MF.part.0
	movslq	0(%r13,%rbp,4), %rsi
	movl	12(%rsp), %r10d
	leaq	to(%rip), %r9
	movl	8(%rsp), %r8d
	movl	4(%rsp), %edi
	movl	%eax, %ecx
	movq	%rsi, %rax
.L5:
	addl	%edi, %eax
	subl	%ecx, (%rbx,%rsi,4)
	cltd
	idivl	%r10d
	movslq	%edx, %rdx
	addl	%ecx, (%rbx,%rdx,4)
	testl	%ecx, %ecx
	jne	.L1
.L4:
	movl	(%r15,%rsi,4), %eax
	movl	%eax, 0(%r13,%rbp,4)
	cmpl	$-1, %eax
	jne	.L6
.L7:
	xorl	%ecx, %ecx
.L1:
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	movl	%ecx, %eax
	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
	.cfi_endproc
.LFE28:
	.size	MF.part.0, .-MF.part.0
	.p2align 4
	.globl	MIN
	.type	MIN, @function
MIN:
.LFB23:
	.cfi_startproc
	endbr64
	cmpl	%edi, %esi
	movl	%edi, %eax
	cmovle	%esi, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	MIN, .-MIN
	.p2align 4
	.globl	mklsb
	.type	mklsb, @function
mklsb:
.LFB24:
	.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
	movq	%r8, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	%esi, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%rcx, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rdx, %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	testl	%edi, %edi
	jle	.L18
	movslq	%edi, %rdi
	movl	$255, %esi
	leaq	0(,%rdi,4), %rdx
	leaq	ta(%rip), %rdi
	call	memset@PLT
.L18:
	testl	%r12d, %r12d
	jle	.L17
	movslq	%r12d, %r10
	leaq	to(%rip), %r9
	leaq	nt(%rip), %r8
	xorl	%eax, %eax
	leaq	0(,%r10,4), %rcx
	leaq	co(%rip), %rsi
	leaq	(%r9,%rcx), %r14
	leaq	(%r8,%rcx), %r11
	addq	%rsi, %rcx
	leaq	ta(%rip), %rdi
	.p2align 4,,10
	.p2align 3
.L20:
	movslq	(%rbx,%rax,4), %rdx
	leal	(%r12,%rax), %r15d
	movl	%edx, (%r14,%rax,4)
	movl	(%rdi,%rdx,4), %edx
	movl	%edx, (%r8,%rax,4)
	movslq	0(%rbp,%rax,4), %rdx
	movl	%edx, (%r9,%rax,4)
	movl	(%rdi,%rdx,4), %edx
	movl	%edx, (%r11,%rax,4)
	movslq	(%rbx,%rax,4), %rdx
	movl	%eax, (%rdi,%rdx,4)
	movl	0(%r13,%rax,4), %edx
	movl	%edx, (%rsi,%rax,4)
	movslq	0(%rbp,%rax,4), %rdx
	movl	$0, (%rcx,%rax,4)
	addq	$1, %rax
	movl	%r15d, (%rdi,%rdx,4)
	cmpq	%r10, %rax
	jne	.L20
.L17:
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	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
	.cfi_endproc
.LFE24:
	.size	mklsb, .-mklsb
	.p2align 4
	.globl	MF
	.type	MF, @function
MF:
.LFB25:
	.cfi_startproc
	endbr64
	cmpl	%edx, %esi
	je	.L24
	jmp	MF.part.0
	.p2align 4,,10
	.p2align 3
.L24:
	movl	%ecx, %eax
	ret
	.cfi_endproc
.LFE25:
	.size	MF, .-MF
	.p2align 4
	.globl	maxf
	.type	maxf, @function
maxf:
.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
	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
	leaq	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397368
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2792, %rsp
	.cfi_def_cfa_offset 400160
	leaq	l(%rip), %rbp
	leaq	co(%rip), %rbx
	leaq	to(%rip), %r13
	movl	%edi, 20(%rsp)
	movl	%esi, %r15d
	movl	%ecx, %r14d
	movslq	%edx, %r12
	movl	%edx, 12(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 400088(%rsp)
	xorl	%eax, %eax
	leal	(%rsi,%rsi), %eax
	movl	$0, 16(%rsp)
	movl	%eax, 8(%rsp)
	leal	-1(%rdi), %eax
	leaq	4(,%rax,4), %rax
	movq	%rax, 24(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 40(%rsp)
	movslq	%ecx, %rax
	movq	%rax, 32(%rsp)
	.p2align 4,,10
	.p2align 3
.L38:
	movl	20(%rsp), %r11d
	testl	%r11d, %r11d
	jle	.L28
	movq	24(%rsp), %rdx
	xorl	%esi, %esi
	movq	%rbp, %rdi
	call	memset@PLT
.L28:
	movl	12(%rsp), %eax
	movq	40(%rsp), %r9
	xorl	%r11d, %r11d
	movl	$1, 0(%rbp,%r12,4)
	movl	$1, %r8d
	leaq	nt(%rip), %rsi
	movl	%eax, 48(%rsp)
	.p2align 4,,10
	.p2align 3
.L27:
	movslq	(%r9), %rax
	leaq	ta(%rip), %rdi
	movslq	(%rdi,%rax,4), %rax
	cmpl	$-1, %eax
	je	.L29
	.p2align 4,,10
	.p2align 3
.L31:
	movl	(%rbx,%rax,4), %r10d
	testl	%r10d, %r10d
	je	.L30
	movslq	0(%r13,%rax,4), %rdx
	movl	0(%rbp,%rdx,4), %edi
	testl	%edi, %edi
	jne	.L30
	movslq	(%r9), %rdi
	movslq	%r8d, %r10
	addl	$1, %r8d
	movl	%edx, 48(%rsp,%r10,4)
	movl	0(%rbp,%rdi,4), %edi
	leal	1(%rdi), %ecx
	movl	%ecx, 0(%rbp,%rdx,4)
.L30:
	movslq	(%rsi,%rax,4), %rax
	cmpl	$-1, %eax
	jne	.L31
.L29:
	addl	$1, %r11d
	addq	$4, %r9
	cmpl	%r8d, %r11d
	jne	.L27
	movq	32(%rsp), %rax
	movl	0(%rbp,%rax,4), %edx
	testl	%edx, %edx
	je	.L25
	movl	20(%rsp), %eax
	leaq	it(%rip), %r8
	testl	%eax, %eax
	jle	.L35
	movq	24(%rsp), %rdx
	movq	%r8, %rdi
	leaq	ta(%rip), %rsi
	call	memcpy@PLT
	movq	%rax, %r8
.L35:
	movq	%r12, %rax
	movl	(%r8,%r12,4), %esi
	leaq	nt(%rip), %r9
	movl	%r15d, %r12d
	movq	%rax, %r15
	.p2align 4,,10
	.p2align 3
.L34:
	cmpl	%r14d, 12(%rsp)
	je	.L43
	cmpl	$-1, %esi
	je	.L54
	movl	%r12d, %edi
	movq	%r8, %r12
	.p2align 4,,10
	.p2align 3
.L37:
	movslq	%esi, %r8
	movl	(%rbx,%r8,4), %eax
	testl	%eax, %eax
	je	.L39
	movslq	0(%r13,%r8,4), %rdx
	movl	0(%rbp,%rdx,4), %ecx
	movq	%rdx, %r10
	cmpl	%ecx, 0(%rbp,%r15,4)
	jge	.L39
	movl	$1000000000, %edx
	cmpl	%edx, %eax
	cmovle	%eax, %edx
	movl	%edx, %ecx
	cmpl	%r10d, %r14d
	je	.L40
	movl	%r10d, %esi
	movl	%r14d, %edx
	movl	%edi, 4(%rsp)
	call	MF.part.0
	movslq	(%r12,%r15,4), %r8
	movl	4(%rsp), %edi
	leaq	nt(%rip), %r9
	movl	%eax, %ecx
	movq	%r8, %rsi
.L40:
	leal	(%rdi,%rsi), %eax
	subl	%ecx, (%rbx,%r8,4)
	cltd
	idivl	8(%rsp)
	movslq	%edx, %rdx
	addl	%ecx, (%rbx,%rdx,4)
	testl	%ecx, %ecx
	jne	.L55
.L39:
	movl	(%r9,%r8,4), %esi
	movl	%esi, (%r12,%r15,4)
	cmpl	$-1, %esi
	jne	.L37
	movq	%r15, %r12
	movl	%edi, %r15d
	jmp	.L38
	.p2align 4,,10
	.p2align 3
.L43:
	movl	$1000000000, %ecx
.L36:
	addl	%ecx, 16(%rsp)
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L55:
	movq	%r12, %r8
	movl	%edi, %r12d
	jmp	.L36
	.p2align 4,,10
	.p2align 3
.L54:
	movq	%r15, %rax
	movl	%r12d, %r15d
	movq	%rax, %r12
	jmp	.L38
.L25:
	movq	400088(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L57
	movl	16(%rsp), %eax
	addq	$400104, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L57:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE26:
	.size	maxf, .-maxf
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB27:
	.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
	leaq	-4796416(%rsp), %r11
	.cfi_def_cfa 11, 4796472
.LPSRL1:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL1
	.cfi_def_cfa_register 7
	subq	$3752, %rsp
	.cfi_def_cfa_offset 4800224
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 4800152(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	leaq	12(%rsp), %rdx
	leaq	800112(%rsp), %r14
	leaq	400064(%rsp), %r13
	leaq	16(%rsp), %r12
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %esi
	testl	%esi, %esi
	jle	.L59
	xorl	%ebx, %ebx
	leaq	16(%rsp), %r12
	leaq	.LC1(%rip), %r15
	xorl	%ebp, %ebp
	leaq	800112(%rsp), %r14
	leaq	400064(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L60:
	leaq	(%r12,%rbx), %rsi
	leaq	(%r14,%rbx), %rcx
	movq	%r15, %rdi
	xorl	%eax, %eax
	leaq	0(%r13,%rbx), %rdx
	addl	$1, %ebp
	addq	$4, %rbx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %esi
	cmpl	%ebp, %esi
	jg	.L60
.L59:
	movl	8(%rsp), %edi
	movq	%r14, %r8
	movq	%r13, %rcx
	movq	%r12, %rdx
	call	mklsb
	movl	8(%rsp), %edi
	movl	12(%rsp), %esi
	xorl	%edx, %edx
	leal	-1(%rdi), %ecx
	call	maxf
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	4800152(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L66
	addq	$4800168, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	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
.L66:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE27:
	.size	main, .-main
	.globl	l
	.bss
	.align 32
	.type	l, @object
	.size	l, 400040
l:
	.zero	400040
	.globl	it
	.align 32
	.type	it, @object
	.size	it, 400040
it:
	.zero	400040
	.globl	nt
	.align 32
	.type	nt, @object
	.size	nt, 400040
nt:
	.zero	400040
	.globl	co
	.align 32
	.type	co, @object
	.size	co, 400040
co:
	.zero	400040
	.globl	to
	.align 32
	.type	to, @object
	.size	to, 400040
to:
	.zero	400040
	.globl	ta
	.align 32
	.type	ta, @object
	.size	ta, 400040
ta:
	.zero	400040
	.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>
int MIN(int a,int b){return a<b?a:b;}
int ta[100010],to[100010],co[100010],nt[100010],it[100010],l[100010];
void mklsb(int v,int e,int *a,int *b,int *c){
  int i;
  for(i=0;i<v;i++)ta[i]=-1;
  for(i=0;i<e;i++){
    nt[i  ]=ta[to[i+e]=a[i]];
    nt[i+e]=ta[to[i  ]=b[i]];
    co[ta[a[i]]=i  ]=c[i];      
    co[ta[b[i]]=i+e]=0;
  }
}
int MF(int e,int s,int t,int min){
  if(s==t)return min;
  int i,r;
  for(;it[s]+1;it[s]=nt[it[s]]){
    if(co[it[s]]==0||l[s]>=l[to[it[s]]])continue;
    r=MF(e,to[it[s]],t,MIN(min,co[it[s]]));
    co[it[s]]-=r;
    co[(it[s]+e)%(2*e)]+=r;
    if(r)return r;
  }
  return 0;
}
int maxf(int v,int e,int s,int g){
  int i,a=0,q[100010],t,r,c=3;
  while(1){
    for(i=t=0;i<v;i++)l[i]=0;
    l[q[0]=s]=1;
    for(r=1;r-t;t++){
      for(i=ta[q[t]];i+1;i=nt[i]){
	if(co[i]&&l[to[i]]==0)l[q[r++]=to[i]]=l[q[t]]+1;
      }
    }
    if(l[g]==0)return a;
    for(i=0;i<v;i++)it[i]=ta[i];
    while(r=MF(e,s,g,1e9))a+=r;
  }
}
int main(){
  int n,m,i,a[100010],b[100010],c[1000010],m1,m2;
  scanf("%d %d",&n,&m);
  for(i=0;i<m;i++)scanf("%d %d %d",&a[i],&b[i],&c[i]);
  mklsb(n,m,a,b,c);//prls(n);
  printf("%d\n",maxf (n,m,0,n-1));
  return 0;
}
  
4 2
0 1 2
0 2 1
1 2 1
1 3 1
2 3 2
 3 2
1 1 0
0 2 1
1 1 2
1 3 1
2 3 2
 6 2
0 1 2
0 2 1
1 2 1
1 3 1
2 3 2
 6 2
0 1 2
0 2 1
1 2 1
1 3 1
2 3 4
 6 2
0 1 2
0 2 1
1 2 1
1 3 1
2 3 5
 6 2
0 1 0
0 2 1
1 2 1
1 3 1
2 3 5
 6 2
1 1 0
0 2 1
1 2 1
1 3 1
2 3 5
 6 2
1 1 0
0 2 1
1 2 1
1 3 1
2 3 2
 6 2
1 1 0
0 3 1
1 2 1
1 3 1
2 3 2
 6 2
1 1 0
0 3 1
1 2 1
1 3 1
2 3 4

0
 1
 0
 0
 0
 0
 0
 0
 0
 0

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>
int MIN(int a,int b){return a<b?a:b;}
int ta[100010],to[100010],co[100010],nt[100010],it[100010],l[100010];
void mklsb(int v,int e,int *a,int *b,int *c){
  int i;
  for(i=0;i<v;i++)ta[i]=-1;
  for(i=0;i<e;i++){
    nt[i  ]=ta[to[i+e]=a[i]];
    nt[i+e]=ta[to[i  ]=b[i]];
    co[ta[a[i]]=i  ]=c[i];      
    co[ta[b[i]]=i+e]=0;
  }
}
int MF(int e,int s,int t,int min){
  if(s==t)return min;
  int i,r;
  for(;it[s]+1;it[s]=nt[it[s]]){
    if(co[it[s]]==0||l[s]>=l[to[it[s]]])continue;
    r=MF(e,to[it[s]],t,MIN(min,co[it[s]]));
    co[it[s]]-=r;
    co[(it[s]+e)%(2*e)]+=r;
    if(r)return r;
  }
  return 0;
}
int maxf(int v,int e,int s,int g){
  int i,a=0,q[100010],t,r,c=3;
  while(1){
    for(i=t=0;i<v;i++)l[i]=0;
    l[q[0]=s]=1;
    for(r=1;r-t;t++){
      for(i=ta[q[t]];i+1;i=nt[i]){
	if(co[i]&&l[to[i]]==0)l[q[r++]=to[i]]=l[q[t]]+1;
      }
    }
    if(l[g]==0)return a;
    for(i=0;i<v;i++)it[i]=ta[i];
    while(r=MF(e,s,g,1e9))a+=r;
  }
}
int main(){
  int n,m,i,a[100010],b[100010],c[1000010],m1,m2;
  scanf("%d %d",&n,&m);
  for(i=0;i<m;i++)scanf("%d %d %d",&a[i],&b[i],&c[i]);
  mklsb(n,m,a,b,c);//prls(n);
  printf("%d\n",maxf (n,m,0,n-1));
  return 0;
}
  ```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	MIN
	.type	MIN, @function
MIN:
.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, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-8(%rbp), %edx
	movl	-4(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	MIN, .-MIN
	.globl	ta
	.bss
	.align 32
	.type	ta, @object
	.size	ta, 400040
ta:
	.zero	400040
	.globl	to
	.align 32
	.type	to, @object
	.size	to, 400040
to:
	.zero	400040
	.globl	co
	.align 32
	.type	co, @object
	.size	co, 400040
co:
	.zero	400040
	.globl	nt
	.align 32
	.type	nt, @object
	.size	nt, 400040
nt:
	.zero	400040
	.globl	it
	.align 32
	.type	it, @object
	.size	it, 400040
it:
	.zero	400040
	.globl	l
	.align 32
	.type	l, @object
	.size	l, 400040
l:
	.zero	400040
	.text
	.globl	mklsb
	.type	mklsb, @function
mklsb:
.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, -20(%rbp)
	movl	%esi, -24(%rbp)
	movq	%rdx, -32(%rbp)
	movq	%rcx, -40(%rbp)
	movq	%r8, -48(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L4
.L5:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ta(%rip), %rax
	movl	$-1, (%rdx,%rax)
	addl	$1, -4(%rbp)
.L4:
	movl	-4(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jl	.L5
	movl	$0, -4(%rbp)
	jmp	.L6
.L7:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %ecx
	movl	-24(%rbp), %eax
	addl	%ecx, %eax
	movl	(%rdx), %edx
	movslq	%eax, %rcx
	leaq	0(,%rcx,4), %rsi
	leaq	to(%rip), %rcx
	movl	%edx, (%rsi,%rcx)
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	to(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ta(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	nt(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	to(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	to(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-4(%rbp), %ecx
	movl	-24(%rbp), %edx
	addl	%edx, %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ta(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%ecx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	nt(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-48(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rdi
	leaq	ta(%rip), %rsi
	movl	-4(%rbp), %edx
	movl	%edx, (%rdi,%rsi)
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ta(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	(%rcx), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	co(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-4(%rbp), %ecx
	movl	-24(%rbp), %edx
	leal	(%rcx,%rdx), %esi
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	ta(%rip), %rdx
	movl	%esi, (%rcx,%rdx)
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ta(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	co(%rip), %rax
	movl	$0, (%rdx,%rax)
	addl	$1, -4(%rbp)
.L6:
	movl	-4(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jl	.L7
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	mklsb, .-mklsb
	.globl	MF
	.type	MF, @function
MF:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	%edx, -28(%rbp)
	movl	%ecx, -32(%rbp)
	movl	-24(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jne	.L11
	movl	-32(%rbp), %eax
	jmp	.L10
.L15:
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	it(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	co(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L16
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	l(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	it(%rip), %rax
	movl	(%rcx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	to(%rip), %rax
	movl	(%rcx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	l(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jge	.L16
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	it(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	co(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-32(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	MIN
	movl	%eax, %ecx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	it(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	to(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	-28(%rbp), %edx
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	MF
	movl	%eax, -4(%rbp)
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	it(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	co(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-24(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	it(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	-4(%rbp), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	co(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	it(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	addl	%edx, %eax
	movl	-20(%rbp), %edx
	leal	(%rdx,%rdx), %ecx
	cltd
	idivl	%ecx
	movl	%edx, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	co(%rip), %rdx
	movl	(%rcx,%rdx), %ecx
	movl	-4(%rbp), %edx
	addl	%edx, %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	co(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	cmpl	$0, -4(%rbp)
	je	.L14
	movl	-4(%rbp), %eax
	jmp	.L10
.L16:
	nop
.L14:
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	it(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	nt(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-24(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	it(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
.L11:
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	it(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	jne	.L15
	movl	$0, %eax
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	MF, .-MF
	.globl	maxf
	.type	maxf, @function
maxf:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2784, %rsp
	movl	%edi, -400084(%rbp)
	movl	%esi, -400088(%rbp)
	movl	%edx, -400092(%rbp)
	movl	%ecx, -400096(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -400064(%rbp)
	movl	$3, -400052(%rbp)
.L31:
	movl	$0, -400060(%rbp)
	movl	-400060(%rbp), %eax
	movl	%eax, -400068(%rbp)
	jmp	.L18
.L19:
	movl	-400068(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	l(%rip), %rax
	movl	$0, (%rdx,%rax)
	addl	$1, -400068(%rbp)
.L18:
	movl	-400068(%rbp), %eax
	cmpl	-400084(%rbp), %eax
	jl	.L19
	movl	-400092(%rbp), %eax
	movl	%eax, -400048(%rbp)
	movl	-400048(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	l(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	$1, -400056(%rbp)
	jmp	.L20
.L24:
	movl	-400060(%rbp), %eax
	cltq
	movl	-400048(%rbp,%rax,4), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ta(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -400068(%rbp)
	jmp	.L21
.L23:
	movl	-400068(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	co(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L22
	movl	-400068(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	to(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	l(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L22
	movl	-400060(%rbp), %eax
	cltq
	movl	-400048(%rbp,%rax,4), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	l(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	-400056(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -400056(%rbp)
	movl	-400068(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	to(%rip), %rdx
	movl	(%rcx,%rdx), %ecx
	movslq	%eax, %rdx
	movl	%ecx, -400048(%rbp,%rdx,4)
	cltq
	movl	-400048(%rbp,%rax,4), %eax
	leal	1(%rsi), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	l(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L22:
	movl	-400068(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	nt(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -400068(%rbp)
.L21:
	cmpl	$-1, -400068(%rbp)
	jne	.L23
	addl	$1, -400060(%rbp)
.L20:
	movl	-400056(%rbp), %eax
	cmpl	-400060(%rbp), %eax
	jne	.L24
	movl	-400096(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	l(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L25
	movl	-400064(%rbp), %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L32
	jmp	.L33
.L25:
	movl	$0, -400068(%rbp)
	jmp	.L27
.L28:
	movl	-400068(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ta(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-400068(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	it(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -400068(%rbp)
.L27:
	movl	-400068(%rbp), %eax
	cmpl	-400084(%rbp), %eax
	jl	.L28
	jmp	.L29
.L30:
	movl	-400056(%rbp), %eax
	addl	%eax, -400064(%rbp)
.L29:
	movl	-400096(%rbp), %edx
	movl	-400092(%rbp), %esi
	movl	-400088(%rbp), %eax
	movl	$1000000000, %ecx
	movl	%eax, %edi
	call	MF
	movl	%eax, -400056(%rbp)
	cmpl	$0, -400056(%rbp)
	jne	.L30
	jmp	.L31
.L33:
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	maxf, .-maxf
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"%d\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
	leaq	-4796416(%rsp), %r11
.LPSRL1:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL1
	subq	$3744, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-4800152(%rbp), %rdx
	leaq	-4800156(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -4800148(%rbp)
	jmp	.L35
.L36:
	leaq	-4000048(%rbp), %rdx
	movl	-4800148(%rbp), %eax
	cltq
	salq	$2, %rax
	leaq	(%rdx,%rax), %rcx
	leaq	-4400096(%rbp), %rdx
	movl	-4800148(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-4800144(%rbp), %rsi
	movl	-4800148(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -4800148(%rbp)
.L35:
	movl	-4800152(%rbp), %eax
	cmpl	%eax, -4800148(%rbp)
	jl	.L36
	movl	-4800152(%rbp), %esi
	movl	-4800156(%rbp), %eax
	leaq	-4000048(%rbp), %rdi
	leaq	-4400096(%rbp), %rcx
	leaq	-4800144(%rbp), %rdx
	movq	%rdi, %r8
	movl	%eax, %edi
	call	mklsb
	movl	-4800156(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-4800152(%rbp), %esi
	movl	-4800156(%rbp), %eax
	movl	%edx, %ecx
	movl	$0, %edx
	movl	%eax, %edi
	call	maxf
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	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	MIN
	.type	MIN, @function
MIN:
.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, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-8(%rbp), %edx
	movl	-4(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	MIN, .-MIN
	.globl	ta
	.bss
	.align 32
	.type	ta, @object
	.size	ta, 400040
ta:
	.zero	400040
	.globl	to
	.align 32
	.type	to, @object
	.size	to, 400040
to:
	.zero	400040
	.globl	co
	.align 32
	.type	co, @object
	.size	co, 400040
co:
	.zero	400040
	.globl	nt
	.align 32
	.type	nt, @object
	.size	nt, 400040
nt:
	.zero	400040
	.globl	it
	.align 32
	.type	it, @object
	.size	it, 400040
it:
	.zero	400040
	.globl	l
	.align 32
	.type	l, @object
	.size	l, 400040
l:
	.zero	400040
	.text
	.globl	mklsb
	.type	mklsb, @function
mklsb:
.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, -20(%rbp)
	movl	%esi, -24(%rbp)
	movq	%rdx, -32(%rbp)
	movq	%rcx, -40(%rbp)
	movq	%r8, -48(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L4
.L5:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ta(%rip), %rax
	movl	$-1, (%rdx,%rax)
	addl	$1, -4(%rbp)
.L4:
	movl	-4(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jl	.L5
	movl	$0, -4(%rbp)
	jmp	.L6
.L7:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %ecx
	movl	-24(%rbp), %eax
	addl	%ecx, %eax
	movl	(%rdx), %edx
	movslq	%eax, %rcx
	leaq	0(,%rcx,4), %rsi
	leaq	to(%rip), %rcx
	movl	%edx, (%rsi,%rcx)
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	to(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ta(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	nt(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	to(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	to(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-4(%rbp), %ecx
	movl	-24(%rbp), %edx
	addl	%edx, %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ta(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%ecx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	nt(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-48(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rdi
	leaq	ta(%rip), %rsi
	movl	-4(%rbp), %edx
	movl	%edx, (%rdi,%rsi)
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ta(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	(%rcx), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	co(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-4(%rbp), %ecx
	movl	-24(%rbp), %edx
	leal	(%rcx,%rdx), %esi
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	ta(%rip), %rdx
	movl	%esi, (%rcx,%rdx)
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ta(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	co(%rip), %rax
	movl	$0, (%rdx,%rax)
	addl	$1, -4(%rbp)
.L6:
	movl	-4(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jl	.L7
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	mklsb, .-mklsb
	.globl	MF
	.type	MF, @function
MF:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	%edx, -28(%rbp)
	movl	%ecx, -32(%rbp)
	movl	-24(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jne	.L11
	movl	-32(%rbp), %eax
	jmp	.L10
.L15:
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	it(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	co(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L16
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	l(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	it(%rip), %rax
	movl	(%rcx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	to(%rip), %rax
	movl	(%rcx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	l(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jge	.L16
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	it(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	co(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-32(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	MIN
	movl	%eax, %ecx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	it(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	to(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	-28(%rbp), %edx
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	MF
	movl	%eax, -4(%rbp)
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	it(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	co(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-24(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	it(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	-4(%rbp), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	co(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	it(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	addl	%edx, %eax
	movl	-20(%rbp), %edx
	leal	(%rdx,%rdx), %ecx
	cltd
	idivl	%ecx
	movl	%edx, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	co(%rip), %rdx
	movl	(%rcx,%rdx), %ecx
	movl	-4(%rbp), %edx
	addl	%edx, %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	co(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	cmpl	$0, -4(%rbp)
	je	.L14
	movl	-4(%rbp), %eax
	jmp	.L10
.L16:
	nop
.L14:
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	it(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	nt(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-24(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	it(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
.L11:
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	it(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	jne	.L15
	movl	$0, %eax
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	MF, .-MF
	.globl	maxf
	.type	maxf, @function
maxf:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2784, %rsp
	movl	%edi, -400084(%rbp)
	movl	%esi, -400088(%rbp)
	movl	%edx, -400092(%rbp)
	movl	%ecx, -400096(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -400064(%rbp)
	movl	$3, -400052(%rbp)
.L31:
	movl	$0, -400060(%rbp)
	movl	-400060(%rbp), %eax
	movl	%eax, -400068(%rbp)
	jmp	.L18
.L19:
	movl	-400068(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	l(%rip), %rax
	movl	$0, (%rdx,%rax)
	addl	$1, -400068(%rbp)
.L18:
	movl	-400068(%rbp), %eax
	cmpl	-400084(%rbp), %eax
	jl	.L19
	movl	-400092(%rbp), %eax
	movl	%eax, -400048(%rbp)
	movl	-400048(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	l(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	$1, -400056(%rbp)
	jmp	.L20
.L24:
	movl	-400060(%rbp), %eax
	cltq
	movl	-400048(%rbp,%rax,4), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ta(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -400068(%rbp)
	jmp	.L21
.L23:
	movl	-400068(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	co(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L22
	movl	-400068(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	to(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	l(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L22
	movl	-400060(%rbp), %eax
	cltq
	movl	-400048(%rbp,%rax,4), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	l(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	-400056(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -400056(%rbp)
	movl	-400068(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	to(%rip), %rdx
	movl	(%rcx,%rdx), %ecx
	movslq	%eax, %rdx
	movl	%ecx, -400048(%rbp,%rdx,4)
	cltq
	movl	-400048(%rbp,%rax,4), %eax
	leal	1(%rsi), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	l(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L22:
	movl	-400068(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	nt(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -400068(%rbp)
.L21:
	cmpl	$-1, -400068(%rbp)
	jne	.L23
	addl	$1, -400060(%rbp)
.L20:
	movl	-400056(%rbp), %eax
	cmpl	-400060(%rbp), %eax
	jne	.L24
	movl	-400096(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	l(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L25
	movl	-400064(%rbp), %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L32
	jmp	.L33
.L25:
	movl	$0, -400068(%rbp)
	jmp	.L27
.L28:
	movl	-400068(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ta(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-400068(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	it(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -400068(%rbp)
.L27:
	movl	-400068(%rbp), %eax
	cmpl	-400084(%rbp), %eax
	jl	.L28
	jmp	.L29
.L30:
	movl	-400056(%rbp), %eax
	addl	%eax, -400064(%rbp)
.L29:
	movl	-400096(%rbp), %edx
	movl	-400092(%rbp), %esi
	movl	-400088(%rbp), %eax
	movl	$1000000000, %ecx
	movl	%eax, %edi
	call	MF
	movl	%eax, -400056(%rbp)
	cmpl	$0, -400056(%rbp)
	jne	.L30
	jmp	.L31
.L33:
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	maxf, .-maxf
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"%d\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
	leaq	-4796416(%rsp), %r11
.LPSRL1:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL1
	subq	$3744, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-4800152(%rbp), %rdx
	leaq	-4800156(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -4800148(%rbp)
	jmp	.L35
.L36:
	leaq	-4000048(%rbp), %rdx
	movl	-4800148(%rbp), %eax
	cltq
	salq	$2, %rax
	leaq	(%rdx,%rax), %rcx
	leaq	-4400096(%rbp), %rdx
	movl	-4800148(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-4800144(%rbp), %rsi
	movl	-4800148(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -4800148(%rbp)
.L35:
	movl	-4800152(%rbp), %eax
	cmpl	%eax, -4800148(%rbp)
	jl	.L36
	movl	-4800152(%rbp), %esi
	movl	-4800156(%rbp), %eax
	leaq	-4000048(%rbp), %rdi
	leaq	-4400096(%rbp), %rcx
	leaq	-4800144(%rbp), %rdx
	movq	%rdi, %r8
	movl	%eax, %edi
	call	mklsb
	movl	-4800156(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-4800152(%rbp), %esi
	movl	-4800156(%rbp), %eax
	movl	%edx, %ecx
	movl	$0, %edx
	movl	%eax, %edi
	call	maxf
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	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:
