	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_refname
_parse_refname:                         ## @parse_refname
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	_line_termination@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	(%rsi), %rax
	je	LBB0_2
## %bb.1:
	leaq	-16(%rbp), %rsi
	movq	%rax, %rdi
	callq	_parse_arg
	movl	-12(%rbp), %ecx
	jmp	LBB0_3
LBB0_2:
	leaq	-16(%rbp), %rdi
	movq	%rax, %rsi
	callq	_strbuf_addstr
	movslq	-12(%rbp), %rcx
	movq	%rcx, %rax
	addq	(%rbx), %rax
LBB0_3:
	movq	%rax, (%rbx)
	testl	%ecx, %ecx
	je	LBB0_4
## %bb.5:
	movl	-16(%rbp), %edi
	movq	_REFNAME_ALLOW_ONELEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_check_refname_format
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	-16(%rbp), %esi
	leaq	L_.str(%rip), %rdi
	callq	_die
LBB0_7:
	leaq	-16(%rbp), %rdi
	xorl	%esi, %esi
	callq	_strbuf_detach
	jmp	LBB0_8
LBB0_4:
	leaq	-16(%rbp), %rdi
	callq	_strbuf_release
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,8,2                ## @STRBUF_INIT
	.comm	_line_termination,8,3           ## @line_termination
	.comm	_REFNAME_ALLOW_ONELEVEL,4,2     ## @REFNAME_ALLOW_ONELEVEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid ref format: %s"

	.no_dead_strip	_parse_refname
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_refname
_parse_refname:                         ; @parse_refname
	.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, x1
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
Lloh3:
	adrp	x8, _line_termination@GOTPAGE
Lloh4:
	ldr	x8, [x8, _line_termination@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x8]
	ldr	x8, [x1]
	cbz	x9, LBB0_5
; %bb.1:
	add	x1, sp, #8
	mov	x0, x8
	bl	_parse_arg
	ldr	w8, [sp, #12]
	str	x0, [x19]
	cbz	w8, LBB0_6
LBB0_2:
	ldr	w0, [sp, #8]
Lloh6:
	adrp	x8, _REFNAME_ALLOW_ONELEVEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REFNAME_ALLOW_ONELEVEL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_check_refname_format
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w1, [sp, #8]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die
LBB0_4:
	add	x0, sp, #8
	mov	x1, #0
	bl	_strbuf_detach
	b	LBB0_7
LBB0_5:
	add	x0, sp, #8
	mov	x1, x8
	bl	_strbuf_addstr
	ldrsw	x8, [sp, #12]
	ldr	x9, [x19]
	add	x0, x9, x8
	str	x0, [x19]
	cbnz	w8, LBB0_2
LBB0_6:
	add	x0, sp, #8
	bl	_strbuf_release
	mov	x0, #0
LBB0_7:
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,8,2                ; @STRBUF_INIT
	.comm	_line_termination,8,3           ; @line_termination
	.comm	_REFNAME_ALLOW_ONELEVEL,4,2     ; @REFNAME_ALLOW_ONELEVEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid ref format: %s"

	.no_dead_strip	_parse_refname
.subsections_via_symbols
