	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ReadLine                       ## -- Begin function ReadLine
	.p2align	4, 0x90
_ReadLine:                              ## @ReadLine
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_CMDLINE_LENGTH@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_bc@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.14:
	xorl	%eax, %eax
	callq	_ReadBatchLine
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_12
LBB0_15:
	movl	$37, %edi
	callq	__T
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_SubstituteVars
	jmp	LBB0_16
LBB0_1:
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.2:
	movq	_STRING_MORE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ConOutResPrintf
	jmp	LBB0_7
LBB0_3:
	movq	_bEcho@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.4:
	movq	_bIgnoreEcho@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_6
## %bb.5:
	movl	$10, %edi
	callq	__T
	movq	%rax, %rdi
	callq	_ConOutChar
LBB0_6:
	xorl	%eax, %eax
	callq	_PrintPrompt
LBB0_7:
	movl	(%r12), %esi
	decl	%esi
	movq	%r15, %rdi
	callq	_ReadCommand
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	(%r15), %rbx
	xorl	%edi, %edi
	callq	__T
	cmpq	%rax, %rbx
	jne	LBB0_11
## %bb.10:
	movl	$10, %edi
	callq	__T
	movq	%rax, %rdi
	callq	_ConOutChar
LBB0_11:
	movq	_BREAK_INPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CheckCtrlBreak
	testq	%rax, %rax
	jne	LBB0_12
## %bb.13:
	movq	(%r15), %rbx
	xorl	%edi, %edi
	callq	__T
	cmpq	%rax, %rbx
	jne	LBB0_15
	jmp	LBB0_12
LBB0_8:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_bExit@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_12:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_18
## %bb.17:
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CMDLINE_LENGTH,4,2             ## @CMDLINE_LENGTH
	.comm	_bc,8,3                         ## @bc
	.comm	_STRING_MORE,4,2                ## @STRING_MORE
	.comm	_bEcho,8,3                      ## @bEcho
	.comm	_bIgnoreEcho,4,2                ## @bIgnoreEcho
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_bExit,4,2                      ## @bExit
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_BREAK_INPUT,4,2                ## @BREAK_INPUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ReadLine                       ; -- Begin function ReadLine
	.p2align	2
_ReadLine:                              ; @ReadLine
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x21, _CMDLINE_LENGTH@GOTPAGE
Lloh4:
	ldr	x21, [x21, _CMDLINE_LENGTH@GOTPAGEOFF]
	ldr	w8, [x21]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh7:
	adrp	x8, _bc@GOTPAGE
Lloh8:
	ldr	x8, [x8, _bc@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
	bl	_ReadBatchLine
	mov	x20, x0
	cbz	x0, LBB0_15
LBB0_2:
	mov	w0, #37
	bl	__T
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	bl	_SubstituteVars
	b	LBB0_16
LBB0_3:
	cbz	x1, LBB0_5
; %bb.4:
Lloh10:
	adrp	x8, _STRING_MORE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _STRING_MORE@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_ConOutResPrintf
	b	LBB0_9
LBB0_5:
Lloh13:
	adrp	x8, _bEcho@GOTPAGE
Lloh14:
	ldr	x8, [x8, _bEcho@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.6:
Lloh16:
	adrp	x8, _bIgnoreEcho@GOTPAGE
Lloh17:
	ldr	x8, [x8, _bIgnoreEcho@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cbnz	w8, LBB0_8
; %bb.7:
	mov	w0, #10
	bl	__T
	bl	_ConOutChar
LBB0_8:
	bl	_PrintPrompt
LBB0_9:
	ldr	w8, [x21]
	sub	w1, w8, #1
	mov	x0, x20
	bl	_ReadCommand
	cbz	w0, LBB0_14
; %bb.10:
	ldr	x21, [x20]
	mov	w0, #0
	bl	__T
	cmp	x21, x0
	b.ne	LBB0_12
; %bb.11:
	mov	w0, #10
	bl	__T
	bl	_ConOutChar
LBB0_12:
Lloh19:
	adrp	x8, _BREAK_INPUT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BREAK_INPUT@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_CheckCtrlBreak
	cbnz	x0, LBB0_15
; %bb.13:
	ldr	x21, [x20]
	bl	__T
	cmp	x21, x0
	b.ne	LBB0_2
	b	LBB0_15
LBB0_14:
Lloh22:
	adrp	x8, _TRUE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _bExit@GOTPAGE
Lloh26:
	ldr	x9, [x9, _bExit@GOTPAGEOFF]
Lloh27:
	str	w8, [x9]
LBB0_15:
Lloh28:
	adrp	x8, _FALSE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh30:
	ldr	x0, [x8]
LBB0_16:
	ldur	x8, [x29, #-40]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_CMDLINE_LENGTH,4,2             ; @CMDLINE_LENGTH
	.comm	_bc,8,3                         ; @bc
	.comm	_STRING_MORE,4,2                ; @STRING_MORE
	.comm	_bEcho,8,3                      ; @bEcho
	.comm	_bIgnoreEcho,4,2                ; @bIgnoreEcho
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_bExit,4,2                      ; @bExit
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_BREAK_INPUT,4,2                ; @BREAK_INPUT
.subsections_via_symbols
