	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dlg_getc                       ## -- Begin function dlg_getc
	.p2align	4, 0x90
_dlg_getc:                              ## @dlg_getc
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	%rdi, %r15
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_dialog_vars@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r12d
	xorl	%edi, %edi
	callq	_time
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movslq	(%rbx), %rbx
	xorl	%eax, %eax
	callq	_may_handle_inputs
	testq	%rax, %rax
	movl	%r12d, -60(%rbp)                ## 4-byte Spill
	je	LBB0_2
## %bb.1:
	movq	_WTIMEOUT_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_4
LBB0_2:
	testl	%r12d, %r12d
	jle	LBB0_5
## %bb.3:
	imull	$1000, -60(%rbp), %esi          ## 4-byte Folded Reload
                                        ## imm = 0x3E8
LBB0_4:
	movq	%r15, %rdi
	callq	_wtimeout
LBB0_5:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movl	$130, %r15d
	testl	%r13d, %r13d
	je	LBB0_7
## %bb.6:
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_52
LBB0_7:
	addq	%rbx, -96(%rbp)                 ## 8-byte Folded Spill
	xorl	%eax, %eax
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	setle	%al
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_8 Depth=1
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_50:                                ##   in Loop: Header=BB0_8 Depth=1
	testl	%ebx, %ebx
	jne	LBB0_51
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r14, %rdi
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_really_getch
	movl	%eax, %r15d
	testl	%r12d, %r12d
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	(%rbx), %r13d
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%rbx, %rdx
	callq	_dlg_lookup_key
	movl	%eax, %r12d
	movl	%eax, %r15d
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_dlg_trace_chr
	xorl	%edi, %edi
	callq	_time
	movl	(%rbx), %ecx
	testl	%ecx, %ecx
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	%r13d, %ecx
	jne	LBB0_12
LBB0_40:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_41:                                ##   in Loop: Header=BB0_8 Depth=1
	xorl	%ebx, %ebx
LBB0_42:                                ##   in Loop: Header=BB0_8 Depth=1
	xorl	%r12d, %r12d
	testl	%r14d, %r14d
	je	LBB0_49
## %bb.43:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_dialog_state@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	testq	%r13, %r13
	je	LBB0_48
## %bb.44:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%r15d, %esi
	leaq	-108(%rbp), %rcx
	callq	*16(%r13)
	testl	%eax, %eax
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	jne	LBB0_49
## %bb.45:                              ##   in Loop: Header=BB0_8 Depth=1
	xorl	%r12d, %r12d
	movl	$0, %eax
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	cmpq	%r14, 8(%r13)
	jne	LBB0_47
## %bb.46:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$0, (%r13)
	sete	%al
LBB0_47:                                ##   in Loop: Header=BB0_8 Depth=1
	movzbl	%al, %ebx
	movq	%r13, %rdi
	callq	_dlg_remove_callback
	movq	_dialog_state@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	jmp	LBB0_50
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	addl	$-128, %r12d
	cmpl	$8, %r12d
	ja	LBB0_40
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%r12,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_31:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_dialog_state@GOTPCREL(%rip), %rax
	cmpl	$0, 8(%rax)
	je	LBB0_40
## %bb.32:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	$128, %edi
	callq	_isBeforeChr
	testl	%eax, %eax
	jne	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	$129, %edi
	callq	_isBeforeFkey
	testl	%eax, %eax
	je	LBB0_40
LBB0_34:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	$128, %edi
	callq	_isBeforeChr
	testl	%eax, %eax
	je	LBB0_36
## %bb.35:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_next_callback
	jmp	LBB0_37
LBB0_48:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
LBB0_49:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_50
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, %ecx
	jle	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpq	-96(%rbp), %rax                 ## 8-byte Folded Reload
	jl	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_8 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_DLG_TRACE
	movq	_ESC@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_42
LBB0_28:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	$131, %r15d
	movq	_dialog_vars@GOTPCREL(%rip), %r14
	cmpl	$0, 4(%r14)
	je	LBB0_29
## %bb.30:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_getyx
	movl	4(%r14), %esi
	xorl	%r12d, %r12d
	leaq	L_.str.2(%rip), %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_dialog_helpfile
	movq	%rbx, %rdi
	callq	_dlg_raise_window
	movq	%rbx, %rdi
	callq	_wmove
	movq	%rbx, %r14
	xorl	%ebx, %ebx
	jmp	LBB0_50
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_touchwin
	movq	_curscr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_wrefresh
	movl	$135, %r15d
	xorl	%ebx, %ebx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_42
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_keypad
	movl	$136, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_50
LBB0_36:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_prev_callback
LBB0_37:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, %rcx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movq	_dialog_state@GOTPCREL(%rip), %rax
	movq	%rcx, (%rax)
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_39
## %bb.38:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%rcx), %rdi
LBB0_39:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_dlg_raise_window
	jmp	LBB0_41
LBB0_19:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_valid_file
	testl	%eax, %eax
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_dialog_state@GOTPCREL(%rip), %rax
	movl	12(%rax), %edi
	callq	_valid_file
	testl	%eax, %eax
	je	LBB0_21
## %bb.23:                              ##   in Loop: Header=BB0_8 Depth=1
	xorl	%eax, %eax
	callq	_check_inputs
	movl	$130, %r15d
	testl	%eax, %eax
	je	LBB0_24
## %bb.25:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_handle_inputs
	testl	%eax, %eax
	je	LBB0_22
## %bb.26:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%rbx, %rdi
	callq	_dlg_raise_window
	jmp	LBB0_41
LBB0_29:                                ##   in Loop: Header=BB0_8 Depth=1
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	jmp	LBB0_49
LBB0_21:                                ##   in Loop: Header=BB0_8 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	_DLG_TRACE
	movq	_ESC@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_22:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_42
LBB0_24:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	-84(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_42
LBB0_51:
	testl	%r12d, %r12d
	je	LBB0_53
LBB0_52:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_keypad
LBB0_53:
	movl	%r15d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_31, LBB0_31-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_40, LBB0_40-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_31
	.long	L0_0_set_31
	.long	L0_0_set_16
	.long	L0_0_set_28
	.long	L0_0_set_31
	.long	L0_0_set_31
	.long	L0_0_set_40
	.long	L0_0_set_15
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_dialog_vars,8,2                ## @dialog_vars
	.comm	_WTIMEOUT_VAL,4,2               ## @WTIMEOUT_VAL
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_curscr,4,2                     ## @curscr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"# dlg_getc: timeout expired\n"

	.comm	_ESC,4,2                        ## @ESC
	.comm	_stdin,4,2                      ## @stdin
	.comm	_dialog_state,16,3              ## @dialog_state
L_.str.1:                               ## @.str.1
	.asciz	"# dlg_getc: input or output is invalid\n"

L_.str.2:                               ## @.str.2
	.asciz	"HELP"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dlg_getc                       ; -- Begin function dlg_getc
	.p2align	2
_dlg_getc:                              ; @dlg_getc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x20, x1
	mov	x25, x0
Lloh0:
	adrp	x27, _FALSE@GOTPAGE
Lloh1:
	ldr	x27, [x27, _FALSE@GOTPAGEOFF]
	ldr	w19, [x27]
Lloh2:
	adrp	x21, _dialog_vars@GOTPAGE
Lloh3:
	ldr	x21, [x21, _dialog_vars@GOTPAGEOFF]
	ldr	w26, [x21]
	mov	x0, #0
	bl	_time
	mov	x22, x0
	ldrsw	x23, [x21]
	bl	_may_handle_inputs
	cbz	x0, LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _WTIMEOUT_VAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _WTIMEOUT_VAL@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	b	LBB0_4
LBB0_2:
	cmp	w26, #1
	b.lt	LBB0_5
; %bb.3:
	mov	w8, #1000
	mul	w1, w26, w8
LBB0_4:
	mov	x0, x25
	bl	_wtimeout
LBB0_5:
Lloh7:
	adrp	x24, _TRUE@GOTPAGE
Lloh8:
	ldr	x24, [x24, _TRUE@GOTPAGEOFF]
	cbz	w19, LBB0_7
; %bb.6:
	mov	w26, #130
	b	LBB0_52
LBB0_7:
	mov	x21, #0
	add	x8, x22, x23
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	str	w26, [sp, #28]                  ; 4-byte Folded Spill
	cmp	w26, #1
Lloh9:
	adrp	x22, _dialog_state@GOTPAGE
Lloh10:
	ldr	x22, [x22, _dialog_state@GOTPAGEOFF]
	cset	w8, lt
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	str	x25, [sp, #32]                  ; 8-byte Folded Spill
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_11 Depth=1
	mov	w19, #0
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	ldr	w23, [x24]
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	cbnz	w23, LBB0_51
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w28, [x27]
	mov	x0, x25
	mov	x1, x20
	bl	_really_getch
	mov	x26, x0
	cbnz	w19, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w19, [x20]
	mov	x0, x25
	mov	x1, x26
	mov	x2, x20
	bl	_dlg_lookup_key
	mov	x26, x0
	ldr	w1, [x20]
	bl	_dlg_trace_chr
	mov	x0, #0
	bl	_time
	ldr	w8, [x20]
	cbz	w8, LBB0_19
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	w8, w19
	b.ne	LBB0_19
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	w23, #0
	ldr	w28, [x24]
LBB0_15:                                ;   in Loop: Header=BB0_11 Depth=1
	cbz	w28, LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x21, [x22]
	cbz	x21, LBB0_8
; %bb.17:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x21, #16]
	ldr	w2, [x20]
	add	x3, sp, #44
	mov	x0, x21
	mov	x1, x26
	blr	x8
	cbz	w0, LBB0_26
LBB0_18:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	w19, #0
	b	LBB0_10
LBB0_19:                                ;   in Loop: Header=BB0_11 Depth=1
	sub	w8, w26, #128
	cmp	w8, #8
	b.hi	LBB0_14
; %bb.20:                               ;   in Loop: Header=BB0_11 Depth=1
Lloh11:
	adrp	x11, lJTI0_0@PAGE
Lloh12:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x9, LBB0_14
	ldrb	w10, [x11, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_21:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x22, #8]
	cbz	w8, LBB0_14
; %bb.22:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w0, #128
	bl	_isBeforeChr
	cbnz	w0, LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w0, #129
	bl	_isBeforeFkey
	cbz	w0, LBB0_14
LBB0_24:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	w0, #128
	bl	_isBeforeChr
	cbz	w0, LBB0_38
; %bb.25:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x21
	bl	_next_callback
	b	LBB0_39
LBB0_26:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x21, #8]
	ldr	x25, [sp, #32]                  ; 8-byte Folded Reload
	cmp	x8, x25
	b.eq	LBB0_36
; %bb.27:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w23, #0
	b	LBB0_37
LBB0_28:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_42
; %bb.29:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	cmp	x0, x8
	b.lt	LBB0_42
; %bb.30:                               ;   in Loop: Header=BB0_11 Depth=1
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_48
LBB0_31:                                ;   in Loop: Header=BB0_11 Depth=1
Lloh15:
	adrp	x19, _dialog_vars@GOTPAGE
Lloh16:
	ldr	x19, [x19, _dialog_vars@GOTPAGEOFF]
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_33
; %bb.32:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x25
	bl	_getyx
	ldr	w1, [x19, #4]
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	w2, #0
	mov	w3, #0
	bl	_dialog_helpfile
	mov	x0, x25
	bl	_dlg_raise_window
	mov	x0, x25
	bl	_wmove
LBB0_33:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	w19, #0
	mov	w23, #0
	mov	w26, #131
	b	LBB0_10
LBB0_34:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x25
	bl	_touchwin
Lloh19:
	adrp	x8, _curscr@GOTPAGE
Lloh20:
	ldr	x8, [x8, _curscr@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_wrefresh
	mov	w23, #0
	mov	w26, #135
	b	LBB0_15
LBB0_35:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	w19, [x24]
	ldr	w1, [x27]
	mov	x0, x25
	bl	_keypad
	mov	w23, #0
	mov	w26, #136
	b	LBB0_10
LBB0_36:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x21]
	cmp	w8, #0
	cset	w23, eq
LBB0_37:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x21
	bl	_dlg_remove_callback
	mov	w19, #0
	str	xzr, [x22]
	b	LBB0_10
LBB0_38:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x21
	bl	_prev_callback
LBB0_39:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x21, x0
	ldr	x25, [sp, #32]                  ; 8-byte Folded Reload
	str	x0, [x22]
	cbz	x0, LBB0_41
; %bb.40:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x25, [x21, #8]
LBB0_41:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x25
	bl	_dlg_raise_window
	mov	w23, #0
	b	LBB0_15
LBB0_42:                                ;   in Loop: Header=BB0_11 Depth=1
Lloh22:
	adrp	x8, _stdin@GOTPAGE
Lloh23:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	bl	_valid_file
	cbz	w0, LBB0_47
; %bb.43:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w0, [x22, #12]
	bl	_valid_file
	cbz	w0, LBB0_47
; %bb.44:                               ;   in Loop: Header=BB0_11 Depth=1
	bl	_check_inputs
	cbz	w0, LBB0_49
; %bb.45:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x25
	bl	_handle_inputs
	cbz	w0, LBB0_50
; %bb.46:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x25
	bl	_dlg_raise_window
	mov	w23, #0
	mov	w26, #130
	b	LBB0_15
LBB0_47:                                ;   in Loop: Header=BB0_11 Depth=1
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_48:                                ;   in Loop: Header=BB0_11 Depth=1
	bl	_DLG_TRACE
Lloh27:
	adrp	x8, _ESC@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ESC@GOTPAGEOFF]
Lloh29:
	ldr	w26, [x8]
	ldr	w23, [x24]
	b	LBB0_15
LBB0_49:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	w26, #130
	ldr	w23, [sp, #12]                  ; 4-byte Folded Reload
	b	LBB0_15
LBB0_50:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	w23, [x24]
	mov	w26, #130
	b	LBB0_15
LBB0_51:
	cbz	w19, LBB0_53
LBB0_52:
	ldr	w1, [x24]
	mov	x0, x25
	bl	_keypad
LBB0_53:
	mov	x0, x26
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_21-LBB0_14)>>2
	.byte	(LBB0_21-LBB0_14)>>2
	.byte	(LBB0_28-LBB0_14)>>2
	.byte	(LBB0_31-LBB0_14)>>2
	.byte	(LBB0_21-LBB0_14)>>2
	.byte	(LBB0_21-LBB0_14)>>2
	.byte	(LBB0_14-LBB0_14)>>2
	.byte	(LBB0_34-LBB0_14)>>2
	.byte	(LBB0_35-LBB0_14)>>2
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_dialog_vars,8,2                ; @dialog_vars
	.comm	_WTIMEOUT_VAL,4,2               ; @WTIMEOUT_VAL
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_curscr,4,2                     ; @curscr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"# dlg_getc: timeout expired\n"

	.comm	_ESC,4,2                        ; @ESC
	.comm	_stdin,4,2                      ; @stdin
	.comm	_dialog_state,16,3              ; @dialog_state
l_.str.1:                               ; @.str.1
	.asciz	"# dlg_getc: input or output is invalid\n"

l_.str.2:                               ; @.str.2
	.asciz	"HELP"

.subsections_via_symbols
