	.file	"extr_firestream.c_fs_open.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"fs: open on dev: %p, vcc at %p\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"fs: (itf %d): open %d.%d\n"
.LC2:
	.string	"Alloc VCC: %p(%Zd)\n"
.LC3:
	.string	"Channel is in use for FS155.\n"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"OK. Allocated channel %x(%d).\n"
	.section	.rodata.str1.1
.LC5:
	.string	"Alloc tc: %p(%Zd)\n"
	.section	.rodata.str1.8
	.align 8
.LC6:
	.string	"fs: can't alloc transmit_config.\n"
	.section	.rodata.str1.1
.LC7:
	.string	"Unknown aal: %d\n"
.LC8:
	.string	"pcr = %d.\n"
.LC9:
	.string	"TX config record:\n"
.LC10:
	.string	"No free pool fits sdu: %d.\n"
	.section	.rodata.str1.8
	.align 8
.LC11:
	.string	"No more free channels for FS50..\n"
	.text
	.p2align 4
	.type	fs_open, @function
fs_open:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	r13d, DWORD PTR 4[rdi]
	movsx	r14d, WORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	func_enter@PLT
	mov	rdi, QWORD PTR 48[rbx]
	call	FS_DEV@PLT
	mov	edi, DWORD PTR FS_DEBUG_OPEN[rip]
	mov	rcx, rbx
	lea	rsi, .LC0[rip]
	mov	rdx, rax
	mov	rbp, rax
	xor	eax, eax
	call	fs_dprintk@PLT
	cmp	DWORD PTR ATM_VPI_UNSPEC[rip], r13d
	je	.L2
	cmp	WORD PTR ATM_VCI_UNSPEC[rip], r14w
	jne	.L76
.L2:
	mov	eax, DWORD PTR 16[rbx]
	add	eax, -128
	cmp	eax, 1
	jbe	.L3
.L74:
	mov	r14d, DWORD PTR EINVAL[rip]
	neg	r14d
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L77
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L76:
	.cfi_restore_state
	mov	edi, DWORD PTR ATM_VF_ADDR[rip]
	lea	rsi, 8[rbx]
	call	set_bit@PLT
	mov	eax, DWORD PTR 16[rbx]
	add	eax, -128
	cmp	eax, 1
	ja	.L74
.L3:
	mov	rax, QWORD PTR 48[rbx]
	movsx	ecx, WORD PTR [rbx]
	lea	rsi, .LC1[rip]
	lea	r15, 8[rbx]
	mov	r8d, DWORD PTR 4[rbx]
	mov	edi, DWORD PTR FS_DEBUG_OPEN[rip]
	mov	edx, DWORD PTR [rax]
	xor	eax, eax
	call	fs_dprintk@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 56
	call	kmalloc@PLT
	mov	edi, DWORD PTR FS_DEBUG_ALLOC[rip]
	mov	ecx, 56
	lea	rsi, .LC2[rip]
	mov	rdx, rax
	mov	r12, rax
	xor	eax, eax
	call	fs_dprintk@PLT
	test	r12, r12
	je	.L78
	mov	QWORD PTR 40[rbx], r12
	lea	rdi, 40[r12]
	mov	QWORD PTR 48[r12], 0
	call	init_waitqueue_head@PLT
	lea	rax, 32[rbx]
	mov	rdi, QWORD PTR ATM_VF_PARTIAL[rip]
	mov	rsi, r15
	mov	QWORD PTR 8[rsp], rax
	lea	rax, 24[rbx]
	mov	QWORD PTR 16[rsp], rax
	call	test_bit@PLT
	test	rax, rax
	jne	.L6
	mov	rdi, rbp
	call	IS_FS50@PLT
	test	rax, rax
	je	.L7
	mov	eax, DWORD PTR 0[rbp]
	mov	r14d, 33
.L12:
	cmp	eax, 31
	jle	.L8
	mov	DWORD PTR 0[rbp], 0
.L8:
	mov	rdi, QWORD PTR 16[rsp]
	call	DO_DIRECTION@PLT
	test	rax, rax
	je	.L9
	movsx	rcx, DWORD PTR 0[rbp]
	mov	rdx, QWORD PTR 16[rbp]
	cmp	QWORD PTR [rdx+rcx*8], 0
	mov	rax, rcx
	je	.L9
.L10:
	add	eax, 1
	mov	DWORD PTR 0[rbp], eax
	sub	r14d, 1
	jne	.L12
	lea	rdi, .LC11[rip]
	xor	eax, eax
	call	printk@PLT
	mov	r14d, DWORD PTR EBUSY[rip]
	neg	r14d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, QWORD PTR 8[rsp]
	call	DO_DIRECTION@PLT
	test	rax, rax
	je	.L11
	mov	rsi, QWORD PTR 32[rbp]
	movsx	rdi, DWORD PTR 0[rbp]
	call	test_bit@PLT
	test	rax, rax
	jne	.L79
.L11:
	mov	ecx, DWORD PTR 0[rbp]
	movsx	eax, WORD PTR 4[rbp]
	and	eax, ecx
	mov	WORD PTR [r12], cx
	movsx	edx, cx
	mov	DWORD PTR 0[rbp], eax
.L17:
	mov	edi, DWORD PTR FS_DEBUG_OPEN[rip]
	mov	ecx, edx
	lea	rsi, .LC4[rip]
	xor	eax, eax
	call	fs_dprintk@PLT
.L6:
	mov	rdi, QWORD PTR 8[rsp]
	call	DO_DIRECTION@PLT
	test	rax, rax
	je	.L18
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 56
	call	kmalloc@PLT
	mov	edi, DWORD PTR FS_DEBUG_ALLOC[rip]
	mov	ecx, 56
	lea	rsi, .LC5[rip]
	mov	QWORD PTR 24[rsp], rax
	mov	rdx, rax
	xor	eax, eax
	call	fs_dprintk@PLT
	mov	r8, QWORD PTR 24[rsp]
	test	r8, r8
	je	.L80
	mov	esi, DWORD PTR 16[rbx]
	cmp	esi, 128
	je	.L20
	lea	eax, -129[rsi]
	cmp	eax, 1
	ja	.L21
	mov	eax, DWORD PTR TC_FLAGS_TRANSPARENT_PAYLOAD[rip]
	or	eax, DWORD PTR TC_FLAGS_CAL0[rip]
	or	eax, DWORD PTR TC_FLAGS_PACKET[rip]
	or	eax, DWORD PTR TC_FLAGS_TYPE_UBR[rip]
	or	eax, 268435456
	mov	DWORD PTR 4[r8], eax
.L22:
	mov	eax, r13d
	mov	rdi, QWORD PTR 8[rsp]
	xor	ecx, ecx
	mov	QWORD PTR 24[rsp], r8
	sal	eax, 4
	mov	WORD PTR 38[rsp], cx
	mov	WORD PTR 8[r8], ax
	call	atm_pcr_goal@PLT
	mov	edi, DWORD PTR FS_DEBUG_OPEN[rip]
	lea	rsi, .LC8[rip]
	mov	edx, eax
	mov	DWORD PTR 8[rsp], eax
	xor	eax, eax
	call	fs_dprintk@PLT
	mov	rdi, rbp
	call	IS_FS50@PLT
	mov	r9d, DWORD PTR 8[rsp]
	mov	r8, QWORD PTR 24[rsp]
	test	rax, rax
	je	.L23
	cmp	r9d, 122264
	jle	.L25
	mov	r9d, 122264
.L24:
	mov	esi, DWORD PTR ROUND_UP[rip]
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L23:
	cmp	r9d, 366792
	jg	.L40
.L25:
	test	r9d, r9d
	je	.L81
	jns	.L24
	mov	esi, DWORD PTR ROUND_DOWN[rip]
	neg	r9d
.L29:
	xor	ecx, ecx
	mov	edi, r9d
	lea	rdx, 38[rsp]
	mov	QWORD PTR 24[rsp], r8
	mov	DWORD PTR 8[rsp], r9d
	call	make_rate@PLT
	mov	r9d, DWORD PTR 8[rsp]
	mov	r8, QWORD PTR 24[rsp]
	test	eax, eax
	mov	r14d, eax
	jne	.L82
.L28:
	mov	edi, DWORD PTR FS_DEBUG_OPEN[rip]
	mov	edx, r9d
	xor	eax, eax
	mov	QWORD PTR 8[rsp], r8
	lea	rsi, .LC8[rip]
	call	fs_dprintk@PLT
	mov	r8, QWORD PTR 8[rsp]
	movzx	edx, WORD PTR 38[rsp]
	mov	edi, DWORD PTR FS_DEBUG_OPEN[rip]
	mov	rax, QWORD PTR 16[r8]
	or	dh, 64
	mov	WORD PTR [rax], dx
	xor	edx, edx
	mov	DWORD PTR 2[rax], 0
	mov	WORD PTR 6[rax], dx
	mov	rax, QWORD PTR 24[r8]
	mov	QWORD PTR 32[r8], 0
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	QWORD PTR 16[rax], 0
	test	DWORD PTR fs_debug[rip], edi
	jne	.L83
.L30:
	mov	rdi, r8
	lea	r14, 8[rbp]
	call	virt_to_bus@PLT
	xor	r9d, r9d
	xor	r8d, r8d
	mov	rsi, r14
	mov	ecx, eax
	movsx	eax, WORD PTR [r12]
	mov	edx, DWORD PTR QE_CMD_CONFIG_TX[rip]
	mov	rdi, rbp
	or	edx, DWORD PTR QE_CMD_IMM_INQ[rip]
	or	edx, eax
	call	submit_command@PLT
	movsx	eax, WORD PTR [r12]
	mov	rsi, r14
	mov	rdi, rbp
	mov	edx, DWORD PTR QE_CMD_TX_EN[rip]
	xor	r9d, r9d
	xor	r8d, r8d
	xor	ecx, ecx
	or	edx, DWORD PTR QE_CMD_IMM_INQ[rip]
	or	edx, eax
	call	submit_command@PLT
	mov	rsi, QWORD PTR 32[rbp]
	movsx	edi, WORD PTR [r12]
	call	set_bit@PLT
.L18:
	mov	rdi, QWORD PTR 16[rsp]
	call	DO_DIRECTION@PLT
	test	rax, rax
	je	.L31
	movsx	rdx, WORD PTR [r12]
	mov	rax, QWORD PTR 16[rbp]
	mov	r8, QWORD PTR 24[rbx]
	mov	QWORD PTR [rax+rdx*8], rbx
	mov	eax, DWORD PTR FS_NR_FREE_POOLS[rip]
	mov	rdi, rdx
	test	eax, eax
	jle	.L32
	lea	esi, -1[rax]
	mov	rcx, QWORD PTR 24[rbp]
	xor	eax, eax
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L84:
	lea	rdx, 1[rax]
	cmp	rsi, rax
	je	.L32
	mov	rax, rdx
.L34:
	mov	edx, eax
	cmp	QWORD PTR [rcx+rax*8], r8
	jl	.L84
	mov	eax, DWORD PTR 16[rbx]
	lea	r14, 8[rbp]
	cmp	eax, 128
	je	.L36
	sub	eax, 129
	cmp	eax, 1
	ja	.L37
	mov	ecx, DWORD PTR RC_FLAGS_TRANSP[rip]
.L73:
	imul	edx, DWORD PTR RC_FLAGS_BFPS_BFP[rip]
	xor	r9d, r9d
	xor	r8d, r8d
	mov	rsi, r14
	or	ecx, DWORD PTR RC_FLAGS_RXBM_PSB[rip]
	or	ecx, edx
	mov	edx, DWORD PTR QE_CMD_CONFIG_RX[rip]
	or	edx, DWORD PTR QE_CMD_IMM_INQ[rip]
	or	edx, edi
	mov	rdi, rbp
	call	submit_command@PLT
.L37:
	mov	rdi, rbp
	call	IS_FS50@PLT
	test	rax, rax
	jne	.L85
.L35:
	movsx	eax, WORD PTR [r12]
	mov	edx, DWORD PTR QE_CMD_RX_EN[rip]
	xor	r9d, r9d
	xor	ecx, ecx
	or	edx, DWORD PTR QE_CMD_IMM_INQ[rip]
	xor	r8d, r8d
	mov	rsi, r14
	mov	rdi, rbp
	or	edx, eax
	call	submit_command@PLT
.L31:
	mov	edi, DWORD PTR ATM_VF_READY[rip]
	mov	rsi, r15
	xor	r14d, r14d
	call	set_bit@PLT
	xor	eax, eax
	call	func_exit@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L78:
	mov	edi, DWORD PTR ATM_VF_ADDR[rip]
	mov	rsi, r15
	call	clear_bit@PLT
	mov	r14d, DWORD PTR ENOMEM[rip]
	neg	r14d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	movsx	ecx, WORD PTR FS155_VCI_BITS[rip]
	lea	rdi, 24[rbx]
	sal	r14d, cl
	or	r14d, r13d
	mov	WORD PTR [r12], r14w
	call	DO_DIRECTION@PLT
	test	rax, rax
	je	.L14
	movsx	rdx, WORD PTR [r12]
	mov	rax, QWORD PTR 16[rbp]
	cmp	QWORD PTR [rax+rdx*8], 0
	je	.L14
.L15:
	lea	rdi, .LC3[rip]
	xor	eax, eax
	call	printk@PLT
	mov	r14d, DWORD PTR EBUSY[rip]
	neg	r14d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L40:
	mov	r9d, 366792
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L81:
	mov	rdi, rbp
	mov	QWORD PTR 24[rsp], r8
	mov	DWORD PTR 8[rsp], r9d
	call	IS_FS50@PLT
	mov	r9d, DWORD PTR 8[rsp]
	mov	r8, QWORD PTR 24[rsp]
	cmp	rax, 1
	sbb	eax, eax
	and	ax, 779
	add	ax, 25022
	mov	WORD PTR 38[rsp], ax
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L14:
	lea	rdi, 32[rbx]
	call	DO_DIRECTION@PLT
	test	rax, rax
	jne	.L86
.L16:
	movsx	edx, WORD PTR [r12]
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L79:
	mov	eax, DWORD PTR 0[rbp]
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L36:
	mov	ecx, DWORD PTR RC_FLAGS_AAL5[rip]
	jmp	.L73
	.p2align 4,,10
	.p2align 3
.L85:
	movsx	ecx, WORD PTR [r12]
	xor	r9d, r9d
	movsx	r8d, r13w
	mov	rsi, r14
	mov	edx, DWORD PTR QE_CMD_REG_WR[rip]
	mov	rdi, rbp
	or	edx, DWORD PTR QE_CMD_IMM_INQ[rip]
	sub	ecx, -128
	call	submit_command@PLT
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L21:
	lea	rdi, .LC7[rip]
	xor	eax, eax
	mov	QWORD PTR 24[rsp], r8
	call	printk@PLT
	mov	r8, QWORD PTR 24[rsp]
	mov	DWORD PTR 4[r8], 0
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L20:
	mov	eax, DWORD PTR TC_FLAGS_AAL5[rip]
	or	eax, DWORD PTR TC_FLAGS_PACKET[rip]
	or	eax, DWORD PTR TC_FLAGS_TYPE_CBR[rip]
	or	eax, DWORD PTR TC_FLAGS_CAL0[rip]
	mov	DWORD PTR 4[r8], eax
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L83:
	lea	rsi, .LC9[rip]
	xor	eax, eax
	call	fs_dprintk@PLT
	mov	r8, QWORD PTR 8[rsp]
	mov	esi, 56
	mov	rdi, r8
	call	my_hd@PLT
	mov	r8, QWORD PTR 8[rsp]
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L32:
	mov	edi, DWORD PTR FS_DEBUG_OPEN[rip]
	mov	rdx, r8
	lea	rsi, .LC10[rip]
	xor	eax, eax
	call	fs_dprintk@PLT
	movsx	rdx, WORD PTR [r12]
	mov	rax, QWORD PTR 16[rbp]
	mov	rdi, r12
	mov	QWORD PTR [rax+rdx*8], 0
	call	kfree@PLT
	jmp	.L74
	.p2align 4,,10
	.p2align 3
.L82:
	mov	rdi, r8
	call	kfree@PLT
	jmp	.L1
.L80:
	mov	edi, DWORD PTR FS_DEBUG_OPEN[rip]
	lea	rsi, .LC6[rip]
	xor	eax, eax
	call	fs_dprintk@PLT
	mov	r14d, DWORD PTR ENOMEM[rip]
	neg	r14d
	jmp	.L1
.L86:
	mov	rsi, QWORD PTR 32[rbp]
	movsx	rdi, WORD PTR [r12]
	call	test_bit@PLT
	test	rax, rax
	je	.L16
	jmp	.L15
.L77:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	fs_open, .-fs_open
	.comm	fs_debug,4,4
	.comm	TC_FLAGS_TYPE_UBR,4,4
	.comm	TC_FLAGS_TYPE_CBR,4,4
	.comm	TC_FLAGS_TRANSPARENT_PAYLOAD,4,4
	.comm	TC_FLAGS_PACKET,4,4
	.comm	TC_FLAGS_CAL0,4,4
	.comm	TC_FLAGS_AAL5,4,4
	.comm	ROUND_UP,4,4
	.comm	ROUND_DOWN,4,4
	.comm	RC_FLAGS_TRANSP,4,4
	.comm	RC_FLAGS_RXBM_PSB,4,4
	.comm	RC_FLAGS_BFPS_BFP,4,4
	.comm	RC_FLAGS_AAL5,4,4
	.comm	QE_CMD_TX_EN,4,4
	.comm	QE_CMD_RX_EN,4,4
	.comm	QE_CMD_REG_WR,4,4
	.comm	QE_CMD_IMM_INQ,4,4
	.comm	QE_CMD_CONFIG_TX,4,4
	.comm	QE_CMD_CONFIG_RX,4,4
	.comm	GFP_KERNEL,4,4
	.comm	FS_NR_FREE_POOLS,4,4
	.comm	FS_DEBUG_OPEN,4,4
	.comm	FS_DEBUG_ALLOC,4,4
	.comm	FS155_VCI_BITS,2,2
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	EBUSY,4,4
	.comm	ATM_VPI_UNSPEC,4,4
	.comm	ATM_VF_READY,4,4
	.comm	ATM_VF_PARTIAL,8,8
	.comm	ATM_VF_ADDR,4,4
	.comm	ATM_VCI_UNSPEC,2,2
	.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_firestream.c_fs_open.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"fs: open on dev: %p, vcc at %p\012\000"
	.align	2
.LC1:
	.ascii	"fs: (itf %d): open %d.%d\012\000"
	.align	2
.LC2:
	.ascii	"Alloc VCC: %p(%Zd)\012\000"
	.align	2
.LC3:
	.ascii	"Channel is in use for FS155.\012\000"
	.align	2
.LC4:
	.ascii	"OK. Allocated channel %x(%d).\012\000"
	.align	2
.LC5:
	.ascii	"Alloc tc: %p(%Zd)\012\000"
	.align	2
.LC6:
	.ascii	"fs: can't alloc transmit_config.\012\000"
	.align	2
.LC7:
	.ascii	"Unknown aal: %d\012\000"
	.align	2
.LC8:
	.ascii	"pcr = %d.\012\000"
	.align	2
.LC9:
	.ascii	"TX config record:\012\000"
	.align	2
.LC10:
	.ascii	"No free pool fits sdu: %d.\012\000"
	.align	2
.LC11:
	.ascii	"No more free channels for FS50..\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fs_open, %function
fs_open:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	ldr	r3, .L89
	sub	sp, sp, #28
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	ldr	r8, [r0, #4]
	ldrsh	r9, [r0]
	bl	func_enter
	ldr	r0, [r4, #28]
	bl	FS_DEV
	ldr	r7, .L89+4
	mov	r3, r4
	mov	r2, r0
	mov	r5, r0
	ldr	r1, .L89+8
	ldr	r0, [r7]
	bl	fs_dprintk
	ldr	r3, .L89+12
	ldr	r3, [r3]
	cmp	r3, r8
	beq	.L2
	ldr	r3, .L89+16
	ldrsh	r3, [r3]
	cmp	r3, r9
	bne	.L78
.L2:
	ldr	r3, [r4, #12]
	sub	r3, r3, #128
	cmp	r3, #1
	bls	.L3
.L76:
	ldr	r3, .L89+20
	ldr	r3, [r3]
	rsb	r3, r3, #0
.L1:
	ldr	r2, .L89
	ldr	r1, [r2]
	ldr	r2, [sp, #20]
	eors	r1, r2, r1
	mov	r2, #0
	bne	.L79
	mov	r0, r3
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L78:
	ldr	r3, .L89+24
	add	r1, r4, #8
	ldr	r0, [r3]
	bl	set_bit
	ldr	r3, [r4, #12]
	sub	r3, r3, #128
	cmp	r3, #1
	bhi	.L76
.L3:
	ldr	r2, [r4, #28]
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	str	r3, [sp]
	ldrsh	r3, [r4]
	ldr	r1, .L89+28
	ldr	r0, [r7]
	bl	fs_dprintk
	ldr	r3, .L89+32
	mov	r0, #32
	ldr	r1, [r3]
	bl	kmalloc
	mov	r6, r0
	ldr	r3, .L89+36
	mov	r2, r0
	ldr	r1, .L89+40
	ldr	r0, [r3]
	mov	r3, #32
	bl	fs_dprintk
	cmp	r6, #0
	add	r10, r4, #8
	beq	.L80
	mov	r3, #0
	str	r6, [r4, #24]
	add	r0, r6, #24
	str	r3, [r6, #28]
	bl	init_waitqueue_head
	ldr	r3, .L89+44
	mov	r1, r10
	ldr	r0, [r3]
	bl	test_bit
	subs	r3, r0, #0
	str	r3, [sp, #12]
	add	r3, r4, #16
	add	fp, r4, #20
	str	r3, [sp, #8]
	bne	.L6
	mov	r0, r5
	bl	IS_FS50
	cmp	r0, #0
	beq	.L7
	mov	r2, r4
	ldr	r3, [r5]
	mov	r4, r5
	mov	r9, #33
	mov	r5, r2
.L12:
	cmp	r3, #31
	ldrgt	r3, [sp, #12]
	ldr	r0, [sp, #8]
	strgt	r3, [r4]
	bl	DO_DIRECTION
	cmp	r0, #0
	beq	.L9
	ldr	r3, [r4]
	ldr	r1, [r4, #12]
	ldr	r1, [r1, r3, lsl #2]
	cmp	r1, #0
	beq	.L9
.L10:
	add	r3, r3, #1
	subs	r9, r9, #1
	str	r3, [r4]
	bne	.L12
	ldr	r0, .L89+48
	bl	printk
	ldr	r3, .L89+52
	ldr	r3, [r3]
	rsb	r3, r3, #0
	b	.L1
.L9:
	mov	r0, fp
	bl	DO_DIRECTION
	cmp	r0, #0
	beq	.L11
	ldr	r1, [r4, #20]
	ldr	r0, [r4]
	bl	test_bit
	cmp	r0, #0
	bne	.L81
.L11:
	mov	r3, r5
	mov	r5, r4
	ldr	r1, [r5]
	ldrsh	r2, [r5, #4]
	mov	r4, r3
	lsl	r3, r1, #16
	asr	r3, r3, #16
	and	r2, r2, r1
	strh	r3, [r6]	@ movhi
	str	r2, [r5]
.L17:
	mov	r2, r3
	ldr	r1, .L89+56
	ldr	r0, [r7]
	bl	fs_dprintk
.L6:
	mov	r0, fp
	bl	DO_DIRECTION
	cmp	r0, #0
	beq	.L18
	ldr	r3, .L89+32
	mov	r0, #32
	ldr	r1, [r3]
	bl	kmalloc
	mov	r9, r0
	ldr	r3, .L89+36
	mov	r2, r9
	ldr	r0, [r3]
	ldr	r1, .L89+60
	mov	r3, #32
	bl	fs_dprintk
	cmp	r9, #0
	beq	.L82
	ldr	r1, [r4, #12]
	cmp	r1, #128
	beq	.L20
	sub	r3, r1, #129
	cmp	r3, #1
	bhi	.L21
	ldr	r3, .L89+64
	ldr	r2, .L89+68
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, .L89+72
	orr	r3, r3, r2
	ldr	r2, .L89+76
	ldr	r1, [r1]
	ldr	r2, [r2]
	orr	r3, r3, r1
	orr	r3, r3, r2
	orr	r3, r3, #268435456
	str	r3, [r9, #4]
.L22:
	mov	r2, #0
	lsl	r3, r8, #4
	strh	r3, [r9, #8]	@ movhi
	mov	r0, fp
	strh	r2, [sp, #18]	@ movhi
	bl	atm_pcr_goal
	ldr	r1, .L89+80
	mov	r2, r0
	mov	fp, r0
	ldr	r0, [r7]
	bl	fs_dprintk
	mov	r0, r5
	bl	IS_FS50
	cmp	r0, #0
	beq	.L23
	ldr	r3, .L89+84
	cmp	fp, r3
	ble	.L25
.L40:
	mov	fp, r3
.L24:
	ldr	r3, .L89+88
	ldr	r1, [r3]
.L29:
	mov	r3, #0
	mov	r0, fp
	add	r2, sp, #18
	bl	make_rate
	subs	r3, r0, #0
	bne	.L83
.L28:
	mov	r2, fp
	ldr	r1, .L89+80
	ldr	r0, [r7]
	bl	fs_dprintk
	mov	r3, #0
	ldr	r2, .L89+92
	ldrh	r1, [sp, #18]
	ldr	ip, [r2]
	ldr	r2, [r9, #12]
	ldr	r0, [r7]
	orr	r1, r1, #16384
	strh	r1, [r2]	@ movhi
	ldr	r1, [r9, #16]
	tst	r0, ip
	strh	r3, [r2, #2]	@ movhi
	strh	r3, [r2, #4]	@ movhi
	strh	r3, [r2, #6]	@ movhi
	str	r3, [r9, #20]
	str	r3, [r1]
	str	r3, [r1, #4]
	str	r3, [r1, #8]
	bne	.L84
.L30:
	ldr	r3, .L89+96
	ldr	fp, .L89+100
	ldr	r2, [r3]
	ldr	r1, [fp]
	ldrsh	r3, [r6]
	orr	r2, r2, r1
	orr	r2, r2, r3
	mov	r0, r9
	str	r2, [sp, #12]
	mov	r9, #0
	bl	virt_to_bus
	ldr	r2, [sp, #12]
	mov	r3, r0
	add	r1, r5, #8
	mov	r0, r5
	str	r9, [sp, #4]
	str	r9, [sp]
	str	r1, [sp, #12]
	bl	submit_command
	ldr	r3, .L89+104
	ldr	r0, [fp]
	ldr	r3, [r3]
	ldrsh	r2, [r6]
	orr	r3, r3, r0
	ldr	r1, [sp, #12]
	orr	r2, r3, r2
	mov	r0, r5
	mov	r3, r9
	str	r9, [sp, #4]
	str	r9, [sp]
	bl	submit_command
	ldr	r1, [r5, #20]
	ldrsh	r0, [r6]
	bl	set_bit
.L18:
	ldr	r0, [sp, #8]
	bl	DO_DIRECTION
	cmp	r0, #0
	beq	.L31
	ldr	r3, .L89+108
	ldrsh	lr, [r6]
	ldr	ip, [r3]
	ldr	r3, [r5, #12]
	cmp	ip, #0
	ldr	r2, [r4, #16]
	str	r4, [r3, lr, lsl #2]
	ble	.L32
	ldr	r1, [r5, #16]
	mov	r3, #0
	sub	r1, r1, #4
	b	.L34
.L85:
	add	r3, r3, #1
	cmp	ip, r3
	beq	.L32
.L34:
	ldr	r0, [r1, #4]!
	cmp	r0, r2
	blt	.L85
	ldr	r2, [r4, #12]
	add	r4, r5, #8
	cmp	r2, #128
	beq	.L36
	sub	r2, r2, #129
	cmp	r2, #1
	ldrhi	fp, .L89+100
	bhi	.L37
	mov	r1, #0
	ldr	r2, .L89+112
	ldr	r0, .L89+116
.L75:
	ldr	r2, [r2]
	ldr	ip, .L89+120
	ldr	r0, [r0]
	ldr	ip, [ip]
	mul	r3, r2, r3
	ldr	fp, .L89+100
	ldr	r2, .L89+124
	orr	r0, r0, ip
	ldr	r2, [r2]
	ldr	ip, [fp]
	orr	r3, r0, r3
	orr	r2, r2, ip
	str	r1, [sp, #4]
	str	r1, [sp]
	mov	r0, r5
	mov	r1, r4
	orr	r2, r2, lr
	bl	submit_command
.L37:
	mov	r0, r5
	bl	IS_FS50
	cmp	r0, #0
	bne	.L86
.L35:
	mov	r3, #0
	ldr	r1, .L89+128
	ldr	r2, [fp]
	ldr	r1, [r1]
	ldrsh	ip, [r6]
	orr	r2, r1, r2
	mov	r0, r5
	mov	r1, r4
	orr	r2, r2, ip
	str	r3, [sp, #4]
	str	r3, [sp]
	bl	submit_command
.L31:
	ldr	r3, .L89+132
	mov	r1, r10
	ldr	r0, [r3]
	bl	set_bit
	mov	r3, #0
	str	r3, [sp, #8]
	bl	func_exit
	ldr	r3, [sp, #8]
	b	.L1
.L23:
	ldr	r3, .L89+136
	cmp	fp, r3
	bgt	.L40
.L25:
	cmp	fp, #0
	beq	.L87
	bge	.L24
	ldr	r3, .L89+140
	rsb	fp, fp, #0
	ldr	r1, [r3]
	b	.L29
.L80:
	ldr	r3, .L89+24
	mov	r1, r10
	ldr	r0, [r3]
	bl	clear_bit
	ldr	r3, .L89+144
	ldr	r3, [r3]
	rsb	r3, r3, #0
	b	.L1
.L7:
	ldr	r3, .L89+148
	add	r0, r4, #16
	ldrsh	r3, [r3]
	orr	r9, r8, r9, lsl r3
	strh	r9, [r6]	@ movhi
	bl	DO_DIRECTION
	cmp	r0, #0
	beq	.L14
	ldrsh	r2, [r6]
	ldr	r3, [r5, #12]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	beq	.L14
.L15:
	ldr	r0, .L89+152
	bl	printk
	ldr	r3, .L89+52
	ldr	r3, [r3]
	rsb	r3, r3, #0
	b	.L1
.L87:
	mov	r0, r5
	bl	IS_FS50
	ldr	r2, .L89+156
	cmp	r0, #0
	ldr	r3, .L89+160
	moveq	r3, r2
	strh	r3, [sp, #18]	@ movhi
	b	.L28
.L14:
	mov	r0, fp
	bl	DO_DIRECTION
	cmp	r0, #0
	bne	.L88
.L16:
	ldrsh	r3, [r6]
	b	.L17
.L81:
	ldr	r3, [r4]
	b	.L10
.L36:
	mov	r1, #0
	ldr	r2, .L89+112
	ldr	r0, .L89+164
	b	.L75
.L86:
	mov	r1, #0
	ldr	r2, .L89+168
	ldrsh	r3, [r6]
	ldr	r0, [r2]
	lsl	r8, r8, #16
	ldr	r2, [fp]
	asr	r8, r8, #16
	orr	r2, r0, r2
	str	r1, [sp, #4]
	mov	r0, r5
	mov	r1, r4
	str	r8, [sp]
	add	r3, r3, #128
	bl	submit_command
	b	.L35
.L21:
	ldr	r0, .L89+172
	bl	printk
	mov	r3, #0
	str	r3, [r9, #4]
	b	.L22
.L20:
	ldr	r3, .L89+176
	ldr	r2, .L89+72
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, .L89+180
	orr	r3, r3, r2
	ldr	r2, .L89+68
	ldr	r1, [r1]
	ldr	r2, [r2]
	orr	r3, r3, r1
	orr	r3, r3, r2
	str	r3, [r9, #4]
	b	.L22
.L84:
	ldr	r1, .L89+184
	bl	fs_dprintk
	mov	r1, #32
	mov	r0, r9
	bl	my_hd
	b	.L30
.L32:
	ldr	r0, [r7]
	ldr	r1, .L89+188
	bl	fs_dprintk
	mov	r1, #0
	ldr	r3, [r5, #12]
	ldrsh	r2, [r6]
	mov	r0, r6
	str	r1, [r3, r2, lsl #2]
	bl	kfree
	b	.L76
.L83:
	mov	r0, r9
	str	r3, [sp, #8]
	bl	kfree
	ldr	r3, [sp, #8]
	b	.L1
.L82:
	ldr	r0, [r7]
	ldr	r1, .L89+192
	bl	fs_dprintk
	ldr	r3, .L89+144
	ldr	r3, [r3]
	rsb	r3, r3, #0
	b	.L1
.L88:
	ldr	r1, [r5, #20]
	ldrsh	r0, [r6]
	bl	test_bit
	cmp	r0, #0
	beq	.L16
	b	.L15
.L79:
	bl	__stack_chk_fail
.L90:
	.align	2
.L89:
	.word	.LC12
	.word	FS_DEBUG_OPEN
	.word	.LC0
	.word	ATM_VPI_UNSPEC
	.word	ATM_VCI_UNSPEC
	.word	EINVAL
	.word	ATM_VF_ADDR
	.word	.LC1
	.word	GFP_KERNEL
	.word	FS_DEBUG_ALLOC
	.word	.LC2
	.word	ATM_VF_PARTIAL
	.word	.LC11
	.word	EBUSY
	.word	.LC4
	.word	.LC5
	.word	TC_FLAGS_TRANSPARENT_PAYLOAD
	.word	TC_FLAGS_CAL0
	.word	TC_FLAGS_PACKET
	.word	TC_FLAGS_TYPE_UBR
	.word	.LC8
	.word	122264
	.word	ROUND_UP
	.word	fs_debug
	.word	QE_CMD_CONFIG_TX
	.word	QE_CMD_IMM_INQ
	.word	QE_CMD_TX_EN
	.word	FS_NR_FREE_POOLS
	.word	RC_FLAGS_BFPS_BFP
	.word	RC_FLAGS_TRANSP
	.word	RC_FLAGS_RXBM_PSB
	.word	QE_CMD_CONFIG_RX
	.word	QE_CMD_RX_EN
	.word	ATM_VF_READY
	.word	366792
	.word	ROUND_DOWN
	.word	ENOMEM
	.word	FS155_VCI_BITS
	.word	.LC3
	.word	25801
	.word	25022
	.word	RC_FLAGS_AAL5
	.word	QE_CMD_REG_WR
	.word	.LC7
	.word	TC_FLAGS_AAL5
	.word	TC_FLAGS_TYPE_CBR
	.word	.LC9
	.word	.LC10
	.word	.LC6
	.size	fs_open, .-fs_open
	.comm	fs_debug,4,4
	.comm	TC_FLAGS_TYPE_UBR,4,4
	.comm	TC_FLAGS_TYPE_CBR,4,4
	.comm	TC_FLAGS_TRANSPARENT_PAYLOAD,4,4
	.comm	TC_FLAGS_PACKET,4,4
	.comm	TC_FLAGS_CAL0,4,4
	.comm	TC_FLAGS_AAL5,4,4
	.comm	ROUND_UP,4,4
	.comm	ROUND_DOWN,4,4
	.comm	RC_FLAGS_TRANSP,4,4
	.comm	RC_FLAGS_RXBM_PSB,4,4
	.comm	RC_FLAGS_BFPS_BFP,4,4
	.comm	RC_FLAGS_AAL5,4,4
	.comm	QE_CMD_TX_EN,4,4
	.comm	QE_CMD_RX_EN,4,4
	.comm	QE_CMD_REG_WR,4,4
	.comm	QE_CMD_IMM_INQ,4,4
	.comm	QE_CMD_CONFIG_TX,4,4
	.comm	QE_CMD_CONFIG_RX,4,4
	.comm	GFP_KERNEL,4,4
	.comm	FS_NR_FREE_POOLS,4,4
	.comm	FS_DEBUG_OPEN,4,4
	.comm	FS_DEBUG_ALLOC,4,4
	.comm	FS155_VCI_BITS,2,2
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	EBUSY,4,4
	.comm	ATM_VPI_UNSPEC,4,4
	.comm	ATM_VF_READY,4,4
	.comm	ATM_VF_PARTIAL,4,4
	.comm	ATM_VF_ADDR,4,4
	.comm	ATM_VCI_UNSPEC,2,2
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
