	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_basic_state              ## -- Begin function write_basic_state
	.p2align	4, 0x90
_write_basic_state:                     ## @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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r13
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	movq	%rax, %r14
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_rebase_path_head_name
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_write_file
LBB0_2:
	testq	%r12, %r12
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_rebase_path_onto
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_oid_to_hex
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_write_file
LBB0_4:
	testq	%r15, %r15
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_rebase_path_orig_head
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_write_file
LBB0_6:
	testq	%r14, %r14
	je	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_rebase_path_quiet
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_write_file
LBB0_8:
	cmpq	$0, 48(%r13)
	je	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	callq	_rebase_path_verbose
	leaq	L_.str.2(%rip), %rsi
	leaq	L_.str.3(%rip), %rdx
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_write_file
LBB0_10:
	cmpq	$0, (%r13)
	je	LBB0_12
## %bb.11:
	xorl	%eax, %eax
	callq	_rebase_path_strategy
	movq	(%r13), %rdx
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_write_file
LBB0_12:
	cmpq	$0, 8(%r13)
	jle	LBB0_14
## %bb.13:
	movq	%r13, %rdi
	callq	_write_strategy_opts
LBB0_14:
	movq	16(%r13), %rax
	movq	_RERERE_AUTOUPDATE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.15:
	leaq	L_.str.4(%rip), %rbx
	jmp	LBB0_18
LBB0_16:
	movq	_RERERE_NOAUTOUPDATE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.17:
	leaq	L_.str.5(%rip), %rbx
LBB0_18:
	xorl	%eax, %eax
	callq	_rebase_path_allow_rerere_autoupdate
	movl	%eax, %edi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_write_file
LBB0_19:
	cmpq	$0, 24(%r13)
	je	LBB0_21
## %bb.20:
	xorl	%eax, %eax
	callq	_rebase_path_gpg_sign_opt
	movq	24(%r13), %rdx
	leaq	L_.str.6(%rip), %rsi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_write_file
LBB0_21:
	cmpq	$0, 40(%r13)
	je	LBB0_23
## %bb.22:
	xorl	%eax, %eax
	callq	_rebase_path_signoff
	leaq	L_.str.7(%rip), %rsi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_write_file
LBB0_23:
	cmpq	$0, 32(%r13)
	je	LBB0_25
## %bb.24:
	xorl	%eax, %eax
	callq	_rebase_path_reschedule_failed_exec
	leaq	L_.str.2(%rip), %rsi
	leaq	L_.str.3(%rip), %rdx
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_write_file
LBB0_25:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GIT_QUIET"

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

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

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

	.comm	_RERERE_AUTOUPDATE,8,3          ## @RERERE_AUTOUPDATE
L_.str.4:                               ## @.str.4
	.asciz	"--rerere-autoupdate\n"

	.comm	_RERERE_NOAUTOUPDATE,8,3        ## @RERERE_NOAUTOUPDATE
L_.str.5:                               ## @.str.5
	.asciz	"--no-rerere-autoupdate\n"

L_.str.6:                               ## @.str.6
	.asciz	"-S%s\n"

L_.str.7:                               ## @.str.7
	.asciz	"--signoff\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_basic_state              ; -- Begin function write_basic_state
	.p2align	2
_write_basic_state:                     ; @write_basic_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	mov	x20, x0
	cbz	x23, LBB0_2
; %bb.1:
	bl	_rebase_path_head_name
	str	x23, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_write_file
LBB0_2:
	cbz	x22, LBB0_4
; %bb.3:
	bl	_rebase_path_onto
	mov	x23, x0
	mov	x0, x22
	bl	_oid_to_hex
	str	x0, [sp]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	bl	_write_file
LBB0_4:
	cbz	x21, LBB0_6
; %bb.5:
	bl	_rebase_path_orig_head
	str	x21, [sp]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_write_file
LBB0_6:
	cbz	x20, LBB0_8
; %bb.7:
	bl	_rebase_path_quiet
	str	x20, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_write_file
LBB0_8:
	ldr	x8, [x19, #48]
Lloh10:
	adrp	x21, l_.str.3@PAGE
Lloh11:
	add	x21, x21, l_.str.3@PAGEOFF
	cbz	x8, LBB0_10
; %bb.9:
	bl	_rebase_path_verbose
	str	x21, [sp]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_write_file
LBB0_10:
	ldr	x8, [x19]
	cbz	x8, LBB0_12
; %bb.11:
	bl	_rebase_path_strategy
	ldr	x8, [x19]
	str	x8, [sp]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_write_file
LBB0_12:
	ldr	x8, [x19, #8]
	cmp	x8, #1
	b.lt	LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_write_strategy_opts
LBB0_14:
	ldr	x8, [x19, #16]
Lloh16:
	adrp	x9, _RERERE_AUTOUPDATE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _RERERE_AUTOUPDATE@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.15:
Lloh19:
	adrp	x20, l_.str.4@PAGE
Lloh20:
	add	x20, x20, l_.str.4@PAGEOFF
	b	LBB0_18
LBB0_16:
Lloh21:
	adrp	x9, _RERERE_NOAUTOUPDATE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _RERERE_NOAUTOUPDATE@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.17:
Lloh24:
	adrp	x20, l_.str.5@PAGE
Lloh25:
	add	x20, x20, l_.str.5@PAGEOFF
LBB0_18:
	bl	_rebase_path_allow_rerere_autoupdate
	mov	x1, x20
	bl	_write_file
LBB0_19:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_21
; %bb.20:
	bl	_rebase_path_gpg_sign_opt
	ldr	x8, [x19, #24]
	str	x8, [sp]
Lloh26:
	adrp	x1, l_.str.6@PAGE
Lloh27:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_write_file
LBB0_21:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_23
; %bb.22:
	bl	_rebase_path_signoff
Lloh28:
	adrp	x1, l_.str.7@PAGE
Lloh29:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_write_file
LBB0_23:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_25
; %bb.24:
	bl	_rebase_path_reschedule_failed_exec
	str	x21, [sp]
Lloh30:
	adrp	x1, l_.str.2@PAGE
Lloh31:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_write_file
LBB0_25:
	mov	w0, #0
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GIT_QUIET"

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

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

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

	.comm	_RERERE_AUTOUPDATE,8,3          ; @RERERE_AUTOUPDATE
l_.str.4:                               ; @.str.4
	.asciz	"--rerere-autoupdate\n"

	.comm	_RERERE_NOAUTOUPDATE,8,3        ; @RERERE_NOAUTOUPDATE
l_.str.5:                               ; @.str.5
	.asciz	"--no-rerere-autoupdate\n"

l_.str.6:                               ; @.str.6
	.asciz	"-S%s\n"

l_.str.7:                               ; @.str.7
	.asciz	"--signoff\n"

.subsections_via_symbols
