	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function branch_stash
_branch_stash:                          ## @branch_stash
	.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
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movl	%edi, %r15d
	movq	_CHILD_PROCESS_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	callq	_OPT_END
	movl	%eax, -32(%rbp)
	movq	_git_stash_branch_usage@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-32(%rbp), %rcx
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	xorl	%r9d, %r9d
	callq	_parse_options
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %r15
	decl	%eax
	addq	$8, %rbx
	leaq	-56(%rbp), %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_get_stash_info
	movl	$-1, %ebx
	testq	%rax, %rax
	jne	LBB0_8
## %bb.3:
	movl	$1, -40(%rbp)
	leaq	-36(%rbp), %rbx
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_argv_array_pushl
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_argv_array_push
	leaq	-48(%rbp), %rdi
	callq	_oid_to_hex
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_argv_array_push
	leaq	-40(%rbp), %rdi
	callq	_run_command
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_do_apply_stash
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	cmpq	$0, -56(%rbp)
	je	LBB0_7
## %bb.6:
	leaq	-56(%rbp), %rdi
	xorl	%esi, %esi
	callq	_do_drop_stash
	movl	%eax, %ebx
LBB0_7:
	leaq	-56(%rbp), %rdi
	callq	_free_stash_info
	jmp	LBB0_8
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_fprintf_ln
	movl	$-1, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHILD_PROCESS_INIT,8,2         ## @CHILD_PROCESS_INIT
	.comm	_git_stash_branch_usage,4,2     ## @git_stash_branch_usage
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No branch name specified"

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

L_.str.2:                               ## @.str.2
	.asciz	"-b"

	.no_dead_strip	_branch_stash
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function branch_stash
_branch_stash:                          ; @branch_stash
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _CHILD_PROCESS_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHILD_PROCESS_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	bl	_OPT_END
	str	w0, [sp]
Lloh3:
	adrp	x8, _git_stash_branch_usage@GOTPAGE
Lloh4:
	ldr	x8, [x8, _git_stash_branch_usage@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	mov	x3, sp
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	w5, #0
	bl	_parse_options
	cbz	w0, LBB0_3
; %bb.1:
	ldr	x21, [x20], #8
	sub	w1, w0, #1
	add	x22, sp, #16
	add	x0, sp, #16
	mov	x2, x20
	bl	_get_stash_info
	cbz	x0, LBB0_4
; %bb.2:
	mov	w20, #-1
	b	LBB0_9
LBB0_3:
Lloh6:
	adrp	x8, _stderr@GOTPAGE
Lloh7:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh8:
	ldr	w19, [x8]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x1, x0
	mov	x0, x19
	bl	_fprintf_ln
	mov	w20, #-1
	b	LBB0_9
LBB0_4:
	mov	w8, #1
	str	w8, [sp, #8]
	add	x8, sp, #8
	orr	x20, x8, #0x4
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh13:
	adrp	x2, l_.str.2@PAGE
Lloh14:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x3, #0
	bl	_argv_array_pushl
	mov	x0, x20
	mov	x1, x21
	bl	_argv_array_push
	add	x0, x22, #8
	bl	_oid_to_hex
	mov	x1, x0
	mov	x0, x20
	bl	_argv_array_push
	add	x0, sp, #8
	bl	_run_command
	mov	x20, x0
	cbnz	w0, LBB0_8
; %bb.5:
	add	x1, sp, #16
	mov	x0, x19
	mov	w2, #1
	mov	w3, #0
	bl	_do_apply_stash
	mov	x20, x0
	cbnz	w0, LBB0_8
; %bb.6:
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_8
; %bb.7:
	add	x0, sp, #16
	mov	w1, #0
	bl	_do_drop_stash
	mov	x20, x0
LBB0_8:
	add	x0, sp, #16
	bl	_free_stash_info
LBB0_9:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_CHILD_PROCESS_INIT,8,2         ; @CHILD_PROCESS_INIT
	.comm	_git_stash_branch_usage,4,2     ; @git_stash_branch_usage
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No branch name specified"

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

l_.str.2:                               ; @.str.2
	.asciz	"-b"

	.no_dead_strip	_branch_stash
.subsections_via_symbols
