	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wt_status_get_state            ## -- Begin function wt_status_get_state
	.p2align	4, 0x90
_wt_status_get_state:                   ## @wt_status_get_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	%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
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r14
	callq	_git_path_merge_head
	leaq	-48(%rbp), %rsi
	movl	%eax, %edi
	callq	_stat
	movl	%eax, %ebx
	xorl	%edi, %edi
	movq	%r12, %rsi
	callq	_wt_status_check_rebase
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.2:
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	movq	%r14, %rdi
	callq	_git_path_cherry_pick_head
	leaq	-48(%rbp), %rsi
	movl	%eax, %edi
	callq	_stat
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	leaq	L_.str(%rip), %rdi
	leaq	-40(%rbp), %rsi
	callq	_get_oid
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movl	$1, 4(%r12)
	leaq	16(%r12), %rdi
	leaq	-40(%rbp), %rsi
	callq	_oidcpy
	jmp	LBB0_6
LBB0_1:
	movl	$1, (%r12)
LBB0_6:
	xorl	%edi, %edi
	movq	%r12, %rsi
	callq	_wt_status_check_bisect
	movq	%r14, %rdi
	callq	_git_path_revert_head
	leaq	-48(%rbp), %rsi
	movl	%eax, %edi
	callq	_stat
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	leaq	-40(%rbp), %rsi
	callq	_get_oid
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movl	$1, 8(%r12)
	leaq	12(%r12), %rdi
	leaq	-40(%rbp), %rsi
	callq	_oidcpy
LBB0_9:
	leaq	-52(%rbp), %rsi
	movq	%r14, %rdi
	callq	_sequencer_get_last_command
	testl	%eax, %eax
	jne	LBB0_14
## %bb.10:
	movl	-52(%rbp), %eax
	movq	_REPLAY_PICK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_12
## %bb.11:
	movl	$1, 4(%r12)
	leaq	16(%r12), %rdi
	jmp	LBB0_13
LBB0_12:
	movl	$1, 8(%r12)
	leaq	12(%r12), %rdi
LBB0_13:
	movq	_null_oid@GOTPCREL(%rip), %rsi
	callq	_oidcpy
LBB0_14:
	testl	%r15d, %r15d
	je	LBB0_16
## %bb.15:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_wt_status_get_detached_from
LBB0_16:
	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	"CHERRY_PICK_HEAD"

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

	.comm	_REPLAY_PICK,4,2                ## @REPLAY_PICK
	.comm	_null_oid,4,2                   ## @null_oid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wt_status_get_state            ; -- Begin function wt_status_get_state
	.p2align	2
_wt_status_get_state:                   ; @wt_status_get_state
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_git_path_merge_head
	add	x1, sp, #24
	bl	_stat
	mov	x22, x0
	mov	x0, #0
	mov	x1, x19
	bl	_wt_status_check_rebase
	cbz	w22, LBB0_5
; %bb.1:
	cbnz	x0, LBB0_6
; %bb.2:
	mov	x0, x20
	bl	_git_path_cherry_pick_head
	add	x1, sp, #24
	bl	_stat
	cbnz	w0, LBB0_6
; %bb.3:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #16
	bl	_get_oid
	cbnz	w0, LBB0_6
; %bb.4:
	mov	w8, #1
	str	w8, [x19, #4]
	add	x0, x19, #16
	add	x1, sp, #16
	bl	_oidcpy
	b	LBB0_6
LBB0_5:
	mov	w8, #1
	str	w8, [x19]
LBB0_6:
	mov	x0, #0
	mov	x1, x19
	bl	_wt_status_check_bisect
	mov	x0, x20
	bl	_git_path_revert_head
	add	x1, sp, #24
	bl	_stat
	cbnz	w0, LBB0_9
; %bb.7:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x1, sp, #16
	bl	_get_oid
	cbnz	w0, LBB0_9
; %bb.8:
	mov	w8, #1
	str	w8, [x19, #8]
	add	x0, x19, #12
	add	x1, sp, #16
	bl	_oidcpy
LBB0_9:
	add	x1, sp, #12
	mov	x0, x20
	bl	_sequencer_get_last_command
	cbnz	w0, LBB0_14
; %bb.10:
	ldr	w8, [sp, #12]
Lloh4:
	adrp	x9, _REPLAY_PICK@GOTPAGE
Lloh5:
	ldr	x9, [x9, _REPLAY_PICK@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.11:
	mov	w8, #1
	str	w8, [x19, #4]
	add	x0, x19, #16
	b	LBB0_13
LBB0_12:
	mov	w8, #1
	str	w8, [x19, #8]
	add	x0, x19, #12
LBB0_13:
Lloh7:
	adrp	x1, _null_oid@GOTPAGE
Lloh8:
	ldr	x1, [x1, _null_oid@GOTPAGEOFF]
	bl	_oidcpy
LBB0_14:
	cbz	w21, LBB0_16
; %bb.15:
	mov	x0, x20
	mov	x1, x19
	bl	_wt_status_get_detached_from
LBB0_16:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CHERRY_PICK_HEAD"

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

	.comm	_REPLAY_PICK,4,2                ; @REPLAY_PICK
	.comm	_null_oid,4,2                   ; @null_oid
.subsections_via_symbols
