	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function save_state
_save_state:                            ## @save_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	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movq	l___const.save_state.argv+16(%rip), %rax
	movq	%rax, -32(%rbp)
	movaps	l___const.save_state.argv(%rip), %xmm0
	movaps	%xmm0, -48(%rbp)
	leaq	-48(%rbp), %rax
	movq	%rax, -72(%rbp)
	movabsq	$8589934591, %rax               ## imm = 0x1FFFFFFFF
	movq	%rax, -64(%rbp)
	leaq	-72(%rbp), %rdi
	callq	_start_command
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die
LBB0_2:
	movl	-64(%rbp), %esi
	leaq	-56(%rbp), %rdi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_strbuf_read
	movl	%eax, %ebx
	movl	-64(%rbp), %edi
	callq	_close
	leaq	-72(%rbp), %rdi
	callq	_finish_command
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	testl	%ebx, %ebx
	js	LBB0_4
## %bb.7:
	jne	LBB0_5
## %bb.8:
	movl	$-1, %ebx
	jmp	LBB0_10
LBB0_4:
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die
LBB0_5:
	movl	-56(%rbp), %esi
	decl	%esi
	leaq	-56(%rbp), %rdi
	callq	_strbuf_setlen
	movl	-52(%rbp), %edi
	movq	%r14, %rsi
	callq	_get_oid
	testq	%rax, %rax
	je	LBB0_6
## %bb.9:
	leaq	L_.str.4(%rip), %rdi
	callq	__
	movl	-52(%rbp), %esi
	xorl	%ebx, %ebx
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die
	jmp	LBB0_10
LBB0_6:
	xorl	%ebx, %ebx
LBB0_10:
	leaq	-56(%rbp), %rdi
	callq	_strbuf_release
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%ebx, %eax
	addq	$64, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CHILD_PROCESS_INIT,16,3        ## @CHILD_PROCESS_INIT
	.comm	_STRBUF_INIT,8,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stash"

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

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

	.section	__TEXT,__cstring,cstring_literals
L_.str.2:                               ## @.str.2
	.asciz	"could not run stash."

L_.str.3:                               ## @.str.3
	.asciz	"stash failed"

L_.str.4:                               ## @.str.4
	.asciz	"not a valid object: %s"

	.no_dead_strip	_save_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function save_state
lCPI0_0:
	.long	4294967295                      ; 0xffffffff
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_save_state:                            ; @save_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, 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	x9, [x8]
Lloh6:
	adrp	x8, l___const.save_state.argv@PAGE
Lloh7:
	add	x8, x8, l___const.save_state.argv@PAGEOFF
	ldr	q0, [x8]
	str	q0, [sp, #32]
	ldr	x8, [x8, #16]
	str	x8, [sp, #48]
	add	x8, sp, #32
	stp	x9, x8, [sp, #8]
Lloh8:
	adrp	x8, lCPI0_0@PAGE
Lloh9:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #24]
	add	x0, sp, #16
	bl	_start_command
	cbz	x0, LBB0_2
; %bb.1:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	bl	_die
LBB0_2:
	ldr	w1, [sp, #24]
	add	x0, sp, #8
	mov	w2, #1024
	bl	_strbuf_read
	mov	x20, x0
	ldr	w0, [sp, #24]
	bl	_close
	add	x0, sp, #16
	bl	_finish_command
	cbnz	x0, LBB0_6
; %bb.3:
	tbnz	w20, #31, LBB0_6
; %bb.4:
	cbnz	w20, LBB0_7
; %bb.5:
	mov	w19, #-1
	b	LBB0_10
LBB0_6:
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	bl	_die
LBB0_7:
	ldr	w8, [sp, #8]
	sub	w1, w8, #1
	add	x0, sp, #8
	bl	_strbuf_setlen
	ldr	w0, [sp, #12]
	mov	x1, x19
	bl	_get_oid
	cbz	x0, LBB0_9
; %bb.8:
Lloh14:
	adrp	x0, l_.str.4@PAGE
Lloh15:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	__
	ldr	w8, [sp, #12]
	str	x8, [sp]
	bl	_die
LBB0_9:
	mov	w19, #0
LBB0_10:
	add	x0, sp, #8
	bl	_strbuf_release
	ldur	x8, [x29, #-24]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_CHILD_PROCESS_INIT,16,3        ; @CHILD_PROCESS_INIT
	.comm	_STRBUF_INIT,8,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stash"

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

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

	.section	__TEXT,__cstring,cstring_literals
l_.str.2:                               ; @.str.2
	.asciz	"could not run stash."

l_.str.3:                               ; @.str.3
	.asciz	"stash failed"

l_.str.4:                               ; @.str.4
	.asciz	"not a valid object: %s"

	.no_dead_strip	_save_state
.subsections_via_symbols
