	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kbd_event
_kbd_event:                             ## @kbd_event
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	_EV_MSC@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_4
## %bb.1:
	movq	_MSC_RAW@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_4
## %bb.2:
	movl	(%r12), %edi
	callq	_HW_RAW
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	%r14d, %edi
	callq	_kbd_rawcode
LBB0_4:
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_6
## %bb.5:
	movl	(%r12), %edi
	callq	_HW_RAW
	movl	%r15d, %edi
	movl	%r14d, %esi
	movq	%rax, %rdx
	callq	_kbd_keycode
LBB0_6:
	movq	_keyboard_tasklet@GOTPCREL(%rip), %rdi
	callq	_tasklet_schedule
	movq	_do_poke_blanked_console@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_schedule_console_callback      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EV_MSC,4,2                     ## @EV_MSC
	.comm	_MSC_RAW,4,2                    ## @MSC_RAW
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_keyboard_tasklet,4,2           ## @keyboard_tasklet
	.comm	_do_poke_blanked_console,4,2    ## @do_poke_blanked_console
	.no_dead_strip	_kbd_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kbd_event
_kbd_event:                             ; @kbd_event
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _EV_MSC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EV_MSC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MSC_RAW@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MSC_RAW@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w1
	ccmp	w9, w2, #0, eq
	b.ne	LBB0_3
; %bb.1:
	ldr	w0, [x21]
	bl	_HW_RAW
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_kbd_rawcode
LBB0_3:
Lloh6:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_5
; %bb.4:
	ldr	w0, [x21]
	bl	_HW_RAW
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	bl	_kbd_keycode
LBB0_5:
Lloh9:
	adrp	x0, _keyboard_tasklet@GOTPAGE
Lloh10:
	ldr	x0, [x0, _keyboard_tasklet@GOTPAGEOFF]
	bl	_tasklet_schedule
Lloh11:
	adrp	x8, _do_poke_blanked_console@GOTPAGE
Lloh12:
	ldr	x8, [x8, _do_poke_blanked_console@GOTPAGEOFF]
	mov	w9, #1
Lloh13:
	str	w9, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_schedule_console_callback
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_MSC,4,2                     ; @EV_MSC
	.comm	_MSC_RAW,4,2                    ; @MSC_RAW
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_keyboard_tasklet,4,2           ; @keyboard_tasklet
	.comm	_do_poke_blanked_console,4,2    ; @do_poke_blanked_console
	.no_dead_strip	_kbd_event
.subsections_via_symbols
