	.file	"795567.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"\nPrinting Graph 1"
.LC2:
	.string	"\ncopy_graph_list"
.LC3:
	.string	"\nPrinting new Graph 2"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 1264
	mov	DWORD PTR -1252[rbp], edi
	mov	QWORD PTR -1264[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -1264[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1240[rbp], rax
	mov	QWORD PTR -1248[rbp], 0
	lea	rax, -1232[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	initialize_graph
	mov	rdx, QWORD PTR -1240[rbp]
	lea	rax, -1232[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	read_graph
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rax, -1232[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	print_graph
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdx, -1248[rbp]
	lea	rax, -1232[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	copy_graph_list
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rax, -1248[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	print_graph
	mov	rax, QWORD PTR -1248[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	free_graph
	mov	rax, QWORD PTR -1240[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC4:
	.string	"no memory"
	.text
	.globl	copy_graph_list
	.type	copy_graph_list, @function
copy_graph_list:
.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	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	edi, 1224
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L5
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, -1
	call	exit@PLT
.L5:
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	initialize_graph
	mov	rdx, QWORD PTR -40[rbp]
	lea	rax, -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	read_graph
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	copy_graph_list, .-copy_graph_list
	.section	.rodata
.LC5:
	.string	"Node %d: "
.LC6:
	.string	" %d(w=%d),"
	.text
	.globl	print_graph
	.type	print_graph, @function
print_graph:
.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
	cmp	QWORD PTR -24[rbp], 0
	jne	.L7
	mov	eax, 0
	jmp	.L6
.L7:
	mov	DWORD PTR -12[rbp], 1
	jmp	.L9
.L12:
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L10
.L11:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
.L10:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L11
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -12[rbp], 1
.L9:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 1212[rax]
	cmp	DWORD PTR -12[rbp], eax
	jle	.L12
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	print_graph, .-print_graph
	.globl	initialize_graph
	.type	initialize_graph, @function
initialize_graph:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 1212[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 1216[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	DWORD PTR 1220[rax], edx
	mov	DWORD PTR -4[rbp], 1
	jmp	.L14
.L15:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	mov	QWORD PTR [rax+rdx*8], 0
	add	DWORD PTR -4[rbp], 1
.L14:
	cmp	DWORD PTR -4[rbp], 100
	jle	.L15
	mov	DWORD PTR -4[rbp], 1
	jmp	.L16
.L17:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	add	rdx, 200
	mov	DWORD PTR 8[rax+rdx*4], 0
	add	DWORD PTR -4[rbp], 1
.L16:
	cmp	DWORD PTR -4[rbp], 100
	jle	.L17
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	initialize_graph, .-initialize_graph
	.section	.rodata
.LC7:
	.string	"%d %d"
.LC8:
	.string	"%d %d %d"
	.text
	.globl	read_graph
	.type	read_graph, @function
read_graph:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, 1212[rax]
	lea	rdx, -28[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rcx, rdx
	mov	rdx, rsi
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	DWORD PTR -12[rbp], 1
	jmp	.L19
.L20:
	lea	rsi, -16[rbp]
	lea	rcx, -20[rbp]
	lea	rdx, -24[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	r8, rsi
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	ecx, DWORD PTR -16[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	esi, DWORD PTR -24[rbp]
	mov	edi, DWORD PTR -44[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	r8d, edi
	mov	rdi, rax
	mov	eax, 0
	call	insert_edge
	add	DWORD PTR -12[rbp], 1
.L19:
	mov	eax, DWORD PTR -28[rbp]
	cmp	DWORD PTR -12[rbp], eax
	jle	.L20
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	rewind@PLT
	nop
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	read_graph, .-read_graph
	.globl	insert_edge
	.type	insert_edge, @function
insert_edge:
.LFB11:
	.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	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -36[rbp], ecx
	mov	DWORD PTR -40[rbp], r8d
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -36[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -32[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -28[rbp]
	movsx	rdx, edx
	mov	rdx, QWORD PTR [rax+rdx*8]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -28[rbp]
	movsx	rdx, edx
	mov	rcx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax+rdx*8], rcx
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -28[rbp]
	movsx	rdx, edx
	add	rdx, 200
	mov	eax, DWORD PTR 8[rax+rdx*4]
	lea	ecx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -28[rbp]
	movsx	rdx, edx
	add	rdx, 200
	mov	DWORD PTR 8[rax+rdx*4], ecx
	cmp	DWORD PTR -40[rbp], 0
	jne	.L23
	mov	ecx, DWORD PTR -36[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	esi, DWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r8d, 1
	mov	rdi, rax
	call	insert_edge
	jmp	.L24
.L23:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 1216[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 1216[rax], edx
.L24:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	insert_edge, .-insert_edge
	.globl	free_graph
	.type	free_graph, @function
free_graph:
.LFB12:
	.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	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -20[rbp], 1
	jmp	.L26
.L29:
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L27
.L28:
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
.L27:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L28
	add	DWORD PTR -20[rbp], 1
.L26:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 1212[rax]
	cmp	DWORD PTR -20[rbp], eax
	jle	.L29
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	free_graph, .-free_graph
	.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	"795567.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"\012Printing Graph 1\000"
	.align	2
.LC2:
	.ascii	"\012copy_graph_list\000"
	.align	2
.LC3:
	.ascii	"\012Printing new Graph 2\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 840
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #840
	str	r0, [fp, #-840]
	str	r1, [fp, #-844]
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-844]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L4+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-832]
	mov	r3, #0
	str	r3, [fp, #-836]
	sub	r3, fp, #828
	mov	r1, #0
	mov	r0, r3
	bl	initialize_graph
	sub	r3, fp, #828
	ldr	r2, [fp, #-832]
	mov	r1, #0
	mov	r0, r3
	bl	read_graph
	ldr	r0, .L4+8
	bl	puts
	sub	r3, fp, #828
	mov	r0, r3
	bl	print_graph
	ldr	r0, .L4+12
	bl	puts
	sub	r2, fp, #836
	sub	r3, fp, #828
	mov	r1, r2
	mov	r0, r3
	bl	copy_graph_list
	ldr	r0, .L4+16
	bl	puts
	sub	r3, fp, #836
	mov	r0, r3
	bl	print_graph
	ldr	r3, [fp, #-836]
	mov	r0, r3
	bl	free_graph
	ldr	r0, [fp, #-832]
	bl	fclose
	mov	r3, #0
	ldr	r2, .L4
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.section	.rodata
	.align	2
.LC5:
	.ascii	"no memory\000"
	.text
	.align	2
	.global	copy_graph_list
	.syntax unified
	.arm
	.fpu softvfp
	.type	copy_graph_list, %function
copy_graph_list:
	@ 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]
	mov	r0, #820
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L7
	ldr	r0, .L8
	bl	printf
	mvn	r0, #0
	bl	exit
.L7:
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	initialize_graph
	sub	r3, fp, #20
	ldr	r2, [fp, #-24]
	mov	r1, #0
	mov	r0, r3
	bl	read_graph
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC5
	.size	copy_graph_list, .-copy_graph_list
	.section	.rodata
	.align	2
.LC6:
	.ascii	"Node %d: \000"
	.align	2
.LC7:
	.ascii	" %d(w=%d),\000"
	.text
	.align	2
	.global	print_graph
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_graph, %function
print_graph:
	@ 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]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L11
	mov	r3, #0
	b	.L10
.L11:
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L13
.L16:
	ldr	r1, [fp, #-8]
	ldr	r0, .L17
	bl	printf
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [fp, #-12]
	b	.L14
.L15:
	ldr	r3, [fp, #-12]
	ldr	r1, [r3]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r0, .L17+4
	bl	printf
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-12]
.L14:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L15
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L13:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #808]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	ble	.L16
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC6
	.word	.LC7
	.size	print_graph, .-print_graph
	.align	2
	.global	initialize_graph
	.syntax unified
	.arm
	.fpu softvfp
	.type	initialize_graph, %function
initialize_graph:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #808]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #812]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #816]
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L20
.L21:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L20:
	ldr	r3, [fp, #-8]
	cmp	r3, #100
	ble	.L21
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L22
.L23:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r3, #100
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L22:
	ldr	r3, [fp, #-8]
	cmp	r3, #100
	ble	.L23
	nop
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	initialize_graph, .-initialize_graph
	.section	.rodata
	.align	2
.LC8:
	.ascii	"%d %d\000"
	.align	2
.LC9:
	.ascii	"%d %d %d\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	read_graph
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_graph, %function
read_graph:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-32]
	add	r2, r3, #808
	sub	r3, fp, #28
	ldr	r1, .L28+4
	ldr	r0, [fp, #-40]
	bl	__isoc99_fscanf
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L25
.L26:
	sub	r1, fp, #20
	sub	r2, fp, #24
	sub	r3, fp, #16
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L28+8
	ldr	r0, [fp, #-40]
	bl	__isoc99_fscanf
	ldr	r1, [fp, #-24]
	ldr	r2, [fp, #-20]
	ldr	r0, [fp, #-16]
	ldr	r3, [fp, #-36]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, [fp, #-32]
	bl	insert_edge
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L25:
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L26
	ldr	r0, [fp, #-40]
	bl	rewind
	nop
	ldr	r2, .L28
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L27
	bl	__stack_chk_fail
.L27:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC10
	.word	.LC8
	.word	.LC9
	.size	read_graph, .-read_graph
	.align	2
	.global	insert_edge
	.syntax unified
	.arm
	.fpu softvfp
	.type	insert_edge, %function
insert_edge:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-28]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-8]
	str	r1, [r3, r2, lsl #2]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r3, #100
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	add	r2, r3, #1
	ldr	r1, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r3, #100
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r2, [r3, #4]
	ldr	r3, [fp, #4]
	cmp	r3, #0
	bne	.L31
	mov	r3, #1
	str	r3, [sp]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-16]
	bl	insert_edge
	b	.L32
.L31:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #812]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3, #812]
.L32:
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	insert_edge, .-insert_edge
	.align	2
	.global	free_graph
	.syntax unified
	.arm
	.fpu softvfp
	.type	free_graph, %function
free_graph:
	@ 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, #-24]
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L34
.L37:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-12]
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [fp, #-16]
	b	.L35
.L36:
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	free
.L35:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L36
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L34:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #808]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L37
	ldr	r0, [fp, #-24]
	bl	free
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	free_graph, .-free_graph
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
