	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcips2_interrupt
_pcips2_interrupt:                      ## @pcips2_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
	movq	%rsi, %r15
	movq	_PS2_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rsi), %rdi
	callq	_inb
	movl	%eax, %ebx
	movq	_PS2_STAT_RXFULL@GOTPCREL(%rip), %rax
	testb	%bl, (%rax)
	je	LBB0_1
## %bb.2:
	movq	_SERIO_PARITY@GOTPCREL(%rip), %r13
	movl	$1, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movzbl	%al, %ebx
	movl	%ebx, %edi
	callq	_hweight8
	andl	$1, %eax
	negl	%eax
	andl	(%r13), %eax
	xorl	%eax, %r12d
	movl	(%r15), %edi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_serio_interrupt
	movq	_PS2_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r15), %rdi
	callq	_inb
	movl	%eax, %ebx
	movq	_PS2_STAT_RXFULL@GOTPCREL(%rip), %rax
	testb	%bl, (%rax)
	je	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_PS2_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r15), %rdi
	callq	_inb
	cmpb	$-1, %bl
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$-1, %al
	je	LBB0_8
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r12d, %r12d
	movq	_PS2_STAT_PARITY@GOTPCREL(%rip), %rcx
	andb	(%rcx), %bl
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r13), %r12d
	jmp	LBB0_7
LBB0_1:
	xorl	%r14d, %r14d
LBB0_8:
	movl	%r14d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IRQ_RETVAL                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PS2_STATUS,8,3                 ## @PS2_STATUS
	.comm	_PS2_STAT_RXFULL,1,0            ## @PS2_STAT_RXFULL
	.comm	_PS2_DATA,8,3                   ## @PS2_DATA
	.comm	_PS2_STAT_PARITY,1,0            ## @PS2_STAT_PARITY
	.comm	_SERIO_PARITY,4,2               ## @SERIO_PARITY
	.no_dead_strip	_pcips2_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcips2_interrupt
_pcips2_interrupt:                      ; @pcips2_interrupt
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	ldr	x8, [x1, #8]
Lloh0:
	adrp	x22, _PS2_STATUS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PS2_STATUS@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_inb
Lloh2:
	adrp	x23, _PS2_STAT_RXFULL@GOTPAGE
Lloh3:
	ldr	x23, [x23, _PS2_STAT_RXFULL@GOTPAGEOFF]
	ldrb	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.1:
	mov	x20, x0
Lloh4:
	adrp	x24, _PS2_DATA@GOTPAGE
Lloh5:
	ldr	x24, [x24, _PS2_DATA@GOTPAGEOFF]
Lloh6:
	adrp	x25, _PS2_STAT_PARITY@GOTPAGE
Lloh7:
	ldr	x25, [x25, _PS2_STAT_PARITY@GOTPAGEOFF]
Lloh8:
	adrp	x26, _SERIO_PARITY@GOTPAGE
Lloh9:
	ldr	x26, [x26, _SERIO_PARITY@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x25]
	ldr	w9, [x26]
	tst	w8, w20
	csel	w20, w9, wzr, eq
	mov	x0, x21
	bl	_hweight8
	sbfx	w8, w0, #0, #1
	ldr	w9, [x26]
	and	w8, w8, w9
	eor	w2, w8, w20
	ldr	w0, [x19]
	mov	x1, x21
	bl	_serio_interrupt
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_inb
	mov	x20, x0
	ldrb	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_inb
	mov	x21, x0
	cmp	w20, #255
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w21, #255
	b.ne	LBB0_2
LBB0_5:
	mov	w0, #1
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_IRQ_RETVAL
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PS2_STATUS,8,3                 ; @PS2_STATUS
	.comm	_PS2_STAT_RXFULL,1,0            ; @PS2_STAT_RXFULL
	.comm	_PS2_DATA,8,3                   ; @PS2_DATA
	.comm	_PS2_STAT_PARITY,1,0            ; @PS2_STAT_PARITY
	.comm	_SERIO_PARITY,4,2               ; @SERIO_PARITY
	.no_dead_strip	_pcips2_interrupt
.subsections_via_symbols
