	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function input
_input:                                 ## @input
	.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	%rdi, %r14
	movl	$0, -44(%rbp)
	movq	_verbose@GOTPCREL(%rip), %r12
	leaq	_input.buf(%rip), %rbx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$80, %esi
	callq	_fgets
	testl	%eax, %eax
	je	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_parse
	testq	%rax, %rax
	jne	LBB0_10
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r12)
	je	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_input.el(%rip), %rdi
	testq	%rdi, %rdi
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rdi
	callq	_el_init
	movq	%rax, _input.el(%rip)
	xorl	%eax, %eax
	callq	_history_init
	movq	%rax, _input.hist(%rip)
	movq	_H_SETSIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	leaq	-48(%rbp), %rsi
	movl	$100, %ecx
	xorl	%eax, %eax
	callq	_history
	movq	_input.el(%rip), %rdi
	movq	_EL_HIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_input.hist(%rip), %rcx
	movq	_history@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	callq	_el_set
	movq	_input.el(%rip), %rdi
	movq	_EL_EDITOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	callq	_el_set
	movq	_input.el(%rip), %rdi
	movq	_EL_PROMPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_cdcontrol_prompt@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%eax, %eax
	callq	_el_set
	movq	_input.el(%rip), %rdi
	movq	_EL_SIGNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	xorl	%eax, %eax
	callq	_el_set
	movq	_input.el(%rip), %rdi
	xorl	%esi, %esi
	callq	_el_source
	movq	_input.el(%rip), %rdi
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	leaq	-44(%rbp), %rsi
	callq	_el_gets
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %r13d
	testl	%r13d, %r13d
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %r15
	cmpl	$80, %r13d
	movl	$80, %eax
	cmovgel	%eax, %r13d
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_memcpy
	movslq	%r13d, %rax
	movb	$0, (%rax,%rbx)
	movq	_input.hist(%rip), %rdi
	movq	_H_ENTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rsi
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_history
	jmp	LBB0_8
LBB0_9:
	movq	_CMD_QUIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_fprintf
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_input.el,8,3    ## @input.el
.zerofill __DATA,__bss,_input.hist,8,3  ## @input.hist
.zerofill __DATA,__bss,_input.buf,80,4  ## @input.buf
	.comm	_verbose,8,3                    ## @verbose
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cdcontrol"

	.comm	_stdin,4,2                      ## @stdin
	.comm	_stdout,4,2                     ## @stdout
	.comm	_stderr,4,2                     ## @stderr
	.comm	_H_SETSIZE,4,2                  ## @H_SETSIZE
	.comm	_EL_HIST,4,2                    ## @EL_HIST
	.comm	_EL_EDITOR,4,2                  ## @EL_EDITOR
L_.str.1:                               ## @.str.1
	.asciz	"emacs"

	.comm	_EL_PROMPT,4,2                  ## @EL_PROMPT
	.comm	_cdcontrol_prompt,4,2           ## @cdcontrol_prompt
	.comm	_EL_SIGNAL,4,2                  ## @EL_SIGNAL
	.comm	_CMD_QUIT,4,2                   ## @CMD_QUIT
L_.str.2:                               ## @.str.2
	.asciz	"\r\n"

	.comm	_H_ENTER,4,2                    ## @H_ENTER
	.comm	_MAXLINE,4,2                    ## @MAXLINE
	.no_dead_strip	_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function input
_input:                                 ; @input
	.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
	mov	x19, x0
Lloh0:
	adrp	x24, _verbose@GOTPAGE
Lloh1:
	ldr	x24, [x24, _verbose@GOTPAGEOFF]
Lloh2:
	adrp	x25, _stdin@GOTPAGE
Lloh3:
	ldr	x25, [x25, _stdin@GOTPAGEOFF]
Lloh4:
	adrp	x20, _input.buf@PAGE
Lloh5:
	add	x20, x20, _input.buf@PAGEOFF
	str	wzr, [sp, #24]
	mov	w27, #80
	adrp	x28, _input.el@PAGE
	adrp	x21, _input.hist@PAGE
Lloh6:
	adrp	x26, _H_ENTER@GOTPAGE
Lloh7:
	ldr	x26, [x26, _H_ENTER@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w2, [x25]
	mov	x0, x20
	mov	w1, #80
	bl	_fgets
	cbz	w0, LBB0_8
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_parse
	cbnz	x0, LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	cbz	x8, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x28, _input.el@PAGEOFF]
	cbnz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x25]
Lloh8:
	adrp	x8, _stdout@GOTPAGE
Lloh9:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _stderr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_el_init
	str	x0, [x28, _input.el@PAGEOFF]
	bl	_history_init
	str	x0, [x21, _input.hist@PAGEOFF]
Lloh16:
	adrp	x8, _H_SETSIZE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _H_SETSIZE@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	w8, #100
	str	x8, [sp]
	add	x1, sp, #28
	bl	_history
	ldr	x0, [x28, _input.el@PAGEOFF]
Lloh19:
	adrp	x8, _EL_HIST@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EL_HIST@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	ldr	x8, [x21, _input.hist@PAGEOFF]
	str	x8, [sp, #8]
Lloh22:
	adrp	x8, _history@GOTPAGE
Lloh23:
	ldr	x8, [x8, _history@GOTPAGEOFF]
	str	x8, [sp]
	bl	_el_set
	ldr	x0, [x28, _input.el@PAGEOFF]
Lloh24:
	adrp	x8, _EL_EDITOR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EL_EDITOR@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, l_.str.1@PAGE
Lloh28:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [sp]
	bl	_el_set
	ldr	x0, [x28, _input.el@PAGEOFF]
Lloh29:
	adrp	x8, _EL_PROMPT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EL_PROMPT@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	adrp	x8, _cdcontrol_prompt@GOTPAGE
Lloh33:
	ldr	x8, [x8, _cdcontrol_prompt@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	str	x8, [sp]
	bl	_el_set
	ldr	x0, [x28, _input.el@PAGEOFF]
Lloh35:
	adrp	x8, _EL_SIGNAL@GOTPAGE
Lloh36:
	ldr	x8, [x8, _EL_SIGNAL@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	w8, #1
	str	x8, [sp]
	bl	_el_set
	ldr	x0, [x28, _input.el@PAGEOFF]
	mov	x1, #0
	bl	_el_source
	ldr	x0, [x28, _input.el@PAGEOFF]
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #24
	bl	_el_gets
	ldr	w8, [sp, #24]
	cmp	x0, #0
	ccmp	w8, #0, #4, ne
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, x0
	cmp	w8, #80
	csel	w23, w8, w27, lt
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	bl	_memcpy
	strb	wzr, [x20, w23, sxtw]
	ldr	x0, [x21, _input.hist@PAGEOFF]
	ldr	w2, [x26]
	str	x22, [sp]
	add	x1, sp, #28
	bl	_history
	b	LBB0_2
LBB0_8:
Lloh38:
	adrp	x8, _CMD_QUIT@GOTPAGE
Lloh39:
	ldr	x8, [x8, _CMD_QUIT@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh41:
	adrp	x8, _stderr@GOTPAGE
Lloh42:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
Lloh44:
	adrp	x1, l_.str.2@PAGE
Lloh45:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	mov	x0, #0
LBB0_9:
	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
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_input.el,8,3    ; @input.el
.zerofill __DATA,__bss,_input.hist,8,3  ; @input.hist
.zerofill __DATA,__bss,_input.buf,80,0  ; @input.buf
	.comm	_verbose,8,3                    ; @verbose
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cdcontrol"

	.comm	_stdin,4,2                      ; @stdin
	.comm	_stdout,4,2                     ; @stdout
	.comm	_stderr,4,2                     ; @stderr
	.comm	_H_SETSIZE,4,2                  ; @H_SETSIZE
	.comm	_EL_HIST,4,2                    ; @EL_HIST
	.comm	_EL_EDITOR,4,2                  ; @EL_EDITOR
l_.str.1:                               ; @.str.1
	.asciz	"emacs"

	.comm	_EL_PROMPT,4,2                  ; @EL_PROMPT
	.comm	_cdcontrol_prompt,4,2           ; @cdcontrol_prompt
	.comm	_EL_SIGNAL,4,2                  ; @EL_SIGNAL
	.comm	_CMD_QUIT,4,2                   ; @CMD_QUIT
l_.str.2:                               ; @.str.2
	.asciz	"\r\n"

	.comm	_H_ENTER,4,2                    ; @H_ENTER
	.comm	_MAXLINE,4,2                    ; @MAXLINE
	.no_dead_strip	_input
.subsections_via_symbols
