	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wt_status_check_rebase         ## -- Begin function wt_status_check_rebase
	.p2align	4, 0x90
_wt_status_check_rebase:                ## @wt_status_check_rebase
	.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	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_worktree_git_path
	leaq	-24(%rbp), %rsi
	movl	%eax, %edi
	callq	_stat
	testl	%eax, %eax
	je	LBB0_1
## %bb.5:
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_worktree_git_path
	leaq	-24(%rbp), %rsi
	movl	%eax, %edi
	callq	_stat
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_11
## %bb.6:
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_worktree_git_path
	leaq	-24(%rbp), %rsi
	movl	%eax, %edi
	callq	_stat
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	$1, 8(%r14)
	jmp	LBB0_9
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_worktree_git_path
	leaq	-24(%rbp), %rsi
	movl	%eax, %edi
	callq	_stat
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:
	movl	$1, 8(%r14)
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_get_branch
	movq	%rax, 24(%r14)
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_10
LBB0_2:
	movl	$1, (%r14)
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_worktree_git_path
	leaq	-24(%rbp), %rsi
	movl	%eax, %edi
	callq	_stat
	movl	%eax, %ecx
	movl	$1, %eax
	orl	-24(%rbp), %ecx
	jne	LBB0_11
## %bb.3:
	movl	$1, 4(%r14)
	jmp	LBB0_11
LBB0_7:
	movl	$1, 12(%r14)
LBB0_9:
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	callq	_get_branch
	movq	%rax, 24(%r14)
	leaq	L_.str.8(%rip), %rsi
LBB0_10:
	movq	%rbx, %rdi
	callq	_get_branch
	movq	%rax, 16(%r14)
	movl	$1, %eax
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rebase-apply"

L_.str.1:                               ## @.str.1
	.asciz	"rebase-apply/applying"

L_.str.2:                               ## @.str.2
	.asciz	"rebase-apply/patch"

L_.str.3:                               ## @.str.3
	.asciz	"rebase-apply/head-name"

L_.str.4:                               ## @.str.4
	.asciz	"rebase-apply/onto"

L_.str.5:                               ## @.str.5
	.asciz	"rebase-merge"

L_.str.6:                               ## @.str.6
	.asciz	"rebase-merge/interactive"

L_.str.7:                               ## @.str.7
	.asciz	"rebase-merge/head-name"

L_.str.8:                               ## @.str.8
	.asciz	"rebase-merge/onto"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wt_status_check_rebase         ; -- Begin function wt_status_check_rebase
	.p2align	2
_wt_status_check_rebase:                ; @wt_status_check_rebase
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_worktree_git_path
	add	x1, sp, #8
	bl	_stat
	cbz	w0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x1, l_.str.5@PAGE
Lloh3:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_worktree_git_path
	add	x1, sp, #8
	bl	_stat
	cbz	w0, LBB0_5
; %bb.2:
	mov	w21, #0
	b	LBB0_11
LBB0_3:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_worktree_git_path
	add	x1, sp, #8
	bl	_stat
	mov	w21, #1
	cbz	w0, LBB0_7
; %bb.4:
	str	w21, [x19, #8]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_get_branch
	str	x0, [x19, #24]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_get_branch
	str	x0, [x19, #16]
	b	LBB0_11
LBB0_5:
Lloh10:
	adrp	x1, l_.str.6@PAGE
Lloh11:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_worktree_git_path
	add	x1, sp, #8
	bl	_stat
	mov	w8, #1
	cbz	w0, LBB0_9
; %bb.6:
	str	w8, [x19, #8]
	b	LBB0_10
LBB0_7:
	str	w21, [x19]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_worktree_git_path
	add	x1, sp, #8
	bl	_stat
	ldr	w8, [sp, #8]
	orr	w8, w0, w8
	cbnz	w8, LBB0_11
; %bb.8:
	str	w21, [x19, #4]
	b	LBB0_11
LBB0_9:
	str	w8, [x19, #12]
LBB0_10:
Lloh14:
	adrp	x1, l_.str.7@PAGE
Lloh15:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_get_branch
	str	x0, [x19, #24]
Lloh16:
	adrp	x1, l_.str.8@PAGE
Lloh17:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x20
	bl	_get_branch
	str	x0, [x19, #16]
	mov	w21, #1
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rebase-apply"

l_.str.1:                               ; @.str.1
	.asciz	"rebase-apply/applying"

l_.str.2:                               ; @.str.2
	.asciz	"rebase-apply/patch"

l_.str.3:                               ; @.str.3
	.asciz	"rebase-apply/head-name"

l_.str.4:                               ; @.str.4
	.asciz	"rebase-apply/onto"

l_.str.5:                               ; @.str.5
	.asciz	"rebase-merge"

l_.str.6:                               ; @.str.6
	.asciz	"rebase-merge/interactive"

l_.str.7:                               ; @.str.7
	.asciz	"rebase-merge/head-name"

l_.str.8:                               ; @.str.8
	.asciz	"rebase-merge/onto"

.subsections_via_symbols
