	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function register_xkb_keyevents
_register_xkb_keyevents:                ## @register_xkb_keyevents
	.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	_conn@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_xcb_xkb_id@GOTPCREL(%rip), %rsi
	callq	_xcb_get_extension_data
	cmpl	$0, 4(%rax)
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rdi
	callq	_DLOG
	movl	(%r14), %edi
	movq	_XCB_XKB_MAJOR_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_XCB_XKB_MINOR_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_xcb_xkb_use_extension
	movl	(%r14), %edi
	movq	_XCB_XKB_ID_USE_CORE_KBD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_XCB_XKB_EVENT_TYPE_STATE_NOTIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	movl	%edx, %r8d
	movl	$255, %r9d
	pushq	$0
	pushq	$255
	callq	_xcb_xkb_select_events
	addq	$16, %rsp
	movl	(%rbx), %eax
	movq	_xkb_base@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_ELOG
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_conn,4,2                       ## @conn
	.comm	_xcb_xkb_id,4,2                 ## @xcb_xkb_id
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"xkb is not present on this server\n"

	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
L_.str.1:                               ## @.str.1
	.asciz	"initializing xcb-xkb\n"

	.comm	_XCB_XKB_MAJOR_VERSION,4,2      ## @XCB_XKB_MAJOR_VERSION
	.comm	_XCB_XKB_MINOR_VERSION,4,2      ## @XCB_XKB_MINOR_VERSION
	.comm	_XCB_XKB_ID_USE_CORE_KBD,4,2    ## @XCB_XKB_ID_USE_CORE_KBD
	.comm	_XCB_XKB_EVENT_TYPE_STATE_NOTIFY,4,2 ## @XCB_XKB_EVENT_TYPE_STATE_NOTIFY
	.comm	_xkb_base,4,2                   ## @xkb_base
	.no_dead_strip	_register_xkb_keyevents
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function register_xkb_keyevents
_register_xkb_keyevents:                ; @register_xkb_keyevents
	.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	x20, _conn@GOTPAGE
Lloh1:
	ldr	x20, [x20, _conn@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x1, _xcb_xkb_id@GOTPAGE
Lloh3:
	ldr	x1, [x1, _xcb_xkb_id@GOTPAGEOFF]
	bl	_xcb_get_extension_data
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DLOG
	ldr	w0, [x20]
Lloh6:
	adrp	x8, _XCB_XKB_MAJOR_VERSION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XCB_XKB_MAJOR_VERSION@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _XCB_XKB_MINOR_VERSION@GOTPAGE
Lloh10:
	ldr	x8, [x8, _XCB_XKB_MINOR_VERSION@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	bl	_xcb_xkb_use_extension
	ldr	w0, [x20]
Lloh12:
	adrp	x8, _XCB_XKB_ID_USE_CORE_KBD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _XCB_XKB_ID_USE_CORE_KBD@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _XCB_XKB_EVENT_TYPE_STATE_NOTIFY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _XCB_XKB_EVENT_TYPE_STATE_NOTIFY@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	w3, #0
	mov	x4, x2
	mov	w5, #255
	mov	w6, #255
	mov	x7, #0
	bl	_xcb_xkb_select_events
	ldr	w8, [x19]
Lloh18:
	adrp	x9, _xkb_base@GOTPAGE
Lloh19:
	ldr	x9, [x9, _xkb_base@GOTPAGEOFF]
Lloh20:
	str	w8, [x9]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ELOG
Lloh23:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_conn,4,2                       ; @conn
	.comm	_xcb_xkb_id,4,2                 ; @xcb_xkb_id
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"xkb is not present on this server\n"

	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
l_.str.1:                               ; @.str.1
	.asciz	"initializing xcb-xkb\n"

	.comm	_XCB_XKB_MAJOR_VERSION,4,2      ; @XCB_XKB_MAJOR_VERSION
	.comm	_XCB_XKB_MINOR_VERSION,4,2      ; @XCB_XKB_MINOR_VERSION
	.comm	_XCB_XKB_ID_USE_CORE_KBD,4,2    ; @XCB_XKB_ID_USE_CORE_KBD
	.comm	_XCB_XKB_EVENT_TYPE_STATE_NOTIFY,4,2 ; @XCB_XKB_EVENT_TYPE_STATE_NOTIFY
	.comm	_xkb_base,4,2                   ; @xkb_base
	.no_dead_strip	_register_xkb_keyevents
.subsections_via_symbols
