	.file	"extr_stallion.c_stl_cd1400flowctrl.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"stl_cd1400flowctrl(portp=%p,state=%x)\n"
	.text
	.p2align 4
	.type	stl_cd1400flowctrl, @function
stl_cd1400flowctrl:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	edx, esi
	mov	r12d, esi
	mov	rsi, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	lea	rdi, .LC0[rip]
	call	pr_debug@PLT
	test	rbx, rbx
	je	.L1
	lea	rdi, 28[rbx]
	call	tty_port_tty_get@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L1
	xor	esi, esi
	lea	rdi, brd_lock[rip]
	call	spin_lock_irqsave@PLT
	mov	esi, DWORD PTR 24[rbx]
	mov	edi, DWORD PTR 4[rbx]
	call	BRDENABLE@PLT
	mov	edx, DWORD PTR [rbx]
	mov	esi, DWORD PTR CAR[rip]
	mov	rdi, rbx
	and	edx, 3
	call	stl_cd1400setreg@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	edx, DWORD PTR [rax]
	test	r12d, r12d
	je	.L5
	test	DWORD PTR IXOFF[rip], edx
	jne	.L25
.L6:
	mov	eax, DWORD PTR 4[rax]
	test	DWORD PTR CRTSCTS[rip], eax
	jne	.L26
.L8:
	mov	edi, DWORD PTR 4[rbx]
	call	BRDDISABLE@PLT
	lea	rdi, brd_lock[rip]
	xor	esi, esi
	call	spin_unlock_irqrestore@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	tty_kref_put@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	test	DWORD PTR IXOFF[rip], edx
	jne	.L27
.L9:
	mov	eax, DWORD PTR 4[rax]
	test	DWORD PTR CRTSCTS[rip], eax
	je	.L8
	mov	esi, DWORD PTR MCOR1[rip]
	mov	rdi, rbx
	call	stl_cd1400getreg@PLT
	mov	esi, DWORD PTR MCOR1[rip]
	mov	rdi, rbx
	and	eax, 240
	mov	edx, eax
	call	stl_cd1400setreg@PLT
	mov	esi, DWORD PTR MSVR2[rip]
	xor	edx, edx
	mov	rdi, rbx
	call	stl_cd1400setreg@PLT
	add	DWORD PTR 8[rbx], 1
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L27:
	mov	rdi, rbx
	call	stl_cd1400ccrwait@PLT
	mov	edx, DWORD PTR CCR_SENDSCHR2[rip]
	mov	esi, DWORD PTR CCR[rip]
	mov	rdi, rbx
	call	stl_cd1400setreg@PLT
	add	DWORD PTR 12[rbx], 1
	mov	rdi, rbx
	call	stl_cd1400ccrwait@PLT
	mov	rax, QWORD PTR 0[rbp]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L26:
	mov	esi, DWORD PTR MCOR1[rip]
	mov	rdi, rbx
	call	stl_cd1400getreg@PLT
	mov	esi, DWORD PTR MCOR1[rip]
	or	eax, DWORD PTR FIFO_RTSTHRESHOLD[rip]
	mov	rdi, rbx
	mov	edx, eax
	call	stl_cd1400setreg@PLT
	mov	edx, DWORD PTR MSVR2_RTS[rip]
	mov	esi, DWORD PTR MSVR2[rip]
	mov	rdi, rbx
	call	stl_cd1400setreg@PLT
	add	DWORD PTR 16[rbx], 1
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L25:
	mov	rdi, rbx
	call	stl_cd1400ccrwait@PLT
	mov	edx, DWORD PTR CCR_SENDSCHR1[rip]
	mov	esi, DWORD PTR CCR[rip]
	mov	rdi, rbx
	call	stl_cd1400setreg@PLT
	add	DWORD PTR 20[rbx], 1
	mov	rdi, rbx
	call	stl_cd1400ccrwait@PLT
	mov	rax, QWORD PTR 0[rbp]
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	stl_cd1400flowctrl, .-stl_cd1400flowctrl
	.comm	brd_lock,4,4
	.comm	MSVR2_RTS,4,4
	.comm	MSVR2,4,4
	.comm	MCOR1,4,4
	.comm	IXOFF,4,4
	.comm	FIFO_RTSTHRESHOLD,4,4
	.comm	CRTSCTS,4,4
	.comm	CCR_SENDSCHR2,4,4
	.comm	CCR_SENDSCHR1,4,4
	.comm	CCR,4,4
	.comm	CAR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_stallion.c_stl_cd1400flowctrl.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"stl_cd1400flowctrl(portp=%p,state=%x)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	stl_cd1400flowctrl, %function
stl_cd1400flowctrl:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	mov	r4, r0
	mov	r1, r0
	mov	r2, r5
	ldr	r0, .L28
	bl	pr_debug
	cmp	r4, #0
	popeq	{r4, r5, r6, pc}
	add	r0, r4, #28
	bl	tty_port_tty_get
	subs	r6, r0, #0
	popeq	{r4, r5, r6, pc}
	mov	r1, #0
	ldr	r0, .L28+4
	bl	spin_lock_irqsave
	ldr	r1, [r4, #24]
	ldr	r0, [r4, #4]
	bl	BRDENABLE
	ldr	r3, .L28+8
	ldr	r2, [r4]
	ldr	r1, [r3]
	and	r2, r2, #3
	mov	r0, r4
	bl	stl_cd1400setreg
	ldr	r3, [r6]
	ldr	r2, .L28+12
	cmp	r5, #0
	ldr	r1, [r3]
	ldr	r2, [r2]
	beq	.L5
	tst	r1, r2
	bne	.L25
.L6:
	ldr	r1, .L28+16
	ldr	r2, [r3, #4]
	ldr	r3, [r1]
	tst	r2, r3
	bne	.L26
.L8:
	ldr	r0, [r4, #4]
	bl	BRDDISABLE
	mov	r1, #0
	ldr	r0, .L28+4
	bl	spin_unlock_irqrestore
	mov	r0, r6
	pop	{r4, r5, r6, lr}
	b	tty_kref_put
.L5:
	tst	r1, r2
	bne	.L27
.L9:
	ldr	r1, .L28+16
	ldr	r2, [r3, #4]
	ldr	r3, [r1]
	tst	r2, r3
	beq	.L8
	ldr	r3, .L28+20
	mov	r0, r4
	ldr	r5, [r3]
	mov	r1, r5
	bl	stl_cd1400getreg
	mov	r1, r5
	and	r2, r0, #240
	mov	r0, r4
	bl	stl_cd1400setreg
	ldr	r3, .L28+24
	mov	r2, #0
	ldr	r1, [r3]
	mov	r0, r4
	bl	stl_cd1400setreg
	ldr	r3, [r4, #8]
	add	r3, r3, #1
	str	r3, [r4, #8]
	b	.L8
.L27:
	mov	r0, r4
	bl	stl_cd1400ccrwait
	ldr	r3, .L28+28
	ldr	r2, .L28+32
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r0, r4
	bl	stl_cd1400setreg
	ldr	r3, [r4, #12]
	mov	r0, r4
	add	r3, r3, #1
	str	r3, [r4, #12]
	bl	stl_cd1400ccrwait
	ldr	r3, [r6]
	b	.L9
.L26:
	ldr	r3, .L28+20
	mov	r0, r4
	ldr	r5, [r3]
	mov	r1, r5
	bl	stl_cd1400getreg
	mov	r2, r0
	ldr	r3, .L28+36
	mov	r1, r5
	ldr	r3, [r3]
	mov	r0, r4
	orr	r2, r2, r3
	bl	stl_cd1400setreg
	ldr	r3, .L28+24
	ldr	r2, .L28+40
	ldr	r1, [r3]
	mov	r0, r4
	ldr	r2, [r2]
	bl	stl_cd1400setreg
	ldr	r3, [r4, #16]
	add	r3, r3, #1
	str	r3, [r4, #16]
	b	.L8
.L25:
	mov	r0, r4
	bl	stl_cd1400ccrwait
	ldr	r3, .L28+28
	ldr	r2, .L28+44
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r0, r4
	bl	stl_cd1400setreg
	ldr	r3, [r4, #20]
	mov	r0, r4
	add	r3, r3, #1
	str	r3, [r4, #20]
	bl	stl_cd1400ccrwait
	ldr	r3, [r6]
	b	.L6
.L29:
	.align	2
.L28:
	.word	.LC0
	.word	brd_lock
	.word	CAR
	.word	IXOFF
	.word	CRTSCTS
	.word	MCOR1
	.word	MSVR2
	.word	CCR
	.word	CCR_SENDSCHR2
	.word	FIFO_RTSTHRESHOLD
	.word	MSVR2_RTS
	.word	CCR_SENDSCHR1
	.size	stl_cd1400flowctrl, .-stl_cd1400flowctrl
	.comm	brd_lock,4,4
	.comm	MSVR2_RTS,4,4
	.comm	MSVR2,4,4
	.comm	MCOR1,4,4
	.comm	IXOFF,4,4
	.comm	FIFO_RTSTHRESHOLD,4,4
	.comm	CRTSCTS,4,4
	.comm	CCR_SENDSCHR2,4,4
	.comm	CCR_SENDSCHR1,4,4
	.comm	CCR,4,4
	.comm	CAR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
