	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function psif_interrupt
_psif_interrupt:                        ## @psif_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, %r14
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_SR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_psif_readl
	movq	%rax, %r13
	movq	_RXRDY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PSIF_BIT
	testq	%r13, %rax
	je	LBB0_6
## %bb.1:
	movq	_RHR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_psif_readl
	movq	%rax, %r15
	movq	_PARITY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PSIF_BIT
	xorl	%r12d, %r12d
	testq	%r13, %rax
	je	LBB0_3
## %bb.2:
	movq	_SERIO_PARITY@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_3:
	movq	_OVRUN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PSIF_BIT
	testq	%r13, %rax
	je	LBB0_5
## %bb.4:
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_5:
	movl	(%r14), %edi
	movzbl	%r15b, %esi
	movl	%r12d, %edx
	callq	_serio_interrupt
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_SR,4,2                         ## @SR
	.comm	_RXRDY,4,2                      ## @RXRDY
	.comm	_RHR,4,2                        ## @RHR
	.comm	_PARITY,4,2                     ## @PARITY
	.comm	_SERIO_PARITY,4,2               ## @SERIO_PARITY
	.comm	_OVRUN,4,2                      ## @OVRUN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"overrun read error\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function psif_interrupt
_psif_interrupt:                        ; @psif_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
	mov	x19, x1
Lloh0:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _SR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_psif_readl
	mov	x20, x0
Lloh6:
	adrp	x8, _RXRDY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RXRDY@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_PSIF_BIT
	tst	x0, x20
	b.eq	LBB0_4
; %bb.1:
Lloh9:
	adrp	x8, _RHR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RHR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_psif_readl
	mov	x21, x0
Lloh12:
	adrp	x8, _PARITY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PARITY@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_PSIF_BIT
Lloh15:
	adrp	x8, _SERIO_PARITY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SERIO_PARITY@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	x0, x20
	csel	w22, wzr, w8, eq
Lloh18:
	adrp	x8, _OVRUN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _OVRUN@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_PSIF_BIT
	tst	x0, x20
	b.eq	LBB0_3
; %bb.2:
	ldr	x0, [x19, #8]
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_3:
	ldr	w0, [x19]
	and	w1, w21, #0xff
	mov	x2, x22
	bl	_serio_interrupt
Lloh23:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh25:
	ldr	w21, [x8]
LBB0_4:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_SR,4,2                         ; @SR
	.comm	_RXRDY,4,2                      ; @RXRDY
	.comm	_RHR,4,2                        ; @RHR
	.comm	_PARITY,4,2                     ; @PARITY
	.comm	_SERIO_PARITY,4,2               ; @SERIO_PARITY
	.comm	_OVRUN,4,2                      ; @OVRUN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"overrun read error\n"

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