	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cd2401_rx_interrupt
_cd2401_rx_interrupt:                   ## @cd2401_rx_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), %r12
	movq	_CyLICR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movzbl	(%r12,%rax), %eax
	andl	$252, %eax
	movq	_cy_port@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_jiffies@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 24(%rcx,%rax,8)
	movq	_CyRFOC@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movzbl	(%r12,%rdx), %esi
	movq	(%rcx,%rax,8), %r15
	testq	%r15, %r15
	je	LBB0_1
## %bb.8:
	movq	%r15, %rdi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_tty_buffer_request_room
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:
	movl	%eax, %ebx
	movq	_CyRDR@GOTPCREL(%rip), %r13
	movq	_TTY_NORMAL@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movsbl	(%r12,%rax), %esi
	movl	(%r14), %edx
	movq	%r15, %rdi
	callq	_tty_insert_flip_char
	decl	%ebx
	jne	LBB0_10
LBB0_11:
	movq	%r15, %rdi
	callq	_tty_schedule_flip
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
LBB0_12:
	xorl	%eax, %eax
	testl	%esi, %esi
	movq	_CyNOTRANS@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	cmovnel	%eax, %ecx
	movq	_CyREOIR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movb	%cl, (%r12,%rax)
	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_1:
	testl	%esi, %esi
	je	LBB0_12
## %bb.2:
	movq	_CyRDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leal	-1(%rsi), %edx
	movl	%esi, %ebx
	movl	%esi, %ecx
	andl	$7, %ebx
	je	LBB0_6
## %bb.3:
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r12,%rax), %ecx
	incl	%edi
	cmpl	%edi, %ebx
	jne	LBB0_4
## %bb.5:
	movl	%esi, %ecx
	subl	%edi, %ecx
LBB0_6:
	cmpl	$7, %edx
	jb	LBB0_12
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r12,%rax), %edx
	movzbl	(%r12,%rax), %edx
	movzbl	(%r12,%rax), %edx
	movzbl	(%r12,%rax), %edx
	movzbl	(%r12,%rax), %edx
	movzbl	(%r12,%rax), %edx
	movzbl	(%r12,%rax), %edx
	movzbl	(%r12,%rax), %edx
	addl	$-8, %ecx
	jne	LBB0_7
	jmp	LBB0_12
	.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	_CyRFOC,8,3                     ## @CyRFOC
	.comm	_CyRDR,8,3                      ## @CyRDR
	.comm	_TTY_NORMAL,4,2                 ## @TTY_NORMAL
	.comm	_CyNOTRANS,1,0                  ## @CyNOTRANS
	.comm	_CyREOIR,8,3                    ## @CyREOIR
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_DEBUG_PORT,4,2                 ## @DEBUG_PORT
	.no_dead_strip	_cd2401_rx_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cd2401_rx_interrupt
_cd2401_rx_interrupt:                   ; @cd2401_rx_interrupt
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x8, _BASE_ADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BASE_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
Lloh3:
	adrp	x8, _CyLICR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CyLICR@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldrb	w8, [x22, x8]
	lsl	w8, w8, #3
	and	x8, x8, #0x7e0
Lloh6:
	adrp	x9, _cy_port@GOTPAGE
Lloh7:
	ldr	x9, [x9, _cy_port@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _jiffies@GOTPAGE
Lloh10:
	ldr	x10, [x10, _jiffies@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	add	x8, x9, x8
	str	w10, [x8, #24]
Lloh12:
	adrp	x9, _CyRFOC@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CyRFOC@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	ldrb	w19, [x22, x9]
	ldr	x20, [x8]
	cbz	x20, LBB0_5
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	bl	_tty_buffer_request_room
	cbz	w0, LBB0_4
; %bb.2:
	mov	x21, x0
Lloh15:
	adrp	x23, _CyRDR@GOTPAGE
Lloh16:
	ldr	x23, [x23, _CyRDR@GOTPAGEOFF]
Lloh17:
	adrp	x24, _TTY_NORMAL@GOTPAGE
Lloh18:
	ldr	x24, [x24, _TTY_NORMAL@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	w21, w21, #1
	ldr	x8, [x23]
	ldrsb	w1, [x22, x8]
	ldr	w2, [x24]
	mov	x0, x20
	bl	_tty_insert_flip_char
	cbnz	w21, LBB0_3
LBB0_4:
	mov	x0, x20
	bl	_tty_schedule_flip
	b	LBB0_8
LBB0_5:
	cbz	w19, LBB0_8
; %bb.6:
Lloh19:
	adrp	x8, _CyRDR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CyRDR@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	mov	x9, x19
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	wzr, [x22, x8]
	subs	w9, w9, #1
	b.ne	LBB0_7
LBB0_8:
Lloh22:
	adrp	x8, _CyNOTRANS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CyNOTRANS@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w19, #0
	csel	w8, w8, wzr, eq
Lloh24:
	adrp	x9, _CyREOIR@GOTPAGE
Lloh25:
	ldr	x9, [x9, _CyREOIR@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	strb	w8, [x22, x9]
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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.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 AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.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	_CyRFOC,8,3                     ; @CyRFOC
	.comm	_CyRDR,8,3                      ; @CyRDR
	.comm	_TTY_NORMAL,4,2                 ; @TTY_NORMAL
	.comm	_CyNOTRANS,1,0                  ; @CyNOTRANS
	.comm	_CyREOIR,8,3                    ; @CyREOIR
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_DEBUG_PORT,4,2                 ; @DEBUG_PORT
	.no_dead_strip	_cd2401_rx_interrupt
.subsections_via_symbols
