	.file	"extr_libata-sff.c_atapi_pio_bytes.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ata%u: xfering %d bytes\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"ATAPI check failed (ireason=0x%x bytes=%u)"
	.text
	.p2align 4
	.type	atapi_pio_bytes, @function
atapi_pio_bytes:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	lea	rsi, 4[rdi]
	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, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR 24[rdi]
	mov	rbp, QWORD PTR 32[rdi]
	mov	r15d, DWORD PTR 16[rdi]
	mov	r13, QWORD PTR [rax]
	mov	eax, DWORD PTR ATA_TFLAG_WRITE[rip]
	mov	rdi, rbp
	mov	DWORD PTR 12[rsp], eax
	mov	rax, QWORD PTR 8[rbp]
	call	[QWORD PTR [rax]]
	mov	r14d, DWORD PTR 4[rbx]
	mov	r12d, DWORD PTR 12[rbx]
	mov	edi, r14d
	sal	r12d, 8
	or	r12d, DWORD PTR 8[rbx]
	and	edi, 1
	call	unlikely@PLT
	test	rax, rax
	je	.L6
.L2:
	mov	ecx, r12d
	mov	edx, r14d
	lea	rsi, .LC1[rip]
	mov	rdi, r13
	call	ata_ehi_push_desc@PLT
.L3:
	mov	eax, DWORD PTR AC_ERR_HSM[rip]
	or	DWORD PTR [rbx], eax
	mov	eax, DWORD PTR HSM_ST_ERR[rip]
	mov	DWORD PTR 0[rbp], eax
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L6:
	.cfi_restore_state
	test	DWORD PTR 12[rsp], r15d
	mov	edi, r14d
	setne	al
	shr	edi
	xor	edi, 1
	xor	edi, eax
	and	edi, 1
	call	unlikely@PLT
	test	rax, rax
	jne	.L2
	xor	edi, edi
	test	r12d, r12d
	sete	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L2
	mov	esi, DWORD PTR 4[rbp]
	mov	edx, r12d
	lea	rdi, .LC0[rip]
	call	VPRINTK@PLT
	mov	rdi, rbx
	mov	esi, r12d
	call	__atapi_pio_bytes@PLT
	mov	edi, eax
	call	unlikely@PLT
	test	rax, rax
	jne	.L3
	add	rsp, 24
	.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_sff_sync@PLT
	.cfi_endproc
.LFE0:
	.size	atapi_pio_bytes, .-atapi_pio_bytes
	.comm	HSM_ST_ERR,4,4
	.comm	ATA_TFLAG_WRITE,4,4
	.comm	AC_ERR_HSM,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_libata-sff.c_atapi_pio_bytes.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ata%u: xfering %d bytes\012\000"
	.align	2
.LC1:
	.ascii	"ATAPI check failed (ireason=0x%x bytes=%u)\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	atapi_pio_bytes, %function
atapi_pio_bytes:
	@ 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	r6, [r0, #24]
	ldr	ip, [r0, #20]
	ldr	r3, [r6, #8]
	ldr	r2, .L7
	ldr	r3, [r3]
	add	r1, r4, #4
	mov	r0, r6
	ldr	r9, [ip]
	ldr	r10, [r2]
	ldr	r8, [r4, #16]
	blx	r3
	ldr	r7, [r4, #4]
	ldr	r3, [r4, #12]
	ldr	r5, [r4, #8]
	and	r0, r7, #1
	orr	r5, r5, r3, lsl #8
	bl	unlikely
	cmp	r0, #0
	beq	.L6
.L2:
	mov	r3, r5
	mov	r2, r7
	mov	r0, r9
	ldr	r1, .L7+4
	bl	ata_ehi_push_desc
.L3:
	ldr	r3, .L7+8
	ldr	r2, .L7+12
	ldr	r1, [r3]
	ldr	r3, [r4]
	ldr	r2, [r2]
	orr	r3, r3, r1
	str	r3, [r4]
	str	r2, [r6]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L6:
	lsr	r3, r7, #1
	eor	r3, r3, #1
	and	r3, r3, #1
	and	r0, r8, r10
	cmp	r0, #0
	moveq	r0, r3
	eorne	r0, r3, #1
	bl	unlikely
	cmp	r0, #0
	bne	.L2
	clz	r0, r5
	lsr	r0, r0, #5
	bl	unlikely
	cmp	r0, #0
	bne	.L2
	mov	r2, r5
	ldr	r1, [r6, #4]
	ldr	r0, .L7+16
	bl	VPRINTK
	mov	r1, r5
	mov	r0, r4
	bl	__atapi_pio_bytes
	bl	unlikely
	cmp	r0, #0
	bne	.L3
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	ata_sff_sync
.L8:
	.align	2
.L7:
	.word	ATA_TFLAG_WRITE
	.word	.LC1
	.word	AC_ERR_HSM
	.word	HSM_ST_ERR
	.word	.LC0
	.size	atapi_pio_bytes, .-atapi_pio_bytes
	.comm	HSM_ST_ERR,4,4
	.comm	ATA_TFLAG_WRITE,4,4
	.comm	AC_ERR_HSM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
