	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prepare_revision_walk          ## -- Begin function prepare_revision_walk
	.p2align	4, 0x90
_prepare_revision_walk:                 ## @prepare_revision_walk
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	leaq	48(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	80(%rdi), %rsi
	leaq	-64(%rbp), %rdi
	movl	$16, %edx
	callq	_memcpy
	xorps	%xmm0, %xmm0
	movups	%xmm0, 80(%r12)
	movq	$0, 96(%r12)
	cmpl	$0, -64(%rbp)
	jle	LBB0_6
## %bb.1:
	xorl	%ebx, %ebx
	movq	_SEEN@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movslq	-64(%rbp), %rax
	addq	$4, %rbx
	cmpq	%rax, %r14
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rsi
	addq	%rbx, %rsi
	movq	%r12, %rdi
	callq	_handle_commit
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %ecx
	movl	(%r13), %edx
	testl	%ecx, %edx
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	orl	%ecx, %edx
	movl	%edx, (%rax)
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_commit_list_append
	movq	%rax, %r15
	jmp	LBB0_5
LBB0_6:
	leaq	-64(%rbp), %rdi
	callq	_object_array_clear
	cmpq	$0, 16(%r12)
	je	LBB0_7
LBB0_9:
	leaq	L_.str(%rip), %rax
	movq	%rax, 72(%r12)
LBB0_10:
	cmpq	$0, 64(%r12)
	je	LBB0_12
## %bb.11:
	movq	_mark_uninteresting@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_FOR_EACH_OBJECT_PROMISOR_ONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_for_each_packed_object
LBB0_12:
	movq	(%r12), %rax
	movq	_REVISION_WALK_NO_WALK_UNSORTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.13:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_commit_list_sort_by_date
	movq	(%r12), %rax
LBB0_14:
	xorl	%r15d, %r15d
	testq	%rax, %rax
	jne	LBB0_28
## %bb.15:
	cmpq	$0, 56(%r12)
	je	LBB0_20
## %bb.16:
	movq	%r12, %rdi
	callq	_limit_list
	testq	%rax, %rax
	js	LBB0_17
## %bb.18:
	cmpq	$0, 32(%r12)
	je	LBB0_22
## %bb.19:
	movl	40(%r12), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_sort_in_topological_order
	jmp	LBB0_22
LBB0_7:
	cmpq	$0, 56(%r12)
	je	LBB0_10
## %bb.8:
	movq	%r12, %rdi
	callq	_limiting_can_increase_treesame
	testq	%rax, %rax
	jne	LBB0_9
	jmp	LBB0_10
LBB0_20:
	cmpq	$0, 32(%r12)
	je	LBB0_22
## %bb.21:
	movq	%r12, %rdi
	callq	_init_topo_walk
LBB0_22:
	cmpq	$0, 24(%r12)
	je	LBB0_24
## %bb.23:
	movq	%r12, %rdi
	callq	_line_log_filter
LBB0_24:
	cmpq	$0, 16(%r12)
	je	LBB0_26
## %bb.25:
	movq	%r12, %rdi
	callq	_simplify_merges
LBB0_26:
	cmpq	$0, 8(%r12)
	je	LBB0_28
## %bb.27:
	movq	%r12, %rdi
	callq	_set_children
	jmp	LBB0_28
LBB0_17:
	movl	$-1, %r15d
LBB0_28:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SEEN,4,2                       ## @SEEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"treesame"

	.comm	_mark_uninteresting,4,2         ## @mark_uninteresting
	.comm	_FOR_EACH_OBJECT_PROMISOR_ONLY,4,2 ## @FOR_EACH_OBJECT_PROMISOR_ONLY
	.comm	_REVISION_WALK_NO_WALK_UNSORTED,8,3 ## @REVISION_WALK_NO_WALK_UNSORTED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prepare_revision_walk          ; -- Begin function prepare_revision_walk
	.p2align	2
_prepare_revision_walk:                 ; @prepare_revision_walk
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	add	x20, x0, #48
	add	x1, x0, #80
	mov	x0, sp
	mov	w2, #16
	bl	_memcpy
	stp	xzr, xzr, [x19, #88]
	str	xzr, [x19, #80]
	ldr	w8, [sp]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x22, #0
	mov	x23, #0
Lloh0:
	adrp	x24, _SEEN@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SEEN@GOTPAGEOFF]
	mov	x21, x20
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [sp]
	add	x22, x22, #4
	cmp	x23, x8
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #8]
	add	x1, x8, x22
	mov	x0, x19
	bl	_handle_commit
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x0]
	ldr	w9, [x24]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	orr	w8, w9, w8
	str	w8, [x0]
	mov	x1, x21
	bl	_commit_list_append
	mov	x21, x0
	b	LBB0_2
LBB0_6:
	mov	x0, sp
	bl	_object_array_clear
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_17
LBB0_7:
Lloh2:
	adrp	x8, l_.str@PAGE
Lloh3:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x19, #72]
LBB0_8:
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_10
; %bb.9:
Lloh4:
	adrp	x8, _mark_uninteresting@GOTPAGE
Lloh5:
	ldr	x8, [x8, _mark_uninteresting@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x8, _FOR_EACH_OBJECT_PROMISOR_ONLY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FOR_EACH_OBJECT_PROMISOR_ONLY@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_for_each_packed_object
LBB0_10:
	ldr	x8, [x19]
Lloh10:
	adrp	x9, _REVISION_WALK_NO_WALK_UNSORTED@GOTPAGE
Lloh11:
	ldr	x9, [x9, _REVISION_WALK_NO_WALK_UNSORTED@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_12
; %bb.11:
	mov	x0, x20
	bl	_commit_list_sort_by_date
	ldr	x8, [x19]
LBB0_12:
	cbnz	x8, LBB0_27
; %bb.13:
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_19
; %bb.14:
	mov	x0, x19
	bl	_limit_list
	tbnz	x0, #63, LBB0_29
; %bb.15:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_21
; %bb.16:
	ldr	w1, [x19, #40]
	mov	x0, x20
	bl	_sort_in_topological_order
	b	LBB0_21
LBB0_17:
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_8
; %bb.18:
	mov	x0, x19
	bl	_limiting_can_increase_treesame
	cbnz	x0, LBB0_7
	b	LBB0_8
LBB0_19:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_21
; %bb.20:
	mov	x0, x19
	bl	_init_topo_walk
LBB0_21:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_23
; %bb.22:
	mov	x0, x19
	bl	_line_log_filter
LBB0_23:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_25
; %bb.24:
	mov	x0, x19
	bl	_simplify_merges
LBB0_25:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_27
; %bb.26:
	mov	x0, x19
	bl	_set_children
LBB0_27:
	mov	w0, #0
LBB0_28:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_29:
	mov	w0, #-1
	b	LBB0_28
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SEEN,4,2                       ; @SEEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"treesame"

	.comm	_mark_uninteresting,4,2         ; @mark_uninteresting
	.comm	_FOR_EACH_OBJECT_PROMISOR_ONLY,4,2 ; @FOR_EACH_OBJECT_PROMISOR_ONLY
	.comm	_REVISION_WALK_NO_WALK_UNSORTED,8,3 ; @REVISION_WALK_NO_WALK_UNSORTED
.subsections_via_symbols
