	.file	"extr_qplib_sp.c_bnxt_qplib_add_pkey.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"PKEY table not allocated\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"PKEY table is FULL but count is not MAX??\n"
	.section	.rodata.str1.1
.LC2:
	.string	"PKEY table is full\n"
	.text
	.p2align 4
	.globl	bnxt_qplib_add_pkey
	.type	bnxt_qplib_add_pkey, @function
bnxt_qplib_add_pkey:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	test	rsi, rsi
	je	.L13
	mov	r12d, DWORD PTR 4[rsi]
	mov	rbp, rsi
	cmp	DWORD PTR [rsi], r12d
	je	.L4
	test	r12d, r12d
	jle	.L9
	mov	rax, QWORD PTR 8[rsi]
	mov	r14, rdx
	xor	ebx, ebx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR 8[rbp]
	mov	edx, DWORD PTR 4[rbp]
	mov	ecx, DWORD PTR [rax+rbx*4]
	test	ecx, ecx
	jne	.L7
	cmp	r12d, edx
	cmove	r12d, ebx
.L7:
	add	rbx, 1
	cmp	edx, ebx
	jle	.L14
.L8:
	lea	rdi, [rax+rbx*4]
	mov	edx, 4
	mov	rsi, r14
	call	memcmp@PLT
	test	eax, eax
	jne	.L6
	mov	eax, DWORD PTR EALREADY[rip]
	neg	eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	cmp	r12d, edx
	je	.L9
	movsx	r12, r12d
	mov	rsi, r14
	mov	edx, 4
	lea	rdi, [rax+r12*4]
	call	memcpy@PLT
	add	DWORD PTR 0[rbp], 1
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rdi, QWORD PTR [rdi]
	lea	rsi, .LC2[rip]
	call	dev_err@PLT
	mov	eax, DWORD PTR ENOMEM[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rdi, QWORD PTR [rdi]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, QWORD PTR 0[r13]
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	mov	eax, DWORD PTR ENOMEM[rip]
	neg	eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	bnxt_qplib_add_pkey, .-bnxt_qplib_add_pkey
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	EALREADY,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_qplib_sp.c_bnxt_qplib_add_pkey.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"PKEY table not allocated\012\000"
	.align	2
.LC1:
	.ascii	"PKEY table is full\012\000"
	.align	2
.LC2:
	.ascii	"PKEY table is FULL but count is not MAX??\012\000"
	.text
	.align	2
	.global	bnxt_qplib_add_pkey
	.syntax unified
	.arm
	.fpu softvfp
	.type	bnxt_qplib_add_pkey, %function
bnxt_qplib_add_pkey:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	subs	r8, r1, #0
	mov	r9, r0
	beq	.L15
	ldm	r8, {r3, r7}
	cmp	r3, r7
	beq	.L4
	cmp	r7, #0
	ble	.L6
	ldr	r10, [r8, #8]
	mov	fp, r2
	mov	r6, r7
	mov	r4, r10
	mov	r5, #0
	b	.L9
.L7:
	ldr	r3, [r4]
	add	r4, r4, #4
	cmp	r3, #0
	cmpeq	r7, r6
	moveq	r6, r5
	add	r5, r5, #1
	cmp	r7, r5
	beq	.L16
.L9:
	mov	r2, #4
	mov	r1, fp
	mov	r0, r4
	bl	memcmp
	cmp	r0, #0
	bne	.L7
	ldr	r3, .L17
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	cmp	r7, r6
	beq	.L6
	mov	r1, fp
	mov	r2, #4
	add	r0, r10, r6, lsl #2
	bl	memcpy
	ldr	r3, [r8]
	mov	r0, #0
	add	r3, r3, #1
	str	r3, [r8]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L4:
	ldr	r1, .L17+4
	ldr	r0, [r0]
	bl	dev_err
	ldr	r3, .L17+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	ldr	r1, .L17+12
	ldr	r0, [r0]
	bl	dev_err
	ldr	r3, .L17+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	ldr	r0, [r9]
	ldr	r1, .L17+20
	bl	dev_err
	ldr	r3, .L17+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	.align	2
.L17:
	.word	EALREADY
	.word	.LC1
	.word	ENOMEM
	.word	.LC0
	.word	EINVAL
	.word	.LC2
	.size	bnxt_qplib_add_pkey, .-bnxt_qplib_add_pkey
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	EALREADY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
