	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tsort
_tsort:                                 ## @tsort
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	movl	%esi, %r15d
	leaq	-24(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	xorl	%esi, %esi
	xorl	%ebx, %ebx
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_1 Depth=1
	incl	%ebx
	movq	%rcx, %rdx
	movq	%rax, %rsi
	cmpl	%r14d, %ebx
	je	LBB0_21
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
                                        ##       Child Loop BB0_7 Depth 3
                                        ##       Child Loop BB0_9 Depth 3
                                        ##     Child Loop BB0_15 Depth 2
                                        ##       Child Loop BB0_16 Depth 3
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=2
	movslq	%r13d, %rax
	leaq	(%rax,%rax,2), %rax
	cmpq	$0, (%r12,%rax,8)
	je	LBB0_5
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=2
	incl	%r13d
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_7 Depth 3
                                        ##       Child Loop BB0_9 Depth 3
	cmpl	%r14d, %r13d
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=2
	xorl	%edi, %edi
	callq	_assert
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=2
	cmpq	$0, 16(%r12,%rax,8)
	je	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=2
	leaq	(%r12,%rax,8), %r12
	addq	$8, %r12
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_2 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	%r14, %rbx
	xorl	%edi, %edi
	cmpq	%r15, %r14
	setb	%dil
	callq	_assert
	movq	(%r12), %rax
	incq	%r14
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=2
	decl	%r14d
	movq	%r15, %rbx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_2 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	xorl	%edi, %edi
	cmpq	%rbx, %r13
	setb	%dil
	callq	_assert
	movq	(%r12), %rax
	incq	%r13
	addq	$24, %r15
	cmpq	(%rax,%r14,8), %r15
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=2
	addl	$-2, %r13d
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%rbx, %r15
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	leaq	(%r12,%rax,8), %rcx
	movq	%rcx, %rax
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rcx, (%rdx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rcx, (%rcx)
	xorl	%edx, %edx
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=2
	decq	16(%r12,%r8,8)
	movq	$0, (%rsi,%rdi,8)
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=2
	incq	%rdx
	cmpq	%r15, %rdx
	je	LBB0_20
LBB0_15:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_16 Depth 3
	leaq	(%rdx,%rdx,2), %r8
	movq	8(%r12,%r8,8), %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_15 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpq	%rcx, (%rsi,%rdi,8)
	je	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=3
	incq	%rdi
	cmpq	%rdi, %r15
	jne	LBB0_16
	jmp	LBB0_19
LBB0_21:
	movq	$0, (%rcx)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_tsort
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tsort
_tsort:                                 ; @tsort
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	mov	x9, #0
	mov	x10, #0
	mov	w21, #0
	sub	x25, x0, #24
	mov	w23, #24
	mov	w24, w1
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w21, w21, #1
	mov	x9, x8
	mov	x10, x0
	cmp	w21, w19
	b.eq	LBB0_21
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;       Child Loop BB0_9 Depth 3
                                        ;       Child Loop BB0_11 Depth 3
                                        ;     Child Loop BB0_18 Depth 2
                                        ;       Child Loop BB0_19 Depth 3
	stp	x10, x9, [sp]                   ; 16-byte Folded Spill
	mov	w27, #0
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=2
	smaddl	x8, w27, w23, x20
	ldr	x9, [x8]
	cbz	x9, LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	add	w27, w27, #1
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_9 Depth 3
                                        ;       Child Loop BB0_11 Depth 3
	cmp	w27, w19
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	w0, #0
	bl	_assert
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=2
	sxtw	x9, w27
	madd	x10, x9, x23, x20
	ldr	x10, [x10, #16]
	cbz	x10, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x26, #0
	madd	x8, x9, x23, x20
	add	x27, x8, #8
LBB0_9:                                 ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	cmp	x26, x24
	cset	w0, lo
	bl	_assert
	ldr	x8, [x27]
	ldr	x8, [x8, x26, lsl #3]
	add	x26, x26, #1
	cbz	x8, LBB0_9
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=2
	mov	x28, #0
	sub	w26, w26, #1
	mov	x22, x25
LBB0_11:                                ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	cmp	x28, x24
	cset	w0, lo
	bl	_assert
	ldr	x8, [x27]
	ldr	x8, [x8, x26, lsl #3]
	add	x28, x28, #1
	add	x22, x22, #24
	cmp	x22, x8
	b.ne	LBB0_11
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=2
	sub	w27, w28, #2
	b	LBB0_4
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x8
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	cbz	x9, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_2 Depth=1
	str	x8, [x9]
	ldr	x0, [sp]                        ; 8-byte Folded Reload
LBB0_15:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x9, #0
	str	x8, [x8]
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=2
	madd	x11, x9, x23, x20
	ldr	x12, [x11, #16]
	sub	x12, x12, #1
	str	x12, [x11, #16]
	str	xzr, [x10]
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=2
	add	x9, x9, #1
	cmp	x9, x24
	b.eq	LBB0_1
LBB0_18:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_19 Depth 3
	madd	x10, x9, x23, x20
	ldr	x10, [x10, #8]
	mov	x11, x24
LBB0_19:                                ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_18 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x12, [x10]
	cmp	x12, x8
	b.eq	LBB0_16
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=3
	add	x10, x10, #8
	subs	x11, x11, #1
	b.ne	LBB0_19
	b	LBB0_17
LBB0_21:
	str	xzr, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_tsort
.subsections_via_symbols
