	.file	"extr_smartpqi_discovery.c_pqisrc_get_dev_ioaccel_status.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"IN\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"error in send scsi inquiry ret=%d\n"
	.align 8
.LC2:
	.string	"offload_config: 0x%x offload_enabled_pending: 0x%x \n"
	.section	.rodata.str1.1
.LC3:
	.string	"OUT\n"
	.text
	.p2align 4
	.type	pqisrc_get_dev_ioaccel_status, @function
pqisrc_get_dev_ioaccel_status:
.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
	lea	rdi, .LC0[rip]
	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
	call	DBG_FUNC@PLT
	mov	esi, 64
	mov	rdi, r12
	call	os_mem_alloc@PLT
	test	rax, rax
	je	.L1
	mov	esi, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR VPD_PAGE[rip]
	mov	rcx, rax
	mov	rdi, r12
	or	edx, DWORD PTR SA_VPD_LV_IOACCEL_STATUS[rip]
	mov	r8d, 64
	mov	rbp, rax
	call	pqisrc_send_scsi_inquiry@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L10
	mov	rax, QWORD PTR IOACCEL_STATUS_BYTE[rip]
	xor	edx, edx
	mov	eax, DWORD PTR 0[rbp+rax*4]
	mov	esi, eax
	and	esi, DWORD PTR OFFLOAD_CONFIGURED_BIT[rip]
	setne	dl
	mov	DWORD PTR [rbx], edx
	jne	.L5
	mov	r13d, DWORD PTR 4[rbx]
.L6:
	mov	edx, r13d
	lea	rdi, .LC2[rip]
	call	DBG_DISC@PLT
.L4:
	mov	rdi, r12
	mov	rsi, rbp
	mov	edx, 64
	call	os_mem_free@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	lea	rdi, .LC3[rip]
	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
	jmp	DBG_FUNC@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	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
.L5:
	.cfi_restore_state
	test	DWORD PTR OFFLOAD_ENABLED_BIT[rip], eax
	mov	rsi, rbx
	mov	rdi, r12
	setne	al
	movzx	eax, al
	mov	DWORD PTR 4[rbx], eax
	call	pqisrc_get_device_raidmap@PLT
	test	rax, rax
	jne	.L7
	mov	r13d, DWORD PTR 4[rbx]
	mov	esi, DWORD PTR [rbx]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L10:
	mov	esi, eax
	lea	rdi, .LC1[rip]
	call	DBG_ERR@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	mov	DWORD PTR 4[rbx], 0
	mov	esi, DWORD PTR [rbx]
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	pqisrc_get_dev_ioaccel_status, .-pqisrc_get_dev_ioaccel_status
	.comm	VPD_PAGE,4,4
	.comm	SA_VPD_LV_IOACCEL_STATUS,4,4
	.comm	PQI_STATUS_SUCCESS,4,4
	.comm	OFFLOAD_ENABLED_BIT,4,4
	.comm	OFFLOAD_CONFIGURED_BIT,4,4
	.comm	IOACCEL_STATUS_BYTE,8,8
	.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_discovery.c_pqisrc_get_dev_ioaccel_status.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"IN\012\000"
	.align	2
.LC1:
	.ascii	"error in send scsi inquiry ret=%d\012\000"
	.align	2
.LC2:
	.ascii	"offload_config: 0x%x offload_enabled_pending: 0x%x "
	.ascii	"\012\000"
	.align	2
.LC3:
	.ascii	"OUT\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pqisrc_get_dev_ioaccel_status, %function
pqisrc_get_dev_ioaccel_status:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r5, r0
	sub	sp, sp, #12
	ldr	r0, .L12
	mov	r6, r1
	bl	DBG_FUNC
	mov	r0, r5
	mov	r1, #64
	bl	os_mem_alloc
	subs	r4, r0, #0
	beq	.L1
	mov	r1, #64
	ldr	r2, .L12+4
	ldr	r3, .L12+8
	ldr	r2, [r2]
	ldr	r3, [r3]
	str	r1, [sp]
	orr	r2, r2, r3
	mov	r0, r5
	mov	r3, r4
	ldr	r1, [r6, #8]
	bl	pqisrc_send_scsi_inquiry
	subs	r7, r0, #0
	bne	.L11
	ldr	r3, .L12+12
	ldr	r2, .L12+16
	ldr	r3, [r3]
	ldr	r1, [r2]
	ldr	r3, [r4, r3, lsl #2]
	and	r1, r1, r3
	cmp	r1, #0
	movne	r2, #1
	moveq	r2, #0
	str	r2, [r6]
	bne	.L5
.L9:
	ldr	r7, [r6, #4]
.L6:
	mov	r2, r7
	ldr	r0, .L12+20
	bl	DBG_DISC
.L4:
	mov	r1, r4
	mov	r0, r5
	mov	r2, #64
	bl	os_mem_free
	ldr	r0, .L12+24
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	DBG_FUNC
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L5:
	ldr	r2, .L12+28
	mov	r1, r6
	ldr	r2, [r2]
	mov	r0, r5
	tst	r3, r2
	movne	r3, #1
	moveq	r3, #0
	str	r3, [r6, #4]
	bl	pqisrc_get_device_raidmap
	cmp	r0, #0
	ldr	r1, [r6]
	strne	r7, [r6, #4]
	bne	.L6
	b	.L9
.L11:
	mov	r1, r7
	ldr	r0, .L12+32
	bl	DBG_ERR
	b	.L4
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	VPD_PAGE
	.word	SA_VPD_LV_IOACCEL_STATUS
	.word	IOACCEL_STATUS_BYTE
	.word	OFFLOAD_CONFIGURED_BIT
	.word	.LC2
	.word	.LC3
	.word	OFFLOAD_ENABLED_BIT
	.word	.LC1
	.size	pqisrc_get_dev_ioaccel_status, .-pqisrc_get_dev_ioaccel_status
	.comm	VPD_PAGE,4,4
	.comm	SA_VPD_LV_IOACCEL_STATUS,4,4
	.comm	PQI_STATUS_SUCCESS,4,4
	.comm	OFFLOAD_ENABLED_BIT,4,4
	.comm	OFFLOAD_CONFIGURED_BIT,4,4
	.comm	IOACCEL_STATUS_BYTE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
