	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_label
_do_label:                              ## @do_label
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	callq	_get_main_ref_store
	movq	%rax, %r15
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	%eax, -32(%rbp)
	movl	%eax, -40(%rbp)
	cmpl	$1, %ebx
	jne	LBB0_2
## %bb.1:
	cmpb	$35, (%r14)
	jne	LBB0_2
## %bb.13:
	leaq	L_.str(%rip), %rdi
	callq	__
	movslq	%eax, %rdi
	movl	$1, %esi
	movq	%r14, %rdx
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error                          ## TAILCALL
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movl	%ebx, %edx
	movq	%r14, %rcx
	callq	_strbuf_addf
	leaq	L_.str.2(%rip), %rsi
	leaq	-40(%rbp), %rdi
	movl	%ebx, %edx
	movq	%r14, %rcx
	callq	_strbuf_addf
	leaq	-32(%rbp), %r14
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ref_store_transaction_begin
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	leaq	L_.str.4(%rip), %rdi
	leaq	-56(%rbp), %rsi
	callq	_get_oid
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.5(%rip), %rdi
	callq	__
	movslq	%eax, %rdi
	xorl	%eax, %eax
	callq	_error
	jmp	LBB0_9
LBB0_3:
	movl	-32(%rbp), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_error
	xorl	%edi, %edi
	jmp	LBB0_10
LBB0_6:
	movl	-48(%rbp), %esi
	movl	-40(%rbp), %r9d
	movq	%r14, (%rsp)
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_ref_transaction_update
	testq	%rax, %rax
	js	LBB0_8
## %bb.7:
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_ref_transaction_commit
	testq	%rax, %rax
	je	LBB0_11
LBB0_8:
	movl	-32(%rbp), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_error
LBB0_9:
	movq	%rbx, %rdi
LBB0_10:
	callq	_ref_transaction_free
	leaq	-32(%rbp), %rdi
	callq	_strbuf_release
	leaq	-40(%rbp), %rdi
	callq	_strbuf_release
	movl	$-1, %ebx
LBB0_12:
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%rbx, %rdi
	callq	_ref_transaction_free
	leaq	-32(%rbp), %rdi
	callq	_strbuf_release
	leaq	-40(%rbp), %rdi
	callq	_strbuf_release
	xorl	%eax, %eax
	callq	_rebase_path_refs_to_delete
	movl	-48(%rbp), %edx
	leaq	L_.str.6(%rip), %rsi
	movl	%eax, %edi
	callq	_safe_append
	movl	%eax, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"illegal label name: '%.*s'"

L_.str.1:                               ## @.str.1
	.asciz	"refs/rewritten/%.*s"

L_.str.2:                               ## @.str.2
	.asciz	"rebase -i (label) '%.*s'"

L_.str.3:                               ## @.str.3
	.asciz	"%s"

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

L_.str.5:                               ## @.str.5
	.asciz	"could not read HEAD"

L_.str.6:                               ## @.str.6
	.asciz	"%s\n"

	.no_dead_strip	_do_label
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_label
_do_label:                              ; @do_label
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x21, x2
	mov	x19, x1
	bl	_get_main_ref_store
	mov	x20, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	str	w8, [sp, #32]
	str	w8, [sp, #24]
	cmp	w21, #1
	b.ne	LBB0_3
; %bb.1:
	ldrb	w8, [x19]
	cmp	w8, #35
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x0, w0
	mov	w8, #1
	stp	x8, x19, [sp]
	bl	_error
	b	LBB0_13
LBB0_3:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #40
	mov	x2, x21
	mov	x3, x19
	bl	_strbuf_addf
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #24
	mov	x2, x21
	mov	x3, x19
	bl	_strbuf_addf
	add	x1, sp, #32
	mov	x0, x20
	bl	_ref_store_transaction_begin
	cbz	x0, LBB0_6
; %bb.4:
	mov	x19, x0
Lloh9:
	adrp	x0, l_.str.4@PAGE
Lloh10:
	add	x0, x0, l_.str.4@PAGEOFF
	add	x1, sp, #16
	bl	_get_oid
	cbz	x0, LBB0_7
; %bb.5:
Lloh11:
	adrp	x0, l_.str.5@PAGE
Lloh12:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	__
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x0, w0
	b	LBB0_10
LBB0_6:
	ldr	w8, [sp, #32]
	str	x8, [sp]
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_error
	mov	x0, #0
	b	LBB0_11
LBB0_7:
	ldr	w1, [sp, #40]
	ldr	w5, [sp, #24]
	add	x2, sp, #16
	add	x6, sp, #32
	mov	x0, x19
	mov	x3, #0
	mov	w4, #0
	bl	_ref_transaction_update
	tbnz	x0, #63, LBB0_9
; %bb.8:
	add	x1, sp, #32
	mov	x0, x19
	bl	_ref_transaction_commit
	cbz	x0, LBB0_14
LBB0_9:
	ldr	w8, [sp, #32]
	str	x8, [sp]
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_10:
	bl	_error
	mov	x0, x19
LBB0_11:
	bl	_ref_transaction_free
	add	x0, sp, #32
	bl	_strbuf_release
	add	x0, sp, #24
	bl	_strbuf_release
	mov	w19, #-1
LBB0_12:
	add	x0, sp, #40
	bl	_strbuf_release
	mov	x0, x19
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_14:
	mov	x0, x19
	bl	_ref_transaction_free
	add	x0, sp, #32
	bl	_strbuf_release
	add	x0, sp, #24
	bl	_strbuf_release
	bl	_rebase_path_refs_to_delete
	ldr	w2, [sp, #40]
Lloh17:
	adrp	x1, l_.str.6@PAGE
Lloh18:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_safe_append
	mov	x19, x0
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"illegal label name: '%.*s'"

l_.str.1:                               ; @.str.1
	.asciz	"refs/rewritten/%.*s"

l_.str.2:                               ; @.str.2
	.asciz	"rebase -i (label) '%.*s'"

l_.str.3:                               ; @.str.3
	.asciz	"%s"

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

l_.str.5:                               ; @.str.5
	.asciz	"could not read HEAD"

l_.str.6:                               ; @.str.6
	.asciz	"%s\n"

	.no_dead_strip	_do_label
.subsections_via_symbols
