	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kbd_start
_kbd_start:                             ## @kbd_start
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_ledstate@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ebx
	movq	_keyboard_tasklet@GOTPCREL(%rip), %rdi
	callq	_tasklet_disable
	cmpl	$255, %ebx
	je	LBB0_2
## %bb.1:
	movq	_EV_LED@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_LED_SCROLLL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %ecx
	andl	$1, %ecx
	movq	%r14, %rdi
	callq	_input_inject_event
	movl	(%r15), %esi
	movq	_LED_NUML@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %ecx
	shrl	%ecx
	andl	$1, %ecx
	movq	%r14, %rdi
	callq	_input_inject_event
	movl	(%r15), %esi
	movq	_LED_CAPSL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shrl	$2, %ebx
	andl	$1, %ebx
	movq	%r14, %rdi
	movl	%ebx, %ecx
	callq	_input_inject_event
	movq	_EV_SYN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SYN_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_input_inject_event
LBB0_2:
	movq	_keyboard_tasklet@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tasklet_enable                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ledstate,1,0                   ## @ledstate
	.comm	_keyboard_tasklet,4,2           ## @keyboard_tasklet
	.comm	_EV_LED,4,2                     ## @EV_LED
	.comm	_LED_SCROLLL,4,2                ## @LED_SCROLLL
	.comm	_LED_NUML,4,2                   ## @LED_NUML
	.comm	_LED_CAPSL,4,2                  ## @LED_CAPSL
	.comm	_EV_SYN,4,2                     ## @EV_SYN
	.comm	_SYN_REPORT,4,2                 ## @SYN_REPORT
	.no_dead_strip	_kbd_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kbd_start
_kbd_start:                             ; @kbd_start
	.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, x0
Lloh0:
	adrp	x8, _ledstate@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ledstate@GOTPAGEOFF]
	ldrb	w20, [x8]
Lloh2:
	adrp	x0, _keyboard_tasklet@GOTPAGE
Lloh3:
	ldr	x0, [x0, _keyboard_tasklet@GOTPAGEOFF]
	bl	_tasklet_disable
	cmp	w20, #255
	b.eq	LBB0_2
; %bb.1:
Lloh4:
	adrp	x21, _EV_LED@GOTPAGE
Lloh5:
	ldr	x21, [x21, _EV_LED@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh6:
	adrp	x8, _LED_SCROLLL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LED_SCROLLL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	and	w3, w20, #0x1
	mov	x0, x19
	bl	_input_inject_event
	ldr	w1, [x21]
Lloh9:
	adrp	x8, _LED_NUML@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LED_NUML@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	ubfx	w3, w20, #1, #1
	mov	x0, x19
	bl	_input_inject_event
	ldr	w1, [x21]
Lloh12:
	adrp	x8, _LED_CAPSL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LED_CAPSL@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	ubfx	w3, w20, #2, #1
	mov	x0, x19
	bl	_input_inject_event
Lloh15:
	adrp	x8, _EV_SYN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EV_SYN@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _SYN_REPORT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SYN_REPORT@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_input_inject_event
LBB0_2:
Lloh21:
	adrp	x0, _keyboard_tasklet@GOTPAGE
Lloh22:
	ldr	x0, [x0, _keyboard_tasklet@GOTPAGEOFF]
	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	_tasklet_enable
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ledstate,1,0                   ; @ledstate
	.comm	_keyboard_tasklet,4,2           ; @keyboard_tasklet
	.comm	_EV_LED,4,2                     ; @EV_LED
	.comm	_LED_SCROLLL,4,2                ; @LED_SCROLLL
	.comm	_LED_NUML,4,2                   ; @LED_NUML
	.comm	_LED_CAPSL,4,2                  ; @LED_CAPSL
	.comm	_EV_SYN,4,2                     ; @EV_SYN
	.comm	_SYN_REPORT,4,2                 ; @SYN_REPORT
	.no_dead_strip	_kbd_start
.subsections_via_symbols
