	.file	"extr_cciss.c_cciss_alloc_drive_info.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cciss_alloc_drive_info, @function
cciss_alloc_drive_info:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR CISS_MAX_LUN[rip]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	test	eax, eax
	jle	.L8
	mov	rcx, QWORD PTR 8[rdi]
	mov	rbx, rdi
	lea	edi, -1[rax]
	xor	eax, eax
.L9:
	mov	rdx, QWORD PTR [rcx+rax*8]
	mov	r12d, eax
	lea	rbp, 0[0+rax*8]
	test	rdx, rdx
	je	.L4
	test	rax, rax
	jne	.L5
	cmp	DWORD PTR [rdx], -1
	jne	.L5
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	jns	.L12
	test	esi, esi
	jne	.L12
	mov	DWORD PTR [rbx], 0
.L12:
	xor	r12d, r12d
.L1:
	mov	eax, r12d
	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
.L5:
	.cfi_restore_state
	lea	rdx, 1[rax]
	cmp	rax, rdi
	je	.L8
	mov	rax, rdx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L4:
	cmp	DWORD PTR [rbx], eax
	jge	.L7
	test	esi, esi
	je	.L26
.L7:
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 4
	call	kzalloc@PLT
	test	rax, rax
	je	.L8
	mov	rdx, QWORD PTR 8[rbx]
	mov	DWORD PTR [rax], -1
	mov	QWORD PTR [rdx+rbp], rax
	mov	eax, r12d
	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
.L26:
	.cfi_restore_state
	mov	DWORD PTR [rbx], eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	mov	r12d, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	cciss_alloc_drive_info, .-cciss_alloc_drive_info
	.comm	GFP_KERNEL,4,4
	.comm	CISS_MAX_LUN,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_cciss.c_cciss_alloc_drive_info.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cciss_alloc_drive_info, %function
cciss_alloc_drive_info:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L23
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r0, [r3]
	cmp	r0, #0
	ble	.L8
	mov	r4, #0
	ldr	r3, [r5, #4]
	sub	r3, r3, #4
.L9:
	ldr	r2, [r3, #4]!
	lsl	r6, r4, #2
	cmp	r2, #0
	beq	.L4
	cmp	r4, #0
	bne	.L5
	ldr	r2, [r2]
	cmn	r2, #1
	bne	.L5
	clz	r1, r1
	ldr	r3, [r5]
	lsr	r1, r1, #5
	ands	r3, r1, r3, lsr #31
	strne	r4, [r5]
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L5:
	add	r4, r4, #1
	cmp	r4, r0
	bne	.L9
.L8:
	mvn	r4, #0
	b	.L1
.L4:
	ldr	r3, [r5]
	cmp	r3, r4
	movge	r3, #0
	movlt	r3, #1
	cmp	r1, #0
	movne	r3, #0
	cmp	r3, #0
	bne	.L22
.L7:
	ldr	r3, .L23+4
	mov	r0, #4
	ldr	r1, [r3]
	bl	kzalloc
	cmp	r0, #0
	beq	.L8
	mvn	r2, #0
	ldr	r3, [r5, #4]
	str	r2, [r0]
	str	r0, [r3, r6]
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L22:
	str	r4, [r5]
	b	.L7
.L24:
	.align	2
.L23:
	.word	CISS_MAX_LUN
	.word	GFP_KERNEL
	.size	cciss_alloc_drive_info, .-cciss_alloc_drive_info
	.comm	GFP_KERNEL,4,4
	.comm	CISS_MAX_LUN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
