	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sata_print_link_status
_sata_print_link_status:                ## @sata_print_link_status
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_SCR_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_sata_scr_read
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	_SCR_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_sata_scr_read
	movq	%rbx, %rdi
	callq	_ata_phys_link_online
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	-20(%rbp), %edi
	shrl	$4, %edi
	andl	$15, %edi
	movq	_KERN_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	callq	_sata_spd_string
	movl	-20(%rbp), %r8d
	movl	-24(%rbp), %r9d
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_ata_link_printk
	jmp	LBB0_4
LBB0_3:
	movq	_KERN_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-20(%rbp), %ecx
	movl	-24(%rbp), %r8d
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_ata_link_printk
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCR_STATUS,4,2                 ## @SCR_STATUS
	.comm	_SCR_CONTROL,4,2                ## @SCR_CONTROL
	.comm	_KERN_INFO,4,2                  ## @KERN_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SATA link up %s (SStatus %X SControl %X)\n"

L_.str.1:                               ## @.str.1
	.asciz	"SATA link down (SStatus %X SControl %X)\n"

	.no_dead_strip	_sata_print_link_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sata_print_link_status
_sata_print_link_status:                ; @sata_print_link_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _SCR_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCR_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_sata_scr_read
	cbnz	x0, LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _SCR_CONTROL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCR_CONTROL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_sata_scr_read
	mov	x0, x19
	bl	_ata_phys_link_online
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w8, [sp, #12]
	ubfx	w0, w8, #4, #4
Lloh6:
	adrp	x8, _KERN_INFO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _KERN_INFO@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
	bl	_sata_spd_string
	mov	x3, x0
	ldp	w8, w4, [sp, #8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	str	x8, [sp]
	mov	x0, x19
	mov	x1, x20
	b	LBB0_4
LBB0_3:
Lloh11:
	adrp	x8, _KERN_INFO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _KERN_INFO@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldp	w4, w3, [sp, #8]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
LBB0_4:
	bl	_ata_link_printk
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SCR_STATUS,4,2                 ; @SCR_STATUS
	.comm	_SCR_CONTROL,4,2                ; @SCR_CONTROL
	.comm	_KERN_INFO,4,2                  ; @KERN_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SATA link up %s (SStatus %X SControl %X)\n"

l_.str.1:                               ; @.str.1
	.asciz	"SATA link down (SStatus %X SControl %X)\n"

	.no_dead_strip	_sata_print_link_status
.subsections_via_symbols
