	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stl_sc26198rxbadch
_stl_sc26198rxbadch:                    ## @stl_sc26198rxbadch
	.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
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r12
	leaq	36(%rdi), %r13
	movq	%r13, %rdi
	callq	_tty_port_tty_get
	movq	%rax, %r14
	movq	_SR_RXPARITY@GOTPCREL(%rip), %rax
	movb	(%rax), %sil
	testb	%bl, %sil
	je	LBB0_2
## %bb.1:
	incl	24(%r12)
LBB0_2:
	movq	_SR_RXFRAMING@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	testb	%bl, %cl
	je	LBB0_4
## %bb.3:
	incl	20(%r12)
LBB0_4:
	movq	_SR_RXOVERRUN@GOTPCREL(%rip), %rax
	movb	(%rax), %dl
	testb	%bl, %dl
	je	LBB0_6
## %bb.5:
	incl	16(%r12)
LBB0_6:
	movq	_SR_RXBREAK@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	testb	%bl, %al
	je	LBB0_8
## %bb.7:
	incl	12(%r12)
LBB0_8:
	testq	%r14, %r14
	je	LBB0_22
## %bb.9:
	testb	%bl, 4(%r12)
	jne	LBB0_22
## %bb.10:
	testb	%bl, 5(%r12)
	je	LBB0_11
## %bb.12:
	testb	%bl, %al
	je	LBB0_15
## %bb.13:
	movq	_TTY_BREAK@GOTPCREL(%rip), %rax
	movb	(%rax), %bl
	movq	_ASYNC_SAK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_20
## %bb.14:
	movq	%r14, %rdi
	callq	_do_SAK
	movl	28(%r12), %esi
	movl	32(%r12), %edi
	callq	_BRDENABLE
	jmp	LBB0_20
LBB0_11:
	xorl	%ebx, %ebx
	jmp	LBB0_20
LBB0_15:
	testb	%bl, %sil
	je	LBB0_17
## %bb.16:
	movq	_TTY_PARITY@GOTPCREL(%rip), %rax
	movb	(%rax), %bl
	jmp	LBB0_20
LBB0_17:
	testb	%bl, %cl
	je	LBB0_19
## %bb.18:
	movq	_TTY_FRAME@GOTPCREL(%rip), %rax
	movb	(%rax), %bl
	jmp	LBB0_20
LBB0_19:
	xorl	%eax, %eax
	testb	%bl, %dl
	movq	_TTY_OVERRUN@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ebx
	cmovel	%eax, %ebx
LBB0_20:
	movsbl	%r15b, %esi
	movzbl	%bl, %ebx
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_tty_insert_flip_char
	movq	%r14, %rdi
	callq	_tty_schedule_flip
	testb	%bl, %bl
	jne	LBB0_22
## %bb.21:
	incl	8(%r12)
LBB0_22:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tty_kref_put                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SR_RXPARITY,1,0                ## @SR_RXPARITY
	.comm	_SR_RXFRAMING,1,0               ## @SR_RXFRAMING
	.comm	_SR_RXOVERRUN,1,0               ## @SR_RXOVERRUN
	.comm	_SR_RXBREAK,1,0                 ## @SR_RXBREAK
	.comm	_TTY_BREAK,1,0                  ## @TTY_BREAK
	.comm	_ASYNC_SAK,4,2                  ## @ASYNC_SAK
	.comm	_TTY_PARITY,1,0                 ## @TTY_PARITY
	.comm	_TTY_FRAME,1,0                  ## @TTY_FRAME
	.comm	_TTY_OVERRUN,1,0                ## @TTY_OVERRUN
	.no_dead_strip	_stl_sc26198rxbadch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stl_sc26198rxbadch
_stl_sc26198rxbadch:                    ; @stl_sc26198rxbadch
	.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
	mov	x21, x2
	mov	x23, x1
	mov	x19, x0
	add	x22, x0, #36
	mov	x0, x22
	bl	_tty_port_tty_get
	mov	x20, x0
Lloh0:
	adrp	x8, _SR_RXPARITY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SR_RXPARITY@GOTPAGEOFF]
	ldrb	w8, [x8]
	ands	w8, w8, w23
	b.eq	LBB0_2
; %bb.1:
	ldr	w9, [x19, #24]
	add	w9, w9, #1
	str	w9, [x19, #24]
LBB0_2:
Lloh2:
	adrp	x9, _SR_RXFRAMING@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SR_RXFRAMING@GOTPAGEOFF]
	ldrb	w9, [x9]
	ands	w9, w9, w23
	b.eq	LBB0_4
; %bb.3:
	ldr	w10, [x19, #20]
	add	w10, w10, #1
	str	w10, [x19, #20]
LBB0_4:
Lloh4:
	adrp	x10, _SR_RXOVERRUN@GOTPAGE
Lloh5:
	ldr	x10, [x10, _SR_RXOVERRUN@GOTPAGEOFF]
	ldrb	w10, [x10]
	ands	w10, w10, w23
	b.eq	LBB0_6
; %bb.5:
	ldr	w11, [x19, #16]
	add	w11, w11, #1
	str	w11, [x19, #16]
LBB0_6:
Lloh6:
	adrp	x11, _SR_RXBREAK@GOTPAGE
Lloh7:
	ldr	x11, [x11, _SR_RXBREAK@GOTPAGEOFF]
	ldrb	w11, [x11]
	ands	w11, w11, w23
	b.eq	LBB0_8
; %bb.7:
	ldr	w12, [x19, #12]
	add	w12, w12, #1
	str	w12, [x19, #12]
LBB0_8:
	cbz	x20, LBB0_22
; %bb.9:
	ldrb	w12, [x19, #4]
	tst	w12, w23
	b.ne	LBB0_22
; %bb.10:
	ldrb	w12, [x19, #5]
	tst	w12, w23
	b.eq	LBB0_14
; %bb.11:
	cbz	w11, LBB0_15
; %bb.12:
Lloh8:
	adrp	x8, _TTY_BREAK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TTY_BREAK@GOTPAGEOFF]
	ldrb	w23, [x8]
	ldr	w8, [x22]
Lloh10:
	adrp	x9, _ASYNC_SAK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ASYNC_SAK@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.13:
	mov	x0, x20
	bl	_do_SAK
	ldp	w1, w0, [x19, #28]
	bl	_BRDENABLE
	b	LBB0_20
LBB0_14:
	mov	w23, #0
	b	LBB0_20
LBB0_15:
	cbz	w8, LBB0_17
; %bb.16:
Lloh13:
	adrp	x8, _TTY_PARITY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TTY_PARITY@GOTPAGEOFF]
	ldrb	w23, [x8]
	b	LBB0_20
LBB0_17:
	cbz	w9, LBB0_19
; %bb.18:
Lloh15:
	adrp	x8, _TTY_FRAME@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TTY_FRAME@GOTPAGEOFF]
	ldrb	w23, [x8]
	b	LBB0_20
LBB0_19:
Lloh17:
	adrp	x8, _TTY_OVERRUN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TTY_OVERRUN@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w10, #0
	csel	w23, wzr, w8, eq
LBB0_20:
	and	w22, w23, #0xff
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_tty_insert_flip_char
	mov	x0, x20
	bl	_tty_schedule_flip
	cbnz	w22, LBB0_22
; %bb.21:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
LBB0_22:
	mov	x0, x20
	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
	b	_tty_kref_put
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_SR_RXPARITY,1,0                ; @SR_RXPARITY
	.comm	_SR_RXFRAMING,1,0               ; @SR_RXFRAMING
	.comm	_SR_RXOVERRUN,1,0               ; @SR_RXOVERRUN
	.comm	_SR_RXBREAK,1,0                 ; @SR_RXBREAK
	.comm	_TTY_BREAK,1,0                  ; @TTY_BREAK
	.comm	_ASYNC_SAK,4,2                  ; @ASYNC_SAK
	.comm	_TTY_PARITY,1,0                 ; @TTY_PARITY
	.comm	_TTY_FRAME,1,0                  ; @TTY_FRAME
	.comm	_TTY_OVERRUN,1,0                ; @TTY_OVERRUN
	.no_dead_strip	_stl_sc26198rxbadch
.subsections_via_symbols
