	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rebase_write_basic_state
_rebase_write_basic_state:              ## @rebase_write_basic_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_state_dir_path
	movq	(%rbx), %rcx
	testq	%rcx, %rcx
	leaq	L_.str.2(%rip), %rdx
	cmovneq	%rcx, %rdx
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_write_file
	leaq	L_.str.3(%rip), %rdi
	movq	%rbx, %rsi
	callq	_state_dir_path
	movl	%eax, %r12d
	movq	48(%rbx), %rdi
	leaq	L_.str.4(%rip), %r14
	movq	%r14, %rdx
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_oid_to_hex
	movq	%rax, %rdx
LBB0_2:
	leaq	L_.str.1(%rip), %r15
	movl	%r12d, %edi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_write_file
	leaq	L_.str.5(%rip), %rdi
	movq	%rbx, %rsi
	callq	_state_dir_path
	movl	%eax, %r12d
	leaq	44(%rbx), %rdi
	callq	_oid_to_hex
	movl	%r12d, %edi
	movq	%r15, %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_write_file
	leaq	L_.str.6(%rip), %rdi
	movq	%rbx, %rsi
	callq	_state_dir_path
	movq	_REBASE_NO_QUIET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	8(%rbx), %ecx
	leaq	L_.str.7(%rip), %rcx
	cmoveq	%rcx, %r14
	movl	%eax, %edi
	movq	%r15, %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_write_file
	movq	_REBASE_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_4
## %bb.3:
	leaq	L_.str.8(%rip), %rdi
	movq	%rbx, %rsi
	callq	_state_dir_path
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.4(%rip), %rdx
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_write_file
LBB0_4:
	cmpl	$0, 40(%rbx)
	je	LBB0_6
## %bb.5:
	leaq	L_.str.9(%rip), %rdi
	movq	%rbx, %rsi
	callq	_state_dir_path
	movl	40(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_write_file
LBB0_6:
	cmpl	$0, 36(%rbx)
	je	LBB0_8
## %bb.7:
	leaq	L_.str.10(%rip), %rdi
	movq	%rbx, %rsi
	callq	_state_dir_path
	movl	36(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_write_file
LBB0_8:
	cmpq	$0, 16(%rbx)
	jle	LBB0_10
## %bb.9:
	leaq	L_.str.11(%rip), %rdi
	movq	%rbx, %rsi
	callq	_state_dir_path
	movq	16(%rbx), %rcx
	movq	_RERERE_AUTOUPDATE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	leaq	L_.str.4(%rip), %rcx
	leaq	L_.str.13(%rip), %rdx
	cmoveq	%rcx, %rdx
	leaq	L_.str.12(%rip), %rsi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_write_file
LBB0_10:
	cmpl	$0, 32(%rbx)
	je	LBB0_12
## %bb.11:
	leaq	L_.str.14(%rip), %rdi
	movq	%rbx, %rsi
	callq	_state_dir_path
	movl	32(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_write_file
LBB0_12:
	cmpq	$0, 24(%rbx)
	je	LBB0_14
## %bb.13:
	leaq	L_.str.9(%rip), %rdi
	movq	%rbx, %rsi
	callq	_state_dir_path
	leaq	L_.str.15(%rip), %rsi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_write_file
LBB0_14:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"head-name"

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

L_.str.2:                               ## @.str.2
	.asciz	"detached HEAD"

L_.str.3:                               ## @.str.3
	.asciz	"onto"

L_.str.4:                               ## @.str.4
	.space	1

L_.str.5:                               ## @.str.5
	.asciz	"orig-head"

L_.str.6:                               ## @.str.6
	.asciz	"quiet"

	.comm	_REBASE_NO_QUIET,4,2            ## @REBASE_NO_QUIET
L_.str.7:                               ## @.str.7
	.asciz	"t"

	.comm	_REBASE_VERBOSE,4,2             ## @REBASE_VERBOSE
L_.str.8:                               ## @.str.8
	.asciz	"verbose"

L_.str.9:                               ## @.str.9
	.asciz	"strategy"

L_.str.10:                              ## @.str.10
	.asciz	"strategy_opts"

L_.str.11:                              ## @.str.11
	.asciz	"allow_rerere_autoupdate"

L_.str.12:                              ## @.str.12
	.asciz	"-%s-rerere-autoupdate"

	.comm	_RERERE_AUTOUPDATE,8,3          ## @RERERE_AUTOUPDATE
L_.str.13:                              ## @.str.13
	.asciz	"-no"

L_.str.14:                              ## @.str.14
	.asciz	"gpg_sign_opt"

L_.str.15:                              ## @.str.15
	.asciz	"--signoff"

	.no_dead_strip	_rebase_write_basic_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rebase_write_basic_state
_rebase_write_basic_state:              ; @rebase_write_basic_state
	.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, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_state_dir_path
	ldr	x8, [x19]
Lloh2:
	adrp	x9, l_.str.2@PAGE
Lloh3:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	x8, #0
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_write_file
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_state_dir_path
	mov	x20, x0
	ldr	x0, [x19, #48]
Lloh8:
	adrp	x22, l_.str.4@PAGE
Lloh9:
	add	x22, x22, l_.str.4@PAGEOFF
	cbz	x0, LBB0_2
; %bb.1:
	bl	_oid_to_hex
	b	LBB0_3
LBB0_2:
	mov	x0, x22
LBB0_3:
	str	x0, [sp]
Lloh10:
	adrp	x21, l_.str.1@PAGE
Lloh11:
	add	x21, x21, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	bl	_write_file
Lloh12:
	adrp	x0, l_.str.5@PAGE
Lloh13:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x19
	bl	_state_dir_path
	mov	x20, x0
	add	x0, x19, #44
	bl	_oid_to_hex
	str	x0, [sp]
	mov	x0, x20
	mov	x1, x21
	bl	_write_file
Lloh14:
	adrp	x0, l_.str.6@PAGE
Lloh15:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x1, x19
	bl	_state_dir_path
Lloh16:
	adrp	x8, _REBASE_NO_QUIET@GOTPAGE
Lloh17:
	ldr	x8, [x8, _REBASE_NO_QUIET@GOTPAGEOFF]
	ldr	w9, [x19, #8]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x10, l_.str.7@PAGE
Lloh20:
	add	x10, x10, l_.str.7@PAGEOFF
	tst	w8, w9
	csel	x8, x10, x22, eq
	str	x8, [sp]
	mov	x1, x21
	bl	_write_file
	ldr	w8, [x19, #8]
Lloh21:
	adrp	x9, _REBASE_VERBOSE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _REBASE_VERBOSE@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
Lloh24:
	adrp	x0, l_.str.8@PAGE
Lloh25:
	add	x0, x0, l_.str.8@PAGEOFF
	mov	x1, x19
	bl	_state_dir_path
	str	x22, [sp]
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_write_file
LBB0_5:
	ldr	w8, [x19, #40]
	cbz	w8, LBB0_7
; %bb.6:
Lloh28:
	adrp	x0, l_.str.9@PAGE
Lloh29:
	add	x0, x0, l_.str.9@PAGEOFF
	mov	x1, x19
	bl	_state_dir_path
	ldr	w8, [x19, #40]
	str	x8, [sp]
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_write_file
LBB0_7:
	ldr	w8, [x19, #36]
	cbz	w8, LBB0_9
; %bb.8:
Lloh32:
	adrp	x0, l_.str.10@PAGE
Lloh33:
	add	x0, x0, l_.str.10@PAGEOFF
	mov	x1, x19
	bl	_state_dir_path
	ldr	w8, [x19, #36]
	str	x8, [sp]
Lloh34:
	adrp	x1, l_.str.1@PAGE
Lloh35:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_write_file
LBB0_9:
	ldr	x8, [x19, #16]
	cmp	x8, #1
	b.lt	LBB0_11
; %bb.10:
Lloh36:
	adrp	x0, l_.str.11@PAGE
Lloh37:
	add	x0, x0, l_.str.11@PAGEOFF
	mov	x1, x19
	bl	_state_dir_path
Lloh38:
	adrp	x8, _RERERE_AUTOUPDATE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _RERERE_AUTOUPDATE@GOTPAGEOFF]
	ldr	x9, [x19, #16]
Lloh40:
	ldr	x8, [x8]
Lloh41:
	adrp	x10, l_.str.13@PAGE
Lloh42:
	add	x10, x10, l_.str.13@PAGEOFF
	cmp	x9, x8
	csel	x8, x22, x10, eq
	str	x8, [sp]
Lloh43:
	adrp	x1, l_.str.12@PAGE
Lloh44:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_write_file
LBB0_11:
	ldr	w8, [x19, #32]
	cbz	w8, LBB0_13
; %bb.12:
Lloh45:
	adrp	x0, l_.str.14@PAGE
Lloh46:
	add	x0, x0, l_.str.14@PAGEOFF
	mov	x1, x19
	bl	_state_dir_path
	ldr	w8, [x19, #32]
	str	x8, [sp]
Lloh47:
	adrp	x1, l_.str.1@PAGE
Lloh48:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_write_file
LBB0_13:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_15
; %bb.14:
Lloh49:
	adrp	x0, l_.str.9@PAGE
Lloh50:
	add	x0, x0, l_.str.9@PAGEOFF
	mov	x1, x19
	bl	_state_dir_path
Lloh51:
	adrp	x1, l_.str.15@PAGE
Lloh52:
	add	x1, x1, l_.str.15@PAGEOFF
	bl	_write_file
LBB0_15:
	mov	w0, #0
	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	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"head-name"

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

l_.str.2:                               ; @.str.2
	.asciz	"detached HEAD"

l_.str.3:                               ; @.str.3
	.asciz	"onto"

l_.str.4:                               ; @.str.4
	.space	1

l_.str.5:                               ; @.str.5
	.asciz	"orig-head"

l_.str.6:                               ; @.str.6
	.asciz	"quiet"

	.comm	_REBASE_NO_QUIET,4,2            ; @REBASE_NO_QUIET
l_.str.7:                               ; @.str.7
	.asciz	"t"

	.comm	_REBASE_VERBOSE,4,2             ; @REBASE_VERBOSE
l_.str.8:                               ; @.str.8
	.asciz	"verbose"

l_.str.9:                               ; @.str.9
	.asciz	"strategy"

l_.str.10:                              ; @.str.10
	.asciz	"strategy_opts"

l_.str.11:                              ; @.str.11
	.asciz	"allow_rerere_autoupdate"

l_.str.12:                              ; @.str.12
	.asciz	"-%s-rerere-autoupdate"

	.comm	_RERERE_AUTOUPDATE,8,3          ; @RERERE_AUTOUPDATE
l_.str.13:                              ; @.str.13
	.asciz	"-no"

l_.str.14:                              ; @.str.14
	.asciz	"gpg_sign_opt"

l_.str.15:                              ; @.str.15
	.asciz	"--signoff"

	.no_dead_strip	_rebase_write_basic_state
.subsections_via_symbols
