	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_strbuf_check_branch_ref        ## -- Begin function strbuf_check_branch_ref
	.p2align	4, 0x90
_strbuf_check_branch_ref:               ## @strbuf_check_branch_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_startup_info@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_INTERPRET_BRANCH_LOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_strbuf_branchname
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_strbuf_addstr
LBB0_3:
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$11, %r8d
	callq	_strbuf_splice
	cmpb	$45, (%r14)
	je	LBB0_5
## %bb.4:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	(%rbx), %edi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_check_refname_format           ## TAILCALL
LBB0_5:
	movl	$-1, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_startup_info,8,3               ## @startup_info
	.comm	_INTERPRET_BRANCH_LOCAL,4,2     ## @INTERPRET_BRANCH_LOCAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"refs/heads/"

L_.str.1:                               ## @.str.1
	.asciz	"refs/heads/HEAD"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_strbuf_check_branch_ref        ; -- Begin function strbuf_check_branch_ref
	.p2align	2
_strbuf_check_branch_ref:               ; @strbuf_check_branch_ref
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _startup_info@GOTPAGE
Lloh1:
	ldr	x8, [x8, _startup_info@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _INTERPRET_BRANCH_LOCAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INTERPRET_BRANCH_LOCAL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_strbuf_branchname
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	bl	_strbuf_addstr
LBB0_3:
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w4, #11
	bl	_strbuf_splice
	ldrb	w8, [x20]
	cmp	w8, #45
	b.eq	LBB0_6
; %bb.4:
	ldr	w0, [x19]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_6
; %bb.5:
	ldr	w0, [x19]
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_check_refname_format
LBB0_6:
	mov	w0, #-1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_startup_info,8,3               ; @startup_info
	.comm	_INTERPRET_BRANCH_LOCAL,4,2     ; @INTERPRET_BRANCH_LOCAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"refs/heads/"

l_.str.1:                               ; @.str.1
	.asciz	"refs/heads/HEAD"

.subsections_via_symbols
