	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_exec_global                    ## -- Begin function exec_global
	.p2align	4, 0x90
_exec_global:                           ## @exec_global
	.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
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movl	%edi, %ebx
	testl	%edi, %edi
	je	LBB0_10
## %bb.1:
	xorl	%r12d, %r12d
	jmp	LBB0_2
LBB0_10:
	leaq	-44(%rbp), %rdi
	xorl	%esi, %esi
	callq	_get_extended_line
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_11
LBB0_2:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_clear_undo_stack
	movq	_ibuf@GOTPCREL(%rip), %r13
	movq	_stdin@GOTPCREL(%rip), %r14
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##     Child Loop BB0_23 Depth 2
	xorl	%eax, %eax
	callq	_next_active_node
	testq	%rax, %rax
	je	LBB0_28
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rdi
	callq	_get_line_node_addr
	movq	_current_addr@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	js	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%ebx, %ebx
	je	LBB0_22
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %edi
	movl	%eax, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_display_lines
	testl	%eax, %eax
	js	LBB0_11
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorl	%eax, %eax
	callq	_get_tty_line
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	jle	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	(%r13), %rdi
	leal	-1(%rax), %ecx
	cmpb	$10, (%rdi,%rcx)
	je	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	movl	(%r14), %edi
	callq	_clearerr
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_ibufp@GOTPCREL(%rip), %rax
	movq	%r12, (%rax)
	cmpb	$0, (%r12)
	jne	LBB0_23
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_23 Depth=2
	movq	_ibufp@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpb	$0, (%rax)
	je	LBB0_3
LBB0_23:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorl	%eax, %eax
	callq	_extract_addr_range
	testl	%eax, %eax
	js	LBB0_27
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=2
	xorl	%eax, %eax
	callq	_exec_command
	testl	%eax, %eax
	js	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_23 Depth=2
	je	LBB0_30
## %bb.26:                              ##   in Loop: Header=BB0_23 Depth=2
	movq	_current_addr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%edi, %esi
	movl	%eax, %edx
	callq	_display_lines
	testl	%eax, %eax
	jns	LBB0_30
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$1, %eax
	jne	LBB0_16
## %bb.19:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_3
	jmp	LBB0_20
LBB0_12:
	testl	%eax, %eax
	js	LBB0_11
## %bb.13:
	leaq	L_.str(%rip), %rax
LBB0_14:
	movq	_errmsg@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_11:
	movq	_ERR@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	jmp	LBB0_28
LBB0_27:
	movslq	%eax, %r15
LBB0_28:
	movq	%r15, %rax
LBB0_29:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	cmpl	$2, %eax
	jne	LBB0_20
## %bb.17:
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_18
LBB0_20:
	leaq	-44(%rbp), %rdi
	xorl	%esi, %esi
	callq	_get_extended_line
	testq	%rax, %rax
	je	LBB0_11
## %bb.21:
	leaq	-44(%rbp), %rdi
	movq	%rax, %rsi
	callq	_exec_global.cold.1
	xorl	%eax, %eax
	jmp	LBB0_29
LBB0_18:
	leaq	L_.str.3(%rip), %rax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function exec_global.cold.1
_exec_global.cold.1:                    ## @exec_global.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %edx
	incl	%edx
	movq	_ERR@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_REALLOC
	movl	(%rbx), %edx
	incl	%edx
	xorl	%edi, %edi
	movq	%r14, %rsi
	callq	_memcpy
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR,8,3                        ## @ERR
	.comm	_current_addr,4,2               ## @current_addr
	.comm	_ibuf,8,3                       ## @ibuf
	.comm	_stdin,4,2                      ## @stdin
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unexpected end-of-file"

	.comm	_errmsg,8,3                     ## @errmsg
L_.str.1:                               ## @.str.1
	.asciz	"\n"

L_.str.2:                               ## @.str.2
	.asciz	"&\n"

L_.str.3:                               ## @.str.3
	.asciz	"no previous command"

	.comm	_ibufp,8,3                      ## @ibufp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_exec_global                    ; -- Begin function exec_global
	.p2align	2
_exec_global:                           ; @exec_global
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x1
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, #0
	b	LBB0_3
LBB0_2:
	add	x0, sp, #12
	mov	w1, #0
	bl	_get_extended_line
	mov	x21, x0
	cbz	x0, LBB0_22
LBB0_3:
	bl	_clear_undo_stack
Lloh0:
	adrp	x23, _current_addr@GOTPAGE
Lloh1:
	ldr	x23, [x23, _current_addr@GOTPAGEOFF]
Lloh2:
	adrp	x24, _ibufp@GOTPAGE
Lloh3:
	ldr	x24, [x24, _ibufp@GOTPAGEOFF]
Lloh4:
	adrp	x25, _ibuf@GOTPAGE
Lloh5:
	ldr	x25, [x25, _ibuf@GOTPAGEOFF]
Lloh6:
	adrp	x22, l_.str.1@PAGE
Lloh7:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh8:
	adrp	x26, _stdin@GOTPAGE
Lloh9:
	ldr	x26, [x26, _stdin@GOTPAGEOFF]
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;     Child Loop BB0_13 Depth 2
	bl	_next_active_node
	cbz	x0, LBB0_25
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_get_line_node_addr
	str	w0, [x23]
	tbnz	w0, #31, LBB0_22
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	w20, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x0
	mov	x2, x19
	bl	_display_lines
	tbnz	w0, #31, LBB0_22
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_get_tty_line
	str	w0, [sp, #12]
	cmp	w0, #1
	b.lt	LBB0_19
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x25]
	sub	w9, w0, #1
	ldrb	w9, [x8, w9, uxtw]
	cmp	w9, #10
	b.eq	LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	w0, [x26]
	bl	_clearerr
	bl	_get_tty_line
	str	w0, [sp, #12]
	cmp	w0, #0
	b.gt	LBB0_9
	b	LBB0_19
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x21, [x24]
	ldrb	w8, [x21]
	cbnz	w8, LBB0_13
	b	LBB0_4
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	x8, [x24]
	ldrb	w8, [x8]
	cbz	w8, LBB0_4
LBB0_13:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	bl	_extract_addr_range
	tbnz	w0, #31, LBB0_23
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	bl	_exec_command
	mov	x2, x0
	tbnz	w0, #31, LBB0_24
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=2
	cbz	w2, LBB0_12
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	w0, [x23]
	mov	x1, x0
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_display_lines
	tbz	w0, #31, LBB0_12
	b	LBB0_23
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w0, #1
	b.ne	LBB0_26
; %bb.18:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x8
	mov	x1, x22
	bl	_strcmp
	cbz	w0, LBB0_4
	b	LBB0_28
LBB0_19:
	tbnz	w0, #31, LBB0_22
; %bb.20:
Lloh10:
	adrp	x8, _errmsg@GOTPAGE
Lloh11:
	ldr	x8, [x8, _errmsg@GOTPAGEOFF]
Lloh12:
	adrp	x9, l_.str@PAGE
Lloh13:
	add	x9, x9, l_.str@PAGEOFF
LBB0_21:
	str	x9, [x8]
LBB0_22:
Lloh14:
	adrp	x8, _ERR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERR@GOTPAGEOFF]
Lloh16:
	ldr	x0, [x8]
	b	LBB0_25
LBB0_23:
	mov	x2, x0
LBB0_24:
	sxtw	x0, w2
LBB0_25:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_26:
	cmp	w0, #2
	b.ne	LBB0_28
; %bb.27:
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x8
	bl	_strcmp
	cbz	w0, LBB0_30
LBB0_28:
	add	x0, sp, #12
	mov	w1, #0
	bl	_get_extended_line
	cbz	x0, LBB0_22
; %bb.29:
	mov	x1, x0
	add	x0, sp, #12
	bl	_exec_global.cold.1
LBB0_30:
Lloh19:
	adrp	x8, _errmsg@GOTPAGE
Lloh20:
	ldr	x8, [x8, _errmsg@GOTPAGEOFF]
Lloh21:
	adrp	x9, l_.str.3@PAGE
Lloh22:
	add	x9, x9, l_.str.3@PAGEOFF
	b	LBB0_21
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function exec_global.cold.1
_exec_global.cold.1:                    ; @exec_global.cold.1
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x0]
	add	w2, w8, #1
Lloh23:
	adrp	x8, _ERR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ERR@GOTPAGEOFF]
Lloh25:
	ldr	x3, [x8]
	mov	x0, #0
	mov	w1, #0
	bl	_REALLOC
	ldr	w8, [x20]
	add	w2, w8, #1
	mov	x0, #0
	mov	x1, x19
	bl	_memcpy
	brk	#0x1
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR,8,3                        ; @ERR
	.comm	_current_addr,4,2               ; @current_addr
	.comm	_ibuf,8,3                       ; @ibuf
	.comm	_stdin,4,2                      ; @stdin
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unexpected end-of-file"

	.comm	_errmsg,8,3                     ; @errmsg
l_.str.1:                               ; @.str.1
	.asciz	"\n"

l_.str.2:                               ; @.str.2
	.asciz	"&\n"

l_.str.3:                               ; @.str.3
	.asciz	"no previous command"

	.comm	_ibufp,8,3                      ; @ibufp
.subsections_via_symbols
