	.file	"extr_hpsa.c_hpsa_volume_offline.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	hpsa_volume_offline, @function
hpsa_volume_offline:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	cmd_alloc@PLT
	mov	esi, DWORD PTR TEST_UNIT_READY[rip]
	xor	r9d, r9d
	xor	ecx, ecx
	mov	r12, rax
	mov	eax, DWORD PTR TYPE_CMD[rip]
	xor	r8d, r8d
	mov	rdx, rbp
	mov	rdi, r12
	push	rax
	.cfi_def_cfa_offset 72
	push	r13
	.cfi_def_cfa_offset 80
	call	fill_cmd@PLT
	mov	ecx, DWORD PTR NO_TIMEOUT[rip]
	mov	rsi, r12
	mov	rdi, rbp
	mov	edx, DWORD PTR DEFAULT_REPLY_QUEUE[rip]
	call	hpsa_scsi_do_simple_cmd@PLT
	pop	rdx
	.cfi_def_cfa_offset 72
	pop	rcx
	.cfi_def_cfa_offset 64
	test	eax, eax
	jne	.L13
	mov	rax, QWORD PTR [r12]
	lea	rcx, 16[rsp]
	lea	rdx, 12[rsp]
	lea	r8, 20[rsp]
	mov	esi, DWORD PTR 8[rax]
	mov	rdi, QWORD PTR [rax]
	mov	eax, 8
	cmp	esi, 9
	cmovnb	esi, eax
	call	decode_sense_data@PLT
	mov	rsi, r12
	mov	rdi, rbp
	call	cmd_free@PLT
	mov	rsi, r13
	mov	rdi, rbp
	call	hpsa_get_volume_status@PLT
	cmp	eax, 128
	je	.L5
	lea	edx, -129[rax]
	cmp	edx, 9
	ja	.L6
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L14
	add	rsp, 32
	.cfi_remember_state
	.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
	mov	eax, DWORD PTR 20[rsp]
	lea	edx, -2[rax]
	mov	eax, -128
	and	edx, -3
	je	.L1
.L6:
	movzx	eax, BYTE PTR HPSA_LV_OK[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rsi, r12
	mov	rdi, rbp
	call	cmd_free@PLT
	mov	eax, -128
	jmp	.L1
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	hpsa_volume_offline, .-hpsa_volume_offline
	.comm	TYPE_CMD,4,4
	.comm	TEST_UNIT_READY,4,4
	.comm	NO_TIMEOUT,4,4
	.comm	HPSA_LV_OK,1,1
	.comm	DEFAULT_REPLY_QUEUE,4,4
	.comm	ASCQ_LUN_NOT_READY_INITIALIZING_CMD_REQ,4,4
	.comm	ASCQ_LUN_NOT_READY_FORMAT_IN_PROGRESS,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_hpsa.c_hpsa_volume_offline.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hpsa_volume_offline, %function
hpsa_volume_offline:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L14
	sub	sp, sp, #32
	mov	r6, r1
	mov	r4, r0
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	cmd_alloc
	mov	r3, #0
	mov	r5, r0
	ldr	r2, .L14+4
	ldr	r1, .L14+8
	ldr	ip, [r2]
	str	r3, [sp, #4]
	str	ip, [sp, #12]
	str	r3, [sp]
	str	r6, [sp, #8]
	mov	r2, r4
	ldr	r1, [r1]
	bl	fill_cmd
	ldr	r3, .L14+12
	ldr	r2, .L14+16
	mov	r1, r5
	mov	r0, r4
	ldr	r3, [r3]
	ldr	r2, [r2]
	bl	hpsa_scsi_do_simple_cmd
	cmp	r0, #0
	bne	.L12
	ldr	r3, [r5]
	add	r2, sp, #24
	ldm	r3, {r0, r1}
	cmp	r1, #5
	movcs	r1, #4
	add	r3, sp, #20
	str	r2, [sp]
	add	r2, sp, #16
	bl	decode_sense_data
	mov	r1, r5
	mov	r0, r4
	bl	cmd_free
	mov	r1, r6
	mov	r0, r4
	bl	hpsa_get_volume_status
	cmp	r0, #128
	beq	.L5
	sub	r3, r0, #129
	cmp	r3, #9
	andls	r0, r0, #255
	bhi	.L6
.L3:
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, pc}
.L5:
	ldr	r3, [sp, #24]
	sub	r3, r3, #2
	bics	r3, r3, #2
	beq	.L3
.L6:
	ldr	r3, .L14+20
	ldrb	r0, [r3]	@ zero_extendqisi2
	b	.L3
.L12:
	mov	r1, r5
	mov	r0, r4
	bl	cmd_free
	mov	r0, #128
	b	.L3
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC0
	.word	TYPE_CMD
	.word	TEST_UNIT_READY
	.word	NO_TIMEOUT
	.word	DEFAULT_REPLY_QUEUE
	.word	HPSA_LV_OK
	.size	hpsa_volume_offline, .-hpsa_volume_offline
	.comm	TYPE_CMD,4,4
	.comm	TEST_UNIT_READY,4,4
	.comm	NO_TIMEOUT,4,4
	.comm	HPSA_LV_OK,1,1
	.comm	DEFAULT_REPLY_QUEUE,4,4
	.comm	ASCQ_LUN_NOT_READY_INITIALIZING_CMD_REQ,4,4
	.comm	ASCQ_LUN_NOT_READY_FORMAT_IN_PROGRESS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
