	.file	"extr_ipr.c_ipr_sata_done.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ipr_sata_done, @function
ipr_sata_done:
.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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rbp, QWORD PTR 40[rdi]
	mov	r15, QWORD PTR 32[rdi]
	mov	edi, DWORD PTR 16[rdi]
	mov	rax, QWORD PTR 8[rbp]
	mov	r12, QWORD PTR [rax]
	mov	r14, QWORD PTR 8[r12]
	call	be32_to_cpu@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	r13d, eax
	call	spin_lock@PLT
	mov	rax, QWORD PTR 32[rbx]
	cmp	QWORD PTR 8[rax], 0
	je	.L2
	lea	rsi, 24[rbx]
	mov	edx, 4
	mov	rdi, r12
	call	memcpy@PLT
.L3:
	mov	rdi, r15
	mov	rdx, r14
	mov	rsi, rbx
	call	ipr_dump_ioasa@PLT
	mov	edi, DWORD PTR 12[rbx]
	call	be32_to_cpu@PLT
	test	DWORD PTR IPR_ATA_DEVICE_WAS_RESET[rip], eax
	jne	.L12
.L4:
	mov	edi, r13d
	call	IPR_IOASC_SENSE_KEY@PLT
	cmp	rax, QWORD PTR RECOVERED_ERROR[rip]
	mov	edi, DWORD PTR [r12]
	jle	.L5
	call	__ac_err_mask@PLT
	or	DWORD PTR 0[rbp], eax
.L6:
	mov	rax, QWORD PTR [rbx]
	lea	rdi, 8[rbx]
	lea	rsi, 4[rax]
	call	list_add_tail@PLT
	mov	rdi, QWORD PTR [rbx]
	call	spin_unlock@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, rbp
	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	ata_qc_complete@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	rsi, 20[rbx]
	mov	edx, 4
	mov	rdi, r12
	call	memcpy@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	call	ac_err_mask@PLT
	or	DWORD PTR 0[rbp], eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L12:
	mov	esi, DWORD PTR 4[r14]
	mov	edx, DWORD PTR [r14]
	mov	edi, DWORD PTR [r15]
	call	scsi_report_device_reset@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	ipr_sata_done, .-ipr_sata_done
	.comm	RECOVERED_ERROR,8,8
	.comm	IPR_ATA_DEVICE_WAS_RESET,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_ipr.c_ipr_sata_done.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ipr_sata_done, %function
ipr_sata_done:
	@ 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	r5, [r0, #28]
	ldr	r0, [r0, #12]
	ldr	r3, [r5, #4]
	ldr	r9, [r4, #24]
	ldr	r6, [r3]
	ldr	r8, [r6, #4]
	bl	be32_to_cpu
	mov	r7, r0
	ldr	r0, [r4]
	bl	spin_lock
	ldr	r3, [r4, #24]
	mov	r2, #4
	ldr	r3, [r3, #4]
	mov	r0, r6
	cmp	r3, #0
	addne	r1, r4, #20
	addeq	r1, r4, #16
	bl	memcpy
	mov	r2, r8
	mov	r1, r4
	mov	r0, r9
	bl	ipr_dump_ioasa
	ldr	r0, [r4, #8]
	bl	be32_to_cpu
	ldr	r3, .L13
	ldr	r3, [r3]
	tst	r0, r3
	bne	.L12
.L4:
	mov	r0, r7
	bl	IPR_IOASC_SENSE_KEY
	ldr	r3, .L13+4
	ldr	r3, [r3]
	cmp	r0, r3
	ldr	r0, [r6]
	ble	.L5
	bl	__ac_err_mask
	ldr	r3, [r5]
	orr	r3, r3, r0
	str	r3, [r5]
.L6:
	mov	r0, r4
	ldr	r1, [r0], #4
	add	r1, r1, #4
	bl	list_add_tail
	ldr	r0, [r4]
	bl	spin_unlock
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	ata_qc_complete
.L5:
	bl	ac_err_mask
	ldr	r3, [r5]
	orr	r3, r3, r0
	str	r3, [r5]
	b	.L6
.L12:
	ldr	r0, [r9]
	ldr	r2, [r8]
	ldr	r1, [r8, #4]
	bl	scsi_report_device_reset
	b	.L4
.L14:
	.align	2
.L13:
	.word	IPR_ATA_DEVICE_WAS_RESET
	.word	RECOVERED_ERROR
	.size	ipr_sata_done, .-ipr_sata_done
	.comm	RECOVERED_ERROR,4,4
	.comm	IPR_ATA_DEVICE_WAS_RESET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
