	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_my_getc
_handle_my_getc:                        ## @handle_my_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	_FALSE@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	callq	_valid_callback
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	testl	%r12d, %r12d
	je	LBB0_3
## %bb.6:
	addl	$-130, %ebx
	cmpl	$3, %ebx
	ja	LBB0_14
## %bb.7:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_12:
	movl	(%r15), %eax
	movq	_MAX_LEN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_15
## %bb.13:
	incl	%eax
	movl	%eax, (%r15)
	jmp	LBB0_15
LBB0_1:
	movl	(%r13), %eax
	jmp	LBB0_26
LBB0_3:
	movl	16(%r15), %esi
	movl	%ebx, %edi
	callq	_dlg_char_to_button
	testq	%rax, %rax
	je	LBB0_4
## %bb.18:
	cmpl	$128, %ebx
	je	LBB0_22
## %bb.19:
	cmpl	$129, %ebx
	jne	LBB0_23
## %bb.20:
	movl	(%r15), %edi
	callq	_clearerr
	movl	(%r15), %edi
	callq	_getc
	movl	%eax, %ebx
	movl	(%r15), %esi
	movl	%eax, %edi
	callq	_ungetc
	movq	_EOF@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_24
## %bb.21:
	movq	%r15, %rdi
	callq	_handle_input
	jmp	LBB0_24
LBB0_4:
	movq	_TRUE@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_23
LBB0_5:
	movq	_DLG_EXIT_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_16
LBB0_23:
	xorl	%eax, %eax
	callq	_beep
LBB0_24:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_25
LBB0_14:
	xorl	%eax, %eax
	callq	_beep
	jmp	LBB0_15
LBB0_9:
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_15
## %bb.10:
	decl	%eax
	movl	%eax, (%r15)
	jmp	LBB0_15
LBB0_8:
	movl	$0, (%r15)
LBB0_15:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_16:
	movslq	(%r15), %rax
	cmpq	%rax, 8(%r15)
	je	LBB0_25
## %bb.17:
	movq	%r15, %rdi
	callq	_repaint_text
LBB0_25:
	xorl	%eax, %eax
	testl	%ebx, %ebx
	sete	%al
LBB0_26:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_DLG_EXIT_ESC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	jmp	LBB0_25
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_9
	.long	L0_0_set_5
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_DLG_EXIT_OK,4,2                ## @DLG_EXIT_OK
	.comm	_MAX_LEN,4,2                    ## @MAX_LEN
	.comm	_EOF,4,2                        ## @EOF
	.comm	_DLG_EXIT_ESC,4,2               ## @DLG_EXIT_ESC
	.no_dead_strip	_handle_my_getc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_my_getc
_handle_my_getc:                        ; @handle_my_getc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x24, _FALSE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _FALSE@GOTPAGEOFF]
	ldr	w23, [x24]
	bl	_valid_callback
	cbz	w0, LBB0_6
; %bb.1:
	cbz	w22, LBB0_7
; %bb.2:
	sub	w8, w21, #130
	cmp	w8, #3
	b.hi	LBB0_15
; %bb.3:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	ldr	w8, [x19]
Lloh4:
	adrp	x9, _MAX_LEN@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MAX_LEN@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_19
; %bb.5:
	add	w8, w8, #1
	str	w8, [x19]
	b	LBB0_19
LBB0_6:
	ldr	w0, [x24]
	b	LBB0_22
LBB0_7:
	ldr	w1, [x19, #16]
	mov	x0, x21
	bl	_dlg_char_to_button
	cbz	x0, LBB0_12
; %bb.8:
	cmp	w21, #128
	b.eq	LBB0_23
; %bb.9:
	cmp	w21, #129
	b.ne	LBB0_14
; %bb.10:
	ldr	w0, [x19]
	bl	_clearerr
	ldr	w0, [x19]
	bl	_getc
	mov	x20, x0
	ldr	w1, [x19]
	bl	_ungetc
Lloh7:
	adrp	x8, _EOF@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w20, w8
	b.eq	LBB0_21
; %bb.11:
	mov	x0, x19
	bl	_handle_input
	b	LBB0_21
LBB0_12:
Lloh10:
	adrp	x8, _TRUE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cbz	w8, LBB0_14
LBB0_13:
Lloh13:
	adrp	x8, _DLG_EXIT_OK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DLG_EXIT_OK@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x20]
Lloh16:
	adrp	x8, _TRUE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh18:
	ldr	w23, [x8]
	b	LBB0_19
LBB0_14:
	bl	_beep
	b	LBB0_21
LBB0_15:
	bl	_beep
	b	LBB0_19
LBB0_16:
	ldr	w8, [x19]
	subs	w8, w8, #1
	b.lt	LBB0_19
; %bb.17:
	str	w8, [x19]
	b	LBB0_19
LBB0_18:
	str	wzr, [x19]
LBB0_19:
	ldrsw	x8, [x19]
	ldr	x9, [x19, #8]
	cmp	x9, x8
	b.eq	LBB0_21
; %bb.20:
	mov	x0, x19
	bl	_repaint_text
LBB0_21:
	cmp	w23, #0
	cset	w0, eq
LBB0_22:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_23:
Lloh19:
	adrp	x8, _TRUE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh21:
	ldr	w23, [x8]
Lloh22:
	adrp	x8, _DLG_EXIT_ESC@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DLG_EXIT_ESC@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [x20]
	b	LBB0_21
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_16-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
	.byte	(LBB0_18-LBB0_4)>>2
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_DLG_EXIT_OK,4,2                ; @DLG_EXIT_OK
	.comm	_MAX_LEN,4,2                    ; @MAX_LEN
	.comm	_EOF,4,2                        ; @EOF
	.comm	_DLG_EXIT_ESC,4,2               ; @DLG_EXIT_ESC
	.no_dead_strip	_handle_my_getc
.subsections_via_symbols
