	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function launch_specified_editor
_launch_specified_editor:               ## @launch_specified_editor
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r13
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_21
## %bb.2:
	movq	%r13, -80(%rbp)
	movq	%r14, %rdi
	callq	_real_path
	movq	%rax, -72(%rbp)
	movq	$0, -64(%rbp)
	movq	_CHILD_PROCESS_INIT@GOTPCREL(%rip), %rax
	movq	16(%rax), %rcx
	movq	%rcx, -112(%rbp)
	movups	(%rax), %xmm0
	movaps	%xmm0, -128(%rbp)
	movq	_advice_waiting_for_editor@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	%r15, -136(%rbp)                ## 8-byte Spill
	je	LBB0_8
## %bb.3:
	movl	$2, %edi
	callq	_isatty
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	xorl	%eax, %eax
	callq	_is_terminal_dumb
	movq	%rax, %rbx
	movq	_stderr@GOTPCREL(%rip), %rax
	movq	%r14, %r15
	movl	(%rax), %r14d
	leaq	L_.str.2(%rip), %rdi
	callq	__
	testq	%rbx, %rbx
	movl	$32, %ecx
	movl	$10, %edx
	cmovel	%ecx, %edx
	movl	%r14d, %edi
	movq	%r15, %r14
	movq	%rax, %rsi
	callq	_fprintf
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	movb	$1, %bl
	jmp	LBB0_9
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_27
## %bb.6:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error                          ## TAILCALL
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	leaq	-80(%rbp), %rax
	movq	%rax, -128(%rbp)
	movq	%r12, -120(%rbp)
	movl	$1, -112(%rbp)
	leaq	L_.str.3(%rip), %rax
	movq	%rax, -104(%rbp)
	leaq	-128(%rbp), %rdi
	callq	_start_command
	testq	%rax, %rax
	js	LBB0_15
## %bb.10:
	movl	%ebx, -84(%rbp)                 ## 4-byte Spill
	movq	%r14, -144(%rbp)                ## 8-byte Spill
	movq	_SIGINT@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_SIG_IGN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_sigchain_push
	movq	_SIGQUIT@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	(%rbx), %esi
	callq	_sigchain_push
	leaq	-128(%rbp), %rdi
	callq	_finish_command
	movl	%eax, %r12d
	leal	-128(%r12), %ebx
	movl	(%r14), %edi
	callq	_sigchain_pop
	movl	(%r15), %edi
	callq	_sigchain_pop
	cmpl	(%r14), %ebx
	je	LBB0_12
## %bb.11:
	cmpl	(%r15), %ebx
	jne	LBB0_13
LBB0_12:
	movl	%ebx, %edi
	callq	_raise
LBB0_13:
	testl	%r12d, %r12d
	movq	-144(%rbp), %r14                ## 8-byte Reload
	je	LBB0_17
## %bb.14:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_16
LBB0_15:
	leaq	L_.str.4(%rip), %rdi
LBB0_16:
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_error
	jmp	LBB0_24
LBB0_17:
	cmpb	$0, -84(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_20
## %bb.18:
	xorl	%eax, %eax
	callq	_is_terminal_dumb
	testq	%rax, %rax
	jne	LBB0_20
## %bb.19:
	xorl	%eax, %eax
	callq	_term_clear_line
LBB0_20:
	movq	-136(%rbp), %r15                ## 8-byte Reload
LBB0_21:
	xorl	%ebx, %ebx
	testq	%r15, %r15
	je	LBB0_25
## %bb.22:
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_strbuf_read_file
	testq	%rax, %rax
	jns	LBB0_25
## %bb.23:
	leaq	L_.str.6(%rip), %rdi
	movq	%r14, %rsi
	callq	_error_errno
LBB0_24:
	movl	%eax, %ebx
LBB0_25:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_27
## %bb.26:
	movl	%ebx, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Terminal is dumb, but EDITOR unset"

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

	.comm	_CHILD_PROCESS_INIT,32,3        ## @CHILD_PROCESS_INIT
	.comm	_advice_waiting_for_editor,8,3  ## @advice_waiting_for_editor
	.comm	_stderr,4,2                     ## @stderr
L_.str.2:                               ## @.str.2
	.asciz	"hint: Waiting for your editor to close the file...%c"

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

L_.str.4:                               ## @.str.4
	.asciz	"unable to start editor '%s'"

	.comm	_SIGINT,4,2                     ## @SIGINT
	.comm	_SIG_IGN,4,2                    ## @SIG_IGN
	.comm	_SIGQUIT,4,2                    ## @SIGQUIT
L_.str.5:                               ## @.str.5
	.asciz	"There was a problem with the editor '%s'."

L_.str.6:                               ## @.str.6
	.asciz	"could not read file '%s'"

	.no_dead_strip	_launch_specified_editor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function launch_specified_editor
_launch_specified_editor:               ; @launch_specified_editor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	cbz	x0, LBB0_5
; %bb.1:
	mov	x22, x3
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_19
; %bb.2:
	str	x21, [sp, #48]
	mov	x0, x19
	bl	_real_path
	stp	x0, xzr, [sp, #56]
Lloh5:
	adrp	x8, _CHILD_PROCESS_INIT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CHILD_PROCESS_INIT@GOTPAGEOFF]
	ldr	q0, [x8]
	str	q0, [sp, #16]
	ldr	x8, [x8, #16]
	str	x8, [sp, #32]
Lloh7:
	adrp	x8, _advice_waiting_for_editor@GOTPAGE
Lloh8:
	ldr	x8, [x8, _advice_waiting_for_editor@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.3:
	mov	w0, #2
	bl	_isatty
	cbz	x0, LBB0_7
; %bb.4:
	bl	_is_terminal_dumb
	mov	x23, x0
Lloh10:
	adrp	x25, _stderr@GOTPAGE
Lloh11:
	ldr	x25, [x25, _stderr@GOTPAGEOFF]
	ldr	w24, [x25]
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	mov	x1, x0
	cmp	x23, #0
	mov	w8, #10
	mov	w9, #32
	csel	w2, w9, w8, eq
	mov	x0, x24
	bl	_fprintf
	ldr	w0, [x25]
	bl	_fflush
	mov	w24, #1
	b	LBB0_8
LBB0_5:
	ldr	x8, [sp, #72]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.6:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_error
LBB0_7:
	mov	w24, #0
LBB0_8:
	add	x8, sp, #48
	stp	x8, x22, [sp, #16]
	mov	w8, #1
	str	w8, [sp, #32]
Lloh19:
	adrp	x8, l_.str.3@PAGE
Lloh20:
	add	x8, x8, l_.str.3@PAGEOFF
	str	x8, [sp, #40]
	add	x0, sp, #16
	bl	_start_command
	tbnz	x0, #63, LBB0_13
; %bb.9:
Lloh21:
	adrp	x26, _SIGINT@GOTPAGE
Lloh22:
	ldr	x26, [x26, _SIGINT@GOTPAGEOFF]
	ldr	w0, [x26]
Lloh23:
	adrp	x22, _SIG_IGN@GOTPAGE
Lloh24:
	ldr	x22, [x22, _SIG_IGN@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_sigchain_push
Lloh25:
	adrp	x25, _SIGQUIT@GOTPAGE
Lloh26:
	ldr	x25, [x25, _SIGQUIT@GOTPAGEOFF]
	ldr	w0, [x25]
	ldr	w1, [x22]
	bl	_sigchain_push
	add	x0, sp, #16
	bl	_finish_command
	mov	x22, x0
	sub	w23, w0, #128
	ldr	w0, [x26]
	bl	_sigchain_pop
	ldr	w0, [x25]
	bl	_sigchain_pop
	ldr	w8, [x26]
	cmp	w23, w8
	b.eq	LBB0_15
; %bb.10:
	ldr	w8, [x25]
	cmp	w23, w8
	b.eq	LBB0_15
; %bb.11:
	cbz	w22, LBB0_16
LBB0_12:
Lloh27:
	adrp	x0, l_.str.5@PAGE
Lloh28:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh29:
	adrp	x0, l_.str.4@PAGE
Lloh30:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_14:
	str	x21, [sp]
	bl	_error
	b	LBB0_23
LBB0_15:
	mov	x0, x23
	bl	_raise
	cbnz	w22, LBB0_12
LBB0_16:
	cbz	w24, LBB0_19
; %bb.17:
	bl	_is_terminal_dumb
	cbnz	x0, LBB0_19
; %bb.18:
	bl	_term_clear_line
LBB0_19:
	cbz	x20, LBB0_22
; %bb.20:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_strbuf_read_file
	mov	x8, x0
	mov	w0, #0
	tbz	x8, #63, LBB0_23
; %bb.21:
Lloh31:
	adrp	x0, l_.str.6@PAGE
Lloh32:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x1, x19
	bl	_error_errno
	b	LBB0_23
LBB0_22:
	mov	w0, #0
LBB0_23:
	ldr	x8, [sp, #72]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.24:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_25:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Terminal is dumb, but EDITOR unset"

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

	.comm	_CHILD_PROCESS_INIT,32,3        ; @CHILD_PROCESS_INIT
	.comm	_advice_waiting_for_editor,8,3  ; @advice_waiting_for_editor
	.comm	_stderr,4,2                     ; @stderr
l_.str.2:                               ; @.str.2
	.asciz	"hint: Waiting for your editor to close the file...%c"

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

l_.str.4:                               ; @.str.4
	.asciz	"unable to start editor '%s'"

	.comm	_SIGINT,4,2                     ; @SIGINT
	.comm	_SIG_IGN,4,2                    ; @SIG_IGN
	.comm	_SIGQUIT,4,2                    ; @SIGQUIT
l_.str.5:                               ; @.str.5
	.asciz	"There was a problem with the editor '%s'."

l_.str.6:                               ; @.str.6
	.asciz	"could not read file '%s'"

	.no_dead_strip	_launch_specified_editor
.subsections_via_symbols
