	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_refs_rename_ref_available      ## -- Begin function refs_rename_ref_available
	.p2align	4, 0x90
_refs_rename_ref_available:             ## @refs_rename_ref_available
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	_STRING_LIST_INIT_NODUP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	leaq	-40(%rbp), %r15
	movq	%r15, %rdi
	callq	_string_list_insert
	leaq	-32(%rbp), %r8
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	movq	%r15, %rcx
	callq	_refs_verify_refname_available
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	-32(%rbp), %esi
	leaq	L_.str(%rip), %rdi
	callq	_error
LBB0_2:
	xorl	%ebx, %ebx
	testl	%r14d, %r14d
	sete	%bl
	leaq	-40(%rbp), %rdi
	xorl	%esi, %esi
	callq	_string_list_clear
	leaq	-32(%rbp), %rdi
	callq	_strbuf_release
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRING_LIST_INIT_NODUP,4,2     ## @STRING_LIST_INIT_NODUP
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_refs_rename_ref_available      ; -- Begin function refs_rename_ref_available
	.p2align	2
_refs_rename_ref_available:             ; @refs_rename_ref_available
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x8, _STRING_LIST_INIT_NODUP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRING_LIST_INIT_NODUP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh3:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp]
	add	x0, sp, #8
	bl	_string_list_insert
	add	x3, sp, #8
	mov	x4, sp
	mov	x0, x20
	mov	x1, x19
	mov	x2, #0
	bl	_refs_verify_refname_available
	mov	x19, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w1, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
LBB0_2:
	cmp	w19, #0
	cset	w19, eq
	add	x0, sp, #8
	mov	w1, #0
	bl	_string_list_clear
	mov	x0, sp
	bl	_strbuf_release
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_STRING_LIST_INIT_NODUP,4,2     ; @STRING_LIST_INIT_NODUP
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

.subsections_via_symbols
