	.file	"extr_mptbase.c_mpt_inactive_raid_volumes.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mpt_inactive_raid_volumes, @function
mpt_inactive_raid_volumes:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	mov	edx, 32
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, esi
	xor	esi, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 136
	.cfi_def_cfa_offset 192
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 120[rsp], rax
	xor	eax, eax
	lea	r13, 48[rsp]
	lea	r14, 80[rsp]
	mov	rdi, r13
	call	memset@PLT
	xor	esi, esi
	mov	rdi, r14
	mov	edx, 32
	call	memset@PLT
	mov	rsi, r13
	mov	rdi, rbx
	mov	QWORD PTR 64[rsp], r14
	mov	eax, DWORD PTR MPI_CONFIG_PAGETYPE_RAID_VOLUME[rip]
	mov	DWORD PTR 104[rsp], eax
	mov	eax, ebp
	sal	eax, 8
	add	eax, r12d
	mov	DWORD PTR 48[rsp], eax
	mov	eax, DWORD PTR MPI_CONFIG_ACTION_PAGE_HEADER[rip]
	mov	DWORD PTR 56[rsp], eax
	call	mpt_config@PLT
	test	rax, rax
	jne	.L1
	mov	esi, DWORD PTR 84[rsp]
	test	esi, esi
	jne	.L27
.L1:
	mov	rax, QWORD PTR 120[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L28
	add	rsp, 136
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L27:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	lea	rdx, 28[rsp]
	sal	esi, 2
	call	pci_alloc_consistent@PLT
	mov	r15, rax
	test	rax, rax
	je	.L1
	mov	eax, DWORD PTR 28[rsp]
	mov	rsi, r13
	mov	rdi, rbx
	mov	DWORD PTR 60[rsp], eax
	mov	eax, DWORD PTR MPI_CONFIG_ACTION_PAGE_READ_CURRENT[rip]
	mov	DWORD PTR 56[rsp], eax
	call	mpt_config@PLT
	test	rax, rax
	jne	.L3
	mov	edx, DWORD PTR [r15]
	test	edx, edx
	je	.L3
	mov	eax, DWORD PTR 16[r15]
	test	DWORD PTR MPI_RAIDVOL0_STATUS_FLAG_VOLUME_INACTIVE[rip], eax
	jne	.L4
	test	DWORD PTR MPI_RAIDVOL0_STATUS_FLAG_ENABLED[rip], eax
	jne	.L29
.L4:
	lea	rax, 4[rbx]
	mov	rdi, rax
	mov	QWORD PTR 8[rsp], rax
	call	mutex_lock@PLT
	mov	eax, DWORD PTR [r15]
	test	eax, eax
	jle	.L5
	lea	rax, 8[rbx]
	xor	r14d, r14d
	lea	r13, 32[rsp]
	mov	QWORD PTR [rsp], rax
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rax, QWORD PTR 8[r15]
	mov	rdx, r13
	mov	rdi, rbx
	mov	esi, DWORD PTR [rax+r14*4]
	call	mpt_raid_phys_disk_pg0@PLT
	test	rax, rax
	jne	.L7
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 28
	call	kmalloc@PLT
	test	rax, rax
	je	.L7
	mov	edx, DWORD PTR 44[rsp]
	mov	rsi, QWORD PTR [rsp]
	mov	DWORD PTR [rax], r12d
	lea	rdi, 8[rax]
	mov	DWORD PTR 4[rax], ebp
	mov	DWORD PTR 24[rax], edx
	mov	rdx, QWORD PTR 32[rsp]
	mov	QWORD PTR 12[rax], rdx
	mov	edx, DWORD PTR 40[rsp]
	mov	DWORD PTR 20[rax], edx
	call	list_add_tail@PLT
.L7:
	add	r14, 1
	cmp	DWORD PTR [r15], r14d
	jg	.L9
.L5:
	mov	rdi, QWORD PTR 8[rsp]
	call	mutex_unlock@PLT
.L3:
	mov	eax, DWORD PTR 84[rsp]
	mov	ecx, DWORD PTR 28[rsp]
	mov	rdx, r15
	mov	edi, DWORD PTR [rbx]
	lea	esi, 0[0+rax*4]
	call	pci_free_consistent@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L29:
	mov	rax, QWORD PTR 24[r15]
	cmp	rax, QWORD PTR MPI_RAIDVOL0_STATUS_STATE_FAILED[rip]
	je	.L4
	cmp	rax, QWORD PTR MPI_RAIDVOL0_STATUS_STATE_MISSING[rip]
	jne	.L3
	jmp	.L4
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mpt_inactive_raid_volumes, .-mpt_inactive_raid_volumes
	.comm	MPI_RAIDVOL0_STATUS_STATE_MISSING,8,8
	.comm	MPI_RAIDVOL0_STATUS_STATE_FAILED,8,8
	.comm	MPI_RAIDVOL0_STATUS_FLAG_VOLUME_INACTIVE,4,4
	.comm	MPI_RAIDVOL0_STATUS_FLAG_ENABLED,4,4
	.comm	MPI_CONFIG_PAGETYPE_RAID_VOLUME,4,4
	.comm	MPI_CONFIG_ACTION_PAGE_READ_CURRENT,4,4
	.comm	MPI_CONFIG_ACTION_PAGE_HEADER,4,4
	.comm	GFP_KERNEL,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_mptbase.c_mpt_inactive_raid_volumes.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mpt_inactive_raid_volumes, %function
mpt_inactive_raid_volumes:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r1
	mov	r6, r2
	mov	r3, #0
	ldr	r1, .L33
	ldr	r2, .L33+4
	ldr	r1, [r1]
	ldr	lr, .L33+8
	sub	sp, sp, #76
	ldr	r2, [r2]
	add	ip, r6, r5, lsl #8
	ldr	lr, [lr]
	str	lr, [sp, #68]
	mov	lr,#0
	str	ip, [sp, #20]
	str	r1, [sp, #64]
	add	ip, sp, #44
	add	r1, sp, #20
	mov	r4, r0
	str	r2, [sp, #28]
	str	r3, [sp, #24]
	str	r3, [sp, #44]
	str	r3, [sp, #32]
	str	r3, [sp, #40]
	str	r3, [sp, #48]
	str	r3, [sp, #52]
	str	r3, [sp, #56]
	str	r3, [sp, #60]
	str	ip, [sp, #36]
	bl	mpt_config
	cmp	r0, #0
	bne	.L1
	ldr	r1, [sp, #48]
	cmp	r1, #0
	bne	.L30
.L1:
	ldr	r3, .L33+8
	ldr	r2, [r3]
	ldr	r3, [sp, #68]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L31
	add	sp, sp, #76
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L30:
	mov	r2, sp
	ldr	r0, [r4]
	lsl	r1, r1, #2
	bl	pci_alloc_consistent
	subs	r8, r0, #0
	beq	.L1
	ldr	r2, .L33+12
	ldr	r3, [sp]
	ldr	r2, [r2]
	mov	r0, r4
	add	r1, sp, #20
	str	r2, [sp, #28]
	str	r3, [sp, #32]
	bl	mpt_config
	subs	r7, r0, #0
	bne	.L3
	ldr	r3, [r8]
	cmp	r3, #0
	beq	.L3
	ldr	r2, .L33+16
	ldr	r3, [r8, #8]
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L4
	ldr	r2, .L33+20
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L32
.L4:
	add	fp, r4, #4
	mov	r0, fp
	bl	mutex_lock
	ldr	r3, [r8]
	cmp	r3, #0
	ble	.L5
	ldr	r9, .L33+24
	add	r10, r4, #8
.L9:
	ldr	r3, [r8, #4]
	mov	r0, r4
	ldr	r1, [r3, r7, lsl #2]
	add	r2, sp, #4
	bl	mpt_raid_phys_disk_pg0
	cmp	r0, #0
	bne	.L7
	mov	r0, #28
	ldr	r1, [r9]
	bl	kmalloc
	cmp	r0, #0
	beq	.L7
	ldr	r2, [sp, #16]
	ldr	r3, [sp, #12]
	str	r2, [r0, #24]
	str	r3, [r0, #20]
	ldr	r2, [sp, #8]
	ldr	r3, [sp, #4]
	str	r6, [r0]
	str	r5, [r0, #4]
	str	r2, [r0, #16]
	str	r3, [r0, #12]
	mov	r1, r10
	add	r0, r0, #8
	bl	list_add_tail
.L7:
	ldr	r3, [r8]
	add	r7, r7, #1
	cmp	r3, r7
	bgt	.L9
.L5:
	mov	r0, fp
	bl	mutex_unlock
.L3:
	ldr	r1, [sp, #48]
	mov	r2, r8
	ldr	r0, [r4]
	ldr	r3, [sp]
	lsl	r1, r1, #2
	bl	pci_free_consistent
	b	.L1
.L32:
	ldr	r2, .L33+28
	ldr	r3, [r8, #12]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L4
	ldr	r2, .L33+32
	ldr	r2, [r2]
	cmp	r3, r2
	bne	.L3
	b	.L4
.L31:
	bl	__stack_chk_fail
.L34:
	.align	2
.L33:
	.word	MPI_CONFIG_PAGETYPE_RAID_VOLUME
	.word	MPI_CONFIG_ACTION_PAGE_HEADER
	.word	.LC0
	.word	MPI_CONFIG_ACTION_PAGE_READ_CURRENT
	.word	MPI_RAIDVOL0_STATUS_FLAG_VOLUME_INACTIVE
	.word	MPI_RAIDVOL0_STATUS_FLAG_ENABLED
	.word	GFP_KERNEL
	.word	MPI_RAIDVOL0_STATUS_STATE_FAILED
	.word	MPI_RAIDVOL0_STATUS_STATE_MISSING
	.size	mpt_inactive_raid_volumes, .-mpt_inactive_raid_volumes
	.comm	MPI_RAIDVOL0_STATUS_STATE_MISSING,4,4
	.comm	MPI_RAIDVOL0_STATUS_STATE_FAILED,4,4
	.comm	MPI_RAIDVOL0_STATUS_FLAG_VOLUME_INACTIVE,4,4
	.comm	MPI_RAIDVOL0_STATUS_FLAG_ENABLED,4,4
	.comm	MPI_CONFIG_PAGETYPE_RAID_VOLUME,4,4
	.comm	MPI_CONFIG_ACTION_PAGE_READ_CURRENT,4,4
	.comm	MPI_CONFIG_ACTION_PAGE_HEADER,4,4
	.comm	GFP_KERNEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
