	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sequencer_pick_revisions       ## -- Begin function sequencer_pick_revisions
	.p2align	4, 0x90
_sequencer_pick_revisions:              ## @sequencer_pick_revisions
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_TODO_LIST_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	8(%rsi), %rdi
	callq	_assert
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_read_and_refresh_cache
	movl	$-1, %ebx
	testq	%rax, %rax
	jne	LBB0_31
## %bb.1:
	movq	8(%r12), %rdi
	cmpl	$0, 24(%rdi)
	jle	LBB0_8
## %bb.2:
	xorl	%r15d, %r15d
	leaq	-56(%rbp), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	movq	8(%r12), %rdi
	movslq	24(%rdi), %rax
	cmpq	%rax, %r15
	jge	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%rdi), %rax
	movq	(%rax,%r15,8), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_get_oid
	testq	%rax, %rax
	jne	LBB0_29
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	$1, %edx
	callq	_lookup_commit_reference_gently
	testl	%eax, %eax
	jne	LBB0_3
## %bb.7:
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_oid_object_info
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %r15d
	movl	%r14d, %edi
	callq	_type_name
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_error
	jmp	LBB0_30
LBB0_8:
	cmpl	$1, (%rdi)
	jne	LBB0_12
## %bb.9:
	movq	8(%rdi), %rax
	movq	(%rax), %rcx
	movq	_REV_CMD_REV@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_12
## %bb.10:
	cmpq	$0, 16(%rdi)
	je	LBB0_12
## %bb.11:
	cmpl	$0, 8(%rax)
	je	LBB0_21
LBB0_12:
	leaq	-48(%rbp), %rdi
	movq	%r12, %rsi
	callq	_walk_revs_populate_todo
	testq	%rax, %rax
	je	LBB0_14
LBB0_13:
	movl	$-1, %ebx
	jmp	LBB0_31
LBB0_14:
	movq	%r14, %rdi
	callq	_create_seq_dir
	testq	%rax, %rax
	js	LBB0_13
## %bb.15:
	leaq	L_.str.5(%rip), %rdi
	leaq	-64(%rbp), %rsi
	callq	_get_oid
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	movq	(%r12), %rax
	movq	_REPLAY_REVERT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.17:
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_23
LBB0_29:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_error
	jmp	LBB0_30
LBB0_18:
	leaq	-64(%rbp), %rdi
	callq	_oid_to_hex
	movl	%eax, %edi
	callq	_save_head
	testq	%rax, %rax
	jne	LBB0_13
## %bb.19:
	movq	%r12, %rdi
	callq	_save_opts
	testq	%rax, %rax
	movl	$-1, %ebx
	jne	LBB0_31
## %bb.20:
	xorl	%eax, %eax
	callq	_update_abort_safety_file
	leaq	-48(%rbp), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_pick_commits
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_todo_list_release
	jmp	LBB0_31
LBB0_21:
	callq	_prepare_revision_walk
	testq	%rax, %rax
	je	LBB0_24
## %bb.22:
	leaq	L_.str.2(%rip), %rdi
LBB0_23:
	callq	__
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_error
LBB0_30:
	movl	%eax, %ebx
LBB0_31:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movq	8(%r12), %rdi
	callq	_get_revision
	testq	%rax, %rax
	je	LBB0_28
## %bb.25:
	movq	%rax, %rbx
	movq	8(%r12), %rdi
	callq	_get_revision
	testq	%rax, %rax
	je	LBB0_27
## %bb.26:
	leaq	L_.str.4(%rip), %rdi
	callq	_BUG
LBB0_27:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_single_pick
	jmp	LBB0_30
LBB0_28:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_TODO_LIST_INIT,4,2             ## @TODO_LIST_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: can't cherry-pick a %s"

L_.str.1:                               ## @.str.1
	.asciz	"%s: bad revision"

	.comm	_REV_CMD_REV,8,3                ## @REV_CMD_REV
L_.str.2:                               ## @.str.2
	.asciz	"revision walk setup failed"

L_.str.3:                               ## @.str.3
	.asciz	"empty commit set passed"

L_.str.4:                               ## @.str.4
	.asciz	"unexpected extra commit from walk"

L_.str.5:                               ## @.str.5
	.asciz	"HEAD"

	.comm	_REPLAY_REVERT,8,3              ## @REPLAY_REVERT
L_.str.6:                               ## @.str.6
	.asciz	"can't revert as initial commit"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sequencer_pick_revisions       ; -- Begin function sequencer_pick_revisions
	.p2align	2
_sequencer_pick_revisions:              ; @sequencer_pick_revisions
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _TODO_LIST_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TODO_LIST_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	ldr	x0, [x1, #8]
	bl	_assert
	mov	x0, x19
	mov	x1, x20
	bl	_read_and_refresh_cache
	cbz	x0, LBB0_3
LBB0_1:
	mov	w19, #-1
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_3:
	ldr	x0, [x20, #8]
	ldr	w8, [x0, #24]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.4:
	mov	x22, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x22, x22, #1
	ldr	x0, [x20, #8]
	ldrsw	x8, [x0, #24]
	cmp	x22, x8
	b.ge	LBB0_10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x0, #32]
	ldr	x21, [x8, x22, lsl #3]
	mov	x0, x21
	bl	_strlen
	cbz	w0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x1, sp, #24
	mov	x0, x21
	bl	_get_oid
	cbnz	x0, LBB0_19
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x1, sp, #24
	mov	x0, x19
	mov	w2, #1
	bl	_lookup_commit_reference_gently
	cbnz	w0, LBB0_5
; %bb.9:
	add	x1, sp, #24
	mov	x0, x19
	mov	x2, #0
	bl	_oid_object_info
	mov	x19, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x20, x0
	mov	x0, x19
	bl	_type_name
	stp	x21, x0, [sp]
	mov	x0, x20
	b	LBB0_26
LBB0_10:
	ldr	w8, [x0]
	cmp	w8, #1
	b.ne	LBB0_14
; %bb.11:
	ldr	x8, [x0, #8]
	ldr	x9, [x8]
Lloh5:
	adrp	x10, _REV_CMD_REV@GOTPAGE
Lloh6:
	ldr	x10, [x10, _REV_CMD_REV@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_14
; %bb.12:
	ldr	x9, [x0, #16]
	cbz	x9, LBB0_14
; %bb.13:
	ldr	w8, [x8, #8]
	cbz	w8, LBB0_23
LBB0_14:
	add	x0, sp, #40
	mov	x1, x20
	bl	_walk_revs_populate_todo
	cbnz	x0, LBB0_1
; %bb.15:
	mov	x0, x19
	bl	_create_seq_dir
	tbnz	x0, #63, LBB0_1
; %bb.16:
Lloh8:
	adrp	x0, l_.str.5@PAGE
Lloh9:
	add	x0, x0, l_.str.5@PAGEOFF
	add	x1, sp, #32
	bl	_get_oid
	cbz	x0, LBB0_20
; %bb.17:
	ldr	x8, [x20]
Lloh10:
	adrp	x9, _REPLAY_REVERT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _REPLAY_REVERT@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.18:
Lloh13:
	adrp	x0, l_.str.6@PAGE
Lloh14:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_25
LBB0_19:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	str	x21, [sp]
	b	LBB0_26
LBB0_20:
	add	x0, sp, #32
	bl	_oid_to_hex
	bl	_save_head
	cbnz	x0, LBB0_1
; %bb.21:
	mov	x0, x20
	bl	_save_opts
	cbnz	x0, LBB0_1
; %bb.22:
	bl	_update_abort_safety_file
	add	x1, sp, #40
	mov	x0, x19
	mov	x2, x20
	bl	_pick_commits
	mov	x19, x0
	add	x0, sp, #40
	bl	_todo_list_release
	b	LBB0_2
LBB0_23:
	bl	_prepare_revision_walk
	cbz	x0, LBB0_28
; %bb.24:
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_25:
	bl	__
LBB0_26:
	bl	_error
LBB0_27:
	mov	x19, x0
	b	LBB0_2
LBB0_28:
	ldr	x0, [x20, #8]
	bl	_get_revision
	cbz	x0, LBB0_32
; %bb.29:
	mov	x21, x0
	ldr	x0, [x20, #8]
	bl	_get_revision
	cbz	x0, LBB0_31
; %bb.30:
Lloh19:
	adrp	x0, l_.str.4@PAGE
Lloh20:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_BUG
LBB0_31:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_single_pick
	b	LBB0_27
LBB0_32:
Lloh21:
	adrp	x0, l_.str.3@PAGE
Lloh22:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_25
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_TODO_LIST_INIT,4,2             ; @TODO_LIST_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: can't cherry-pick a %s"

l_.str.1:                               ; @.str.1
	.asciz	"%s: bad revision"

	.comm	_REV_CMD_REV,8,3                ; @REV_CMD_REV
l_.str.2:                               ; @.str.2
	.asciz	"revision walk setup failed"

l_.str.3:                               ; @.str.3
	.asciz	"empty commit set passed"

l_.str.4:                               ; @.str.4
	.asciz	"unexpected extra commit from walk"

l_.str.5:                               ; @.str.5
	.asciz	"HEAD"

	.comm	_REPLAY_REVERT,8,3              ; @REPLAY_REVERT
l_.str.6:                               ; @.str.6
	.asciz	"can't revert as initial commit"

.subsections_via_symbols
