	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function append_ref
_append_ref:                            ## @append_ref
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rdi, %r12
	movq	_the_repository@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %edx
	callq	_lookup_commit_reference_gently
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	_ref_name_cnt@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%r14d, %r14d
	jne	LBB0_6
## %bb.2:
	testl	%eax, %eax
	jle	LBB0_6
## %bb.3:
	xorl	%ebx, %ebx
	movq	_ref_name@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_6:
	movq	_MAX_REVS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	cmpl	%eax, %edx
	jle	LBB0_7
## %bb.8:
	movq	%r12, %rdi
	callq	_xstrdup
	movq	_ref_name@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movslq	(%r15), %rsi
	leaq	1(%rsi), %rdi
	movl	%edi, (%r15)
	movq	%rax, (%rdx,%rsi,8)
	movq	(%rcx), %rax
	movq	$0, 8(%rax,%rsi,8)
	jmp	LBB0_9
LBB0_7:
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_Q_
	movl	(%rbx), %edx
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_warning
LBB0_9:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_the_repository,4,2             ## @the_repository
	.comm	_ref_name_cnt,4,2               ## @ref_name_cnt
	.comm	_ref_name,8,3                   ## @ref_name
	.comm	_MAX_REVS,4,2                   ## @MAX_REVS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ignoring %s; cannot handle more than %d ref"

L_.str.1:                               ## @.str.1
	.asciz	"ignoring %s; cannot handle more than %d refs"

	.no_dead_strip	_append_ref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function append_ref
_append_ref:                            ; @append_ref
	.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
	mov	x20, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _the_repository@GOTPAGE
Lloh1:
	ldr	x8, [x8, _the_repository@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w2, #1
	bl	_lookup_commit_reference_gently
	cbz	x0, LBB0_9
; %bb.1:
Lloh3:
	adrp	x21, _ref_name_cnt@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ref_name_cnt@GOTPAGEOFF]
	ldr	w8, [x21]
	cbnz	w20, LBB0_6
; %bb.2:
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x20, #0
Lloh5:
	adrp	x22, _ref_name@GOTPAGE
Lloh6:
	ldr	x22, [x22, _ref_name@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	x1, [x8, x20, lsl #3]
	mov	x0, x19
	bl	_strcmp
	cbz	w0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x21]
	cmp	x20, x8
	b.lt	LBB0_4
LBB0_6:
Lloh7:
	adrp	x20, _MAX_REVS@GOTPAGE
Lloh8:
	ldr	x20, [x20, _MAX_REVS@GOTPAGEOFF]
	ldr	w2, [x20]
	cmp	w2, w8
	b.le	LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_xstrdup
Lloh9:
	adrp	x8, _ref_name@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ref_name@GOTPAGEOFF]
	ldr	x9, [x8]
	ldrsw	x10, [x21]
	add	x11, x10, #1
	str	w11, [x21]
	str	x0, [x9, x10, lsl #3]
	ldr	x8, [x8]
	str	xzr, [x8, x11, lsl #3]
	b	LBB0_9
LBB0_8:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_Q_
	ldr	w2, [x20]
	mov	x1, x19
	bl	_warning
LBB0_9:
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_the_repository,4,2             ; @the_repository
	.comm	_ref_name_cnt,4,2               ; @ref_name_cnt
	.comm	_ref_name,8,3                   ; @ref_name
	.comm	_MAX_REVS,4,2                   ; @MAX_REVS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ignoring %s; cannot handle more than %d ref"

l_.str.1:                               ; @.str.1
	.asciz	"ignoring %s; cannot handle more than %d refs"

	.no_dead_strip	_append_ref
.subsections_via_symbols
