	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsl_sata_start
_fsl_sata_start:                        ## @fsl_sata_start
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	movq	_FSL_SATA_P_SERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$-1, %edx
	callq	_ATA_OUTL
	movl	(%rbx), %edi
	movq	_FSL_SATA_P_HSTS@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	$63, %edx
	callq	_ATA_OUTL
	movl	(%rbx), %edi
	movq	_FSL_SATA_P_CER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_ATA_OUTL
	movl	(%rbx), %edi
	movq	_FSL_SATA_P_DER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_ATA_OUTL
	movl	(%rbx), %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
	orl	(%rcx), %eax
	movq	_FSL_SATA_P_HCTRL_SNOOP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_FSL_SATA_P_HCTRL_HC_FORCE_OFF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	(%rbx), %edi
	movl	(%r15), %esi
	xorl	%edx, %edx
	cmpq	$0, 8(%rbx)
	je	LBB0_2
## %bb.1:
	movq	_FSL_SATA_P_HCTRL_PM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_2:
	orl	%ecx, %edx
	callq	_ATA_OUTL
	movl	(%r14), %esi
	movq	_FSL_SATA_P_HSTS_PR@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movq	%rbx, %rdi
	movl	%ecx, %edx
	movl	$500, %r8d                      ## imm = 0x1F4
	callq	_fsl_sata_wait_register
	movl	(%rbx), %ebx
	movl	(%r14), %r14d
	movl	%ebx, %edi
	movl	%r14d, %esi
	callq	_ATA_INL
	andl	(%r15), %eax
	movl	%ebx, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ATA_OUTL                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FSL_SATA_P_SERR,4,2            ## @FSL_SATA_P_SERR
	.comm	_FSL_SATA_P_HSTS,4,2            ## @FSL_SATA_P_HSTS
	.comm	_FSL_SATA_P_CER,4,2             ## @FSL_SATA_P_CER
	.comm	_FSL_SATA_P_DER,4,2             ## @FSL_SATA_P_DER
	.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_HCTRL_SNOOP,4,2     ## @FSL_SATA_P_HCTRL_SNOOP
	.comm	_FSL_SATA_P_HCTRL_HC_FORCE_OFF,4,2 ## @FSL_SATA_P_HCTRL_HC_FORCE_OFF
	.comm	_FSL_SATA_P_HCTRL_PM,4,2        ## @FSL_SATA_P_HCTRL_PM
	.comm	_FSL_SATA_P_HSTS_PR,4,2         ## @FSL_SATA_P_HSTS_PR
	.no_dead_strip	_fsl_sata_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsl_sata_start
_fsl_sata_start:                        ; @fsl_sata_start
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _FSL_SATA_P_SERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FSL_SATA_P_SERR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #-1
	bl	_ATA_OUTL
	ldr	w0, [x19]
Lloh3:
	adrp	x20, _FSL_SATA_P_HSTS@GOTPAGE
Lloh4:
	ldr	x20, [x20, _FSL_SATA_P_HSTS@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w2, #63
	bl	_ATA_OUTL
	ldr	w0, [x19]
Lloh5:
	adrp	x8, _FSL_SATA_P_CER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FSL_SATA_P_CER@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w2, #65535
	bl	_ATA_OUTL
	ldr	w0, [x19]
Lloh8:
	adrp	x8, _FSL_SATA_P_DER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FSL_SATA_P_DER@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	w2, #65535
	bl	_ATA_OUTL
	ldr	w0, [x19]
Lloh11:
	adrp	x21, _FSL_SATA_P_HCTRL@GOTPAGE
Lloh12:
	ldr	x21, [x21, _FSL_SATA_P_HCTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_ATA_INL
Lloh13:
	adrp	x8, _FSL_SATA_P_HCTRL_HC_ON@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FSL_SATA_P_HCTRL_HC_ON@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _FSL_SATA_P_HCTRL_SNOOP@GOTPAGE
Lloh17:
	ldr	x9, [x9, _FSL_SATA_P_HCTRL_SNOOP@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w8, w0
Lloh19:
	adrp	x10, _FSL_SATA_P_HCTRL_HC_FORCE_OFF@GOTPAGE
Lloh20:
	ldr	x10, [x10, _FSL_SATA_P_HCTRL_HC_FORCE_OFF@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh21:
	ldr	w9, [x10]
	bic	w8, w8, w9
	ldr	w0, [x19]
	ldr	w1, [x21]
	ldr	x9, [x19, #8]
Lloh22:
	adrp	x10, _FSL_SATA_P_HCTRL_PM@GOTPAGE
Lloh23:
	ldr	x10, [x10, _FSL_SATA_P_HCTRL_PM@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w2, w9, w8
	bl	_ATA_OUTL
	ldr	w1, [x20]
Lloh25:
	adrp	x21, _FSL_SATA_P_HSTS_PR@GOTPAGE
Lloh26:
	ldr	x21, [x21, _FSL_SATA_P_HSTS_PR@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	mov	x3, x2
	mov	w4, #500
	bl	_fsl_sata_wait_register
	ldr	w19, [x19]
	ldr	w20, [x20]
	mov	x0, x19
	mov	x1, x20
	bl	_ATA_INL
	ldr	w8, [x21]
	and	w2, w8, w0
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ATA_OUTL
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FSL_SATA_P_SERR,4,2            ; @FSL_SATA_P_SERR
	.comm	_FSL_SATA_P_HSTS,4,2            ; @FSL_SATA_P_HSTS
	.comm	_FSL_SATA_P_CER,4,2             ; @FSL_SATA_P_CER
	.comm	_FSL_SATA_P_DER,4,2             ; @FSL_SATA_P_DER
	.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_HCTRL_SNOOP,4,2     ; @FSL_SATA_P_HCTRL_SNOOP
	.comm	_FSL_SATA_P_HCTRL_HC_FORCE_OFF,4,2 ; @FSL_SATA_P_HCTRL_HC_FORCE_OFF
	.comm	_FSL_SATA_P_HCTRL_PM,4,2        ; @FSL_SATA_P_HCTRL_PM
	.comm	_FSL_SATA_P_HSTS_PR,4,2         ; @FSL_SATA_P_HSTS_PR
	.no_dead_strip	_fsl_sata_start
.subsections_via_symbols
