	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function move_to_original_branch
_move_to_original_branch:               ## @move_to_original_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movl	%eax, -32(%rbp)
	movl	(%rdi), %r15d
	testl	%r15d, %r15d
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	testq	%rdi, %rdi
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_BUG
	movl	(%rbx), %r15d
	movq	8(%rbx), %rdi
LBB0_4:
	callq	_oid_to_hex
	leaq	L_.str.1(%rip), %rsi
	leaq	-40(%rbp), %r14
	movq	%r14, %rdi
	movl	%r15d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_strbuf_addf
	movl	(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	leaq	-32(%rbp), %r15
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_strbuf_addf
	movl	(%rbx), %edx
	movq	_RESET_HEAD_REFS_ONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	-40(%rbp), %r8d
	movl	-32(%rbp), %r9d
	leaq	L_.str.3(%rip), %rsi
	xorl	%edi, %edi
	callq	_reset_head
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_strbuf_release
	movq	%r15, %rdi
	callq	_strbuf_release
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	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	"move_to_original_branch without onto"

L_.str.1:                               ## @.str.1
	.asciz	"rebase finished: %s onto %s"

L_.str.2:                               ## @.str.2
	.asciz	"rebase finished: returning to %s"

L_.str.3:                               ## @.str.3
	.space	1

	.comm	_RESET_HEAD_REFS_ONLY,4,2       ## @RESET_HEAD_REFS_ONLY
	.no_dead_strip	_move_to_original_branch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function move_to_original_branch
_move_to_original_branch:               ; @move_to_original_branch
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	str	w8, [sp, #16]
	ldr	w20, [x0]
	cbz	w20, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x0, [x0, #8]
	cbnz	x0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BUG
	ldr	w20, [x19]
	ldr	x0, [x19, #8]
LBB0_3:
	bl	_oid_to_hex
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #24
	mov	x2, x20
	bl	_strbuf_addf
	ldr	w2, [x19]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #16
	bl	_strbuf_addf
	ldr	w2, [x19]
Lloh9:
	adrp	x8, _RESET_HEAD_REFS_ONLY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RESET_HEAD_REFS_ONLY@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	ldr	w4, [sp, #24]
	ldr	w5, [sp, #16]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, #0
	bl	_reset_head
	mov	x19, x0
	add	x0, sp, #24
	bl	_strbuf_release
	add	x0, sp, #16
	bl	_strbuf_release
	b	LBB0_5
LBB0_4:
	mov	w19, #0
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"move_to_original_branch without onto"

l_.str.1:                               ; @.str.1
	.asciz	"rebase finished: %s onto %s"

l_.str.2:                               ; @.str.2
	.asciz	"rebase finished: returning to %s"

l_.str.3:                               ; @.str.3
	.space	1

	.comm	_RESET_HEAD_REFS_ONLY,4,2       ; @RESET_HEAD_REFS_ONLY
	.no_dead_strip	_move_to_original_branch
.subsections_via_symbols
