	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ConsoleLocalReadLine           ## -- Begin function ConsoleLocalReadLine
	.p2align	4, 0x90
_ConsoleLocalReadLine:                  ## @ConsoleLocalReadLine
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	movl	%edx, %r15d
	movq	%rdi, %r14
	movq	(%rdi), %r12
	testq	%rsi, %rsi
	leaq	l_.str(%rip), %rbx
	cmovneq	%rsi, %rbx
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_ConsoleWriteOutFile
	testl	%r15d, %r15d
	je	LBB0_2
LBB0_5:
	movq	%rbx, %rdi
	callq	_Prompt
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_6
	jmp	LBB0_7
LBB0_2:
	cmpq	$0, (%r12)
	je	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	callq	_ConsoleReadNextFromInFile
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	%rax, %r15
	leaq	l_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	callq	_UniPrint
	leaq	l_.str.2(%rip), %rdi
	movq	%r15, %rsi
	callq	_UniPrint
LBB0_6:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_ConsoleWriteOutFile
	jmp	LBB0_9
LBB0_7:
	leaq	L_.str.3(%rip), %rdi
	callq	__UU
	movq	%r14, %rdi
	movq	%rax, %rsi
	movl	$1, %edx
	callq	_ConsoleWriteOutFile
LBB0_8:
	xorl	%r15d, %r15d
LBB0_9:
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @.str
l_.str:
	.long	62                              ## 0x3e
	.long	0                               ## 0x0

	.p2align	2                               ## @.str.1
l_.str.1:
	.long	37                              ## 0x25
	.long	115                             ## 0x73
	.long	0                               ## 0x0

	.p2align	2                               ## @.str.2
l_.str.2:
	.long	37                              ## 0x25
	.long	115                             ## 0x73
	.long	10                              ## 0xa
	.long	0                               ## 0x0

	.section	__TEXT,__cstring,cstring_literals
L_.str.3:                               ## @.str.3
	.asciz	"CON_USER_CANCEL"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ConsoleLocalReadLine           ; -- Begin function ConsoleLocalReadLine
	.p2align	2
_ConsoleLocalReadLine:                  ; @ConsoleLocalReadLine
	.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
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x2
	mov	x19, x0
	ldr	x22, [x0]
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	cmp	x1, #0
	csel	x21, x8, x1, eq
	mov	x1, x21
	mov	w2, #0
	bl	_ConsoleWriteOutFile
	cbz	w20, LBB0_3
LBB0_2:
	mov	x0, x21
	bl	_Prompt
	mov	x20, x0
	cbnz	x0, LBB0_6
	b	LBB0_7
LBB0_3:
	ldr	x8, [x22]
	cbz	x8, LBB0_2
; %bb.4:
	mov	x0, x19
	bl	_ConsoleReadNextFromInFile
	cbz	x0, LBB0_7
; %bb.5:
	mov	x20, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_UniPrint
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_UniPrint
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_ConsoleWriteOutFile
	b	LBB0_9
LBB0_7:
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__UU
	mov	x1, x0
	mov	x0, x19
	mov	w2, #1
	bl	_ConsoleWriteOutFile
LBB0_8:
	mov	x20, #0
LBB0_9:
	mov	x0, x20
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @.str
l_.str:
	.long	62                              ; 0x3e
	.long	0                               ; 0x0

	.p2align	2                               ; @.str.1
l_.str.1:
	.long	37                              ; 0x25
	.long	115                             ; 0x73
	.long	0                               ; 0x0

	.p2align	2                               ; @.str.2
l_.str.2:
	.long	37                              ; 0x25
	.long	115                             ; 0x73
	.long	10                              ; 0xa
	.long	0                               ; 0x0

	.section	__TEXT,__cstring,cstring_literals
l_.str.3:                               ; @.str.3
	.asciz	"CON_USER_CANCEL"

.subsections_via_symbols
