	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function MapKey
_MapKey:                                ## @MapKey
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	%esi, %edi
	xorl	%esi, %esi
	callq	_GenMap
	movl	%eax, -12(%rbp)
	xorl	%eax, %eax
	callq	_AssertTCB
	movq	%rbx, %rdi
	callq	_PropOf
	movl	(%rax), %esi
	movq	_N_INI@GOTPCREL(%rip), %rax
	movq	_FKEYS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	addq	(%rax), %rdx
	movq	_keycompare@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-12(%rbp), %rdi
	xorl	%ecx, %ecx
	callq	_bsearch
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%rax), %edi
	movl	%edi, -12(%rbp)
	callq	_LOWORD
	movl	%eax, %ecx
	movl	%eax, %edx
	andl	$32767, %edx                    ## imm = 0x7FFF
	movl	%edx, %eax
	negl	%eax
	testl	$32768, %ecx                    ## imm = 0x8000
	cmovel	%edx, %eax
	jmp	LBB0_3
LBB0_1:
	movl	$-1, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_N_INI,8,3                      ## @N_INI
	.comm	_FKEYS,8,3                      ## @FKEYS
	.comm	_keycompare,4,2                 ## @keycompare
	.no_dead_strip	_MapKey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function MapKey
_MapKey:                                ; @MapKey
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	mov	x0, x1
	mov	w1, #0
	bl	_GenMap
	str	w0, [sp, #12]
	bl	_AssertTCB
	mov	x0, x19
	bl	_PropOf
	ldr	w1, [x0]
Lloh0:
	adrp	x8, _N_INI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _N_INI@GOTPAGEOFF]
Lloh2:
	adrp	x9, _FKEYS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FKEYS@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	ldr	x9, [x9]
	add	x2, x9, x8
Lloh6:
	adrp	x8, _keycompare@GOTPAGE
Lloh7:
	ldr	x8, [x8, _keycompare@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	add	x0, sp, #12
	mov	w3, #0
	bl	_bsearch
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x0]
	str	w0, [sp, #12]
	bl	_LOWORD
	and	w8, w0, #0x7fff
	tst	w0, #0x8000
	cneg	w0, w8, ne
	b	LBB0_3
LBB0_2:
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_N_INI,8,3                      ; @N_INI
	.comm	_FKEYS,8,3                      ; @FKEYS
	.comm	_keycompare,4,2                 ; @keycompare
	.no_dead_strip	_MapKey
.subsections_via_symbols
