	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parkbd_interrupt
_parkbd_interrupt:                      ## @parkbd_interrupt
	.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	_parkbd_writing@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	movq	_parkbd_counter@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	je	LBB0_7
## %bb.1:
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$11, %eax
	je	LBB0_13
## %bb.3:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_parkbd_last@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	imulq	$1374389535, %rcx, %rcx         ## imm = 0x51EB851F
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$37, %rcx
	addl	%edx, %ecx
	movslq	%ecx, %rsi
	addq	(%rax), %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_4
LBB0_13:
	movl	$0, (%rbx)
	movq	_parkbd_buffer@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	$0, (%r14)
	movl	$3, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_parkbd_writelines              ## TAILCALL
LBB0_7:
	movq	_parkbd_mode@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	addl	$10, %ecx
	cmpl	%ecx, %eax
	je	LBB0_9
## %bb.8:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_parkbd_last@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	imulq	$1374389535, %rcx, %rcx         ## imm = 0x51EB851F
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$37, %rcx
	addl	%edx, %ecx
	movslq	%ecx, %rsi
	addq	(%rax), %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_10
LBB0_9:
	movl	$0, (%rbx)
	movq	_parkbd_buffer@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
LBB0_10:
	xorl	%eax, %eax
	callq	_parkbd_readlines
	sarl	%eax
	movl	(%rbx), %ecx
	leal	1(%rcx), %edx
	shll	%cl, %eax
	movl	%edx, (%rbx)
	movq	_parkbd_buffer@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movl	%eax, (%rdx)
	movl	(%r14), %edx
	leal	9(%rdx), %esi
	cmpl	%esi, %ecx
	jne	LBB0_12
## %bb.11:
	movq	_parkbd_port@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movb	$2, %cl
	subb	%dl, %cl
	sarl	%cl, %eax
	movzbl	%al, %esi
	xorl	%edx, %edx
	callq	_serio_interrupt
	jmp	LBB0_12
LBB0_4:
	movl	(%rbx), %eax
LBB0_5:
	movq	_parkbd_buffer@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	leal	1(%rax), %edx
	movl	%edx, (%rbx)
	xorl	%edi, %edi
	btl	%eax, %ecx
	setb	%dil
	orl	$2, %edi
	callq	_parkbd_writelines
	cmpl	$11, (%rbx)
	jne	LBB0_12
## %bb.6:
	movl	$0, (%rbx)
	movl	$0, (%r15)
	movq	$0, (%r14)
	movl	$3, %edi
	callq	_parkbd_writelines
LBB0_12:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_parkbd_last@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_parkbd_writing,8,3             ## @parkbd_writing
	.comm	_parkbd_counter,4,2             ## @parkbd_counter
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_parkbd_last,8,3                ## @parkbd_last
	.comm	_HZ,4,2                         ## @HZ
	.comm	_parkbd_buffer,4,2              ## @parkbd_buffer
	.comm	_parkbd_mode,4,2                ## @parkbd_mode
	.comm	_parkbd_port,4,2                ## @parkbd_port
	.no_dead_strip	_parkbd_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parkbd_interrupt
_parkbd_interrupt:                      ; @parkbd_interrupt
	.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
Lloh0:
	adrp	x20, _parkbd_writing@GOTPAGE
Lloh1:
	ldr	x20, [x20, _parkbd_writing@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh2:
	adrp	x19, _parkbd_counter@GOTPAGE
Lloh3:
	ldr	x19, [x19, _parkbd_counter@GOTPAGEOFF]
	ldr	w8, [x19]
	cbz	x9, LBB0_5
; %bb.1:
	cbz	w8, LBB0_11
; %bb.2:
	cmp	w8, #11
	b.eq	LBB0_4
; %bb.3:
Lloh4:
	adrp	x8, _jiffies@GOTPAGE
Lloh5:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh6:
	ldr	x0, [x8]
Lloh7:
	adrp	x8, _parkbd_last@GOTPAGE
Lloh8:
	ldr	x8, [x8, _parkbd_last@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
Lloh10:
	adrp	x9, _HZ@GOTPAGE
Lloh11:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh12:
	ldrsw	x9, [x9]
	mov	w10, #34079
	movk	w10, #20971, lsl #16
	mul	x9, x9, x10
	lsr	x10, x9, #63
	asr	x9, x9, #37
	add	w9, w9, w10
	add	x1, x8, w9, sxtw
	bl	_time_after
	cbz	x0, LBB0_10
LBB0_4:
	str	wzr, [x19]
Lloh13:
	adrp	x8, _parkbd_buffer@GOTPAGE
Lloh14:
	ldr	x8, [x8, _parkbd_buffer@GOTPAGEOFF]
Lloh15:
	str	wzr, [x8]
	str	xzr, [x20]
	mov	w0, #3
	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	_parkbd_writelines
LBB0_5:
Lloh16:
	adrp	x20, _parkbd_mode@GOTPAGE
Lloh17:
	ldr	x20, [x20, _parkbd_mode@GOTPAGEOFF]
	ldr	w9, [x20]
	add	w9, w9, #10
	cmp	w8, w9
	b.eq	LBB0_7
; %bb.6:
Lloh18:
	adrp	x8, _jiffies@GOTPAGE
Lloh19:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh20:
	ldr	x0, [x8]
Lloh21:
	adrp	x8, _parkbd_last@GOTPAGE
Lloh22:
	ldr	x8, [x8, _parkbd_last@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
Lloh24:
	adrp	x9, _HZ@GOTPAGE
Lloh25:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh26:
	ldrsw	x9, [x9]
	mov	w10, #34079
	movk	w10, #20971, lsl #16
	mul	x9, x9, x10
	lsr	x10, x9, #63
	asr	x9, x9, #37
	add	w9, w9, w10
	add	x1, x8, w9, sxtw
	bl	_time_after
	cbz	x0, LBB0_8
LBB0_7:
	str	wzr, [x19]
Lloh27:
	adrp	x8, _parkbd_buffer@GOTPAGE
Lloh28:
	ldr	x8, [x8, _parkbd_buffer@GOTPAGEOFF]
Lloh29:
	str	wzr, [x8]
LBB0_8:
	bl	_parkbd_readlines
	asr	w8, w0, #1
	ldr	w10, [x19]
	add	w9, w10, #1
	str	w9, [x19]
	lsl	w8, w8, w10
Lloh30:
	adrp	x9, _parkbd_buffer@GOTPAGE
Lloh31:
	ldr	x9, [x9, _parkbd_buffer@GOTPAGEOFF]
	ldr	w11, [x9]
	orr	w8, w11, w8
	str	w8, [x9]
	ldr	w9, [x20]
	add	w11, w9, #9
	cmp	w10, w11
	b.ne	LBB0_13
; %bb.9:
Lloh32:
	adrp	x10, _parkbd_port@GOTPAGE
Lloh33:
	ldr	x10, [x10, _parkbd_port@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x10]
	mov	w10, #2
	sub	w9, w10, w9
	asr	w8, w8, w9
	and	w1, w8, #0xff
	mov	w2, #0
	bl	_serio_interrupt
	b	LBB0_13
LBB0_10:
	ldr	w8, [x19]
LBB0_11:
Lloh35:
	adrp	x21, _parkbd_buffer@GOTPAGE
Lloh36:
	ldr	x21, [x21, _parkbd_buffer@GOTPAGEOFF]
	ldr	w9, [x21]
	add	w10, w8, #1
	str	w10, [x19]
	lsr	w8, w9, w8
	mov	w0, #2
	bfxil	w0, w8, #0, #1
	bl	_parkbd_writelines
	ldr	w8, [x19]
	cmp	w8, #11
	b.ne	LBB0_13
; %bb.12:
	str	wzr, [x19]
	str	wzr, [x21]
	str	xzr, [x20]
	mov	w0, #3
	bl	_parkbd_writelines
LBB0_13:
Lloh37:
	adrp	x8, _jiffies@GOTPAGE
Lloh38:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh39:
	ldr	x8, [x8]
Lloh40:
	adrp	x9, _parkbd_last@GOTPAGE
Lloh41:
	ldr	x9, [x9, _parkbd_last@GOTPAGEOFF]
Lloh42:
	str	x8, [x9]
	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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotStr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_parkbd_writing,8,3             ; @parkbd_writing
	.comm	_parkbd_counter,4,2             ; @parkbd_counter
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_parkbd_last,8,3                ; @parkbd_last
	.comm	_HZ,4,2                         ; @HZ
	.comm	_parkbd_buffer,4,2              ; @parkbd_buffer
	.comm	_parkbd_mode,4,2                ; @parkbd_mode
	.comm	_parkbd_port,4,2                ; @parkbd_port
	.no_dead_strip	_parkbd_interrupt
.subsections_via_symbols
