	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_repo_get_oid_mb                ## -- Begin function repo_get_oid_mb
	.p2align	4, 0x90
_repo_get_oid_mb:                       ## @repo_get_oid_mb
	.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	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%rax, %r13
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	cmpq	%rbx, %rax
	je	LBB0_2
## %bb.3:
	movl	%r13d, %r12d
	subl	%ebx, %r12d
	leaq	-64(%rbp), %r14
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_strbuf_init
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_strbuf_add
	movq	-64(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	callq	_repo_get_oid_committish
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_strbuf_release
	testl	%r12d, %r12d
	jne	LBB0_12
	jmp	LBB0_5
LBB0_13:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_repo_get_oid                   ## TAILCALL
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	callq	_repo_get_oid
	movl	%eax, %r12d
	testl	%r12d, %r12d
	jne	LBB0_12
LBB0_5:
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_lookup_commit_reference_gently
	movl	$-1, %r12d
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	movq	%rax, %rbx
	movq	%r13, %rax
	addq	$3, %rax
	cmpb	$0, 3(%r13)
	leaq	L_.str.1(%rip), %rsi
	cmovneq	%rax, %rsi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	callq	_repo_get_oid_committish
	testl	%eax, %eax
	jne	LBB0_12
## %bb.7:
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_lookup_commit_reference_gently
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_repo_get_merge_bases
	movq	%rax, %rbx
	movl	$-1, %r12d
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	cmpq	$0, 8(%rbx)
	jne	LBB0_11
## %bb.10:
	movq	(%rbx), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_oidcpy
	xorl	%r12d, %r12d
LBB0_11:
	movq	%rbx, %rdi
	callq	_free_commit_list
LBB0_12:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"..."

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_repo_get_oid_mb                ; -- Begin function repo_get_oid_mb
	.p2align	2
_repo_get_oid_mb:                       ; @repo_get_oid_mb
	.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, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_strstr
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	cmp	x0, x22
	b.eq	LBB0_4
; %bb.2:
	sub	w23, w21, w22
	mov	x0, sp
	mov	x1, x23
	bl	_strbuf_init
	mov	x0, sp
	mov	x1, x22
	mov	x2, x23
	bl	_strbuf_add
	ldr	x1, [sp]
	add	x2, sp, #8
	mov	x0, x20
	bl	_repo_get_oid_committish
	mov	x22, x0
	mov	x0, sp
	bl	_strbuf_release
	cbnz	w22, LBB0_8
	b	LBB0_5
LBB0_3:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	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
	b	_repo_get_oid
LBB0_4:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #8
	mov	x0, x20
	bl	_repo_get_oid
	mov	x22, x0
	cbnz	w22, LBB0_8
LBB0_5:
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #0
	bl	_lookup_commit_reference_gently
	cbz	x0, LBB0_7
; %bb.6:
	mov	x22, x0
	ldrb	w8, [x21, #3]!
Lloh4:
	adrp	x9, l_.str.1@PAGE
Lloh5:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	w8, #0
	csel	x1, x9, x21, eq
	add	x2, sp, #8
	mov	x0, x20
	bl	_repo_get_oid_committish
	cbz	w0, LBB0_9
LBB0_7:
	mov	w22, #-1
LBB0_8:
	mov	x0, x22
	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_9:
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #0
	bl	_lookup_commit_reference_gently
	cbz	x0, LBB0_7
; %bb.10:
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	bl	_repo_get_merge_bases
	mov	x20, x0
	cbz	x0, LBB0_12
; %bb.11:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_13
LBB0_12:
	mov	w22, #-1
	b	LBB0_14
LBB0_13:
	ldr	x1, [x20]
	mov	x0, x19
	bl	_oidcpy
	mov	w22, #0
LBB0_14:
	mov	x0, x20
	bl	_free_commit_list
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"..."

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

.subsections_via_symbols
