	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function restore_state
_restore_state:                         ## @restore_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movaps	l___const.restore_state.args+16(%rip), %xmm0
	movaps	%xmm0, -48(%rbp)
	movaps	l___const.restore_state.args(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	%rsi, %rdi
	callq	_is_null_oid
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_reset_hard
	movq	%rbx, %rdi
	callq	_oid_to_hex
	movq	%rax, -48(%rbp)
	movq	_RUN_GIT_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdi
	callq	_run_command_v_opt
	leaq	-72(%rbp), %rdi
	callq	_strbuf_release
	movq	_REFRESH_QUIET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_refresh_cache
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$64, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stash"

L_.str.1:                               ## @.str.1
	.asciz	"apply"

	.section	__DATA,__const
	.p2align	4                               ## @__const.restore_state.args
l___const.restore_state.args:
	.quad	L_.str
	.quad	L_.str.1
	.quad	0
	.quad	0

	.comm	_RUN_GIT_CMD,4,2                ## @RUN_GIT_CMD
	.comm	_REFRESH_QUIET,4,2              ## @REFRESH_QUIET
	.no_dead_strip	_restore_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function restore_state
_restore_state:                         ; @restore_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh6:
	adrp	x8, l___const.restore_state.args@PAGE
Lloh7:
	add	x8, x8, l___const.restore_state.args@PAGEOFF
	ldp	q0, q1, [x8]
	stp	q0, q1, [sp, #16]
	mov	x0, x1
	bl	_is_null_oid
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	w1, #1
	bl	_reset_hard
	mov	x0, x19
	bl	_oid_to_hex
	str	x0, [sp, #32]
Lloh8:
	adrp	x8, _RUN_GIT_CMD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RUN_GIT_CMD@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x0, sp, #16
	bl	_run_command_v_opt
	add	x0, sp, #8
	bl	_strbuf_release
Lloh11:
	adrp	x8, _REFRESH_QUIET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _REFRESH_QUIET@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_refresh_cache
LBB0_2:
	ldur	x8, [x29, #-24]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stash"

l_.str.1:                               ; @.str.1
	.asciz	"apply"

	.section	__DATA,__const
	.p2align	3                               ; @__const.restore_state.args
l___const.restore_state.args:
	.quad	l_.str
	.quad	l_.str.1
	.quad	0
	.quad	0

	.comm	_RUN_GIT_CMD,4,2                ; @RUN_GIT_CMD
	.comm	_REFRESH_QUIET,4,2              ; @REFRESH_QUIET
	.no_dead_strip	_restore_state
.subsections_via_symbols
