	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_rev_name
_get_rev_name:                          ## @get_rev_name
	.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
	movq	(%rdi), %rax
	movq	_OBJ_COMMIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.1:
	movq	%rsi, %r14
	callq	_get_commit_rev_name
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	cmpl	$0, 8(%rax)
	movq	(%rax), %rax
	je	LBB0_7
## %bb.4:
	movq	%rax, %rdi
	callq	_strlen
	movl	%eax, %r15d
	cmpl	$3, %eax
	jl	LBB0_6
## %bb.5:
	movq	(%rbx), %rax
	movl	%r15d, %ecx
	leaq	(%rax,%rcx), %rdi
	addq	$-2, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	leal	-2(%r15), %ecx
	testl	%eax, %eax
	cmovnel	%r15d, %ecx
	movl	%ecx, %r15d
LBB0_6:
	movq	%r14, %rdi
	callq	_strbuf_reset
	movq	(%rbx), %rcx
	movl	8(%rbx), %r8d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_strbuf_addf
	movq	(%r14), %rax
	jmp	LBB0_7
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_get_exact_ref_match            ## TAILCALL
LBB0_2:
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OBJ_COMMIT,8,3                 ## @OBJ_COMMIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"^0"

L_.str.1:                               ## @.str.1
	.asciz	"%.*s~%d"

	.no_dead_strip	_get_rev_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_rev_name
_get_rev_name:                          ; @get_rev_name
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _OBJ_COMMIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OBJ_COMMIT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.1:
	mov	x19, x1
	bl	_get_commit_rev_name
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
	ldr	w8, [x0, #8]
	ldr	x0, [x0]
	cbz	w8, LBB0_6
; %bb.3:
	bl	_strlen
	mov	x21, x0
	cmp	w0, #3
	b.lt	LBB0_5
; %bb.4:
	ldr	x8, [x20]
	add	x8, x8, w21, uxtw
	sub	x0, x8, #2
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	sub	w8, w21, #2
	cmp	w0, #0
	csel	w21, w8, w21, eq
LBB0_5:
	mov	x0, x19
	bl	_strbuf_reset
	ldr	x3, [x20]
	ldr	w4, [x20, #8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_strbuf_addf
	ldr	x0, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_get_exact_ref_match
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_OBJ_COMMIT,8,3                 ; @OBJ_COMMIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"^0"

l_.str.1:                               ; @.str.1
	.asciz	"%.*s~%d"

	.no_dead_strip	_get_rev_name
.subsections_via_symbols
