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

```c
// AOJ GRL_6_A Maximum Flow
// 2018.4.26 bal4u

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

/*******************************************/
/* Dinic's Max Flow Algorithm 
/*******************************************/

#define INF 0x01010101
#define VMAX 110
typedef struct { int to; int cap; int rev; } EDGE;
EDGE *edge[VMAX]; int hi[VMAX], lim[VMAX];
int V;				// 頂点数
int level[VMAX], iter[VMAX];
int queue[2*VMAX], qtop;

void check_lim(int a)
{
	if (hi[a] < lim[a]) return;
	if (lim[a] == 0) {
		lim[a] = 16, hi[a] = 0;
		edge[a] = malloc(sizeof(EDGE) *lim[a]);
	} else if (hi[a] == lim[a]) {
		int k = lim[a];
		if (k > 256) k = 256;
		lim[a] += k;
		edge[a] = realloc(edge[a], sizeof(EDGE) *lim[a]);
	}
}

void add_edge(int from, int to, int cap)
{
	int f, t;
	EDGE *e;

	check_lim(from), check_lim(to);
	f = hi[from]++, t = hi[to]++;
	e = &edge[from][f], e->to = to, e->cap = cap, e->rev = t; 
	e = &edge[to][t], e->to = from, e->cap = 0, e->rev = f;
}

#if 0
void init()
{
	memset(lim, 0, sizeof(lim));
	memset(hi, 0, sizeof(hi));
}
#endif

void bfs(int s)
{
	int i, v;
	EDGE *e;
	
	memset(level, -1, V << 2);
	level[s] = 0;
	queue[0] = s, qtop =1;
	while (qtop) {
		v = queue[--qtop];
		for (i = 0; i < hi[v]; i++) {
			e = &edge[v][i];
			if (e->cap > 0 && level[e->to] < 0) {
				level[e->to] = level[v] + 1;
				queue[qtop++] = e->to;
			}
		}
	}
}
 
int dfs(int v, int t, int f)
{
	int *i, d;
	EDGE *e;
	
	if (v == t) return f;
	for (i = &iter[v]; *i < hi[v]; (*i)++) {
		e = &edge[v][*i];
		if (e->cap > 0 && level[v] < level[e->to]) {
			d = dfs(e->to, t, f <= e->cap? f: e->cap);
			if (d > 0) {
				e->cap -= d;
				edge[e->to][e->rev].cap += d;
				return d;
			}
		}
	}
	return 0;
}
 
int maxFlow(int s, int t)
{
	int f, flow = 0;
	while (1) {
		bfs(s);
		if (level[t] < 0) break;
		memset(iter, 0, V << 2);
		while ((f = dfs(s, t, INF)) > 0) flow += f;
	}
	return flow;
}

//#define getchar_unlocked()  getchar()
int in()
{
	int n = 0;
	int c = getchar_unlocked();
	do n = (n<<3)+(n<<1) + (c & 0xf), c = getchar_unlocked();
	while (c >= '0');
	return n;
}

int main()
{
	int E, u, v, c;
	int source, sink;

	V = in(), E = in();
	source = 0, sink = V-1;
	while (E--) {
		u = in(), v = in(), c = in();
		add_edge(u, v, c);
	}
	printf("%d\n", maxFlow(source, sink));
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	edge
	.bss
	.align 32
	.type	edge, @object
	.size	edge, 880
edge:
	.zero	880
	.globl	hi
	.align 32
	.type	hi, @object
	.size	hi, 440
hi:
	.zero	440
	.globl	lim
	.align 32
	.type	lim, @object
	.size	lim, 440
lim:
	.zero	440
	.globl	V
	.align 4
	.type	V, @object
	.size	V, 4
V:
	.zero	4
	.globl	level
	.align 32
	.type	level, @object
	.size	level, 440
level:
	.zero	440
	.globl	iter
	.align 32
	.type	iter, @object
	.size	iter, 440
iter:
	.zero	440
	.globl	queue
	.align 32
	.type	queue, @object
	.size	queue, 880
queue:
	.zero	880
	.globl	qtop
	.align 4
	.type	qtop, @object
	.size	qtop, 4
qtop:
	.zero	4
	.text
	.globl	check_lim
	.type	check_lim, @function
check_lim:
.LFB6:
	.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	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	lim(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jl	.L6
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	lim(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L4
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	lim(%rip), %rax
	movl	$16, (%rdx,%rax)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	lim(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, %rcx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	edge(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	jmp	.L1
.L4:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	lim(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jne	.L1
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	lim(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	cmpl	$256, -4(%rbp)
	jle	.L5
	movl	$256, -4(%rbp)
.L5:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	lim(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-4(%rbp), %eax
	leal	(%rdx,%rax), %ecx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	lim(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	lim(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	edge(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	realloc@PLT
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	edge(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	jmp	.L1
.L6:
	nop
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	check_lim, .-check_lim
	.globl	add_edge
	.type	add_edge, @function
add_edge:
.LFB7:
	.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	-20(%rbp), %eax
	movl	%eax, %edi
	call	check_lim
	movl	-24(%rbp), %eax
	movl	%eax, %edi
	call	check_lim
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %edx
	movl	-20(%rbp), %ecx
	movslq	%ecx, %rcx
	leaq	0(,%rcx,4), %rsi
	leaq	hi(%rip), %rcx
	movl	%edx, (%rsi,%rcx)
	movl	%eax, -16(%rbp)
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %edx
	movl	-24(%rbp), %ecx
	movslq	%ecx, %rcx
	leaq	0(,%rcx,4), %rsi
	leaq	hi(%rip), %rcx
	movl	%edx, (%rsi,%rcx)
	movl	%eax, -12(%rbp)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	edge(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movl	-24(%rbp), %edx
	movl	%edx, (%rax)
	movq	-8(%rbp), %rax
	movl	-28(%rbp), %edx
	movl	%edx, 4(%rax)
	movq	-8(%rbp), %rax
	movl	-12(%rbp), %edx
	movl	%edx, 8(%rax)
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	edge(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movl	-20(%rbp), %edx
	movl	%edx, (%rax)
	movq	-8(%rbp), %rax
	movl	$0, 4(%rax)
	movq	-8(%rbp), %rax
	movl	-16(%rbp), %edx
	movl	%edx, 8(%rax)
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	add_edge, .-add_edge
	.globl	bfs
	.type	bfs, @function
bfs:
.LFB8:
	.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	V(%rip), %eax
	sall	$2, %eax
	cltq
	movq	%rax, %rdx
	movl	$-1, %esi
	leaq	level(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	level(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	-20(%rbp), %eax
	movl	%eax, queue(%rip)
	movl	$1, qtop(%rip)
	jmp	.L9
.L13:
	movl	qtop(%rip), %eax
	subl	$1, %eax
	movl	%eax, qtop(%rip)
	movl	qtop(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	queue(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -12(%rbp)
	movl	$0, -16(%rbp)
	jmp	.L10
.L12:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	edge(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movl	4(%rax), %eax
	testl	%eax, %eax
	jle	.L11
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	level(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jns	.L11
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	level(%rip), %rax
	movl	(%rdx,%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	level(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	qtop(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, qtop(%rip)
	movq	-8(%rbp), %rdx
	movl	(%rdx), %edx
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	queue(%rip), %rax
	movl	%edx, (%rcx,%rax)
.L11:
	addl	$1, -16(%rbp)
.L10:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L12
.L9:
	movl	qtop(%rip), %eax
	testl	%eax, %eax
	jne	.L13
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	bfs, .-bfs
	.globl	dfs
	.type	dfs, @function
dfs:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movl	%edi, -36(%rbp)
	movl	%esi, -40(%rbp)
	movl	%edx, -44(%rbp)
	movl	-36(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jne	.L15
	movl	-44(%rbp), %eax
	jmp	.L16
.L15:
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	iter(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, -16(%rbp)
	jmp	.L17
.L19:
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	edge(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movq	-16(%rbp), %rax
	movl	(%rax), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movl	4(%rax), %eax
	testl	%eax, %eax
	jle	.L18
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	level(%rip), %rax
	movl	(%rdx,%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	level(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jge	.L18
	movq	-8(%rbp), %rax
	movl	4(%rax), %edx
	movl	-44(%rbp), %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	movl	-40(%rbp), %ecx
	movl	%ecx, %esi
	movl	%eax, %edi
	call	dfs
	movl	%eax, -20(%rbp)
	cmpl	$0, -20(%rbp)
	jle	.L18
	movq	-8(%rbp), %rax
	movl	4(%rax), %eax
	subl	-20(%rbp), %eax
	movl	%eax, %edx
	movq	-8(%rbp), %rax
	movl	%edx, 4(%rax)
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	edge(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movq	-8(%rbp), %rax
	movl	8(%rax), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	4(%rax), %ecx
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	edge(%rip), %rax
	movq	(%rdx,%rax), %rsi
	movq	-8(%rbp), %rax
	movl	8(%rax), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movl	-20(%rbp), %edx
	addl	%ecx, %edx
	movl	%edx, 4(%rax)
	movl	-20(%rbp), %eax
	jmp	.L16
.L18:
	movq	-16(%rbp), %rax
	movl	(%rax), %eax
	leal	1(%rax), %edx
	movq	-16(%rbp), %rax
	movl	%edx, (%rax)
.L17:
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	hi(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jl	.L19
	movl	$0, %eax
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	dfs, .-dfs
	.globl	maxFlow
	.type	maxFlow, @function
maxFlow:
.LFB10:
	.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	$0, -8(%rbp)
.L25:
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	bfs
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	level(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	js	.L28
	movl	V(%rip), %eax
	sall	$2, %eax
	cltq
	movq	%rax, %rdx
	movl	$0, %esi
	leaq	iter(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	jmp	.L23
.L24:
	movl	-4(%rbp), %eax
	addl	%eax, -8(%rbp)
.L23:
	movl	-24(%rbp), %ecx
	movl	-20(%rbp), %eax
	movl	$16843009, %edx
	movl	%ecx, %esi
	movl	%eax, %edi
	call	dfs
	movl	%eax, -4(%rbp)
	cmpl	$0, -4(%rbp)
	jg	.L24
	jmp	.L25
.L28:
	nop
	movl	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	maxFlow, .-maxFlow
	.globl	in
	.type	in, @function
in:
.LFB11:
	.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
	movl	$0, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
.L30:
	movl	-8(%rbp), %eax
	leal	0(,%rax,8), %edx
	movl	-8(%rbp), %eax
	addl	%eax, %eax
	addl	%eax, %edx
	movl	-4(%rbp), %eax
	andl	$15, %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
	cmpl	$47, -4(%rbp)
	jg	.L30
	movl	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	in, .-in
	.section	.rodata
.LC0:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.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	$0, %eax
	call	in
	movl	%eax, V(%rip)
	movl	$0, %eax
	call	in
	movl	%eax, -24(%rbp)
	movl	$0, -20(%rbp)
	movl	V(%rip), %eax
	subl	$1, %eax
	movl	%eax, -16(%rbp)
	jmp	.L33
.L34:
	movl	$0, %eax
	call	in
	movl	%eax, -12(%rbp)
	movl	$0, %eax
	call	in
	movl	%eax, -8(%rbp)
	movl	$0, %eax
	call	in
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %edx
	movl	-8(%rbp), %ecx
	movl	-12(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	add_edge
.L33:
	movl	-24(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -24(%rbp)
	testl	%eax, %eax
	jne	.L34
	movl	-16(%rbp), %edx
	movl	-20(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	maxFlow
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.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	dfs.part.0, @function
dfs.part.0:
.LFB59:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	hi(%rip), %rcx
	movl	%edx, %r15d
	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
	leaq	iter(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movslq	%edi, %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	(%r12,%rbx,4), %edx
	movl	(%rcx,%rbx,4), %r9d
	cmpl	%r9d, %edx
	jge	.L8
	leaq	edge(%rip), %r8
	leaq	level(%rip), %r13
	movq	(%r8,%rbx,8), %r14
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	addl	$1, %edx
	movl	%edx, (%r12,%rbx,4)
	cmpl	%r9d, %edx
	jge	.L8
.L7:
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%r14,%rax,4), %rbp
	movl	4(%rbp), %eax
	testl	%eax, %eax
	jle	.L4
	movslq	0(%rbp), %r10
	movl	0(%r13,%r10,4), %r11d
	movq	%r10, %rdi
	cmpl	%r11d, 0(%r13,%rbx,4)
	jge	.L4
	cmpl	%r15d, %eax
	cmovg	%r15d, %eax
	cmpl	%esi, %r10d
	je	.L5
	movl	%eax, %edx
	movl	%esi, 12(%rsp)
	call	dfs.part.0
	movl	12(%rsp), %esi
	leaq	hi(%rip), %rcx
	leaq	edge(%rip), %r8
.L5:
	testl	%eax, %eax
	jg	.L6
	movl	(%r12,%rbx,4), %edx
	movl	(%rcx,%rbx,4), %r9d
	addl	$1, %edx
	movl	%edx, (%r12,%rbx,4)
	cmpl	%r9d, %edx
	jl	.L7
.L8:
	addq	$24, %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
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	movslq	8(%rbp), %rdx
	movslq	0(%rbp), %rsi
	subl	%eax, 4(%rbp)
	leaq	(%rdx,%rdx,2), %rcx
	movq	(%r8,%rsi,8), %rdx
	addl	%eax, 4(%rdx,%rcx,4)
	addq	$24, %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
.LFE59:
	.size	dfs.part.0, .-dfs.part.0
	.p2align 4
	.globl	check_lim
	.type	check_lim, @function
check_lim:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	hi(%rip), %rsi
	leaq	lim(%rip), %rcx
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movslq	%edi, %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	movl	(%rsi,%rbx,4), %edx
	movl	(%rcx,%rbx,4), %eax
	cmpl	%eax, %edx
	jl	.L12
	testl	%eax, %eax
	je	.L16
	cmpl	%eax, %edx
	je	.L17
.L12:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	movl	$16, (%rcx,%rbx,4)
	movl	$192, %edi
	movl	$0, (%rsi,%rbx,4)
	call	malloc@PLT
	movq	%rax, %r8
	leaq	edge(%rip), %rax
	movq	%r8, (%rax,%rbx,8)
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	movl	$256, %eax
	leaq	edge(%rip), %rbp
	cmpl	%eax, %edx
	movq	0(%rbp,%rbx,8), %rdi
	cmovle	%edx, %eax
	addl	%edx, %eax
	movl	%eax, (%rcx,%rbx,4)
	cltq
	leaq	(%rax,%rax,2), %rsi
	salq	$2, %rsi
	call	realloc@PLT
	movq	%rax, 0(%rbp,%rbx,8)
	jmp	.L12
	.cfi_endproc
.LFE51:
	.size	check_lim, .-check_lim
	.p2align 4
	.globl	add_edge
	.type	add_edge, @function
add_edge:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movd	%edx, %xmm1
	leaq	edge(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	lim(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movslq	%edi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	hi(%rip), %rbp
	movq	%r12, %r13
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movslq	%esi, %rbx
	movd	%ebx, %xmm0
	punpckldq	%xmm1, %xmm0
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	0(%rbp,%r12,4), %edx
	movl	(%r14,%r12,4), %eax
	cmpl	%eax, %edx
	jl	.L19
	testl	%eax, %eax
	je	.L27
	cmpl	%eax, %edx
	je	.L28
.L19:
	movl	0(%rbp,%rbx,4), %edx
	movl	(%r14,%rbx,4), %eax
	cmpl	%eax, %edx
	jl	.L29
.L21:
	testl	%eax, %eax
	je	.L30
	movq	(%r15,%rbx,8), %rdi
	cmpl	%eax, %edx
	je	.L31
.L22:
	movl	0(%rbp,%r12,4), %edx
	leal	1(%rdx), %eax
	movl	%eax, 0(%rbp,%r12,4)
	movslq	0(%rbp,%rbx,4), %rax
	leal	1(%rax), %ecx
	movl	%ecx, 0(%rbp,%rbx,4)
	movslq	%edx, %rcx
	leaq	(%rcx,%rcx,2), %rsi
	movq	(%r15,%r12,8), %rcx
	leaq	(%rcx,%rsi,4), %rcx
	movl	%eax, 8(%rcx)
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %rax
	movq	%xmm0, (%rcx)
	movl	%r13d, (%rax)
	movl	$0, 4(%rax)
	movl	%edx, 8(%rax)
	addq	$24, %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
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	movl	$192, %edi
	movq	%xmm0, 8(%rsp)
	movl	$16, (%r14,%r12,4)
	movl	$0, 0(%rbp,%r12,4)
	call	malloc@PLT
	movl	0(%rbp,%rbx,4), %edx
	movq	8(%rsp), %xmm0
	movq	%rax, (%r15,%r12,8)
	movl	(%r14,%rbx,4), %eax
	cmpl	%eax, %edx
	jge	.L21
.L29:
	movq	(%r15,%rbx,8), %rdi
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L30:
	movl	$192, %edi
	movq	%xmm0, 8(%rsp)
	movl	$16, (%r14,%rbx,4)
	movl	$0, 0(%rbp,%rbx,4)
	call	malloc@PLT
	movq	8(%rsp), %xmm0
	movq	%rax, (%r15,%rbx,8)
	movq	%rax, %rdi
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L28:
	movl	$256, %eax
	movq	(%r15,%r12,8), %rdi
	movq	%xmm0, 8(%rsp)
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	addl	%edx, %eax
	movl	%eax, (%r14,%r12,4)
	cltq
	leaq	(%rax,%rax,2), %rsi
	salq	$2, %rsi
	call	realloc@PLT
	movq	8(%rsp), %xmm0
	movq	%rax, (%r15,%r12,8)
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L31:
	movl	$256, %eax
	movq	%xmm0, 8(%rsp)
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	addl	%edx, %eax
	movl	%eax, (%r14,%rbx,4)
	cltq
	leaq	(%rax,%rax,2), %rsi
	salq	$2, %rsi
	call	realloc@PLT
	movq	8(%rsp), %xmm0
	movq	%rax, (%r15,%rbx,8)
	movq	%rax, %rdi
	jmp	.L22
	.cfi_endproc
.LFE52:
	.size	add_edge, .-add_edge
	.p2align 4
	.globl	bfs
	.type	bfs, @function
bfs:
.LFB53:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	$440, %ecx
	movl	$-1, %esi
	leaq	edge(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movl	%edi, %ebx
	leaq	level(%rip), %rdi
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	movl	V(%rip), %eax
	leal	0(,%rax,4), %edx
	movslq	%edx, %rdx
	call	__memset_chk@PLT
	movslq	%ebx, %r10
	movl	%ebx, queue(%rip)
	xorl	%ecx, %ecx
	movl	$0, (%rax,%r10,4)
	movq	%rax, %rdi
	leaq	hi(%rip), %rbx
	leaq	queue(%rip), %r11
	.p2align 4,,10
	.p2align 3
.L37:
	movl	(%rbx,%r10,4), %eax
	testl	%eax, %eax
	jle	.L33
	movq	0(%rbp,%r10,8), %rdx
	subl	$1, %eax
	leaq	(%rax,%rax,2), %rsi
	leaq	12(%rdx), %rax
	leaq	(%rax,%rsi,4), %r8
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L40:
	addq	$12, %rax
.L35:
	movl	4(%rdx), %esi
	testl	%esi, %esi
	jle	.L34
	movslq	(%rdx), %rsi
	movl	(%rdi,%rsi,4), %r9d
	testl	%r9d, %r9d
	jns	.L34
	movl	(%rdi,%r10,4), %r9d
	addl	$1, %r9d
	movl	%r9d, (%rdi,%rsi,4)
	movl	(%rdx), %esi
	movslq	%ecx, %rdx
	addl	$1, %ecx
	movl	%esi, (%r11,%rdx,4)
.L34:
	movq	%rax, %rdx
	cmpq	%rax, %r8
	jne	.L40
.L33:
	testl	%ecx, %ecx
	je	.L36
	subl	$1, %ecx
	movslq	%ecx, %rax
	movslq	(%r11,%rax,4), %r10
	jmp	.L37
	.p2align 4,,10
	.p2align 3
.L36:
	movl	$0, qtop(%rip)
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE53:
	.size	bfs, .-bfs
	.p2align 4
	.globl	dfs
	.type	dfs, @function
dfs:
.LFB54:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	je	.L42
	jmp	dfs.part.0
	.p2align 4,,10
	.p2align 3
.L42:
	movl	%edx, %eax
	ret
	.cfi_endproc
.LFE54:
	.size	dfs, .-dfs
	.p2align 4
	.globl	maxFlow
	.type	maxFlow, @function
maxFlow:
.LFB55:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movslq	%esi, %rax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movl	%eax, %r15d
	leaq	iter(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	level(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	hi(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movl	%edi, 16(%rsp)
	movl	$0, 20(%rsp)
	movq	%rax, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L48:
	movslq	16(%rsp), %rbx
	movl	%ebx, %edi
	call	bfs
	movq	24(%rsp), %rax
	movl	(%r12,%rax,4), %eax
	testl	%eax, %eax
	js	.L43
	movl	V(%rip), %eax
	movq	%rbx, %r13
	movl	$440, %ecx
	xorl	%esi, %esi
	movq	%r14, %rdi
	movl	%r15d, %ebx
	leal	0(,%rax,4), %edx
	movslq	%edx, %rdx
	call	__memset_chk@PLT
	movl	(%r14,%r13,4), %eax
	movl	0(%rbp,%r13,4), %r9d
	cmpl	%ebx, 16(%rsp)
	je	.L54
	.p2align 4,,10
	.p2align 3
.L60:
	cmpl	%r9d, %eax
	jge	.L56
	leaq	edge(%rip), %rcx
	movq	(%rcx,%r13,8), %r8
	movl	%ebx, %ecx
	movq	%r8, %rbx
	jmp	.L52
	.p2align 4,,10
	.p2align 3
.L49:
	addl	$1, %eax
	movl	%eax, (%r14,%r13,4)
	cmpl	%r9d, %eax
	jge	.L59
.L52:
	movslq	%eax, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rbx,%rdx,4), %r15
	movl	4(%r15), %edx
	testl	%edx, %edx
	jle	.L49
	movslq	(%r15), %r10
	movl	(%r12,%r10,4), %esi
	movq	%r10, %rdi
	cmpl	%esi, (%r12,%r13,4)
	jge	.L49
	movl	$16843009, %r9d
	cmpl	%r9d, %edx
	cmovle	%edx, %r9d
	cmpl	%r10d, %ecx
	je	.L57
	movl	%r9d, %edx
	movl	%ecx, %esi
	movl	%ecx, 12(%rsp)
	call	dfs.part.0
	movl	12(%rsp), %ecx
	testl	%eax, %eax
	movl	%eax, %r9d
	jg	.L51
	movl	(%r14,%r13,4), %eax
	movl	0(%rbp,%r13,4), %r9d
	addl	$1, %eax
	movl	%eax, (%r14,%r13,4)
	cmpl	%r9d, %eax
	jl	.L52
	.p2align 4,,10
	.p2align 3
.L59:
	movl	%ecx, %r15d
	jmp	.L48
	.p2align 4,,10
	.p2align 3
.L57:
	movl	%ecx, %ebx
.L50:
	movslq	8(%r15), %rax
	subl	%r9d, %edx
	movl	%edx, 4(%r15)
	leaq	(%rax,%rax,2), %rdx
	leaq	edge(%rip), %rax
	movq	(%rax,%r10,8), %rax
	addl	%r9d, 4(%rax,%rdx,4)
.L46:
	addl	%r9d, 20(%rsp)
	movl	(%r14,%r13,4), %eax
	movl	0(%rbp,%r13,4), %r9d
	cmpl	%ebx, 16(%rsp)
	jne	.L60
.L54:
	movl	$16843009, %r9d
	jmp	.L46
	.p2align 4,,10
	.p2align 3
.L56:
	movl	%ebx, %r15d
	jmp	.L48
.L43:
	movl	20(%rsp), %eax
	addq	$40, %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
.L51:
	.cfi_restore_state
	movl	4(%r15), %edx
	movslq	(%r15), %r10
	movl	%ecx, %ebx
	jmp	.L50
	.cfi_endproc
.LFE55:
	.size	maxFlow, .-maxFlow
	.p2align 4
	.globl	in
	.type	in, @function
in:
.LFB56:
	.cfi_startproc
	endbr64
	movq	stdin(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L70
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L63:
	xorl	%r12d, %r12d
	jmp	.L67
	.p2align 4,,10
	.p2align 3
.L64:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L61
.L65:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L67:
	leal	(%r12,%r12,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r12d
	cmpq	%rcx, %rdx
	jb	.L64
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L61
	movq	stdin(%rip), %rdi
	jmp	.L65
	.p2align 4,,10
	.p2align 3
.L61:
	movl	%r12d, %eax
	popq	%r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L70:
	.cfi_restore_state
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L63
	.cfi_endproc
.LFE56:
	.size	in, .-in
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB57:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xorl	%eax, %eax
	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
	call	in
	movl	%eax, V(%rip)
	xorl	%eax, %eax
	call	in
	movl	V(%rip), %ebx
	subl	$1, %ebx
	movl	%ebx, 12(%rsp)
	testl	%eax, %eax
	je	.L94
	movl	%eax, %ebp
	leaq	hi(%rip), %rbx
	leaq	edge(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L93:
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L100
	leaq	1(%rax), %rsi
	movq	%rsi, 8(%rdi)
	movzbl	(%rax), %eax
.L74:
	xorl	%r14d, %r14d
	jmp	.L78
	.p2align 4,,10
	.p2align 3
.L75:
	leaq	1(%rsi), %r8
	movq	%r8, 8(%rdi)
	movzbl	(%rsi), %eax
	cmpl	$47, %eax
	jle	.L77
.L76:
	movq	%r8, %rsi
.L78:
	leal	(%r14,%r14,4), %edx
	andl	$15, %eax
	leal	(%rax,%rdx,2), %r14d
	cmpq	%rcx, %rsi
	jb	.L75
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %r8
	movq	16(%rdi), %rcx
	cmpl	$47, %eax
	jg	.L76
	.p2align 4,,10
	.p2align 3
.L77:
	cmpq	%r8, %rcx
	jbe	.L101
	leaq	1(%r8), %rsi
	movq	%rsi, 8(%rdi)
	movzbl	(%r8), %eax
.L80:
	xorl	%r15d, %r15d
	jmp	.L84
	.p2align 4,,10
	.p2align 3
.L81:
	leaq	1(%rsi), %r8
	movq	%r8, 8(%rdi)
	movzbl	(%rsi), %eax
	cmpl	$47, %eax
	jle	.L83
.L82:
	movq	%r8, %rsi
.L84:
	leal	(%r15,%r15,4), %r8d
	andl	$15, %eax
	leal	(%rax,%r8,2), %r15d
	cmpq	%rcx, %rsi
	jb	.L81
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %r8
	movq	16(%rdi), %rcx
	cmpl	$47, %eax
	jg	.L82
	.p2align 4,,10
	.p2align 3
.L83:
	cmpq	%r8, %rcx
	jbe	.L102
	leaq	1(%r8), %rsi
	movq	%rsi, 8(%rdi)
	movzbl	(%r8), %eax
.L86:
	xorl	%r13d, %r13d
	jmp	.L90
	.p2align 4,,10
	.p2align 3
.L87:
	leaq	1(%rsi), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rsi), %eax
	cmpl	$47, %eax
	jle	.L89
.L88:
	movq	8(%rdi), %rsi
	movq	16(%rdi), %rcx
.L90:
	leal	0(%r13,%r13,4), %r8d
	andl	$15, %eax
	leal	(%rax,%r8,2), %r13d
	cmpq	%rcx, %rsi
	jb	.L87
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L89
	movq	stdin(%rip), %rdi
	jmp	.L88
	.p2align 4,,10
	.p2align 3
.L89:
	movd	%r13d, %xmm1
	leaq	lim(%rip), %rax
	movslq	%r14d, %r13
	movd	%r15d, %xmm0
	movl	(%rbx,%r13,4), %esi
	movl	(%rax,%r13,4), %eax
	punpckldq	%xmm1, %xmm0
	movq	%xmm0, (%rsp)
	cmpl	%eax, %esi
	jl	.L91
	testl	%eax, %eax
	je	.L103
	cmpl	%eax, %esi
	je	.L104
.L91:
	movl	%r15d, %edi
	movslq	%r15d, %r15
	call	check_lim
	movl	(%rbx,%r13,4), %esi
	movq	(%r12,%r13,8), %rcx
	movq	(%rsp), %rdx
	leal	1(%rsi), %eax
	movl	%eax, (%rbx,%r13,4)
	movslq	(%rbx,%r15,4), %rax
	leal	1(%rax), %edi
	movl	%edi, (%rbx,%r15,4)
	movslq	%esi, %rdi
	leaq	(%rdi,%rdi,2), %rdi
	leaq	(%rcx,%rdi,4), %rcx
	movl	%eax, 8(%rcx)
	movq	%rdx, (%rcx)
	leaq	(%rax,%rax,2), %rcx
	movq	(%r12,%r15,8), %rax
	leaq	(%rax,%rcx,4), %rax
	movl	%r14d, (%rax)
	movl	$0, 4(%rax)
	movl	%esi, 8(%rax)
	subl	$1, %ebp
	jne	.L93
.L94:
	movl	12(%rsp), %esi
	xorl	%edi, %edi
	call	maxFlow
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$24, %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
	.p2align 4,,10
	.p2align 3
.L103:
	.cfi_restore_state
	leaq	lim(%rip), %rax
	movl	$0, (%rbx,%r13,4)
	movl	$192, %edi
	movl	$16, (%rax,%r13,4)
	call	malloc@PLT
	movq	%rax, (%r12,%r13,8)
	jmp	.L91
	.p2align 4,,10
	.p2align 3
.L100:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rsi
	movq	16(%rdi), %rcx
	jmp	.L74
	.p2align 4,,10
	.p2align 3
.L102:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rsi
	movq	16(%rdi), %rcx
	jmp	.L86
	.p2align 4,,10
	.p2align 3
.L101:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rsi
	movq	16(%rdi), %rcx
	jmp	.L80
.L104:
	movl	$256, %eax
	leaq	lim(%rip), %rdx
	movq	(%r12,%r13,8), %rdi
	cmpl	%eax, %esi
	cmovle	%esi, %eax
	addl	%esi, %eax
	movl	%eax, (%rdx,%r13,4)
	cltq
	leaq	(%rax,%rax,2), %rsi
	salq	$2, %rsi
	call	realloc@PLT
	movq	%rax, (%r12,%r13,8)
	jmp	.L91
	.cfi_endproc
.LFE57:
	.size	main, .-main
	.globl	qtop
	.bss
	.align 4
	.type	qtop, @object
	.size	qtop, 4
qtop:
	.zero	4
	.globl	queue
	.align 32
	.type	queue, @object
	.size	queue, 880
queue:
	.zero	880
	.globl	iter
	.align 32
	.type	iter, @object
	.size	iter, 440
iter:
	.zero	440
	.globl	level
	.align 32
	.type	level, @object
	.size	level, 440
level:
	.zero	440
	.globl	V
	.align 4
	.type	V, @object
	.size	V, 4
V:
	.zero	4
	.globl	lim
	.align 32
	.type	lim, @object
	.size	lim, 440
lim:
	.zero	440
	.globl	hi
	.align 32
	.type	hi, @object
	.size	hi, 440
hi:
	.zero	440
	.globl	edge
	.align 32
	.type	edge, @object
	.size	edge, 880
edge:
	.zero	880
	.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	dfs.part.0, @function
dfs.part.0:
.LFB59:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	hi(%rip), %rcx
	movl	%edx, %r15d
	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
	leaq	iter(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movslq	%edi, %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	(%r12,%rbx,4), %edx
	movl	(%rcx,%rbx,4), %r9d
	cmpl	%r9d, %edx
	jge	.L8
	leaq	edge(%rip), %r8
	leaq	level(%rip), %r13
	movq	(%r8,%rbx,8), %r14
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	addl	$1, %edx
	movl	%edx, (%r12,%rbx,4)
	cmpl	%r9d, %edx
	jge	.L8
.L7:
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%r14,%rax,4), %rbp
	movl	4(%rbp), %eax
	testl	%eax, %eax
	jle	.L4
	movslq	0(%rbp), %r10
	movl	0(%r13,%r10,4), %r11d
	movq	%r10, %rdi
	cmpl	%r11d, 0(%r13,%rbx,4)
	jge	.L4
	cmpl	%r15d, %eax
	cmovg	%r15d, %eax
	cmpl	%esi, %r10d
	je	.L5
	movl	%eax, %edx
	movl	%esi, 12(%rsp)
	call	dfs.part.0
	movl	12(%rsp), %esi
	leaq	hi(%rip), %rcx
	leaq	edge(%rip), %r8
.L5:
	testl	%eax, %eax
	jg	.L6
	movl	(%r12,%rbx,4), %edx
	movl	(%rcx,%rbx,4), %r9d
	addl	$1, %edx
	movl	%edx, (%r12,%rbx,4)
	cmpl	%r9d, %edx
	jl	.L7
.L8:
	addq	$24, %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
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	movslq	8(%rbp), %rdx
	movslq	0(%rbp), %rsi
	subl	%eax, 4(%rbp)
	leaq	(%rdx,%rdx,2), %rcx
	movq	(%r8,%rsi,8), %rdx
	addl	%eax, 4(%rdx,%rcx,4)
	addq	$24, %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
.LFE59:
	.size	dfs.part.0, .-dfs.part.0
	.p2align 4
	.globl	check_lim
	.type	check_lim, @function
check_lim:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	hi(%rip), %rsi
	leaq	lim(%rip), %rcx
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movslq	%edi, %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	movl	(%rsi,%rbx,4), %edx
	movl	(%rcx,%rbx,4), %eax
	cmpl	%eax, %edx
	jl	.L12
	testl	%eax, %eax
	je	.L16
	cmpl	%eax, %edx
	je	.L17
.L12:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	movl	$16, (%rcx,%rbx,4)
	movl	$192, %edi
	movl	$0, (%rsi,%rbx,4)
	call	malloc@PLT
	movq	%rax, %r8
	leaq	edge(%rip), %rax
	movq	%r8, (%rax,%rbx,8)
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	movl	$256, %eax
	leaq	edge(%rip), %rbp
	cmpl	%eax, %edx
	movq	0(%rbp,%rbx,8), %rdi
	cmovle	%edx, %eax
	addl	%edx, %eax
	movl	%eax, (%rcx,%rbx,4)
	cltq
	leaq	(%rax,%rax,2), %rsi
	salq	$2, %rsi
	call	realloc@PLT
	movq	%rax, 0(%rbp,%rbx,8)
	jmp	.L12
	.cfi_endproc
.LFE51:
	.size	check_lim, .-check_lim
	.p2align 4
	.globl	add_edge
	.type	add_edge, @function
add_edge:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movd	%edx, %xmm1
	leaq	edge(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	lim(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movslq	%edi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	hi(%rip), %rbp
	movq	%r12, %r13
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movslq	%esi, %rbx
	movd	%ebx, %xmm0
	punpckldq	%xmm1, %xmm0
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	0(%rbp,%r12,4), %edx
	movl	(%r14,%r12,4), %eax
	cmpl	%eax, %edx
	jl	.L19
	testl	%eax, %eax
	je	.L27
	cmpl	%eax, %edx
	je	.L28
.L19:
	movl	0(%rbp,%rbx,4), %edx
	movl	(%r14,%rbx,4), %eax
	cmpl	%eax, %edx
	jl	.L29
.L21:
	testl	%eax, %eax
	je	.L30
	movq	(%r15,%rbx,8), %rdi
	cmpl	%eax, %edx
	je	.L31
.L22:
	movl	0(%rbp,%r12,4), %edx
	leal	1(%rdx), %eax
	movl	%eax, 0(%rbp,%r12,4)
	movslq	0(%rbp,%rbx,4), %rax
	leal	1(%rax), %ecx
	movl	%ecx, 0(%rbp,%rbx,4)
	movslq	%edx, %rcx
	leaq	(%rcx,%rcx,2), %rsi
	movq	(%r15,%r12,8), %rcx
	leaq	(%rcx,%rsi,4), %rcx
	movl	%eax, 8(%rcx)
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %rax
	movq	%xmm0, (%rcx)
	movl	%r13d, (%rax)
	movl	$0, 4(%rax)
	movl	%edx, 8(%rax)
	addq	$24, %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
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	movl	$192, %edi
	movq	%xmm0, 8(%rsp)
	movl	$16, (%r14,%r12,4)
	movl	$0, 0(%rbp,%r12,4)
	call	malloc@PLT
	movl	0(%rbp,%rbx,4), %edx
	movq	8(%rsp), %xmm0
	movq	%rax, (%r15,%r12,8)
	movl	(%r14,%rbx,4), %eax
	cmpl	%eax, %edx
	jge	.L21
.L29:
	movq	(%r15,%rbx,8), %rdi
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L30:
	movl	$192, %edi
	movq	%xmm0, 8(%rsp)
	movl	$16, (%r14,%rbx,4)
	movl	$0, 0(%rbp,%rbx,4)
	call	malloc@PLT
	movq	8(%rsp), %xmm0
	movq	%rax, (%r15,%rbx,8)
	movq	%rax, %rdi
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L28:
	movl	$256, %eax
	movq	(%r15,%r12,8), %rdi
	movq	%xmm0, 8(%rsp)
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	addl	%edx, %eax
	movl	%eax, (%r14,%r12,4)
	cltq
	leaq	(%rax,%rax,2), %rsi
	salq	$2, %rsi
	call	realloc@PLT
	movq	8(%rsp), %xmm0
	movq	%rax, (%r15,%r12,8)
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L31:
	movl	$256, %eax
	movq	%xmm0, 8(%rsp)
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	addl	%edx, %eax
	movl	%eax, (%r14,%rbx,4)
	cltq
	leaq	(%rax,%rax,2), %rsi
	salq	$2, %rsi
	call	realloc@PLT
	movq	8(%rsp), %xmm0
	movq	%rax, (%r15,%rbx,8)
	movq	%rax, %rdi
	jmp	.L22
	.cfi_endproc
.LFE52:
	.size	add_edge, .-add_edge
	.p2align 4
	.globl	bfs
	.type	bfs, @function
bfs:
.LFB53:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	$440, %ecx
	movl	$-1, %esi
	leaq	edge(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movl	%edi, %ebx
	leaq	level(%rip), %rdi
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	movl	V(%rip), %eax
	leal	0(,%rax,4), %edx
	movslq	%edx, %rdx
	call	__memset_chk@PLT
	movslq	%ebx, %r10
	movl	%ebx, queue(%rip)
	xorl	%ecx, %ecx
	movl	$0, (%rax,%r10,4)
	movq	%rax, %rdi
	leaq	hi(%rip), %rbx
	leaq	queue(%rip), %r11
	.p2align 4,,10
	.p2align 3
.L37:
	movl	(%rbx,%r10,4), %eax
	testl	%eax, %eax
	jle	.L33
	movq	0(%rbp,%r10,8), %rdx
	subl	$1, %eax
	leaq	(%rax,%rax,2), %rsi
	leaq	12(%rdx), %rax
	leaq	(%rax,%rsi,4), %r8
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L40:
	addq	$12, %rax
.L35:
	movl	4(%rdx), %esi
	testl	%esi, %esi
	jle	.L34
	movslq	(%rdx), %rsi
	movl	(%rdi,%rsi,4), %r9d
	testl	%r9d, %r9d
	jns	.L34
	movl	(%rdi,%r10,4), %r9d
	addl	$1, %r9d
	movl	%r9d, (%rdi,%rsi,4)
	movl	(%rdx), %esi
	movslq	%ecx, %rdx
	addl	$1, %ecx
	movl	%esi, (%r11,%rdx,4)
.L34:
	movq	%rax, %rdx
	cmpq	%rax, %r8
	jne	.L40
.L33:
	testl	%ecx, %ecx
	je	.L36
	subl	$1, %ecx
	movslq	%ecx, %rax
	movslq	(%r11,%rax,4), %r10
	jmp	.L37
	.p2align 4,,10
	.p2align 3
.L36:
	movl	$0, qtop(%rip)
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE53:
	.size	bfs, .-bfs
	.p2align 4
	.globl	dfs
	.type	dfs, @function
dfs:
.LFB54:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	je	.L42
	jmp	dfs.part.0
	.p2align 4,,10
	.p2align 3
.L42:
	movl	%edx, %eax
	ret
	.cfi_endproc
.LFE54:
	.size	dfs, .-dfs
	.p2align 4
	.globl	maxFlow
	.type	maxFlow, @function
maxFlow:
.LFB55:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movslq	%esi, %rax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movl	%eax, %r15d
	leaq	iter(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	level(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	hi(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movl	%edi, 16(%rsp)
	movl	$0, 20(%rsp)
	movq	%rax, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L48:
	movslq	16(%rsp), %rbx
	movl	%ebx, %edi
	call	bfs
	movq	24(%rsp), %rax
	movl	(%r12,%rax,4), %eax
	testl	%eax, %eax
	js	.L43
	movl	V(%rip), %eax
	movq	%rbx, %r13
	movl	$440, %ecx
	xorl	%esi, %esi
	movq	%r14, %rdi
	movl	%r15d, %ebx
	leal	0(,%rax,4), %edx
	movslq	%edx, %rdx
	call	__memset_chk@PLT
	movl	(%r14,%r13,4), %eax
	movl	0(%rbp,%r13,4), %r9d
	cmpl	%ebx, 16(%rsp)
	je	.L54
	.p2align 4,,10
	.p2align 3
.L60:
	cmpl	%r9d, %eax
	jge	.L56
	leaq	edge(%rip), %rcx
	movq	(%rcx,%r13,8), %r8
	movl	%ebx, %ecx
	movq	%r8, %rbx
	jmp	.L52
	.p2align 4,,10
	.p2align 3
.L49:
	addl	$1, %eax
	movl	%eax, (%r14,%r13,4)
	cmpl	%r9d, %eax
	jge	.L59
.L52:
	movslq	%eax, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rbx,%rdx,4), %r15
	movl	4(%r15), %edx
	testl	%edx, %edx
	jle	.L49
	movslq	(%r15), %r10
	movl	(%r12,%r10,4), %esi
	movq	%r10, %rdi
	cmpl	%esi, (%r12,%r13,4)
	jge	.L49
	movl	$16843009, %r9d
	cmpl	%r9d, %edx
	cmovle	%edx, %r9d
	cmpl	%r10d, %ecx
	je	.L57
	movl	%r9d, %edx
	movl	%ecx, %esi
	movl	%ecx, 12(%rsp)
	call	dfs.part.0
	movl	12(%rsp), %ecx
	testl	%eax, %eax
	movl	%eax, %r9d
	jg	.L51
	movl	(%r14,%r13,4), %eax
	movl	0(%rbp,%r13,4), %r9d
	addl	$1, %eax
	movl	%eax, (%r14,%r13,4)
	cmpl	%r9d, %eax
	jl	.L52
	.p2align 4,,10
	.p2align 3
.L59:
	movl	%ecx, %r15d
	jmp	.L48
	.p2align 4,,10
	.p2align 3
.L57:
	movl	%ecx, %ebx
.L50:
	movslq	8(%r15), %rax
	subl	%r9d, %edx
	movl	%edx, 4(%r15)
	leaq	(%rax,%rax,2), %rdx
	leaq	edge(%rip), %rax
	movq	(%rax,%r10,8), %rax
	addl	%r9d, 4(%rax,%rdx,4)
.L46:
	addl	%r9d, 20(%rsp)
	movl	(%r14,%r13,4), %eax
	movl	0(%rbp,%r13,4), %r9d
	cmpl	%ebx, 16(%rsp)
	jne	.L60
.L54:
	movl	$16843009, %r9d
	jmp	.L46
	.p2align 4,,10
	.p2align 3
.L56:
	movl	%ebx, %r15d
	jmp	.L48
.L43:
	movl	20(%rsp), %eax
	addq	$40, %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
.L51:
	.cfi_restore_state
	movl	4(%r15), %edx
	movslq	(%r15), %r10
	movl	%ecx, %ebx
	jmp	.L50
	.cfi_endproc
.LFE55:
	.size	maxFlow, .-maxFlow
	.p2align 4
	.globl	in
	.type	in, @function
in:
.LFB56:
	.cfi_startproc
	endbr64
	movq	stdin(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L70
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L63:
	xorl	%r12d, %r12d
	jmp	.L67
	.p2align 4,,10
	.p2align 3
.L64:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L61
.L65:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L67:
	leal	(%r12,%r12,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r12d
	cmpq	%rcx, %rdx
	jb	.L64
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L61
	movq	stdin(%rip), %rdi
	jmp	.L65
	.p2align 4,,10
	.p2align 3
.L61:
	movl	%r12d, %eax
	popq	%r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L70:
	.cfi_restore_state
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L63
	.cfi_endproc
.LFE56:
	.size	in, .-in
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB57:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xorl	%eax, %eax
	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
	call	in
	movl	%eax, V(%rip)
	xorl	%eax, %eax
	call	in
	movl	V(%rip), %ebx
	subl	$1, %ebx
	movl	%ebx, 12(%rsp)
	testl	%eax, %eax
	je	.L94
	movl	%eax, %ebp
	leaq	hi(%rip), %rbx
	leaq	edge(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L93:
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L100
	leaq	1(%rax), %rsi
	movq	%rsi, 8(%rdi)
	movzbl	(%rax), %eax
.L74:
	xorl	%r14d, %r14d
	jmp	.L78
	.p2align 4,,10
	.p2align 3
.L75:
	leaq	1(%rsi), %r8
	movq	%r8, 8(%rdi)
	movzbl	(%rsi), %eax
	cmpl	$47, %eax
	jle	.L77
.L76:
	movq	%r8, %rsi
.L78:
	leal	(%r14,%r14,4), %edx
	andl	$15, %eax
	leal	(%rax,%rdx,2), %r14d
	cmpq	%rcx, %rsi
	jb	.L75
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %r8
	movq	16(%rdi), %rcx
	cmpl	$47, %eax
	jg	.L76
	.p2align 4,,10
	.p2align 3
.L77:
	cmpq	%r8, %rcx
	jbe	.L101
	leaq	1(%r8), %rsi
	movq	%rsi, 8(%rdi)
	movzbl	(%r8), %eax
.L80:
	xorl	%r15d, %r15d
	jmp	.L84
	.p2align 4,,10
	.p2align 3
.L81:
	leaq	1(%rsi), %r8
	movq	%r8, 8(%rdi)
	movzbl	(%rsi), %eax
	cmpl	$47, %eax
	jle	.L83
.L82:
	movq	%r8, %rsi
.L84:
	leal	(%r15,%r15,4), %r8d
	andl	$15, %eax
	leal	(%rax,%r8,2), %r15d
	cmpq	%rcx, %rsi
	jb	.L81
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %r8
	movq	16(%rdi), %rcx
	cmpl	$47, %eax
	jg	.L82
	.p2align 4,,10
	.p2align 3
.L83:
	cmpq	%r8, %rcx
	jbe	.L102
	leaq	1(%r8), %rsi
	movq	%rsi, 8(%rdi)
	movzbl	(%r8), %eax
.L86:
	xorl	%r13d, %r13d
	jmp	.L90
	.p2align 4,,10
	.p2align 3
.L87:
	leaq	1(%rsi), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rsi), %eax
	cmpl	$47, %eax
	jle	.L89
.L88:
	movq	8(%rdi), %rsi
	movq	16(%rdi), %rcx
.L90:
	leal	0(%r13,%r13,4), %r8d
	andl	$15, %eax
	leal	(%rax,%r8,2), %r13d
	cmpq	%rcx, %rsi
	jb	.L87
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L89
	movq	stdin(%rip), %rdi
	jmp	.L88
	.p2align 4,,10
	.p2align 3
.L89:
	movd	%r13d, %xmm1
	leaq	lim(%rip), %rax
	movslq	%r14d, %r13
	movd	%r15d, %xmm0
	movl	(%rbx,%r13,4), %esi
	movl	(%rax,%r13,4), %eax
	punpckldq	%xmm1, %xmm0
	movq	%xmm0, (%rsp)
	cmpl	%eax, %esi
	jl	.L91
	testl	%eax, %eax
	je	.L103
	cmpl	%eax, %esi
	je	.L104
.L91:
	movl	%r15d, %edi
	movslq	%r15d, %r15
	call	check_lim
	movl	(%rbx,%r13,4), %esi
	movq	(%r12,%r13,8), %rcx
	movq	(%rsp), %rdx
	leal	1(%rsi), %eax
	movl	%eax, (%rbx,%r13,4)
	movslq	(%rbx,%r15,4), %rax
	leal	1(%rax), %edi
	movl	%edi, (%rbx,%r15,4)
	movslq	%esi, %rdi
	leaq	(%rdi,%rdi,2), %rdi
	leaq	(%rcx,%rdi,4), %rcx
	movl	%eax, 8(%rcx)
	movq	%rdx, (%rcx)
	leaq	(%rax,%rax,2), %rcx
	movq	(%r12,%r15,8), %rax
	leaq	(%rax,%rcx,4), %rax
	movl	%r14d, (%rax)
	movl	$0, 4(%rax)
	movl	%esi, 8(%rax)
	subl	$1, %ebp
	jne	.L93
.L94:
	movl	12(%rsp), %esi
	xorl	%edi, %edi
	call	maxFlow
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$24, %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
	.p2align 4,,10
	.p2align 3
.L103:
	.cfi_restore_state
	leaq	lim(%rip), %rax
	movl	$0, (%rbx,%r13,4)
	movl	$192, %edi
	movl	$16, (%rax,%r13,4)
	call	malloc@PLT
	movq	%rax, (%r12,%r13,8)
	jmp	.L91
	.p2align 4,,10
	.p2align 3
.L100:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rsi
	movq	16(%rdi), %rcx
	jmp	.L74
	.p2align 4,,10
	.p2align 3
.L102:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rsi
	movq	16(%rdi), %rcx
	jmp	.L86
	.p2align 4,,10
	.p2align 3
.L101:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rsi
	movq	16(%rdi), %rcx
	jmp	.L80
.L104:
	movl	$256, %eax
	leaq	lim(%rip), %rdx
	movq	(%r12,%r13,8), %rdi
	cmpl	%eax, %esi
	cmovle	%esi, %eax
	addl	%esi, %eax
	movl	%eax, (%rdx,%r13,4)
	cltq
	leaq	(%rax,%rax,2), %rsi
	salq	$2, %rsi
	call	realloc@PLT
	movq	%rax, (%r12,%r13,8)
	jmp	.L91
	.cfi_endproc
.LFE57:
	.size	main, .-main
	.globl	qtop
	.bss
	.align 4
	.type	qtop, @object
	.size	qtop, 4
qtop:
	.zero	4
	.globl	queue
	.align 32
	.type	queue, @object
	.size	queue, 880
queue:
	.zero	880
	.globl	iter
	.align 32
	.type	iter, @object
	.size	iter, 440
iter:
	.zero	440
	.globl	level
	.align 32
	.type	level, @object
	.size	level, 440
level:
	.zero	440
	.globl	V
	.align 4
	.type	V, @object
	.size	V, 4
V:
	.zero	4
	.globl	lim
	.align 32
	.type	lim, @object
	.size	lim, 440
lim:
	.zero	440
	.globl	hi
	.align 32
	.type	hi, @object
	.size	hi, 440
hi:
	.zero	440
	.globl	edge
	.align 32
	.type	edge, @object
	.size	edge, 880
edge:
	.zero	880
	.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:

// AOJ GRL_6_A Maximum Flow
// 2018.4.26 bal4u

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

/*******************************************/
/* Dinic's Max Flow Algorithm 
/*******************************************/

#define INF 0x01010101
#define VMAX 110
typedef struct { int to; int cap; int rev; } EDGE;
EDGE *edge[VMAX]; int hi[VMAX], lim[VMAX];
int V;				// 頂点数
int level[VMAX], iter[VMAX];
int queue[2*VMAX], qtop;

void check_lim(int a)
{
	if (hi[a] < lim[a]) return;
	if (lim[a] == 0) {
		lim[a] = 16, hi[a] = 0;
		edge[a] = malloc(sizeof(EDGE) *lim[a]);
	} else if (hi[a] == lim[a]) {
		int k = lim[a];
		if (k > 256) k = 256;
		lim[a] += k;
		edge[a] = realloc(edge[a], sizeof(EDGE) *lim[a]);
	}
}

void add_edge(int from, int to, int cap)
{
	int f, t;
	EDGE *e;

	check_lim(from), check_lim(to);
	f = hi[from]++, t = hi[to]++;
	e = &edge[from][f], e->to = to, e->cap = cap, e->rev = t; 
	e = &edge[to][t], e->to = from, e->cap = 0, e->rev = f;
}

#if 0
void init()
{
	memset(lim, 0, sizeof(lim));
	memset(hi, 0, sizeof(hi));
}
#endif

void bfs(int s)
{
	int i, v;
	EDGE *e;
	
	memset(level, -1, V << 2);
	level[s] = 0;
	queue[0] = s, qtop =1;
	while (qtop) {
		v = queue[--qtop];
		for (i = 0; i < hi[v]; i++) {
			e = &edge[v][i];
			if (e->cap > 0 && level[e->to] < 0) {
				level[e->to] = level[v] + 1;
				queue[qtop++] = e->to;
			}
		}
	}
}
 
int dfs(int v, int t, int f)
{
	int *i, d;
	EDGE *e;
	
	if (v == t) return f;
	for (i = &iter[v]; *i < hi[v]; (*i)++) {
		e = &edge[v][*i];
		if (e->cap > 0 && level[v] < level[e->to]) {
			d = dfs(e->to, t, f <= e->cap? f: e->cap);
			if (d > 0) {
				e->cap -= d;
				edge[e->to][e->rev].cap += d;
				return d;
			}
		}
	}
	return 0;
}
 
int maxFlow(int s, int t)
{
	int f, flow = 0;
	while (1) {
		bfs(s);
		if (level[t] < 0) break;
		memset(iter, 0, V << 2);
		while ((f = dfs(s, t, INF)) > 0) flow += f;
	}
	return flow;
}

//#define getchar_unlocked()  getchar()
int in()
{
	int n = 0;
	int c = getchar_unlocked();
	do n = (n<<3)+(n<<1) + (c & 0xf), c = getchar_unlocked();
	while (c >= '0');
	return n;
}

int main()
{
	int E, u, v, c;
	int source, sink;

	V = in(), E = in();
	source = 0, sink = V-1;
	while (E--) {
		u = in(), v = in(), c = in();
		add_edge(u, v, c);
	}
	printf("%d\n", maxFlow(source, sink));
	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
// AOJ GRL_6_A Maximum Flow
// 2018.4.26 bal4u

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

/*******************************************/
/* Dinic's Max Flow Algorithm 
/*******************************************/

#define INF 0x01010101
#define VMAX 110
typedef struct { int to; int cap; int rev; } EDGE;
EDGE *edge[VMAX]; int hi[VMAX], lim[VMAX];
int V;				// 頂点数
int level[VMAX], iter[VMAX];
int queue[2*VMAX], qtop;

void check_lim(int a)
{
	if (hi[a] < lim[a]) return;
	if (lim[a] == 0) {
		lim[a] = 16, hi[a] = 0;
		edge[a] = malloc(sizeof(EDGE) *lim[a]);
	} else if (hi[a] == lim[a]) {
		int k = lim[a];
		if (k > 256) k = 256;
		lim[a] += k;
		edge[a] = realloc(edge[a], sizeof(EDGE) *lim[a]);
	}
}

void add_edge(int from, int to, int cap)
{
	int f, t;
	EDGE *e;

	check_lim(from), check_lim(to);
	f = hi[from]++, t = hi[to]++;
	e = &edge[from][f], e->to = to, e->cap = cap, e->rev = t; 
	e = &edge[to][t], e->to = from, e->cap = 0, e->rev = f;
}

#if 0
void init()
{
	memset(lim, 0, sizeof(lim));
	memset(hi, 0, sizeof(hi));
}
#endif

void bfs(int s)
{
	int i, v;
	EDGE *e;
	
	memset(level, -1, V << 2);
	level[s] = 0;
	queue[0] = s, qtop =1;
	while (qtop) {
		v = queue[--qtop];
		for (i = 0; i < hi[v]; i++) {
			e = &edge[v][i];
			if (e->cap > 0 && level[e->to] < 0) {
				level[e->to] = level[v] + 1;
				queue[qtop++] = e->to;
			}
		}
	}
}
 
int dfs(int v, int t, int f)
{
	int *i, d;
	EDGE *e;
	
	if (v == t) return f;
	for (i = &iter[v]; *i < hi[v]; (*i)++) {
		e = &edge[v][*i];
		if (e->cap > 0 && level[v] < level[e->to]) {
			d = dfs(e->to, t, f <= e->cap? f: e->cap);
			if (d > 0) {
				e->cap -= d;
				edge[e->to][e->rev].cap += d;
				return d;
			}
		}
	}
	return 0;
}
 
int maxFlow(int s, int t)
{
	int f, flow = 0;
	while (1) {
		bfs(s);
		if (level[t] < 0) break;
		memset(iter, 0, V << 2);
		while ((f = dfs(s, t, INF)) > 0) flow += f;
	}
	return flow;
}

//#define getchar_unlocked()  getchar()
int in()
{
	int n = 0;
	int c = getchar_unlocked();
	do n = (n<<3)+(n<<1) + (c & 0xf), c = getchar_unlocked();
	while (c >= '0');
	return n;
}

int main()
{
	int E, u, v, c;
	int source, sink;

	V = in(), E = in();
	source = 0, sink = V-1;
	while (E--) {
		u = in(), v = in(), c = in();
		add_edge(u, v, c);
	}
	printf("%d\n", maxFlow(source, sink));
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	edge
	.bss
	.align 32
	.type	edge, @object
	.size	edge, 880
edge:
	.zero	880
	.globl	hi
	.align 32
	.type	hi, @object
	.size	hi, 440
hi:
	.zero	440
	.globl	lim
	.align 32
	.type	lim, @object
	.size	lim, 440
lim:
	.zero	440
	.globl	V
	.align 4
	.type	V, @object
	.size	V, 4
V:
	.zero	4
	.globl	level
	.align 32
	.type	level, @object
	.size	level, 440
level:
	.zero	440
	.globl	iter
	.align 32
	.type	iter, @object
	.size	iter, 440
iter:
	.zero	440
	.globl	queue
	.align 32
	.type	queue, @object
	.size	queue, 880
queue:
	.zero	880
	.globl	qtop
	.align 4
	.type	qtop, @object
	.size	qtop, 4
qtop:
	.zero	4
	.text
	.globl	check_lim
	.type	check_lim, @function
check_lim:
.LFB6:
	.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	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	lim(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jl	.L6
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	lim(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L4
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	lim(%rip), %rax
	movl	$16, (%rdx,%rax)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	lim(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, %rcx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	edge(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	jmp	.L1
.L4:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	lim(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jne	.L1
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	lim(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	cmpl	$256, -4(%rbp)
	jle	.L5
	movl	$256, -4(%rbp)
.L5:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	lim(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-4(%rbp), %eax
	leal	(%rdx,%rax), %ecx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	lim(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	lim(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	edge(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	realloc@PLT
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	edge(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	jmp	.L1
.L6:
	nop
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	check_lim, .-check_lim
	.globl	add_edge
	.type	add_edge, @function
add_edge:
.LFB7:
	.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	-20(%rbp), %eax
	movl	%eax, %edi
	call	check_lim
	movl	-24(%rbp), %eax
	movl	%eax, %edi
	call	check_lim
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %edx
	movl	-20(%rbp), %ecx
	movslq	%ecx, %rcx
	leaq	0(,%rcx,4), %rsi
	leaq	hi(%rip), %rcx
	movl	%edx, (%rsi,%rcx)
	movl	%eax, -16(%rbp)
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %edx
	movl	-24(%rbp), %ecx
	movslq	%ecx, %rcx
	leaq	0(,%rcx,4), %rsi
	leaq	hi(%rip), %rcx
	movl	%edx, (%rsi,%rcx)
	movl	%eax, -12(%rbp)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	edge(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movl	-24(%rbp), %edx
	movl	%edx, (%rax)
	movq	-8(%rbp), %rax
	movl	-28(%rbp), %edx
	movl	%edx, 4(%rax)
	movq	-8(%rbp), %rax
	movl	-12(%rbp), %edx
	movl	%edx, 8(%rax)
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	edge(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movl	-20(%rbp), %edx
	movl	%edx, (%rax)
	movq	-8(%rbp), %rax
	movl	$0, 4(%rax)
	movq	-8(%rbp), %rax
	movl	-16(%rbp), %edx
	movl	%edx, 8(%rax)
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	add_edge, .-add_edge
	.globl	bfs
	.type	bfs, @function
bfs:
.LFB8:
	.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	V(%rip), %eax
	sall	$2, %eax
	cltq
	movq	%rax, %rdx
	movl	$-1, %esi
	leaq	level(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	level(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	-20(%rbp), %eax
	movl	%eax, queue(%rip)
	movl	$1, qtop(%rip)
	jmp	.L9
.L13:
	movl	qtop(%rip), %eax
	subl	$1, %eax
	movl	%eax, qtop(%rip)
	movl	qtop(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	queue(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -12(%rbp)
	movl	$0, -16(%rbp)
	jmp	.L10
.L12:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	edge(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movl	4(%rax), %eax
	testl	%eax, %eax
	jle	.L11
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	level(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jns	.L11
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	level(%rip), %rax
	movl	(%rdx,%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	level(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	qtop(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, qtop(%rip)
	movq	-8(%rbp), %rdx
	movl	(%rdx), %edx
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	queue(%rip), %rax
	movl	%edx, (%rcx,%rax)
.L11:
	addl	$1, -16(%rbp)
.L10:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L12
.L9:
	movl	qtop(%rip), %eax
	testl	%eax, %eax
	jne	.L13
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	bfs, .-bfs
	.globl	dfs
	.type	dfs, @function
dfs:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movl	%edi, -36(%rbp)
	movl	%esi, -40(%rbp)
	movl	%edx, -44(%rbp)
	movl	-36(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jne	.L15
	movl	-44(%rbp), %eax
	jmp	.L16
.L15:
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	iter(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, -16(%rbp)
	jmp	.L17
.L19:
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	edge(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movq	-16(%rbp), %rax
	movl	(%rax), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movl	4(%rax), %eax
	testl	%eax, %eax
	jle	.L18
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	level(%rip), %rax
	movl	(%rdx,%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	level(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jge	.L18
	movq	-8(%rbp), %rax
	movl	4(%rax), %edx
	movl	-44(%rbp), %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	movl	-40(%rbp), %ecx
	movl	%ecx, %esi
	movl	%eax, %edi
	call	dfs
	movl	%eax, -20(%rbp)
	cmpl	$0, -20(%rbp)
	jle	.L18
	movq	-8(%rbp), %rax
	movl	4(%rax), %eax
	subl	-20(%rbp), %eax
	movl	%eax, %edx
	movq	-8(%rbp), %rax
	movl	%edx, 4(%rax)
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	edge(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movq	-8(%rbp), %rax
	movl	8(%rax), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	4(%rax), %ecx
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	edge(%rip), %rax
	movq	(%rdx,%rax), %rsi
	movq	-8(%rbp), %rax
	movl	8(%rax), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movl	-20(%rbp), %edx
	addl	%ecx, %edx
	movl	%edx, 4(%rax)
	movl	-20(%rbp), %eax
	jmp	.L16
.L18:
	movq	-16(%rbp), %rax
	movl	(%rax), %eax
	leal	1(%rax), %edx
	movq	-16(%rbp), %rax
	movl	%edx, (%rax)
.L17:
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	hi(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jl	.L19
	movl	$0, %eax
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	dfs, .-dfs
	.globl	maxFlow
	.type	maxFlow, @function
maxFlow:
.LFB10:
	.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	$0, -8(%rbp)
.L25:
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	bfs
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	level(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	js	.L28
	movl	V(%rip), %eax
	sall	$2, %eax
	cltq
	movq	%rax, %rdx
	movl	$0, %esi
	leaq	iter(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	jmp	.L23
.L24:
	movl	-4(%rbp), %eax
	addl	%eax, -8(%rbp)
.L23:
	movl	-24(%rbp), %ecx
	movl	-20(%rbp), %eax
	movl	$16843009, %edx
	movl	%ecx, %esi
	movl	%eax, %edi
	call	dfs
	movl	%eax, -4(%rbp)
	cmpl	$0, -4(%rbp)
	jg	.L24
	jmp	.L25
.L28:
	nop
	movl	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	maxFlow, .-maxFlow
	.globl	in
	.type	in, @function
in:
.LFB11:
	.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
	movl	$0, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
.L30:
	movl	-8(%rbp), %eax
	leal	0(,%rax,8), %edx
	movl	-8(%rbp), %eax
	addl	%eax, %eax
	addl	%eax, %edx
	movl	-4(%rbp), %eax
	andl	$15, %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
	cmpl	$47, -4(%rbp)
	jg	.L30
	movl	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	in, .-in
	.section	.rodata
.LC0:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.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	$0, %eax
	call	in
	movl	%eax, V(%rip)
	movl	$0, %eax
	call	in
	movl	%eax, -24(%rbp)
	movl	$0, -20(%rbp)
	movl	V(%rip), %eax
	subl	$1, %eax
	movl	%eax, -16(%rbp)
	jmp	.L33
.L34:
	movl	$0, %eax
	call	in
	movl	%eax, -12(%rbp)
	movl	$0, %eax
	call	in
	movl	%eax, -8(%rbp)
	movl	$0, %eax
	call	in
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %edx
	movl	-8(%rbp), %ecx
	movl	-12(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	add_edge
.L33:
	movl	-24(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -24(%rbp)
	testl	%eax, %eax
	jne	.L34
	movl	-16(%rbp), %edx
	movl	-20(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	maxFlow
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.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	edge
	.bss
	.align 32
	.type	edge, @object
	.size	edge, 880
edge:
	.zero	880
	.globl	hi
	.align 32
	.type	hi, @object
	.size	hi, 440
hi:
	.zero	440
	.globl	lim
	.align 32
	.type	lim, @object
	.size	lim, 440
lim:
	.zero	440
	.globl	V
	.align 4
	.type	V, @object
	.size	V, 4
V:
	.zero	4
	.globl	level
	.align 32
	.type	level, @object
	.size	level, 440
level:
	.zero	440
	.globl	iter
	.align 32
	.type	iter, @object
	.size	iter, 440
iter:
	.zero	440
	.globl	queue
	.align 32
	.type	queue, @object
	.size	queue, 880
queue:
	.zero	880
	.globl	qtop
	.align 4
	.type	qtop, @object
	.size	qtop, 4
qtop:
	.zero	4
	.text
	.globl	check_lim
	.type	check_lim, @function
check_lim:
.LFB6:
	.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	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	lim(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jl	.L6
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	lim(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L4
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	lim(%rip), %rax
	movl	$16, (%rdx,%rax)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	lim(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, %rcx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	edge(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	jmp	.L1
.L4:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	lim(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jne	.L1
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	lim(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	cmpl	$256, -4(%rbp)
	jle	.L5
	movl	$256, -4(%rbp)
.L5:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	lim(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-4(%rbp), %eax
	leal	(%rdx,%rax), %ecx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	lim(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	lim(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	edge(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	realloc@PLT
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	edge(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	jmp	.L1
.L6:
	nop
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	check_lim, .-check_lim
	.globl	add_edge
	.type	add_edge, @function
add_edge:
.LFB7:
	.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	-20(%rbp), %eax
	movl	%eax, %edi
	call	check_lim
	movl	-24(%rbp), %eax
	movl	%eax, %edi
	call	check_lim
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %edx
	movl	-20(%rbp), %ecx
	movslq	%ecx, %rcx
	leaq	0(,%rcx,4), %rsi
	leaq	hi(%rip), %rcx
	movl	%edx, (%rsi,%rcx)
	movl	%eax, -16(%rbp)
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %edx
	movl	-24(%rbp), %ecx
	movslq	%ecx, %rcx
	leaq	0(,%rcx,4), %rsi
	leaq	hi(%rip), %rcx
	movl	%edx, (%rsi,%rcx)
	movl	%eax, -12(%rbp)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	edge(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movl	-24(%rbp), %edx
	movl	%edx, (%rax)
	movq	-8(%rbp), %rax
	movl	-28(%rbp), %edx
	movl	%edx, 4(%rax)
	movq	-8(%rbp), %rax
	movl	-12(%rbp), %edx
	movl	%edx, 8(%rax)
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	edge(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movl	-20(%rbp), %edx
	movl	%edx, (%rax)
	movq	-8(%rbp), %rax
	movl	$0, 4(%rax)
	movq	-8(%rbp), %rax
	movl	-16(%rbp), %edx
	movl	%edx, 8(%rax)
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	add_edge, .-add_edge
	.globl	bfs
	.type	bfs, @function
bfs:
.LFB8:
	.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	V(%rip), %eax
	sall	$2, %eax
	cltq
	movq	%rax, %rdx
	movl	$-1, %esi
	leaq	level(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	level(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	-20(%rbp), %eax
	movl	%eax, queue(%rip)
	movl	$1, qtop(%rip)
	jmp	.L9
.L13:
	movl	qtop(%rip), %eax
	subl	$1, %eax
	movl	%eax, qtop(%rip)
	movl	qtop(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	queue(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -12(%rbp)
	movl	$0, -16(%rbp)
	jmp	.L10
.L12:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	edge(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movl	4(%rax), %eax
	testl	%eax, %eax
	jle	.L11
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	level(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jns	.L11
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	level(%rip), %rax
	movl	(%rdx,%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	level(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	qtop(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, qtop(%rip)
	movq	-8(%rbp), %rdx
	movl	(%rdx), %edx
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	queue(%rip), %rax
	movl	%edx, (%rcx,%rax)
.L11:
	addl	$1, -16(%rbp)
.L10:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L12
.L9:
	movl	qtop(%rip), %eax
	testl	%eax, %eax
	jne	.L13
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	bfs, .-bfs
	.globl	dfs
	.type	dfs, @function
dfs:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movl	%edi, -36(%rbp)
	movl	%esi, -40(%rbp)
	movl	%edx, -44(%rbp)
	movl	-36(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jne	.L15
	movl	-44(%rbp), %eax
	jmp	.L16
.L15:
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	iter(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, -16(%rbp)
	jmp	.L17
.L19:
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	edge(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movq	-16(%rbp), %rax
	movl	(%rax), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movl	4(%rax), %eax
	testl	%eax, %eax
	jle	.L18
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	level(%rip), %rax
	movl	(%rdx,%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	level(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jge	.L18
	movq	-8(%rbp), %rax
	movl	4(%rax), %edx
	movl	-44(%rbp), %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	movl	-40(%rbp), %ecx
	movl	%ecx, %esi
	movl	%eax, %edi
	call	dfs
	movl	%eax, -20(%rbp)
	cmpl	$0, -20(%rbp)
	jle	.L18
	movq	-8(%rbp), %rax
	movl	4(%rax), %eax
	subl	-20(%rbp), %eax
	movl	%eax, %edx
	movq	-8(%rbp), %rax
	movl	%edx, 4(%rax)
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	edge(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movq	-8(%rbp), %rax
	movl	8(%rax), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	4(%rax), %ecx
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	edge(%rip), %rax
	movq	(%rdx,%rax), %rsi
	movq	-8(%rbp), %rax
	movl	8(%rax), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movl	-20(%rbp), %edx
	addl	%ecx, %edx
	movl	%edx, 4(%rax)
	movl	-20(%rbp), %eax
	jmp	.L16
.L18:
	movq	-16(%rbp), %rax
	movl	(%rax), %eax
	leal	1(%rax), %edx
	movq	-16(%rbp), %rax
	movl	%edx, (%rax)
.L17:
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	hi(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jl	.L19
	movl	$0, %eax
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	dfs, .-dfs
	.globl	maxFlow
	.type	maxFlow, @function
maxFlow:
.LFB10:
	.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	$0, -8(%rbp)
.L25:
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	bfs
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	level(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	js	.L28
	movl	V(%rip), %eax
	sall	$2, %eax
	cltq
	movq	%rax, %rdx
	movl	$0, %esi
	leaq	iter(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	jmp	.L23
.L24:
	movl	-4(%rbp), %eax
	addl	%eax, -8(%rbp)
.L23:
	movl	-24(%rbp), %ecx
	movl	-20(%rbp), %eax
	movl	$16843009, %edx
	movl	%ecx, %esi
	movl	%eax, %edi
	call	dfs
	movl	%eax, -4(%rbp)
	cmpl	$0, -4(%rbp)
	jg	.L24
	jmp	.L25
.L28:
	nop
	movl	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	maxFlow, .-maxFlow
	.globl	in
	.type	in, @function
in:
.LFB11:
	.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
	movl	$0, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
.L30:
	movl	-8(%rbp), %eax
	leal	0(,%rax,8), %edx
	movl	-8(%rbp), %eax
	addl	%eax, %eax
	addl	%eax, %edx
	movl	-4(%rbp), %eax
	andl	$15, %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
	cmpl	$47, -4(%rbp)
	jg	.L30
	movl	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	in, .-in
	.section	.rodata
.LC0:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.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	$0, %eax
	call	in
	movl	%eax, V(%rip)
	movl	$0, %eax
	call	in
	movl	%eax, -24(%rbp)
	movl	$0, -20(%rbp)
	movl	V(%rip), %eax
	subl	$1, %eax
	movl	%eax, -16(%rbp)
	jmp	.L33
.L34:
	movl	$0, %eax
	call	in
	movl	%eax, -12(%rbp)
	movl	$0, %eax
	call	in
	movl	%eax, -8(%rbp)
	movl	$0, %eax
	call	in
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %edx
	movl	-8(%rbp), %ecx
	movl	-12(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	add_edge
.L33:
	movl	-24(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -24(%rbp)
	testl	%eax, %eax
	jne	.L34
	movl	-16(%rbp), %edx
	movl	-20(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	maxFlow
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.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:
