	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_validate_new_branchname        ## -- Begin function validate_new_branchname
	.p2align	4, 0x90
_validate_new_branchname:               ## @validate_new_branchname
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r15
	callq	_validate_branchname
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	testl	%ebx, %ebx
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	(%r15), %rsi
	addq	$11, %rsi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_resolve_ref_unsafe
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_is_bare_repository
	movl	$1, %r14d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.6:
	movq	(%r15), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die
	jmp	LBB0_8
LBB0_1:
	xorl	%r14d, %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"A branch named '%s' already exists."

L_.str.2:                               ## @.str.2
	.asciz	"HEAD"

L_.str.3:                               ## @.str.3
	.asciz	"Cannot force update the current branch."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_validate_new_branchname        ; -- Begin function validate_new_branchname
	.p2align	2
_validate_new_branchname:               ; @validate_new_branchname
	.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	x20, x2
	mov	x19, x1
	bl	_validate_branchname
	cbz	w0, LBB0_8
; %bb.1:
	cbnz	w20, LBB0_3
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	ldr	x8, [x19]
	add	x8, x8, #11
	str	x8, [sp]
	bl	_die
LBB0_3:
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	w1, #0
	mov	x2, #0
	mov	x3, #0
	bl	_resolve_ref_unsafe
	mov	x20, x0
	bl	_is_bare_repository
	mov	x8, x0
	mov	w0, #1
	cbnz	w8, LBB0_8
; %bb.4:
	cbz	x20, LBB0_8
; %bb.5:
	ldr	x1, [x19]
	mov	x0, x20
	bl	_strcmp
	cbnz	w0, LBB0_7
; %bb.6:
Lloh4:
	adrp	x0, l_.str.3@PAGE
Lloh5:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	bl	_die
LBB0_7:
	mov	w0, #1
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"A branch named '%s' already exists."

l_.str.2:                               ; @.str.2
	.asciz	"HEAD"

l_.str.3:                               ; @.str.3
	.asciz	"Cannot force update the current branch."

.subsections_via_symbols
