	.file	"801057.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%c%c"
.LC1:
	.string	"YES"
.LC2:
	.string	"NO"
	.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
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
.L6:
	mov	esi, 1608
	mov	edi, 1
	call	calloc@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	CreateUDG
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	je	.L10
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 1600[rax]
	add	eax, 1
	cdqe
	mov	esi, 4
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -32[rbp], rax
	lea	rdx, -49[rbp]
	lea	rax, -50[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	call	getchar@PLT
	mov	DWORD PTR -48[rbp], 1
	movzx	eax, BYTE PTR -49[rbp]
	movsx	edx, al
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	LocateVex
	mov	ebx, eax
	movzx	eax, BYTE PTR -50[rbp]
	movsx	edx, al
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	LocateVex
	mov	esi, eax
	mov	rcx, QWORD PTR -32[rbp]
	lea	rdx, -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	edx, ebx
	mov	rdi, rax
	call	DFS
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], 1
	jne	.L4
	lea	rax, .LC1[rip]
	jmp	.L5
.L4:
	lea	rax, .LC2[rip]
.L5:
	mov	rdi, rax
	call	puts@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	DestroyALGraph
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L6
.L10:
	nop
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC3:
	.string	"%d %d"
.LC4:
	.string	"%c"
	.text
	.globl	CreateUDG
	.type	CreateUDG, @function
CreateUDG:
.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, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 1604[rax]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 1600
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 1600[rax]
	test	eax, eax
	jne	.L12
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 1604[rax]
	test	eax, eax
	jne	.L12
	mov	eax, 0
	jmp	.L18
.L12:
	call	getchar@PLT
	mov	DWORD PTR -40[rbp], 1
	jmp	.L14
.L15:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -40[rbp], 1
.L14:
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 1600[rax]
	cmp	DWORD PTR -40[rbp], eax
	jle	.L15
	call	getchar@PLT
	mov	DWORD PTR -36[rbp], 1
	jmp	.L16
.L17:
	lea	rdx, -41[rbp]
	lea	rax, -42[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	call	getchar@PLT
	movzx	eax, BYTE PTR -42[rbp]
	movsx	edx, al
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	LocateVex
	mov	DWORD PTR -32[rbp], eax
	movzx	eax, BYTE PTR -41[rbp]
	movsx	edx, al
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	LocateVex
	mov	DWORD PTR -28[rbp], eax
	mov	esi, 16
	mov	edi, 1
	call	calloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	DWORD PTR [rax], edx
	mov	rdx, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rdx, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rdx], rax
	mov	esi, 16
	mov	edi, 1
	call	calloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR -32[rbp]
	mov	DWORD PTR [rax], edx
	mov	rdx, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rdx, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR [rdx], rax
	add	DWORD PTR -36[rbp], 1
.L16:
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 1604[rax]
	cmp	DWORD PTR -36[rbp], eax
	jle	.L17
	mov	rax, QWORD PTR -56[rbp]
.L18:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	CreateUDG, .-CreateUDG
	.globl	DFS
	.type	DFS, @function
DFS:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	QWORD PTR -40[rbp], rcx
	mov	QWORD PTR -48[rbp], r8
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jne	.L21
	mov	eax, 1
	jmp	.L20
.L21:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1
	mov	rdx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L23
.L25:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L24
	mov	rdi, QWORD PTR -48[rbp]
	mov	rcx, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -32[rbp]
	mov	esi, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	DFS
	test	eax, eax
	je	.L24
	mov	eax, 1
	jmp	.L20
.L24:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
.L23:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L25
	cmp	QWORD PTR -40[rbp], 1
	jne	.L26
	mov	eax, 0
	jmp	.L20
.L26:
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	DFS, .-DFS
	.globl	LocateVex
	.type	LocateVex, @function
LocateVex:
.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	eax, esi
	mov	BYTE PTR -28[rbp], al
	mov	DWORD PTR -4[rbp], 1
	jmp	.L28
.L31:
	mov	rdx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -28[rbp], al
	jne	.L29
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L27
.L29:
	add	DWORD PTR -4[rbp], 1
.L28:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 1600[rax]
	cmp	DWORD PTR -4[rbp], eax
	jle	.L31
.L27:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	LocateVex, .-LocateVex
	.globl	DestroyALGraph
	.type	DestroyALGraph, @function
DestroyALGraph:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	cmp	QWORD PTR -24[rbp], 0
	je	.L38
	mov	DWORD PTR -4[rbp], 1
	jmp	.L35
.L37:
	mov	rdx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L36
	mov	rdx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	DestroyArcList
.L36:
	add	DWORD PTR -4[rbp], 1
.L35:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 1600[rax]
	cmp	DWORD PTR -4[rbp], eax
	jle	.L37
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L32
.L38:
	nop
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	DestroyALGraph, .-DestroyALGraph
	.globl	DestroyArcList
	.type	DestroyArcList, @function
DestroyArcList:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -8[rbp], 0
	jmp	.L40
.L41:
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
.L40:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L41
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	DestroyArcList, .-DestroyArcList
	.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	"801057.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%c%c\000"
	.align	2
.LC1:
	.ascii	"YES\000"
	.align	2
.LC2:
	.ascii	"NO\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
.L6:
	mov	r1, #808
	mov	r0, #1
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r0, [fp, #-28]
	bl	CreateUDG
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #800]
	add	r3, r3, #1
	mov	r1, #4
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-24]
	sub	r2, fp, #33
	sub	r3, fp, #34
	mov	r1, r3
	ldr	r0, .L11+4
	bl	__isoc99_scanf
	bl	getchar
	mov	r3, #1
	str	r3, [fp, #-32]
	ldrb	r3, [fp, #-34]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	LocateVex
	mov	r4, r0
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	LocateVex
	mov	r1, r0
	sub	r2, fp, #32
	ldr	r3, [fp, #-24]
	str	r3, [sp]
	mov	r3, r2
	mov	r2, r1
	mov	r1, r4
	ldr	r0, [fp, #-28]
	bl	DFS
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	bne	.L4
	ldr	r3, .L11+8
	b	.L5
.L4:
	ldr	r3, .L11+12
.L5:
	mov	r0, r3
	bl	puts
	ldr	r0, [fp, #-28]
	bl	DestroyALGraph
	ldr	r0, [fp, #-24]
	bl	free
	b	.L6
.L10:
	nop
	mov	r3, #0
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.section	.rodata
	.align	2
.LC4:
	.ascii	"%d %d\000"
	.align	2
.LC5:
	.ascii	"%c\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	CreateUDG
	.syntax unified
	.arm
	.fpu softvfp
	.type	CreateUDG, %function
CreateUDG:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-40]
	add	r1, r3, #800
	ldr	r3, [fp, #-40]
	add	r3, r3, #804
	mov	r2, r3
	ldr	r0, .L22+4
	bl	__isoc99_scanf
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #800]
	cmp	r3, #0
	bne	.L14
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #804]
	cmp	r3, #0
	bne	.L14
	mov	r3, #0
	b	.L20
.L14:
	bl	getchar
	mov	r3, #1
	str	r3, [fp, #-32]
	b	.L16
.L17:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L22+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L16:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #800]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	ble	.L17
	bl	getchar
	mov	r3, #1
	str	r3, [fp, #-28]
	b	.L18
.L19:
	sub	r2, fp, #33
	sub	r3, fp, #34
	mov	r1, r3
	ldr	r0, .L22+12
	bl	__isoc99_scanf
	bl	getchar
	ldrb	r3, [fp, #-34]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	LocateVex
	str	r0, [fp, #-24]
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	LocateVex
	str	r0, [fp, #-20]
	mov	r1, #8
	mov	r0, #1
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	str	r2, [r3, #4]
	mov	r1, #8
	mov	r0, #1
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	str	r2, [r3]
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	str	r2, [r3, #4]
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L18:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #804]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	ble	.L19
	ldr	r3, [fp, #-40]
.L20:
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC6
	.word	.LC4
	.word	.LC5
	.word	.LC0
	.size	CreateUDG, .-CreateUDG
	.align	2
	.global	DFS
	.syntax unified
	.arm
	.fpu softvfp
	.type	DFS, %function
DFS:
	@ 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]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bne	.L25
	mov	r3, #1
	b	.L24
.L25:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #4]
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
	b	.L27
.L29:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-28]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #4]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L28
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	DFS
	mov	r3, r0
	cmp	r3, #0
	beq	.L28
	mov	r3, #1
	b	.L24
.L28:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, [fp, #-28]
	str	r2, [r3]
.L27:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L29
	ldr	r3, [fp, #-28]
	cmp	r3, #1
	bne	.L30
	mov	r3, #0
	b	.L24
.L30:
.L24:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	DFS, .-DFS
	.align	2
	.global	LocateVex
	.syntax unified
	.arm
	.fpu softvfp
	.type	LocateVex, %function
LocateVex:
	@ 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]
	mov	r3, r1
	strb	r3, [fp, #-17]
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L32
.L35:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	ldrb	r3, [r3, r2, lsl #3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-17]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L33
	ldr	r3, [fp, #-8]
	b	.L31
.L33:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L32:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #800]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	ble	.L35
.L31:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	LocateVex, .-LocateVex
	.align	2
	.global	DestroyALGraph
	.syntax unified
	.arm
	.fpu softvfp
	.type	DestroyALGraph, %function
DestroyALGraph:
	@ 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
	beq	.L42
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L39
.L41:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L40
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	DestroyArcList
.L40:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L39:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #800]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	ble	.L41
	ldr	r0, [fp, #-16]
	bl	free
	b	.L36
.L42:
	nop
.L36:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	DestroyALGraph, .-DestroyALGraph
	.align	2
	.global	DestroyArcList
	.syntax unified
	.arm
	.fpu softvfp
	.type	DestroyArcList, %function
DestroyArcList:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L44
.L45:
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	free
.L44:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L45
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	DestroyArcList, .-DestroyArcList
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
