	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xps2_interrupt
_xps2_interrupt:                        ## @xps2_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	%rsi, %r14
	movq	_XPS2_IPISR_OFFSET@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	16(%rsi), %rdi
	callq	_in_be32
	movl	%eax, %ebx
	movq	(%r15), %rdi
	addq	16(%r14), %rdi
	movl	%eax, %esi
	callq	_out_be32
	movq	_XPS2_IPIXR_RX_OVF@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_2
## %bb.1:
	movl	8(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
LBB0_2:
	movq	_XPS2_IPIXR_RX_ERR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_SERIO_PARITY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_4:
	movq	_XPS2_IPIXR_TX_NOACK@GOTPCREL(%rip), %rax
	movq	_XPS2_IPIXR_WDT_TOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ebx, %ecx
	je	LBB0_6
## %bb.5:
	movq	_SERIO_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_6:
	movq	_XPS2_IPIXR_RX_FULL@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_10
## %bb.7:
	leaq	-28(%rbp), %rsi
	movq	%r14, %rdi
	callq	_xps2_recv
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	8(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_10
LBB0_9:
	movl	(%r14), %edx
	movl	4(%r14), %edi
	movl	-28(%rbp), %esi
	callq	_serio_interrupt
	movl	$0, (%r14)
LBB0_10:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XPS2_IPISR_OFFSET,8,3          ## @XPS2_IPISR_OFFSET
	.comm	_XPS2_IPIXR_RX_OVF,4,2          ## @XPS2_IPIXR_RX_OVF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"receive overrun error\n"

	.comm	_XPS2_IPIXR_RX_ERR,4,2          ## @XPS2_IPIXR_RX_ERR
	.comm	_SERIO_PARITY,4,2               ## @SERIO_PARITY
	.comm	_XPS2_IPIXR_TX_NOACK,4,2        ## @XPS2_IPIXR_TX_NOACK
	.comm	_XPS2_IPIXR_WDT_TOUT,4,2        ## @XPS2_IPIXR_WDT_TOUT
	.comm	_SERIO_TIMEOUT,4,2              ## @SERIO_TIMEOUT
	.comm	_XPS2_IPIXR_RX_FULL,4,2         ## @XPS2_IPIXR_RX_FULL
L_.str.1:                               ## @.str.1
	.asciz	"wrong rcvd byte count (%d)\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_xps2_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xps2_interrupt
_xps2_interrupt:                        ; @xps2_interrupt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	ldr	x8, [x1, #16]
Lloh0:
	adrp	x21, _XPS2_IPISR_OFFSET@GOTPAGE
Lloh1:
	ldr	x21, [x21, _XPS2_IPISR_OFFSET@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_in_be32
	mov	x20, x0
	ldr	x8, [x19, #16]
	ldr	x9, [x21]
	add	x0, x9, x8
	mov	x1, x20
	bl	_out_be32
Lloh2:
	adrp	x8, _XPS2_IPIXR_RX_OVF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _XPS2_IPIXR_RX_OVF@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x19, #8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_2:
Lloh7:
	adrp	x8, _XPS2_IPIXR_RX_ERR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _XPS2_IPIXR_RX_ERR@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.3:
Lloh10:
	adrp	x8, _SERIO_PARITY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SERIO_PARITY@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_4:
Lloh13:
	adrp	x8, _XPS2_IPIXR_TX_NOACK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _XPS2_IPIXR_TX_NOACK@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _XPS2_IPIXR_WDT_TOUT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _XPS2_IPIXR_WDT_TOUT@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w20
	b.eq	LBB0_6
; %bb.5:
Lloh19:
	adrp	x8, _SERIO_TIMEOUT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SERIO_TIMEOUT@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_6:
Lloh22:
	adrp	x8, _XPS2_IPIXR_RX_FULL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _XPS2_IPIXR_RX_FULL@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_10
; %bb.7:
	add	x1, sp, #12
	mov	x0, x19
	bl	_xps2_recv
	cbz	w0, LBB0_9
; %bb.8:
	mov	x2, x0
	ldr	w0, [x19, #8]
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_10
LBB0_9:
	ldr	w1, [sp, #12]
	ldp	w2, w0, [x19]
	bl	_serio_interrupt
	str	wzr, [x19]
LBB0_10:
Lloh27:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_XPS2_IPISR_OFFSET,8,3          ; @XPS2_IPISR_OFFSET
	.comm	_XPS2_IPIXR_RX_OVF,4,2          ; @XPS2_IPIXR_RX_OVF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"receive overrun error\n"

	.comm	_XPS2_IPIXR_RX_ERR,4,2          ; @XPS2_IPIXR_RX_ERR
	.comm	_SERIO_PARITY,4,2               ; @SERIO_PARITY
	.comm	_XPS2_IPIXR_TX_NOACK,4,2        ; @XPS2_IPIXR_TX_NOACK
	.comm	_XPS2_IPIXR_WDT_TOUT,4,2        ; @XPS2_IPIXR_WDT_TOUT
	.comm	_SERIO_TIMEOUT,4,2              ; @SERIO_TIMEOUT
	.comm	_XPS2_IPIXR_RX_FULL,4,2         ; @XPS2_IPIXR_RX_FULL
l_.str.1:                               ; @.str.1
	.asciz	"wrong rcvd byte count (%d)\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_xps2_interrupt
.subsections_via_symbols
