	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sort_in_topological_order      ## -- Begin function sort_in_topological_order
	.p2align	4, 0x90
_sort_in_topological_order:             ## @sort_in_topological_order
	.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
	movq	(%rdi), %r15
	testq	%r15, %r15
	je	LBB0_34
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	$0, (%rdi)
	leaq	-48(%rbp), %rdi
	callq	_init_indegree_slab
	leaq	-72(%rbp), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	cmpl	$128, %r14d
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.2:
	cmpl	$129, %r14d
	jne	LBB0_3
## %bb.5:
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_init_author_date_slab
	movq	_compare_commits_by_author_date@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movq	%rbx, -72(%rbp)
	jmp	LBB0_6
LBB0_4:
	movq	_compare_commits_by_commit_date@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	jmp	LBB0_6
LBB0_3:
	movq	$0, -64(%rbp)
LBB0_6:
	leaq	-48(%rbp), %r14
	leaq	-56(%rbp), %r13
	movq	%r15, %rbx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %r12
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_indegree_slab_at
	movl	$1, (%rax)
	cmpl	$129, -52(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_record_author_date
	jmp	LBB0_9
LBB0_10:
	leaq	-48(%rbp), %r12
	movq	%r15, %r14
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	8(%r14), %r14
	testq	%r14, %r14
	je	LBB0_17
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movq	(%r14), %rax
	movq	(%rax), %rbx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	8(%rbx), %rbx
LBB0_12:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	(%rbx), %rsi
	movq	%r12, %rdi
	callq	_indegree_slab_at
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=2
	incl	%ecx
	movl	%ecx, (%rax)
	jmp	LBB0_15
LBB0_17:
	leaq	-48(%rbp), %r14
	leaq	-72(%rbp), %r13
	movq	%r15, %rbx
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_21
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %r12
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_indegree_slab_at
	cmpl	$1, (%rax)
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_prio_queue_put
	jmp	LBB0_20
LBB0_21:
	movq	_REV_SORT_IN_GRAPH_ORDER@GOTPCREL(%rip), %rax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	jne	LBB0_23
## %bb.22:
	leaq	-72(%rbp), %rdi
	callq	_prio_queue_reverse
LBB0_23:
	movq	%r15, %rdi
	callq	_free_commit_list
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	$0, (%r14)
	leaq	-72(%rbp), %rdi
	callq	_prio_queue_get
	testq	%rax, %rax
	je	LBB0_32
## %bb.24:
	movq	%rax, %r13
	leaq	-48(%rbp), %rbx
	leaq	-72(%rbp), %r15
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_25 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_indegree_slab_at
	movl	$0, (%rax)
	movq	%r13, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_commit_list_insert
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_prio_queue_get
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_32
LBB0_25:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_26 Depth 2
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	(%r13), %r12
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_26 Depth=2
	movq	8(%r12), %r12
LBB0_26:                                ##   Parent Loop BB0_25 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testq	%r12, %r12
	je	LBB0_31
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=2
	movq	(%r12), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_indegree_slab_at
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	je	LBB0_30
## %bb.28:                              ##   in Loop: Header=BB0_26 Depth=2
	decl	%ecx
	movl	%ecx, (%rax)
	cmpl	$1, %ecx
	jne	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_26 Depth=2
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_prio_queue_put
	jmp	LBB0_30
LBB0_32:
	leaq	-48(%rbp), %rdi
	callq	_clear_indegree_slab
	leaq	-72(%rbp), %rdi
	callq	_clear_prio_queue
	cmpl	$129, -52(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_34
## %bb.33:
	leaq	-56(%rbp), %rdi
	callq	_clear_author_date_slab
LBB0_34:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_compare_commits_by_commit_date,8,3 ## @compare_commits_by_commit_date
	.comm	_compare_commits_by_author_date,8,3 ## @compare_commits_by_author_date
	.comm	_REV_SORT_IN_GRAPH_ORDER,4,2    ## @REV_SORT_IN_GRAPH_ORDER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sort_in_topological_order      ; -- Begin function sort_in_topological_order
	.p2align	2
_sort_in_topological_order:             ; @sort_in_topological_order
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	x21, [x0]
	cbz	x21, LBB0_32
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	str	xzr, [x0]
	add	x0, sp, #24
	bl	_init_indegree_slab
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	cmp	w19, #128
	b.eq	LBB0_4
; %bb.2:
	cmp	w19, #129
	b.ne	LBB0_5
; %bb.3:
	mov	x22, sp
	mov	x0, sp
	bl	_init_author_date_slab
Lloh0:
	adrp	x8, _compare_commits_by_author_date@GOTPAGE
Lloh1:
	ldr	x8, [x8, _compare_commits_by_author_date@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stp	x22, x8, [sp, #8]
	b	LBB0_6
LBB0_4:
Lloh3:
	adrp	x8, _compare_commits_by_commit_date@GOTPAGE
Lloh4:
	ldr	x8, [x8, _compare_commits_by_commit_date@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [sp, #16]
	b	LBB0_6
LBB0_5:
	str	xzr, [sp, #16]
LBB0_6:
	mov	w23, #1
	mov	x24, x21
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x24, [x24, #8]
	cbz	x24, LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x24]
	add	x0, sp, #24
	mov	x1, x22
	bl	_indegree_slab_at
	str	w23, [x0]
	cmp	w19, #129
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, sp
	mov	x1, x22
	bl	_record_author_date
	b	LBB0_7
LBB0_10:
	mov	x22, x21
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x22, [x22, #8]
	cbz	x22, LBB0_16
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	ldr	x8, [x22]
	ldr	x23, [x8]
	cbnz	x23, LBB0_14
	b	LBB0_11
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=2
	ldr	x23, [x23, #8]
	cbz	x23, LBB0_11
LBB0_14:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x1, [x23]
	add	x0, sp, #24
	bl	_indegree_slab_at
	ldr	w8, [x0]
	cbz	w8, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	add	w8, w8, #1
	str	w8, [x0]
	b	LBB0_13
LBB0_16:
	mov	x23, x21
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	x23, [x23, #8]
	cbz	x23, LBB0_20
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x23]
	add	x0, sp, #24
	mov	x1, x22
	bl	_indegree_slab_at
	ldr	w8, [x0]
	cmp	w8, #1
	b.ne	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	add	x0, sp, #8
	mov	x1, x22
	bl	_prio_queue_put
	b	LBB0_17
LBB0_20:
Lloh6:
	adrp	x8, _REV_SORT_IN_GRAPH_ORDER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REV_SORT_IN_GRAPH_ORDER@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_22
; %bb.21:
	add	x0, sp, #8
	bl	_prio_queue_reverse
LBB0_22:
	mov	x0, x21
	bl	_free_commit_list
	str	xzr, [x20]
	add	x0, sp, #8
	bl	_prio_queue_get
	cbz	x0, LBB0_30
; %bb.23:
	mov	x21, x0
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	add	x0, sp, #24
	mov	x1, x21
	bl	_indegree_slab_at
	str	wzr, [x0]
	mov	x0, x21
	mov	x1, x20
	bl	_commit_list_insert
	mov	x20, x0
	add	x0, sp, #8
	bl	_prio_queue_get
	mov	x21, x0
	cbz	x0, LBB0_30
LBB0_25:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_27 Depth 2
	ldr	x23, [x21]
	cbnz	x23, LBB0_27
	b	LBB0_24
LBB0_26:                                ;   in Loop: Header=BB0_27 Depth=2
	ldr	x23, [x23, #8]
	cbz	x23, LBB0_24
LBB0_27:                                ;   Parent Loop BB0_25 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x22, [x23]
	add	x0, sp, #24
	mov	x1, x22
	bl	_indegree_slab_at
	ldr	w8, [x0]
	cbz	w8, LBB0_26
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=2
	sub	w8, w8, #1
	str	w8, [x0]
	cmp	w8, #1
	b.ne	LBB0_26
; %bb.29:                               ;   in Loop: Header=BB0_27 Depth=2
	add	x0, sp, #8
	mov	x1, x22
	bl	_prio_queue_put
	b	LBB0_26
LBB0_30:
	add	x0, sp, #24
	bl	_clear_indegree_slab
	add	x0, sp, #8
	bl	_clear_prio_queue
	cmp	w19, #129
	b.ne	LBB0_32
; %bb.31:
	mov	x0, sp
	bl	_clear_author_date_slab
LBB0_32:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_compare_commits_by_commit_date,8,3 ; @compare_commits_by_commit_date
	.comm	_compare_commits_by_author_date,8,3 ; @compare_commits_by_author_date
	.comm	_REV_SORT_IN_GRAPH_ORDER,4,2    ; @REV_SORT_IN_GRAPH_ORDER
.subsections_via_symbols
