	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function editit
_editit:                                ## @editit
	.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	_SIGINT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sigmask
	movl	%eax, %ebx
	movq	_SIGQUIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sigmask
	orl	%eax, %ebx
	movq	_SIGHUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sigmask
	orl	%eax, %ebx
	movl	%ebx, %edi
	callq	_sigblock
	movl	%eax, %r14d
	xorl	%eax, %eax
	callq	_fork
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_1
## %bb.8:
	testl	%r12d, %r12d
	jne	LBB0_16
LBB0_9:
	movl	%r14d, %edi
	callq	_sigsetmask
	xorl	%eax, %eax
	callq	_getgid
	movl	%eax, %edi
	movl	%eax, %esi
	movl	%eax, %edx
	callq	_setresgid
	cmpl	$-1, %eax
	jne	LBB0_11
## %bb.10:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_11:
	xorl	%eax, %eax
	callq	_getuid
	movl	%eax, %edi
	movl	%eax, %esi
	movl	%eax, %edx
	callq	_setresuid
	cmpl	$-1, %eax
	jne	LBB0_13
## %bb.12:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_13:
	leaq	L_.str.4(%rip), %rdi
	callq	_getenv
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:
	movq	_DEFEDITOR@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
LBB0_15:
	movq	_tmpfil@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	callq	_execlp
	leaq	L_.str.5(%rip), %rsi
	movl	$1, %edi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_err
LBB0_16:
	leaq	-44(%rbp), %rbx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_wait
	testl	%eax, %eax
	js	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	cmpl	%r12d, %eax
	jne	LBB0_17
LBB0_19:
	movl	%r14d, %edi
	callq	_sigsetmask
	xorl	%eax, %eax
	cmpl	$0, -44(%rbp)
	sete	%al
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %r15
	movq	_EPROCLIM@GOTPCREL(%rip), %rbx
	movq	_EAGAIN@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	cmpq	(%rbx), %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	(%r13), %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	callq	_sleep
	xorl	%eax, %eax
	callq	_fork
	testl	%eax, %eax
	js	LBB0_2
## %bb.7:
	movl	%eax, %r12d
	testl	%r12d, %r12d
	jne	LBB0_16
	jmp	LBB0_9
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_warnx
	xorl	%eax, %eax
	jmp	LBB0_20
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	callq	_warn
	xorl	%eax, %eax
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_SIGINT,4,2                     ## @SIGINT
	.comm	_SIGQUIT,4,2                    ## @SIGQUIT
	.comm	_SIGHUP,4,2                     ## @SIGHUP
	.comm	_errno,8,3                      ## @errno
	.comm	_EPROCLIM,8,3                   ## @EPROCLIM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"you have too many processes"

	.comm	_EAGAIN,8,3                     ## @EAGAIN
L_.str.1:                               ## @.str.1
	.asciz	"fork"

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

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

L_.str.4:                               ## @.str.4
	.asciz	"EDITOR"

	.comm	_DEFEDITOR,8,3                  ## @DEFEDITOR
	.comm	_tmpfil,4,2                     ## @tmpfil
L_.str.5:                               ## @.str.5
	.asciz	"%s"

	.no_dead_strip	_editit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function editit
_editit:                                ; @editit
	.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
Lloh0:
	adrp	x8, _SIGINT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIGINT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_sigmask
	mov	x19, x0
Lloh3:
	adrp	x8, _SIGQUIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SIGQUIT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_sigmask
	orr	w19, w0, w19
Lloh6:
	adrp	x8, _SIGHUP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SIGHUP@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_sigmask
	orr	w0, w19, w0
	bl	_sigblock
	mov	x19, x0
	bl	_fork
	mov	x20, x0
	tbnz	w0, #31, LBB0_11
; %bb.1:
	cbnz	w20, LBB0_7
LBB0_2:
	mov	x0, x19
	bl	_sigsetmask
	bl	_getgid
	mov	x1, x0
	mov	x2, x0
	bl	_setresgid
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.3:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_4:
	bl	_getuid
	mov	x1, x0
	mov	x2, x0
	bl	_setresuid
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.5:
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_6:
Lloh13:
	adrp	x0, l_.str.4@PAGE
Lloh14:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_getenv
Lloh15:
	adrp	x8, _DEFEDITOR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DEFEDITOR@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x0, #0
	csel	x21, x8, x0, eq
Lloh18:
	adrp	x8, _tmpfil@GOTPAGE
Lloh19:
	ldr	x8, [x8, _tmpfil@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x21
	mov	x3, #0
	bl	_execlp
	str	x21, [sp]
Lloh21:
	adrp	x1, l_.str.5@PAGE
Lloh22:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #12
	bl	_wait
	tbnz	w0, #31, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w0, w20
	b.ne	LBB0_7
LBB0_9:
	mov	x0, x19
	bl	_sigsetmask
	ldr	w8, [sp, #12]
	cmp	w8, #0
	cset	w0, eq
LBB0_10:
	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
LBB0_11:
Lloh23:
	adrp	x21, _errno@GOTPAGE
Lloh24:
	ldr	x21, [x21, _errno@GOTPAGEOFF]
Lloh25:
	adrp	x22, _EPROCLIM@GOTPAGE
Lloh26:
	ldr	x22, [x22, _EPROCLIM@GOTPAGEOFF]
Lloh27:
	adrp	x23, _EAGAIN@GOTPAGE
Lloh28:
	ldr	x23, [x23, _EAGAIN@GOTPAGEOFF]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	w0, #1
	bl	_sleep
	bl	_fork
	tbnz	w0, #31, LBB0_12
; %bb.15:
	mov	x20, x0
	cbnz	w20, LBB0_7
	b	LBB0_2
LBB0_16:
Lloh29:
	adrp	x0, l_.str@PAGE
Lloh30:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warnx
	mov	w0, #0
	b	LBB0_10
LBB0_17:
Lloh31:
	adrp	x0, l_.str.1@PAGE
Lloh32:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warn
	mov	w0, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_SIGINT,4,2                     ; @SIGINT
	.comm	_SIGQUIT,4,2                    ; @SIGQUIT
	.comm	_SIGHUP,4,2                     ; @SIGHUP
	.comm	_errno,8,3                      ; @errno
	.comm	_EPROCLIM,8,3                   ; @EPROCLIM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"you have too many processes"

	.comm	_EAGAIN,8,3                     ; @EAGAIN
l_.str.1:                               ; @.str.1
	.asciz	"fork"

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

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

l_.str.4:                               ; @.str.4
	.asciz	"EDITOR"

	.comm	_DEFEDITOR,8,3                  ; @DEFEDITOR
	.comm	_tmpfil,4,2                     ; @tmpfil
l_.str.5:                               ; @.str.5
	.asciz	"%s"

	.no_dead_strip	_editit
.subsections_via_symbols
