	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dlg_lookup_key                 ## -- Begin function dlg_lookup_key
	.p2align	4, 0x90
_dlg_lookup_key:                        ## @dlg_lookup_key
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rdx)
	je	LBB0_2
## %bb.1:
	movq	_KEY_MAX@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jle	LBB0_25
LBB0_2:
	movq	_WILDNAME@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_all_bindings@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.3:
	testq	%r12, %r12
	je	LBB0_8
## %bb.4:
	movq	%r12, %rax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdi, 24(%rax)
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	32(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_5
LBB0_8:
	testq	%r12, %r12
	jne	LBB0_9
	jmp	LBB0_25
LBB0_6:
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testq	%r12, %r12
	je	LBB0_25
LBB0_9:
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	32(%r12), %r12
	testq	%r12, %r12
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_25
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
	movq	24(%r12), %rax
	cmpq	%rdi, %rax
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	testq	%rax, %rax
	jne	LBB0_24
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	(%r12), %r13
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_WILDNAME@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_24
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ebx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	testl	%ebx, %ebx
	setne	%al
	movq	16(%r12), %r15
	cmpl	$0, (%r15)
	js	LBB0_24
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movb	%al, %cl
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	addq	$12, %r15
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_16 Depth=2
	cmpl	$0, (%r15)
	leaq	12(%r15), %r15
	js	LBB0_24
LBB0_16:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	$0, 8(%r12)
	je	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	testl	%ebx, %ebx
	jne	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=2
	movl	-8(%r15), %r13d
	movl	%r14d, %edi
	callq	_dlg_toupper
	cmpl	%eax, %r13d
	je	LBB0_19
LBB0_20:                                ##   in Loop: Header=BB0_16 Depth=2
	cmpl	%r14d, -8(%r15)
	jne	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_16 Depth=2
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, -12(%r15)
	jne	LBB0_23
## %bb.22:
	movl	-4(%r15), %r14d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
	jmp	LBB0_25
LBB0_19:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movl	-4(%r15), %r14d
LBB0_25:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KEY_MAX,4,2                    ## @KEY_MAX
	.comm	_WILDNAME,8,3                   ## @WILDNAME
	.comm	_all_bindings,8,3               ## @all_bindings
	.comm	_KEY_MOUSE,4,2                  ## @KEY_MOUSE
	.comm	_KEY_RESIZE,4,2                 ## @KEY_RESIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dlg_lookup_key                 ; -- Begin function dlg_lookup_key
	.p2align	2
_dlg_lookup_key:                        ; @dlg_lookup_key
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x1
	ldr	w8, [x2]
Lloh0:
	adrp	x9, _KEY_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _KEY_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, #0
	ccmp	w9, w1, #0, ne
	b.le	LBB0_22
; %bb.1:
	mov	x20, x2
	mov	x21, x0
Lloh3:
	adrp	x24, _WILDNAME@GOTPAGE
Lloh4:
	ldr	x24, [x24, _WILDNAME@GOTPAGEOFF]
	ldr	x22, [x24]
Lloh5:
	adrp	x8, _all_bindings@GOTPAGE
Lloh6:
	ldr	x8, [x8, _all_bindings@GOTPAGEOFF]
Lloh7:
	ldr	x25, [x8]
	cbz	x0, LBB0_6
; %bb.2:
	cbz	x25, LBB0_6
; %bb.3:
	mov	x8, x25
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8, #24]
	cmp	x9, x21
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x8, #32]
	cbnz	x8, LBB0_4
LBB0_6:
	cbnz	x25, LBB0_9
	b	LBB0_22
LBB0_7:
	ldr	x22, [x8]
	cbnz	x25, LBB0_9
	b	LBB0_22
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x25, [x25, #32]
	cbz	x25, LBB0_22
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
	ldr	x8, [x25, #24]
	cmp	x8, x21
	b.eq	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	cbnz	x8, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x23, [x25]
	mov	x0, x23
	mov	x1, x22
	bl	_strcmp
	cbz	w0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x1, [x24]
	mov	x0, x23
	bl	_strcmp
	cbnz	w0, LBB0_8
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w23, [x20]
	cmp	w23, #0
	cset	w26, ne
	ldr	x8, [x25, #16]
	ldr	w9, [x8]
	tbnz	w9, #31, LBB0_8
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x27, x8, #8
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=2
	ldr	w8, [x27, #4]
	add	x27, x27, #12
	tbnz	w8, #31, LBB0_8
LBB0_16:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x25, #8]
	cmp	x8, #0
	ccmp	w23, #0, #0, ne
	b.ne	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
	ldur	w28, [x27, #-4]
	mov	x0, x19
	bl	_dlg_toupper
	cmp	w28, w0
	b.eq	LBB0_21
LBB0_18:                                ;   in Loop: Header=BB0_16 Depth=2
	ldur	w8, [x27, #-4]
	cmp	w8, w19
	b.ne	LBB0_15
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=2
	ldur	w8, [x27, #-8]
	cmp	w8, w26
	b.ne	LBB0_15
; %bb.20:
	ldr	w19, [x27]
	str	w19, [x20]
	b	LBB0_22
LBB0_21:
	str	wzr, [x20]
	ldr	w19, [x27]
LBB0_22:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_KEY_MAX,4,2                    ; @KEY_MAX
	.comm	_WILDNAME,8,3                   ; @WILDNAME
	.comm	_all_bindings,8,3               ; @all_bindings
	.comm	_KEY_MOUSE,4,2                  ; @KEY_MOUSE
	.comm	_KEY_RESIZE,4,2                 ; @KEY_RESIZE
.subsections_via_symbols
