	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ata_force_link_limits
_ata_force_link_limits:                 ## @ata_force_link_limits
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movl	(%rdi), %ebx
	callq	_ata_is_host_link
	leal	15(%rbx), %ecx
	testq	%rax, %rax
	cmovel	%ebx, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	_ata_force_tbl_size@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	jle	LBB0_15
## %bb.1:
	incq	%rbx
	movq	_ata_force_tbl@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %r15d
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	decq	%rbx
	movl	%r15d, %eax
	cmpq	$1, %rbx
	jbe	LBB0_15
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leal	-2(%rbx), %ecx
	movq	(%rsi), %r14
	leaq	(%rcx,%rcx,4), %r12
	movl	(%r14,%r12,4), %ecx
	cmpl	$-1, %ecx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r13), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_2
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%r14,%r12,4), %ecx
	cmpl	$-1, %ecx
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	jne	LBB0_2
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %r15d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%r14,%r12,4), %ecx
	testl	%ecx, %ecx
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	$-1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	notl	%eax
	movl	%eax, 4(%r13)
	movq	_KERN_NOTICE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r14,%r12,4), %ecx
	movq	%r13, %rdi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_ata_link_printk
	movq	_ata_force_tbl@GOTPCREL(%rip), %rsi
	jmp	LBB0_13
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	12(%r14,%r12,4), %ecx
	testl	%ecx, %ecx
	je	LBB0_3
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%r13), %r8d
	orl	%ecx, %r8d
	movl	%r8d, 8(%r13)
	movq	_KERN_NOTICE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	callq	_ata_link_printk
	movq	_ata_force_tbl@GOTPCREL(%rip), %rsi
	jmp	LBB0_3
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ata_force_tbl_size,4,2         ## @ata_force_tbl_size
	.comm	_ata_force_tbl,8,3              ## @ata_force_tbl
	.comm	_KERN_NOTICE,4,2                ## @KERN_NOTICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FORCE: PHY spd limit set to %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"FORCE: link flag 0x%x forced -> 0x%x\n"

	.no_dead_strip	_ata_force_link_limits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ata_force_link_limits
_ata_force_link_limits:                 ; @ata_force_link_limits
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	w20, [x0]
	bl	_ata_is_host_link
	add	w8, w20, #15
	cmp	x0, #0
	csel	w22, w20, w8, eq
Lloh0:
	adrp	x8, _ata_force_tbl_size@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ata_force_tbl_size@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.1:
	mov	w28, #0
	add	x23, x8, #1
Lloh3:
	adrp	x24, _ata_force_tbl@GOTPAGE
Lloh4:
	ldr	x24, [x24, _ata_force_tbl@GOTPAGEOFF]
	mov	w25, #20
Lloh5:
	adrp	x27, _KERN_NOTICE@GOTPAGE
Lloh6:
	ldr	x27, [x27, _KERN_NOTICE@GOTPAGEOFF]
Lloh7:
	adrp	x21, l_.str.1@PAGE
Lloh8:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	x23, x23, #1
	cmp	x23, #1
	b.ls	LBB0_13
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	w26, w23, #2
	ldr	x20, [x24]
	umull	x8, w26, w25
	ldr	w8, [x20, x8]
	cmn	w8, #1
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x19, #16]
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	madd	x8, x26, x25, x20
	ldr	w8, [x8, #4]
	cmn	w8, #1
	ccmp	w8, w22, #4, ne
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	cbnz	w28, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	madd	x8, x26, x25, x20
	ldr	w8, [x8, #8]
	cbz	w8, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w9, #-1
	lsl	w8, w9, w8
	mvn	w8, w8
	str	w8, [x19, #4]
	ldr	w1, [x27]
	madd	x8, x26, x25, x20
	ldr	w3, [x8, #16]
	mov	x0, x19
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	bl	_ata_link_printk
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w28, #1
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	madd	x8, x26, x25, x20
	ldr	w3, [x8, #12]
	cbz	w3, LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #8]
	orr	w8, w8, w3
	str	w8, [x19, #8]
	ldr	w1, [x27]
	str	x8, [sp]
	mov	x0, x19
	mov	x2, x21
	bl	_ata_link_printk
	b	LBB0_2
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w28, #0
	b	LBB0_10
LBB0_13:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ata_force_tbl_size,4,2         ; @ata_force_tbl_size
	.comm	_ata_force_tbl,8,3              ; @ata_force_tbl
	.comm	_KERN_NOTICE,4,2                ; @KERN_NOTICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FORCE: PHY spd limit set to %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"FORCE: link flag 0x%x forced -> 0x%x\n"

	.no_dead_strip	_ata_force_link_limits
.subsections_via_symbols
