	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dlg_char_to_button             ## -- Begin function dlg_char_to_button
	.p2align	4, 0x90
_dlg_char_to_button:                    ## @dlg_char_to_button
	.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
	movq	_DLG_EXIT_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.1:
	movq	%rsi, %r12
	movq	%rsi, %rdi
	callq	_get_hotkeys
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_dlg_last_getc
	movl	%eax, %edi
	callq	_dlg_toupper
	testq	%r15, %r15
	je	LBB0_8
## %bb.2:
	cmpq	$0, (%r12)
	je	LBB0_7
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%eax, (%r15,%rbx,4)
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, 8(%r12,%rbx,8)
	leaq	1(%rbx), %rbx
	jne	LBB0_4
	jmp	LBB0_7
LBB0_5:
	xorl	%eax, %eax
	callq	_dlg_flush_getc
	movl	%ebx, %r14d
LBB0_7:
	movq	%r15, %rdi
	callq	_free
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DLG_EXIT_UNKNOWN,4,2           ## @DLG_EXIT_UNKNOWN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dlg_char_to_button             ; -- Begin function dlg_char_to_button
	.p2align	2
_dlg_char_to_button:                    ; @dlg_char_to_button
	.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
Lloh0:
	adrp	x8, _DLG_EXIT_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DLG_EXIT_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	cbz	x1, LBB0_8
; %bb.1:
	mov	x21, x1
	mov	x0, x1
	bl	_get_hotkeys
	mov	x20, x0
	bl	_dlg_last_getc
	bl	_dlg_toupper
	cbz	x20, LBB0_8
; %bb.2:
	ldr	x8, [x21]
	cbz	x8, LBB0_7
; %bb.3:
	mov	x22, #0
	add	x8, x21, #8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x20, x22, lsl #2]
	cmp	w9, w0
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x8, x22, lsl #3]
	add	x22, x22, #1
	cbnz	x9, LBB0_4
	b	LBB0_7
LBB0_6:
	bl	_dlg_flush_getc
	mov	x19, x22
LBB0_7:
	mov	x0, x20
	bl	_free
LBB0_8:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DLG_EXIT_UNKNOWN,4,2           ; @DLG_EXIT_UNKNOWN
.subsections_via_symbols
