	.file	"extr_qlcnic_ctx.c_qlcnic_82xx_alloc_mbx_args.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	qlcnic_82xx_alloc_mbx_args
	.type	qlcnic_82xx_alloc_mbx_args, @function
qlcnic_82xx_alloc_mbx_args:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, QWORD PTR qlcnic_mbx_tbl[rip]
	mov	rdi, rbx
	call	ARRAY_SIZE@PLT
	test	eax, eax
	jle	.L7
	sub	eax, 1
	mov	rdx, rbx
	sal	rax, 4
	lea	rax, 16[rbx+rax]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	add	rdx, 16
	cmp	rdx, rax
	je	.L7
.L6:
	cmp	QWORD PTR [rdx], rbp
	jne	.L3
	mov	edi, DWORD PTR 8[rdx]
	mov	eax, DWORD PTR 12[rdx]
	mov	esi, 8
	mov	edx, DWORD PTR GFP_ATOMIC[rip]
	mov	DWORD PTR [r12], edi
	mov	DWORD PTR 16[r12], eax
	call	kcalloc@PLT
	mov	QWORD PTR 8[r12], rax
	test	rax, rax
	je	.L10
	mov	edi, DWORD PTR 16[r12]
	mov	edx, DWORD PTR GFP_ATOMIC[rip]
	mov	esi, 8
	call	kcalloc@PLT
	mov	QWORD PTR 24[r12], rax
	test	rax, rax
	je	.L12
	mov	eax, DWORD PTR [r12]
	mov	rdi, QWORD PTR 8[r12]
	xor	esi, esi
	lea	edx, 0[0+rax*8]
	call	memset@PLT
	mov	eax, DWORD PTR 16[r12]
	mov	rdi, QWORD PTR 24[r12]
	xor	esi, esi
	lea	edx, 0[0+rax*8]
	call	memset@PLT
	mov	rax, QWORD PTR 8[r12]
	mov	QWORD PTR [rax], rbp
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L12:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[r12]
	call	kfree@PLT
	mov	QWORD PTR 8[r12], 0
.L10:
	mov	eax, DWORD PTR ENOMEM[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	qlcnic_82xx_alloc_mbx_args, .-qlcnic_82xx_alloc_mbx_args
	.comm	qlcnic_mbx_tbl,8,8
	.comm	GFP_ATOMIC,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_qlcnic_ctx.c_qlcnic_82xx_alloc_mbx_args.c"
	.text
	.align	2
	.global	qlcnic_82xx_alloc_mbx_args
	.syntax unified
	.arm
	.fpu softvfp
	.type	qlcnic_82xx_alloc_mbx_args, %function
qlcnic_82xx_alloc_mbx_args:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L13
	push	{r4, r5, r6, lr}
	ldr	r4, [r3]
	mov	r6, r0
	mov	r0, r4
	mov	r5, r2
	bl	ARRAY_SIZE
	subs	lr, r0, #0
	ble	.L7
	mov	r3, r4
	mov	r1, #0
	b	.L6
.L3:
	cmp	lr, r1
	add	r3, r3, #12
	beq	.L7
.L6:
	ldr	ip, [r3]
	add	r1, r1, #1
	cmp	ip, r5
	bne	.L3
	ldr	r4, .L13+4
	ldmib	r3, {r0, r3}
	mov	r1, #4
	ldr	r2, [r4]
	str	r0, [r6]
	str	r3, [r6, #8]
	bl	kcalloc
	cmp	r0, #0
	str	r0, [r6, #4]
	beq	.L11
	ldr	r2, [r4]
	mov	r1, #4
	ldr	r0, [r6, #8]
	bl	kcalloc
	cmp	r0, #0
	mov	r4, r0
	str	r0, [r6, #12]
	beq	.L12
	ldr	r2, [r6]
	mov	r1, #0
	ldr	r0, [r6, #4]
	lsl	r2, r2, #2
	bl	memset
	ldr	r2, [r6, #8]
	mov	r1, #0
	ldr	r0, [r6, #12]
	lsl	r2, r2, #2
	bl	memset
	ldr	r3, [r6, #4]
	mov	r0, #0
	str	r5, [r3]
	pop	{r4, r5, r6, pc}
.L7:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L11:
	ldr	r3, .L13+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L12:
	ldr	r0, [r6, #4]
	bl	kfree
	ldr	r3, .L13+8
	str	r4, [r6, #4]
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L14:
	.align	2
.L13:
	.word	qlcnic_mbx_tbl
	.word	GFP_ATOMIC
	.word	ENOMEM
	.size	qlcnic_82xx_alloc_mbx_args, .-qlcnic_82xx_alloc_mbx_args
	.comm	qlcnic_mbx_tbl,4,4
	.comm	GFP_ATOMIC,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
