	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tui_redisplay_readline         ## -- Begin function tui_redisplay_readline
	.p2align	4, 0x90
_tui_redisplay_readline:                ## @tui_redisplay_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	%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	_tui_current_key_mode@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	_TUI_ONE_COMMAND_MODE@GOTPCREL(%rip), %rcx
	movq	_rl_end@GOTPCREL(%rip), %r12
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	cmpl	$0, (%r12)
	jne	LBB0_3
## %bb.2:
	movq	_TUI_SINGLE_KEY_MODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_tui_set_key_mode
	movq	(%rbx), %rax
LBB0_3:
	movq	_TUI_SINGLE_KEY_MODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.5:
	movq	_tui_rl_saved_prompt@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str(%rip), %rbx
LBB0_6:
	movq	_TUI_CMD_WIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	16(%rax), %r14
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_wmove
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.7:
	movb	(%rbx), %al
	testb	%al, %al
	je	LBB0_10
## %bb.8:
	incq	%rbx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	%al, %esi
	movq	%r14, %rdi
	callq	_waddch
	movq	%r14, %rdi
	callq	_getyx
	movzbl	(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	jne	LBB0_9
LBB0_10:
	cmpl	$0, (%r12)
	jle	LBB0_22
## %bb.11:
	xorl	%r13d, %r13d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%r14, %rdi
	callq	_getyx
	incq	%r13
	movslq	(%r12), %rax
	cmpq	%rax, %r13
	jge	LBB0_22
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	_rl_line_buffer@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r13,8), %rbx
	movq	_rl_point@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	%rax, %r13
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r14, %rdi
	movl	$-1, %esi
	movl	$-1, %edx
	callq	_getyx
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	movzbl	%bl, %r15d
	movl	%r15d, %edi
	callq	_CTRL_CHAR
	testq	%rax, %rax
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_RUBOUT@GOTPCREL(%rip), %rax
	cmpb	%bl, (%rax)
	jne	LBB0_19
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%r14, %rdi
	movl	$94, %esi
	callq	_waddch
	movl	%r15d, %edi
	callq	_CTRL_CHAR
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	%r15d, %edi
	callq	_UNCTRL
	movl	%eax, %ebx
	jmp	LBB0_19
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=1
	movb	$63, %bl
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_12 Depth=1
	movzbl	%bl, %esi
	movq	%r14, %rdi
	callq	_waddch
	cmpl	$10, %r15d
	jne	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_TUI_CMD_WIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edx
	movq	%r14, %rdi
	callq	_getyx
	jmp	LBB0_21
LBB0_22:
	movq	%r14, %rdi
	callq	_wclrtobot
	movq	_TUI_CMD_WIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edx
	movq	%r14, %rdi
	callq	_getyx
	movq	%r14, %rdi
	callq	_wrefresh
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fflush                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_tui_current_key_mode,8,3       ## @tui_current_key_mode
	.comm	_TUI_ONE_COMMAND_MODE,8,3       ## @TUI_ONE_COMMAND_MODE
	.comm	_rl_end,4,2                     ## @rl_end
	.comm	_TUI_SINGLE_KEY_MODE,8,3        ## @TUI_SINGLE_KEY_MODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_tui_rl_saved_prompt,8,3        ## @tui_rl_saved_prompt
	.comm	_TUI_CMD_WIN,8,3                ## @TUI_CMD_WIN
	.comm	_rl_line_buffer,8,3             ## @rl_line_buffer
	.comm	_rl_point,4,2                   ## @rl_point
	.comm	_RUBOUT,1,0                     ## @RUBOUT
	.comm	_stdout,4,2                     ## @stdout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tui_redisplay_readline         ; -- Begin function tui_redisplay_readline
	.p2align	2
_tui_redisplay_readline:                ; @tui_redisplay_readline
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x19, _tui_current_key_mode@GOTPAGE
Lloh1:
	ldr	x19, [x19, _tui_current_key_mode@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _TUI_ONE_COMMAND_MODE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TUI_ONE_COMMAND_MODE@GOTPAGEOFF]
Lloh4:
	adrp	x21, _rl_end@GOTPAGE
Lloh5:
	ldr	x21, [x21, _rl_end@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	ldr	w10, [x21]
	cmp	x8, x9
	ccmp	w10, #0, #0, eq
Lloh7:
	adrp	x20, _TUI_SINGLE_KEY_MODE@GOTPAGE
Lloh8:
	ldr	x20, [x20, _TUI_SINGLE_KEY_MODE@GOTPAGEOFF]
	b.ne	LBB0_2
; %bb.1:
	ldr	x0, [x20]
	bl	_tui_set_key_mode
	ldr	x8, [x19]
LBB0_2:
	ldr	x9, [x20]
Lloh9:
	adrp	x10, _tui_rl_saved_prompt@GOTPAGE
Lloh10:
	ldr	x10, [x10, _tui_rl_saved_prompt@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
Lloh12:
	adrp	x11, l_.str@PAGE
Lloh13:
	add	x11, x11, l_.str@PAGEOFF
	cmp	x8, x9
	csel	x20, x11, x10, eq
Lloh14:
	adrp	x22, _TUI_CMD_WIN@GOTPAGE
Lloh15:
	ldr	x22, [x22, _TUI_CMD_WIN@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x19, [x8, #16]
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_wmove
	cbz	x20, LBB0_6
; %bb.3:
	ldrb	w8, [x20]
	cbz	w8, LBB0_6
; %bb.4:
	add	x20, x20, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	and	w1, w8, #0xff
	mov	x0, x19
	bl	_waddch
	mov	x0, x19
	bl	_getyx
	ldrb	w8, [x20], #1
	cbnz	w8, LBB0_5
LBB0_6:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.7:
	mov	x23, #0
Lloh16:
	adrp	x24, _rl_line_buffer@GOTPAGE
Lloh17:
	ldr	x24, [x24, _rl_line_buffer@GOTPAGEOFF]
Lloh18:
	adrp	x25, _rl_point@GOTPAGE
Lloh19:
	ldr	x25, [x25, _rl_point@GOTPAGEOFF]
Lloh20:
	adrp	x26, _RUBOUT@GOTPAGE
Lloh21:
	ldr	x26, [x26, _RUBOUT@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x19
	bl	_getyx
	add	x23, x23, #1
	ldrsw	x8, [x21]
	cmp	x23, x8
	b.ge	LBB0_18
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	lsl	x9, x23, #3
	ldrb	w20, [x8, x9]
	ldr	w8, [x25]
	cmp	x23, x8
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x19
	mov	w1, #-1
	mov	w2, #-1
	bl	_getyx
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x20
	bl	_CTRL_CHAR
	ldrb	w8, [x26]
	cmp	x0, #0
	ccmp	w8, w20, #4, eq
	b.ne	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x19
	mov	w1, #94
	bl	_waddch
	mov	x0, x20
	bl	_CTRL_CHAR
	cbz	x0, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x20
	bl	_UNCTRL
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x20
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	w0, #63
LBB0_16:                                ;   in Loop: Header=BB0_9 Depth=1
	and	w1, w0, #0xff
	mov	x0, x19
	bl	_waddch
	cmp	x20, #10
	b.ne	LBB0_8
; %bb.17:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x22]
	ldp	w1, w2, [x8]
	mov	x0, x19
	bl	_getyx
	b	LBB0_8
LBB0_18:
	mov	x0, x19
	bl	_wclrtobot
	ldr	x8, [x22]
	ldp	w1, w2, [x8]
	mov	x0, x19
	bl	_getyx
	mov	x0, x19
	bl	_wrefresh
Lloh22:
	adrp	x8, _stdout@GOTPAGE
Lloh23:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_fflush
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_tui_current_key_mode,8,3       ; @tui_current_key_mode
	.comm	_TUI_ONE_COMMAND_MODE,8,3       ; @TUI_ONE_COMMAND_MODE
	.comm	_rl_end,4,2                     ; @rl_end
	.comm	_TUI_SINGLE_KEY_MODE,8,3        ; @TUI_SINGLE_KEY_MODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_tui_rl_saved_prompt,8,3        ; @tui_rl_saved_prompt
	.comm	_TUI_CMD_WIN,8,3                ; @TUI_CMD_WIN
	.comm	_rl_line_buffer,8,3             ; @rl_line_buffer
	.comm	_rl_point,4,2                   ; @rl_point
	.comm	_RUBOUT,1,0                     ; @RUBOUT
	.comm	_stdout,4,2                     ; @stdout
.subsections_via_symbols
