	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sequencer_get_last_command     ## -- Begin function sequencer_get_last_command
	.p2align	4, 0x90
_sequencer_get_last_command:            ## @sequencer_get_last_command
	.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	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	callq	_git_path_todo_file
	movq	%rax, %rbx
	leaq	-40(%rbp), %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_strbuf_read_file
	testq	%rax, %rax
	js	LBB0_1
## %bb.4:
	movq	-40(%rbp), %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strspn
	cltq
	addq	%rbx, %rax
	movq	%rax, -32(%rbp)
	movq	_TODO_PICK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-32(%rbp), %rsi
	callq	_is_command
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	-32(%rbp), %rax
	movb	(%rax), %cl
	movq	_REPLAY_PICK@GOTPCREL(%rip), %rax
	cmpb	$9, %cl
	je	LBB0_10
## %bb.6:
	cmpb	$32, %cl
	je	LBB0_10
LBB0_7:
	movq	_TODO_REVERT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-32(%rbp), %rsi
	callq	_is_command
	movl	$-1, %r15d
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	-32(%rbp), %rax
	movb	(%rax), %cl
	movq	_REPLAY_REVERT@GOTPCREL(%rip), %rax
	cmpb	$32, %cl
	je	LBB0_10
## %bb.9:
	cmpb	$9, %cl
	jne	LBB0_11
LBB0_10:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	xorl	%r15d, %r15d
LBB0_11:
	leaq	-40(%rbp), %rdi
	callq	_strbuf_release
	jmp	LBB0_12
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	movl	$-1, %r15d
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.2:
	movq	_ENOTDIR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.3:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_error_errno
	movl	%eax, %r15d
LBB0_12:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,8,3                ## @STRBUF_INIT
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
	.comm	_ENOTDIR,8,3                    ## @ENOTDIR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to open '%s'"

L_.str.1:                               ## @.str.1
	.asciz	" \t\r\n"

	.comm	_TODO_PICK,4,2                  ## @TODO_PICK
	.comm	_REPLAY_PICK,4,2                ## @REPLAY_PICK
	.comm	_TODO_REVERT,4,2                ## @TODO_REVERT
	.comm	_REPLAY_REVERT,4,2              ## @REPLAY_REVERT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sequencer_get_last_command     ; -- Begin function sequencer_get_last_command
	.p2align	2
_sequencer_get_last_command:            ; @sequencer_get_last_command
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp]
	bl	_git_path_todo_file
	mov	x20, x0
	mov	x0, sp
	mov	x1, x20
	mov	w2, #0
	bl	_strbuf_read_file
	tbnz	x0, #63, LBB0_8
; %bb.1:
	ldr	x20, [sp]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_strspn
	add	x8, x20, w0, sxtw
	str	x8, [sp, #8]
Lloh5:
	adrp	x8, _TODO_PICK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TODO_PICK@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_is_command
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [sp, #8]
	ldrb	w9, [x8]
Lloh8:
	adrp	x8, _REPLAY_PICK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _REPLAY_PICK@GOTPAGEOFF]
	cmp	w9, #9
	b.eq	LBB0_7
; %bb.3:
	cmp	w9, #32
	b.eq	LBB0_7
LBB0_4:
Lloh10:
	adrp	x8, _TODO_REVERT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TODO_REVERT@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_is_command
	cbz	x0, LBB0_10
; %bb.5:
	ldr	x8, [sp, #8]
	ldrb	w8, [x8]
	cmp	w8, #32
	ccmp	w8, #9, #4, ne
	b.ne	LBB0_10
; %bb.6:
Lloh13:
	adrp	x8, _REPLAY_REVERT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _REPLAY_REVERT@GOTPAGEOFF]
LBB0_7:
	mov	w20, #0
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_11
LBB0_8:
Lloh15:
	adrp	x8, _errno@GOTPAGE
Lloh16:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
Lloh18:
	adrp	x9, _ENOENT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
Lloh21:
	adrp	x10, _ENOTDIR@GOTPAGE
Lloh22:
	ldr	x10, [x10, _ENOTDIR@GOTPAGEOFF]
Lloh23:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_12
; %bb.9:
	mov	w20, #-1
	b	LBB0_13
LBB0_10:
	mov	w20, #-1
LBB0_11:
	mov	x0, sp
	bl	_strbuf_release
	b	LBB0_13
LBB0_12:
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_error_errno
	mov	x20, x0
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,8,3                ; @STRBUF_INIT
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
	.comm	_ENOTDIR,8,3                    ; @ENOTDIR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to open '%s'"

l_.str.1:                               ; @.str.1
	.asciz	" \t\r\n"

	.comm	_TODO_PICK,4,2                  ; @TODO_PICK
	.comm	_REPLAY_PICK,4,2                ; @REPLAY_PICK
	.comm	_TODO_REVERT,4,2                ; @TODO_REVERT
	.comm	_REPLAY_REVERT,4,2              ; @REPLAY_REVERT
.subsections_via_symbols
