Program: topo-sort

x86 assembly:
	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_createStackNode                ## -- Begin function createStackNode
	.p2align	4, 0x90
_createStackNode:                       ## @createStackNode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	movl	$16, %edi
	callq	_libmin_malloc
	movq	%rax, -16(%rbp)
	movl	-4(%rbp), %ecx
	movq	-16(%rbp), %rax
	movl	%ecx, (%rax)
	movq	-16(%rbp), %rax
	movq	$0, 8(%rax)
	movq	-16(%rbp), %rax
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.globl	_createListNode                 ## -- Begin function createListNode
	.p2align	4, 0x90
_createListNode:                        ## @createListNode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	movl	$16, %edi
	callq	_libmin_malloc
	movq	%rax, -16(%rbp)
	movl	-4(%rbp), %ecx
	movq	-16(%rbp), %rax
	movl	%ecx, (%rax)
	movq	-16(%rbp), %rax
	movq	$0, 8(%rax)
	movq	-16(%rbp), %rax
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.globl	_createGraph                    ## -- Begin function createGraph
	.p2align	4, 0x90
_createGraph:                           ## @createGraph
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$32, %rsp
	movl	%edi, -4(%rbp)
	movl	$16, %edi
	callq	_libmin_malloc
	movq	%rax, -16(%rbp)
	movl	-4(%rbp), %ecx
	movq	-16(%rbp), %rax
	movl	%ecx, (%rax)
	movslq	-4(%rbp), %rdi
	shlq	$4, %rdi
	callq	_libmin_malloc
	movq	%rax, %rcx
	movq	-16(%rbp), %rax
	movq	%rcx, 8(%rax)
	movl	$0, -20(%rbp)
LBB2_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	-20(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jge	LBB2_4
## %bb.2:                               ##   in Loop: Header=BB2_1 Depth=1
	movq	-16(%rbp), %rax
	movq	8(%rax), %rax
	movslq	-20(%rbp), %rcx
	shlq	$4, %rcx
	addq	%rcx, %rax
	movq	$0, 8(%rax)
## %bb.3:                               ##   in Loop: Header=BB2_1 Depth=1
	movl	-20(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -20(%rbp)
	jmp	LBB2_1
LBB2_4:
	movq	-16(%rbp), %rax
	addq	$32, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.globl	_addEdge                        ## -- Begin function addEdge
	.p2align	4, 0x90
_addEdge:                               ## @addEdge
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$32, %rsp
	movq	%rdi, -8(%rbp)
	movl	%esi, -12(%rbp)
	movl	%edx, -16(%rbp)
	movl	-16(%rbp), %edi
	callq	_createListNode
	movq	%rax, -24(%rbp)
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movslq	-12(%rbp), %rcx
	shlq	$4, %rcx
	addq	%rcx, %rax
	movq	8(%rax), %rcx
	movq	-24(%rbp), %rax
	movq	%rcx, 8(%rax)
	movq	-24(%rbp), %rcx
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movslq	-12(%rbp), %rdx
	shlq	$4, %rdx
	addq	%rdx, %rax
	movq	%rcx, 8(%rax)
	addq	$32, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.globl	_topologicalSortUtil            ## -- Begin function topologicalSortUtil
	.p2align	4, 0x90
_topologicalSortUtil:                   ## @topologicalSortUtil
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$64, %rsp
	movq	%rdi, -8(%rbp)
	movl	%esi, -12(%rbp)
	movq	%rdx, -24(%rbp)
	movq	%rcx, -32(%rbp)
	movq	-24(%rbp), %rax
	movslq	-12(%rbp), %rcx
	movl	$1, (%rax,%rcx,4)
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movslq	-12(%rbp), %rcx
	shlq	$4, %rcx
	addq	%rcx, %rax
	movq	8(%rax), %rax
	movq	%rax, -40(%rbp)
LBB4_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, -40(%rbp)
	je	LBB4_5
## %bb.2:                               ##   in Loop: Header=BB4_1 Depth=1
	movq	-40(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	-24(%rbp), %rax
	movslq	-44(%rbp), %rcx
	cmpl	$0, (%rax,%rcx,4)
	jne	LBB4_4
## %bb.3:                               ##   in Loop: Header=BB4_1 Depth=1
	movq	-8(%rbp), %rdi
	movl	-44(%rbp), %esi
	movq	-24(%rbp), %rdx
	movq	-32(%rbp), %rcx
	callq	_topologicalSortUtil
LBB4_4:                                 ##   in Loop: Header=BB4_1 Depth=1
	movq	-40(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, -40(%rbp)
	jmp	LBB4_1
LBB4_5:
	movl	-12(%rbp), %edi
	callq	_createStackNode
	movq	%rax, -56(%rbp)
	movq	-32(%rbp), %rax
	movq	(%rax), %rcx
	movq	-56(%rbp), %rax
	movq	%rcx, 8(%rax)
	movq	-56(%rbp), %rcx
	movq	-32(%rbp), %rax
	movq	%rcx, (%rax)
	addq	$64, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.globl	_topologicalSort                ## -- Begin function topologicalSort
	.p2align	4, 0x90
_topologicalSort:                       ## @topologicalSort
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$48, %rsp
	movq	%rdi, -8(%rbp)
	movq	$0, -16(%rbp)
	movq	-8(%rbp), %rax
	movslq	(%rax), %rdi
	shlq	$2, %rdi
	callq	_libmin_malloc
	movq	%rax, -24(%rbp)
	movl	$0, -28(%rbp)
LBB5_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	-28(%rbp), %eax
	movq	-8(%rbp), %rcx
	cmpl	(%rcx), %eax
	jge	LBB5_4
## %bb.2:                               ##   in Loop: Header=BB5_1 Depth=1
	movq	-24(%rbp), %rax
	movslq	-28(%rbp), %rcx
	movl	$0, (%rax,%rcx,4)
## %bb.3:                               ##   in Loop: Header=BB5_1 Depth=1
	movl	-28(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -28(%rbp)
	jmp	LBB5_1
LBB5_4:
	movl	$0, -32(%rbp)
LBB5_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	-32(%rbp), %eax
	movq	-8(%rbp), %rcx
	cmpl	(%rcx), %eax
	jge	LBB5_10
## %bb.6:                               ##   in Loop: Header=BB5_5 Depth=1
	movq	-24(%rbp), %rax
	movslq	-32(%rbp), %rcx
	cmpl	$0, (%rax,%rcx,4)
	jne	LBB5_8
## %bb.7:                               ##   in Loop: Header=BB5_5 Depth=1
	movq	-8(%rbp), %rdi
	movl	-32(%rbp), %esi
	movq	-24(%rbp), %rdx
	leaq	-16(%rbp), %rcx
	callq	_topologicalSortUtil
LBB5_8:                                 ##   in Loop: Header=BB5_5 Depth=1
	jmp	LBB5_9
LBB5_9:                                 ##   in Loop: Header=BB5_5 Depth=1
	movl	-32(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -32(%rbp)
	jmp	LBB5_5
LBB5_10:
	jmp	LBB5_11
LBB5_11:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, -16(%rbp)
	je	LBB5_13
## %bb.12:                              ##   in Loop: Header=BB5_11 Depth=1
	movq	-16(%rbp), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	movb	$0, %al
	callq	_libmin_printf
	movq	-16(%rbp), %rax
	movq	%rax, -40(%rbp)
	movq	-16(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	-40(%rbp), %rdi
	callq	_libmin_free
	jmp	LBB5_11
LBB5_13:
	movq	-24(%rbp), %rdi
	callq	_libmin_free
	movq	-8(%rbp), %rax
	movq	8(%rax), %rdi
	callq	_libmin_free
	movq	-8(%rbp), %rdi
	callq	_libmin_free
	addq	$48, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movl	$0, -4(%rbp)
	movl	$6, %edi
	callq	_createGraph
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rdi
	movl	$5, %esi
	movl	$2, %edx
	callq	_addEdge
	movq	-16(%rbp), %rdi
	movl	$5, %esi
	xorl	%edx, %edx
	callq	_addEdge
	movq	-16(%rbp), %rdi
	movl	$4, %esi
	xorl	%edx, %edx
	callq	_addEdge
	movq	-16(%rbp), %rdi
	movl	$4, %esi
	movl	$1, %edx
	callq	_addEdge
	movq	-16(%rbp), %rdi
	movl	$2, %esi
	movl	$3, %edx
	callq	_addEdge
	movq	-16(%rbp), %rdi
	movl	$3, %esi
	movl	$1, %edx
	callq	_addEdge
	leaq	L_.str.1(%rip), %rdi
	movb	$0, %al
	callq	_libmin_printf
	movq	-16(%rbp), %rdi
	callq	_topologicalSort
	leaq	L_.str.2(%rip), %rdi
	movb	$0, %al
	callq	_libmin_printf
	callq	_libmin_success
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d "

L_.str.1:                               ## @.str.1
	.asciz	"Topological Sorting Order: "

L_.str.2:                               ## @.str.2
	.asciz	"\n"

.subsections_via_symbols


ARM64 assembly:
	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_createStackNode                ; -- Begin function createStackNode
	.p2align	2
_createStackNode:                       ; @createStackNode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	stur	w0, [x29, #-4]
	mov	x0, #16
	bl	_libmin_malloc
	str	x0, [sp]
	ldur	w8, [x29, #-4]
	ldr	x9, [sp]
	str	w8, [x9]
	ldr	x8, [sp]
                                        ; kill: def $x9 killed $xzr
	str	xzr, [x8, #8]
	ldr	x0, [sp]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.cfi_endproc
                                        ; -- End function
	.globl	_createListNode                 ; -- Begin function createListNode
	.p2align	2
_createListNode:                        ; @createListNode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	stur	w0, [x29, #-4]
	mov	x0, #16
	bl	_libmin_malloc
	str	x0, [sp]
	ldur	w8, [x29, #-4]
	ldr	x9, [sp]
	str	w8, [x9]
	ldr	x8, [sp]
                                        ; kill: def $x9 killed $xzr
	str	xzr, [x8, #8]
	ldr	x0, [sp]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.cfi_endproc
                                        ; -- End function
	.globl	_createGraph                    ; -- Begin function createGraph
	.p2align	2
_createGraph:                           ; @createGraph
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	stur	w0, [x29, #-4]
	mov	x0, #16
	bl	_libmin_malloc
	str	x0, [sp, #16]
	ldur	w8, [x29, #-4]
	ldr	x9, [sp, #16]
	str	w8, [x9]
	ldursw	x8, [x29, #-4]
	lsl	x0, x8, #4
	bl	_libmin_malloc
	ldr	x8, [sp, #16]
	str	x0, [x8, #8]
	str	wzr, [sp, #12]
	b	LBB2_1
LBB2_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #12]
	ldur	w9, [x29, #-4]
	subs	w8, w8, w9
	cset	w8, ge
	tbnz	w8, #0, LBB2_4
	b	LBB2_2
LBB2_2:                                 ;   in Loop: Header=BB2_1 Depth=1
	ldr	x8, [sp, #16]
	ldr	x8, [x8, #8]
	ldrsw	x9, [sp, #12]
	add	x8, x8, x9, lsl #4
                                        ; kill: def $x9 killed $xzr
	str	xzr, [x8, #8]
	b	LBB2_3
LBB2_3:                                 ;   in Loop: Header=BB2_1 Depth=1
	ldr	w8, [sp, #12]
	add	w8, w8, #1
	str	w8, [sp, #12]
	b	LBB2_1
LBB2_4:
	ldr	x0, [sp, #16]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.globl	_addEdge                        ; -- Begin function addEdge
	.p2align	2
_addEdge:                               ; @addEdge
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	stur	x0, [x29, #-8]
	stur	w1, [x29, #-12]
	str	w2, [sp, #16]
	ldr	w0, [sp, #16]
	bl	_createListNode
	str	x0, [sp, #8]
	ldur	x8, [x29, #-8]
	ldr	x8, [x8, #8]
	ldursw	x9, [x29, #-12]
	add	x8, x8, x9, lsl #4
	ldr	x8, [x8, #8]
	ldr	x9, [sp, #8]
	str	x8, [x9, #8]
	ldr	x8, [sp, #8]
	ldur	x9, [x29, #-8]
	ldr	x9, [x9, #8]
	ldursw	x10, [x29, #-12]
	add	x9, x9, x10, lsl #4
	str	x8, [x9, #8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.globl	_topologicalSortUtil            ; -- Begin function topologicalSortUtil
	.p2align	2
_topologicalSortUtil:                   ; @topologicalSortUtil
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	stur	x0, [x29, #-8]
	stur	w1, [x29, #-12]
	stur	x2, [x29, #-24]
	str	x3, [sp, #32]
	ldur	x9, [x29, #-24]
	ldursw	x10, [x29, #-12]
	mov	w8, #1
	str	w8, [x9, x10, lsl #2]
	ldur	x8, [x29, #-8]
	ldr	x8, [x8, #8]
	ldursw	x9, [x29, #-12]
	add	x8, x8, x9, lsl #4
	ldr	x8, [x8, #8]
	str	x8, [sp, #24]
	b	LBB4_1
LBB4_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #24]
	subs	x8, x8, #0
	cset	w8, eq
	tbnz	w8, #0, LBB4_5
	b	LBB4_2
LBB4_2:                                 ;   in Loop: Header=BB4_1 Depth=1
	ldr	x8, [sp, #24]
	ldr	w8, [x8]
	str	w8, [sp, #20]
	ldur	x8, [x29, #-24]
	ldrsw	x9, [sp, #20]
	ldr	w8, [x8, x9, lsl #2]
	subs	w8, w8, #0
	cset	w8, ne
	tbnz	w8, #0, LBB4_4
	b	LBB4_3
LBB4_3:                                 ;   in Loop: Header=BB4_1 Depth=1
	ldur	x0, [x29, #-8]
	ldr	w1, [sp, #20]
	ldur	x2, [x29, #-24]
	ldr	x3, [sp, #32]
	bl	_topologicalSortUtil
	b	LBB4_4
LBB4_4:                                 ;   in Loop: Header=BB4_1 Depth=1
	ldr	x8, [sp, #24]
	ldr	x8, [x8, #8]
	str	x8, [sp, #24]
	b	LBB4_1
LBB4_5:
	ldur	w0, [x29, #-12]
	bl	_createStackNode
	str	x0, [sp, #8]
	ldr	x8, [sp, #32]
	ldr	x8, [x8]
	ldr	x9, [sp, #8]
	str	x8, [x9, #8]
	ldr	x8, [sp, #8]
	ldr	x9, [sp, #32]
	str	x8, [x9]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
	.globl	_topologicalSort                ; -- Begin function topologicalSort
	.p2align	2
_topologicalSort:                       ; @topologicalSort
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	stur	x0, [x29, #-8]
                                        ; kill: def $x8 killed $xzr
	stur	xzr, [x29, #-16]
	ldur	x8, [x29, #-8]
	ldrsw	x8, [x8]
	lsl	x0, x8, #2
	bl	_libmin_malloc
	str	x0, [sp, #24]
	str	wzr, [sp, #20]
	b	LBB5_1
LBB5_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #20]
	ldur	x9, [x29, #-8]
	ldr	w9, [x9]
	subs	w8, w8, w9
	cset	w8, ge
	tbnz	w8, #0, LBB5_4
	b	LBB5_2
LBB5_2:                                 ;   in Loop: Header=BB5_1 Depth=1
	ldr	x9, [sp, #24]
	ldrsw	x10, [sp, #20]
	mov	w8, #0
	str	w8, [x9, x10, lsl #2]
	b	LBB5_3
LBB5_3:                                 ;   in Loop: Header=BB5_1 Depth=1
	ldr	w8, [sp, #20]
	add	w8, w8, #1
	str	w8, [sp, #20]
	b	LBB5_1
LBB5_4:
	str	wzr, [sp, #16]
	b	LBB5_5
LBB5_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #16]
	ldur	x9, [x29, #-8]
	ldr	w9, [x9]
	subs	w8, w8, w9
	cset	w8, ge
	tbnz	w8, #0, LBB5_10
	b	LBB5_6
LBB5_6:                                 ;   in Loop: Header=BB5_5 Depth=1
	ldr	x8, [sp, #24]
	ldrsw	x9, [sp, #16]
	ldr	w8, [x8, x9, lsl #2]
	subs	w8, w8, #0
	cset	w8, ne
	tbnz	w8, #0, LBB5_8
	b	LBB5_7
LBB5_7:                                 ;   in Loop: Header=BB5_5 Depth=1
	ldur	x0, [x29, #-8]
	ldr	w1, [sp, #16]
	ldr	x2, [sp, #24]
	sub	x3, x29, #16
	bl	_topologicalSortUtil
	b	LBB5_8
LBB5_8:                                 ;   in Loop: Header=BB5_5 Depth=1
	b	LBB5_9
LBB5_9:                                 ;   in Loop: Header=BB5_5 Depth=1
	ldr	w8, [sp, #16]
	add	w8, w8, #1
	str	w8, [sp, #16]
	b	LBB5_5
LBB5_10:
	b	LBB5_11
LBB5_11:                                ; =>This Inner Loop Header: Depth=1
	ldur	x8, [x29, #-16]
	subs	x8, x8, #0
	cset	w8, eq
	tbnz	w8, #0, LBB5_13
	b	LBB5_12
LBB5_12:                                ;   in Loop: Header=BB5_11 Depth=1
	ldur	x8, [x29, #-16]
	ldr	w9, [x8]
                                        ; implicit-def: $x8
	mov	x8, x9
	mov	x9, sp
	str	x8, [x9]
	adrp	x0, l_.str@PAGE
	add	x0, x0, l_.str@PAGEOFF
	bl	_libmin_printf
	ldur	x8, [x29, #-16]
	str	x8, [sp, #8]
	ldur	x8, [x29, #-16]
	ldr	x8, [x8, #8]
	stur	x8, [x29, #-16]
	ldr	x0, [sp, #8]
	bl	_libmin_free
	b	LBB5_11
LBB5_13:
	ldr	x0, [sp, #24]
	bl	_libmin_free
	ldur	x8, [x29, #-8]
	ldr	x0, [x8, #8]
	bl	_libmin_free
	ldur	x0, [x29, #-8]
	bl	_libmin_free
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	w8, #0
	stur	w8, [x29, #-20]                 ; 4-byte Folded Spill
	stur	wzr, [x29, #-4]
	mov	w0, #6
	bl	_createGraph
	stur	x0, [x29, #-16]
	ldur	x0, [x29, #-16]
	mov	w1, #5
	str	w1, [sp, #8]                    ; 4-byte Folded Spill
	mov	w2, #2
	str	w2, [sp, #16]                   ; 4-byte Folded Spill
	bl	_addEdge
	ldr	w1, [sp, #8]                    ; 4-byte Folded Reload
	ldur	w2, [x29, #-20]                 ; 4-byte Folded Reload
	ldur	x0, [x29, #-16]
	bl	_addEdge
	ldur	w2, [x29, #-20]                 ; 4-byte Folded Reload
	ldur	x0, [x29, #-16]
	mov	w1, #4
	str	w1, [sp, #12]                   ; 4-byte Folded Spill
	bl	_addEdge
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	ldur	x0, [x29, #-16]
	mov	w2, #1
	str	w2, [sp, #24]                   ; 4-byte Folded Spill
	bl	_addEdge
	ldr	w1, [sp, #16]                   ; 4-byte Folded Reload
	ldur	x0, [x29, #-16]
	mov	w2, #3
	str	w2, [sp, #20]                   ; 4-byte Folded Spill
	bl	_addEdge
	ldr	w1, [sp, #20]                   ; 4-byte Folded Reload
	ldr	w2, [sp, #24]                   ; 4-byte Folded Reload
	ldur	x0, [x29, #-16]
	bl	_addEdge
	adrp	x0, l_.str.1@PAGE
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_libmin_printf
	ldur	x0, [x29, #-16]
	bl	_topologicalSort
	adrp	x0, l_.str.2@PAGE
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_libmin_printf
	bl	_libmin_success
	ldur	w0, [x29, #-20]                 ; 4-byte Folded Reload
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d "

l_.str.1:                               ; @.str.1
	.asciz	"Topological Sorting Order: "

l_.str.2:                               ; @.str.2
	.asciz	"\n"

.subsections_via_symbols