	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_input_set_keycode              ## -- Begin function input_set_keycode
	.p2align	4, 0x90
_input_set_keycode:                     ## @input_set_keycode
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rsi), %rax
	movq	_KEY_MAX@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jle	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_2:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	8(%rdi), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	leaq	-84(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	*(%r14)
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
LBB0_7:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_KEY_RESERVED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%r14), %esi
	callq	___clear_bit
	movq	_EV_KEY@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movl	20(%r14), %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movl	-84(%rbp), %edi
	movl	16(%r14), %esi
	movq	(%r12), %rdx
	callq	_is_event_supported
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movl	-84(%rbp), %edi
	movl	12(%r14), %esi
	callq	___test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	(%r13), %eax
	movl	%eax, -80(%rbp)
	movl	-84(%rbp), %eax
	movl	%eax, -76(%rbp)
	movl	$0, -72(%rbp)
	movq	_input_value_sync@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, -68(%rbp)
	movl	8(%rax), %eax
	movl	%eax, -60(%rbp)
	leaq	-80(%rbp), %r12
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_input_pass_values
	jmp	LBB0_7
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_KEY_MAX,8,3                    ## @KEY_MAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_KEY_RESERVED,4,2               ## @KEY_RESERVED
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_input_value_sync,12,2          ## @input_value_sync
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_input_set_keycode              ; -- Begin function input_set_keycode
	.p2align	2
_input_set_keycode:                     ; @input_set_keycode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x8, [x1]
Lloh3:
	adrp	x22, _KEY_MAX@GOTPAGE
Lloh4:
	ldr	x22, [x22, _KEY_MAX@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.le	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_4
LBB0_2:
	mov	x20, x1
	mov	x19, x0
	add	x21, x0, #8
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	x8, [x19]
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x20
	blr	x8
	mov	x20, x0
	cbz	w0, LBB0_6
LBB0_3:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
LBB0_4:
	ldr	x8, [sp, #40]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.5:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_6:
Lloh11:
	adrp	x8, _KEY_RESERVED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _KEY_RESERVED@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	w1, [x19, #16]
	bl	___clear_bit
Lloh14:
	adrp	x23, _EV_KEY@GOTPAGE
Lloh15:
	ldr	x23, [x23, _EV_KEY@GOTPAGEOFF]
	ldr	w0, [x23]
	ldr	w1, [x19, #20]
	bl	_test_bit
	cbz	x0, LBB0_3
; %bb.7:
	ldr	w0, [sp, #12]
	ldr	w1, [x19, #16]
	ldr	x2, [x22]
	bl	_is_event_supported
	cbnz	w0, LBB0_3
; %bb.8:
	ldr	w0, [sp, #12]
	ldr	w1, [x19, #12]
	bl	___test_and_clear_bit
	cbz	x0, LBB0_3
; %bb.9:
	ldr	w8, [x23]
	ldr	w9, [sp, #12]
	stp	w8, w9, [sp, #16]
	str	wzr, [sp, #24]
Lloh16:
	adrp	x8, _input_value_sync@GOTPAGE
Lloh17:
	ldr	x8, [x8, _input_value_sync@GOTPAGEOFF]
	ldr	x9, [x8]
	stur	x9, [sp, #28]
	ldr	w8, [x8, #8]
	str	w8, [sp, #36]
	add	x0, sp, #16
	bl	_ARRAY_SIZE
	mov	x2, x0
	add	x1, sp, #16
	mov	x0, x19
	bl	_input_pass_values
	b	LBB0_3
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_KEY_MAX,8,3                    ; @KEY_MAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_KEY_RESERVED,4,2               ; @KEY_RESERVED
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_input_value_sync,12,2          ; @input_value_sync
.subsections_via_symbols
