	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_xfer_mode2mask             ## -- Begin function ata_xfer_mode2mask
	.p2align	4, 0x90
_ata_xfer_mode2mask:                    ## @ata_xfer_mode2mask
	.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
	movl	(%rcx), %r8d
	testl	%r8d, %r8d
	js	LBB0_7
## %bb.1:
	addq	$24, %rcx
	xorl	%eax, %eax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rcx), %r8d
	addq	$24, %rcx
	testl	%r8d, %r8d
	js	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-16(%rcx), %rsi
	cmpq	%rdi, %rsi
	jg	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-8(%rcx), %rdx
	addq	%rsi, %rdx
	cmpq	%rdi, %rdx
	jle	LBB0_2
## %bb.5:
	addl	%r8d, %edi
	subl	%esi, %edi
	movl	$2, %eax
	movl	%edi, %ecx
	shll	%cl, %eax
	decl	%eax
	movl	%r8d, %ecx
	shrl	%cl, %eax
	shll	%cl, %eax
	cltq
LBB0_6:
	popq	%rbp
	retq
LBB0_7:
	xorl	%eax, %eax
	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_mode2mask             ; -- Begin function ata_xfer_mode2mask
	.p2align	2
_ata_xfer_mode2mask:                    ; @ata_xfer_mode2mask
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _ata_xfer_tbl@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ata_xfer_tbl@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
	ldr	w8, [x9]
	tbnz	w8, #31, LBB0_6
; %bb.1:
	add	x9, x9, #24
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x9], #24
	tbnz	w8, #31, LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x10, [x9, #-16]
	cmp	x10, x0
	b.gt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldur	x11, [x9, #-8]
	add	x11, x11, x10
	cmp	x11, x0
	b.le	LBB0_2
; %bb.5:
	add	w9, w8, w0
	sub	w9, w9, w10
	mov	w10, #2
	lsl	w9, w10, w9
	sub	w9, w9, #1
	mov	w10, #-1
	lsl	w8, w10, w8
	and	w8, w9, w8
	sxtw	x0, w8
	ret
LBB0_6:
	mov	x0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ata_xfer_tbl,8,3               ; @ata_xfer_tbl
.subsections_via_symbols
