	.file	"extr_aachba.c_hba_resp_task_complete.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	hba_resp_task_complete, @function
hba_resp_task_complete:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	eax, DWORD PTR [rdx]
	mov	edi, DWORD PTR 12[rdx]
	mov	DWORD PTR [rsi], eax
	call	le32_to_cpu@PLT
	mov	rdi, rbx
	mov	esi, eax
	call	scsi_set_resid@PLT
	mov	eax, DWORD PTR 0[rbp]
	cmp	eax, 132
	je	.L2
	jg	.L3
	cmp	eax, 129
	je	.L4
	cmp	eax, 131
	jne	.L6
.L9:
	mov	eax, DWORD PTR DID_OK[rip]
.L14:
	mov	edx, DWORD PTR COMMAND_COMPLETE[rip]
	sal	eax, 16
	sal	edx, 8
	or	eax, edx
	or	DWORD PTR [rbx], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	cmp	eax, 133
	jne	.L6
	mov	eax, DWORD PTR DID_BUS_BUSY[rip]
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L2:
	mov	esi, DWORD PTR 8[rbp]
	mov	edx, DWORD PTR SCSI_SENSE_BUFFERSIZE[rip]
	mov	edi, DWORD PTR u8[rip]
	call	min_t@PLT
	test	eax, eax
	je	.L9
	mov	esi, DWORD PTR 4[rbp]
	mov	edi, DWORD PTR 4[rbx]
	mov	edx, eax
	call	memcpy@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, DWORD PTR DID_ABORT[rip]
	mov	edx, DWORD PTR ABORT[rip]
	sal	eax, 16
	sal	edx, 8
	or	eax, edx
	or	DWORD PTR [rbx], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	eax, DWORD PTR DID_ERROR[rip]
	jmp	.L14
	.cfi_endproc
.LFE0:
	.size	hba_resp_task_complete, .-hba_resp_task_complete
	.comm	u8,4,4
	.comm	SCSI_SENSE_BUFFERSIZE,4,4
	.comm	DID_OK,4,4
	.comm	DID_ERROR,4,4
	.comm	DID_BUS_BUSY,4,4
	.comm	DID_ABORT,4,4
	.comm	COMMAND_COMPLETE,4,4
	.comm	ABORT,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_aachba.c_hba_resp_task_complete.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hba_resp_task_complete, %function
hba_resp_task_complete:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r2]
	push	{r4, r5, r6, lr}
	ldr	r0, [r2, #12]
	str	r3, [r1]
	mov	r5, r2
	mov	r4, r1
	bl	le32_to_cpu
	mov	r1, r0
	mov	r0, r4
	bl	scsi_set_resid
	ldr	r3, [r5]
	sub	r3, r3, #129
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L7
	.word	.L2
	.word	.L9
	.word	.L5
	.word	.L3
.L5:
	ldr	r3, .L16
	ldr	r2, .L16+4
	ldr	r0, [r3]
	ldr	r2, [r2]
	ldr	r1, [r5, #8]
	bl	min_t
	subs	r2, r0, #0
	beq	.L9
	ldr	r1, [r5, #4]
	ldr	r0, [r4, #4]
	bl	memcpy
.L9:
	ldr	r3, .L16+8
	ldr	r2, .L16+12
.L14:
	ldr	r3, [r3]
	ldr	r1, [r2]
	lsl	r3, r3, #8
	ldr	r2, [r4]
	orr	r3, r3, r1, lsl #16
	orr	r3, r2, r3
	str	r3, [r4]
	pop	{r4, r5, r6, pc}
.L7:
	ldr	r3, .L16+16
	ldr	r2, .L16+20
	b	.L14
.L3:
	ldr	r3, .L16+8
	ldr	r2, .L16+24
	b	.L14
.L2:
	ldr	r3, .L16+8
	ldr	r2, .L16+28
	b	.L14
.L17:
	.align	2
.L16:
	.word	u8
	.word	SCSI_SENSE_BUFFERSIZE
	.word	COMMAND_COMPLETE
	.word	DID_OK
	.word	ABORT
	.word	DID_ABORT
	.word	DID_BUS_BUSY
	.word	DID_ERROR
	.size	hba_resp_task_complete, .-hba_resp_task_complete
	.comm	u8,4,4
	.comm	SCSI_SENSE_BUFFERSIZE,4,4
	.comm	DID_OK,4,4
	.comm	DID_ERROR,4,4
	.comm	DID_BUS_BUSY,4,4
	.comm	DID_ABORT,4,4
	.comm	COMMAND_COMPLETE,4,4
	.comm	ABORT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
