	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function name_rev
_name_rev:                              ## @name_rev
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r13d
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	16(%rbp), %ebx
	callq	_get_commit_rev_name
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_parse_commit
	movq	(%r14), %rax
	movq	_cutoff@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_16
## %bb.1:
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.3:
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_xstrfmt
	movq	%rax, %r12
	testl	%r13d, %r13d
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	movl	%r13d, %esi
	callq	_die
LBB0_5:
	movq	%r12, %rax
	jmp	LBB0_6
LBB0_2:
	xorl	%eax, %eax
LBB0_6:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	testq	%r15, %r15
	je	LBB0_7
## %bb.8:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	%ebx, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_is_better_name
	testq	%rax, %rax
	jne	LBB0_9
## %bb.17:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
LBB0_7:
	movl	$4, %edi
	callq	_xmalloc
	movq	%rax, %r15
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_set_commit_rev_name
LBB0_9:
	movq	%r12, (%r15)
	movl	%ebx, 20(%r15)
	movl	%r13d, 8(%r15)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, 12(%r15)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 16(%r15)
	movq	8(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.10:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	1(%rax), %r8d
	leal	1(%r13), %ecx
	movq	(%rbx), %rdi
	movl	$0, (%rsp)
	movq	%r12, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_name_rev
	movq	8(%rbx), %r14
	testq	%r14, %r14
	je	LBB0_16
## %bb.11:
	movl	$2, %ebx
	movq	_MERGE_TRAVERSAL_WEIGHT@GOTPCREL(%rip), %r15
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_12 Depth=1
	leaq	L_.str.3(%rip), %rdi
	movq	%r12, %rdx
	movl	%r13d, %ecx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_xstrfmt
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	(%r14), %rdi
	movl	(%r15), %r8d
	addl	-56(%rbp), %r8d                 ## 4-byte Folded Reload
	movl	$0, (%rsp)
	movq	%rax, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	xorl	%ecx, %ecx
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_name_rev
	movq	8(%r14), %r14
	incl	%ebx
	testq	%r14, %r14
	je	LBB0_16
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	leaq	L_.str.2(%rip), %rsi
	leaq	-72(%rbp), %rdx
	callq	_strip_suffix
	movl	-72(%rbp), %esi
	testl	%r13d, %r13d
	jg	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	leaq	L_.str.4(%rip), %rdi
	movq	%r12, %rdx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_xstrfmt
	jmp	LBB0_15
LBB0_16:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cutoff,8,3                     ## @cutoff
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s^0"

L_.str.1:                               ## @.str.1
	.asciz	"generation: %d, but deref?"

L_.str.2:                               ## @.str.2
	.asciz	"^0"

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

L_.str.4:                               ## @.str.4
	.asciz	"%.*s^%d"

	.comm	_MERGE_TRAVERSAL_WEIGHT,4,2     ## @MERGE_TRAVERSAL_WEIGHT
	.no_dead_strip	_name_rev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function name_rev
_name_rev:                              ; @name_rev
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x26, x6
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	bl	_get_commit_rev_name
	mov	x25, x0
	mov	x0, x24
	bl	_parse_commit
	ldr	x8, [x24]
Lloh0:
	adrp	x9, _cutoff@GOTPAGE
Lloh1:
	ldr	x9, [x9, _cutoff@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_16
; %bb.1:
	cbz	w26, LBB0_7
; %bb.2:
	str	x23, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_xstrfmt
	mov	x23, x0
	cbz	w21, LBB0_4
; %bb.3:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_die
LBB0_4:
	mov	x26, x23
	cbz	x25, LBB0_8
LBB0_5:
	mov	x0, x25
	mov	x1, x22
	mov	x2, x20
	mov	x3, x19
	bl	_is_better_name
	cbnz	x0, LBB0_9
; %bb.6:
	mov	x0, x26
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_free
LBB0_7:
	mov	x26, #0
	cbnz	x25, LBB0_5
LBB0_8:
	mov	w0, #4
	bl	_xmalloc
	mov	x25, x0
	mov	x0, x24
	mov	x1, x25
	bl	_set_commit_rev_name
LBB0_9:
	str	x23, [x25]
	stp	w21, w20, [x25, #8]
	stp	w19, w22, [x25, #16]
	ldr	x24, [x24, #8]
	cbz	x24, LBB0_16
; %bb.10:
	add	w4, w20, #1
	add	w3, w21, #1
	ldr	x0, [x24]
	mov	x1, x23
	mov	x2, x22
	mov	x5, x19
	mov	w6, #0
	bl	_name_rev
	ldr	x27, [x24, #8]
	cbz	x27, LBB0_16
; %bb.11:
	mov	w28, #2
Lloh7:
	adrp	x24, l_.str.2@PAGE
Lloh8:
	add	x24, x24, l_.str.2@PAGEOFF
Lloh9:
	adrp	x25, l_.str.3@PAGE
Lloh10:
	add	x25, x25, l_.str.3@PAGEOFF
Lloh11:
	adrp	x26, _MERGE_TRAVERSAL_WEIGHT@GOTPAGE
Lloh12:
	ldr	x26, [x26, _MERGE_TRAVERSAL_WEIGHT@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	stp	x21, x28, [sp, #16]
	stp	x8, x23, [sp]
	mov	x0, x25
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	bl	_xstrfmt
	mov	x1, x0
	ldr	x0, [x27]
	ldr	w8, [x26]
	add	w4, w8, w20
	mov	x2, x22
	mov	w3, #0
	mov	x5, x19
	mov	w6, #0
	bl	_name_rev
	ldr	x27, [x27, #8]
	add	w28, w28, #1
	cbz	x27, LBB0_16
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #40
	mov	x0, x23
	mov	x1, x24
	bl	_strip_suffix
	ldr	w8, [sp, #40]
	cmp	w21, #1
	b.ge	LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x9, x28
	stp	x23, x9, [sp, #8]
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	str	x8, [sp]
Lloh13:
	adrp	x0, l_.str.4@PAGE
Lloh14:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_13
LBB0_16:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_cutoff,8,3                     ; @cutoff
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s^0"

l_.str.1:                               ; @.str.1
	.asciz	"generation: %d, but deref?"

l_.str.2:                               ; @.str.2
	.asciz	"^0"

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

l_.str.4:                               ; @.str.4
	.asciz	"%.*s^%d"

	.comm	_MERGE_TRAVERSAL_WEIGHT,4,2     ; @MERGE_TRAVERSAL_WEIGHT
	.no_dead_strip	_name_rev
.subsections_via_symbols
