	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TopoSort
_TopoSort:                              ## @TopoSort
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movl	%esi, %ebx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_getMaxDumpId
                                        ## kill: def $eax killed $eax def $rax
	movl	%ebx, (%r14)
	testl	%ebx, %ebx
	jle	LBB0_1
## %bb.5:
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	leal	(,%rbx,4), %edi
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	callq	_pg_malloc
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leal	4(,%rax,4), %r15d
	movl	%r15d, %edi
	callq	_pg_malloc0
	movq	%rax, %r14
	movl	%r15d, %edi
	callq	_pg_malloc
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movl	%ebx, %edx
	xorl	%r15d, %r15d
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r15
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%rdx, %r15
	je	LBB0_2
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r15,8), %r12
	movslq	(%r12), %r13
	testq	%r13, %r13
	jle	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	%esi, %r13d
	jle	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %esi
	callq	_fatal
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%r15d, (%rax,%r13,4)
	cmpl	$0, 4(%r12)
	jle	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=2
	leaq	L_.str.1(%rip), %rdi
	movl	%r13d, %esi
	callq	_fatal
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=2
	incl	(%r14,%r13,4)
	incq	%rbx
	movslq	4(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_15
LBB0_11:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r12), %rax
	movslq	(%rax,%rbx,4), %r13
	testq	%r13, %r13
	jle	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	cmpl	%esi, %r13d
	jle	LBB0_14
	jmp	LBB0_13
LBB0_2:
	movq	-104(%rbp), %r10                ## 8-byte Reload
	testl	%r10d, %r10d
	jle	LBB0_36
## %bb.3:
	cmpl	$1, %r10d
	jne	LBB0_22
## %bb.4:
	xorl	%r12d, %r12d
	movq	%rdx, %rax
	testb	$1, %dl
	jne	LBB0_18
	jmp	LBB0_20
LBB0_1:
	movl	$1, %r12d
	jmp	LBB0_50
LBB0_22:
	leal	-2(%r10), %r8d
	leal	-1(%r10), %r9d
	movl	%edx, %r11d
	andl	$-2, %r11d
	negq	%r11
	xorl	%eax, %eax
	xorl	%r12d, %r12d
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_23 Depth=1
	addq	$-2, %rax
	cmpq	%rax, %r11
	je	LBB0_16
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	leal	(%rdx,%rax), %edi
	decl	%edi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rdi,8), %rdi
	movslq	(%rdi), %rdi
	cmpl	$0, (%r14,%rdi,4)
	jne	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	leal	(%r9,%rax), %edi
	movslq	%r12d, %rbx
	incl	%r12d
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%edi, (%rcx,%rbx,4)
LBB0_25:                                ##   in Loop: Header=BB0_23 Depth=1
	leal	(%rdx,%rax), %edi
	addl	$-2, %edi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rdi,8), %rdi
	movslq	(%rdi), %rdi
	cmpl	$0, (%r14,%rdi,4)
	jne	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_23 Depth=1
	leal	(%r8,%rax), %edi
	movslq	%r12d, %rbx
	incl	%r12d
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%edi, (%rcx,%rbx,4)
	jmp	LBB0_27
LBB0_16:
	addq	%rdx, %rax
	testb	$1, %dl
	je	LBB0_20
LBB0_18:
	decq	%rax
	movl	%eax, %ecx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx,%rcx,8), %rcx
	movslq	(%rcx), %rcx
	cmpl	$0, (%r14,%rcx,4)
	je	LBB0_19
LBB0_20:
	testl	%r12d, %r12d
	jle	LBB0_36
LBB0_21:
	movslq	%r10d, %rbx
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_29 Depth=1
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	decq	%rbx
	testl	%r12d, %r12d
	jle	LBB0_34
LBB0_29:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_31 Depth 2
	movl	%r12d, %esi
	leal	-1(%rsi), %r12d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_removeHeapElement
	cltq
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %r13
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, -8(%rax,%rbx,8)
	cmpl	$0, 4(%r13)
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	jle	LBB0_28
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_31
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_31 Depth=2
	incq	%rbx
	movslq	4(%r13), %rax
	cmpq	%rax, %rbx
	jge	LBB0_28
LBB0_31:                                ##   Parent Loop BB0_29 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r13), %rax
	movslq	(%rax,%rbx,4), %rax
	decl	(%r14,%rax,4)
	jne	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_31 Depth=2
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax,4), %edi
	leal	1(%r12), %r15d
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_addHeapElement
	movl	%r15d, %r12d
	jmp	LBB0_33
LBB0_34:
	testl	%ebx, %ebx
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_35
LBB0_36:
	xorl	%r12d, %r12d
	movl	$0, %eax
	testl	%esi, %esi
	jle	LBB0_48
## %bb.37:
	movl	%esi, %r8d
	cmpl	$1, %esi
	jne	LBB0_39
## %bb.38:
	xorl	%eax, %eax
	movl	$1, %edx
LBB0_45:
	testb	$1, %r8b
	je	LBB0_48
## %bb.46:
	cmpl	$0, (%r14,%rdx,4)
	je	LBB0_48
## %bb.47:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%rcx,%rdx,4), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx,%rcx,8), %rcx
	movslq	%eax, %rdx
	incl	%eax
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%rcx, (%rsi,%rdx,8)
LBB0_48:
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_49:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	movq	%r14, %rdi
	callq	_free
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
LBB0_50:
	movl	%r12d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_39:
	movl	%r8d, %esi
	andl	$-2, %esi
	negq	%rsi
	xorl	%eax, %eax
	movl	$1, %edx
	jmp	LBB0_40
	.p2align	4, 0x90
LBB0_44:                                ##   in Loop: Header=BB0_40 Depth=1
	leaq	(%rsi,%rdx), %rdi
	addq	$2, %rdi
	addq	$2, %rdx
	cmpq	$1, %rdi
	je	LBB0_45
LBB0_40:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%r14,%rdx,4)
	je	LBB0_42
## %bb.41:                              ##   in Loop: Header=BB0_40 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%rcx,%rdx,4), %rdi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rdi,8), %rdi
	movslq	%eax, %rbx
	incl	%eax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%rdi, (%rcx,%rbx,8)
LBB0_42:                                ##   in Loop: Header=BB0_40 Depth=1
	cmpl	$0, 4(%r14,%rdx,4)
	je	LBB0_44
## %bb.43:                              ##   in Loop: Header=BB0_40 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movslq	4(%rcx,%rdx,4), %rdi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rdi,8), %rdi
	movslq	%eax, %rbx
	incl	%eax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%rdi, (%rcx,%rbx,8)
	jmp	LBB0_44
LBB0_35:
	movl	$1, %r12d
	jmp	LBB0_49
LBB0_19:
	movslq	%r12d, %rcx
	incl	%r12d
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rdx,%rcx,4)
	testl	%r12d, %r12d
	jg	LBB0_21
	jmp	LBB0_36
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid dumpId %d"

L_.str.1:                               ## @.str.1
	.asciz	"invalid dependency %d"

	.no_dead_strip	_TopoSort
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TopoSort
_TopoSort:                              ; @TopoSort
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x3
	mov	x20, x2
	mov	x23, x1
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	bl	_getMaxDumpId
	str	w23, [x19]
	cmp	w23, #1
	b.lt	LBB0_23
; %bb.1:
	mov	x25, x0
	str	x20, [sp, #16]                  ; 8-byte Folded Spill
	str	x19, [sp]                       ; 8-byte Folded Spill
	lsl	w0, w23, #2
	bl	_pg_malloc
	mov	x20, x0
	lsl	w8, w25, #2
	add	w19, w8, #4
	mov	x0, x19
	bl	_pg_malloc0
	mov	x22, x0
	mov	x0, x19
	bl	_pg_malloc
	mov	x24, x0
	mov	x21, #0
	str	x23, [sp, #8]                   ; 8-byte Folded Spill
	mov	w26, w23
Lloh0:
	adrp	x28, l_.str.1@PAGE
Lloh1:
	add	x28, x28, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	cmp	x21, x26
	b.eq	LBB0_10
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x27, [x8, x21, lsl #3]
	ldr	w8, [x27]
	sxtw	x19, w8
	cmp	w8, #1
	ccmp	w8, w25, #0, ge
	b.le	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_fatal
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	w21, [x24, x19, lsl #2]
	ldr	w8, [x27, #4]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	lsl	x8, x19, #2
	ldr	w9, [x22, x8]
	add	w9, w9, #1
	str	w9, [x22, x8]
	add	x23, x23, #1
	ldrsw	x8, [x27, #4]
	cmp	x23, x8
	b.ge	LBB0_2
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x27, #8]
	ldr	w8, [x8, x23, lsl #2]
	sxtw	x19, w8
	cmp	w8, #1
	ccmp	w8, w25, #0, ge
	b.le	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x28
	mov	x1, x19
	bl	_fatal
	b	LBB0_7
LBB0_10:
	ldp	x10, x28, [sp, #8]              ; 16-byte Folded Reload
	cmp	w10, #1
	b.lt	LBB0_25
; %bb.11:
	mov	w27, #0
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x9, x8, #1
	mov	x26, x8
	cmp	x9, #1
	b.ls	LBB0_15
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	sub	x8, x26, #1
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x9, [x9, w8, uxtw #3]
	ldrsw	x9, [x9]
	ldr	w9, [x22, x9, lsl #2]
	cbnz	w9, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	sub	w9, w26, #1
	str	w9, [x20, w27, sxtw #2]
	add	w27, w27, #1
	b	LBB0_12
LBB0_15:
	cmp	w27, #1
	b.lt	LBB0_25
; %bb.16:
	sxtw	x19, w10
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	cmp	w27, #1
	b.lt	LBB0_24
LBB0_18:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_21 Depth 2
	mov	x1, x27
	sub	w27, w27, #1
	mov	x0, x20
	bl	_removeHeapElement
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x21, [x8, w0, sxtw #3]
	sub	x19, x19, #1
	str	x21, [x28, x19, lsl #3]
	ldr	w8, [x21, #4]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x26, #0
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=2
	add	x26, x26, #1
	ldrsw	x8, [x21, #4]
	cmp	x26, x8
	b.ge	LBB0_17
LBB0_21:                                ;   Parent Loop BB0_18 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x21, #8]
	ldrsw	x8, [x8, x26, lsl #2]
	lsl	x9, x8, #2
	ldr	w10, [x22, x9]
	subs	w10, w10, #1
	str	w10, [x22, x9]
	b.ne	LBB0_20
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=2
	ldr	w0, [x24, x8, lsl #2]
	add	w23, w27, #1
	mov	x1, x20
	mov	x2, x27
	bl	_addHeapElement
	mov	x27, x23
	b	LBB0_20
LBB0_23:
	mov	w21, #1
	b	LBB0_33
LBB0_24:
	cbz	w19, LBB0_34
LBB0_25:
	cmp	w25, #1
	b.lt	LBB0_30
; %bb.26:
	mov	w8, #0
	add	w11, w25, #1
	add	x9, x24, #4
	add	x10, x22, #4
	sub	x11, x11, #1
	ldr	x13, [sp]                       ; 8-byte Folded Reload
	ldr	x14, [sp, #24]                  ; 8-byte Folded Reload
	b	LBB0_28
LBB0_27:                                ;   in Loop: Header=BB0_28 Depth=1
	add	x9, x9, #4
	add	x10, x10, #4
	subs	x11, x11, #1
	b.eq	LBB0_31
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x10]
	cbz	w12, LBB0_27
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=1
	ldrsw	x12, [x9]
	ldr	x12, [x14, x12, lsl #3]
	str	x12, [x28, w8, sxtw #3]
	add	w8, w8, #1
	b	LBB0_27
LBB0_30:
	mov	w8, #0
	ldr	x13, [sp]                       ; 8-byte Folded Reload
LBB0_31:
	mov	w21, #0
	str	w8, [x13]
LBB0_32:
	mov	x0, x20
	bl	_free
	mov	x0, x22
	bl	_free
	mov	x0, x24
	bl	_free
LBB0_33:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_34:
	mov	w21, #1
	b	LBB0_32
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid dumpId %d"

l_.str.1:                               ; @.str.1
	.asciz	"invalid dependency %d"

	.no_dead_strip	_TopoSort
.subsections_via_symbols
