	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stl_sc26198flowctrl
_stl_sc26198flowctrl:                   ## @stl_sc26198flowctrl
	.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	%esi, %ebx
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_pr_debug
	testq	%r15, %r15
	je	LBB0_13
## %bb.1:
	leaq	24(%r15), %rdi
	callq	_tty_port_tty_get
	testq	%rax, %rax
	je	LBB0_13
## %bb.2:
	movq	%rax, %r14
	movq	_brd_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movl	(%r15), %edi
	movl	20(%r15), %esi
	callq	_BRDENABLE
	movq	(%r14), %rax
	movq	_IXOFF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax), %ecx
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.3:
	testl	%ecx, %ecx
	je	LBB0_5
## %bb.4:
	movq	_MR0@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_stl_sc26198getreg
	movl	%eax, %ebx
	movl	(%r12), %esi
	movq	_MR0_SWFRXTX@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	notb	%al
	andb	%bl, %al
	movzbl	%al, %edx
	movq	%r15, %rdi
	callq	_stl_sc26198setreg
	movq	_SCCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CR_TXSENDXON@GOTPCREL(%rip), %rax
	movzbl	(%rax), %edx
	movq	%r15, %rdi
	callq	_stl_sc26198setreg
	movq	_MR0_SWFRX@GOTPCREL(%rip), %rax
	orb	(%rax), %bl
	incl	16(%r15)
	movq	%r15, %rdi
	callq	_stl_sc26198wait
	movl	(%r12), %esi
	movzbl	%bl, %edx
	movq	%r15, %rdi
	callq	_stl_sc26198setreg
	movq	(%r14), %rax
LBB0_5:
	movq	_CRTSCTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%rax)
	je	LBB0_12
## %bb.6:
	movq	_MR1@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_stl_sc26198getreg
	movq	_MR1_AUTORTS@GOTPCREL(%rip), %rcx
	orb	(%rcx), %al
	movzbl	%al, %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_stl_sc26198setreg
	movq	_IOPIOR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_stl_sc26198getreg
	movq	_IOPR_RTS@GOTPCREL(%rip), %rcx
	orb	(%rcx), %al
	movzbl	%al, %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_stl_sc26198setreg
	leaq	12(%r15), %rax
	jmp	LBB0_11
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	testl	%ecx, %ecx
	je	LBB0_9
## %bb.8:
	movq	_MR0@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_stl_sc26198getreg
	movl	%eax, %r13d
	movl	(%r12), %esi
	movq	_MR0_SWFRXTX@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	notb	%al
	andb	%r13b, %al
	movzbl	%al, %edx
	movq	%r15, %rdi
	callq	_stl_sc26198setreg
	movq	_SCCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CR_TXSENDXOFF@GOTPCREL(%rip), %rax
	movzbl	(%rax), %edx
	movq	%r15, %rdi
	callq	_stl_sc26198setreg
	movq	_MR0_SWFRX@GOTPCREL(%rip), %rax
	movb	(%rax), %bl
	notb	%bl
	andb	%r13b, %bl
	incl	8(%r15)
	movq	%r15, %rdi
	callq	_stl_sc26198wait
	movl	(%r12), %esi
	movzbl	%bl, %edx
	movq	%r15, %rdi
	callq	_stl_sc26198setreg
	movq	(%r14), %rax
LBB0_9:
	movq	_CRTSCTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%rax)
	je	LBB0_12
## %bb.10:
	movq	_MR1@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_stl_sc26198getreg
	movq	_MR1_AUTORTS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	notb	%cl
	andb	%al, %cl
	movzbl	%cl, %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_stl_sc26198setreg
	movq	_IOPIOR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_stl_sc26198getreg
	movq	_IOPR_RTS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	notb	%cl
	andb	%al, %cl
	movzbl	%cl, %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_stl_sc26198setreg
	leaq	4(%r15), %rax
LBB0_11:
	incl	(%rax)
LBB0_12:
	movl	(%r15), %edi
	callq	_BRDDISABLE
	movq	_brd_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stl_sc26198flowctrl(portp=%p,state=%x)\n"

	.comm	_brd_lock,4,2                   ## @brd_lock
	.comm	_IXOFF,4,2                      ## @IXOFF
	.comm	_MR0,4,2                        ## @MR0
	.comm	_MR0_SWFRXTX,1,0                ## @MR0_SWFRXTX
	.comm	_SCCR,4,2                       ## @SCCR
	.comm	_CR_TXSENDXON,1,0               ## @CR_TXSENDXON
	.comm	_MR0_SWFRX,1,0                  ## @MR0_SWFRX
	.comm	_CRTSCTS,4,2                    ## @CRTSCTS
	.comm	_MR1,4,2                        ## @MR1
	.comm	_MR1_AUTORTS,1,0                ## @MR1_AUTORTS
	.comm	_IOPIOR,4,2                     ## @IOPIOR
	.comm	_IOPR_RTS,1,0                   ## @IOPR_RTS
	.comm	_CR_TXSENDXOFF,1,0              ## @CR_TXSENDXOFF
	.no_dead_strip	_stl_sc26198flowctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stl_sc26198flowctrl
_stl_sc26198flowctrl:                   ; @stl_sc26198flowctrl
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x21
	bl	_pr_debug
	cbz	x19, LBB0_7
; %bb.1:
	add	x0, x19, #24
	bl	_tty_port_tty_get
	cbz	x0, LBB0_7
; %bb.2:
	mov	x20, x0
Lloh2:
	adrp	x0, _brd_lock@GOTPAGE
Lloh3:
	ldr	x0, [x0, _brd_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
	ldr	w0, [x19]
	ldr	w1, [x19, #20]
	bl	_BRDENABLE
	ldr	x8, [x20]
	ldr	w9, [x8]
Lloh4:
	adrp	x10, _IXOFF@GOTPAGE
Lloh5:
	ldr	x10, [x10, _IXOFF@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x10]
	and	w9, w10, w9
	cbz	w21, LBB0_8
; %bb.3:
	cbz	w9, LBB0_5
; %bb.4:
Lloh7:
	adrp	x22, _MR0@GOTPAGE
Lloh8:
	ldr	x22, [x22, _MR0@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_stl_sc26198getreg
	mov	x21, x0
	ldr	w1, [x22]
Lloh9:
	adrp	x8, _MR0_SWFRXTX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MR0_SWFRXTX@GOTPAGEOFF]
	ldrb	w8, [x8]
	bic	w2, w0, w8
	mov	x0, x19
	bl	_stl_sc26198setreg
Lloh11:
	adrp	x8, _SCCR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SCCR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _CR_TXSENDXON@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CR_TXSENDXON@GOTPAGEOFF]
	ldrb	w2, [x8]
	mov	x0, x19
	bl	_stl_sc26198setreg
Lloh16:
	adrp	x8, _MR0_SWFRX@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MR0_SWFRX@GOTPAGEOFF]
	ldrb	w8, [x8]
	orr	w21, w8, w21
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
	mov	x0, x19
	bl	_stl_sc26198wait
	ldr	w1, [x22]
	and	w2, w21, #0xff
	mov	x0, x19
	bl	_stl_sc26198setreg
	ldr	x8, [x20]
LBB0_5:
	ldr	w8, [x8, #4]
Lloh18:
	adrp	x9, _CRTSCTS@GOTPAGE
Lloh19:
	ldr	x9, [x9, _CRTSCTS@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.6:
Lloh21:
	adrp	x8, _MR1@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MR1@GOTPAGEOFF]
Lloh23:
	ldr	w21, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_stl_sc26198getreg
Lloh24:
	adrp	x8, _MR1_AUTORTS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MR1_AUTORTS@GOTPAGEOFF]
	ldrb	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x19
	mov	x1, x21
	bl	_stl_sc26198setreg
Lloh26:
	adrp	x8, _IOPIOR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IOPIOR@GOTPAGEOFF]
Lloh28:
	ldr	w21, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_stl_sc26198getreg
Lloh29:
	adrp	x8, _IOPR_RTS@GOTPAGE
Lloh30:
	ldr	x8, [x8, _IOPR_RTS@GOTPAGEOFF]
	ldrb	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x19
	mov	x1, x21
	bl	_stl_sc26198setreg
	add	x8, x19, #12
	b	LBB0_12
LBB0_7:
	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
LBB0_8:
	cbz	w9, LBB0_10
; %bb.9:
Lloh31:
	adrp	x22, _MR0@GOTPAGE
Lloh32:
	ldr	x22, [x22, _MR0@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_stl_sc26198getreg
	mov	x21, x0
	ldr	w1, [x22]
Lloh33:
	adrp	x8, _MR0_SWFRXTX@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MR0_SWFRXTX@GOTPAGEOFF]
	ldrb	w8, [x8]
	bic	w2, w0, w8
	mov	x0, x19
	bl	_stl_sc26198setreg
Lloh35:
	adrp	x8, _SCCR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _SCCR@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
Lloh38:
	adrp	x8, _CR_TXSENDXOFF@GOTPAGE
Lloh39:
	ldr	x8, [x8, _CR_TXSENDXOFF@GOTPAGEOFF]
	ldrb	w2, [x8]
	mov	x0, x19
	bl	_stl_sc26198setreg
Lloh40:
	adrp	x8, _MR0_SWFRX@GOTPAGE
Lloh41:
	ldr	x8, [x8, _MR0_SWFRX@GOTPAGEOFF]
	ldrb	w8, [x8]
	bic	w21, w21, w8
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	mov	x0, x19
	bl	_stl_sc26198wait
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x21
	bl	_stl_sc26198setreg
	ldr	x8, [x20]
LBB0_10:
	ldr	w8, [x8, #4]
Lloh42:
	adrp	x9, _CRTSCTS@GOTPAGE
Lloh43:
	ldr	x9, [x9, _CRTSCTS@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.11:
Lloh45:
	adrp	x8, _MR1@GOTPAGE
Lloh46:
	ldr	x8, [x8, _MR1@GOTPAGEOFF]
Lloh47:
	ldr	w21, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_stl_sc26198getreg
Lloh48:
	adrp	x8, _MR1_AUTORTS@GOTPAGE
Lloh49:
	ldr	x8, [x8, _MR1_AUTORTS@GOTPAGEOFF]
	ldrb	w8, [x8]
	eor	w8, w8, #0xff
	and	w2, w0, w8
	mov	x0, x19
	mov	x1, x21
	bl	_stl_sc26198setreg
Lloh50:
	adrp	x8, _IOPIOR@GOTPAGE
Lloh51:
	ldr	x8, [x8, _IOPIOR@GOTPAGEOFF]
Lloh52:
	ldr	w21, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_stl_sc26198getreg
Lloh53:
	adrp	x8, _IOPR_RTS@GOTPAGE
Lloh54:
	ldr	x8, [x8, _IOPR_RTS@GOTPAGEOFF]
	ldrb	w8, [x8]
	eor	w8, w8, #0xff
	and	w2, w0, w8
	mov	x0, x19
	mov	x1, x21
	bl	_stl_sc26198setreg
	add	x8, x19, #4
LBB0_12:
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_13:
	ldr	w0, [x19]
	bl	_BRDDISABLE
Lloh55:
	adrp	x0, _brd_lock@GOTPAGE
Lloh56:
	ldr	x0, [x0, _brd_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
	mov	x0, 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	_tty_kref_put
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stl_sc26198flowctrl(portp=%p,state=%x)\n"

	.comm	_brd_lock,4,2                   ; @brd_lock
	.comm	_IXOFF,4,2                      ; @IXOFF
	.comm	_MR0,4,2                        ; @MR0
	.comm	_MR0_SWFRXTX,1,0                ; @MR0_SWFRXTX
	.comm	_SCCR,4,2                       ; @SCCR
	.comm	_CR_TXSENDXON,1,0               ; @CR_TXSENDXON
	.comm	_MR0_SWFRX,1,0                  ; @MR0_SWFRX
	.comm	_CRTSCTS,4,2                    ; @CRTSCTS
	.comm	_MR1,4,2                        ; @MR1
	.comm	_MR1_AUTORTS,1,0                ; @MR1_AUTORTS
	.comm	_IOPIOR,4,2                     ; @IOPIOR
	.comm	_IOPR_RTS,1,0                   ; @IOPR_RTS
	.comm	_CR_TXSENDXOFF,1,0              ; @CR_TXSENDXOFF
	.no_dead_strip	_stl_sc26198flowctrl
.subsections_via_symbols
