	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function append_one_rev
_append_one_rev:                        ## @append_one_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	-32(%rbp), %rsi
	callq	_get_oid
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	movl	$42, %esi
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	movl	$63, %esi
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movl	$91, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_9
LBB0_5:
	movq	_ref_name_cnt@GOTPCREL(%rip), %r15
	movl	(%r15), %r14d
	movq	_match_ref_pattern@GOTPCREL(%rip), %rax
	movq	%rbx, (%rax)
	movq	%rbx, %rdi
	callq	_count_slashes
	movq	_match_ref_slash@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_append_matching_ref@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_for_each_ref
	movl	(%r15), %esi
	cmpl	%esi, %r14d
	jne	LBB0_8
## %bb.6:
	movq	_MAX_REVS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jge	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_error
	movl	(%r15), %esi
LBB0_8:
	movl	%r14d, %edi
	callq	_sort_ref_range
	jmp	LBB0_10
LBB0_1:
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_append_ref
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	callq	_die
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ref_name_cnt,4,2               ## @ref_name_cnt
	.comm	_match_ref_pattern,8,3          ## @match_ref_pattern
	.comm	_match_ref_slash,4,2            ## @match_ref_slash
	.comm	_append_matching_ref,4,2        ## @append_matching_ref
	.comm	_MAX_REVS,4,2                   ## @MAX_REVS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no matching refs with %s"

L_.str.1:                               ## @.str.1
	.asciz	"bad sha1 reference %s"

	.no_dead_strip	_append_one_rev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function append_one_rev
_append_one_rev:                        ; @append_one_rev
	.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, x0
	add	x1, sp, #8
	bl	_get_oid
	cbz	w0, LBB0_7
; %bb.1:
	mov	x0, x19
	mov	w1, #42
	bl	_strchr
	cbnz	x0, LBB0_4
; %bb.2:
	mov	x0, x19
	mov	w1, #63
	bl	_strchr
	cbnz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #91
	bl	_strchr
	cbz	x0, LBB0_9
LBB0_4:
Lloh0:
	adrp	x21, _ref_name_cnt@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ref_name_cnt@GOTPAGEOFF]
	ldr	w20, [x21]
Lloh2:
	adrp	x8, _match_ref_pattern@GOTPAGE
Lloh3:
	ldr	x8, [x8, _match_ref_pattern@GOTPAGEOFF]
Lloh4:
	str	x19, [x8]
	mov	x0, x19
	bl	_count_slashes
Lloh5:
	adrp	x8, _match_ref_slash@GOTPAGE
Lloh6:
	ldr	x8, [x8, _match_ref_slash@GOTPAGEOFF]
Lloh7:
	str	w0, [x8]
Lloh8:
	adrp	x8, _append_matching_ref@GOTPAGE
Lloh9:
	ldr	x8, [x8, _append_matching_ref@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_for_each_ref
	ldr	w1, [x21]
Lloh11:
	adrp	x8, _MAX_REVS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MAX_REVS@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w20, w1
	ccmp	w1, w8, #0, eq
	b.ge	LBB0_6
; %bb.5:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x1, x19
	bl	_error
	ldr	w1, [x21]
LBB0_6:
	mov	x0, x20
	bl	_sort_ref_range
	b	LBB0_8
LBB0_7:
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #0
	bl	_append_ref
LBB0_8:
	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
LBB0_9:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_die
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ref_name_cnt,4,2               ; @ref_name_cnt
	.comm	_match_ref_pattern,8,3          ; @match_ref_pattern
	.comm	_match_ref_slash,4,2            ; @match_ref_slash
	.comm	_append_matching_ref,4,2        ; @append_matching_ref
	.comm	_MAX_REVS,4,2                   ; @MAX_REVS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no matching refs with %s"

l_.str.1:                               ; @.str.1
	.asciz	"bad sha1 reference %s"

	.no_dead_strip	_append_one_rev
.subsections_via_symbols
