	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ps2_rxint
_ps2_rxint:                             ## @ps2_rxint
	.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
	movq	%rsi, %r14
	movq	_PS2STAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rsi), %rdi
	callq	_readl_relaxed
	movl	%eax, %r15d
	movq	_PS2STAT_RXF@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_10
## %bb.1:
	movq	_PS2STAT_STP@GOTPCREL(%rip), %r13
	movq	_SERIO_PARITY@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	orl	%eax, %ebx
	movq	_PS2DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	callq	_readl_relaxed
	movzbl	%al, %r15d
	movl	%r15d, %edi
	callq	_hweight8
	andl	$1, %eax
	negl	%eax
	andl	(%r12), %eax
	xorl	%eax, %ebx
	movl	8(%r14), %edi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_serio_interrupt
	movq	_PS2STAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	callq	_readl_relaxed
	movl	%eax, %r15d
	movq	_PS2STAT_RXF@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	testl	%r15d, %edi
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_PS2STAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	callq	_writel_relaxed
	movl	(%r13), %eax
	andl	%r15d, %eax
	testl	%eax, %eax
	je	LBB0_7
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_SERIO_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	movq	_PS2STAT_RXP@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r15d
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %ebx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	testl	%eax, %eax
	jne	LBB0_6
	jmp	LBB0_7
LBB0_10:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PS2STAT,8,3                    ## @PS2STAT
	.comm	_PS2STAT_RXF,4,2                ## @PS2STAT_RXF
	.comm	_PS2STAT_STP,4,2                ## @PS2STAT_STP
	.comm	_SERIO_FRAME,4,2                ## @SERIO_FRAME
	.comm	_PS2STAT_RXP,4,2                ## @PS2STAT_RXP
	.comm	_SERIO_PARITY,4,2               ## @SERIO_PARITY
	.comm	_PS2DATA,8,3                    ## @PS2DATA
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_ps2_rxint
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ps2_rxint
_ps2_rxint:                             ; @ps2_rxint
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	ldr	x8, [x1]
Lloh0:
	adrp	x21, _PS2STAT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PS2STAT@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl_relaxed
Lloh2:
	adrp	x22, _PS2STAT_RXF@GOTPAGE
Lloh3:
	ldr	x22, [x22, _PS2STAT_RXF@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.1:
	mov	x20, x0
Lloh4:
	adrp	x23, _PS2STAT_STP@GOTPAGE
Lloh5:
	ldr	x23, [x23, _PS2STAT_STP@GOTPAGEOFF]
Lloh6:
	adrp	x24, _SERIO_FRAME@GOTPAGE
Lloh7:
	ldr	x24, [x24, _SERIO_FRAME@GOTPAGEOFF]
Lloh8:
	adrp	x25, _PS2STAT_RXP@GOTPAGE
Lloh9:
	ldr	x25, [x25, _PS2STAT_RXP@GOTPAGEOFF]
Lloh10:
	adrp	x26, _SERIO_PARITY@GOTPAGE
Lloh11:
	ldr	x26, [x26, _SERIO_PARITY@GOTPAGEOFF]
Lloh12:
	adrp	x27, _PS2DATA@GOTPAGE
Lloh13:
	ldr	x27, [x27, _PS2DATA@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	w8, [x23]
	and	w8, w8, w20
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x24]
	cmp	w8, #0
	csel	w8, wzr, w9, eq
	ldr	w9, [x25]
	ldr	w10, [x26]
	tst	w9, w20
	csel	w9, w10, wzr, eq
	orr	w28, w9, w8
	ldr	x8, [x19]
	ldr	x9, [x27]
	add	x0, x9, x8
	bl	_readl_relaxed
	and	w20, w0, #0xff
	mov	x0, x20
	bl	_hweight8
	sbfx	w8, w0, #0, #1
	ldr	w9, [x26]
	and	w8, w8, w9
	eor	w2, w8, w28
	ldr	w0, [x19, #8]
	mov	x1, x20
	bl	_serio_interrupt
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl_relaxed
	mov	x20, x0
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	tst	w0, w20
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #0
	b	LBB0_3
LBB0_6:
Lloh14:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_PS2STAT,8,3                    ; @PS2STAT
	.comm	_PS2STAT_RXF,4,2                ; @PS2STAT_RXF
	.comm	_PS2STAT_STP,4,2                ; @PS2STAT_STP
	.comm	_SERIO_FRAME,4,2                ; @SERIO_FRAME
	.comm	_PS2STAT_RXP,4,2                ; @PS2STAT_RXP
	.comm	_SERIO_PARITY,4,2               ; @SERIO_PARITY
	.comm	_PS2DATA,8,3                    ; @PS2DATA
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_ps2_rxint
.subsections_via_symbols
