	.file	"extr_sunvdc.c_vdc_alloc_tx_ring.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vdc_alloc_tx_ring, @function
vdc_alloc_tx_ring:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rbx, QWORD PTR VIO_DRIVER_TX_RING[rip]
	mov	rsi, QWORD PTR VDC_TX_RING_SIZE[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR [rdi]
	mov	r8d, DWORD PTR LDC_MAP_SHADOW[rip]
	lea	rcx, 4[rsp]
	sal	rbx, 6
	add	rbx, QWORD PTR 16[rdi]
	mov	edi, DWORD PTR 8[rdi]
	lea	r12, 4[0+rax*4]
	mov	edx, DWORD PTR 56[rbx]
	mov	eax, DWORD PTR VIO_MAX_RING_COOKIES[rip]
	imul	rsi, r12
	or	r8d, DWORD PTR LDC_MAP_DIRECT[rip]
	or	r8d, DWORD PTR LDC_MAP_RW[rip]
	mov	DWORD PTR 4[rsp], eax
	call	ldc_alloc_exp_dring@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L7
	mov	rax, QWORD PTR VDC_TX_RING_SIZE[rip]
	mov	QWORD PTR 48[rbx], rbp
	mov	QWORD PTR [rbx], r12
	mov	QWORD PTR 8[rbx], rax
	mov	QWORD PTR 16[rbx], rax
	mov	eax, DWORD PTR 4[rsp]
	mov	QWORD PTR 32[rbx], 0
	mov	QWORD PTR 40[rbx], 0
	mov	DWORD PTR 24[rbx], eax
	xor	eax, eax
.L1:
	mov	rdx, QWORD PTR 8[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L8
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.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
.L7:
	.cfi_restore_state
	mov	rdi, rbp
	call	PTR_ERR@PLT
	jmp	.L1
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	vdc_alloc_tx_ring, .-vdc_alloc_tx_ring
	.comm	VIO_MAX_RING_COOKIES,4,4
	.comm	VIO_DRIVER_TX_RING,8,8
	.comm	VDC_TX_RING_SIZE,8,8
	.comm	LDC_MAP_SHADOW,4,4
	.comm	LDC_MAP_RW,4,4
	.comm	LDC_MAP_DIRECT,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_sunvdc.c_vdc_alloc_tx_ring.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vdc_alloc_tx_ring, %function
vdc_alloc_tx_ring:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L9
	ldr	r1, .L9+4
	ldr	r3, .L9+8
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	ip, [r1]
	ldr	r7, [r2]
	ldr	r3, [r3]
	ldr	r2, .L9+12
	ldr	r4, [r0]
	ldr	r8, .L9+16
	ldr	lr, [r2]
	ldr	r6, [r0, #8]
	orr	r3, r3, ip
	ldr	ip, .L9+20
	ldr	r1, [r8]
	add	r4, r4, #1
	sub	sp, sp, #20
	ldr	ip, [ip]
	orr	r3, r3, lr
	add	r5, r6, r7, lsl #5
	ldr	lr, .L9+24
	lsl	r4, r4, #2
	ldr	r2, [r5, #28]
	mul	r1, r4, r1
	ldr	r0, [r0, #4]
	str	r3, [sp]
	add	r3, sp, #8
	ldr	lr, [lr]
	str	lr, [sp, #12]
	mov	lr,#0
	str	ip, [sp, #8]
	bl	ldc_alloc_exp_dring
	mov	r9, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L7
	ldr	r3, [r8]
	ldr	r2, [sp, #8]
	str	r9, [r5, #24]
	str	r4, [r6, r7, lsl #5]
	str	r3, [r5, #4]
	str	r3, [r5, #8]
	str	r0, [r5, #16]
	str	r0, [r5, #20]
	str	r2, [r5, #12]
.L1:
	ldr	r3, .L9+24
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L7:
	mov	r0, r9
	bl	PTR_ERR
	b	.L1
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	VIO_DRIVER_TX_RING
	.word	LDC_MAP_DIRECT
	.word	LDC_MAP_SHADOW
	.word	LDC_MAP_RW
	.word	VDC_TX_RING_SIZE
	.word	VIO_MAX_RING_COOKIES
	.word	.LC0
	.size	vdc_alloc_tx_ring, .-vdc_alloc_tx_ring
	.comm	VIO_MAX_RING_COOKIES,4,4
	.comm	VIO_DRIVER_TX_RING,4,4
	.comm	VDC_TX_RING_SIZE,4,4
	.comm	LDC_MAP_SHADOW,4,4
	.comm	LDC_MAP_RW,4,4
	.comm	LDC_MAP_DIRECT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
