	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_unicodemap_index               ## -- Begin function unicodemap_index
	.weak_definition	_unicodemap_index
	.p2align	4, 0x90
_unicodemap_index:                      ## @unicodemap_index
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_QK_UNICODEMAP_PAIR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rdi, %rax
	jle	LBB0_1
## %bb.2:
	movq	_QK_UNICODEMAP@GOTPCREL(%rip), %rax
	subq	(%rax), %rbx
	movq	%rbx, %rax
	jmp	LBB0_3
LBB0_1:
	subq	%rax, %rbx
	movq	_unicode_saved_mods@GOTPCREL(%rip), %rax
	movq	_MOD_MASK_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	andl	(%rax), %r14d
	movq	_USB_LED_CAPS_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_HOST_LED_ON
	movl	%eax, %ecx
	movq	%rbx, %rax
	shrq	$7, %rax
	cmpl	%ecx, %r14d
	cmoveq	%rbx, %rax
	andl	$127, %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QK_UNICODEMAP_PAIR,8,3         ## @QK_UNICODEMAP_PAIR
	.comm	_unicode_saved_mods,4,2         ## @unicode_saved_mods
	.comm	_MOD_MASK_SHIFT,4,2             ## @MOD_MASK_SHIFT
	.comm	_USB_LED_CAPS_LOCK,4,2          ## @USB_LED_CAPS_LOCK
	.comm	_QK_UNICODEMAP,8,3              ## @QK_UNICODEMAP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_unicodemap_index               ; -- Begin function unicodemap_index
	.weak_definition	_unicodemap_index
	.p2align	2
_unicodemap_index:                      ; @unicodemap_index
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _QK_UNICODEMAP_PAIR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QK_UNICODEMAP_PAIR@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	b.le	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _QK_UNICODEMAP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QK_UNICODEMAP@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	sub	x0, x0, x8
	b	LBB0_3
LBB0_2:
	sub	x19, x0, x8
Lloh6:
	adrp	x8, _unicode_saved_mods@GOTPAGE
Lloh7:
	ldr	x8, [x8, _unicode_saved_mods@GOTPAGEOFF]
Lloh8:
	adrp	x9, _MOD_MASK_SHIFT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MOD_MASK_SHIFT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	ldr	w9, [x9]
	and	w20, w9, w8
Lloh12:
	adrp	x8, _USB_LED_CAPS_LOCK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _USB_LED_CAPS_LOCK@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_IS_HOST_LED_ON
	lsr	x8, x19, #7
	cmp	w20, w0
	csel	x8, x19, x8, eq
	and	x0, x8, #0x7f
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_QK_UNICODEMAP_PAIR,8,3         ; @QK_UNICODEMAP_PAIR
	.comm	_unicode_saved_mods,4,2         ; @unicode_saved_mods
	.comm	_MOD_MASK_SHIFT,4,2             ; @MOD_MASK_SHIFT
	.comm	_USB_LED_CAPS_LOCK,4,2          ; @USB_LED_CAPS_LOCK
	.comm	_QK_UNICODEMAP,8,3              ; @QK_UNICODEMAP
.subsections_via_symbols
