	.file	"extr_hpsa.c_hpsa_send_reset.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"cmd_special_alloc returned NULL!\n"
	.text
	.p2align 4
	.type	hpsa_send_reset, @function
hpsa_send_reset:
.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
	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	r13d, DWORD PTR IO_OK[rip]
	call	cmd_special_alloc@PLT
	test	rax, rax
	je	.L7
	mov	rbp, rax
	mov	eax, DWORD PTR TYPE_MSG[rip]
	xor	ecx, ecx
	xor	r9d, r9d
	mov	esi, DWORD PTR HPSA_DEVICE_RESET_MSG[rip]
	xor	r8d, r8d
	mov	rdx, r12
	mov	rdi, rbp
	push	rax
	.cfi_def_cfa_offset 56
	push	rbx
	.cfi_def_cfa_offset 64
	call	fill_cmd@PLT
	mov	rsi, rbp
	mov	rdi, r12
	call	hpsa_scsi_do_simple_cmd_core@PLT
	mov	rax, QWORD PTR 0[rbp]
	pop	rdx
	.cfi_def_cfa_offset 56
	pop	rcx
	.cfi_def_cfa_offset 48
	cmp	QWORD PTR [rax], 0
	jne	.L8
.L4:
	mov	rsi, rbp
	mov	rdi, r12
	call	cmd_special_free@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
.L8:
	.cfi_restore_state
	mov	rdi, rbp
	mov	r13d, -1
	call	hpsa_scsi_interpret_error@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, QWORD PTR [r12]
	lea	rsi, .LC0[rip]
	call	dev_warn@PLT
	mov	r13d, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	r13d
	pop	r12
	.cfi_def_cfa_offset 16
	mov	eax, r13d
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	hpsa_send_reset, .-hpsa_send_reset
	.comm	TYPE_MSG,4,4
	.comm	IO_OK,4,4
	.comm	HPSA_DEVICE_RESET_MSG,4,4
	.comm	ENOMEM,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_send_reset.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"cmd_special_alloc returned NULL!\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hpsa_send_reset, %function
hpsa_send_reset:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L12
	sub	sp, sp, #20
	mov	r7, r1
	mov	r5, r0
	ldr	r6, [r3]
	bl	cmd_special_alloc
	subs	r4, r0, #0
	beq	.L10
	mov	r3, #0
	ldr	r1, .L12+4
	ldr	r2, .L12+8
	ldr	r1, [r1]
	str	r3, [sp, #4]
	str	r3, [sp]
	str	r7, [sp, #8]
	str	r1, [sp, #12]
	ldr	r1, [r2]
	mov	r2, r5
	bl	fill_cmd
	mov	r1, r4
	mov	r0, r5
	bl	hpsa_scsi_do_simple_cmd_core
	ldr	r3, [r4]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L11
.L4:
	mov	r1, r4
	mov	r0, r5
	bl	cmd_special_free
	mov	r0, r6
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L11:
	mov	r0, r4
	bl	hpsa_scsi_interpret_error
	mvn	r6, #0
	b	.L4
.L10:
	ldr	r0, [r5]
	ldr	r1, .L12+12
	bl	dev_warn
	ldr	r3, .L12+16
	ldr	r6, [r3]
	rsb	r6, r6, #0
	mov	r0, r6
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L13:
	.align	2
.L12:
	.word	IO_OK
	.word	TYPE_MSG
	.word	HPSA_DEVICE_RESET_MSG
	.word	.LC0
	.word	ENOMEM
	.size	hpsa_send_reset, .-hpsa_send_reset
	.comm	TYPE_MSG,4,4
	.comm	IO_OK,4,4
	.comm	HPSA_DEVICE_RESET_MSG,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
