	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_is_worktree_being_rebased      ## -- Begin function is_worktree_being_rebased
	.p2align	4, 0x90
_is_worktree_being_rebased:             ## @is_worktree_being_rebased
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	-64(%rbp), %r12
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_wt_status_check_rebase
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	-40(%rbp), %rax
	orq	-48(%rbp), %rax
	je	LBB0_5
## %bb.2:
	cmpq	$0, -56(%rbp)
	je	LBB0_5
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_starts_with
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	-56(%rbp), %rbx
	leaq	L_.str(%rip), %rdi
	callq	_strlen
	cltq
	addq	%rax, %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_strcmp
	xorl	%r15d, %r15d
	testl	%eax, %eax
	sete	%r15b
LBB0_5:
	movq	-56(%rbp), %rdi
	callq	_free
	movq	-64(%rbp), %rdi
	callq	_free
	movl	%r15d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"refs/heads/"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_is_worktree_being_rebased      ; -- Begin function is_worktree_being_rebased
	.p2align	2
_is_worktree_being_rebased:             ; @is_worktree_being_rebased
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x1
	mov	x20, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	mov	x1, sp
	mov	x0, x20
	bl	_wt_status_check_rebase
	cbz	x0, LBB0_4
; %bb.1:
	ldp	x9, x8, [sp, #16]
	ldr	x10, [sp, #8]
	orr	x8, x8, x9
	cmp	x8, #0
	ccmp	x10, #0, #4, ne
	b.eq	LBB0_4
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_starts_with
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x20, [sp, #8]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_strlen
	add	x1, x19, w0, sxtw
	mov	x0, x20
	bl	_strcmp
	cmp	w0, #0
	cset	w19, eq
	b	LBB0_5
LBB0_4:
	mov	w19, #0
LBB0_5:
	ldr	x0, [sp, #8]
	bl	_free
	ldr	x0, [sp]
	bl	_free
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"refs/heads/"

.subsections_via_symbols
