	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_keycode_if_matches
_add_keycode_if_matches:                ## @add_keycode_if_matches
	.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
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movq	32(%rdx), %rdi
	movq	40(%rdx), %r15
	callq	_xkb_state_key_get_one_sym
	cmpq	(%rbx), %rax
	jne	LBB0_1
LBB0_6:
	movq	8(%rbx), %r12
	movl	(%r12), %esi
	movl	%r14d, %edi
	callq	_ADD_TRANSLATED_KEY
	movq	_XCB_MOD_MASK_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%r12), %esi
	movl	%r14d, %edi
	callq	_ADD_TRANSLATED_KEY
	movl	(%r12), %eax
	movq	_xcb_numlock_mask@GOTPCREL(%rip), %r13
	notl	%eax
	testl	%eax, (%r13)
	je	LBB0_9
## %bb.7:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_xkb_state_key_get_one_sym
	cmpq	(%rbx), %rax
	jne	LBB0_8
## %bb.10:
	movl	(%r13), %esi
	orl	(%r12), %esi
	movl	%r14d, %edi
	callq	_ADD_TRANSLATED_KEY
	movl	(%r13), %esi
	orl	(%r12), %esi
	movq	_XCB_MOD_MASK_LOCK@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	%r14d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ADD_TRANSLATED_KEY             ## TAILCALL
LBB0_1:
	movq	%rax, %r12
	movq	32(%rbx), %rdi
	movl	%r14d, %esi
	callq	_xkb_state_key_get_layout
	movq	_XKB_LAYOUT_INVALID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.2:
	movq	32(%rbx), %rdi
	movl	%r14d, %esi
	movq	%rax, %rdx
	callq	_xkb_state_key_get_level
	cmpl	$1, %eax
	jg	LBB0_9
## %bb.3:
	movq	_XKB_KEY_KP_Space@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jl	LBB0_5
## %bb.4:
	movq	_XKB_KEY_KP_Equal@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jle	LBB0_9
LBB0_5:
	movq	16(%rbx), %rdi
	movq	24(%rbx), %r15
	movl	%r14d, %esi
	callq	_xkb_state_key_get_one_sym
	cmpq	(%rbx), %rax
	je	LBB0_6
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movq	%rax, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DLOG                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_XKB_LAYOUT_INVALID,8,3         ## @XKB_LAYOUT_INVALID
	.comm	_XKB_KEY_KP_Space,8,3           ## @XKB_KEY_KP_Space
	.comm	_XKB_KEY_KP_Equal,8,3           ## @XKB_KEY_KP_Equal
	.comm	_XCB_MOD_MASK_LOCK,4,2          ## @XCB_MOD_MASK_LOCK
	.comm	_xcb_numlock_mask,4,2           ## @xcb_numlock_mask
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Skipping automatic numlock fallback, key %d resolves to 0x%x with numlock\n"

	.no_dead_strip	_add_keycode_if_matches
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_keycode_if_matches
_add_keycode_if_matches:                ; @add_keycode_if_matches
	.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, x2
	mov	x19, x1
	ldp	x0, x21, [x2, #32]
	bl	_xkb_state_key_get_one_sym
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_4
LBB0_1:
	ldr	x22, [x20, #8]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_ADD_TRANSLATED_KEY
	ldr	w8, [x22]
Lloh0:
	adrp	x23, _XCB_MOD_MASK_LOCK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _XCB_MOD_MASK_LOCK@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_ADD_TRANSLATED_KEY
	ldr	w8, [x22]
Lloh2:
	adrp	x24, _xcb_numlock_mask@GOTPAGE
Lloh3:
	ldr	x24, [x24, _xcb_numlock_mask@GOTPAGEOFF]
	ldr	w9, [x24]
	bics	wzr, w9, w8
	b.eq	LBB0_8
; %bb.2:
	mov	x0, x21
	mov	x1, x19
	bl	_xkb_state_key_get_one_sym
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.3:
	ldr	w8, [x22]
	ldr	w9, [x24]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_ADD_TRANSLATED_KEY
	ldr	w8, [x22]
	ldr	w9, [x24]
	orr	w8, w9, w8
	ldr	w9, [x23]
	orr	w1, w8, w9
	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	_ADD_TRANSLATED_KEY
LBB0_4:
	mov	x22, x0
	ldr	x0, [x20, #32]
	mov	x1, x19
	bl	_xkb_state_key_get_layout
Lloh4:
	adrp	x8, _XKB_LAYOUT_INVALID@GOTPAGE
Lloh5:
	ldr	x8, [x8, _XKB_LAYOUT_INVALID@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_8
; %bb.5:
	mov	x2, x0
	ldr	x0, [x20, #32]
	mov	x1, x19
	bl	_xkb_state_key_get_level
	cmp	w0, #1
	b.gt	LBB0_8
; %bb.6:
Lloh7:
	adrp	x8, _XKB_KEY_KP_Space@GOTPAGE
Lloh8:
	ldr	x8, [x8, _XKB_KEY_KP_Space@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
Lloh10:
	adrp	x9, _XKB_KEY_KP_Equal@GOTPAGE
Lloh11:
	ldr	x9, [x9, _XKB_KEY_KP_Equal@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x22, x8
	ccmp	x22, x9, #0, ge
	b.le	LBB0_8
; %bb.7:
	ldp	x0, x21, [x20, #16]
	mov	x1, x19
	bl	_xkb_state_key_get_one_sym
	ldr	x8, [x20]
	cmp	x0, x8
	b.eq	LBB0_1
LBB0_8:
	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_9:
	mov	x2, x0
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, 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	_DLOG
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_XKB_LAYOUT_INVALID,8,3         ; @XKB_LAYOUT_INVALID
	.comm	_XKB_KEY_KP_Space,8,3           ; @XKB_KEY_KP_Space
	.comm	_XKB_KEY_KP_Equal,8,3           ; @XKB_KEY_KP_Equal
	.comm	_XCB_MOD_MASK_LOCK,4,2          ; @XCB_MOD_MASK_LOCK
	.comm	_xcb_numlock_mask,4,2           ; @xcb_numlock_mask
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Skipping automatic numlock fallback, key %d resolves to 0x%x with numlock\n"

	.no_dead_strip	_add_keycode_if_matches
.subsections_via_symbols
