	.file	"566065.c"
	.intel_syntax noprefix
	.text
	.globl	min
	.type	min, @function
min:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jge	.L2
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L3
.L2:
	mov	eax, DWORD PTR -8[rbp]
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	min, .-min
	.globl	AddEdge
	.type	AddEdge, @function
AddEdge:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -28[rbp], edx
	mov	QWORD PTR -40[rbp], rcx
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L5
.L6:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -16[rbp], rax
.L5:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L6
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -24[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], rdx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	AddEdge, .-AddEdge
	.section	.rodata
.LC0:
	.string	"%d : "
.LC1:
	.string	"%d(%d) "
	.text
	.globl	printAll
	.type	printAll, @function
printAll:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -12[rbp], 0
	jmp	.L8
.L11:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L9
.L10:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -8[rbp], rax
.L9:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L10
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -12[rbp], 1
.L8:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L11
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	printAll, .-printAll
	.section	.rodata
.LC2:
	.string	"%d "
	.text
	.globl	BFS
	.type	BFS, @function
BFS:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 120
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -120[rbp], rdi
	mov	DWORD PTR -124[rbp], esi
	mov	DWORD PTR -128[rbp], edx
	mov	QWORD PTR -136[rbp], rcx
	mov	DWORD PTR -140[rbp], r8d
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	mov	eax, DWORD PTR -140[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -88[rbp], rdx
	movsx	rdx, eax
	mov	QWORD PTR -160[rbp], rdx
	mov	QWORD PTR -152[rbp], 0
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L13:
	cmp	rsp, rdx
	je	.L14
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L13
.L14:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L15
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L15:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -80[rbp], rax
	mov	eax, DWORD PTR -140[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -72[rbp], rdx
	movsx	rdx, eax
	mov	r12, rdx
	mov	r13d, 0
	movsx	rdx, eax
	mov	r10, rdx
	mov	r11d, 0
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L16:
	cmp	rsp, rdx
	je	.L17
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L16
.L17:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L18
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L18:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -64[rbp], rax
	mov	DWORD PTR -104[rbp], 0
	jmp	.L19
.L20:
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -104[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], 0
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -104[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], 0
	add	DWORD PTR -104[rbp], 1
.L19:
	mov	eax, DWORD PTR -104[rbp]
	cmp	eax, DWORD PTR -140[rbp]
	jl	.L20
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -124[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -124[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], 1
	mov	DWORD PTR -108[rbp], 0
	mov	DWORD PTR -112[rbp], 0
	jmp	.L21
.L27:
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -108[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -108[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	DWORD PTR -100[rbp], eax
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -96[rbp], rax
	jmp	.L22
.L25:
	mov	rax, QWORD PTR -96[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -64[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	test	eax, eax
	jne	.L23
	mov	rax, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR 4[rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -136[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -100[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -96[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -64[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], 1
	add	DWORD PTR -112[rbp], 1
	mov	rax, QWORD PTR -96[rbp]
	mov	ecx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -112[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
	mov	rax, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	DWORD PTR -128[rbp], eax
	jne	.L23
	mov	eax, 1
	jmp	.L24
.L23:
	mov	rax, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -96[rbp], rax
.L22:
	cmp	QWORD PTR -96[rbp], 0
	jne	.L25
	add	DWORD PTR -108[rbp], 1
.L21:
	mov	eax, DWORD PTR -108[rbp]
	cmp	eax, DWORD PTR -112[rbp]
	jg	.L26
	mov	eax, DWORD PTR -112[rbp]
	cmp	eax, DWORD PTR -140[rbp]
	jl	.L27
.L26:
	mov	eax, 0
.L24:
	mov	rsp, rbx
	mov	rsi, QWORD PTR -56[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	BFS, .-BFS
	.section	.rodata
.LC3:
	.string	"Max Flow is: %d\n"
	.text
	.globl	Flow
	.type	Flow, @function
Flow:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 216
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -168[rbp], rdi
	mov	DWORD PTR -172[rbp], esi
	mov	DWORD PTR -176[rbp], edx
	mov	DWORD PTR -180[rbp], ecx
	mov	DWORD PTR -184[rbp], r8d
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	QWORD PTR -192[rbp], rax
	mov	edx, DWORD PTR -180[rbp]
	movsx	rax, edx
	sub	rax, 1
	mov	QWORD PTR -96[rbp], rax
	movsx	rax, edx
	mov	QWORD PTR -224[rbp], rax
	mov	QWORD PTR -216[rbp], 0
	movsx	rax, edx
	mov	QWORD PTR -240[rbp], rax
	mov	QWORD PTR -232[rbp], 0
	movsx	rax, edx
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L31:
	cmp	rsp, rdx
	je	.L32
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L31
.L32:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L33
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L33:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -88[rbp], rax
	mov	DWORD PTR -132[rbp], 0
	mov	ecx, DWORD PTR -180[rbp]
	mov	esi, DWORD PTR -180[rbp]
	movsx	rax, ecx
	sub	rax, 1
	mov	QWORD PTR -80[rbp], rax
	movsx	rax, ecx
	mov	QWORD PTR -256[rbp], rax
	mov	QWORD PTR -248[rbp], 0
	movsx	rax, ecx
	lea	rbx, 0[0+rax*4]
	movsx	rax, esi
	sub	rax, 1
	mov	QWORD PTR -72[rbp], rax
	movsx	rax, ecx
	mov	QWORD PTR -208[rbp], rax
	mov	QWORD PTR -200[rbp], 0
	movsx	rax, esi
	mov	r14, rax
	mov	r15d, 0
	mov	r8, QWORD PTR -208[rbp]
	mov	r9, QWORD PTR -200[rbp]
	mov	rdx, r9
	imul	rdx, r14
	mov	rax, r8
	imul	rax, r15
	lea	rdi, [rdx+rax]
	mov	rax, r8
	mul	r14
	add	rdi, rdx
	mov	rdx, rdi
	movsx	rax, ecx
	mov	r12, rax
	mov	r13d, 0
	movsx	rax, esi
	mov	r10, rax
	mov	r11d, 0
	mov	rdx, r13
	imul	rdx, r10
	mov	rax, r11
	imul	rax, r12
	lea	rdi, [rdx+rax]
	mov	rax, r12
	mul	r10
	add	rdi, rdx
	mov	rdx, rdi
	movsx	rdx, ecx
	movsx	rax, esi
	imul	rax, rdx
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L34:
	cmp	rsp, rdx
	je	.L35
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L34
.L35:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L36
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L36:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -64[rbp], rax
	mov	DWORD PTR -136[rbp], 0
	jmp	.L37
.L40:
	mov	DWORD PTR -140[rbp], 0
	jmp	.L38
.L39:
	mov	rcx, rbx
	shr	rcx, 2
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -140[rbp]
	movsx	rsi, edx
	mov	edx, DWORD PTR -136[rbp]
	movsx	rdx, edx
	imul	rdx, rcx
	add	rdx, rsi
	mov	DWORD PTR [rax+rdx*4], 0
	mov	rcx, rbx
	shr	rcx, 2
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -136[rbp]
	movsx	rsi, edx
	mov	edx, DWORD PTR -140[rbp]
	movsx	rdx, edx
	imul	rdx, rcx
	add	rdx, rsi
	mov	DWORD PTR [rax+rdx*4], 0
	add	DWORD PTR -140[rbp], 1
.L38:
	mov	eax, DWORD PTR -140[rbp]
	cmp	eax, DWORD PTR -180[rbp]
	jl	.L39
	add	DWORD PTR -136[rbp], 1
.L37:
	mov	eax, DWORD PTR -136[rbp]
	cmp	eax, DWORD PTR -180[rbp]
	jl	.L40
	mov	DWORD PTR -144[rbp], 0
	jmp	.L41
.L44:
	mov	eax, DWORD PTR -144[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -104[rbp], rax
	jmp	.L42
.L43:
	mov	rdi, rbx
	shr	rdi, 2
	mov	rax, QWORD PTR -104[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR -104[rbp]
	mov	esi, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -104[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -64[rbp]
	movsx	rsi, esi
	movsx	rcx, ecx
	imul	rcx, rdi
	add	rcx, rsi
	mov	DWORD PTR [rax+rcx*4], edx
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -104[rbp], rax
.L42:
	cmp	QWORD PTR -104[rbp], 0
	jne	.L43
	add	DWORD PTR -144[rbp], 1
.L41:
	mov	eax, DWORD PTR -144[rbp]
	cmp	eax, DWORD PTR -180[rbp]
	jl	.L44
	jmp	.L45
.L59:
	mov	DWORD PTR -148[rbp], 2147483647
	mov	eax, DWORD PTR -176[rbp]
	mov	DWORD PTR -152[rbp], eax
	jmp	.L46
.L47:
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, DWORD PTR -152[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	DWORD PTR -124[rbp], eax
	mov	rcx, rbx
	shr	rcx, 2
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -152[rbp]
	movsx	rsi, edx
	mov	edx, DWORD PTR -124[rbp]
	movsx	rdx, edx
	imul	rdx, rcx
	add	rdx, rsi
	mov	edx, DWORD PTR [rax+rdx*4]
	mov	eax, DWORD PTR -148[rbp]
	mov	esi, edx
	mov	edi, eax
	call	min
	mov	DWORD PTR -148[rbp], eax
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, DWORD PTR -152[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	DWORD PTR -152[rbp], eax
.L46:
	mov	eax, DWORD PTR -152[rbp]
	cmp	eax, DWORD PTR -172[rbp]
	jne	.L47
	mov	eax, DWORD PTR -176[rbp]
	mov	DWORD PTR -156[rbp], eax
	jmp	.L48
.L49:
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, DWORD PTR -156[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	DWORD PTR -128[rbp], eax
	mov	rcx, rbx
	shr	rcx, 2
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -156[rbp]
	movsx	rsi, edx
	mov	edx, DWORD PTR -128[rbp]
	movsx	rdx, edx
	imul	rdx, rcx
	add	rdx, rsi
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	rsi, rbx
	shr	rsi, 2
	sub	eax, DWORD PTR -148[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -64[rbp]
	mov	ecx, DWORD PTR -156[rbp]
	movsx	rdi, ecx
	mov	ecx, DWORD PTR -128[rbp]
	movsx	rcx, ecx
	imul	rcx, rsi
	add	rcx, rdi
	mov	DWORD PTR [rax+rcx*4], edx
	mov	rcx, rbx
	shr	rcx, 2
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -128[rbp]
	movsx	rsi, edx
	mov	edx, DWORD PTR -156[rbp]
	movsx	rdx, edx
	imul	rdx, rcx
	add	rdx, rsi
	mov	edx, DWORD PTR [rax+rdx*4]
	mov	rsi, rbx
	shr	rsi, 2
	mov	eax, DWORD PTR -148[rbp]
	lea	ecx, [rdx+rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -128[rbp]
	movsx	rdi, edx
	mov	edx, DWORD PTR -156[rbp]
	movsx	rdx, edx
	imul	rdx, rsi
	add	rdx, rdi
	mov	DWORD PTR [rax+rdx*4], ecx
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, DWORD PTR -156[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	DWORD PTR -156[rbp], eax
.L48:
	mov	eax, DWORD PTR -156[rbp]
	cmp	eax, DWORD PTR -172[rbp]
	jne	.L49
	mov	DWORD PTR -160[rbp], 0
	jmp	.L50
.L58:
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -112[rbp], rax
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -120[rbp], rax
	jmp	.L51
.L54:
	mov	rax, QWORD PTR -112[rbp]
	mov	QWORD PTR -120[rbp], rax
	mov	rax, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -112[rbp], rax
.L52:
	cmp	QWORD PTR -112[rbp], 0
	je	.L53
	mov	rsi, rbx
	shr	rsi, 2
	mov	rax, QWORD PTR -112[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -112[rbp]
	mov	ecx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -64[rbp]
	movsx	rcx, ecx
	movsx	rdx, edx
	imul	rdx, rsi
	add	rdx, rcx
	mov	eax, DWORD PTR [rax+rdx*4]
	test	eax, eax
	jne	.L54
.L53:
	cmp	QWORD PTR -112[rbp], 0
	je	.L61
	mov	rax, QWORD PTR -112[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -120[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -112[rbp], rax
.L51:
	cmp	QWORD PTR -112[rbp], 0
	jne	.L52
	jmp	.L56
.L61:
	nop
.L56:
	add	DWORD PTR -160[rbp], 1
.L50:
	mov	eax, DWORD PTR -160[rbp]
	cmp	eax, DWORD PTR -180[rbp]
	jl	.L58
	mov	eax, DWORD PTR -148[rbp]
	add	DWORD PTR -132[rbp], eax
.L45:
	mov	edi, DWORD PTR -180[rbp]
	mov	rcx, QWORD PTR -88[rbp]
	mov	edx, DWORD PTR -176[rbp]
	mov	esi, DWORD PTR -172[rbp]
	mov	rax, QWORD PTR -168[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	BFS
	test	eax, eax
	jne	.L59
	mov	eax, DWORD PTR -132[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rsp, QWORD PTR -192[rbp]
	nop
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L60
	call	__stack_chk_fail@PLT
.L60:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	Flow, .-Flow
	.section	.rodata
.LC4:
	.string	"%d%d"
.LC5:
	.string	"%d%d%d"
.LC6:
	.string	"\nEnter choice: "
.LC7:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	sub	rsp, 80
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	lea	rdx, -100[rbp]
	lea	rax, -104[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -104[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -64[rbp], rdx
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	movsx	rdx, eax
	mov	r12, rdx
	mov	r13d, 0
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L63:
	cmp	rsp, rdx
	je	.L64
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L63
.L64:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L65
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L65:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -56[rbp], rax
	mov	DWORD PTR -68[rbp], 0
	jmp	.L66
.L67:
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR -68[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR -68[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR 16[rax], 0
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR -68[rbp]
	movsx	rdx, edx
	mov	rcx, QWORD PTR -48[rbp]
	mov	QWORD PTR [rax+rdx*8], rcx
	add	DWORD PTR -68[rbp], 1
.L66:
	mov	eax, DWORD PTR -104[rbp]
	cmp	DWORD PTR -68[rbp], eax
	jl	.L67
	mov	DWORD PTR -72[rbp], 0
	jmp	.L68
.L69:
	lea	rcx, -88[rbp]
	lea	rdx, -92[rbp]
	lea	rax, -96[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edx, DWORD PTR -88[rbp]
	mov	esi, DWORD PTR -92[rbp]
	mov	eax, DWORD PTR -96[rbp]
	mov	rcx, QWORD PTR -56[rbp]
	mov	edi, eax
	call	AddEdge
	add	DWORD PTR -72[rbp], 1
.L68:
	mov	eax, DWORD PTR -100[rbp]
	cmp	DWORD PTR -72[rbp], eax
	jl	.L69
.L74:
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -84[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, 3
	je	.L70
	cmp	eax, 3
	jg	.L74
	cmp	eax, 1
	je	.L72
	cmp	eax, 2
	je	.L73
	jmp	.L71
.L72:
	mov	edx, DWORD PTR -104[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	printAll
	jmp	.L71
.L73:
	lea	rdx, -76[rbp]
	lea	rax, -80[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edi, DWORD PTR -100[rbp]
	mov	ecx, DWORD PTR -104[rbp]
	mov	edx, DWORD PTR -76[rbp]
	mov	esi, DWORD PTR -80[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	Flow
	jmp	.L71
.L70:
	mov	edi, 0
	call	exit@PLT
.L71:
	jmp	.L74
	.cfi_endproc
.LFE11:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"566065.c"
	.text
	.align	2
	.global	min
	.syntax unified
	.arm
	.fpu softvfp
	.type	min, %function
min:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bge	.L2
	ldr	r3, [fp, #-8]
	b	.L3
.L2:
	ldr	r3, [fp, #-12]
.L3:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	min, .-min
	.align	2
	.global	AddEdge
	.syntax unified
	.arm
	.fpu softvfp
	.type	AddEdge, %function
AddEdge:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L5
.L6:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-12]
.L5:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	bne	.L6
	mov	r0, #16
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #12]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	AddEdge, .-AddEdge
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d : \000"
	.align	2
.LC1:
	.ascii	"%d(%d) \000"
	.text
	.align	2
	.global	printAll
	.syntax unified
	.arm
	.fpu softvfp
	.type	printAll, %function
printAll:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L8
.L11:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L12
	bl	printf
	b	.L9
.L10:
	ldr	r3, [fp, #-8]
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r2, r3
	ldr	r0, .L12+4
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-8]
.L9:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L10
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L8:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L11
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	.LC1
	.size	printAll, .-printAll
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%d \000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	BFS
	.syntax unified
	.arm
	.fpu softvfp
	.type	BFS, %function
BFS:
	@ args = 4, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #60
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	str	r2, [fp, #-64]
	str	r3, [fp, #-68]
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	ldr	ip, [fp, #4]
	sub	r3, ip, #1
	str	r3, [fp, #-36]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-32]
	ldr	ip, [fp, #4]
	sub	r3, ip, #1
	str	r3, [fp, #-28]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L15
.L16:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-40]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-40]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L15:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	blt	.L16
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-60]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-60]
	mov	r1, #1
	str	r1, [r3, r2, lsl #2]
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L17
.L23:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-44]
	ldr	r3, [r3, r2, lsl #2]
	mov	r1, r3
	ldr	r0, .L26+4
	bl	printf
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-44]
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-52]
	b	.L18
.L21:
	ldr	r3, [fp, #-52]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	bne	.L19
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #4]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-52]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-24]
	mov	r1, #1
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-52]
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-48]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-64]
	cmp	r2, r3
	bne	.L19
	mov	r3, #1
	b	.L20
.L19:
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-52]
.L18:
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bne	.L21
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L17:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	bgt	.L22
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	blt	.L23
.L22:
	mov	r3, #0
.L20:
	mov	sp, r4
	ldr	r2, .L26
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC3
	.word	.LC2
	.size	BFS, .-BFS
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Max Flow is: %d\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	Flow
	.syntax unified
	.arm
	.fpu softvfp
	.type	Flow, %function
Flow:
	@ args = 4, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #108
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	str	r2, [fp, #-120]
	str	r3, [fp, #-124]
	ldr	r3, .L54
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r3, sp
	mov	r8, r3
	ldr	ip, [fp, #-124]
	sub	r3, ip, #1
	str	r3, [fp, #-60]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #8
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-64]
	ldr	ip, [fp, #-124]
	ldr	lr, [fp, #-124]
	sub	r3, ip, #1
	str	r3, [fp, #-52]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r4, r3, #2
	sub	r3, lr, #1
	str	r3, [fp, #-48]
	mov	r3, ip
	mov	r6, r3
	mov	r7, #0
	mov	r3, lr
	mov	r0, r3
	mov	r1, #0
	mul	r2, r0, r7
	mul	r3, r6, r1
	add	r5, r2, r3
	umull	r2, r3, r6, r0
	add	r1, r5, r3
	mov	r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #5
	orr	r1, r1, r2, lsr #27
	lsl	r0, r2, #5
	mov	r3, ip
	mov	r6, r3
	mov	r7, #0
	mov	r3, lr
	mov	r0, r3
	mov	r1, #0
	mul	r2, r0, r7
	mul	r3, r6, r1
	add	r5, r2, r3
	umull	r2, r3, r6, r0
	add	r1, r5, r3
	mov	r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #5
	orr	r1, r1, r2, lsr #27
	lsl	r0, r2, #5
	mov	r3, ip
	mov	r2, lr
	mul	r3, r2, r3
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #8
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L29
.L32:
	mov	r3, #0
	str	r3, [fp, #-72]
	b	.L30
.L31:
	lsr	r2, r4, #2
	ldr	r3, [fp, #-44]
	ldr	r1, [fp, #-68]
	mul	r1, r2, r1
	ldr	r2, [fp, #-72]
	add	r2, r1, r2
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	lsr	r2, r4, #2
	ldr	r3, [fp, #-44]
	ldr	r1, [fp, #-72]
	mul	r1, r2, r1
	ldr	r2, [fp, #-68]
	add	r2, r1, r2
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L30:
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-124]
	cmp	r2, r3
	blt	.L31
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L29:
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-124]
	cmp	r2, r3
	blt	.L32
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L33
.L36:
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-112]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-76]
	b	.L34
.L35:
	lsr	r0, r4, #2
	ldr	r3, [fp, #-76]
	ldr	ip, [r3]
	ldr	r3, [fp, #-76]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-76]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-44]
	mul	r0, ip, r0
	add	r2, r0, r2
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-76]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-76]
.L34:
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	bne	.L35
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L33:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-124]
	cmp	r2, r3
	blt	.L36
	b	.L37
.L51:
	mvn	r3, #-2147483648
	str	r3, [fp, #-84]
	ldr	r3, [fp, #-120]
	str	r3, [fp, #-88]
	b	.L38
.L39:
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-88]
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [fp, #-36]
	lsr	r2, r4, #2
	ldr	r3, [fp, #-44]
	ldr	r1, [fp, #-36]
	mul	r1, r2, r1
	ldr	r2, [fp, #-88]
	add	r2, r1, r2
	ldr	r3, [r3, r2, lsl #2]
	mov	r1, r3
	ldr	r0, [fp, #-84]
	bl	min
	str	r0, [fp, #-84]
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-88]
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [fp, #-88]
.L38:
	ldr	r2, [fp, #-88]
	ldr	r3, [fp, #-116]
	cmp	r2, r3
	bne	.L39
	ldr	r3, [fp, #-120]
	str	r3, [fp, #-92]
	b	.L40
.L41:
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-92]
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [fp, #-40]
	lsr	r2, r4, #2
	ldr	r3, [fp, #-44]
	ldr	r1, [fp, #-40]
	mul	r1, r2, r1
	ldr	r2, [fp, #-92]
	add	r2, r1, r2
	ldr	r1, [r3, r2, lsl #2]
	lsr	r2, r4, #2
	ldr	r3, [fp, #-84]
	sub	r1, r1, r3
	ldr	r3, [fp, #-44]
	ldr	r0, [fp, #-40]
	mul	r0, r2, r0
	ldr	r2, [fp, #-92]
	add	r2, r0, r2
	str	r1, [r3, r2, lsl #2]
	lsr	r2, r4, #2
	ldr	r3, [fp, #-44]
	ldr	r1, [fp, #-92]
	mul	r1, r2, r1
	ldr	r2, [fp, #-40]
	add	r2, r1, r2
	ldr	r1, [r3, r2, lsl #2]
	lsr	r2, r4, #2
	ldr	r3, [fp, #-84]
	add	r1, r1, r3
	ldr	r3, [fp, #-44]
	ldr	r0, [fp, #-92]
	mul	r0, r2, r0
	ldr	r2, [fp, #-40]
	add	r2, r0, r2
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-92]
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [fp, #-92]
.L40:
	ldr	r2, [fp, #-92]
	ldr	r3, [fp, #-116]
	cmp	r2, r3
	bne	.L41
	mov	r3, #0
	str	r3, [fp, #-104]
	b	.L42
.L50:
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-112]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-96]
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-112]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-100]
	b	.L43
.L46:
	ldr	r3, [fp, #-96]
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-96]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-96]
.L44:
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	beq	.L45
	lsr	r1, r4, #2
	ldr	r3, [fp, #-96]
	ldr	r0, [r3]
	ldr	r3, [fp, #-96]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-44]
	mul	r1, r0, r1
	add	r2, r1, r2
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	bne	.L46
.L45:
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	beq	.L53
	ldr	r3, [fp, #-96]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-100]
	str	r2, [r3, #12]
	ldr	r0, [fp, #-96]
	bl	free
	ldr	r3, [fp, #-100]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-96]
.L43:
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	bne	.L44
	b	.L48
.L53:
	nop
.L48:
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
.L42:
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-124]
	cmp	r2, r3
	blt	.L50
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-84]
	add	r3, r2, r3
	str	r3, [fp, #-64]
.L37:
	ldr	r3, [fp, #-124]
	str	r3, [sp]
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-120]
	ldr	r1, [fp, #-116]
	ldr	r0, [fp, #-112]
	bl	BFS
	mov	r3, r0
	cmp	r3, #0
	bne	.L51
	ldr	r1, [fp, #-64]
	ldr	r0, .L54+4
	bl	printf
	mov	sp, r8
	nop
	ldr	r3, .L54
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L52
	bl	__stack_chk_fail
.L52:
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L55:
	.align	2
.L54:
	.word	.LC5
	.word	.LC4
	.size	Flow, .-Flow
	.section	.rodata
	.align	2
.LC6:
	.ascii	"%d%d\000"
	.align	2
.LC7:
	.ascii	"%d%d%d\000"
	.align	2
.LC8:
	.ascii	"\012Enter choice: \000"
	.align	2
.LC9:
	.ascii	"%d\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	ldr	r3, .L67
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r2, fp, #56
	sub	r3, fp, #60
	mov	r1, r3
	ldr	r0, .L67+4
	bl	__isoc99_scanf
	ldr	ip, [fp, #-60]
	sub	r3, ip, #1
	str	r3, [fp, #-20]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #8
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L57
.L58:
	mov	r0, #16
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-12]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L57:
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L58
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L59
.L60:
	sub	r3, fp, #44
	sub	r2, fp, #48
	sub	r1, fp, #52
	ldr	r0, .L67+8
	bl	__isoc99_scanf
	ldr	r0, [fp, #-52]
	ldr	r1, [fp, #-48]
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-16]
	bl	AddEdge
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L59:
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	blt	.L60
.L65:
	ldr	r0, .L67+12
	bl	printf
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, .L67+16
	bl	__isoc99_scanf
	ldr	r3, [fp, #-40]
	cmp	r3, #3
	beq	.L61
	cmp	r3, #3
	bgt	.L65
	cmp	r3, #1
	beq	.L63
	cmp	r3, #2
	beq	.L64
	b	.L62
.L63:
	ldr	r3, [fp, #-60]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	printAll
	b	.L62
.L64:
	sub	r2, fp, #32
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L67+4
	bl	__isoc99_scanf
	ldr	r1, [fp, #-36]
	ldr	r2, [fp, #-32]
	ldr	r0, [fp, #-60]
	ldr	r3, [fp, #-56]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, [fp, #-16]
	bl	Flow
	b	.L62
.L61:
	mov	r0, #0
	bl	exit
.L62:
	b	.L65
.L68:
	.align	2
.L67:
	.word	.LC10
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
