	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_find_stop_ed                   ## -- Begin function find_stop_ed
	.p2align	4, 0x90
_find_stop_ed:                          ## @find_stop_ed
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_pcurrent@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	_STReditors@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_adrof
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	(%rax), %rcx
	movq	%rcx, %rax
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_20
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	$47, %esi
	callq	_strrchr
	leaq	1(%rax), %r15
	testq	%rax, %rax
	cmoveq	%r14, %r15
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str.1(%rip), %r15
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	$47, %esi
	callq	_strrchr
	leaq	1(%rax), %r12
	testq	%rax, %rax
	cmoveq	%r14, %r12
	jmp	LBB0_11
LBB0_9:
	leaq	L_.str.3(%rip), %r12
LBB0_11:
	movb	(%r12), %al
	xorl	%ebx, %ebx
	testb	%al, %al
	je	LBB0_15
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movzbl	%al, %edi
	callq	_isspace
	testl	%eax, %eax
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movzbl	1(%r12,%rbx), %eax
	incq	%rbx
	testb	%al, %al
	jne	LBB0_13
LBB0_15:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, %rbx
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movb	(%r15), %al
	movb	$1, %cl
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	testb	%al, %al
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_16
## %bb.17:
	xorl	%ecx, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movzbl	%al, %edi
	callq	_isspace
	testl	%eax, %eax
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movzbl	1(%r15,%r13), %eax
	incq	%r13
	testb	%al, %al
	jne	LBB0_18
	jmp	LBB0_20
LBB0_16:
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
LBB0_20:
	movq	_proclist@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	testq	%r12, %r12
	je	LBB0_1
## %bb.21:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_PALLSTATES@GOTPCREL(%rip), %rcx
	movq	_PINTERRUPTED@GOTPCREL(%rip), %rdx
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_41:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	_PALLSTATES@GOTPCREL(%rip), %rcx
	movq	_PINTERRUPTED@GOTPCREL(%rip), %rdx
LBB0_42:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	24(%r12), %r12
	testq	%r12, %r12
	je	LBB0_43
LBB0_22:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_28 Depth 2
	movq	(%r12), %rax
	cmpq	8(%r12), %rax
	jne	LBB0_42
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	movl	(%rcx), %eax
	andl	16(%r12), %eax
	cmpl	(%rdx), %eax
	je	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	_PSTOPPED@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %eax
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	_PSIGNALED@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %eax
	jne	LBB0_42
LBB0_26:                                ##   in Loop: Header=BB0_22 Depth=1
	movl	20(%r12), %edi
	callq	_short2str
	movq	%rax, %r15
	movb	(%rax), %al
	movq	%r15, %rbx
	testb	%al, %al
	je	LBB0_30
## %bb.27:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	%r15, %rbx
	.p2align	4, 0x90
LBB0_28:                                ##   Parent Loop BB0_22 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	%al, %edi
	callq	_isspace
	testl	%eax, %eax
	jne	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=2
	movzbl	1(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	jne	LBB0_28
LBB0_30:                                ##   in Loop: Header=BB0_22 Depth=1
	movb	$0, (%rbx)
	movq	%r15, %rdi
	movl	$47, %esi
	callq	_strrchr
	leaq	1(%rax), %r14
	testq	%rax, %rax
	cmoveq	%r15, %r14
	cmpb	$0, -88(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_findvv
	testq	%rax, %rax
	je	LBB0_32
LBB0_38:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	_pcurrent@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	je	LBB0_39
## %bb.40:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	_pprevious@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, %rax
	cmoveq	%r12, %rax
	testq	%rcx, %rcx
	cmoveq	%r12, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_41
LBB0_32:                                ##   in Loop: Header=BB0_22 Depth=1
	testq	%r13, %r13
	je	LBB0_35
## %bb.33:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_22 Depth=1
	cmpb	$0, (%r14,%r13)
	je	LBB0_38
LBB0_35:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_41
## %bb.36:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_41
## %bb.37:                              ##   in Loop: Header=BB0_22 Depth=1
	cmpb	$0, (%r14,%rbx)
	jne	LBB0_41
	jmp	LBB0_38
LBB0_1:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_43:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_39:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_43
	.cfi_endproc
                                        ## -- End function
	.comm	_pcurrent,8,3                   ## @pcurrent
	.comm	_STReditors,4,2                 ## @STReditors
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EDITOR"

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

L_.str.2:                               ## @.str.2
	.asciz	"VISUAL"

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

	.comm	_proclist,8,3                   ## @proclist
	.comm	_PALLSTATES,4,2                 ## @PALLSTATES
	.comm	_PINTERRUPTED,4,2               ## @PINTERRUPTED
	.comm	_PSTOPPED,4,2                   ## @PSTOPPED
	.comm	_PSIGNALED,4,2                  ## @PSIGNALED
	.comm	_pprevious,8,3                  ## @pprevious
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_find_stop_ed                   ; -- Begin function find_stop_ed
	.p2align	2
_find_stop_ed:                          ; @find_stop_ed
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _pcurrent@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pcurrent@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_42
; %bb.1:
Lloh3:
	adrp	x8, _STReditors@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STReditors@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_adrof
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x0]
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	cbz	x8, LBB0_4
; %bb.3:
	str	wzr, [sp, #28]                  ; 4-byte Folded Spill
	mov	x19, #0
	mov	x24, #0
	mov	x23, #0
	mov	x21, #0
	b	LBB0_23
LBB0_4:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_6
; %bb.5:
	mov	x19, x0
	mov	w1, #47
	bl	_strrchr
	cmp	x0, #0
	csinc	x19, x19, x0, eq
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x19, l_.str.1@PAGE
Lloh9:
	add	x19, x19, l_.str.1@PAGEOFF
LBB0_7:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_17
; %bb.8:
	mov	x20, x0
	mov	w1, #47
	bl	_strrchr
	cmp	x0, #0
	csinc	x24, x20, x0, eq
	ldrb	w8, [x24]
	cbz	w8, LBB0_18
LBB0_9:
	mov	x22, #0
	add	x20, x24, #1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	and	w0, w8, #0xff
	bl	_isspace
	cbnz	w0, LBB0_20
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x21, x22, #1
	ldrb	w8, [x20, x22]
	mov	x22, x21
	cbnz	w8, LBB0_10
; %bb.12:
	ldrb	w9, [x19]
	cbz	w9, LBB0_19
LBB0_13:
	mov	x23, #0
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	and	w0, w9, #0xff
	bl	_isspace
	cbnz	w0, LBB0_21
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x8, x23, #1
	add	x9, x19, x23
	ldrb	w9, [x9, #1]
	mov	x23, x8
	cbnz	w9, LBB0_14
; %bb.16:
	str	xzr, [sp, #16]                  ; 8-byte Folded Spill
	mov	w9, #1
	str	w9, [sp, #28]                   ; 4-byte Folded Spill
	mov	x23, x8
	b	LBB0_23
LBB0_17:
Lloh12:
	adrp	x24, l_.str.3@PAGE
Lloh13:
	add	x24, x24, l_.str.3@PAGEOFF
	ldrb	w8, [x24]
	cbnz	w8, LBB0_9
LBB0_18:
	mov	x21, #0
	ldrb	w9, [x19]
	cbnz	w9, LBB0_13
LBB0_19:
	str	xzr, [sp, #16]                  ; 8-byte Folded Spill
	mov	x23, #0
	b	LBB0_22
LBB0_20:
	mov	x21, x22
	ldrb	w9, [x19]
	cbnz	w9, LBB0_13
	b	LBB0_19
LBB0_21:
	str	xzr, [sp, #16]                  ; 8-byte Folded Spill
LBB0_22:
	mov	w8, #1
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
LBB0_23:
Lloh14:
	adrp	x8, _proclist@GOTPAGE
Lloh15:
	ldr	x8, [x8, _proclist@GOTPAGEOFF]
Lloh16:
	ldr	x28, [x8]
	cbz	x28, LBB0_42
; %bb.24:
	stp	x24, x19, [sp]                  ; 16-byte Folded Spill
	mov	x24, #0
Lloh17:
	adrp	x20, _PALLSTATES@GOTPAGE
Lloh18:
	ldr	x20, [x20, _PALLSTATES@GOTPAGEOFF]
Lloh19:
	adrp	x22, _PINTERRUPTED@GOTPAGE
Lloh20:
	ldr	x22, [x22, _PINTERRUPTED@GOTPAGEOFF]
Lloh21:
	adrp	x27, _PSTOPPED@GOTPAGE
Lloh22:
	ldr	x27, [x27, _PSTOPPED@GOTPAGEOFF]
Lloh23:
	adrp	x19, _PSIGNALED@GOTPAGE
Lloh24:
	ldr	x19, [x19, _PSIGNALED@GOTPAGEOFF]
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_26 Depth=1
	ldr	x28, [x28, #24]
	cbz	x28, LBB0_43
LBB0_26:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_30 Depth 2
	ldp	x8, x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_25
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=1
	ldr	w8, [x28, #16]
	ldr	w9, [x20]
	and	w8, w9, w8
	ldr	w9, [x22]
	ldr	w10, [x27]
	ldr	w11, [x19]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	ccmp	w8, w11, #4, ne
	b.ne	LBB0_25
; %bb.28:                               ;   in Loop: Header=BB0_26 Depth=1
	ldr	w0, [x28, #20]
	bl	_short2str
	mov	x26, x0
	ldrb	w8, [x0]
	mov	x25, x0
	cbz	w8, LBB0_32
; %bb.29:                               ;   in Loop: Header=BB0_26 Depth=1
	mov	x25, x26
LBB0_30:                                ;   Parent Loop BB0_26 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	and	w0, w8, #0xff
	bl	_isspace
	cbnz	w0, LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=2
	ldrb	w8, [x25, #1]!
	cbnz	w8, LBB0_30
LBB0_32:                                ;   in Loop: Header=BB0_26 Depth=1
	strb	wzr, [x25]
	mov	x0, x26
	mov	w1, #47
	bl	_strrchr
	cmp	x0, #0
	csinc	x25, x26, x0, eq
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	tbnz	w8, #0, LBB0_36
; %bb.33:                               ;   in Loop: Header=BB0_26 Depth=1
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	mov	x1, x25
	bl	_findvv
	cbz	x0, LBB0_36
LBB0_34:                                ;   in Loop: Header=BB0_26 Depth=1
Lloh25:
	adrp	x8, _pcurrent@GOTPAGE
Lloh26:
	ldr	x8, [x8, _pcurrent@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	cmp	x28, x8
	b.eq	LBB0_44
; %bb.35:                               ;   in Loop: Header=BB0_26 Depth=1
Lloh28:
	adrp	x8, _pprevious@GOTPAGE
Lloh29:
	ldr	x8, [x8, _pprevious@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	cmp	x28, x8
	ccmp	x24, #0, #4, ne
	csel	x24, x28, x24, eq
	b	LBB0_25
LBB0_36:                                ;   in Loop: Header=BB0_26 Depth=1
	cbz	x23, LBB0_39
; %bb.37:                               ;   in Loop: Header=BB0_26 Depth=1
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x25
	mov	x2, x23
	bl	_strncmp
	cbnz	x0, LBB0_39
; %bb.38:                               ;   in Loop: Header=BB0_26 Depth=1
	ldrb	w8, [x25, x23]
	cbz	w8, LBB0_34
LBB0_39:                                ;   in Loop: Header=BB0_26 Depth=1
	cbz	x21, LBB0_25
; %bb.40:                               ;   in Loop: Header=BB0_26 Depth=1
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	mov	x1, x25
	mov	x2, x21
	bl	_strncmp
	cbnz	x0, LBB0_25
; %bb.41:                               ;   in Loop: Header=BB0_26 Depth=1
	ldrb	w8, [x25, x21]
	cbnz	w8, LBB0_25
	b	LBB0_34
LBB0_42:
	mov	x24, #0
LBB0_43:
	mov	x0, x24
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_44:
	mov	x24, x28
	b	LBB0_43
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_pcurrent,8,3                   ; @pcurrent
	.comm	_STReditors,4,2                 ; @STReditors
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EDITOR"

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

l_.str.2:                               ; @.str.2
	.asciz	"VISUAL"

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

	.comm	_proclist,8,3                   ; @proclist
	.comm	_PALLSTATES,4,2                 ; @PALLSTATES
	.comm	_PINTERRUPTED,4,2               ; @PINTERRUPTED
	.comm	_PSTOPPED,4,2                   ; @PSTOPPED
	.comm	_PSIGNALED,4,2                  ; @PSIGNALED
	.comm	_pprevious,8,3                  ; @pprevious
.subsections_via_symbols
