	.file	"extr_adm8211.c_adm8211_alloc_rings.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	adm8211_alloc_rings, @function
adm8211_alloc_rings:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, QWORD PTR [rdi]
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	movsx	rdi, DWORD PTR 4[rbx]
	add	edi, DWORD PTR [rbx]
	sal	edi, 2
	call	kmalloc@PLT
	mov	QWORD PTR 48[rbx], rax
	test	rax, rax
	je	.L6
	movsx	rsi, DWORD PTR [rbx]
	mov	edi, DWORD PTR 56[rbx]
	lea	rdx, 8[rbx]
	lea	rax, [rax+rsi*4]
	add	esi, DWORD PTR 4[rbx]
	mov	QWORD PTR 40[rbx], rax
	sal	esi, 2
	call	pci_alloc_consistent@PLT
	mov	QWORD PTR 24[rbx], rax
	test	rax, rax
	je	.L8
	movsx	rdx, DWORD PTR [rbx]
	add	rax, rdx
	mov	QWORD PTR 32[rbx], rax
	mov	rax, QWORD PTR 8[rbx]
	lea	rax, [rax+rdx*4]
	mov	QWORD PTR 16[rbx], rax
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rdi, QWORD PTR 48[rbx]
	call	kfree@PLT
	mov	QWORD PTR 48[rbx], 0
	mov	QWORD PTR 40[rbx], 0
.L6:
	mov	eax, DWORD PTR ENOMEM[rip]
	pop	rbx
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	adm8211_alloc_rings, .-adm8211_alloc_rings
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_adm8211.c_adm8211_alloc_rings.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	adm8211_alloc_rings, %function
adm8211_alloc_rings:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r4, [r0]
	ldr	r2, .L9
	ldm	r4, {r0, r3}
	add	r0, r0, r3
	ldr	r1, [r2]
	lsl	r0, r0, #2
	bl	kmalloc
	cmp	r0, #0
	str	r0, [r4, #28]
	beq	.L7
	ldm	r4, {r1, r3}
	add	r0, r0, r1, lsl #2
	add	r1, r1, r3
	str	r0, [r4, #24]
	lsl	r1, r1, #2
	ldr	r0, [r4, #32]
	add	r2, r4, #8
	bl	pci_alloc_consistent
	cmp	r0, #0
	mov	r5, r0
	str	r0, [r4, #16]
	beq	.L8
	ldr	r2, [r4]
	ldr	r3, [r4, #8]
	add	r5, r5, r2
	add	r3, r3, r2, lsl #2
	mov	r0, #0
	str	r5, [r4, #20]
	str	r3, [r4, #12]
	pop	{r4, r5, r6, pc}
.L7:
	ldr	r3, .L9+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L8:
	ldr	r0, [r4, #28]
	bl	kfree
	ldr	r3, .L9+4
	str	r5, [r4, #28]
	ldr	r0, [r3]
	str	r5, [r4, #24]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L10:
	.align	2
.L9:
	.word	GFP_KERNEL
	.word	ENOMEM
	.size	adm8211_alloc_rings, .-adm8211_alloc_rings
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
