	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function keyboardHandleKeymap
_keyboardHandleKeymap:                  ## @keyboardHandleKeymap
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	_WL_KEYBOARD_KEYMAP_FORMAT_XKB_V1@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jne	LBB0_8
## %bb.1:
	movq	%r8, %r15
	movq	_PROT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MAP_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	movq	%r8, %rsi
	movl	%r12d, %r8d
	xorl	%r9d, %r9d
	callq	_mmap
	movq	%rax, %rbx
	movq	_MAP_FAILED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_8
## %bb.2:
	movq	__glfw@GOTPCREL(%rip), %r13
	movl	48(%r13), %edi
	movq	_XKB_KEYMAP_FORMAT_TEXT_V1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	callq	_xkb_keymap_new_from_string
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_munmap
	movl	%r12d, %edi
	callq	_close
	testq	%r14, %r14
	je	LBB0_9
## %bb.3:
	movq	%r14, %rdi
	callq	_xkb_state_new
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	movq	%rax, %rbx
	leaq	L_.str.2(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	leaq	L_.str.3(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.4(%rip), %rdi
	callq	_getenv
LBB0_7:
	movq	24(%r13), %rdi
	callq	_xkb_keymap_unref
	movq	32(%r13), %rdi
	callq	_xkb_state_unref
	movq	%r14, 24(%r13)
	movq	%rbx, 32(%r13)
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_xkb_keymap_mod_get_index
	movl	$1, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	movl	$1, %ebx
	movl	%edx, (%r13)
	movq	24(%r13), %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	_xkb_keymap_mod_get_index
	movl	$1, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	movl	%edx, 4(%r13)
	movq	24(%r13), %rdi
	leaq	L_.str.8(%rip), %rsi
	callq	_xkb_keymap_mod_get_index
	movl	$1, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	movl	%edx, 8(%r13)
	movq	24(%r13), %rdi
	leaq	L_.str.9(%rip), %rsi
	callq	_xkb_keymap_mod_get_index
	movl	$1, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	movl	%edx, 12(%r13)
	movq	24(%r13), %rdi
	leaq	L_.str.10(%rip), %rsi
	callq	_xkb_keymap_mod_get_index
	movl	$1, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	movl	%edx, 16(%r13)
	movq	24(%r13), %rdi
	leaq	L_.str.11(%rip), %rsi
	callq	_xkb_keymap_mod_get_index
	movl	%eax, %ecx
	shll	%cl, %ebx
	movl	%ebx, 20(%r13)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	%r12d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_close                          ## TAILCALL
LBB0_9:
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	__glfwInputError                ## TAILCALL
LBB0_10:
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	__glfwInputError
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xkb_keymap_unref               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WL_KEYBOARD_KEYMAP_FORMAT_XKB_V1,8,3 ## @WL_KEYBOARD_KEYMAP_FORMAT_XKB_V1
	.comm	_PROT_READ,4,2                  ## @PROT_READ
	.comm	_MAP_SHARED,4,2                 ## @MAP_SHARED
	.comm	_MAP_FAILED,8,3                 ## @MAP_FAILED
	.comm	__glfw,56,3                     ## @_glfw
	.comm	_XKB_KEYMAP_FORMAT_TEXT_V1,4,2  ## @XKB_KEYMAP_FORMAT_TEXT_V1
	.comm	_GLFW_PLATFORM_ERROR,4,2        ## @GLFW_PLATFORM_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Wayland: Failed to compile keymap"

L_.str.1:                               ## @.str.1
	.asciz	"Wayland: Failed to create XKB state"

L_.str.2:                               ## @.str.2
	.asciz	"LC_ALL"

L_.str.3:                               ## @.str.3
	.asciz	"LC_CTYPE"

L_.str.4:                               ## @.str.4
	.asciz	"LANG"

L_.str.6:                               ## @.str.6
	.asciz	"Control"

L_.str.7:                               ## @.str.7
	.asciz	"Mod1"

L_.str.8:                               ## @.str.8
	.asciz	"Shift"

L_.str.9:                               ## @.str.9
	.asciz	"Mod4"

L_.str.10:                              ## @.str.10
	.asciz	"Lock"

L_.str.11:                              ## @.str.11
	.asciz	"Mod2"

	.comm	_XKB_COMPOSE_COMPILE_NO_FLAGS,4,2 ## @XKB_COMPOSE_COMPILE_NO_FLAGS
	.comm	_XKB_COMPOSE_STATE_NO_FLAGS,4,2 ## @XKB_COMPOSE_STATE_NO_FLAGS
	.no_dead_strip	_keyboardHandleKeymap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function keyboardHandleKeymap
_keyboardHandleKeymap:                  ; @keyboardHandleKeymap
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x3
Lloh0:
	adrp	x8, _WL_KEYBOARD_KEYMAP_FORMAT_XKB_V1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WL_KEYBOARD_KEYMAP_FORMAT_XKB_V1@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x2
	b.ne	LBB0_8
; %bb.1:
	mov	x21, x4
Lloh3:
	adrp	x8, _PROT_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PROT_READ@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _MAP_SHARED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAP_SHARED@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, #0
	mov	x1, x4
	mov	x4, x20
	mov	w5, #0
	bl	_mmap
Lloh9:
	adrp	x8, _MAP_FAILED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAP_FAILED@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_8
; %bb.2:
	mov	x22, x0
Lloh12:
	adrp	x23, __glfw@GOTPAGE
Lloh13:
	ldr	x23, [x23, __glfw@GOTPAGEOFF]
	ldr	w0, [x23, #48]
Lloh14:
	adrp	x8, _XKB_KEYMAP_FORMAT_TEXT_V1@GOTPAGE
Lloh15:
	ldr	x8, [x8, _XKB_KEYMAP_FORMAT_TEXT_V1@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x1, x22
	mov	w3, #0
	bl	_xkb_keymap_new_from_string
	mov	x19, x0
	mov	x0, x22
	mov	x1, x21
	bl	_munmap
	mov	x0, x20
	bl	_close
	cbz	x19, LBB0_9
; %bb.3:
	mov	x0, x19
	bl	_xkb_state_new
	cbz	x0, LBB0_10
; %bb.4:
	mov	x20, x0
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_getenv
	cbnz	x0, LBB0_7
; %bb.5:
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_getenv
	cbnz	x0, LBB0_7
; %bb.6:
Lloh21:
	adrp	x0, l_.str.4@PAGE
Lloh22:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_getenv
LBB0_7:
	ldr	x0, [x23, #24]
	bl	_xkb_keymap_unref
	ldr	x0, [x23, #32]
	bl	_xkb_state_unref
	stp	x19, x20, [x23, #24]
Lloh23:
	adrp	x1, l_.str.6@PAGE
Lloh24:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_xkb_keymap_mod_get_index
	mov	w19, #1
	lsl	w8, w19, w0
	str	w8, [x23]
	ldr	x0, [x23, #24]
Lloh25:
	adrp	x1, l_.str.7@PAGE
Lloh26:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_xkb_keymap_mod_get_index
	lsl	w8, w19, w0
	str	w8, [x23, #4]
	ldr	x0, [x23, #24]
Lloh27:
	adrp	x1, l_.str.8@PAGE
Lloh28:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_xkb_keymap_mod_get_index
	lsl	w8, w19, w0
	str	w8, [x23, #8]
	ldr	x0, [x23, #24]
Lloh29:
	adrp	x1, l_.str.9@PAGE
Lloh30:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_xkb_keymap_mod_get_index
	lsl	w8, w19, w0
	str	w8, [x23, #12]
	ldr	x0, [x23, #24]
Lloh31:
	adrp	x1, l_.str.10@PAGE
Lloh32:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_xkb_keymap_mod_get_index
	lsl	w8, w19, w0
	str	w8, [x23, #16]
	ldr	x0, [x23, #24]
Lloh33:
	adrp	x1, l_.str.11@PAGE
Lloh34:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_xkb_keymap_mod_get_index
	lsl	w8, w19, w0
	str	w8, [x23, #20]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_close
LBB0_9:
Lloh35:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
Lloh38:
	adrp	x1, l_.str@PAGE
Lloh39:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	__glfwInputError
LBB0_10:
Lloh40:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh41:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
Lloh43:
	adrp	x1, l_.str.1@PAGE
Lloh44:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	__glfwInputError
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_xkb_keymap_unref
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_WL_KEYBOARD_KEYMAP_FORMAT_XKB_V1,8,3 ; @WL_KEYBOARD_KEYMAP_FORMAT_XKB_V1
	.comm	_PROT_READ,4,2                  ; @PROT_READ
	.comm	_MAP_SHARED,4,2                 ; @MAP_SHARED
	.comm	_MAP_FAILED,8,3                 ; @MAP_FAILED
	.comm	__glfw,56,3                     ; @_glfw
	.comm	_XKB_KEYMAP_FORMAT_TEXT_V1,4,2  ; @XKB_KEYMAP_FORMAT_TEXT_V1
	.comm	_GLFW_PLATFORM_ERROR,4,2        ; @GLFW_PLATFORM_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Wayland: Failed to compile keymap"

l_.str.1:                               ; @.str.1
	.asciz	"Wayland: Failed to create XKB state"

l_.str.2:                               ; @.str.2
	.asciz	"LC_ALL"

l_.str.3:                               ; @.str.3
	.asciz	"LC_CTYPE"

l_.str.4:                               ; @.str.4
	.asciz	"LANG"

l_.str.6:                               ; @.str.6
	.asciz	"Control"

l_.str.7:                               ; @.str.7
	.asciz	"Mod1"

l_.str.8:                               ; @.str.8
	.asciz	"Shift"

l_.str.9:                               ; @.str.9
	.asciz	"Mod4"

l_.str.10:                              ; @.str.10
	.asciz	"Lock"

l_.str.11:                              ; @.str.11
	.asciz	"Mod2"

	.comm	_XKB_COMPOSE_COMPILE_NO_FLAGS,4,2 ; @XKB_COMPOSE_COMPILE_NO_FLAGS
	.comm	_XKB_COMPOSE_STATE_NO_FLAGS,4,2 ; @XKB_COMPOSE_STATE_NO_FLAGS
	.no_dead_strip	_keyboardHandleKeymap
.subsections_via_symbols
