	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_repo_find_unique_abbrev_r      ## -- Begin function repo_find_unique_abbrev_r
	.p2align	4, 0x90
_repo_find_unique_abbrev_r:             ## @repo_find_unique_abbrev_r
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movl	(%rax), %r13d
	testl	%ecx, %ecx
	jns	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_repo_approximate_object_count
	movq	%rax, %rdi
	callq	_msb
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %edi
	movl	$2, %esi
	callq	_DIV_ROUND_UP
	movq	_FALLBACK_DEFAULT_ABBREV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	cmpl	%ebx, %eax
	cmovgl	%eax, %ebx
LBB0_2:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_oid_to_hex_r
	cmpl	%r13d, %ebx
	je	LBB0_7
## %bb.3:
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.4:
	movq	%r15, -56(%rbp)
	movl	%ebx, -80(%rbp)
	movl	%ebx, -76(%rbp)
	movq	%r14, -72(%rbp)
	movq	%r12, -64(%rbp)
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_find_abbrev_len_packed
	movl	-76(%rbp), %edx
	leaq	-104(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_init_object_disambiguation
	testq	%rax, %rax
	js	LBB0_5
## %bb.6:
	movq	_repo_extend_abbrev_len@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movl	$1, -104(%rbp)
	movq	%rbx, -96(%rbp)
	leaq	-104(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_find_short_object_filename
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_finish_object_disambiguation
	movslq	-76(%rbp), %r13
	movb	$0, (%r14,%r13)
	jmp	LBB0_7
LBB0_5:
	movl	$-1, %r13d
LBB0_7:
	movl	%r13d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALLBACK_DEFAULT_ABBREV,4,2    ## @FALLBACK_DEFAULT_ABBREV
	.comm	_repo_extend_abbrev_len,4,2     ## @repo_extend_abbrev_len
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_repo_find_unique_abbrev_r      ; -- Begin function repo_find_unique_abbrev_r
	.p2align	2
_repo_find_unique_abbrev_r:             ; @repo_find_unique_abbrev_r
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x23, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	w21, [x8]
	tbz	w3, #31, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_repo_approximate_object_count
	bl	_msb
	add	w0, w0, #1
	mov	w1, #2
	bl	_DIV_ROUND_UP
Lloh0:
	adrp	x8, _FALLBACK_DEFAULT_ABBREV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALLBACK_DEFAULT_ABBREV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	csel	w23, w0, w8, gt
LBB0_2:
	mov	x0, x19
	mov	x1, x22
	bl	_oid_to_hex_r
	cmp	w23, w21
	ccmp	w23, #0, #4, ne
	b.eq	LBB0_6
; %bb.3:
	stp	x22, x20, [sp, #24]
	stp	w23, w23, [sp, #8]
	str	x19, [sp, #16]
	add	x21, sp, #8
	add	x0, sp, #8
	bl	_find_abbrev_len_packed
	ldr	w2, [sp, #12]
	add	x3, sp, #40
	mov	x0, x20
	mov	x1, x19
	bl	_init_object_disambiguation
	tbnz	x0, #63, LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _repo_extend_abbrev_len@GOTPAGE
Lloh4:
	ldr	x8, [x8, _repo_extend_abbrev_len@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #56]
	mov	w8, #1
	str	w8, [sp, #40]
	str	x21, [sp, #48]
	add	x0, sp, #40
	bl	_find_short_object_filename
	add	x0, sp, #40
	mov	x1, sp
	bl	_finish_object_disambiguation
	ldrsw	x21, [sp, #12]
	strb	wzr, [x19, x21]
	b	LBB0_6
LBB0_5:
	mov	w21, #-1
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FALLBACK_DEFAULT_ABBREV,4,2    ; @FALLBACK_DEFAULT_ABBREV
	.comm	_repo_extend_abbrev_len,4,2     ; @repo_extend_abbrev_len
.subsections_via_symbols
