	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ex_edit                        ## -- Begin function ex_edit
	.p2align	4, 0x90
_ex_edit:                               ## @ex_edit
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rsi), %r13d
	cmpl	$1, %r13d
	je	LBB0_6
## %bb.1:
	testl	%r13d, %r13d
	jne	LBB0_21
## %bb.2:
	cmpq	$0, (%r14)
	je	LBB0_4
## %bb.3:
	movq	8(%r14), %r15
	movq	_FR_TMPFILE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	je	LBB0_9
LBB0_4:
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_file_add
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_10
	jmp	LBB0_5
LBB0_6:
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	incl	%edx
	movq	%r14, %rdi
	callq	_INT2CHAR
	movq	%r14, %rdi
	callq	_file_add
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_set_alt_name
	xorl	%r12d, %r12d
	jmp	LBB0_10
LBB0_5:
	movl	$1, %r12d
	jmp	LBB0_20
LBB0_9:
	movl	$1, %r12d
LBB0_10:
	movq	_E_NEWSCREEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	je	LBB0_12
LBB0_11:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movl	%r12d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ex_N_edit                      ## TAILCALL
LBB0_12:
	movq	_cmds@GOTPCREL(%rip), %rax
	movq	_C_VSPLIT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$2, %rcx
	addq	(%rax), %rcx
	cmpq	%rcx, 8(%rbx)
	je	LBB0_11
## %bb.13:
	movl	4(%rbx), %edi
	movq	_E_C_FORCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FL_ISSET
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_file_m2
	movl	$1, %r12d
	testq	%rax, %rax
	jne	LBB0_20
## %bb.14:
	movq	_E_C_FORCE@GOTPCREL(%rip), %rcx
	testl	%r13d, %r13d
	je	LBB0_16
## %bb.15:
	movq	_FS_SETALT@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_16:
	movl	4(%rbx), %edi
	movl	(%rcx), %esi
	callq	_FL_ISSET
	movl	$0, %ecx
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	_FS_FORCE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_18:
	orl	%r13d, %ecx
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_file_init
	testq	%rax, %rax
	jne	LBB0_20
## %bb.19:
	movq	_SC_FSWITCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_F_SET
	xorl	%r12d, %r12d
LBB0_20:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.comm	_FR_TMPFILE,4,2                 ## @FR_TMPFILE
	.comm	_E_NEWSCREEN,4,2                ## @E_NEWSCREEN
	.comm	_cmds,8,3                       ## @cmds
	.comm	_C_VSPLIT,8,3                   ## @C_VSPLIT
	.comm	_E_C_FORCE,4,2                  ## @E_C_FORCE
	.comm	_FS_SETALT,4,2                  ## @FS_SETALT
	.comm	_FS_FORCE,4,2                   ## @FS_FORCE
	.comm	_SC_FSWITCH,4,2                 ## @SC_FSWITCH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ex_edit                        ; -- Begin function ex_edit
	.p2align	2
_ex_edit:                               ; @ex_edit
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	ldr	w23, [x1]
	cmp	w23, #1
	b.eq	LBB0_6
; %bb.1:
	cbnz	w23, LBB0_18
; %bb.2:
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x21, [x19, #8]
Lloh0:
	adrp	x8, _FR_TMPFILE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FR_TMPFILE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_F_ISSET
	cbz	x0, LBB0_16
LBB0_4:
	mov	x0, x19
	mov	x1, #0
	bl	_file_add
	cbz	x0, LBB0_14
; %bb.5:
	mov	x21, x0
	b	LBB0_8
LBB0_6:
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	ldp	w8, w1, [x8]
	add	w2, w8, #1
	mov	x0, x19
	bl	_INT2CHAR
	mov	x0, x19
	bl	_file_add
	cbz	x0, LBB0_14
; %bb.7:
	mov	x21, x0
	mov	x0, x19
	bl	_set_alt_name
LBB0_8:
	mov	w22, #0
LBB0_9:
Lloh3:
	adrp	x8, _E_NEWSCREEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _E_NEWSCREEN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_F_ISSET
	cbz	x0, LBB0_11
LBB0_10:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ex_N_edit
LBB0_11:
	ldr	x8, [x20, #8]
Lloh6:
	adrp	x9, _cmds@GOTPAGE
Lloh7:
	ldr	x9, [x9, _cmds@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _C_VSPLIT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _C_VSPLIT@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	add	x9, x9, x10, lsl #2
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.12:
	ldr	w0, [x20, #4]
Lloh12:
	adrp	x22, _E_C_FORCE@GOTPAGE
Lloh13:
	ldr	x22, [x22, _E_C_FORCE@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_FL_ISSET
	mov	x1, x0
	mov	x0, x19
	bl	_file_m2
	cbnz	x0, LBB0_14
; %bb.13:
Lloh14:
	adrp	x8, _FS_SETALT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FS_SETALT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w23, #0
	csel	w23, wzr, w8, eq
	ldr	w0, [x20, #4]
	ldr	w1, [x22]
	bl	_FL_ISSET
Lloh17:
	adrp	x8, _FS_FORCE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FS_FORCE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w3, w8, w23
	mov	x0, x19
	mov	x1, x21
	mov	x2, #0
	bl	_file_init
	cbz	x0, LBB0_17
LBB0_14:
	mov	w0, #1
LBB0_15:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_16:
	mov	w22, #1
	b	LBB0_9
LBB0_17:
Lloh20:
	adrp	x8, _SC_FSWITCH@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SC_FSWITCH@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_F_SET
	mov	w0, #0
	b	LBB0_15
LBB0_18:
	bl	_abort
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_FR_TMPFILE,4,2                 ; @FR_TMPFILE
	.comm	_E_NEWSCREEN,4,2                ; @E_NEWSCREEN
	.comm	_cmds,8,3                       ; @cmds
	.comm	_C_VSPLIT,8,3                   ; @C_VSPLIT
	.comm	_E_C_FORCE,4,2                  ; @E_C_FORCE
	.comm	_FS_SETALT,4,2                  ; @FS_SETALT
	.comm	_FS_FORCE,4,2                   ; @FS_FORCE
	.comm	_SC_FSWITCH,4,2                 ; @SC_FSWITCH
.subsections_via_symbols
