	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stl_cd1400sendflow
_stl_cd1400sendflow:                    ## @stl_cd1400sendflow
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_pr_debug
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.1:
	leaq	20(%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	4(%rbx), %edi
	movl	16(%rbx), %esi
	callq	_BRDENABLE
	movq	_CAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	andl	$3, %edx
	movq	%rbx, %rdi
	callq	_stl_cd1400setreg
	movq	%rbx, %rdi
	callq	_stl_cd1400ccrwait
	movq	_CCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.3:
	movq	_CCR_SENDSCHR1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_stl_cd1400setreg
	leaq	12(%rbx), %rax
	jmp	LBB0_5
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_CCR_SENDSCHR2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_stl_cd1400setreg
	leaq	8(%rbx), %rax
LBB0_5:
	incl	(%rax)
	movq	%rbx, %rdi
	callq	_stl_cd1400ccrwait
	movl	4(%rbx), %edi
	callq	_BRDDISABLE
	movq	_brd_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	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_cd1400sendflow(portp=%p,state=%x)\n"

	.comm	_brd_lock,4,2                   ## @brd_lock
	.comm	_CAR,4,2                        ## @CAR
	.comm	_CCR,4,2                        ## @CCR
	.comm	_CCR_SENDSCHR1,4,2              ## @CCR_SENDSCHR1
	.comm	_CCR_SENDSCHR2,4,2              ## @CCR_SENDSCHR2
	.no_dead_strip	_stl_cd1400sendflow
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stl_cd1400sendflow
_stl_cd1400sendflow:                    ; @stl_cd1400sendflow
	.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_4
; %bb.1:
	add	x0, x19, #20
	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, #4]
	ldr	w1, [x19, #16]
	bl	_BRDENABLE
Lloh4:
	adrp	x8, _CAR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CAR@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	ldr	w8, [x19]
	and	w2, w8, #0x3
	mov	x0, x19
	bl	_stl_cd1400setreg
	mov	x0, x19
	bl	_stl_cd1400ccrwait
Lloh7:
	adrp	x8, _CCR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CCR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	cbz	w21, LBB0_5
; %bb.3:
Lloh10:
	adrp	x8, _CCR_SENDSCHR1@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CCR_SENDSCHR1@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_stl_cd1400setreg
	add	x8, x19, #12
	b	LBB0_6
LBB0_4:
	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_5:
Lloh13:
	adrp	x8, _CCR_SENDSCHR2@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CCR_SENDSCHR2@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_stl_cd1400setreg
	add	x8, x19, #8
LBB0_6:
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	x0, x19
	bl	_stl_cd1400ccrwait
	ldr	w0, [x19, #4]
	bl	_BRDDISABLE
Lloh16:
	adrp	x0, _brd_lock@GOTPAGE
Lloh17:
	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	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stl_cd1400sendflow(portp=%p,state=%x)\n"

	.comm	_brd_lock,4,2                   ; @brd_lock
	.comm	_CAR,4,2                        ; @CAR
	.comm	_CCR,4,2                        ; @CCR
	.comm	_CCR_SENDSCHR1,4,2              ; @CCR_SENDSCHR1
	.comm	_CCR_SENDSCHR2,4,2              ; @CCR_SENDSCHR2
	.no_dead_strip	_stl_cd1400sendflow
.subsections_via_symbols
