	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prepare_bases
_prepare_bases:                         ## @prepare_bases
	.cfi_startproc
## %bb.0:
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.1:
	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	%ecx, %r12d
	movq	%rdx, %rbx
	movq	%rdi, %r15
	leaq	-48(%rbp), %rdi
	movq	%rsi, %r13
	callq	_init_commit_base
	movq	_the_repository@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-56(%rbp), %r14
	movq	%r14, %rsi
	callq	_repo_diff_setup
	movl	$1, -56(%rbp)
	movq	%r14, %rdi
	callq	_diff_setup_done
	leaq	20(%r15), %rdi
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	leaq	4(%r13), %rsi
	callq	_oidcpy
	movq	_the_repository@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-64(%rbp), %rsi
	xorl	%edx, %edx
	callq	_repo_init_revisions
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, -64(%rbp)
	testl	%r12d, %r12d
	jle	LBB0_4
## %bb.2:
	movl	%r12d, %r12d
	xorl	%r13d, %r13d
	leaq	-48(%rbp), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_UNINTERESTING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movq	(%rbx,%r13,8), %rsi
	andl	%eax, (%rsi)
	leaq	-64(%rbp), %rdi
	leaq	L_.str(%rip), %rdx
	callq	_add_pending_object
	movq	(%rbx,%r13,8), %rsi
	movq	%r14, %rdi
	callq	_commit_base_at
	movl	$1, (%rax)
	incq	%r13
	cmpq	%r13, %r12
	jne	LBB0_3
LBB0_4:
	movq	_UNINTERESTING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	orl	%eax, (%rsi)
	leaq	L_.str.1(%rip), %rdx
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_add_pending_object
	movq	%rbx, %rdi
	callq	_prepare_revision_walk
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_die
LBB0_6:
	leaq	-64(%rbp), %rdi
	callq	_get_revision
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:
	movq	%rax, %r14
	leaq	-48(%rbp), %rbx
	leaq	-80(%rbp), %r12
	leaq	-64(%rbp), %r13
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%r15), %rdi
	movl	(%r15), %esi
	incl	%esi
	movl	16(%r15), %edx
	callq	_ALLOC_GROW
	movslq	(%r15), %rdi
	shlq	$2, %rdi
	addq	8(%r15), %rdi
	movq	%r12, %rsi
	callq	_oidcpy
	incl	(%r15)
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r13, %rdi
	callq	_get_revision
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_13
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_commit_base_at
	cmpl	$0, (%rax)
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%r14, %rdi
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	_commit_patch_id
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_die
	jmp	LBB0_11
LBB0_13:
	leaq	-48(%rbp), %rdi
	callq	_clear_commit_base
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
LBB0_14:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_the_repository,4,2             ## @the_repository
	.comm	_UNINTERESTING,4,2              ## @UNINTERESTING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rev_list"

L_.str.1:                               ## @.str.1
	.asciz	"base"

L_.str.2:                               ## @.str.2
	.asciz	"revision walk setup failed"

L_.str.3:                               ## @.str.3
	.asciz	"cannot get patch id"

	.no_dead_strip	_prepare_bases
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prepare_bases
_prepare_bases:                         ; @prepare_bases
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_14
; %bb.1:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x22, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	add	x0, sp, #8
	bl	_init_commit_base
Lloh0:
	adrp	x24, _the_repository@GOTPAGE
Lloh1:
	ldr	x24, [x24, _the_repository@GOTPAGEOFF]
	ldr	w0, [x24]
	add	x1, sp, #16
	bl	_repo_diff_setup
	mov	w23, #1
	str	w23, [sp, #16]
	add	x0, sp, #16
	bl	_diff_setup_done
	add	x0, x19, #20
	add	x1, x20, #4
	bl	_oidcpy
	ldr	w0, [x24]
	add	x1, sp, #24
	mov	x2, #0
	bl	_repo_init_revisions
	movi.2s	v0, #1
	str	d0, [sp, #24]
Lloh2:
	adrp	x24, _UNINTERESTING@GOTPAGE
Lloh3:
	ldr	x24, [x24, _UNINTERESTING@GOTPAGEOFF]
	cmp	w22, #1
	b.lt	LBB0_4
; %bb.2:
	mov	w25, w22
Lloh4:
	adrp	x22, l_.str@PAGE
Lloh5:
	add	x22, x22, l_.str@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	ldr	x1, [x21]
	ldr	w9, [x1]
	bic	w8, w9, w8
	str	w8, [x1]
	add	x0, sp, #24
	mov	x2, x22
	bl	_add_pending_object
	ldr	x1, [x21], #8
	add	x0, sp, #8
	bl	_commit_base_at
	str	w23, [x0]
	subs	x25, x25, #1
	b.ne	LBB0_3
LBB0_4:
	ldr	w8, [x24]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #24
	mov	x1, x20
	bl	_add_pending_object
	add	x0, sp, #24
	bl	_prepare_revision_walk
	cbz	x0, LBB0_6
; %bb.5:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	bl	_die
LBB0_6:
	add	x0, sp, #24
	bl	_get_revision
	cbz	x0, LBB0_13
; %bb.7:
	mov	x21, x0
Lloh10:
	adrp	x20, l_.str.3@PAGE
Lloh11:
	add	x20, x20, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [x19, #8]
	ldr	w8, [x19]
	add	w1, w8, #1
	ldr	w2, [x19, #16]
	bl	_ALLOC_GROW
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	add	x0, x8, x9, lsl #2
	mov	x1, sp
	bl	_oidcpy
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x0, sp, #24
	bl	_get_revision
	mov	x21, x0
	cbz	x0, LBB0_13
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	x1, x21
	bl	_commit_base_at
	ldr	w8, [x0]
	cbnz	w8, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x1, sp, #16
	mov	x2, sp
	mov	x0, x21
	mov	w3, #0
	mov	w4, #1
	bl	_commit_patch_id
	cbz	x0, LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x20
	bl	__
	bl	_die
	b	LBB0_8
LBB0_13:
	add	x0, sp, #8
	bl	_clear_commit_base
	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
	add	sp, sp, #112
LBB0_14:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	.cfi_same_value w23
	.cfi_same_value w24
	.cfi_same_value w25
	.cfi_same_value w26
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_the_repository,4,2             ; @the_repository
	.comm	_UNINTERESTING,4,2              ; @UNINTERESTING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rev_list"

l_.str.1:                               ; @.str.1
	.asciz	"base"

l_.str.2:                               ; @.str.2
	.asciz	"revision walk setup failed"

l_.str.3:                               ; @.str.3
	.asciz	"cannot get patch id"

	.no_dead_strip	_prepare_bases
.subsections_via_symbols
