	.file	"extr_bnx2i_iscsi.c_bnx2i_alloc_iscsi_cid.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bnx2i_alloc_iscsi_cid, @function
bnx2i_alloc_iscsi_cid:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR 16[rdi]
	test	eax, eax
	je	.L4
	movsx	rdx, DWORD PTR [rdi]
	lea	ecx, 1[rdx]
	mov	DWORD PTR [rdi], ecx
	cmp	ecx, DWORD PTR 4[rdi]
	jne	.L3
	mov	DWORD PTR [rdi], 0
.L3:
	sub	eax, 1
	mov	DWORD PTR 16[rdi], eax
	mov	rax, QWORD PTR 8[rdi]
	mov	eax, DWORD PTR [rax+rdx*4]
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, -1
	ret
	.cfi_endproc
.LFE0:
	.size	bnx2i_alloc_iscsi_cid, .-bnx2i_alloc_iscsi_cid
	.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_bnx2i_iscsi.c_bnx2i_alloc_iscsi_cid.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bnx2i_alloc_iscsi_cid, %function
bnx2i_alloc_iscsi_cid:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	ldr	r3, [r0, #12]
	cmp	r3, #0
	beq	.L4
	ldm	r0, {r2, ip}
	add	r1, r2, #1
	cmp	r1, ip
	str	r1, [r0]
	moveq	r1, #0
	sub	r3, r3, #1
	streq	r1, [r0]
	ldr	r1, [r0, #8]
	str	r3, [r0, #12]
	ldr	r0, [r1, r2, lsl #2]
	bx	lr
.L4:
	mvn	r0, #0
	bx	lr
	.size	bnx2i_alloc_iscsi_cid, .-bnx2i_alloc_iscsi_cid
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
