	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function checkout_onto
_checkout_onto:                         ## @checkout_onto
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	%rcx, %r12
	movq	%rdx, %rcx
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	callq	_reflog_message
	movq	%rax, %r13
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_get_oid
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_error
	jmp	LBB0_5
LBB0_2:
	movq	%r12, %rdi
	callq	_oid_to_hex
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	movq	%r13, %rcx
	callq	_run_git_checkout
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_apply_autostash
	movq	%r14, %rdi
	callq	_sequencer_remove_state
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_error
	jmp	LBB0_5
LBB0_4:
	movq	_UPDATE_REFS_MSG_ON_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	L_.str.4(%rip), %rsi
	leaq	-48(%rbp), %rdx
	xorl	%edi, %edi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_update_ref
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"start"

L_.str.1:                               ## @.str.1
	.asciz	"checkout %s"

L_.str.2:                               ## @.str.2
	.asciz	"%s: not a valid OID"

L_.str.3:                               ## @.str.3
	.asciz	"could not detach HEAD"

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

	.comm	_UPDATE_REFS_MSG_ON_ERR,4,2     ## @UPDATE_REFS_MSG_ON_ERR
	.no_dead_strip	_checkout_onto
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function checkout_onto
_checkout_onto:                         ; @checkout_onto
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x4
	mov	x22, x3
	mov	x3, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_reflog_message
	mov	x23, x0
	add	x1, sp, #8
	mov	x0, x20
	bl	_get_oid
	cbz	x0, LBB0_2
; %bb.1:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	str	x20, [sp]
	bl	_error
	b	LBB0_5
LBB0_2:
	mov	x0, x22
	bl	_oid_to_hex
	mov	x2, x0
	mov	x0, x21
	mov	x1, x19
	mov	x3, x23
	bl	_run_git_checkout
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_apply_autostash
	mov	x0, x19
	bl	_sequencer_remove_state
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	bl	_error
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x8, _UPDATE_REFS_MSG_ON_ERR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _UPDATE_REFS_MSG_ON_ERR@GOTPAGEOFF]
Lloh10:
	ldr	w5, [x8]
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x2, sp, #8
	mov	x3, #0
	mov	w4, #0
	bl	_update_ref
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"start"

l_.str.1:                               ; @.str.1
	.asciz	"checkout %s"

l_.str.2:                               ; @.str.2
	.asciz	"%s: not a valid OID"

l_.str.3:                               ; @.str.3
	.asciz	"could not detach HEAD"

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

	.comm	_UPDATE_REFS_MSG_ON_ERR,4,2     ; @UPDATE_REFS_MSG_ON_ERR
	.no_dead_strip	_checkout_onto
.subsections_via_symbols
