	.file	"extr_hpsa.c_hpsa_bmic_id_controller.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	hpsa_bmic_id_controller, @function
hpsa_bmic_id_controller:
.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, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	cmd_alloc@PLT
	mov	rcx, r12
	mov	rdx, rbp
	xor	r9d, r9d
	mov	r13, rax
	mov	eax, DWORD PTR TYPE_CMD[rip]
	mov	esi, DWORD PTR BMIC_IDENTIFY_CONTROLLER[rip]
	mov	r8, rbx
	mov	rdi, r13
	push	rax
	.cfi_def_cfa_offset 56
	mov	eax, DWORD PTR RAID_CTLR_LUNID[rip]
	push	rax
	.cfi_def_cfa_offset 64
	call	fill_cmd@PLT
	pop	rdx
	.cfi_def_cfa_offset 56
	pop	rcx
	.cfi_def_cfa_offset 48
	mov	r12d, eax
	test	eax, eax
	je	.L8
.L2:
	mov	rsi, r13
	mov	rdi, rbp
	call	cmd_free@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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	ecx, DWORD PTR NO_TIMEOUT[rip]
	mov	edx, DWORD PTR DMA_FROM_DEVICE[rip]
	mov	rsi, r13
	mov	rdi, rbp
	call	hpsa_scsi_do_simple_cmd_with_retry@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L2
	mov	rax, QWORD PTR 0[r13]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L2
	cmp	rax, QWORD PTR CMD_DATA_UNDERRUN[rip]
	je	.L2
	mov	rsi, r13
	mov	rdi, rbp
	mov	r12d, -1
	call	hpsa_scsi_interpret_error@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	hpsa_bmic_id_controller, .-hpsa_bmic_id_controller
	.comm	TYPE_CMD,4,4
	.comm	RAID_CTLR_LUNID,4,4
	.comm	NO_TIMEOUT,4,4
	.comm	IO_OK,4,4
	.comm	DMA_FROM_DEVICE,4,4
	.comm	CMD_DATA_UNDERRUN,8,8
	.comm	BMIC_IDENTIFY_CONTROLLER,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_bmic_id_controller.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hpsa_bmic_id_controller, %function
hpsa_bmic_id_controller:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	sub	sp, sp, #20
	mov	r4, r1
	mov	r7, r2
	mov	r5, r0
	bl	cmd_alloc
	mov	ip, #0
	ldr	r3, .L8
	ldr	r2, .L8+4
	ldr	r1, [r3]
	ldr	lr, [r2]
	str	r1, [sp, #8]
	ldr	r1, .L8+8
	str	r7, [sp]
	str	lr, [sp, #12]
	str	ip, [sp, #4]
	mov	r3, r4
	mov	r2, r5
	ldr	r1, [r1]
	mov	r6, r0
	bl	fill_cmd
	subs	r4, r0, #0
	beq	.L7
.L2:
	mov	r1, r6
	mov	r0, r5
	bl	cmd_free
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L7:
	ldr	r3, .L8+12
	ldr	r2, .L8+16
	mov	r1, r6
	mov	r0, r5
	ldr	r3, [r3]
	ldr	r2, [r2]
	bl	hpsa_scsi_do_simple_cmd_with_retry
	subs	r4, r0, #0
	bne	.L2
	ldr	r3, [r6]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L2
	ldr	r2, .L8+20
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L2
	mov	r1, r6
	mov	r0, r5
	bl	hpsa_scsi_interpret_error
	mvn	r4, #0
	b	.L2
.L9:
	.align	2
.L8:
	.word	RAID_CTLR_LUNID
	.word	TYPE_CMD
	.word	BMIC_IDENTIFY_CONTROLLER
	.word	NO_TIMEOUT
	.word	DMA_FROM_DEVICE
	.word	CMD_DATA_UNDERRUN
	.size	hpsa_bmic_id_controller, .-hpsa_bmic_id_controller
	.comm	TYPE_CMD,4,4
	.comm	RAID_CTLR_LUNID,4,4
	.comm	NO_TIMEOUT,4,4
	.comm	IO_OK,4,4
	.comm	DMA_FROM_DEVICE,4,4
	.comm	CMD_DATA_UNDERRUN,4,4
	.comm	BMIC_IDENTIFY_CONTROLLER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
