	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_keymap                    ## -- Begin function load_keymap
	.p2align	4, 0x90
_load_keymap:                           ## @load_keymap
	.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	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_xkb_context@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_2
## %bb.1:
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_xkb_context_new
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_11
LBB0_2:
	movq	_xkb_supported@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.3:
	movq	_conn@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_xkb_x11_get_core_keyboard_device_id
	testl	%eax, %eax
	js	LBB0_6
## %bb.4:
	movq	(%rbx), %rdi
	movl	(%r14), %esi
	xorl	%r14d, %r14d
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_xkb_x11_keymap_new_from_device
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_9
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_12
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	callq	_LOG
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movaps	%xmm0, -64(%rbp)
	movq	$0, -32(%rbp)
	leaq	-64(%rbp), %rdi
	callq	_fill_rmlvo_from_root
	cmpl	$-1, %eax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.3(%rip), %rdi
	callq	_ELOG
LBB0_8:
	movq	(%rbx), %rdi
	leaq	-64(%rbp), %rsi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	callq	_xkb_keymap_new_from_names
	movq	%rax, %rbx
	movq	-32(%rbp), %rdi
	callq	_free
	movq	-40(%rbp), %rdi
	callq	_free
	movq	-48(%rbp), %rdi
	callq	_free
	movq	-56(%rbp), %rdi
	callq	_free
	movq	-64(%rbp), %rdi
	callq	_free
	testq	%rbx, %rbx
	je	LBB0_10
LBB0_9:
	movq	_xkb_keymap@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_xkb_keymap_unref
	movq	%rbx, (%r14)
	movl	$1, %r14d
	jmp	LBB0_13
LBB0_10:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_12
LBB0_11:
	leaq	L_.str(%rip), %rdi
LBB0_12:
	callq	_ELOG
LBB0_13:
	movl	%r14d, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_xkb_context,8,3                ## @xkb_context
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not create xkbcommon context\n"

	.comm	_xkb_supported,8,3              ## @xkb_supported
	.comm	_conn,4,2                       ## @conn
L_.str.1:                               ## @.str.1
	.asciz	"xkb_x11_keymap_new_from_device failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"No XKB / core keyboard device? Assembling keymap from local RMLVO.\n"

L_.str.3:                               ## @.str.3
	.asciz	"Could not get _XKB_RULES_NAMES atom from root window, falling back to defaults.\n"

L_.str.4:                               ## @.str.4
	.asciz	"xkb_keymap_new_from_names failed\n"

	.comm	_xkb_keymap,8,3                 ## @xkb_keymap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_keymap                    ; -- Begin function load_keymap
	.p2align	2
_load_keymap:                           ; @load_keymap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _xkb_context@GOTPAGE
Lloh1:
	ldr	x19, [x19, _xkb_context@GOTPAGEOFF]
	ldr	x8, [x19]
	cbnz	x8, LBB0_2
; %bb.1:
	mov	w0, #0
	bl	_xkb_context_new
	str	x0, [x19]
	cbz	x0, LBB0_11
LBB0_2:
Lloh2:
	adrp	x8, _xkb_supported@GOTPAGE
Lloh3:
	ldr	x8, [x8, _xkb_supported@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.3:
Lloh5:
	adrp	x20, _conn@GOTPAGE
Lloh6:
	ldr	x20, [x20, _conn@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_xkb_x11_get_core_keyboard_device_id
	tbnz	w0, #31, LBB0_6
; %bb.4:
	mov	x2, x0
	ldr	x0, [x19]
	ldr	w1, [x20]
	mov	w3, #0
	bl	_xkb_x11_keymap_new_from_device
	mov	x19, x0
	cbnz	x0, LBB0_9
; %bb.5:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_6:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_LOG
	str	xzr, [sp, #32]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp]
	mov	x0, sp
	bl	_fill_rmlvo_from_root
	cmn	w0, #1
	b.ne	LBB0_8
; %bb.7:
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_ELOG
LBB0_8:
	ldr	x0, [x19]
	mov	x1, sp
	mov	w2, #0
	bl	_xkb_keymap_new_from_names
	mov	x19, x0
	ldr	x0, [sp, #32]
	bl	_free
	ldr	x0, [sp, #24]
	bl	_free
	ldr	x0, [sp, #16]
	bl	_free
	ldr	x0, [sp, #8]
	bl	_free
	ldr	x0, [sp]
	bl	_free
	cbz	x19, LBB0_10
LBB0_9:
Lloh13:
	adrp	x20, _xkb_keymap@GOTPAGE
Lloh14:
	ldr	x20, [x20, _xkb_keymap@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_xkb_keymap_unref
	str	x19, [x20]
	mov	w0, #1
	b	LBB0_13
LBB0_10:
Lloh15:
	adrp	x0, l_.str.4@PAGE
Lloh16:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
LBB0_12:
	bl	_ELOG
	mov	w0, #0
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_xkb_context,8,3                ; @xkb_context
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not create xkbcommon context\n"

	.comm	_xkb_supported,8,3              ; @xkb_supported
	.comm	_conn,4,2                       ; @conn
l_.str.1:                               ; @.str.1
	.asciz	"xkb_x11_keymap_new_from_device failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"No XKB / core keyboard device? Assembling keymap from local RMLVO.\n"

l_.str.3:                               ; @.str.3
	.asciz	"Could not get _XKB_RULES_NAMES atom from root window, falling back to defaults.\n"

l_.str.4:                               ; @.str.4
	.asciz	"xkb_keymap_new_from_names failed\n"

	.comm	_xkb_keymap,8,3                 ; @xkb_keymap
.subsections_via_symbols
