	.file	"extr_qla3xxx.c_ql_alloc_buffer_queues.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"lBufQ failed\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Small Buffer Queue allocation failed\n"
	.text
	.p2align 4
	.type	ql_alloc_buffer_queues, @function
ql_alloc_buffer_queues:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	edx, DWORD PTR 4[rdi]
	mov	rbx, rdi
	mov	esi, 4
	mov	rax, QWORD PTR PAGE_SIZE[rip]
	lea	ecx, 0[0+rdx*4]
	sal	edx, 3
	mov	DWORD PTR [rdi], ecx
	movsx	rcx, ecx
	cmp	rax, rcx
	cmovbe	eax, edx
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	DWORD PTR 8[rdi], eax
	mov	edi, DWORD PTR 96[rdi]
	call	kmalloc_array@PLT
	mov	QWORD PTR 88[rbx], rax
	test	rax, rax
	je	.L11
	mov	esi, DWORD PTR 8[rbx]
	mov	edi, DWORD PTR 64[rbx]
	lea	rdx, 48[rbx]
	call	pci_alloc_consistent@PLT
	mov	QWORD PTR 56[rbx], rax
	test	rax, rax
	je	.L13
	mov	rsi, QWORD PTR PAGE_SIZE[rip]
	mov	edi, DWORD PTR 64[rbx]
	mov	QWORD PTR 80[rbx], rax
	mov	eax, DWORD PTR 48[rbx]
	mov	DWORD PTR 72[rbx], eax
	mov	eax, DWORD PTR NUM_SBUFQ_ENTRIES[rip]
	lea	edx, 0[0+rax*4]
	sal	eax, 3
	mov	DWORD PTR 12[rbx], edx
	movsx	rdx, edx
	cmp	rsi, rdx
	lea	rdx, 24[rbx]
	cmovbe	esi, eax
	mov	DWORD PTR 16[rbx], esi
	call	pci_alloc_consistent@PLT
	mov	QWORD PTR 32[rbx], rax
	test	rax, rax
	je	.L14
	mov	QWORD PTR 40[rbx], rax
	mov	eax, DWORD PTR 24[rbx]
	lea	rsi, 20[rbx]
	mov	edi, DWORD PTR QL_ALLOC_BUFQS_DONE[rip]
	mov	DWORD PTR 28[rbx], eax
	call	set_bit@PLT
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	edi, DWORD PTR 68[rbx]
	lea	rsi, .LC0[rip]
	call	netdev_err@PLT
.L11:
	mov	eax, DWORD PTR ENOMEM[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	edi, DWORD PTR 68[rbx]
	lea	rsi, .LC1[rip]
	call	netdev_err@PLT
	mov	ecx, DWORD PTR 48[rbx]
	mov	rdx, QWORD PTR 56[rbx]
	mov	esi, DWORD PTR 8[rbx]
	mov	edi, DWORD PTR 64[rbx]
	call	pci_free_consistent@PLT
	mov	eax, DWORD PTR ENOMEM[rip]
	pop	rbx
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	ql_alloc_buffer_queues, .-ql_alloc_buffer_queues
	.comm	QL_ALLOC_BUFQS_DONE,4,4
	.comm	PAGE_SIZE,8,8
	.comm	NUM_SBUFQ_ENTRIES,4,4
	.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_qla3xxx.c_ql_alloc_buffer_queues.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"lBufQ failed\012\000"
	.align	2
.LC1:
	.ascii	"Small Buffer Queue allocation failed\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ql_alloc_buffer_queues, %function
ql_alloc_buffer_queues:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, .L15
	ldr	r1, [r0, #4]
	ldr	r3, [r5]
	lsl	r2, r1, #2
	cmp	r3, r2
	str	r2, [r0]
	ldr	r2, .L15+4
	lslls	r3, r1, #3
	mov	r4, r0
	str	r3, [r0, #8]
	mov	r1, #4
	ldr	r2, [r2]
	ldr	r0, [r0, #68]
	bl	kmalloc_array
	cmp	r0, #0
	str	r0, [r4, #64]
	beq	.L11
	ldr	r1, [r4, #8]
	ldr	r0, [r4, #48]
	add	r2, r4, #40
	bl	pci_alloc_consistent
	cmp	r0, #0
	str	r0, [r4, #44]
	beq	.L13
	ldr	r3, .L15+8
	ldr	r1, [r5]
	ldr	r2, [r3]
	ldr	ip, [r4, #40]
	lsl	r3, r2, #2
	cmp	r1, r3
	lslls	r1, r2, #3
	str	r0, [r4, #60]
	str	r3, [r4, #12]
	ldr	r0, [r4, #48]
	str	ip, [r4, #56]
	str	r1, [r4, #16]
	add	r2, r4, #24
	bl	pci_alloc_consistent
	cmp	r0, #0
	str	r0, [r4, #32]
	beq	.L14
	ldr	r2, [r4, #24]
	ldr	r3, .L15+12
	str	r0, [r4, #36]
	str	r2, [r4, #28]
	ldr	r0, [r3]
	add	r1, r4, #20
	bl	set_bit
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L13:
	ldr	r0, [r4, #52]
	ldr	r1, .L15+16
	bl	netdev_err
.L11:
	ldr	r3, .L15+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L14:
	ldr	r1, .L15+24
	ldr	r0, [r4, #52]
	bl	netdev_err
	ldr	r3, [r4, #40]
	ldr	r2, [r4, #44]
	ldr	r1, [r4, #8]
	ldr	r0, [r4, #48]
	bl	pci_free_consistent
	ldr	r3, .L15+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L16:
	.align	2
.L15:
	.word	PAGE_SIZE
	.word	GFP_KERNEL
	.word	NUM_SBUFQ_ENTRIES
	.word	QL_ALLOC_BUFQS_DONE
	.word	.LC0
	.word	ENOMEM
	.word	.LC1
	.size	ql_alloc_buffer_queues, .-ql_alloc_buffer_queues
	.comm	QL_ALLOC_BUFQS_DONE,4,4
	.comm	PAGE_SIZE,4,4
	.comm	NUM_SBUFQ_ENTRIES,4,4
	.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
