	.file	"extr_ambassador.c_amb_open.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"amb_open %x %x"
.LC1:
	.string	"VPI/VCI out of range: %hd/%d"
.LC2:
	.string	"AAL not supported"
.LC3:
	.string	"TX:"
.LC4:
	.string	"request for non-UBR denied"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC5:
	.string	"tx_rate_bits=%hx, tx_vc_bits=%hx"
	.section	.rodata.str1.1
.LC6:
	.string	"RX:"
	.section	.rodata.str1.8
	.align 8
.LC7:
	.string	"chose pool %hu (max_sdu %u <= %u)"
	.align 8
.LC8:
	.string	"no pool suitable for VC (RX max_sdu %d is too large)"
	.section	.rodata.str1.1
.LC9:
	.string	"out of memory!"
	.text
	.p2align 4
	.type	amb_open, @function
amb_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, 136
	.cfi_def_cfa_offset 192
	mov	edi, DWORD PTR 64[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 120[rsp], rax
	xor	eax, eax
	mov	BYTE PTR 47[rsp], -1
	call	AMB_DEV@PLT
	movsx	r12d, WORD PTR [rbx]
	mov	r15d, DWORD PTR 4[rbx]
	lea	rsi, .LC0[rip]
	mov	edi, DWORD PTR DBG_FLOW[rip]
	mov	rbp, rax
	or	edi, DWORD PTR DBG_VCC[rip]
	xor	eax, eax
	mov	ecx, r15d
	mov	edx, r12d
	call	PRINTD@PLT
	test	r12w, r12w
	js	.L2
	mov	ecx, DWORD PTR NUM_VPI_BITS[rip]
	mov	eax, 1
	mov	edx, eax
	sal	edx, cl
	cmp	r12d, edx
	jge	.L2
	test	r15d, r15d
	js	.L2
	mov	ecx, DWORD PTR NUM_VCI_BITS[rip]
	sal	eax, cl
	cmp	eax, r15d
	jle	.L2
	mov	edi, DWORD PTR DBG_QOS[rip]
	mov	rax, QWORD PTR ATM_AAL5[rip]
	cmp	QWORD PTR 24[rbx], rax
	jne	.L46
	xor	eax, eax
	lea	rsi, .LC3[rip]
	call	PRINTD@PLT
	mov	eax, DWORD PTR 48[rbx]
	cmp	eax, DWORD PTR ATM_NONE[rip]
	je	.L35
	cmp	eax, 128
	jne	.L44
	lea	rdi, 48[rbx]
	call	atm_pcr_goal@PLT
	mov	r8d, eax
	test	eax, eax
	je	.L47
	mov	esi, DWORD PTR round_up[rip]
	jns	.L11
	mov	esi, DWORD PTR round_down[rip]
	neg	r8d
.L11:
	xor	ecx, ecx
	lea	rdx, 47[rsp]
	mov	edi, r8d
	call	make_rate@PLT
	test	eax, eax
	jne	.L1
	movzx	eax, BYTE PTR TX_FRAME_CAPPED[rip]
	movzx	r14d, BYTE PTR TX_UBR_CAPPED[rip]
	movzx	r8d, BYTE PTR 47[rsp]
	mov	BYTE PTR 8[rsp], al
.L9:
	mov	edi, DWORD PTR DBG_QOS[rip]
	movzx	ecx, r14b
	mov	edx, r8d
	xor	eax, eax
	lea	rsi, .LC5[rip]
	call	PRINTD@PLT
.L6:
	mov	edi, DWORD PTR DBG_QOS[rip]
	lea	rsi, .LC6[rip]
	xor	eax, eax
	call	PRINTD@PLT
	mov	eax, DWORD PTR ATM_NONE[rip]
	cmp	DWORD PTR 32[rbx], eax
	je	.L36
	movzx	edx, BYTE PTR NUM_RX_POOLS[rip]
	mov	r10, QWORD PTR 40[rbx]
	test	dl, dl
	je	.L13
	mov	rax, QWORD PTR 24[rbp]
	mov	ecx, r10d
	xor	r12d, r12d
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L14:
	add	r12d, 1
	add	rax, 16
	cmp	r12b, dl
	je	.L13
.L17:
	mov	r8d, DWORD PTR [rax]
	cmp	ecx, r8d
	ja	.L14
	mov	edi, DWORD PTR DBG_VCC[rip]
	xor	eax, eax
	movzx	edx, r12b
	mov	rcx, r10
	or	edi, DWORD PTR DBG_QOS[rip]
	lea	rsi, .LC7[rip]
	or	edi, DWORD PTR DBG_POOL[rip]
	call	PRINTD@PLT
	cmp	r12b, BYTE PTR NUM_RX_POOLS[rip]
	je	.L48
	cmp	DWORD PTR 32[rbx], 128
	jne	.L44
.L12:
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 2
	call	kmalloc@PLT
	mov	r13, rax
	test	rax, rax
	je	.L49
	mov	QWORD PTR 16[rbx], rax
	mov	edi, DWORD PTR ATM_VF_ADDR[rip]
	lea	rax, 8[rbx]
	mov	rsi, rax
	mov	QWORD PTR 16[rsp], rax
	call	set_bit@PLT
	mov	eax, DWORD PTR ATM_NONE[rip]
	cmp	DWORD PTR 48[rbx], eax
	je	.L19
	movzx	eax, BYTE PTR 8[rsp]
	mov	rdi, rbp
	mov	BYTE PTR 0[r13], al
	call	mutex_lock@PLT
	movzx	eax, r14b
	movsx	rsi, r15d
	movzx	r14d, r15b
	mov	DWORD PTR 24[rsp], eax
	mov	rax, QWORD PTR 8[rbp]
	mov	QWORD PTR 8[rsp], rsi
	cmp	QWORD PTR [rax+rsi*8], 0
	mov	DWORD PTR 28[rsp], r14d
	je	.L20
	movzx	edi, BYTE PTR SRB_MODIFY_VC_RATE[rip]
	call	cpu_to_be32@PLT
	mov	edi, r14d
	lea	r14, 48[rsp]
	mov	QWORD PTR 104[rsp], rax
	call	cpu_to_be32@PLT
	movzx	ecx, BYTE PTR SRB_RATE_SHIFT[rip]
	mov	QWORD PTR 96[rsp], rax
	movzx	eax, BYTE PTR 47[rsp]
	sal	eax, cl
	movzx	edi, al
	call	cpu_to_be32@PLT
	mov	QWORD PTR 88[rsp], rax
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L22:
	xor	eax, eax
	call	schedule@PLT
.L21:
	mov	rsi, r14
	mov	rdi, rbp
	call	command_do@PLT
	test	rax, rax
	jne	.L22
	movzx	edi, BYTE PTR SRB_MODIFY_VC_FLAGS[rip]
	call	cpu_to_be32@PLT
	mov	edi, DWORD PTR 28[rsp]
	mov	QWORD PTR 104[rsp], rax
	call	cpu_to_be32@PLT
	mov	rsi, QWORD PTR 8[rsp]
	mov	QWORD PTR 80[rsp], rax
	mov	rax, QWORD PTR 8[rbp]
	mov	rdi, QWORD PTR [rax+rsi*8]
	call	AMB_VCC@PLT
	movzx	ecx, BYTE PTR SRB_POOL_SHIFT[rip]
	mov	edi, DWORD PTR 24[rsp]
	movzx	eax, BYTE PTR [rax]
	sal	eax, cl
	movzx	ecx, BYTE PTR SRB_FLAGS_SHIFT[rip]
	sal	edi, cl
	or	eax, edi
	movzx	edi, al
	call	cpu_to_be32@PLT
	mov	QWORD PTR 72[rsp], rax
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L24:
	xor	eax, eax
	call	schedule@PLT
.L23:
	mov	rsi, r14
	mov	rdi, rbp
	call	command_do@PLT
	test	rax, rax
	jne	.L24
.L27:
	mov	rax, QWORD PTR 16[rbp]
	mov	rsi, QWORD PTR 8[rsp]
	mov	rdi, rbp
	mov	DWORD PTR [rax+rsi*8], 1
	call	mutex_unlock@PLT
	mov	eax, DWORD PTR ATM_NONE[rip]
.L19:
	cmp	DWORD PTR 32[rbx], eax
	je	.L28
	mov	BYTE PTR 1[r13], r12b
	mov	rdi, rbp
	movsx	r13, r15d
	movzx	r14d, r15b
	call	mutex_lock@PLT
	movzx	eax, r12b
	movzx	r12d, r12b
	mov	rdi, rbp
	sal	rax, 4
	add	rax, QWORD PTR 24[rbp]
	mov	esi, r12d
	mov	rdx, QWORD PTR 8[rax]
	test	rdx, rdx
	cmove	rdx, QWORD PTR rx_lats[rip]
	add	rdx, 1
	mov	QWORD PTR 8[rax], rdx
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	call	fill_rx_pool@PLT
	mov	rax, QWORD PTR 16[rbp]
	lea	rdx, 0[0+r13*8]
	mov	QWORD PTR 8[rsp], rdx
	mov	eax, DWORD PTR [rax+r13*8]
	test	eax, eax
	je	.L30
	movzx	edi, BYTE PTR SRB_MODIFY_VC_FLAGS[rip]
	call	cpu_to_be32@PLT
	mov	edi, r14d
	mov	QWORD PTR 104[rsp], rax
	call	cpu_to_be32@PLT
	mov	rdx, QWORD PTR 8[rsp]
	movzx	ecx, BYTE PTR SRB_FLAGS_SHIFT[rip]
	mov	QWORD PTR 80[rsp], rax
	mov	rax, QWORD PTR 16[rbp]
	movzx	eax, BYTE PTR 4[rax+rdx]
	sal	eax, cl
	movzx	ecx, BYTE PTR SRB_POOL_SHIFT[rip]
	sal	r12d, cl
	or	eax, r12d
	movzx	edi, al
	call	cpu_to_be32@PLT
	mov	QWORD PTR 72[rsp], rax
.L31:
	lea	r14, 48[rsp]
	jmp	.L32
	.p2align 4,,10
	.p2align 3
.L33:
	xor	eax, eax
	call	schedule@PLT
.L32:
	mov	rsi, r14
	mov	rdi, rbp
	call	command_do@PLT
	test	rax, rax
	jne	.L33
	mov	rax, QWORD PTR 8[rbp]
	mov	rdi, rbp
	mov	QWORD PTR [rax+r13*8], rbx
	call	mutex_unlock@PLT
.L28:
	mov	rsi, QWORD PTR 16[rsp]
	mov	edi, DWORD PTR ATM_VF_READY[rip]
	call	set_bit@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edi, DWORD PTR DBG_WARN[rip]
	mov	ecx, r15d
	mov	edx, r12d
	xor	eax, eax
	or	edi, DWORD PTR DBG_VCC[rip]
	lea	rsi, .LC1[rip]
	call	PRINTD@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	mov	rsi, QWORD PTR 120[rsp]
	xor	rsi, QWORD PTR fs:40
	jne	.L50
	add	rsp, 136
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L46:
	.cfi_restore_state
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	PRINTD@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L44:
	mov	edi, DWORD PTR DBG_QOS[rip]
	lea	rsi, .LC4[rip]
	xor	eax, eax
	call	PRINTD@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L47:
	movzx	eax, BYTE PTR TX_FRAME_NOTCAP[rip]
	mov	BYTE PTR 47[rsp], 0
	movzx	r14d, BYTE PTR TX_UBR[rip]
	mov	BYTE PTR 8[rsp], al
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L35:
	mov	BYTE PTR 8[rsp], -1
	mov	r14d, -1
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L36:
	mov	r12d, -1
	jmp	.L12
.L30:
	movzx	edi, BYTE PTR SRB_OPEN_VC[rip]
	call	cpu_to_be32@PLT
	mov	edi, r14d
	mov	QWORD PTR 104[rsp], rax
	call	cpu_to_be32@PLT
	movzx	ecx, BYTE PTR SRB_POOL_SHIFT[rip]
	mov	QWORD PTR 64[rsp], rax
	sal	r12d, cl
	movzx	edi, r12b
	call	cpu_to_be32@PLT
	xor	edi, edi
	mov	QWORD PTR 56[rsp], rax
	call	cpu_to_be32@PLT
	mov	QWORD PTR 48[rsp], rax
	jmp	.L31
.L49:
	mov	edi, DWORD PTR KERN_ERR[rip]
	lea	rsi, .LC9[rip]
	call	PRINTK@PLT
	mov	eax, DWORD PTR ENOMEM[rip]
	neg	eax
	jmp	.L1
.L48:
	mov	r10, QWORD PTR 40[rbx]
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edi, DWORD PTR DBG_WARN[rip]
	mov	rdx, r10
	or	edi, DWORD PTR DBG_VCC[rip]
	xor	eax, eax
	or	edi, DWORD PTR DBG_QOS[rip]
	lea	rsi, .LC8[rip]
	or	edi, DWORD PTR DBG_POOL[rip]
	call	PRINTD@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
.L20:
	movzx	edi, BYTE PTR SRB_OPEN_VC[rip]
	call	cpu_to_be32@PLT
	mov	edi, DWORD PTR 28[rsp]
	mov	QWORD PTR 104[rsp], rax
	call	cpu_to_be32@PLT
	movzx	ecx, BYTE PTR SRB_FLAGS_SHIFT[rip]
	mov	r14d, DWORD PTR 24[rsp]
	mov	QWORD PTR 64[rsp], rax
	sal	r14d, cl
	movzx	edi, r14b
	lea	r14, 48[rsp]
	call	cpu_to_be32@PLT
	movzx	ecx, BYTE PTR SRB_RATE_SHIFT[rip]
	mov	QWORD PTR 56[rsp], rax
	movzx	eax, BYTE PTR 47[rsp]
	sal	eax, cl
	movzx	edi, al
	call	cpu_to_be32@PLT
	mov	QWORD PTR 48[rsp], rax
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L26:
	xor	eax, eax
	call	schedule@PLT
.L25:
	mov	rsi, r14
	mov	rdi, rbp
	call	command_do@PLT
	test	rax, rax
	jne	.L26
	jmp	.L27
.L50:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	amb_open, .-amb_open
	.comm	rx_lats,8,8
	.comm	round_up,4,4
	.comm	round_down,4,4
	.comm	pcr,8,8
	.comm	TX_UBR_CAPPED,1,1
	.comm	TX_UBR,1,1
	.comm	TX_FRAME_NOTCAP,1,1
	.comm	TX_FRAME_CAPPED,1,1
	.comm	SRB_RATE_SHIFT,1,1
	.comm	SRB_POOL_SHIFT,1,1
	.comm	SRB_OPEN_VC,1,1
	.comm	SRB_MODIFY_VC_RATE,1,1
	.comm	SRB_MODIFY_VC_FLAGS,1,1
	.comm	SRB_FLAGS_SHIFT,1,1
	.comm	NUM_VPI_BITS,4,4
	.comm	NUM_VCI_BITS,4,4
	.comm	NUM_RX_POOLS,1,1
	.comm	KERN_WARNING,4,4
	.comm	KERN_ERR,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	DBG_WARN,4,4
	.comm	DBG_VCC,4,4
	.comm	DBG_QOS,4,4
	.comm	DBG_POOL,4,4
	.comm	DBG_FLOW,4,4
	.comm	ATM_VPI_UNSPEC,2,2
	.comm	ATM_VF_READY,4,4
	.comm	ATM_VF_ADDR,4,4
	.comm	ATM_VCI_UNSPEC,4,4
	.comm	ATM_NONE,4,4
	.comm	ATM_AAL5,8,8
	.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_ambassador.c_amb_open.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"amb_open %x %x\000"
	.align	2
.LC1:
	.ascii	"VPI/VCI out of range: %hd/%d\000"
	.align	2
.LC2:
	.ascii	"AAL not supported\000"
	.align	2
.LC3:
	.ascii	"TX:\000"
	.align	2
.LC4:
	.ascii	"request for non-UBR denied\000"
	.align	2
.LC5:
	.ascii	"tx_rate_bits=%hx, tx_vc_bits=%hx\000"
	.align	2
.LC6:
	.ascii	"RX:\000"
	.align	2
.LC7:
	.ascii	"chose pool %hu (max_sdu %u <= %u)\000"
	.align	2
.LC8:
	.ascii	"no pool suitable for VC (RX max_sdu %d is too large"
	.ascii	")\000"
	.align	2
.LC9:
	.ascii	"out of memory!\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	amb_open, %function
amb_open:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	mvn	r3, #0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r2, .L53
	sub	sp, sp, #60
	mov	r4, r0
	ldr	r0, [r0, #36]
	ldr	r2, [r2]
	str	r2, [sp, #52]
	mov	r2,#0
	strb	r3, [sp, #19]
	bl	AMB_DEV
	ldr	r8, .L53+4
	ldr	r3, .L53+8
	ldrsh	r7, [r4]
	ldr	r1, [r8]
	ldr	r5, [r4, #4]
	mov	r6, r0
	ldr	r0, [r3]
	mov	r2, r7
	orr	r0, r0, r1
	mov	r3, r5
	ldr	r1, .L53+12
	bl	PRINTD
	cmp	r7, #0
	blt	.L2
	mov	r3, #1
	ldr	r2, .L53+16
	ldr	r2, [r2]
	cmp	r7, r3, lsl r2
	movge	r2, r3
	movlt	r2, #0
	orrs	r2, r2, r5, lsr #31
	beq	.L47
.L2:
	ldr	r3, .L53+20
	ldr	r1, [r8]
	ldr	r0, [r3]
	mov	r2, r7
	mov	r3, r5
	orr	r0, r0, r1
	ldr	r1, .L53+24
	bl	PRINTD
	ldr	r3, .L53+28
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L53
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L48
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L47:
	ldr	r2, .L53+32
	ldr	r2, [r2]
	cmp	r5, r3, lsl r2
	bge	.L2
	ldr	r3, .L53+36
	ldr	r2, [r4, #16]
	ldr	r3, [r3]
	ldr	r9, .L53+40
	cmp	r2, r3
	ldr	r0, [r9]
	bne	.L49
	ldr	fp, .L53+44
	ldr	r1, .L53+48
	bl	PRINTD
	ldr	r2, [fp]
	ldr	r3, [r4, #28]
	cmp	r3, r2
	beq	.L35
	cmp	r3, #128
	bne	.L45
	add	r0, r4, #28
	bl	atm_pcr_goal
	cmp	r0, #0
	beq	.L50
	ldrlt	r3, .L53+52
	ldrge	r3, .L53+56
	rsblt	r0, r0, #0
	ldr	r1, [r3]
	add	r2, sp, #19
	mov	r3, #0
	bl	make_rate
	cmp	r0, #0
	bne	.L1
	ldr	r2, .L53+60
	ldr	r3, .L53+64
	ldrb	r2, [r2]	@ zero_extendqisi2
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r2, [sp, #8]
	ldrb	r2, [sp, #19]	@ zero_extendqisi2
	str	r3, [sp, #12]
.L9:
	ldr	r3, [sp, #8]
	ldr	r1, .L53+68
	ldr	r0, [r9]
	bl	PRINTD
.L6:
	ldr	r1, .L53+72
	ldr	r0, [r9]
	bl	PRINTD
	ldr	r2, [r4, #20]
	ldr	r3, [fp]
	cmp	r2, r3
	beq	.L36
	ldr	r10, .L53+76
	ldr	r3, [r4, #24]
	ldrb	r0, [r10]	@ zero_extendqisi2
	cmp	r0, #0
	beq	.L13
	mov	r2, #0
	ldr	lr, [r6, #12]
	mov	r1, r2
	b	.L16
.L14:
	add	r2, r2, #1
	add	r7, r1, #1
	and	r1, r2, #255
	cmp	r0, r1
	and	r7, r7, #255
	bls	.L15
.L16:
	ldr	ip, [lr, r2, lsl #3]
	mov	r7, r1
	cmp	r3, ip
	bhi	.L14
	ldr	r0, .L53+80
	ldr	lr, [r8]
	ldr	r1, [r9]
	ldr	r0, [r0]
	orr	r1, lr, r1
	orr	r0, r1, r0
	str	ip, [sp]
	ldr	r1, .L53+84
	bl	PRINTD
	ldrb	r0, [r10]	@ zero_extendqisi2
.L15:
	cmp	r7, r0
	beq	.L51
	ldr	r3, [r4, #20]
	cmp	r3, #128
	bne	.L45
.L12:
	ldr	r3, .L53+88
	mov	r0, #2
	ldr	r1, [r3]
	bl	kmalloc
	subs	r9, r0, #0
	beq	.L52
	ldr	r3, .L53+92
	add	r10, r4, #8
	ldr	r0, [r3]
	mov	r1, r10
	str	r9, [r4, #12]
	bl	set_bit
	ldr	r3, [fp]
	ldr	r2, [r4, #28]
	cmp	r2, r3
	beq	.L19
	ldr	r3, [sp, #12]
	mov	r0, r6
	strb	r3, [r9]
	bl	mutex_lock
	ldr	r3, [r6, #4]
	and	r2, r5, #255
	ldr	r3, [r3, r5, lsl #2]
	str	r2, [sp, #12]
	cmp	r3, #0
	beq	.L20
	ldr	r3, .L53+96
	add	r8, sp, #20
	ldrb	r0, [r3]	@ zero_extendqisi2
	bl	cpu_to_be32
	mov	r3, r0
	and	r0, r5, #255
	str	r3, [sp, #48]
	bl	cpu_to_be32
	ldr	r3, .L53+100
	str	r0, [sp, #44]
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r0, [sp, #19]	@ zero_extendqisi2
	lsl	r0, r0, r3
	and	r0, r0, #255
	bl	cpu_to_be32
	str	r0, [sp, #40]
	b	.L21
.L22:
	bl	schedule
.L21:
	mov	r1, r8
	mov	r0, r6
	bl	command_do
	cmp	r0, #0
	bne	.L22
	ldr	r3, .L53+104
	ldrb	r0, [r3]	@ zero_extendqisi2
	bl	cpu_to_be32
	mov	r3, r0
	ldr	r0, [sp, #12]
	str	r3, [sp, #48]
	bl	cpu_to_be32
	ldr	r3, [r6, #4]
	str	r0, [sp, #36]
	ldr	r0, [r3, r5, lsl #2]
	bl	AMB_VCC
	ldr	r1, .L53+108
	ldr	r3, .L53+112
	ldrb	r2, [r0]	@ zero_extendqisi2
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r0, [r1]	@ zero_extendqisi2
	ldr	r1, [sp, #8]
	lsl	r3, r1, r3
	orr	r0, r3, r2, lsl r0
	and	r0, r0, #255
	bl	cpu_to_be32
	str	r0, [sp, #32]
	b	.L23
.L24:
	bl	schedule
.L23:
	mov	r1, r8
	mov	r0, r6
	bl	command_do
	cmp	r0, #0
	bne	.L24
.L27:
	mov	r2, #1
	ldr	r3, [r6, #8]
	mov	r0, r6
	str	r2, [r3, r5, lsl #3]
	bl	mutex_unlock
	ldr	r3, [fp]
.L19:
	ldr	r2, [r4, #20]
	cmp	r2, r3
	beq	.L28
	strb	r7, [r9, #1]
	mov	r0, r6
	bl	mutex_lock
	ldr	r2, [r6, #12]
	mov	r1, r7
	add	r2, r2, r7, lsl #3
	ldr	r3, [r2, #4]
	mov	r0, r6
	cmp	r3, #0
	ldreq	r3, .L53+116
	lsl	fp, r5, #3
	ldreq	r3, [r3]
	and	r9, r5, #255
	add	r3, r3, #1
	str	r3, [r2, #4]
	ldr	r3, .L53+88
	ldr	r2, [r3]
	bl	fill_rx_pool
	ldr	r3, [r6, #8]
	ldr	r8, [r3, r5, lsl #3]
	cmp	r8, #0
	beq	.L30
	ldr	r3, .L53+104
	ldrb	r0, [r3]	@ zero_extendqisi2
	bl	cpu_to_be32
	mov	r3, r0
	mov	r0, r9
	str	r3, [sp, #48]
	bl	cpu_to_be32
	ldr	r3, [r6, #8]
	ldr	r2, .L53+108
	ldr	r1, .L53+112
	str	r0, [sp, #36]
	add	r3, r3, fp
	ldrb	r0, [r2]	@ zero_extendqisi2
	ldrb	r2, [r3, #4]	@ zero_extendqisi2
	ldrb	r3, [r1]	@ zero_extendqisi2
	lsl	r0, r7, r0
	orr	r0, r0, r2, lsl r3
	and	r0, r0, #255
	bl	cpu_to_be32
	str	r0, [sp, #32]
.L31:
	add	r8, sp, #20
	b	.L32
.L33:
	bl	schedule
.L32:
	mov	r1, r8
	mov	r0, r6
	bl	command_do
	cmp	r0, #0
	bne	.L33
	ldr	r3, [r6, #4]
	mov	r0, r6
	str	r4, [r3, r5, lsl #2]
	bl	mutex_unlock
.L28:
	ldr	r3, .L53+120
	mov	r1, r10
	ldr	r0, [r3]
	bl	set_bit
	mov	r0, #0
	b	.L1
.L49:
	ldr	r1, .L53+124
	bl	PRINTD
	ldr	r3, .L53+28
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L45:
	ldr	r0, [r9]
	ldr	r1, .L53+128
	bl	PRINTD
	ldr	r3, .L53+28
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L50:
	ldr	r1, .L53+132
	ldr	r3, .L53+136
	ldrb	r1, [r1]	@ zero_extendqisi2
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r0
	strb	r0, [sp, #19]
	str	r1, [sp, #8]
	str	r3, [sp, #12]
	b	.L9
.L35:
	mov	r3, #255
	str	r3, [sp, #12]
	str	r3, [sp, #8]
	b	.L6
.L36:
	mov	r7, #255
	b	.L12
.L30:
	ldr	r3, .L53+140
	ldrb	r0, [r3]	@ zero_extendqisi2
	bl	cpu_to_be32
	mov	r3, r0
	mov	r0, r9
	str	r3, [sp, #48]
	bl	cpu_to_be32
	ldr	r3, .L53+108
	str	r0, [sp, #28]
	ldrb	r0, [r3]	@ zero_extendqisi2
	lsl	r0, r7, r0
	and	r0, r0, #255
	bl	cpu_to_be32
	mov	r3, r0
	mov	r0, r8
	str	r3, [sp, #24]
	bl	cpu_to_be32
	str	r0, [sp, #20]
	b	.L31
.L52:
	ldr	r3, .L53+144
	ldr	r1, .L53+148
	ldr	r0, [r3]
	bl	PRINTK
	ldr	r3, .L53+152
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L51:
	ldr	r3, [r4, #24]
.L13:
	ldr	r2, .L53+20
	ldr	ip, [r8]
	ldr	r1, [r2]
	ldr	r0, .L53+80
	ldr	r2, [r9]
	ldr	r0, [r0]
	orr	r1, r1, ip
	orr	r1, r1, r2
	orr	r0, r1, r0
	mov	r2, r3
	ldr	r1, .L53+156
	bl	PRINTD
	ldr	r3, .L53+28
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L20:
	ldr	r3, .L53+140
	add	r8, sp, #20
	ldrb	r0, [r3]	@ zero_extendqisi2
	bl	cpu_to_be32
	mov	r3, r0
	and	r0, r5, #255
	str	r3, [sp, #48]
	bl	cpu_to_be32
	ldr	r3, .L53+112
	str	r0, [sp, #28]
	ldrb	r0, [r3]	@ zero_extendqisi2
	ldr	r3, [sp, #8]
	lsl	r0, r3, r0
	and	r0, r0, #255
	bl	cpu_to_be32
	ldr	r2, .L53+100
	ldrb	r3, [sp, #19]	@ zero_extendqisi2
	ldrb	r2, [r2]	@ zero_extendqisi2
	str	r0, [sp, #24]
	lsl	r3, r3, r2
	and	r0, r3, #255
	bl	cpu_to_be32
	str	r0, [sp, #20]
	b	.L25
.L26:
	bl	schedule
.L25:
	mov	r1, r8
	mov	r0, r6
	bl	command_do
	cmp	r0, #0
	bne	.L26
	b	.L27
.L48:
	bl	__stack_chk_fail
.L54:
	.align	2
.L53:
	.word	.LC10
	.word	DBG_VCC
	.word	DBG_FLOW
	.word	.LC0
	.word	NUM_VPI_BITS
	.word	DBG_WARN
	.word	.LC1
	.word	EINVAL
	.word	NUM_VCI_BITS
	.word	ATM_AAL5
	.word	DBG_QOS
	.word	ATM_NONE
	.word	.LC3
	.word	round_down
	.word	round_up
	.word	TX_UBR_CAPPED
	.word	TX_FRAME_CAPPED
	.word	.LC5
	.word	.LC6
	.word	NUM_RX_POOLS
	.word	DBG_POOL
	.word	.LC7
	.word	GFP_KERNEL
	.word	ATM_VF_ADDR
	.word	SRB_MODIFY_VC_RATE
	.word	SRB_RATE_SHIFT
	.word	SRB_MODIFY_VC_FLAGS
	.word	SRB_POOL_SHIFT
	.word	SRB_FLAGS_SHIFT
	.word	rx_lats
	.word	ATM_VF_READY
	.word	.LC2
	.word	.LC4
	.word	TX_UBR
	.word	TX_FRAME_NOTCAP
	.word	SRB_OPEN_VC
	.word	KERN_ERR
	.word	.LC9
	.word	ENOMEM
	.word	.LC8
	.size	amb_open, .-amb_open
	.comm	rx_lats,4,4
	.comm	round_up,4,4
	.comm	round_down,4,4
	.comm	pcr,4,4
	.comm	TX_UBR_CAPPED,1,1
	.comm	TX_UBR,1,1
	.comm	TX_FRAME_NOTCAP,1,1
	.comm	TX_FRAME_CAPPED,1,1
	.comm	SRB_RATE_SHIFT,1,1
	.comm	SRB_POOL_SHIFT,1,1
	.comm	SRB_OPEN_VC,1,1
	.comm	SRB_MODIFY_VC_RATE,1,1
	.comm	SRB_MODIFY_VC_FLAGS,1,1
	.comm	SRB_FLAGS_SHIFT,1,1
	.comm	NUM_VPI_BITS,4,4
	.comm	NUM_VCI_BITS,4,4
	.comm	NUM_RX_POOLS,1,1
	.comm	KERN_WARNING,4,4
	.comm	KERN_ERR,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	DBG_WARN,4,4
	.comm	DBG_VCC,4,4
	.comm	DBG_QOS,4,4
	.comm	DBG_POOL,4,4
	.comm	DBG_FLOW,4,4
	.comm	ATM_VPI_UNSPEC,2,2
	.comm	ATM_VF_READY,4,4
	.comm	ATM_VF_ADDR,4,4
	.comm	ATM_VCI_UNSPEC,4,4
	.comm	ATM_NONE,4,4
	.comm	ATM_AAL5,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
