	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%esi, %esi
	js	LBB0_1
## %bb.2:
	movl	%edx, %r13d
	testl	%edx, %edx
	js	LBB0_1
## %bb.3:
	movq	_KEY_MAX@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jl	LBB0_1
## %bb.4:
	movl	%esi, %ebx
	movq	%rdi, %r15
	leaq	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	*(%r15)
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.5:
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r13d, %edx
	callq	*8(%r15)
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_6
LBB0_11:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_12
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_12:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_EV_KEY@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	40(%r15), %esi
	callq	_test_bit
	xorl	%r12d, %r12d
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movl	-44(%rbp), %edi
	movl	36(%r15), %esi
	movq	_KEY_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_is_event_supported
	testl	%eax, %eax
	jne	LBB0_11
## %bb.8:
	movl	-44(%rbp), %edi
	movl	32(%r15), %esi
	callq	___test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movl	(%rbx), %esi
	movl	-44(%rbp), %edx
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_input_pass_event
	cmpq	$0, 24(%r15)
	je	LBB0_11
## %bb.10:
	movq	_EV_SYN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SYN_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$1, %ecx
	callq	_input_pass_event
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_KEY_MAX,4,2                    ## @KEY_MAX
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_EV_SYN,4,2                     ## @EV_SYN
	.comm	_SYN_REPORT,4,2                 ## @SYN_REPORT
.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, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	tbnz	w1, #31, LBB0_12
; %bb.1:
	mov	x21, x2
	tbnz	w2, #31, LBB0_12
; %bb.2:
Lloh0:
	adrp	x24, _KEY_MAX@GOTPAGE
Lloh1:
	ldr	x24, [x24, _KEY_MAX@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, w21
	b.lt	LBB0_12
; %bb.3:
	mov	x22, x1
	mov	x20, x0
	add	x19, x0, #16
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x20]
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x22
	blr	x8
	mov	x23, x0
	cbnz	w0, LBB0_11
; %bb.4:
	ldr	x8, [x20, #8]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	blr	x8
	mov	x23, x0
	cbnz	w0, LBB0_11
; %bb.5:
Lloh2:
	adrp	x21, _EV_KEY@GOTPAGE
Lloh3:
	ldr	x21, [x21, _EV_KEY@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	w1, [x20, #40]
	bl	_test_bit
	cbz	x0, LBB0_10
; %bb.6:
	ldr	w0, [sp, #12]
	ldr	w1, [x20, #36]
	ldr	w2, [x24]
	bl	_is_event_supported
	cbnz	w0, LBB0_10
; %bb.7:
	ldr	w0, [sp, #12]
	ldr	w1, [x20, #32]
	bl	___test_and_clear_bit
	cbz	x0, LBB0_10
; %bb.8:
	ldr	w1, [x21]
	ldr	w2, [sp, #12]
	mov	x0, x20
	mov	w3, #0
	bl	_input_pass_event
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_10
; %bb.9:
Lloh4:
	adrp	x8, _EV_SYN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EV_SYN@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _SYN_REPORT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SYN_REPORT@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #1
	bl	_input_pass_event
LBB0_10:
	mov	w23, #0
LBB0_11:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	b	LBB0_13
LBB0_12:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_13:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_KEY_MAX,4,2                    ; @KEY_MAX
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_EV_SYN,4,2                     ; @EV_SYN
	.comm	_SYN_REPORT,4,2                 ; @SYN_REPORT
.subsections_via_symbols
