	.file	"extr_core.c_alloc_dbdma_descriptor_ring.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	alloc_dbdma_descriptor_ring, @function
alloc_dbdma_descriptor_ring:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, DWORD PTR GFP_KERNEL[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	lea	ebp, 12[0+rdx*4]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	edi, DWORD PTR [rdi]
	mov	rbx, rsi
	mov	DWORD PTR [rsi], ebp
	call	macio_get_pci_dev@PLT
	lea	rdx, 24[rbx]
	mov	ecx, r12d
	mov	esi, ebp
	mov	rdi, rax
	call	dma_alloc_coherent@PLT
	mov	QWORD PTR 8[rbx], rax
	test	rax, rax
	jne	.L2
	mov	eax, DWORD PTR ENOMEM[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, rax
	call	DBDMA_ALIGN@PLT
	mov	QWORD PTR 16[rbx], rax
	sub	rax, QWORD PTR 8[rbx]
	add	rax, QWORD PTR 24[rbx]
	mov	QWORD PTR 32[rbx], rax
	pop	rbx
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	alloc_dbdma_descriptor_ring, .-alloc_dbdma_descriptor_ring
	.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_core.c_alloc_dbdma_descriptor_ring.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	alloc_dbdma_descriptor_ring, %function
alloc_dbdma_descriptor_ring:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r1
	add	r2, r2, #3
	lsl	r2, r2, #2
	str	r2, [r1]
	ldr	r0, [r0]
	bl	macio_get_pci_dev
	mov	r2, r4
	ldr	r3, .L6
	ldr	r1, [r2], #12
	ldr	r3, [r3]
	bl	dma_alloc_coherent
	subs	r3, r0, #0
	str	r0, [r4, #4]
	bne	.L2
	ldr	r3, .L6+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, pc}
.L2:
	bl	DBDMA_ALIGN
	mov	r2, r0
	ldr	r3, [r4, #4]
	ldr	r1, [r4, #12]
	sub	r3, r2, r3
	add	r3, r3, r1
	mov	r0, #0
	str	r2, [r4, #8]
	str	r3, [r4, #16]
	pop	{r4, pc}
.L7:
	.align	2
.L6:
	.word	GFP_KERNEL
	.word	ENOMEM
	.size	alloc_dbdma_descriptor_ring, .-alloc_dbdma_descriptor_ring
	.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
