	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isr_serial
_isr_serial:                            ## @isr_serial
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_SSR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_rd_reg16
	movl	%eax, %r15d
	movzwl	%ax, %r14d
	movq	%r14, %rdi
	callq	_DBGISR
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_wr_reg16
	movl	$1, (%rbx)
	movq	64(%rbx), %rax
	movq	_MGSL_MODE_ASYNC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.1:
	movq	_IRQ_TXIDLE@GOTPCREL(%rip), %rax
	testw	%r15w, (%rax)
	je	LBB0_4
## %bb.2:
	cmpq	$0, 56(%rbx)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_isr_txeom
LBB0_4:
	cmpq	$0, 32(%rbx)
	je	LBB0_7
## %bb.5:
	movq	_IRQ_RXDATA@GOTPCREL(%rip), %rax
	testw	%r15w, (%rax)
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_isr_rxdata
LBB0_7:
	movq	_IRQ_RXBREAK@GOTPCREL(%rip), %rax
	testw	%r15w, (%rax)
	je	LBB0_26
## %bb.8:
	movq	_RXBREAK@GOTPCREL(%rip), %rax
	testw	%r15w, (%rax)
	je	LBB0_26
## %bb.9:
	incl	24(%rbx)
	movq	48(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_26
## %bb.10:
	testw	%r15w, 4(%rbx)
	jne	LBB0_26
## %bb.11:
	movq	_MASK_BREAK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_26
## %bb.12:
	movq	_TTY_BREAK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_tty_insert_flip_char
	movq	_ASYNC_SAK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 40(%rbx)
	je	LBB0_26
## %bb.13:
	movq	48(%rbx), %rdi
	callq	_do_SAK
	jmp	LBB0_26
LBB0_14:
	movq	_IRQ_TXIDLE@GOTPCREL(%rip), %rax
	movzwl	(%rax), %eax
	movq	_IRQ_TXUNDER@GOTPCREL(%rip), %rcx
	movzwl	(%rcx), %ecx
	addl	%eax, %ecx
	testl	%r14d, %ecx
	je	LBB0_16
## %bb.15:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_isr_txeom
LBB0_16:
	cmpq	$0, 32(%rbx)
	je	LBB0_19
## %bb.17:
	movq	_IRQ_RXDATA@GOTPCREL(%rip), %rax
	testw	%r15w, (%rax)
	je	LBB0_19
## %bb.18:
	movq	%rbx, %rdi
	callq	_isr_rxdata
LBB0_19:
	movq	_IRQ_RXIDLE@GOTPCREL(%rip), %rax
	testw	%r15w, (%rax)
	je	LBB0_24
## %bb.20:
	movq	_RXIDLE@GOTPCREL(%rip), %rax
	testw	%r15w, (%rax)
	je	LBB0_22
## %bb.21:
	incl	20(%rbx)
	jmp	LBB0_23
LBB0_22:
	incl	16(%rbx)
LBB0_23:
	leaq	12(%rbx), %rdi
	callq	_wake_up_interruptible
LBB0_24:
	movq	_IRQ_RXOVER@GOTPCREL(%rip), %rax
	testw	%r15w, (%rax)
	je	LBB0_26
## %bb.25:
	movq	%rbx, %rdi
	callq	_rx_start
LBB0_26:
	movq	_IRQ_DSR@GOTPCREL(%rip), %rax
	testw	%r15w, (%rax)
	je	LBB0_28
## %bb.27:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_dsr_change
LBB0_28:
	movq	_IRQ_CTS@GOTPCREL(%rip), %rax
	testw	%r15w, (%rax)
	je	LBB0_30
## %bb.29:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_cts_change
LBB0_30:
	movq	_IRQ_DCD@GOTPCREL(%rip), %rax
	testw	%r15w, (%rax)
	je	LBB0_32
## %bb.31:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_dcd_change
LBB0_32:
	movq	_IRQ_RI@GOTPCREL(%rip), %rax
	testw	%r15w, (%rax)
	je	LBB0_33
## %bb.34:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ri_change                      ## TAILCALL
LBB0_33:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSR,4,2                        ## @SSR
	.comm	_MGSL_MODE_ASYNC,8,3            ## @MGSL_MODE_ASYNC
	.comm	_IRQ_TXIDLE,2,1                 ## @IRQ_TXIDLE
	.comm	_IRQ_RXDATA,2,1                 ## @IRQ_RXDATA
	.comm	_IRQ_RXBREAK,2,1                ## @IRQ_RXBREAK
	.comm	_RXBREAK,2,1                    ## @RXBREAK
	.comm	_MASK_BREAK,4,2                 ## @MASK_BREAK
	.comm	_TTY_BREAK,4,2                  ## @TTY_BREAK
	.comm	_ASYNC_SAK,4,2                  ## @ASYNC_SAK
	.comm	_IRQ_TXUNDER,2,1                ## @IRQ_TXUNDER
	.comm	_IRQ_RXIDLE,2,1                 ## @IRQ_RXIDLE
	.comm	_RXIDLE,2,1                     ## @RXIDLE
	.comm	_IRQ_RXOVER,2,1                 ## @IRQ_RXOVER
	.comm	_IRQ_DSR,2,1                    ## @IRQ_DSR
	.comm	_IRQ_CTS,2,1                    ## @IRQ_CTS
	.comm	_IRQ_DCD,2,1                    ## @IRQ_DCD
	.comm	_IRQ_RI,2,1                     ## @IRQ_RI
	.no_dead_strip	_isr_serial
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isr_serial
_isr_serial:                            ; @isr_serial
	.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, x0
Lloh0:
	adrp	x21, _SSR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SSR@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_rd_reg16
	mov	x20, x0
	mov	w0, w0
	bl	_DBGISR
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_wr_reg16
	mov	w8, #1
	str	w8, [x19]
	ldr	x8, [x19, #64]
Lloh2:
	adrp	x9, _MGSL_MODE_ASYNC@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MGSL_MODE_ASYNC@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.1:
Lloh5:
	adrp	x8, _IRQ_TXIDLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IRQ_TXIDLE@GOTPAGEOFF]
	ldrh	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.2:
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	bl	_isr_txeom
LBB0_4:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_7
; %bb.5:
Lloh7:
	adrp	x8, _IRQ_RXDATA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IRQ_RXDATA@GOTPAGEOFF]
	ldrh	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_isr_rxdata
LBB0_7:
Lloh9:
	adrp	x8, _IRQ_RXBREAK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IRQ_RXBREAK@GOTPAGEOFF]
	ldrh	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_26
; %bb.8:
Lloh11:
	adrp	x8, _RXBREAK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RXBREAK@GOTPAGEOFF]
	ldrh	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_26
; %bb.9:
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
	ldr	x0, [x19, #48]
	cbz	x0, LBB0_26
; %bb.10:
	ldrh	w8, [x19, #4]
	tst	w8, w20
	b.ne	LBB0_26
; %bb.11:
	ldr	w8, [x19, #8]
Lloh13:
	adrp	x9, _MASK_BREAK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MASK_BREAK@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_26
; %bb.12:
Lloh16:
	adrp	x8, _TTY_BREAK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TTY_BREAK@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_tty_insert_flip_char
	ldr	w8, [x19, #40]
Lloh19:
	adrp	x9, _ASYNC_SAK@GOTPAGE
Lloh20:
	ldr	x9, [x9, _ASYNC_SAK@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_26
; %bb.13:
	ldr	x0, [x19, #48]
	bl	_do_SAK
	b	LBB0_26
LBB0_14:
Lloh22:
	adrp	x8, _IRQ_TXIDLE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IRQ_TXIDLE@GOTPAGEOFF]
	ldrh	w8, [x8]
Lloh24:
	adrp	x9, _IRQ_TXUNDER@GOTPAGE
Lloh25:
	ldr	x9, [x9, _IRQ_TXUNDER@GOTPAGEOFF]
	ldrh	w9, [x9]
	add	w8, w9, w8
	tst	w8, w20
	b.eq	LBB0_16
; %bb.15:
	mov	x0, x19
	mov	x1, x20
	bl	_isr_txeom
LBB0_16:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_19
; %bb.17:
Lloh26:
	adrp	x8, _IRQ_RXDATA@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IRQ_RXDATA@GOTPAGEOFF]
	ldrh	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_19
; %bb.18:
	mov	x0, x19
	bl	_isr_rxdata
LBB0_19:
Lloh28:
	adrp	x8, _IRQ_RXIDLE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IRQ_RXIDLE@GOTPAGEOFF]
	ldrh	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_24
; %bb.20:
Lloh30:
	adrp	x8, _RXIDLE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _RXIDLE@GOTPAGEOFF]
	ldrh	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_22
; %bb.21:
	ldr	w8, [x19, #20]
	add	w8, w8, #1
	str	w8, [x19, #20]
	b	LBB0_23
LBB0_22:
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
LBB0_23:
	add	x0, x19, #12
	bl	_wake_up_interruptible
LBB0_24:
Lloh32:
	adrp	x8, _IRQ_RXOVER@GOTPAGE
Lloh33:
	ldr	x8, [x8, _IRQ_RXOVER@GOTPAGEOFF]
	ldrh	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_26
; %bb.25:
	mov	x0, x19
	bl	_rx_start
LBB0_26:
Lloh34:
	adrp	x8, _IRQ_DSR@GOTPAGE
Lloh35:
	ldr	x8, [x8, _IRQ_DSR@GOTPAGEOFF]
	ldrh	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_28
; %bb.27:
	mov	x0, x19
	mov	x1, x20
	bl	_dsr_change
LBB0_28:
Lloh36:
	adrp	x8, _IRQ_CTS@GOTPAGE
Lloh37:
	ldr	x8, [x8, _IRQ_CTS@GOTPAGEOFF]
	ldrh	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_30
; %bb.29:
	mov	x0, x19
	mov	x1, x20
	bl	_cts_change
LBB0_30:
Lloh38:
	adrp	x8, _IRQ_DCD@GOTPAGE
Lloh39:
	ldr	x8, [x8, _IRQ_DCD@GOTPAGEOFF]
	ldrh	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_32
; %bb.31:
	mov	x0, x19
	mov	x1, x20
	bl	_dcd_change
LBB0_32:
Lloh40:
	adrp	x8, _IRQ_RI@GOTPAGE
Lloh41:
	ldr	x8, [x8, _IRQ_RI@GOTPAGEOFF]
	ldrh	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_34
; %bb.33:
	mov	x0, x19
	mov	x1, x20
	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
	b	_ri_change
LBB0_34:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_SSR,4,2                        ; @SSR
	.comm	_MGSL_MODE_ASYNC,8,3            ; @MGSL_MODE_ASYNC
	.comm	_IRQ_TXIDLE,2,1                 ; @IRQ_TXIDLE
	.comm	_IRQ_RXDATA,2,1                 ; @IRQ_RXDATA
	.comm	_IRQ_RXBREAK,2,1                ; @IRQ_RXBREAK
	.comm	_RXBREAK,2,1                    ; @RXBREAK
	.comm	_MASK_BREAK,4,2                 ; @MASK_BREAK
	.comm	_TTY_BREAK,4,2                  ; @TTY_BREAK
	.comm	_ASYNC_SAK,4,2                  ; @ASYNC_SAK
	.comm	_IRQ_TXUNDER,2,1                ; @IRQ_TXUNDER
	.comm	_IRQ_RXIDLE,2,1                 ; @IRQ_RXIDLE
	.comm	_RXIDLE,2,1                     ; @RXIDLE
	.comm	_IRQ_RXOVER,2,1                 ; @IRQ_RXOVER
	.comm	_IRQ_DSR,2,1                    ; @IRQ_DSR
	.comm	_IRQ_CTS,2,1                    ; @IRQ_CTS
	.comm	_IRQ_DCD,2,1                    ; @IRQ_DCD
	.comm	_IRQ_RI,2,1                     ; @IRQ_RI
	.no_dead_strip	_isr_serial
.subsections_via_symbols
