	.file	"extr_libata-core.c_ata_xfer_mode2shift.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ata_xfer_mode2shift
	.type	ata_xfer_mode2shift, @function
ata_xfer_mode2shift:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rdx, QWORD PTR ata_xfer_tbl[rip]
	mov	rax, QWORD PTR [rdx]
	test	rax, rax
	js	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rcx, QWORD PTR 8[rdx]
	cmp	rcx, rdi
	ja	.L3
	add	rcx, QWORD PTR 16[rdx]
	cmp	rcx, rdi
	ja	.L1
.L3:
	mov	rax, QWORD PTR 24[rdx]
	add	rdx, 24
	test	rax, rax
	jns	.L4
.L5:
	mov	eax, -1
.L1:
	ret
	.cfi_endproc
.LFE0:
	.size	ata_xfer_mode2shift, .-ata_xfer_mode2shift
	.comm	ata_xfer_tbl,8,8
	.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-core.c_ata_xfer_mode2shift.c"
	.text
	.align	2
	.global	ata_xfer_mode2shift
	.syntax unified
	.arm
	.fpu softvfp
	.type	ata_xfer_mode2shift, %function
ata_xfer_mode2shift:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	ldr	r3, .L8
	mov	r1, r0
	ldr	r3, [r3]
	ldr	r0, [r3]
	cmp	r0, #0
	blt	.L5
.L4:
	ldr	r2, [r3, #4]
	cmp	r2, r1
	bhi	.L3
	ldr	ip, [r3, #8]
	add	r2, r2, ip
	cmp	r2, r1
	bxhi	lr
.L3:
	ldr	r0, [r3, #12]!
	cmp	r0, #0
	bge	.L4
.L5:
	mvn	r0, #0
	bx	lr
.L9:
	.align	2
.L8:
	.word	ata_xfer_tbl
	.size	ata_xfer_mode2shift, .-ata_xfer_mode2shift
	.comm	ata_xfer_tbl,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
