	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tui_readline_output
_tui_readline_output:                   ## @tui_readline_output
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$272, %rsp                      ## imm = 0x110
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movq	_tui_readline_pipe@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	leaq	-272(%rbp), %rsi
	movl	$255, %edx
	callq	_read
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	movq	_tui_active@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_3
## %bb.2:
	movl	%eax, %eax
	movb	$0, -272(%rbp,%rax)
	leaq	-272(%rbp), %rdi
	callq	_tui_puts
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-8(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$272, %rsp                      ## imm = 0x110
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_tui_readline_pipe,8,3          ## @tui_readline_pipe
	.comm	_tui_active,8,3                 ## @tui_active
	.no_dead_strip	_tui_readline_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tui_readline_output
_tui_readline_output:                   ; @tui_readline_output
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #304
	.cfi_def_cfa_offset 304
	stp	x20, x19, [sp, #272]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #288]            ; 16-byte Folded Spill
	add	x29, sp, #288
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _tui_readline_pipe@GOTPAGE
Lloh4:
	ldr	x8, [x8, _tui_readline_pipe@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w0, [x8]
	add	x19, sp, #8
	add	x1, sp, #8
	mov	w2, #255
	bl	_read
Lloh6:
	adrp	x8, _tui_active@GOTPAGE
Lloh7:
	ldr	x8, [x8, _tui_active@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	w0, #1
	ccmp	x8, #0, #4, ge
	b.eq	LBB0_2
; %bb.1:
	strb	wzr, [x19, w0, uxtw]
	add	x0, sp, #8
	bl	_tui_puts
LBB0_2:
	ldur	x8, [x29, #-24]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #288]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #304
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_tui_readline_pipe,8,3          ; @tui_readline_pipe
	.comm	_tui_active,8,3                 ; @tui_active
	.no_dead_strip	_tui_readline_output
.subsections_via_symbols
