	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_refs_verify_refname_available  ## -- Begin function refs_verify_refname_available
	.p2align	4, 0x90
_refs_verify_refname_available:         ## @refs_verify_refname_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -112(%rbp)
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, %rdi
	callq	_assert
	movq	%r15, %rdi
	callq	_strlen
	leaq	1(%rax), %rsi
	leaq	-64(%rbp), %rdi
	callq	_strbuf_grow
	movq	%r15, %rdi
	movl	$47, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %r14
	leaq	-64(%rbp), %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movq	%r14, %rdi
	movl	$47, %esi
	callq	_strchr
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	-64(%rbp), %rsi
	addq	%r15, %rsi
	movl	%r14d, %edx
	subl	%esi, %edx
	movq	%rbx, %rdi
	callq	_strbuf_add
	testq	%r13, %r13
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rsi
	movq	%r13, %rdi
	callq	_string_list_has_string
	testq	%rax, %rax
	jne	LBB0_9
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	leaq	-88(%rbp), %rdx
	leaq	-112(%rbp), %rcx
	leaq	-92(%rbp), %r8
	callq	_refs_read_raw_ref
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%r12, %r12
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rsi
	movq	%r12, %rdi
	callq	_string_list_has_string
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movq	-56(%rbp), %rcx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	movq	%r15, %rdx
	jmp	LBB0_20
LBB0_10:
	movslq	-64(%rbp), %rsi
	addq	%r15, %rsi
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_strbuf_addstr
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_strbuf_addch
	movq	-56(%rbp), %rsi
	movq	_DO_FOR_EACH_INCLUDE_BROKEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_refs_ref_iterator_begin
	movq	%rax, %rbx
	movq	_ITER_OK@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_ref_iterator_advance
	cmpl	(%r14), %eax
	jne	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	testq	%r13, %r13
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	(%rbx), %rsi
	movq	%r13, %rdi
	callq	_string_list_has_string
	testq	%rax, %rax
	jne	LBB0_11
LBB0_14:
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	(%rbx), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	movq	%r15, %rcx
	callq	_strbuf_addf
	movq	%rbx, %rdi
	callq	_ref_iterator_abort
	jmp	LBB0_21
LBB0_15:
	movq	_ITER_DONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_17
## %bb.16:
	leaq	L_.str.2(%rip), %rdi
	callq	_BUG
LBB0_17:
	movq	-56(%rbp), %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_find_descendant_ref
	testq	%rax, %rax
	je	LBB0_18
## %bb.19:
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	jmp	LBB0_20
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	-56(%rbp), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	movq	%r15, %rcx
LBB0_20:
	callq	_strbuf_addf
LBB0_21:
	movl	$-1, %ebx
LBB0_22:
	leaq	-112(%rbp), %rdi
	callq	_strbuf_release
	leaq	-64(%rbp), %rdi
	callq	_strbuf_release
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	xorl	%ebx, %ebx
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,16,3               ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"'%s' exists; cannot create '%s'"

L_.str.1:                               ## @.str.1
	.asciz	"cannot process '%s' and '%s' at the same time"

	.comm	_DO_FOR_EACH_INCLUDE_BROKEN,4,2 ## @DO_FOR_EACH_INCLUDE_BROKEN
	.comm	_ITER_OK,4,2                    ## @ITER_OK
	.comm	_ITER_DONE,4,2                  ## @ITER_DONE
L_.str.2:                               ## @.str.2
	.asciz	"error while iterating over references"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_refs_verify_refname_available  ; -- Begin function refs_verify_refname_available
	.p2align	2
_refs_verify_refname_available:         ; @refs_verify_refname_available
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	q0, [x8]
	stp	q0, q0, [sp, #16]
	mov	x0, x4
	bl	_assert
	mov	x0, x19
	bl	_strlen
	add	x1, x0, #1
	add	x0, sp, #32
	bl	_strbuf_grow
	mov	x0, x19
	mov	w1, #47
	bl	_strchr
	cbz	x0, LBB0_9
; %bb.1:
	mov	x24, x0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x24, #1
	mov	w1, #47
	bl	_strchr
	mov	x24, x0
	cbz	x0, LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [sp, #32]
	add	x1, x19, x8
	sub	w2, w24, w1
	add	x0, sp, #32
	bl	_strbuf_add
	cbz	x21, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [sp, #40]
	mov	x0, x21
	bl	_string_list_has_string
	cbnz	x0, LBB0_2
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [sp, #40]
	add	x2, sp, #8
	add	x3, sp, #16
	add	x4, sp, #4
	mov	x0, x23
	bl	_refs_read_raw_ref
	cbz	w0, LBB0_18
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	x22, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [sp, #40]
	mov	x0, x22
	bl	_string_list_has_string
	cbz	x0, LBB0_2
; %bb.8:
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x1, x0
	ldr	x3, [sp, #40]
	mov	x0, x20
	mov	x2, x19
	b	LBB0_19
LBB0_9:
	ldrsw	x8, [sp, #32]
	add	x1, x19, x8
	add	x0, sp, #32
	bl	_strbuf_addstr
	add	x0, sp, #32
	mov	w1, #47
	bl	_strbuf_addch
	ldr	x1, [sp, #40]
Lloh5:
	adrp	x8, _DO_FOR_EACH_INCLUDE_BROKEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DO_FOR_EACH_INCLUDE_BROKEN@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x0, x23
	mov	w2, #0
	bl	_refs_ref_iterator_begin
	mov	x23, x0
Lloh8:
	adrp	x24, _ITER_OK@GOTPAGE
Lloh9:
	ldr	x24, [x24, _ITER_OK@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_ref_iterator_advance
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	cbz	x21, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x1, [x23]
	mov	x0, x21
	bl	_string_list_has_string
	cbnz	x0, LBB0_10
LBB0_13:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x1, x0
	ldr	x2, [x23]
	mov	x0, x20
	mov	x3, x19
	bl	_strbuf_addf
	mov	x0, x23
	bl	_ref_iterator_abort
	b	LBB0_20
LBB0_14:
Lloh12:
	adrp	x8, _ITER_DONE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ITER_DONE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_16
; %bb.15:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_BUG
LBB0_16:
	ldr	x0, [sp, #40]
	mov	x1, x22
	mov	x2, x21
	bl	_find_descendant_ref
	cbz	x0, LBB0_22
; %bb.17:
	mov	x21, x0
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x1, x0
	mov	x0, x20
	mov	x2, x19
	mov	x3, x21
	b	LBB0_19
LBB0_18:
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x1, x0
	ldr	x2, [sp, #40]
	mov	x0, x20
	mov	x3, x19
LBB0_19:
	bl	_strbuf_addf
LBB0_20:
	mov	w19, #-1
LBB0_21:
	add	x0, sp, #16
	bl	_strbuf_release
	add	x0, sp, #32
	bl	_strbuf_release
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_22:
	mov	w19, #0
	b	LBB0_21
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,16,3               ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"'%s' exists; cannot create '%s'"

l_.str.1:                               ; @.str.1
	.asciz	"cannot process '%s' and '%s' at the same time"

	.comm	_DO_FOR_EACH_INCLUDE_BROKEN,4,2 ; @DO_FOR_EACH_INCLUDE_BROKEN
	.comm	_ITER_OK,4,2                    ; @ITER_OK
	.comm	_ITER_DONE,4,2                  ; @ITER_DONE
l_.str.2:                               ; @.str.2
	.asciz	"error while iterating over references"

.subsections_via_symbols
