	.file	"extr_smartpqi_init.c_pqi_get_raid_level.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pqi_get_raid_level, @function
pqi_get_raid_level:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	mov	edi, 64
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	r13, QWORD PTR SA_RAID_UNKNOWN[rip]
	call	kmalloc@PLT
	test	rax, rax
	je	.L2
	mov	esi, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR VPD_PAGE[rip]
	mov	rcx, rax
	mov	rdi, r12
	or	edx, DWORD PTR CISS_VPD_LV_DEVICE_GEOMETRY[rip]
	mov	r8d, 64
	mov	rbp, rax
	call	pqi_scsi_inquiry@PLT
	test	eax, eax
	je	.L9
.L3:
	mov	rdi, rbp
	call	kfree@PLT
.L2:
	mov	QWORD PTR [rbx], r13
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	r13, QWORD PTR 64[rbp]
	cmp	QWORD PTR SA_RAID_MAX[rip], r13
	jge	.L3
	mov	r13, QWORD PTR SA_RAID_UNKNOWN[rip]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	pqi_get_raid_level, .-pqi_get_raid_level
	.comm	VPD_PAGE,4,4
	.comm	SA_RAID_UNKNOWN,8,8
	.comm	SA_RAID_MAX,8,8
	.comm	GFP_KERNEL,4,4
	.comm	CISS_VPD_LV_DEVICE_GEOMETRY,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_smartpqi_init.c_pqi_get_raid_level.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pqi_get_raid_level, %function
pqi_get_raid_level:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r2, .L10
	ldr	r8, .L10+4
	mov	r7, r0
	mov	r5, r1
	mov	r0, #64
	ldr	r1, [r2]
	sub	sp, sp, #8
	ldr	r6, [r8]
	bl	kmalloc
	subs	r4, r0, #0
	beq	.L2
	mov	r3, #64
	ldr	r1, .L10+8
	ldr	r2, .L10+12
	ldr	r1, [r1]
	ldr	r2, [r2]
	str	r3, [sp]
	orr	r2, r1, r2
	mov	r0, r7
	mov	r3, r4
	ldr	r1, [r5, #4]
	bl	pqi_scsi_inquiry
	cmp	r0, #0
	beq	.L9
.L3:
	mov	r0, r4
	bl	kfree
.L2:
	str	r6, [r5]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	ldr	r3, .L10+16
	ldr	r6, [r4, #32]
	ldr	r3, [r3]
	cmp	r3, r6
	ldrlt	r6, [r8]
	b	.L3
.L11:
	.align	2
.L10:
	.word	GFP_KERNEL
	.word	SA_RAID_UNKNOWN
	.word	VPD_PAGE
	.word	CISS_VPD_LV_DEVICE_GEOMETRY
	.word	SA_RAID_MAX
	.size	pqi_get_raid_level, .-pqi_get_raid_level
	.comm	VPD_PAGE,4,4
	.comm	SA_RAID_UNKNOWN,4,4
	.comm	SA_RAID_MAX,4,4
	.comm	GFP_KERNEL,4,4
	.comm	CISS_VPD_LV_DEVICE_GEOMETRY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
