	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_base_commit
_get_base_commit:                       ## @get_base_commit
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	movq	%rbx, %rdi
	callq	_lookup_commit_reference_by_name
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_16
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	xorl	%r14d, %r14d
	movl	%eax, %edi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_die
	jmp	LBB0_16
LBB0_12:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_5
LBB0_4:
	movq	_base_auto@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_14
LBB0_5:
	xorl	%edi, %edi
	callq	_branch_get
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_branch_get_upstream
	testq	%rax, %rax
	je	LBB0_15
## %bb.6:
	movq	%rax, %rbx
	leaq	-32(%rbp), %rsi
	movq	%rax, %rdi
	callq	_get_oid
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_die
LBB0_8:
	leaq	L_.str.3(%rip), %rsi
	leaq	-32(%rbp), %rdi
	callq	_lookup_commit_or_die
	movq	%rax, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_get_merge_bases_many
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	cmpq	$0, 8(%rbx)
	je	LBB0_11
LBB0_10:
	leaq	L_.str.4(%rip), %rdi
	callq	__
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die
LBB0_11:
	movq	(%rbx), %r14
	movq	%rbx, %rdi
	callq	_free_commit_list
	jmp	LBB0_16
LBB0_14:
	xorl	%r14d, %r14d
	jmp	LBB0_16
LBB0_15:
	leaq	L_.str.5(%rip), %rdi
	callq	__
	xorl	%r14d, %r14d
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die
LBB0_16:
	movl	%r15d, %esi
	callq	_ALLOC_ARRAY
	movq	%r14, %rdi
	callq	_in_merge_bases
	testl	%eax, %eax
	jne	LBB0_18
## %bb.17:
	leaq	L_.str.7(%rip), %rdi
	callq	__
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die
LBB0_18:
	callq	_free
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"auto"

L_.str.1:                               ## @.str.1
	.asciz	"unknown commit %s"

	.comm	_base_auto,8,3                  ## @base_auto
L_.str.2:                               ## @.str.2
	.asciz	"failed to resolve '%s' as a valid ref"

L_.str.3:                               ## @.str.3
	.asciz	"upstream base"

L_.str.4:                               ## @.str.4
	.asciz	"could not find exact merge base"

L_.str.5:                               ## @.str.5
	.asciz	"failed to get upstream, if you want to record base commit automatically,\nplease use git branch --set-upstream-to to track a remote branch.\nOr you could specify base commit by --base=<base-commit-id> manually"

L_.str.7:                               ## @.str.7
	.asciz	"base commit should be the ancestor of revision list"

	.no_dead_strip	_get_base_commit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_base_commit
_get_base_commit:                       ; @get_base_commit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x20, x1
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x21
	bl	_lookup_commit_reference_by_name
	mov	x20, x0
	cbnz	x0, LBB0_15
; %bb.3:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	str	x21, [sp]
	bl	_die
	b	LBB0_15
LBB0_4:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _base_auto@GOTPAGE
Lloh7:
	ldr	x8, [x8, _base_auto@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbz	x8, LBB0_14
LBB0_6:
	mov	x0, #0
	bl	_branch_get
	mov	x1, #0
	bl	_branch_get_upstream
	cbz	x0, LBB0_13
; %bb.7:
	mov	x21, x0
	add	x1, sp, #8
	bl	_get_oid
	cbz	x0, LBB0_9
; %bb.8:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	str	x21, [sp]
	bl	_die
LBB0_9:
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x0, sp, #8
	bl	_lookup_commit_or_die
	mov	x1, x19
	mov	x2, x20
	bl	_get_merge_bases_many
	mov	x21, x0
	cbz	x0, LBB0_11
; %bb.10:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_12
LBB0_11:
Lloh13:
	adrp	x0, l_.str.4@PAGE
Lloh14:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	__
	bl	_die
LBB0_12:
	ldr	x20, [x21]
	mov	x0, x21
	bl	_free_commit_list
	b	LBB0_15
LBB0_13:
Lloh15:
	adrp	x0, l_.str.5@PAGE
Lloh16:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	__
	bl	_die
LBB0_14:
	mov	x20, #0
LBB0_15:
	mov	x1, x19
	bl	_ALLOC_ARRAY
	mov	x0, x20
	bl	_in_merge_bases
	cbnz	w0, LBB0_17
; %bb.16:
Lloh17:
	adrp	x0, l_.str.7@PAGE
Lloh18:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	__
	bl	_die
LBB0_17:
	bl	_free
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"auto"

l_.str.1:                               ; @.str.1
	.asciz	"unknown commit %s"

	.comm	_base_auto,8,3                  ; @base_auto
l_.str.2:                               ; @.str.2
	.asciz	"failed to resolve '%s' as a valid ref"

l_.str.3:                               ; @.str.3
	.asciz	"upstream base"

l_.str.4:                               ; @.str.4
	.asciz	"could not find exact merge base"

l_.str.5:                               ; @.str.5
	.asciz	"failed to get upstream, if you want to record base commit automatically,\nplease use git branch --set-upstream-to to track a remote branch.\nOr you could specify base commit by --base=<base-commit-id> manually"

l_.str.7:                               ; @.str.7
	.asciz	"base commit should be the ancestor of revision list"

	.no_dead_strip	_get_base_commit
.subsections_via_symbols
