	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stl_sc26198sendflow
_stl_sc26198sendflow:                   ## @stl_sc26198sendflow
	.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, %r12d
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_pr_debug
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.1:
	leaq	16(%rbx), %rdi
	callq	_tty_port_tty_get
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %r14
	movq	_brd_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movl	(%rbx), %edi
	movl	12(%rbx), %esi
	callq	_BRDENABLE
	movq	_MR0@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_stl_sc26198getreg
	movl	%eax, %r15d
	movl	(%r13), %esi
	movq	_MR0_SWFRXTX@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	notb	%al
	andb	%r15b, %al
	movzbl	%al, %edx
	movq	%rbx, %rdi
	callq	_stl_sc26198setreg
	movq	_SCCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.3:
	movq	_CR_TXSENDXON@GOTPCREL(%rip), %rax
	movzbl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_stl_sc26198setreg
	movq	_MR0_SWFRX@GOTPCREL(%rip), %rax
	orb	(%rax), %r15b
	leaq	8(%rbx), %rax
	jmp	LBB0_5
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_CR_TXSENDXOFF@GOTPCREL(%rip), %rax
	movzbl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_stl_sc26198setreg
	movq	_MR0_SWFRX@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	notb	%al
	andb	%al, %r15b
	leaq	4(%rbx), %rax
LBB0_5:
	incl	(%rax)
	movq	%rbx, %rdi
	callq	_stl_sc26198wait
	movl	(%r13), %esi
	movzbl	%r15b, %edx
	movq	%rbx, %rdi
	callq	_stl_sc26198setreg
	movl	(%rbx), %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_sc26198sendflow(portp=%p,state=%x)\n"

	.comm	_brd_lock,4,2                   ## @brd_lock
	.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	_CR_TXSENDXOFF,1,0              ## @CR_TXSENDXOFF
	.no_dead_strip	_stl_sc26198sendflow
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stl_sc26198sendflow
_stl_sc26198sendflow:                   ; @stl_sc26198sendflow
	.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, 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_4
; %bb.1:
	add	x0, x19, #16
	bl	_tty_port_tty_get
	cbz	x0, LBB0_4
; %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, #12]
	bl	_BRDENABLE
Lloh4:
	adrp	x23, _MR0@GOTPAGE
Lloh5:
	ldr	x23, [x23, _MR0@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_stl_sc26198getreg
	mov	x22, x0
	ldr	w1, [x23]
Lloh6:
	adrp	x8, _MR0_SWFRXTX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MR0_SWFRXTX@GOTPAGEOFF]
	ldrb	w8, [x8]
	bic	w2, w0, w8
	mov	x0, x19
	bl	_stl_sc26198setreg
Lloh8:
	adrp	x8, _SCCR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SCCR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	cbz	w21, LBB0_5
; %bb.3:
Lloh11:
	adrp	x8, _CR_TXSENDXON@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CR_TXSENDXON@GOTPAGEOFF]
	ldrb	w2, [x8]
	mov	x0, x19
	bl	_stl_sc26198setreg
Lloh13:
	adrp	x8, _MR0_SWFRX@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MR0_SWFRX@GOTPAGEOFF]
	ldrb	w8, [x8]
	orr	w21, w8, w22
	add	x8, x19, #8
	b	LBB0_6
LBB0_4:
	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
LBB0_5:
Lloh15:
	adrp	x8, _CR_TXSENDXOFF@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CR_TXSENDXOFF@GOTPAGEOFF]
	ldrb	w2, [x8]
	mov	x0, x19
	bl	_stl_sc26198setreg
Lloh17:
	adrp	x8, _MR0_SWFRX@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MR0_SWFRX@GOTPAGEOFF]
	ldrb	w8, [x8]
	bic	w21, w22, w8
	add	x8, x19, #4
LBB0_6:
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	x0, x19
	bl	_stl_sc26198wait
	ldr	w1, [x23]
	and	w2, w21, #0xff
	mov	x0, x19
	bl	_stl_sc26198setreg
	ldr	w0, [x19]
	bl	_BRDDISABLE
Lloh19:
	adrp	x0, _brd_lock@GOTPAGE
Lloh20:
	ldr	x0, [x0, _brd_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stl_sc26198sendflow(portp=%p,state=%x)\n"

	.comm	_brd_lock,4,2                   ; @brd_lock
	.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	_CR_TXSENDXOFF,1,0              ; @CR_TXSENDXOFF
	.no_dead_strip	_stl_sc26198sendflow
.subsections_via_symbols
