	.file	"extr_sata_nv.c_nv_adma_check_cpb.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"CPB %d, flags=0x%x\n"
.LC1:
	.string	"CPB resp_flags 0x%x: "
.LC2:
	.string	"ATA error"
.LC3:
	.string	"CMD error"
.LC4:
	.string	"CPB error"
.LC5:
	.string	"unknown"
.LC6:
	.string	"CPB flags done, flags=0x%x\n"
.LC7:
	.string	"Completing qc from tag %d\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC8:
	.string	"notifier for tag %d with no cmd?\n"
	.text
	.p2align 4
	.type	nv_adma_check_cpb, @function
nv_adma_check_cpb:
.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
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	movsx	rdx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR 8[rdi]
	lea	rdi, .LC0[rip]
	mov	rax, QWORD PTR [rax]
	mov	ebp, DWORD PTR [rax+rdx*4]
	xor	eax, eax
	mov	edx, ebp
	call	VPRINTK@PLT
	mov	eax, DWORD PTR NV_CPB_RESP_ATA_ERR[rip]
	xor	edi, edi
	or	eax, DWORD PTR NV_CPB_RESP_CMD_ERR[rip]
	or	eax, DWORD PTR NV_CPB_RESP_CPB_ERR[rip]
	and	eax, ebp
	or	eax, ebx
	setne	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L15
	mov	edi, DWORD PTR NV_CPB_RESP_DONE[rip]
	xor	r14d, r14d
	and	edi, ebp
	call	likely@PLT
	test	rax, rax
	jne	.L16
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	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
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	esi, r13d
	mov	rdi, r12
	call	ata_qc_from_tag@PLT
	lea	rdi, .LC6[rip]
	mov	esi, ebp
	mov	r15, rax
	xor	eax, eax
	call	VPRINTK@PLT
	mov	edi, r15d
	call	likely@PLT
	test	rax, rax
	je	.L9
	mov	esi, r13d
	lea	rdi, .LC7[rip]
	call	DPRINTK@PLT
	mov	rdi, r15
	call	ata_qc_complete@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdi, r12
	call	ata_ehi_clear_desc@PLT
	mov	edx, ebp
	lea	rsi, .LC1[rip]
	mov	rdi, r12
	call	__ata_ehi_push_desc@PLT
	test	DWORD PTR NV_CPB_RESP_ATA_ERR[rip], ebp
	jne	.L17
	test	DWORD PTR NV_CPB_RESP_CMD_ERR[rip], ebp
	jne	.L18
	test	DWORD PTR NV_CPB_RESP_CPB_ERR[rip], ebp
	je	.L6
	lea	rsi, .LC4[rip]
	mov	rdi, r12
	call	ata_ehi_push_desc@PLT
	mov	eax, DWORD PTR AC_ERR_SYSTEM[rip]
	or	DWORD PTR 4[r12], eax
.L13:
	mov	rdi, r12
	mov	r14d, 1
	call	ata_port_freeze@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	lea	rsi, .LC3[rip]
	mov	rdi, r12
	call	ata_ehi_push_desc@PLT
	mov	eax, DWORD PTR AC_ERR_DEV[rip]
	or	DWORD PTR 4[r12], eax
.L4:
	mov	rdi, r12
	mov	r14d, 1
	call	ata_port_abort@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	esi, DWORD PTR KERN_ERR[rip]
	mov	ecx, r13d
	lea	rdx, .LC8[rip]
	mov	rdi, r12
	call	ata_port_printk@PLT
	mov	eax, DWORD PTR AC_ERR_HSM[rip]
	or	DWORD PTR 4[r12], eax
	mov	eax, DWORD PTR ATA_EH_RESET[rip]
	or	DWORD PTR [r12], eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L17:
	lea	rsi, .LC2[rip]
	mov	rdi, r12
	call	ata_ehi_push_desc@PLT
	mov	eax, DWORD PTR AC_ERR_DEV[rip]
	or	DWORD PTR 4[r12], eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	lea	rsi, .LC5[rip]
	mov	rdi, r12
	call	ata_ehi_push_desc@PLT
	mov	eax, DWORD PTR AC_ERR_OTHER[rip]
	or	DWORD PTR 4[r12], eax
	jmp	.L13
	.cfi_endproc
.LFE0:
	.size	nv_adma_check_cpb, .-nv_adma_check_cpb
	.comm	NV_CPB_RESP_DONE,4,4
	.comm	NV_CPB_RESP_CPB_ERR,4,4
	.comm	NV_CPB_RESP_CMD_ERR,4,4
	.comm	NV_CPB_RESP_ATA_ERR,4,4
	.comm	KERN_ERR,4,4
	.comm	ATA_EH_RESET,4,4
	.comm	AC_ERR_SYSTEM,4,4
	.comm	AC_ERR_OTHER,4,4
	.comm	AC_ERR_HSM,4,4
	.comm	AC_ERR_DEV,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_sata_nv.c_nv_adma_check_cpb.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"CPB %d, flags=0x%x\012\000"
	.align	2
.LC1:
	.ascii	"CPB resp_flags 0x%x: \000"
	.align	2
.LC2:
	.ascii	"ATA error\000"
	.align	2
.LC3:
	.ascii	"CMD error\000"
	.align	2
.LC4:
	.ascii	"CPB error\000"
	.align	2
.LC5:
	.ascii	"unknown\000"
	.align	2
.LC6:
	.ascii	"CPB flags done, flags=0x%x\012\000"
	.align	2
.LC7:
	.ascii	"Completing qc from tag %d\012\000"
	.align	2
.LC8:
	.ascii	"notifier for tag %d with no cmd?\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nv_adma_check_cpb, %function
nv_adma_check_cpb:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r10, r2
	ldr	r3, [r0, #8]
	ldr	r7, .L19
	ldr	r3, [r3]
	ldr	r8, .L19+4
	ldr	r5, [r3, r1, lsl #2]
	mov	r4, r0
	mov	r2, r5
	ldr	r0, .L19+8
	ldr	r9, .L19+12
	mov	r6, r1
	bl	VPRINTK
	ldr	r3, [r7]
	ldr	r1, [r8]
	ldr	r2, [r9]
	orr	r3, r3, r1
	orr	r3, r3, r2
	and	r3, r3, r5
	orrs	r3, r3, r10
	movne	r0, #1
	moveq	r0, #0
	bl	unlikely
	subs	r10, r0, #0
	bne	.L17
	ldr	r3, .L19+16
	ldr	r0, [r3]
	and	r0, r0, r5
	bl	likely
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r1, r6
	mov	r0, r4
	bl	ata_qc_from_tag
	mov	r1, r5
	mov	r5, r0
	ldr	r0, .L19+20
	bl	VPRINTK
	mov	r0, r5
	bl	likely
	cmp	r0, #0
	beq	.L9
	mov	r1, r6
	ldr	r0, .L19+24
	bl	DPRINTK
	mov	r0, r5
	bl	ata_qc_complete
	mov	r0, r10
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L17:
	mov	r0, r4
	bl	ata_ehi_clear_desc
	ldr	r1, .L19+28
	mov	r2, r5
	mov	r0, r4
	bl	__ata_ehi_push_desc
	ldr	r3, [r7]
	tst	r5, r3
	ldrne	r1, .L19+32
	bne	.L14
	ldr	r3, [r8]
	tst	r5, r3
	bne	.L18
	ldr	r3, [r9]
	tst	r5, r3
	beq	.L6
	mov	r0, r4
	ldr	r1, .L19+36
	bl	ata_ehi_push_desc
	ldr	r2, .L19+40
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [r4, #4]
.L15:
	mov	r0, r4
	bl	ata_port_freeze
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L18:
	ldr	r1, .L19+44
.L14:
	mov	r0, r4
	bl	ata_ehi_push_desc
	ldr	r2, .L19+48
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	mov	r0, r4
	orr	r3, r3, r2
	str	r3, [r4, #4]
	bl	ata_port_abort
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	ldr	r2, .L19+52
	mov	r3, r6
	ldr	r1, [r2]
	mov	r0, r4
	ldr	r2, .L19+56
	bl	ata_port_printk
	ldr	r2, .L19+60
	ldr	r3, .L19+64
	ldr	r0, [r2]
	ldr	r1, [r3]
	ldr	r2, [r4, #4]
	ldr	r3, [r4]
	orr	r2, r2, r0
	orr	r3, r3, r1
	str	r2, [r4, #4]
	str	r3, [r4]
	b	.L15
.L6:
	mov	r0, r4
	ldr	r1, .L19+68
	bl	ata_ehi_push_desc
	ldr	r2, .L19+72
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [r4, #4]
	b	.L15
.L20:
	.align	2
.L19:
	.word	NV_CPB_RESP_ATA_ERR
	.word	NV_CPB_RESP_CMD_ERR
	.word	.LC0
	.word	NV_CPB_RESP_CPB_ERR
	.word	NV_CPB_RESP_DONE
	.word	.LC6
	.word	.LC7
	.word	.LC1
	.word	.LC2
	.word	.LC4
	.word	AC_ERR_SYSTEM
	.word	.LC3
	.word	AC_ERR_DEV
	.word	KERN_ERR
	.word	.LC8
	.word	AC_ERR_HSM
	.word	ATA_EH_RESET
	.word	.LC5
	.word	AC_ERR_OTHER
	.size	nv_adma_check_cpb, .-nv_adma_check_cpb
	.comm	NV_CPB_RESP_DONE,4,4
	.comm	NV_CPB_RESP_CPB_ERR,4,4
	.comm	NV_CPB_RESP_CMD_ERR,4,4
	.comm	NV_CPB_RESP_ATA_ERR,4,4
	.comm	KERN_ERR,4,4
	.comm	ATA_EH_RESET,4,4
	.comm	AC_ERR_SYSTEM,4,4
	.comm	AC_ERR_OTHER,4,4
	.comm	AC_ERR_HSM,4,4
	.comm	AC_ERR_DEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
