	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function keyboardHandleModifiers
_keyboardHandleModifiers:               ## @keyboardHandleModifiers
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	__glfw@GOTPCREL(%rip), %rbx
	movl	%edx, 36(%rbx)
	cmpl	$0, 32(%rbx)
	je	LBB0_14
## %bb.1:
	movl	16(%rbp), %eax
	movl	28(%rbx), %edi
	movl	%eax, (%rsp)
	xorl	%r14d, %r14d
	movl	%ecx, %esi
	movl	%r8d, %edx
	movl	%r9d, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_xkb_state_update_mask
	movq	_XKB_STATE_MODS_DEPRESSED@GOTPCREL(%rip), %rax
	movq	_XKB_STATE_LAYOUT_DEPRESSED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_XKB_STATE_MODS_LATCHED@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	28(%rbx), %edi
	movq	_XKB_STATE_LAYOUT_LATCHED@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	callq	_xkb_state_serialize_mods
	movl	(%rbx), %edx
	andl	%eax, %edx
	je	LBB0_3
## %bb.2:
	movq	_GLFW_MOD_CONTROL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_3:
	movl	4(%rbx), %ecx
	andl	%eax, %ecx
	je	LBB0_5
## %bb.4:
	movq	_GLFW_MOD_ALT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_5:
	movdqu	8(%rbx), %xmm0
	movd	%eax, %xmm1
	pshufd	$0, %xmm1, %xmm1                ## xmm1 = xmm1[0,0,0,0]
	pand	%xmm0, %xmm1
	pxor	%xmm0, %xmm0
	pcmpeqd	%xmm1, %xmm0
	movmskps	%xmm0, %eax
	movl	$0, %esi
	testb	$1, %al
	jne	LBB0_7
## %bb.6:
	movq	_GLFW_MOD_SHIFT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
LBB0_7:
	movl	$0, %edi
	testb	$2, %al
	jne	LBB0_9
## %bb.8:
	movq	_GLFW_MOD_SUPER@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
LBB0_9:
	orl	%edi, %esi
	orl	%edx, %ecx
	movl	$0, %edx
	testb	$4, %al
	jne	LBB0_11
## %bb.10:
	movq	_GLFW_MOD_CAPS_LOCK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_11:
	orl	%esi, %ecx
	testb	$8, %al
	jne	LBB0_13
## %bb.12:
	movq	_GLFW_MOD_NUM_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_13:
	orl	%r14d, %edx
	orl	%edx, %ecx
	movl	%ecx, 24(%rbx)
LBB0_14:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__glfw,40,2                     ## @_glfw
	.comm	_XKB_STATE_MODS_DEPRESSED,4,2   ## @XKB_STATE_MODS_DEPRESSED
	.comm	_XKB_STATE_LAYOUT_DEPRESSED,4,2 ## @XKB_STATE_LAYOUT_DEPRESSED
	.comm	_XKB_STATE_MODS_LATCHED,4,2     ## @XKB_STATE_MODS_LATCHED
	.comm	_XKB_STATE_LAYOUT_LATCHED,4,2   ## @XKB_STATE_LAYOUT_LATCHED
	.comm	_GLFW_MOD_CONTROL,4,2           ## @GLFW_MOD_CONTROL
	.comm	_GLFW_MOD_ALT,4,2               ## @GLFW_MOD_ALT
	.comm	_GLFW_MOD_SHIFT,4,2             ## @GLFW_MOD_SHIFT
	.comm	_GLFW_MOD_SUPER,4,2             ## @GLFW_MOD_SUPER
	.comm	_GLFW_MOD_CAPS_LOCK,4,2         ## @GLFW_MOD_CAPS_LOCK
	.comm	_GLFW_MOD_NUM_LOCK,4,2          ## @GLFW_MOD_NUM_LOCK
	.no_dead_strip	_keyboardHandleModifiers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function keyboardHandleModifiers
_keyboardHandleModifiers:               ; @keyboardHandleModifiers
	.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	x19, __glfw@GOTPAGE
Lloh1:
	ldr	x19, [x19, __glfw@GOTPAGEOFF]
	str	w2, [x19, #36]
	ldr	w8, [x19, #32]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	w0, [x19, #28]
	mov	x1, x3
	mov	x2, x4
	mov	x3, x5
	mov	w4, #0
	mov	w5, #0
	bl	_xkb_state_update_mask
	ldr	w0, [x19, #28]
Lloh2:
	adrp	x8, _XKB_STATE_MODS_DEPRESSED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _XKB_STATE_MODS_DEPRESSED@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _XKB_STATE_LAYOUT_DEPRESSED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _XKB_STATE_LAYOUT_DEPRESSED@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _XKB_STATE_MODS_LATCHED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _XKB_STATE_MODS_LATCHED@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh11:
	adrp	x9, _XKB_STATE_LAYOUT_LATCHED@GOTPAGE
Lloh12:
	ldr	x9, [x9, _XKB_STATE_LAYOUT_LATCHED@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w1, w8, w9
	bl	_xkb_state_serialize_mods
Lloh14:
	adrp	x8, _GLFW_MOD_CONTROL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GLFW_MOD_CONTROL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldp	w9, w10, [x19]
	tst	w9, w0
	csel	w8, wzr, w8, eq
Lloh17:
	adrp	x9, _GLFW_MOD_ALT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _GLFW_MOD_ALT@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w10, w0
	csel	w9, wzr, w9, eq
	orr	w8, w9, w8
Lloh20:
	adrp	x9, _GLFW_MOD_SHIFT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _GLFW_MOD_SHIFT@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	ldp	w10, w11, [x19, #8]
	tst	w10, w0
	csel	w9, wzr, w9, eq
	orr	w8, w8, w9
Lloh23:
	adrp	x9, _GLFW_MOD_SUPER@GOTPAGE
Lloh24:
	ldr	x9, [x9, _GLFW_MOD_SUPER@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w11, w0
	csel	w9, wzr, w9, eq
	orr	w8, w8, w9
Lloh26:
	adrp	x9, _GLFW_MOD_CAPS_LOCK@GOTPAGE
Lloh27:
	ldr	x9, [x9, _GLFW_MOD_CAPS_LOCK@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	ldp	w10, w11, [x19, #16]
	tst	w10, w0
	csel	w9, wzr, w9, eq
Lloh29:
	adrp	x10, _GLFW_MOD_NUM_LOCK@GOTPAGE
Lloh30:
	ldr	x10, [x10, _GLFW_MOD_NUM_LOCK@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh31:
	ldr	w9, [x10]
	tst	w11, w0
	csel	w9, wzr, w9, eq
	orr	w8, w8, w9
	str	w8, [x19, #24]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	__glfw,40,2                     ; @_glfw
	.comm	_XKB_STATE_MODS_DEPRESSED,4,2   ; @XKB_STATE_MODS_DEPRESSED
	.comm	_XKB_STATE_LAYOUT_DEPRESSED,4,2 ; @XKB_STATE_LAYOUT_DEPRESSED
	.comm	_XKB_STATE_MODS_LATCHED,4,2     ; @XKB_STATE_MODS_LATCHED
	.comm	_XKB_STATE_LAYOUT_LATCHED,4,2   ; @XKB_STATE_LAYOUT_LATCHED
	.comm	_GLFW_MOD_CONTROL,4,2           ; @GLFW_MOD_CONTROL
	.comm	_GLFW_MOD_ALT,4,2               ; @GLFW_MOD_ALT
	.comm	_GLFW_MOD_SHIFT,4,2             ; @GLFW_MOD_SHIFT
	.comm	_GLFW_MOD_SUPER,4,2             ; @GLFW_MOD_SUPER
	.comm	_GLFW_MOD_CAPS_LOCK,4,2         ; @GLFW_MOD_CAPS_LOCK
	.comm	_GLFW_MOD_NUM_LOCK,4,2          ; @GLFW_MOD_NUM_LOCK
	.no_dead_strip	_keyboardHandleModifiers
.subsections_via_symbols
