	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copy_or_rename_branch
_copy_or_rename_branch:                 ## @copy_or_rename_branch
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	%eax, -56(%rbp)
	movl	%eax, -64(%rbp)
	movl	%eax, -80(%rbp)
	movl	%eax, -72(%rbp)
	movq	$0, -88(%rbp)
	movq	$0, -96(%rbp)
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	testl	%r15d, %r15d
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rdi
	cmoveq	%rax, %rdi
	callq	__
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die
LBB0_2:
	leaq	-48(%rbp), %rdi
	movq	%r13, %rsi
	callq	_strbuf_check_branch_ref
	movb	$1, %bl
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movl	-48(%rbp), %edi
	callq	_ref_exists
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_die
LBB0_6:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_strcmp
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movl	%r12d, %edx
	callq	_validate_new_branchname
	jmp	LBB0_9
LBB0_7:
	callq	_validate_branchname
LBB0_9:
	movl	-48(%rbp), %edi
	callq	_reject_rebase_or_bisect_branch
	movl	-48(%rbp), %edi
	leaq	L_.str.3(%rip), %rsi
	leaq	-88(%rbp), %rdx
	callq	_skip_prefix
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	-56(%rbp), %edi
	leaq	L_.str.3(%rip), %rsi
	leaq	-96(%rbp), %rdx
	callq	_skip_prefix
	testl	%eax, %eax
	jne	LBB0_12
LBB0_11:
	leaq	L_.str.4(%rip), %rdi
	callq	_BUG
LBB0_12:
	movslq	-48(%rbp), %rdx
	movl	-56(%rbp), %ecx
	testl	%r15d, %r15d
	je	LBB0_13
## %bb.15:
	leaq	L_.str.5(%rip), %rsi
	leaq	-64(%rbp), %rdi
	xorl	%eax, %eax
	callq	_strbuf_addf
	movl	-48(%rbp), %edi
	movl	-56(%rbp), %esi
	movl	-64(%rbp), %edx
	callq	_copy_existing_ref
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	leaq	L_.str.8(%rip), %rdi
	jmp	LBB0_17
LBB0_13:
	leaq	L_.str.6(%rip), %rsi
	leaq	-64(%rbp), %rdi
	xorl	%eax, %eax
	callq	_strbuf_addf
	movl	-48(%rbp), %edi
	movl	-56(%rbp), %esi
	movl	-64(%rbp), %edx
	callq	_rename_ref
	testq	%rax, %rax
	je	LBB0_18
## %bb.14:
	leaq	L_.str.7(%rip), %rdi
LBB0_17:
	callq	__
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die
LBB0_18:
	testb	%bl, %bl
	je	LBB0_19
## %bb.25:
	testl	%r15d, %r15d
	jne	LBB0_21
	jmp	LBB0_26
LBB0_19:
	testl	%r15d, %r15d
	je	LBB0_24
## %bb.20:
	leaq	L_.str.9(%rip), %rdi
	callq	__
	movq	-88(%rbp), %rsi
	movl	%eax, %edi
	callq	_warning
LBB0_21:
	leaq	-64(%rbp), %rdi
	callq	_strbuf_release
	movq	-88(%rbp), %rdx
	leaq	L_.str.12(%rip), %rbx
	leaq	-80(%rbp), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_strbuf_addf
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
	movq	-96(%rbp), %rdx
	leaq	-72(%rbp), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_strbuf_addf
	leaq	-56(%rbp), %rdi
	callq	_strbuf_release
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_31
## %bb.22:
	movl	-80(%rbp), %edi
	movl	-72(%rbp), %esi
	callq	_git_config_copy_section
	testq	%rax, %rax
	jns	LBB0_31
## %bb.23:
	leaq	L_.str.14(%rip), %rdi
	jmp	LBB0_30
LBB0_24:
	leaq	L_.str.10(%rip), %rdi
	callq	__
	movq	-88(%rbp), %rsi
	movl	%eax, %edi
	callq	_warning
LBB0_26:
	movl	-48(%rbp), %edi
	movl	-56(%rbp), %esi
	movl	-64(%rbp), %edx
	callq	_replace_each_worktree_head_symref
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:
	leaq	L_.str.11(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_die
LBB0_28:
	leaq	-64(%rbp), %rdi
	callq	_strbuf_release
	movq	-88(%rbp), %rdx
	leaq	L_.str.12(%rip), %rbx
	leaq	-80(%rbp), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_strbuf_addf
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
	movq	-96(%rbp), %rdx
	leaq	-72(%rbp), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_strbuf_addf
	leaq	-56(%rbp), %rdi
	callq	_strbuf_release
	movl	-80(%rbp), %edi
	movl	-72(%rbp), %esi
	callq	_git_config_rename_section
	testq	%rax, %rax
	jns	LBB0_31
## %bb.29:
	leaq	L_.str.13(%rip), %rdi
LBB0_30:
	callq	__
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die
LBB0_31:
	leaq	-80(%rbp), %rdi
	callq	_strbuf_release
	leaq	-72(%rbp), %rdi
	callq	_strbuf_release
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot copy the current branch while not on any."

L_.str.1:                               ## @.str.1
	.asciz	"cannot rename the current branch while not on any."

L_.str.2:                               ## @.str.2
	.asciz	"Invalid branch name: '%s'"

L_.str.3:                               ## @.str.3
	.asciz	"refs/heads/"

L_.str.4:                               ## @.str.4
	.asciz	"expected prefix missing for refs"

L_.str.5:                               ## @.str.5
	.asciz	"Branch: copied %s to %s"

L_.str.6:                               ## @.str.6
	.asciz	"Branch: renamed %s to %s"

L_.str.7:                               ## @.str.7
	.asciz	"Branch rename failed"

L_.str.8:                               ## @.str.8
	.asciz	"Branch copy failed"

L_.str.9:                               ## @.str.9
	.asciz	"Created a copy of a misnamed branch '%s'"

L_.str.10:                              ## @.str.10
	.asciz	"Renamed a misnamed branch '%s' away"

L_.str.11:                              ## @.str.11
	.asciz	"Branch renamed to %s, but HEAD is not updated!"

L_.str.12:                              ## @.str.12
	.asciz	"branch.%s"

L_.str.13:                              ## @.str.13
	.asciz	"Branch is renamed, but update of config-file failed"

L_.str.14:                              ## @.str.14
	.asciz	"Branch is copied, but update of config-file failed"

	.no_dead_strip	_copy_or_rename_branch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_or_rename_branch
_copy_or_rename_branch:                 ; @copy_or_rename_branch
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #56]
	str	w8, [sp, #48]
	str	w8, [sp, #40]
	str	w8, [sp, #32]
	str	w8, [sp, #24]
	stp	xzr, xzr, [sp, #8]
	cbnz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, l_.str@PAGE
Lloh4:
	add	x8, x8, l_.str@PAGEOFF
Lloh5:
	adrp	x9, l_.str.1@PAGE
Lloh6:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	w21, #0
	csel	x0, x9, x8, eq
	bl	__
	bl	_die
LBB0_2:
	add	x0, sp, #56
	mov	x1, x20
	bl	_strbuf_check_branch_ref
	cbz	x0, LBB0_6
; %bb.3:
	ldr	w0, [sp, #56]
	bl	_ref_exists
	cbz	x0, LBB0_5
; %bb.4:
	mov	w23, #0
	b	LBB0_7
LBB0_5:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	str	x20, [sp]
	bl	_die
LBB0_6:
	mov	w23, #1
LBB0_7:
	mov	x0, x20
	mov	x1, x19
	bl	_strcmp
	add	x1, sp, #48
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x19
	mov	x2, x22
	bl	_validate_new_branchname
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	bl	_validate_branchname
LBB0_10:
	ldr	w0, [sp, #56]
	bl	_reject_rebase_or_bisect_branch
	ldr	w0, [sp, #56]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #16
	bl	_skip_prefix
	cbz	w0, LBB0_12
; %bb.11:
	ldr	w0, [sp, #48]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #8
	bl	_skip_prefix
	cbnz	w0, LBB0_13
LBB0_12:
Lloh13:
	adrp	x0, l_.str.4@PAGE
Lloh14:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_BUG
LBB0_13:
	ldrsw	x2, [sp, #56]
	ldr	w8, [sp, #48]
	cbz	w21, LBB0_16
; %bb.14:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	str	x8, [sp]
Lloh15:
	adrp	x1, l_.str.5@PAGE
Lloh16:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x0, sp, #40
	bl	_strbuf_addf
	ldr	w0, [sp, #56]
	ldr	w1, [sp, #48]
	ldr	w2, [sp, #40]
	bl	_copy_existing_ref
	cbz	x0, LBB0_19
; %bb.15:
Lloh17:
	adrp	x0, l_.str.8@PAGE
Lloh18:
	add	x0, x0, l_.str.8@PAGEOFF
	b	LBB0_18
LBB0_16:
	str	x8, [sp]
Lloh19:
	adrp	x1, l_.str.6@PAGE
Lloh20:
	add	x1, x1, l_.str.6@PAGEOFF
	add	x0, sp, #40
	bl	_strbuf_addf
	ldr	w0, [sp, #56]
	ldr	w1, [sp, #48]
	ldr	w2, [sp, #40]
	bl	_rename_ref
	cbz	x0, LBB0_19
; %bb.17:
Lloh21:
	adrp	x0, l_.str.7@PAGE
Lloh22:
	add	x0, x0, l_.str.7@PAGEOFF
LBB0_18:
	bl	__
	bl	_die
LBB0_19:
	tbz	w23, #0, LBB0_21
; %bb.20:
	cbnz	w21, LBB0_23
	b	LBB0_27
LBB0_21:
	cbz	w21, LBB0_26
; %bb.22:
Lloh23:
	adrp	x0, l_.str.9@PAGE
Lloh24:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	__
	ldr	x1, [sp, #16]
	bl	_warning
LBB0_23:
	add	x0, sp, #40
	bl	_strbuf_release
	ldr	x2, [sp, #16]
Lloh25:
	adrp	x21, l_.str.12@PAGE
Lloh26:
	add	x21, x21, l_.str.12@PAGEOFF
	add	x0, sp, #32
	mov	x1, x21
	bl	_strbuf_addf
	add	x0, sp, #56
	bl	_strbuf_release
	ldr	x2, [sp, #8]
	add	x0, sp, #24
	mov	x1, x21
	bl	_strbuf_addf
	add	x0, sp, #48
	bl	_strbuf_release
	mov	x0, x20
	mov	x1, x19
	bl	_strcmp
	cbz	x0, LBB0_32
; %bb.24:
	ldr	w0, [sp, #32]
	ldr	w1, [sp, #24]
	bl	_git_config_copy_section
	tbz	x0, #63, LBB0_32
; %bb.25:
Lloh27:
	adrp	x0, l_.str.14@PAGE
Lloh28:
	add	x0, x0, l_.str.14@PAGEOFF
	b	LBB0_31
LBB0_26:
Lloh29:
	adrp	x0, l_.str.10@PAGE
Lloh30:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	__
	ldr	x1, [sp, #16]
	bl	_warning
LBB0_27:
	ldr	w0, [sp, #56]
	ldr	w1, [sp, #48]
	ldr	w2, [sp, #40]
	bl	_replace_each_worktree_head_symref
	cbz	x0, LBB0_29
; %bb.28:
Lloh31:
	adrp	x0, l_.str.11@PAGE
Lloh32:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	__
	str	x19, [sp]
	bl	_die
LBB0_29:
	add	x0, sp, #40
	bl	_strbuf_release
	ldr	x2, [sp, #16]
Lloh33:
	adrp	x19, l_.str.12@PAGE
Lloh34:
	add	x19, x19, l_.str.12@PAGEOFF
	add	x0, sp, #32
	mov	x1, x19
	bl	_strbuf_addf
	add	x0, sp, #56
	bl	_strbuf_release
	ldr	x2, [sp, #8]
	add	x0, sp, #24
	mov	x1, x19
	bl	_strbuf_addf
	add	x0, sp, #48
	bl	_strbuf_release
	ldr	w0, [sp, #32]
	ldr	w1, [sp, #24]
	bl	_git_config_rename_section
	tbz	x0, #63, LBB0_32
; %bb.30:
Lloh35:
	adrp	x0, l_.str.13@PAGE
Lloh36:
	add	x0, x0, l_.str.13@PAGEOFF
LBB0_31:
	bl	__
	bl	_die
LBB0_32:
	add	x0, sp, #32
	bl	_strbuf_release
	add	x0, sp, #24
	bl	_strbuf_release
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot copy the current branch while not on any."

l_.str.1:                               ; @.str.1
	.asciz	"cannot rename the current branch while not on any."

l_.str.2:                               ; @.str.2
	.asciz	"Invalid branch name: '%s'"

l_.str.3:                               ; @.str.3
	.asciz	"refs/heads/"

l_.str.4:                               ; @.str.4
	.asciz	"expected prefix missing for refs"

l_.str.5:                               ; @.str.5
	.asciz	"Branch: copied %s to %s"

l_.str.6:                               ; @.str.6
	.asciz	"Branch: renamed %s to %s"

l_.str.7:                               ; @.str.7
	.asciz	"Branch rename failed"

l_.str.8:                               ; @.str.8
	.asciz	"Branch copy failed"

l_.str.9:                               ; @.str.9
	.asciz	"Created a copy of a misnamed branch '%s'"

l_.str.10:                              ; @.str.10
	.asciz	"Renamed a misnamed branch '%s' away"

l_.str.11:                              ; @.str.11
	.asciz	"Branch renamed to %s, but HEAD is not updated!"

l_.str.12:                              ; @.str.12
	.asciz	"branch.%s"

l_.str.13:                              ; @.str.13
	.asciz	"Branch is renamed, but update of config-file failed"

l_.str.14:                              ; @.str.14
	.asciz	"Branch is copied, but update of config-file failed"

	.no_dead_strip	_copy_or_rename_branch
.subsections_via_symbols
