	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i8042_interrupt
_i8042_interrupt:                       ## @i8042_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	%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
	movl	%edi, %r15d
	movq	_i8042_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_i8042_read_status
	movl	%eax, %r13d
	notb	%al
	movq	_I8042_STR_OBF@GOTPCREL(%rip), %rcx
	andb	(%rcx), %al
	movzbl	%al, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_i8042_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	testl	%r15d, %r15d
	je	LBB0_28
## %bb.2:
	movzbl	%r15b, %esi
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dbg
	jmp	LBB0_28
LBB0_3:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_i8042_read_data
	movl	%eax, %ebx
	movq	_i8042_mux_present@GOTPCREL(%rip), %rcx
	movq	_I8042_STR_AUXDATA@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	andb	%r13b, %al
	cmpq	$0, (%rcx)
	je	LBB0_6
## %bb.4:
	xorl	%r12d, %r12d
	testb	%al, %al
	je	LBB0_5
## %bb.12:
	movq	_I8042_STR_MUXERR@GOTPCREL(%rip), %rax
	testb	%r13b, (%rax)
	je	LBB0_20
## %bb.13:
	movzbl	%bl, %edx
	movzbl	%r13b, %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_dbg
	leal	4(%rbx), %eax
	cmpb	$3, %al
	jae	LBB0_14
LBB0_17:
	movq	_SERIO_TIMEOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	movq	_I8042_STR_PARITY@GOTPCREL(%rip), %rdx
	movl	$0, %ecx
	testb	%r13b, (%rdx)
	je	LBB0_8
## %bb.7:
	movq	_SERIO_PARITY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_8:
	movq	_I8042_STR_TIMEOUT@GOTPCREL(%rip), %rdx
	movq	_i8042_notimeout@GOTPCREL(%rip), %rsi
	cmpl	$0, (%rsi)
	movl	$0, %r12d
	jne	LBB0_10
## %bb.9:
	movq	_SERIO_TIMEOUT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r12d
LBB0_10:
	testb	%r13b, (%rdx)
	cmovel	%r14d, %r12d
	testb	%al, %al
	jne	LBB0_11
## %bb.21:
	movq	_I8042_KBD_PORT_NO@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_11:
	movq	_I8042_AUX_PORT_NO@GOTPCREL(%rip), %rax
LBB0_22:
	orl	%ecx, %r12d
	movl	(%rax), %eax
	jmp	LBB0_23
LBB0_14:
	cmpb	$-1, %bl
	jne	LBB0_15
## %bb.18:
	movq	_SERIO_PARITY@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %r12d
	movb	$-2, %bl
LBB0_20:
	movq	_I8042_MUX_PORT_NO@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	movl	%r13d, %eax
	shrb	$6, %al
	movzbl	%al, %eax
	addl	%ecx, %eax
	movb	%r13b, _i8042_interrupt.last_str(%rip)
	movq	_jiffies@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, _i8042_interrupt.last_transmit(%rip)
LBB0_23:
	movq	_i8042_ports@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movl	%eax, %ecx
	leaq	(%rcx,%rcx,2), %rax
	cmpq	$0, 16(%rdx,%rax,8)
	je	LBB0_24
## %bb.25:
	movl	%r15d, %r8d
	movq	8(%rdx,%rax,8), %r15
	jmp	LBB0_26
LBB0_24:
	movl	%r15d, %r8d
	xorl	%r15d, %r15d
LBB0_26:
	movl	(%rdx,%rax,8), %edi
	movq	_SERIO_PARITY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r12d, %eax
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.3(%rip), %r9
	cmoveq	%rax, %r9
	movq	_SERIO_TIMEOUT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%r12d, %edx
	leaq	L_.str.5(%rip), %rdx
	cmoveq	%rax, %rdx
	movq	%rdx, (%rsp)
	movzbl	%bl, %r14d
	leaq	L_.str.2(%rip), %rdx
	movl	%r14d, %esi
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_filter_dbg
	movzbl	%r13b, %esi
	movl	%r14d, %edi
	movq	%r15, %rdx
	callq	_i8042_filter
	movl	%eax, %ebx
	movq	_i8042_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	testq	%r15, %r15
	setne	%al
	testl	%ebx, %ebx
	sete	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_likely
	movl	$1, %ebx
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	callq	_serio_interrupt
LBB0_28:
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IRQ_RETVAL                     ## TAILCALL
LBB0_15:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$34, %rax
	addl	%ecx, %eax
	movslq	%eax, %rsi
	addq	_i8042_interrupt.last_transmit(%rip), %rsi
	callq	_time_before
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	xorl	%r12d, %r12d
	movb	_i8042_interrupt.last_str(%rip), %r13b
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_i8042_lock,4,2                 ## @i8042_lock
	.comm	_I8042_STR_OBF,1,0              ## @I8042_STR_OBF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Interrupt %d, without any data\n"

	.comm	_i8042_mux_present,8,3          ## @i8042_mux_present
	.comm	_I8042_STR_AUXDATA,1,0          ## @I8042_STR_AUXDATA
.zerofill __DATA,__bss,_i8042_interrupt.last_transmit,8,3 ## @i8042_interrupt.last_transmit
.zerofill __DATA,__bss,_i8042_interrupt.last_str,1,0 ## @i8042_interrupt.last_str
	.comm	_I8042_STR_MUXERR,1,0           ## @I8042_STR_MUXERR
L_.str.1:                               ## @.str.1
	.asciz	"MUX error, status is %02x, data is %02x\n"

	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.comm	_SERIO_TIMEOUT,4,2              ## @SERIO_TIMEOUT
	.comm	_SERIO_PARITY,4,2               ## @SERIO_PARITY
	.comm	_I8042_MUX_PORT_NO,1,0          ## @I8042_MUX_PORT_NO
	.comm	_I8042_STR_PARITY,1,0           ## @I8042_STR_PARITY
	.comm	_I8042_STR_TIMEOUT,1,0          ## @I8042_STR_TIMEOUT
	.comm	_i8042_notimeout,4,2            ## @i8042_notimeout
	.comm	_I8042_AUX_PORT_NO,4,2          ## @I8042_AUX_PORT_NO
	.comm	_I8042_KBD_PORT_NO,4,2          ## @I8042_KBD_PORT_NO
	.comm	_i8042_ports,8,3                ## @i8042_ports
L_.str.2:                               ## @.str.2
	.asciz	"<- i8042 (interrupt, %d, %d%s%s)\n"

L_.str.3:                               ## @.str.3
	.asciz	", bad parity"

L_.str.4:                               ## @.str.4
	.space	1

L_.str.5:                               ## @.str.5
	.asciz	", timeout"

	.no_dead_strip	_i8042_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i8042_interrupt
_i8042_interrupt:                       ; @i8042_interrupt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x0, _i8042_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _i8042_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
	bl	_i8042_read_status
	mov	x21, x0
Lloh2:
	adrp	x8, _I8042_STR_OBF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _I8042_STR_OBF@GOTPAGEOFF]
	ldrb	w8, [x8]
	bic	w8, w8, w0
	and	w0, w8, #0xff
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.1:
Lloh4:
	adrp	x0, _i8042_lock@GOTPAGE
Lloh5:
	ldr	x0, [x0, _i8042_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
	cbz	w19, LBB0_8
; %bb.2:
	and	w1, w19, #0xff
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg
	mov	w0, #0
	b	LBB0_21
LBB0_3:
	bl	_i8042_read_data
	mov	x20, x0
Lloh8:
	adrp	x8, _i8042_mux_present@GOTPAGE
Lloh9:
	ldr	x8, [x8, _i8042_mux_present@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x8]
Lloh11:
	adrp	x8, _I8042_STR_AUXDATA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _I8042_STR_AUXDATA@GOTPAGEOFF]
	ldrb	w8, [x8]
	and	w8, w8, w21
Lloh13:
	adrp	x25, _SERIO_PARITY@GOTPAGE
Lloh14:
	ldr	x25, [x25, _SERIO_PARITY@GOTPAGEOFF]
Lloh15:
	adrp	x24, _SERIO_TIMEOUT@GOTPAGE
Lloh16:
	ldr	x24, [x24, _SERIO_TIMEOUT@GOTPAGEOFF]
	cbz	x9, LBB0_9
; %bb.4:
	cbz	w8, LBB0_9
; %bb.5:
Lloh17:
	adrp	x8, _I8042_STR_MUXERR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _I8042_STR_MUXERR@GOTPAGEOFF]
	ldrb	w8, [x8]
	adrp	x23, _i8042_interrupt.last_str@PAGE
Lloh19:
	adrp	x26, _jiffies@GOTPAGE
Lloh20:
	ldr	x26, [x26, _jiffies@GOTPAGEOFF]
	adrp	x27, _i8042_interrupt.last_transmit@PAGE
	tst	w8, w21
	b.eq	LBB0_10
; %bb.6:
	mov	w8, w20
	str	x8, [sp]
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_dbg
	sub	w8, w20, #252
	cmp	w8, #3
	b.hs	LBB0_11
LBB0_7:
	ldr	w22, [x24]
	b	LBB0_13
LBB0_8:
	mov	w0, #0
	b	LBB0_21
LBB0_9:
Lloh23:
	adrp	x9, _I8042_STR_PARITY@GOTPAGE
Lloh24:
	ldr	x9, [x9, _I8042_STR_PARITY@GOTPAGEOFF]
	ldrb	w9, [x9]
	ldr	w10, [x25]
	tst	w9, w21
Lloh25:
	adrp	x9, _I8042_STR_TIMEOUT@GOTPAGE
Lloh26:
	ldr	x9, [x9, _I8042_STR_TIMEOUT@GOTPAGEOFF]
	csel	w10, wzr, w10, eq
	ldrb	w9, [x9]
	and	w9, w9, w21
Lloh27:
	adrp	x11, _i8042_notimeout@GOTPAGE
Lloh28:
	ldr	x11, [x11, _i8042_notimeout@GOTPAGEOFF]
Lloh29:
	ldr	w11, [x11]
	cmp	w11, #0
	ccmp	w9, #0, #4, eq
	ldr	w9, [x24]
	csel	w9, wzr, w9, eq
Lloh30:
	adrp	x11, _I8042_AUX_PORT_NO@GOTPAGE
Lloh31:
	ldr	x11, [x11, _I8042_AUX_PORT_NO@GOTPAGEOFF]
	orr	w22, w9, w10
Lloh32:
	adrp	x9, _I8042_KBD_PORT_NO@GOTPAGE
Lloh33:
	ldr	x9, [x9, _I8042_KBD_PORT_NO@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x9, x11, eq
	ldr	w8, [x8]
	b	LBB0_15
LBB0_10:
	mov	w22, #0
	b	LBB0_14
LBB0_11:
	cmp	w20, #255
	b.ne	LBB0_22
; %bb.12:
	ldr	w22, [x25]
LBB0_13:
	mov	w20, #254
LBB0_14:
Lloh34:
	adrp	x8, _I8042_MUX_PORT_NO@GOTPAGE
Lloh35:
	ldr	x8, [x8, _I8042_MUX_PORT_NO@GOTPAGEOFF]
	ldrb	w8, [x8]
	add	w8, w8, w21, lsr #6
	strb	w21, [x23, _i8042_interrupt.last_str@PAGEOFF]
	ldr	x9, [x26]
	str	x9, [x27, _i8042_interrupt.last_transmit@PAGEOFF]
LBB0_15:
Lloh36:
	adrp	x9, _i8042_ports@GOTPAGE
Lloh37:
	ldr	x9, [x9, _i8042_ports@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	mov	w3, w8
	mov	w10, #24
	umaddl	x8, w8, w10, x9
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_17
; %bb.16:
	mov	w8, #24
	madd	x8, x3, x8, x9
	ldr	x23, [x8, #8]
	b	LBB0_18
LBB0_17:
	mov	x23, #0
LBB0_18:
	mov	w8, #24
	mul	x8, x3, x8
	ldr	w0, [x9, x8]
	ldr	w8, [x25]
Lloh39:
	adrp	x9, l_.str.3@PAGE
Lloh40:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh41:
	adrp	x10, l_.str.4@PAGE
Lloh42:
	add	x10, x10, l_.str.4@PAGEOFF
	tst	w8, w22
	csel	x5, x10, x9, eq
	ldr	w8, [x24]
Lloh43:
	adrp	x9, l_.str.5@PAGE
Lloh44:
	add	x9, x9, l_.str.5@PAGEOFF
	tst	w8, w22
	csel	x6, x10, x9, eq
Lloh45:
	adrp	x2, l_.str.2@PAGE
Lloh46:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x1, x20
                                        ; kill: def $w3 killed $w3 killed $x3
	mov	x4, x19
	bl	_filter_dbg
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	bl	_i8042_filter
	mov	x19, x0
Lloh47:
	adrp	x0, _i8042_lock@GOTPAGE
Lloh48:
	ldr	x0, [x0, _i8042_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
	cmp	x23, #0
	ccmp	w19, #0, #0, ne
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_20
; %bb.19:
	mov	x0, x23
	mov	x1, x20
	mov	x2, x22
	bl	_serio_interrupt
LBB0_20:
	mov	w0, #1
LBB0_21:
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_IRQ_RETVAL
LBB0_22:
	ldr	x0, [x26]
	ldr	x8, [x27, _i8042_interrupt.last_transmit@PAGEOFF]
Lloh49:
	adrp	x9, _HZ@GOTPAGE
Lloh50:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh51:
	ldrsw	x9, [x9]
	mov	w10, #26215
	movk	w10, #26214, lsl #16
	mul	x9, x9, x10
	lsr	x10, x9, #63
	asr	x9, x9, #34
	add	w9, w9, w10
	add	x1, x8, w9, sxtw
	bl	_time_before
	cbz	w0, LBB0_7
; %bb.23:
	mov	w22, #0
	ldrb	w21, [x23, _i8042_interrupt.last_str@PAGEOFF]
	b	LBB0_14
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_i8042_lock,4,2                 ; @i8042_lock
	.comm	_I8042_STR_OBF,1,0              ; @I8042_STR_OBF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Interrupt %d, without any data\n"

	.comm	_i8042_mux_present,8,3          ; @i8042_mux_present
	.comm	_I8042_STR_AUXDATA,1,0          ; @I8042_STR_AUXDATA
.zerofill __DATA,__bss,_i8042_interrupt.last_transmit,8,3 ; @i8042_interrupt.last_transmit
.zerofill __DATA,__bss,_i8042_interrupt.last_str,1,0 ; @i8042_interrupt.last_str
	.comm	_I8042_STR_MUXERR,1,0           ; @I8042_STR_MUXERR
l_.str.1:                               ; @.str.1
	.asciz	"MUX error, status is %02x, data is %02x\n"

	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_SERIO_TIMEOUT,4,2              ; @SERIO_TIMEOUT
	.comm	_SERIO_PARITY,4,2               ; @SERIO_PARITY
	.comm	_I8042_MUX_PORT_NO,1,0          ; @I8042_MUX_PORT_NO
	.comm	_I8042_STR_PARITY,1,0           ; @I8042_STR_PARITY
	.comm	_I8042_STR_TIMEOUT,1,0          ; @I8042_STR_TIMEOUT
	.comm	_i8042_notimeout,4,2            ; @i8042_notimeout
	.comm	_I8042_AUX_PORT_NO,4,2          ; @I8042_AUX_PORT_NO
	.comm	_I8042_KBD_PORT_NO,4,2          ; @I8042_KBD_PORT_NO
	.comm	_i8042_ports,8,3                ; @i8042_ports
l_.str.2:                               ; @.str.2
	.asciz	"<- i8042 (interrupt, %d, %d%s%s)\n"

l_.str.3:                               ; @.str.3
	.asciz	", bad parity"

l_.str.4:                               ; @.str.4
	.space	1

l_.str.5:                               ; @.str.5
	.asciz	", timeout"

	.no_dead_strip	_i8042_interrupt
.subsections_via_symbols
