	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsl_sata_stop
_fsl_sata_stop:                         ## @fsl_sata_stop
	.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, %r14
	movl	12(%rdi), %edi
	movq	_FSL_SATA_P_HCTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_ATA_INL
	movq	_FSL_SATA_P_HCTRL_HC_ON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	12(%r14), %edi
	movl	(%r15), %esi
	movl	%ebx, %edx
	callq	_ATA_OUTL
	movq	_FSL_SATA_P_HSTS@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_FSL_SATA_P_HSTS_HS_ON@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	movl	$500, %r8d                      ## imm = 0x1F4
	callq	_fsl_sata_wait_register
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_FSL_SATA_P_HCTRL_HC_FORCE_OFF@GOTPCREL(%rip), %rax
	movl	12(%r14), %edi
	movl	(%r15), %esi
	orl	(%rax), %ebx
	movl	%ebx, %edx
	callq	_ATA_OUTL
	movl	(%r12), %esi
	movl	(%r13), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	movl	$500, %r8d                      ## imm = 0x1F4
	callq	_fsl_sata_wait_register
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	8(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_device_printf
LBB0_3:
	movq	$0, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FSL_SATA_P_HCTRL,4,2           ## @FSL_SATA_P_HCTRL
	.comm	_FSL_SATA_P_HCTRL_HC_ON,4,2     ## @FSL_SATA_P_HCTRL_HC_ON
	.comm	_FSL_SATA_P_HSTS,4,2            ## @FSL_SATA_P_HSTS
	.comm	_FSL_SATA_P_HSTS_HS_ON,4,2      ## @FSL_SATA_P_HSTS_HS_ON
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stopping FSL SATA engine failed\n"

	.comm	_FSL_SATA_P_HCTRL_HC_FORCE_OFF,4,2 ## @FSL_SATA_P_HCTRL_HC_FORCE_OFF
	.no_dead_strip	_fsl_sata_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsl_sata_stop
_fsl_sata_stop:                         ; @fsl_sata_stop
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	w0, [x0, #12]
Lloh0:
	adrp	x21, _FSL_SATA_P_HCTRL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _FSL_SATA_P_HCTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_ATA_INL
Lloh2:
	adrp	x8, _FSL_SATA_P_HCTRL_HC_ON@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FSL_SATA_P_HCTRL_HC_ON@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w20, w0, w8
	ldr	w0, [x19, #12]
	ldr	w1, [x21]
	mov	x2, x20
	bl	_ATA_OUTL
Lloh5:
	adrp	x22, _FSL_SATA_P_HSTS@GOTPAGE
Lloh6:
	ldr	x22, [x22, _FSL_SATA_P_HSTS@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh7:
	adrp	x23, _FSL_SATA_P_HSTS_HS_ON@GOTPAGE
Lloh8:
	ldr	x23, [x23, _FSL_SATA_P_HSTS_HS_ON@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x19
	mov	w3, #0
	mov	w4, #500
	bl	_fsl_sata_wait_register
	cbz	x0, LBB0_3
; %bb.1:
Lloh9:
	adrp	x8, _FSL_SATA_P_HCTRL_HC_FORCE_OFF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FSL_SATA_P_HCTRL_HC_FORCE_OFF@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w0, [x19, #12]
	ldr	w1, [x21]
	orr	w2, w8, w20
	bl	_ATA_OUTL
	ldr	w1, [x22]
	ldr	w2, [x23]
	mov	x0, x19
	mov	w3, #0
	mov	w4, #500
	bl	_fsl_sata_wait_register
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x19, #8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_device_printf
LBB0_3:
	str	xzr, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_FSL_SATA_P_HCTRL,4,2           ; @FSL_SATA_P_HCTRL
	.comm	_FSL_SATA_P_HCTRL_HC_ON,4,2     ; @FSL_SATA_P_HCTRL_HC_ON
	.comm	_FSL_SATA_P_HSTS,4,2            ; @FSL_SATA_P_HSTS
	.comm	_FSL_SATA_P_HSTS_HS_ON,4,2      ; @FSL_SATA_P_HSTS_HS_ON
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stopping FSL SATA engine failed\n"

	.comm	_FSL_SATA_P_HCTRL_HC_FORCE_OFF,4,2 ; @FSL_SATA_P_HCTRL_HC_FORCE_OFF
	.no_dead_strip	_fsl_sata_stop
.subsections_via_symbols
