	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xlatekey                       ## -- Begin function xlatekey
	.p2align	4, 0x90
_xlatekey:                              ## @xlatekey
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_X_display@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_X_event@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_XKeycodeToKeysym
                                        ## kill: def $eax killed $eax def $rax
	leal	-128(%rax), %ecx
	cmpl	$33, %ecx
	ja	LBB0_8
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rcx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	_KEY_RALT@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_3:
	movq	_KEY_MINUS@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_4:
	movq	_KEY_EQUALS@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_5:
	movq	_KEY_RSHIFT@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_6:
	movq	_KEY_BACKSPACE@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_7:
	movq	_KEY_RCTRL@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_8:
	movq	_XK_space@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %edx
	subl	%ecx, %edx
	movq	_XK_asciitilde@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %eax
	leal	32(%rdx), %edx
	cmovgl	%eax, %edx
	cmpl	%ecx, %eax
	cmovll	%eax, %edx
	leal	-65(%rdx), %ecx
	leal	32(%rdx), %eax
	cmpl	$26, %ecx
	cmovael	%edx, %eax
	popq	%rbp
	retq
LBB0_9:
	movq	_KEY_UPARROW@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_10:
	movq	_KEY_TAB@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_11:
	movq	_KEY_RIGHTARROW@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_12:
	movq	_KEY_ENTER@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_13:
	movq	_KEY_PAUSE@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_14:
	movq	_KEY_LEFTARROW@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_16:
	movq	_KEY_F9@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_17:
	movq	_KEY_F8@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_18:
	movq	_KEY_F7@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_19:
	movq	_KEY_F6@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_20:
	movq	_KEY_F5@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_21:
	movq	_KEY_F4@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_22:
	movq	_KEY_F3@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_23:
	movq	_KEY_F2@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_24:
	movq	_KEY_F12@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_25:
	movq	_KEY_F11@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_26:
	movq	_KEY_F10@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_27:
	movq	_KEY_F1@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_28:
	movq	_KEY_ESCAPE@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_29:
	movq	_KEY_DOWNARROW@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_14
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_16
	.long	L0_0_set_17
	.long	L0_0_set_18
	.long	L0_0_set_19
	.long	L0_0_set_20
	.long	L0_0_set_21
	.long	L0_0_set_22
	.long	L0_0_set_23
	.long	L0_0_set_24
	.long	L0_0_set_25
	.long	L0_0_set_26
	.long	L0_0_set_27
	.long	L0_0_set_28
	.long	L0_0_set_29
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_6
	.long	L0_0_set_2
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_X_display,4,2                  ## @X_display
	.comm	_X_event,4,2                    ## @X_event
	.comm	_KEY_LEFTARROW,4,2              ## @KEY_LEFTARROW
	.comm	_KEY_RIGHTARROW,4,2             ## @KEY_RIGHTARROW
	.comm	_KEY_DOWNARROW,4,2              ## @KEY_DOWNARROW
	.comm	_KEY_UPARROW,4,2                ## @KEY_UPARROW
	.comm	_KEY_ESCAPE,4,2                 ## @KEY_ESCAPE
	.comm	_KEY_ENTER,4,2                  ## @KEY_ENTER
	.comm	_KEY_TAB,4,2                    ## @KEY_TAB
	.comm	_KEY_F1,4,2                     ## @KEY_F1
	.comm	_KEY_F2,4,2                     ## @KEY_F2
	.comm	_KEY_F3,4,2                     ## @KEY_F3
	.comm	_KEY_F4,4,2                     ## @KEY_F4
	.comm	_KEY_F5,4,2                     ## @KEY_F5
	.comm	_KEY_F6,4,2                     ## @KEY_F6
	.comm	_KEY_F7,4,2                     ## @KEY_F7
	.comm	_KEY_F8,4,2                     ## @KEY_F8
	.comm	_KEY_F9,4,2                     ## @KEY_F9
	.comm	_KEY_F10,4,2                    ## @KEY_F10
	.comm	_KEY_F11,4,2                    ## @KEY_F11
	.comm	_KEY_F12,4,2                    ## @KEY_F12
	.comm	_KEY_BACKSPACE,4,2              ## @KEY_BACKSPACE
	.comm	_KEY_PAUSE,4,2                  ## @KEY_PAUSE
	.comm	_KEY_EQUALS,4,2                 ## @KEY_EQUALS
	.comm	_KEY_MINUS,4,2                  ## @KEY_MINUS
	.comm	_KEY_RSHIFT,4,2                 ## @KEY_RSHIFT
	.comm	_KEY_RCTRL,4,2                  ## @KEY_RCTRL
	.comm	_KEY_RALT,4,2                   ## @KEY_RALT
	.comm	_XK_space,4,2                   ## @XK_space
	.comm	_XK_asciitilde,4,2              ## @XK_asciitilde
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xlatekey                       ; -- Begin function xlatekey
	.p2align	2
_xlatekey:                              ; @xlatekey
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _X_display@GOTPAGE
Lloh1:
	ldr	x8, [x8, _X_display@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _X_event@GOTPAGE
Lloh4:
	ldr	x8, [x8, _X_event@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_XKeycodeToKeysym
	sub	w8, w0, #128
	cmp	w8, #33
	b.hi	LBB0_8
; %bb.1:
Lloh6:
	adrp	x9, lJTI0_0@PAGE
Lloh7:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh8:
	adrp	x8, _KEY_RALT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _KEY_RALT@GOTPAGEOFF]
	b	LBB0_29
LBB0_3:
Lloh10:
	adrp	x8, _KEY_MINUS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _KEY_MINUS@GOTPAGEOFF]
	b	LBB0_29
LBB0_4:
Lloh12:
	adrp	x8, _KEY_EQUALS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _KEY_EQUALS@GOTPAGEOFF]
	b	LBB0_29
LBB0_5:
Lloh14:
	adrp	x8, _KEY_RSHIFT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _KEY_RSHIFT@GOTPAGEOFF]
	b	LBB0_29
LBB0_6:
Lloh16:
	adrp	x8, _KEY_BACKSPACE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _KEY_BACKSPACE@GOTPAGEOFF]
	b	LBB0_29
LBB0_7:
Lloh18:
	adrp	x8, _KEY_RCTRL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _KEY_RCTRL@GOTPAGEOFF]
	b	LBB0_29
LBB0_8:
Lloh20:
	adrp	x8, _XK_space@GOTPAGE
Lloh21:
	ldr	x8, [x8, _XK_space@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _XK_asciitilde@GOTPAGE
Lloh24:
	ldr	x9, [x9, _XK_asciitilde@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	sub	w10, w0, w8
	cmp	w0, w9
	ccmp	w0, w8, #8, le
	add	w8, w10, #32
	csel	w8, w0, w8, lt
	sub	w9, w8, #65
	add	w10, w8, #32
	cmp	w9, #26
	csel	w0, w10, w8, lo
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh26:
	adrp	x8, _KEY_UPARROW@GOTPAGE
Lloh27:
	ldr	x8, [x8, _KEY_UPARROW@GOTPAGEOFF]
	b	LBB0_29
LBB0_10:
Lloh28:
	adrp	x8, _KEY_TAB@GOTPAGE
Lloh29:
	ldr	x8, [x8, _KEY_TAB@GOTPAGEOFF]
	b	LBB0_29
LBB0_11:
Lloh30:
	adrp	x8, _KEY_RIGHTARROW@GOTPAGE
Lloh31:
	ldr	x8, [x8, _KEY_RIGHTARROW@GOTPAGEOFF]
	b	LBB0_29
LBB0_12:
Lloh32:
	adrp	x8, _KEY_ENTER@GOTPAGE
Lloh33:
	ldr	x8, [x8, _KEY_ENTER@GOTPAGEOFF]
	b	LBB0_29
LBB0_13:
Lloh34:
	adrp	x8, _KEY_PAUSE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _KEY_PAUSE@GOTPAGEOFF]
	b	LBB0_29
LBB0_14:
Lloh36:
	adrp	x8, _KEY_LEFTARROW@GOTPAGE
Lloh37:
	ldr	x8, [x8, _KE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KEY_F1@GOTPAGE
Lloh61:
	ldr	x8, [x8, _KEY_F1@GOTPAGEOFF]
	b	LBB0_29
LBB0_27:
Lloh62:
	adrp	x8, _KEY_ESCAPE@GOTPAGE
Lloh63:
	ldr	x8, [x8, _KEY_ESCAPE@GOTPAGEOFF]
	b	LBB0_29
LBB0_28:
Lloh64:
	adrp	x8, _KEY_DOWNARROW@GOTPAGE
Lloh65:
	ldr	x8, [x8, _KEY_DOWNARROW@GOTPAGEOFF]
LBB0_29:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh64, Lloh65
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
	.byte	(LBB0_16-LBB0_2)>>2
	.byte	(LBB0_17-LBB0_2)>>2
	.byte	(LBB0_18-LBB0_2)>>2
	.byte	(LBB0_19-LBB0_2)>>2
	.byte	(LBB0_20-LBB0_2)>>2
	.byte	(LBB0_21-LBB0_2)>>2
	.byte	(LBB0_22-LBB0_2)>>2
	.byte	(LBB0_23-LBB0_2)>>2
	.byte	(LBB0_24-LBB0_2)>>2
	.byte	(LBB0_25-LBB0_2)>>2
	.byte	(LBB0_26-LBB0_2)>>2
	.byte	(LBB0_27-LBB0_2)>>2
	.byte	(LBB0_28-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_X_display,4,2                  ; @X_display
	.comm	_X_event,4,2                    ; @X_event
	.comm	_KEY_LEFTARROW,4,2              ; @KEY_LEFTARROW
	.comm	_KEY_RIGHTARROW,4,2             ; @KEY_RIGHTARROW
	.comm	_KEY_DOWNARROW,4,2              ; @KEY_DOWNARROW
	.comm	_KEY_UPARROW,4,2                ; @KEY_UPARROW
	.comm	_KEY_ESCAPE,4,2                 ; @KEY_ESCAPE
	.comm	_KEY_ENTER,4,2                  ; @KEY_ENTER
	.comm	_KEY_TAB,4,2                    ; @KEY_TAB
	.comm	_KEY_F1,4,2                     ; @KEY_F1
	.comm	_KEY_F2,4,2                     ; @KEY_F2
	.comm	_KEY_F3,4,2                     ; @KEY_F3
	.comm	_KEY_F4,4,2                     ; @KEY_F4
	.comm	_KEY_F5,4,2                     ; @KEY_F5
	.comm	_KEY_F6,4,2                     ; @KEY_F6
	.comm	_KEY_F7,4,2                     ; @KEY_F7
	.comm	_KEY_F8,4,2                     ; @KEY_F8
	.comm	_KEY_F9,4,2                     ; @KEY_F9
	.comm	_KEY_F10,4,2                    ; @KEY_F10
	.comm	_KEY_F11,4,2                    ; @KEY_F11
	.comm	_KEY_F12,4,2                    ; @KEY_F12
	.comm	_KEY_BACKSPACE,4,2              ; @KEY_BACKSPACE
	.comm	_KEY_PAUSE,4,2                  ; @KEY_PAUSE
	.comm	_KEY_EQUALS,4,2                 ; @KEY_EQUALS
	.comm	_KEY_MINUS,4,2                  ; @KEY_MINUS
	.comm	_KEY_RSHIFT,4,2                 ; @KEY_RSHIFT
	.comm	_KEY_RCTRL,4,2                  ; @KEY_RCTRL
	.comm	_KEY_RALT,4,2                   ; @KEY_RALT
	.comm	_XK_space,4,2                   ; @XK_space
	.comm	_XK_asciitilde,4,2              ; @XK_asciitilde
.subsections_via_symbols
