	.file	"extr_smartpqi_cam.c_os_aio_response_error.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"IN\n"
.LC1:
	.string	"rcb is null"
.LC2:
	.string	"csio is null"
.LC3:
	.string	"IO aborted\n"
.LC4:
	.string	"AIO Path Disabled\n"
.LC5:
	.string	"IO Error/Invalid/No device\n"
.LC6:
	.string	"TMF rejected/Incorrect Lun\n"
.LC7:
	.string	"Scsi Status Error\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC8:
	.string	"SCSI_STATUS_CHECK_COND  sense size %u\n"
	.section	.rodata.str1.1
.LC9:
	.string	"OUT\n"
	.text
	.p2align 4
	.globl	os_aio_response_error
	.type	os_aio_response_error, @function
os_aio_response_error:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	lea	rdi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	DBG_IO@PLT
	test	rbp, rbp
	je	.L27
.L2:
	mov	eax, DWORD PTR REQUEST_SUCCESS[rip]
	mov	r12, QWORD PTR 16[rbp]
	mov	DWORD PTR 24[rbp], eax
	test	r12, r12
	je	.L28
.L3:
	mov	eax, DWORD PTR [rbx]
	mov	r13, QWORD PTR 8[rbp]
	sub	eax, 135
	cmp	eax, 5
	ja	.L4
	lea	rdx, .L6[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L6:
	.long	.L8-.L6
	.long	.L9-.L6
	.long	.L9-.L6
	.long	.L8-.L6
	.long	.L7-.L6
	.long	.L5-.L6
	.text
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, DWORD PTR 4[rbx]
	cmp	eax, 132
	je	.L11
	jg	.L12
	cmp	eax, 128
	je	.L13
	cmp	eax, 129
	jne	.L15
.L8:
	mov	rax, QWORD PTR CAM_REQ_CMP[rip]
	mov	DWORD PTR 8[r12], eax
.L10:
	mov	rax, QWORD PTR DATA_PRESENT_SENSE_DATA[rip]
	cmp	QWORD PTR 8[rbx], rax
	je	.L29
.L17:
	mov	rsi, r12
	mov	rdi, r13
	call	smartpqi_fix_ld_inquiry@PLT
	mov	rdi, rbp
	call	pqi_release_camq@PLT
	mov	rdi, rbp
	call	pqi_unmap_request@PLT
	mov	rdi, r12
	call	xpt_done@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	lea	rdi, .LC9[rip]
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	DBG_IO@PLT
	.p2align 4,,10
	.p2align 3
.L29:
	.cfi_restore_state
	mov	eax, DWORD PTR PQI_AIO_STATUS_CHECK_CONDITION[rip]
	mov	edi, DWORD PTR 24[rbx]
	lea	r15, 12[r12]
	mov	DWORD PTR 16[r12], eax
	call	LE_16@PLT
	mov	r14d, eax
	test	eax, eax
	je	.L18
	mov	rdi, QWORD PTR 0[rbp]
	mov	edx, eax
	lea	rsi, .LC8[rip]
	mov	rbx, QWORD PTR 16[rbx]
	call	DBG_ERR_BTL@PLT
	mov	edx, DWORD PTR [r12]
	xor	esi, esi
	mov	rdi, r15
	call	memset@PLT
	test	rbx, rbx
	je	.L19
	cmp	DWORD PTR [r12], r14d
	mov	edx, r14d
	cmovbe	edx, DWORD PTR [r12]
	mov	rsi, rbx
	mov	rdi, r15
	call	memcpy@PLT
.L19:
	mov	edx, DWORD PTR [r12]
	mov	eax, edx
	sub	eax, r14d
	cmp	edx, r14d
	mov	edx, 0
	cmovbe	eax, edx
	mov	DWORD PTR 4[r12], eax
	mov	eax, DWORD PTR CAM_SCSI_STATUS_ERROR[rip]
	or	eax, DWORD PTR CAM_AUTOSNS_VALID[rip]
	mov	DWORD PTR 8[r12], eax
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, QWORD PTR 0[rbp]
	lea	rsi, .LC6[rip]
	call	DBG_WARN_BTL@PLT
	mov	eax, DWORD PTR CAM_SCSI_STATUS_ERROR[rip]
	or	DWORD PTR 8[r12], eax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, DWORD PTR 4[rbx]
	mov	DWORD PTR 8[r12], eax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rdi, QWORD PTR 0[rbp]
	xor	edx, edx
	lea	rsi, .LC8[rip]
	call	DBG_ERR_BTL@PLT
	mov	edx, DWORD PTR [r12]
	xor	esi, esi
	mov	rdi, r15
	call	memset@PLT
	jmp	.L19
.L4:
	mov	rdi, QWORD PTR 0[rbp]
	lea	rsi, .LC7[rip]
	call	DBG_WARN_BTL@PLT
	mov	eax, DWORD PTR CAM_SCSI_STATUS_ERROR[rip]
	or	DWORD PTR 8[r12], eax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L12:
	cmp	eax, 134
	jne	.L15
	mov	rdi, QWORD PTR 0[rbp]
	lea	rsi, .LC4[rip]
	call	DBG_WARN_BTL@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	DWORD PTR [rax], 0
	mov	eax, DWORD PTR CAM_REQUEUE_REQ[rip]
	or	DWORD PTR 8[r12], eax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L27:
	lea	rdi, .LC1[rip]
	call	panic@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L28:
	lea	rdi, .LC2[rip]
	call	panic@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L11:
	mov	eax, DWORD PTR CAM_REQ_ABORTED[rip]
	mov	rdi, QWORD PTR 0[rbp]
	lea	rsi, .LC3[rip]
	mov	DWORD PTR 8[r12], eax
	call	DBG_WARN_BTL@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rax, QWORD PTR CAM_REQ_CMP[rip]
	mov	edi, DWORD PTR 28[rbx]
	mov	DWORD PTR 8[r12], eax
	call	LE_32@PLT
	mov	DWORD PTR 20[r12], eax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdi, QWORD PTR 0[rbp]
	lea	rsi, .LC5[rip]
	call	DBG_WARN_BTL@PLT
	mov	eax, DWORD PTR CAM_SCSI_STATUS_ERROR[rip]
	or	DWORD PTR 8[r12], eax
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	os_aio_response_error, .-os_aio_response_error
	.comm	REQUEST_SUCCESS,4,4
	.comm	PQI_AIO_STATUS_CHECK_CONDITION,4,4
	.comm	DATA_PRESENT_SENSE_DATA,8,8
	.comm	CAM_SCSI_STATUS_ERROR,4,4
	.comm	CAM_REQ_CMP,8,8
	.comm	CAM_REQ_ABORTED,4,4
	.comm	CAM_REQUEUE_REQ,4,4
	.comm	CAM_AUTOSNS_VALID,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_cam.c_os_aio_response_error.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"IN\012\000"
	.align	2
.LC1:
	.ascii	"rcb is null\000"
	.align	2
.LC2:
	.ascii	"csio is null\000"
	.align	2
.LC3:
	.ascii	"IO aborted\012\000"
	.align	2
.LC4:
	.ascii	"AIO Path Disabled\012\000"
	.align	2
.LC5:
	.ascii	"IO Error/Invalid/No device\012\000"
	.align	2
.LC6:
	.ascii	"TMF rejected/Incorrect Lun\012\000"
	.align	2
.LC7:
	.ascii	"Scsi Status Error\012\000"
	.align	2
.LC8:
	.ascii	"SCSI_STATUS_CHECK_COND  sense size %u\012\000"
	.align	2
.LC9:
	.ascii	"OUT\012\000"
	.text
	.align	2
	.global	os_aio_response_error
	.syntax unified
	.arm
	.fpu softvfp
	.type	os_aio_response_error, %function
os_aio_response_error:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	ldr	r0, .L31
	mov	r6, r1
	bl	DBG_IO
	cmp	r4, #0
	beq	.L28
.L2:
	ldr	r3, .L31+4
	ldr	r5, [r4, #8]
	ldr	r3, [r3]
	cmp	r5, #0
	str	r3, [r4, #12]
	beq	.L29
.L3:
	ldr	r3, [r6]
	ldr	r7, [r4, #4]
	sub	r3, r3, #135
	cmp	r3, #5
	ldrls	pc, [pc, r3, asl #2]
	b	.L4
.L6:
	.word	.L8
	.word	.L9
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L5
.L8:
	ldr	r3, .L31+8
	ldr	r3, [r3]
	str	r3, [r5, #8]
.L10:
	ldr	r3, .L31+12
	ldr	r2, [r6, #8]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L30
.L17:
	mov	r1, r5
	mov	r0, r7
	bl	smartpqi_fix_ld_inquiry
	mov	r0, r4
	bl	pqi_release_camq
	mov	r0, r4
	bl	pqi_unmap_request
	mov	r0, r5
	bl	xpt_done
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r0, .L31+16
	b	DBG_IO
.L30:
	ldr	r3, .L31+20
	ldr	r0, [r6, #16]
	ldr	r3, [r3]
	add	r9, r5, #12
	str	r3, [r5, #16]
	bl	LE_16
	subs	r8, r0, #0
	mov	r2, r8
	ldr	r1, .L31+24
	ldr	r0, [r4]
	beq	.L18
	ldr	r10, [r6, #12]
	bl	DBG_ERR_BTL
	ldr	r6, [r5]
	mov	r1, #0
	mov	r2, r6
	mov	r0, r9
	bl	memset
	cmp	r10, #0
	beq	.L19
	cmp	r6, r8
	mov	r1, r10
	mov	r0, r9
	movcc	r2, r6
	movcs	r2, r8
	bl	memcpy
.L19:
	cmp	r8, r6
	movcs	r8, #0
	ldr	r3, .L31+28
	ldr	r2, .L31+32
	ldr	r3, [r3]
	ldr	r2, [r2]
	subcc	r8, r6, r8
	orr	r3, r3, r2
	str	r8, [r5, #4]
	str	r3, [r5, #8]
	b	.L17
.L9:
	ldr	r1, .L31+36
.L26:
	ldr	r0, [r4]
	bl	DBG_WARN_BTL
	ldr	r2, .L31+28
	ldr	r3, [r5, #8]
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [r5, #8]
	b	.L10
.L7:
	ldr	r3, [r6, #4]
	sub	r3, r3, #128
	cmp	r3, #6
	ldrls	pc, [pc, r3, asl #2]
	b	.L11
.L13:
	.word	.L16
	.word	.L8
	.word	.L11
	.word	.L11
	.word	.L14
	.word	.L11
	.word	.L12
.L5:
	ldr	r3, [r6, #4]
	str	r3, [r5, #8]
	b	.L10
.L18:
	bl	DBG_ERR_BTL
	ldr	r6, [r5]
	mov	r0, r9
	mov	r2, r6
	mov	r1, r8
	bl	memset
	b	.L19
.L29:
	ldr	r0, .L31+40
	bl	panic
	b	.L3
.L28:
	ldr	r0, .L31+44
	bl	panic
	b	.L2
.L11:
	ldr	r1, .L31+48
	b	.L26
.L12:
	ldr	r1, .L31+52
	ldr	r0, [r4]
	bl	DBG_WARN_BTL
	mov	r1, #0
	ldr	r2, [r4]
	ldr	r3, .L31+56
	str	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, [r5, #8]
	orr	r3, r3, r2
	str	r3, [r5, #8]
	b	.L10
.L14:
	ldr	r3, .L31+60
	ldr	r0, [r4]
	ldr	r3, [r3]
	ldr	r1, .L31+64
	str	r3, [r5, #8]
	bl	DBG_WARN_BTL
	b	.L10
.L16:
	ldr	r3, .L31+8
	ldr	r0, [r6, #20]
	ldr	r3, [r3]
	str	r3, [r5, #8]
	bl	LE_32
	str	r0, [r5, #20]
	b	.L10
.L4:
	ldr	r1, .L31+68
	b	.L26
.L32:
	.align	2
.L31:
	.word	.LC0
	.word	REQUEST_SUCCESS
	.word	CAM_REQ_CMP
	.word	DATA_PRESENT_SENSE_DATA
	.word	.LC9
	.word	PQI_AIO_STATUS_CHECK_CONDITION
	.word	.LC8
	.word	CAM_SCSI_STATUS_ERROR
	.word	CAM_AUTOSNS_VALID
	.word	.LC6
	.word	.LC2
	.word	.LC1
	.word	.LC5
	.word	.LC4
	.word	CAM_REQUEUE_REQ
	.word	CAM_REQ_ABORTED
	.word	.LC3
	.word	.LC7
	.size	os_aio_response_error, .-os_aio_response_error
	.comm	REQUEST_SUCCESS,4,4
	.comm	PQI_AIO_STATUS_CHECK_CONDITION,4,4
	.comm	DATA_PRESENT_SENSE_DATA,4,4
	.comm	CAM_SCSI_STATUS_ERROR,4,4
	.comm	CAM_REQ_CMP,4,4
	.comm	CAM_REQ_ABORTED,4,4
	.comm	CAM_REQUEUE_REQ,4,4
	.comm	CAM_AUTOSNS_VALID,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
