	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_xfer_mode2shift            ## -- Begin function ata_xfer_mode2shift
	.p2align	4, 0x90
_ata_xfer_mode2shift:                   ## @ata_xfer_mode2shift
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_ata_xfer_tbl@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	(%rcx), %rdx
	movl	$-1, %eax
	testq	%rdx, %rdx
	js	LBB0_6
## %bb.1:
	addq	$24, %rcx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rcx), %rdx
	addq	$24, %rcx
	testq	%rdx, %rdx
	js	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-16(%rcx), %rsi
	cmpq	%rdi, %rsi
	ja	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	-8(%rcx), %rsi
	cmpq	%rdi, %rsi
	jbe	LBB0_2
## %bb.5:
	movl	%edx, %eax
LBB0_6:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ata_xfer_tbl,8,3               ## @ata_xfer_tbl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_xfer_mode2shift            ; -- Begin function ata_xfer_mode2shift
	.p2align	2
_ata_xfer_mode2shift:                   ; @ata_xfer_mode2shift
	.cfi_startproc
; %bb.0:
	mov	x8, x0
Lloh0:
	adrp	x9, _ata_xfer_tbl@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ata_xfer_tbl@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x0, [x9]
	tbnz	x0, #63, LBB0_6
; %bb.1:
	add	x9, x9, #24
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x9], #24
	tbnz	x0, #63, LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x10, [x9, #-16]
	cmp	x10, x8
	b.hi	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldur	x11, [x9, #-8]
	add	x10, x11, x10
	cmp	x10, x8
	b.ls	LBB0_2
; %bb.5:
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_6:
	mov	w0, #-1
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ata_xfer_tbl,8,3               ; @ata_xfer_tbl
.subsections_via_symbols
