	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_mapping_notify
_handle_mapping_notify:                 ## @handle_mapping_notify
	.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	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_XCB_MAPPING_KEYBOARD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	movq	_XCB_MAPPING_MODIFIER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_DLOG
	movq	_keysyms@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_xcb_refresh_keyboard_mapping
	movq	_XCB_NUM_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	callq	_aio_get_mod_mask_for
	movq	_xcb_numlock_mask@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_conn@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_ungrab_all_keys
	xorl	%eax, %eax
	callq	_translate_keysyms
	movl	(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_grab_all_keys                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_XCB_MAPPING_KEYBOARD,8,3       ## @XCB_MAPPING_KEYBOARD
	.comm	_XCB_MAPPING_MODIFIER,8,3       ## @XCB_MAPPING_MODIFIER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Received mapping_notify for keyboard or modifier mapping, re-grabbing keys\n"

	.comm	_keysyms,4,2                    ## @keysyms
	.comm	_XCB_NUM_LOCK,4,2               ## @XCB_NUM_LOCK
	.comm	_xcb_numlock_mask,4,2           ## @xcb_numlock_mask
	.comm	_conn,4,2                       ## @conn
	.no_dead_strip	_handle_mapping_notify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_mapping_notify
_handle_mapping_notify:                 ; @handle_mapping_notify
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _XCB_MAPPING_KEYBOARD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XCB_MAPPING_KEYBOARD@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _XCB_MAPPING_MODIFIER@GOTPAGE
Lloh4:
	ldr	x10, [x10, _XCB_MAPPING_MODIFIER@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	x19, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DLOG
Lloh8:
	adrp	x20, _keysyms@GOTPAGE
Lloh9:
	ldr	x20, [x20, _keysyms@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	x1, x19
	bl	_xcb_refresh_keyboard_mapping
Lloh10:
	adrp	x8, _XCB_NUM_LOCK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _XCB_NUM_LOCK@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_aio_get_mod_mask_for
Lloh13:
	adrp	x8, _xcb_numlock_mask@GOTPAGE
Lloh14:
	ldr	x8, [x8, _xcb_numlock_mask@GOTPAGEOFF]
Lloh15:
	str	w0, [x8]
Lloh16:
	adrp	x19, _conn@GOTPAGE
Lloh17:
	ldr	x19, [x19, _conn@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_ungrab_all_keys
	bl	_translate_keysyms
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_grab_all_keys
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_XCB_MAPPING_KEYBOARD,8,3       ; @XCB_MAPPING_KEYBOARD
	.comm	_XCB_MAPPING_MODIFIER,8,3       ; @XCB_MAPPING_MODIFIER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Received mapping_notify for keyboard or modifier mapping, re-grabbing keys\n"

	.comm	_keysyms,4,2                    ; @keysyms
	.comm	_XCB_NUM_LOCK,4,2               ; @XCB_NUM_LOCK
	.comm	_xcb_numlock_mask,4,2           ; @xcb_numlock_mask
	.comm	_conn,4,2                       ; @conn
	.no_dead_strip	_handle_mapping_notify
.subsections_via_symbols
