	.file	"extr_qlnxr_verbs.c_qlnxr_alloc_pbl_tbl.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"enter\n"
.LC1:
	.string	"pbl_table = NULL\n"
.LC2:
	.string	"Failed to allocate pbl#%d\n"
.LC3:
	.string	"exit with error\n"
.LC4:
	.string	"exit\n"
	.text
	.p2align 4
	.type	qlnxr_alloc_pbl_tbl, @function
qlnxr_alloc_pbl_tbl:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	lea	rsi, .LC0[rip]
	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
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	QWORD PTR [rsp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rdi]
	mov	rdi, rax
	mov	QWORD PTR 8[rsp], rax
	call	QL_DPRINT12@PLT
	mov	edi, DWORD PTR [r15]
	mov	esi, r12d
	sal	edi, 4
	call	kzalloc@PLT
	mov	r13, rax
	test	rax, rax
	je	.L2
	mov	rbx, rax
	mov	eax, DWORD PTR [r15]
	xor	r12d, r12d
	lea	r14, 20[rsp]
	test	eax, eax
	jg	.L7
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edx, DWORD PTR 4[r15]
	xor	esi, esi
	mov	rdi, rax
	add	r12d, 1
	add	rbx, 16
	call	memset@PLT
	mov	eax, DWORD PTR 20[rsp]
	mov	QWORD PTR -8[rbx], rbp
	mov	DWORD PTR -16[rbx], eax
	mov	eax, DWORD PTR [r15]
	cmp	eax, r12d
	jle	.L16
.L7:
	mov	rax, QWORD PTR [rsp]
	mov	edx, DWORD PTR 4[r15]
	mov	rsi, r14
	mov	rdi, QWORD PTR [rax]
	call	qlnx_dma_alloc_coherent@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L6
	mov	rbx, QWORD PTR 8[rsp]
	mov	edx, r12d
	lea	rsi, .LC2[rip]
	mov	rdi, rbx
	call	QL_DPRINT11@PLT
	mov	rdi, QWORD PTR [rsp]
	mov	rdx, r13
	mov	rsi, r15
	xor	r13d, r13d
	call	qlnxr_free_pbl@PLT
	lea	rsi, .LC3[rip]
	mov	rdi, rbx
	call	QL_DPRINT12@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r13
	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
.L16:
	.cfi_restore_state
	mov	rcx, QWORD PTR 8[r13]
	cmp	eax, 1
	jle	.L4
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdx, rax
	sal	rdx, 4
	mov	edx, DWORD PTR 16[r13+rdx]
	mov	DWORD PTR [rcx+rax*4], edx
	mov	esi, DWORD PTR [r15]
	add	rax, 1
	lea	edx, -1[rsi]
	cmp	edx, eax
	jg	.L8
.L4:
	mov	rdi, QWORD PTR 8[rsp]
	lea	rsi, .LC4[rip]
	call	QL_DPRINT12@PLT
	jmp	.L1
.L2:
	mov	rdi, QWORD PTR 8[rsp]
	lea	rsi, .LC1[rip]
	call	QL_DPRINT12@PLT
	jmp	.L1
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	qlnxr_alloc_pbl_tbl, .-qlnxr_alloc_pbl_tbl
	.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_qlnxr_verbs.c_qlnxr_alloc_pbl_tbl.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"enter\012\000"
	.align	2
.LC1:
	.ascii	"pbl_table = NULL\012\000"
	.align	2
.LC2:
	.ascii	"Failed to allocate pbl#%d\012\000"
	.align	2
.LC3:
	.ascii	"exit with error\012\000"
	.align	2
.LC4:
	.ascii	"exit\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qlnxr_alloc_pbl_tbl, %function
qlnxr_alloc_pbl_tbl:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r1
	mov	r4, r2
	ldr	r10, [r0]
	ldr	r3, .L17
	sub	sp, sp, #8
	ldr	r1, .L17+4
	mov	r8, r0
	mov	r0, r10
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	QL_DPRINT12
	ldr	r0, [r5]
	mov	r1, r4
	lsl	r0, r0, #3
	bl	kzalloc
	subs	r9, r0, #0
	beq	.L2
	ldr	r3, [r5]
	cmp	r3, #0
	movgt	r7, #0
	addgt	r6, r9, #4
	bgt	.L7
	b	.L4
.L6:
	mov	r1, #0
	ldr	r2, [r5, #4]
	bl	memset
	ldr	r3, [sp]
	add	r7, r7, #1
	str	r3, [r6, #-4]
	ldr	r3, [r5]
	add	r6, r6, #8
	cmp	r3, r7
	str	r4, [r6, #-8]
	ble	.L15
.L7:
	mov	r1, sp
	ldr	r2, [r5, #4]
	ldr	r0, [r8]
	bl	qlnx_dma_alloc_coherent
	subs	r4, r0, #0
	bne	.L6
	mov	r2, r7
	ldr	r1, .L17+8
	mov	r0, r10
	bl	QL_DPRINT11
	mov	r2, r9
	mov	r1, r5
	mov	r0, r8
	bl	qlnxr_free_pbl
	mov	r0, r10
	ldr	r1, .L17+12
	mov	r9, r4
	bl	QL_DPRINT12
.L1:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	mov	r0, r9
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L15:
	ldr	r1, [r9, #4]
	cmp	r3, #1
	movgt	r3, #0
	subgt	r1, r1, #4
	addgt	r0, r9, #8
	ble	.L4
.L9:
	ldr	r2, [r0, r3, lsl #3]
	add	r3, r3, #1
	str	r2, [r1, #4]!
	ldr	r2, [r5]
	sub	r2, r2, #1
	cmp	r2, r3
	bgt	.L9
.L4:
	mov	r0, r10
	ldr	r1, .L17+16
	bl	QL_DPRINT12
	b	.L1
.L2:
	mov	r0, r10
	ldr	r1, .L17+20
	bl	QL_DPRINT12
	b	.L1
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC5
	.word	.LC0
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC1
	.size	qlnxr_alloc_pbl_tbl, .-qlnxr_alloc_pbl_tbl
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
