	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cd2401_rxerr_interrupt
_cd2401_rxerr_interrupt:                ## @cd2401_rxerr_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	_BASE_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	_CyLICR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movzbl	(%r13,%rax), %eax
	shrq	$2, %rax
	movq	_cy_port@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	movq	_jiffies@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	(%rax,%rax,2), %r12
	movl	%ecx, 16(%rbx,%r12,8)
	movq	_CyRISR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movb	(%r13,%rax), %r15b
	movq	_CyTIMEOUT@GOTPCREL(%rip), %rax
	testb	%r15b, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_CyNOTRANS@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	jmp	LBB0_25
LBB0_2:
	movq	_CyRFOC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movb	(%r13,%rax), %dl
	testb	%dl, %dl
	je	LBB0_3
## %bb.4:
	movq	_CyRDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movb	(%r13,%rax), %al
	jmp	LBB0_5
LBB0_3:
	xorl	%eax, %eax
LBB0_5:
	movq	(%rbx,%r12,8), %r14
	testq	%r14, %r14
	je	LBB0_6
## %bb.7:
	testb	%r15b, 8(%rbx,%r12,8)
	je	LBB0_8
LBB0_6:
	xorl	%ecx, %ecx
	testb	%dl, %dl
	jmp	LBB0_24
LBB0_8:
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movb	%dl, -41(%rbp)                  ## 1-byte Spill
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_tty_buffer_request_room
	testq	%rax, %rax
	je	LBB0_23
## %bb.9:
	testb	%r15b, 9(%rbx,%r12,8)
	je	LBB0_20
## %bb.10:
	movq	_CyBREAK@GOTPCREL(%rip), %rax
	testb	%r15b, (%rax)
	je	LBB0_13
## %bb.11:
	movq	_TTY_BREAK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movsbl	-48(%rbp), %esi                 ## 1-byte Folded Reload
	movq	%r14, %rdi
	callq	_tty_insert_flip_char
	movq	_ASYNC_SAK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 12(%rbx,%r12,8)
	je	LBB0_23
## %bb.12:
	movq	%r14, %rdi
	callq	_do_SAK
	jmp	LBB0_23
LBB0_20:
	movq	_TTY_NORMAL@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_13:
	movq	_CyFRAME@GOTPCREL(%rip), %rax
	testb	%r15b, (%rax)
	je	LBB0_15
LBB0_14:
	movq	_TTY_FRAME@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_15:
	movq	_CyPARITY@GOTPCREL(%rip), %rax
	testb	%r15b, (%rax)
	je	LBB0_17
## %bb.16:
	movq	_TTY_PARITY@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %edx
	movsbl	-48(%rbp), %esi                 ## 1-byte Folded Reload
	movq	%r14, %rdi
LBB0_22:
	callq	_tty_insert_flip_char
LBB0_23:
	movq	%r14, %rdi
	callq	_tty_schedule_flip
	xorl	%ecx, %ecx
	cmpb	$0, -41(%rbp)                   ## 1-byte Folded Reload
LBB0_24:
	movq	_CyNOTRANS@GOTPCREL(%rip), %rax
	movzbl	(%rax), %eax
	cmovnel	%ecx, %eax
LBB0_25:
	movq	_CyREOIR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movb	%al, (%r13,%rcx)
	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
LBB0_17:
	movq	_CyOVERRUN@GOTPCREL(%rip), %rax
	testb	%r15b, (%rax)
	je	LBB0_19
## %bb.18:
	movq	_TTY_OVERRUN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_tty_insert_flip_char
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_tty_buffer_request_room
	testq	%rax, %rax
	jne	LBB0_14
	jmp	LBB0_23
LBB0_19:
	movq	_TTY_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_BASE_ADDR,8,3                  ## @BASE_ADDR
	.comm	_CyLICR,8,3                     ## @CyLICR
	.comm	_cy_port,8,3                    ## @cy_port
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_CyRISR,8,3                     ## @CyRISR
	.comm	_CyTIMEOUT,1,0                  ## @CyTIMEOUT
	.comm	_CyNOTRANS,1,0                  ## @CyNOTRANS
	.comm	_CyREOIR,8,3                    ## @CyREOIR
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_CyRFOC,8,3                     ## @CyRFOC
	.comm	_CyRDR,8,3                      ## @CyRDR
	.comm	_CyBREAK,1,0                    ## @CyBREAK
	.comm	_TTY_BREAK,4,2                  ## @TTY_BREAK
	.comm	_ASYNC_SAK,4,2                  ## @ASYNC_SAK
	.comm	_CyFRAME,1,0                    ## @CyFRAME
	.comm	_TTY_FRAME,4,2                  ## @TTY_FRAME
	.comm	_CyPARITY,1,0                   ## @CyPARITY
	.comm	_TTY_PARITY,4,2                 ## @TTY_PARITY
	.comm	_CyOVERRUN,1,0                  ## @CyOVERRUN
	.comm	_TTY_OVERRUN,4,2                ## @TTY_OVERRUN
	.comm	_TTY_NORMAL,4,2                 ## @TTY_NORMAL
	.no_dead_strip	_cd2401_rxerr_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cd2401_rxerr_interrupt
_cd2401_rxerr_interrupt:                ; @cd2401_rxerr_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
Lloh0:
	adrp	x8, _BASE_ADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BASE_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
Lloh3:
	adrp	x8, _CyLICR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CyLICR@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldrb	w8, [x20, x8]
	lsr	x23, x8, #2
Lloh6:
	adrp	x8, _cy_port@GOTPAGE
Lloh7:
	ldr	x8, [x8, _cy_port@GOTPAGEOFF]
Lloh8:
	ldr	x24, [x8]
Lloh9:
	adrp	x8, _jiffies@GOTPAGE
Lloh10:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	mov	w9, #24
	madd	x9, x23, x9, x24
	str	w8, [x9, #16]
Lloh12:
	adrp	x8, _CyRISR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CyRISR@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldrb	w25, [x20, x8]
Lloh15:
	adrp	x8, _CyTIMEOUT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CyTIMEOUT@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w8, w25
	b.eq	LBB0_2
; %bb.1:
Lloh17:
	adrp	x8, _CyNOTRANS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CyNOTRANS@GOTPAGEOFF]
	ldrb	w8, [x8]
	b	LBB0_21
LBB0_2:
Lloh19:
	adrp	x8, _CyRFOC@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CyRFOC@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	ldrb	w21, [x20, x8]
	cbz	w21, LBB0_4
; %bb.3:
Lloh22:
	adrp	x8, _CyRDR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CyRDR@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	ldrb	w22, [x20, x8]
	b	LBB0_5
LBB0_4:
	mov	w22, #0
LBB0_5:
	mov	w8, #24
	mul	x8, x23, x8
	ldr	x19, [x24, x8]
	cbz	x19, LBB0_20
; %bb.6:
	mov	w8, #24
	madd	x8, x23, x8, x24
	ldrb	w8, [x8, #8]
	tst	w8, w25
	b.ne	LBB0_20
; %bb.7:
	mov	x0, x19
	mov	w1, #1
	bl	_tty_buffer_request_room
	cbz	x0, LBB0_19
; %bb.8:
	mov	w8, #24
	madd	x8, x23, x8, x24
	ldrb	w8, [x8, #9]
	tst	w8, w25
	b.eq	LBB0_12
; %bb.9:
Lloh25:
	adrp	x8, _CyBREAK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CyBREAK@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w8, w25
	b.eq	LBB0_13
; %bb.10:
Lloh27:
	adrp	x8, _TTY_BREAK@GOTPAGE
Lloh28:
	ldr	x8, [x8, _TTY_BREAK@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	sxtb	w1, w22
	mov	x0, x19
	bl	_tty_insert_flip_char
	mov	w8, #24
	madd	x8, x23, x8, x24
	ldr	w8, [x8, #12]
Lloh30:
	adrp	x9, _ASYNC_SAK@GOTPAGE
Lloh31:
	ldr	x9, [x9, _ASYNC_SAK@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.11:
	mov	x0, x19
	bl	_do_SAK
	b	LBB0_19
LBB0_12:
Lloh33:
	adrp	x8, _TTY_NORMAL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _TTY_NORMAL@GOTPAGEOFF]
	b	LBB0_17
LBB0_13:
Lloh35:
	adrp	x8, _CyFRAME@GOTPAGE
Lloh36:
	ldr	x8, [x8, _CyFRAME@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w8, w25
	b.eq	LBB0_15
LBB0_14:
Lloh37:
	adrp	x8, _TTY_FRAME@GOTPAGE
Lloh38:
	ldr	x8, [x8, _TTY_FRAME@GOTPAGEOFF]
	b	LBB0_17
LBB0_15:
Lloh39:
	adrp	x8, _CyPARITY@GOTPAGE
Lloh40:
	ldr	x8, [x8, _CyPARITY@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w8, w25
	b.eq	LBB0_22
; %bb.16:
Lloh41:
	adrp	x8, _TTY_PARITY@GOTPAGE
Lloh42:
	ldr	x8, [x8, _TTY_PARITY@GOTPAGEOFF]
LBB0_17:
	ldr	w2, [x8]
	sxtb	w1, w22
	mov	x0, x19
LBB0_18:
	bl	_tty_insert_flip_char
LBB0_19:
	mov	x0, x19
	bl	_tty_schedule_flip
LBB0_20:
Lloh43:
	adrp	x8, _CyNOTRANS@GOTPAGE
Lloh44:
	ldr	x8, [x8, _CyNOTRANS@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w21, #0
	csel	w8, w8, wzr, eq
LBB0_21:
Lloh45:
	adrp	x9, _CyREOIR@GOTPAGE
Lloh46:
	ldr	x9, [x9, _CyREOIR@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
	strb	w8, [x20, x9]
Lloh48:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh49:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh50:
	ldr	w0, [x8]
	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
	ret
LBB0_22:
Lloh51:
	adrp	x8, _CyOVERRUN@GOTPAGE
Lloh52:
	ldr	x8, [x8, _CyOVERRUN@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w8, w25
	b.eq	LBB0_24
; %bb.23:
Lloh53:
	adrp	x8, _TTY_OVERRUN@GOTPAGE
Lloh54:
	ldr	x8, [x8, _TTY_OVERRUN@GOTPAGEOFF]
Lloh55:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_tty_insert_flip_char
	mov	x0, x19
	mov	w1, #1
	bl	_tty_buffer_request_room
	cbnz	x0, LBB0_14
	b	LBB0_19
LBB0_24:
Lloh56:
	adrp	x8, _TTY_NORMAL@GOTPAGE
Lloh57:
	ldr	x8, [x8, _TTY_NORMAL@GOTPAGEOFF]
Lloh58:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	b	LBB0_18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.cfi_endproc
                                        ; -- End function
	.comm	_BASE_ADDR,8,3                  ; @BASE_ADDR
	.comm	_CyLICR,8,3                     ; @CyLICR
	.comm	_cy_port,8,3                    ; @cy_port
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_CyRISR,8,3                     ; @CyRISR
	.comm	_CyTIMEOUT,1,0                  ; @CyTIMEOUT
	.comm	_CyNOTRANS,1,0                  ; @CyNOTRANS
	.comm	_CyREOIR,8,3                    ; @CyREOIR
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_CyRFOC,8,3                     ; @CyRFOC
	.comm	_CyRDR,8,3                      ; @CyRDR
	.comm	_CyBREAK,1,0                    ; @CyBREAK
	.comm	_TTY_BREAK,4,2                  ; @TTY_BREAK
	.comm	_ASYNC_SAK,4,2                  ; @ASYNC_SAK
	.comm	_CyFRAME,1,0                    ; @CyFRAME
	.comm	_TTY_FRAME,4,2                  ; @TTY_FRAME
	.comm	_CyPARITY,1,0                   ; @CyPARITY
	.comm	_TTY_PARITY,4,2                 ; @TTY_PARITY
	.comm	_CyOVERRUN,1,0                  ; @CyOVERRUN
	.comm	_TTY_OVERRUN,4,2                ; @TTY_OVERRUN
	.comm	_TTY_NORMAL,4,2                 ; @TTY_NORMAL
	.no_dead_strip	_cd2401_rxerr_interrupt
.subsections_via_symbols
