	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v_ex                           ## -- Begin function v_ex
	.p2align	4, 0x90
_v_ex:                                  ## @v_ex
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movb	$1, %r12b
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_EXCMD_RUNNING
	testl	%eax, %eax
	jne	LBB0_9
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_TXT_CEDIT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_TXT_BS@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_TXT_FILEC@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_TXT_PROMPT@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	$58, %edx
	callq	_v_tcmd
	movl	$1, %r13d
	testq	%rax, %rax
	jne	LBB0_21
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	4(%rbx), %edi
	callq	_TAILQ_FIRST
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	_TERM_CEDIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_22
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movb	$1, %dl
	movq	_TERM_BS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_16
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_TERM_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_O_CEDIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_O_STR
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_v_ecl_log
	testq	%rax, %rax
	jne	LBB0_21
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	8(%r14), %ecx
	movl	12(%r14), %edx
	movl	$1, %r13d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_ex_run_str
	testq	%rax, %rax
	jne	LBB0_21
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_vs_home
	movq	_SC_SCR_EXWROTE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	$10, %edi
	callq	_putchar
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_ex_cmd
	movq	%rbx, %rdi
	callq	_ex_fflush
	movq	%rbx, %rdi
	leaq	-44(%rbp), %rsi
	callq	_vs_ex_resolve
	testq	%rax, %rax
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, -44(%rbp)
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	incl	(%rbx)
	xorl	%r12d, %r12d
	jmp	LBB0_1
LBB0_14:
	movl	$1, %r13d
	jmp	LBB0_21
LBB0_15:
	movb	$1, %dl
	jmp	LBB0_16
LBB0_22:
	cmpl	$2, 8(%r14)
	jl	LBB0_25
## %bb.23:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_v_ecl_log
	testq	%rax, %rax
	jne	LBB0_21
LBB0_25:
	xorl	%edx, %edx
LBB0_16:
	movl	%edx, %r14d
	testb	$1, %r12b
	jne	LBB0_18
## %bb.17:
	movq	_SC_EX_WAIT_NO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_F_SET
	leaq	-44(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_vs_ex_resolve
	movl	$1, %r13d
	testq	%rax, %rax
	jne	LBB0_21
LBB0_18:
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_v_ex_done
	xorl	%r13d, %r13d
	testq	%rax, %rax
	setne	%al
	orb	%al, %r14b
	je	LBB0_20
## %bb.19:
	movb	%al, %r13b
	jmp	LBB0_21
LBB0_20:
	movq	%rbx, %rdi
	callq	_v_ecl
	movl	%eax, %r13d
LBB0_21:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TXT_BS,4,2                     ## @TXT_BS
	.comm	_TXT_CEDIT,4,2                  ## @TXT_CEDIT
	.comm	_TXT_FILEC,4,2                  ## @TXT_FILEC
	.comm	_TXT_PROMPT,4,2                 ## @TXT_PROMPT
	.comm	_TERM_CEDIT,8,3                 ## @TERM_CEDIT
	.comm	_TERM_BS,8,3                    ## @TERM_BS
	.comm	_TERM_OK,8,3                    ## @TERM_OK
	.comm	_O_CEDIT,4,2                    ## @O_CEDIT
	.comm	_SC_SCR_EXWROTE,4,2             ## @SC_SCR_EXWROTE
	.comm	_SC_EX_WAIT_NO,4,2              ## @SC_EX_WAIT_NO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v_ex                           ; -- Begin function v_ex
	.p2align	2
_v_ex:                                  ; @v_ex
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #8]
	mov	w23, #1
Lloh0:
	adrp	x25, _TXT_CEDIT@GOTPAGE
Lloh1:
	ldr	x25, [x25, _TXT_CEDIT@GOTPAGEOFF]
Lloh2:
	adrp	x26, _TXT_FILEC@GOTPAGE
Lloh3:
	ldr	x26, [x26, _TXT_FILEC@GOTPAGEOFF]
Lloh4:
	adrp	x27, _TXT_PROMPT@GOTPAGE
Lloh5:
	ldr	x27, [x27, _TXT_PROMPT@GOTPAGEOFF]
Lloh6:
	adrp	x28, _TERM_CEDIT@GOTPAGE
Lloh7:
	ldr	x28, [x28, _TERM_CEDIT@GOTPAGEOFF]
Lloh8:
	adrp	x24, _SC_SCR_EXWROTE@GOTPAGE
Lloh9:
	ldr	x24, [x24, _SC_SCR_EXWROTE@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_EXCMD_RUNNING
	cbnz	w0, LBB0_8
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh10:
	adrp	x8, _TXT_BS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TXT_BS@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [x25]
	orr	w8, w9, w8
	ldr	w9, [x26]
	orr	w8, w8, w9
	ldr	w9, [x27]
	orr	w3, w8, w9
	mov	x0, x19
	mov	x1, x20
	mov	w2, #58
	bl	_v_tcmd
	cbnz	x0, LBB0_15
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x19, #4]
	bl	_TAILQ_FIRST
	mov	x22, x0
	ldr	x8, [x0]
	ldr	x9, [x28]
	cmp	x8, x9
	b.eq	LBB0_17
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh13:
	adrp	x9, _TERM_BS@GOTPAGE
Lloh14:
	ldr	x9, [x9, _TERM_BS@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
Lloh16:
	adrp	x10, _TERM_OK@GOTPAGE
Lloh17:
	ldr	x10, [x10, _TERM_OK@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #0, ne
	b.ne	LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh19:
	adrp	x8, _O_CEDIT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _O_CEDIT@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_O_STR
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_v_ecl_log
	cbnz	x0, LBB0_15
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldp	w3, w2, [x22, #8]
	mov	w22, #1
	mov	x0, x19
	mov	x1, #0
	mov	w4, #0
	mov	w5, #1
	bl	_ex_run_str
	cbnz	x0, LBB0_16
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_vs_home
	ldr	w1, [x24]
	mov	x0, x19
	bl	_F_ISSET
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #10
	bl	_putchar
LBB0_10:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_ex_cmd
	mov	x0, x19
	bl	_ex_fflush
	add	x1, sp, #12
	mov	x0, x19
	bl	_vs_ex_resolve
	cbnz	x0, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	w23, #0
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	b	LBB0_1
LBB0_13:
	mov	w21, #1
	tbnz	w23, #0, LBB0_20
LBB0_14:
Lloh22:
	adrp	x8, _SC_EX_WAIT_NO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SC_EX_WAIT_NO@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_F_SET
	add	x1, sp, #12
	mov	x0, x19
	bl	_vs_ex_resolve
	cbz	x0, LBB0_20
LBB0_15:
	mov	w22, #1
LBB0_16:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_17:
	ldr	w8, [x22, #8]
	cmp	w8, #2
	b.lt	LBB0_19
; %bb.18:
	mov	x0, x19
	mov	x1, x22
	bl	_v_ecl_log
	cbnz	x0, LBB0_15
LBB0_19:
	mov	w21, #0
	tbz	w23, #0, LBB0_14
LBB0_20:
	mov	x0, x19
	mov	x1, x20
	bl	_v_ex_done
	cmp	x0, #0
	cset	w22, ne
	orr	w8, w21, w22
	tbnz	w8, #0, LBB0_16
; %bb.21:
	mov	x0, x19
	bl	_v_ecl
	mov	x22, x0
	b	LBB0_16
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_TXT_BS,4,2                     ; @TXT_BS
	.comm	_TXT_CEDIT,4,2                  ; @TXT_CEDIT
	.comm	_TXT_FILEC,4,2                  ; @TXT_FILEC
	.comm	_TXT_PROMPT,4,2                 ; @TXT_PROMPT
	.comm	_TERM_CEDIT,8,3                 ; @TERM_CEDIT
	.comm	_TERM_BS,8,3                    ; @TERM_BS
	.comm	_TERM_OK,8,3                    ; @TERM_OK
	.comm	_O_CEDIT,4,2                    ; @O_CEDIT
	.comm	_SC_SCR_EXWROTE,4,2             ; @SC_SCR_EXWROTE
	.comm	_SC_EX_WAIT_NO,4,2              ; @SC_EX_WAIT_NO
.subsections_via_symbols
