	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_down_xfermask_limit        ## -- Begin function ata_down_xfermask_limit
	.p2align	4, 0x90
_ata_down_xfermask_limit:               ## @ata_down_xfermask_limit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ATA_DNXFER_QUIET@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r13d, %ebx
	notl	%ebx
	andl	%esi, %ebx
	movq	(%rdi), %rdi
	movq	8(%r15), %rsi
	movq	16(%r15), %rdx
	callq	_ata_pack_xfermask
	movq	%rax, %r12
	leaq	-104(%rbp), %rsi
	leaq	-96(%rbp), %rdx
	leaq	-88(%rbp), %rcx
	movq	%rax, %rdi
	callq	_ata_unpack_xfermask
	addl	$-128, %ebx
	cmpl	$4, %ebx
	ja	LBB0_11
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	-104(%rbp), %rdi
	callq	_fls
                                        ## kill: def $eax killed $eax def $rax
	leal	-1(%rax), %ecx
	movl	$-2, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	roll	%cl, %eax
	cltq
	andq	%rax, -104(%rbp)
	jmp	LBB0_12
LBB0_11:
	xorl	%eax, %eax
	callq	_BUG
	jmp	LBB0_12
LBB0_9:
	andq	$1, -104(%rbp)
LBB0_10:
	movq	$0, -96(%rbp)
	movq	$0, -88(%rbp)
	jmp	LBB0_12
LBB0_3:
	movq	-88(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.4:
	callq	_fls
                                        ## kill: def $eax killed $eax def $rax
	leal	-1(%rax), %ecx
	movl	$-2, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	roll	%cl, %eax
	cltq
	andq	%rax, -88(%rbp)
	jne	LBB0_12
	jmp	LBB0_5
LBB0_8:
	movq	_ATA_UDMA_MASK_40C@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	andq	%rax, -88(%rbp)
LBB0_12:
	movq	-104(%rbp), %rdi
	movq	-96(%rbp), %rsi
	movq	-88(%rbp), %rdx
	callq	_ata_pack_xfermask
	movq	%rax, %rbx
	andq	%r12, %rbx
	cmpq	%r12, %rbx
	je	LBB0_5
## %bb.13:
	movq	_ATA_MASK_PIO@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	andq	%rbx, %rax
	je	LBB0_5
## %bb.14:
	leaq	8(%r15), %rdx
	leaq	16(%r15), %rcx
	testl	%r14d, %r13d
	jne	LBB0_19
## %bb.15:
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	movq	_ATA_MASK_MWDMA@GOTPCREL(%rip), %rax
	movq	_ATA_MASK_UDMA@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r13
	orq	(%rax), %r13
	movq	%rbx, %rdi
	callq	_ata_mode_string
	movq	%rax, %r14
	testq	%rbx, %r13
	je	LBB0_17
## %bb.16:
	movq	(%r12), %rdi
	andq	%rbx, %rdi
	callq	_ata_mode_string
	leaq	L_.str(%rip), %rdx
	leaq	-80(%rbp), %rdi
	movl	$32, %esi
	movq	%r14, %rcx
	movq	%rax, %r8
	xorl	%eax, %eax
	callq	_snprintf
	jmp	LBB0_18
LBB0_17:
	leaq	L_.str.1(%rip), %rdx
	leaq	-80(%rbp), %rdi
	movl	$32, %esi
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_snprintf
LBB0_18:
	movq	_KERN_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	leaq	-80(%rbp), %rcx
	movq	%r15, %rdi
	callq	_ata_dev_printk
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	movq	-112(%rbp), %rcx                ## 8-byte Reload
LBB0_19:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_ata_unpack_xfermask
	xorl	%eax, %eax
	jmp	LBB0_20
LBB0_6:
	movq	-96(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.7:
	callq	_fls
                                        ## kill: def $eax killed $eax def $rax
	leal	-1(%rax), %ecx
	movl	$-2, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	roll	%cl, %eax
	cltq
	andq	%rax, -96(%rbp)
	jne	LBB0_12
LBB0_5:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_22
## %bb.21:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_3
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_ATA_DNXFER_QUIET,4,2           ## @ATA_DNXFER_QUIET
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_ATA_UDMA_MASK_40C,8,3          ## @ATA_UDMA_MASK_40C
	.comm	_ATA_MASK_PIO,8,3               ## @ATA_MASK_PIO
	.comm	_ATA_MASK_MWDMA,8,3             ## @ATA_MASK_MWDMA
	.comm	_ATA_MASK_UDMA,8,3              ## @ATA_MASK_UDMA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s:%s"

L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.comm	_KERN_WARNING,4,2               ## @KERN_WARNING
L_.str.2:                               ## @.str.2
	.asciz	"limiting speed to %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_down_xfermask_limit        ; -- Begin function ata_down_xfermask_limit
	.p2align	2
_ata_down_xfermask_limit:               ; @ata_down_xfermask_limit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
Lloh3:
	adrp	x8, _ATA_DNXFER_QUIET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATA_DNXFER_QUIET@GOTPAGEOFF]
Lloh5:
	ldr	w25, [x8]
	bic	w24, w1, w25
	ldr	x0, [x0]
	mov	x20, x19
	ldr	x1, [x20, #8]!
	mov	x21, x19
	ldr	x2, [x21, #16]!
	bl	_ata_pack_xfermask
	mov	x23, x0
	add	x1, sp, #32
	add	x2, sp, #24
	add	x3, sp, #16
	bl	_ata_unpack_xfermask
	sub	w8, w24, #128
	cmp	w8, #4
	b.hi	LBB0_3
; %bb.1:
Lloh6:
	adrp	x9, lJTI0_0@PAGE
Lloh7:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	x0, [sp, #32]
	bl	_fls
	sub	w8, w0, #1
	mov	w9, #1
	lsl	w8, w9, w8
	mvn	w8, w8
	sxtw	x8, w8
	ldr	x9, [sp, #32]
	and	x8, x9, x8
	str	x8, [sp, #32]
	b	LBB0_9
LBB0_3:
	bl	_BUG
	b	LBB0_9
LBB0_4:
	ldr	x8, [sp, #32]
	and	x8, x8, #0x1
	str	x8, [sp, #32]
LBB0_5:
	stp	xzr, xzr, [sp, #16]
	b	LBB0_9
LBB0_6:
	ldr	x0, [sp, #16]
	cbz	x0, LBB0_19
; %bb.7:
	bl	_fls
	sub	w8, w0, #1
	mov	w9, #1
	lsl	w8, w9, w8
	mvn	w8, w8
	sxtw	x8, w8
	ldr	x9, [sp, #16]
	ands	x8, x9, x8
	str	x8, [sp, #16]
	b.ne	LBB0_9
	b	LBB0_10
LBB0_8:
Lloh8:
	adrp	x8, _ATA_UDMA_MASK_40C@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ATA_UDMA_MASK_40C@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x9, [sp, #16]
	and	x8, x9, x8
	str	x8, [sp, #16]
LBB0_9:
	ldp	x1, x0, [sp, #24]
	ldr	x2, [sp, #16]
	bl	_ata_pack_xfermask
	and	x24, x0, x23
Lloh11:
	adrp	x26, _ATA_MASK_PIO@GOTPAGE
Lloh12:
	ldr	x26, [x26, _ATA_MASK_PIO@GOTPAGEOFF]
	ldr	x8, [x26]
	and	x8, x24, x8
	cmp	x24, x23
	ccmp	x8, #0, #4, ne
	b.ne	LBB0_11
LBB0_10:
Lloh13:
	adrp	x8, _ENOENT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_17
LBB0_11:
	and	w8, w25, w22
	cbnz	w8, LBB0_16
; %bb.12:
Lloh16:
	adrp	x8, _ATA_MASK_MWDMA@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ATA_MASK_MWDMA@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
Lloh19:
	adrp	x9, _ATA_MASK_UDMA@GOTPAGE
Lloh20:
	ldr	x9, [x9, _ATA_MASK_UDMA@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	orr	x8, x9, x8
	and	x23, x8, x24
	mov	x0, x24
	bl	_ata_mode_string
	mov	x22, x0
	cbz	x23, LBB0_14
; %bb.13:
	ldr	x8, [x26]
	and	x0, x8, x24
	bl	_ata_mode_string
	str	x0, [sp]
Lloh22:
	adrp	x2, l_.str@PAGE
Lloh23:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_15
LBB0_14:
Lloh24:
	adrp	x2, l_.str.1@PAGE
Lloh25:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_15:
	add	x0, sp, #40
	mov	w1, #32
	mov	x3, x22
	bl	_snprintf
Lloh26:
	adrp	x8, _KERN_WARNING@GOTPAGE
Lloh27:
	ldr	x8, [x8, _KERN_WARNING@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x2, l_.str.2@PAGE
Lloh30:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x3, sp, #40
	mov	x0, x19
	bl	_ata_dev_printk
LBB0_16:
	mov	x0, x24
	mov	x1, x19
	mov	x2, x20
	mov	x3, x21
	bl	_ata_unpack_xfermask
	mov	w0, #0
LBB0_17:
	ldr	x8, [sp, #72]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.18:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_19:
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_9
; %bb.20:
	bl	_fls
	sub	w8, w0, #1
	mov	w9, #1
	lsl	w8, w9, w8
	mvn	w8, w8
	sxtw	x8, w8
	ldr	x9, [sp, #24]
	ands	x8, x9, x8
	str	x8, [sp, #24]
	b.ne	LBB0_9
	b	LBB0_10
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
                                        ; -- End function
	.comm	_ATA_DNXFER_QUIET,4,2           ; @ATA_DNXFER_QUIET
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_ATA_UDMA_MASK_40C,8,3          ; @ATA_UDMA_MASK_40C
	.comm	_ATA_MASK_PIO,8,3               ; @ATA_MASK_PIO
	.comm	_ATA_MASK_MWDMA,8,3             ; @ATA_MASK_MWDMA
	.comm	_ATA_MASK_UDMA,8,3              ; @ATA_MASK_UDMA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s:%s"

l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.comm	_KERN_WARNING,4,2               ; @KERN_WARNING
l_.str.2:                               ; @.str.2
	.asciz	"limiting speed to %s\n"

.subsections_via_symbols
