	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_imx6_ccm_sata_enable           ## -- Begin function imx6_ccm_sata_enable
	.p2align	4, 0x90
_imx6_ccm_sata_enable:                  ## @imx6_ccm_sata_enable
	.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	_ccm_sc@GOTPCREL(%rip), %r15
	movl	(%r15), %r14d
	movq	_CCM_CCGR5@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_RD4
	movq	_CCGR5_SATA@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_WR4
	movl	(%r15), %edi
	movq	_CCM_ANALOG_PLL_ENET@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_RD4
	movq	_CCM_ANALOG_PLL_ENET_POWERDOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	notl	%r12d
	andl	%eax, %r12d
	movl	(%r15), %edi
	movl	(%r13), %esi
	movl	%r12d, %edx
	callq	_WR4
	movl	$100001, %ebx                   ## imm = 0x186A1
	movq	_CCM_ANALOG_PLL_ENET_LOCK@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movl	(%r13), %esi
	callq	_RD4
	testl	%eax, (%r14)
	jne	LBB0_3
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	decl	%ebx
	cmpl	$2, %ebx
	jae	LBB0_2
## %bb.5:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_4
LBB0_3:
	movq	_CCM_ANALOG_PLL_ENET_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	_CCM_ANALOG_PLL_ENET_BYPASS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	notl	%r14d
	andl	%r12d, %r14d
	movl	(%r15), %edi
	movl	(%r13), %esi
	movl	%r14d, %edx
	callq	_WR4
	movq	_CCM_ANALOG_PLL_ENET_ENABLE_100M@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movl	(%r15), %edi
	movl	(%r13), %esi
	movl	%r14d, %edx
	callq	_WR4
	xorl	%eax, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ccm_sc,4,2                     ## @ccm_sc
	.comm	_CCM_CCGR5,4,2                  ## @CCM_CCGR5
	.comm	_CCGR5_SATA,4,2                 ## @CCGR5_SATA
	.comm	_CCM_ANALOG_PLL_ENET,4,2        ## @CCM_ANALOG_PLL_ENET
	.comm	_CCM_ANALOG_PLL_ENET_POWERDOWN,4,2 ## @CCM_ANALOG_PLL_ENET_POWERDOWN
	.comm	_CCM_ANALOG_PLL_ENET_LOCK,4,2   ## @CCM_ANALOG_PLL_ENET_LOCK
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_CCM_ANALOG_PLL_ENET_ENABLE,4,2 ## @CCM_ANALOG_PLL_ENET_ENABLE
	.comm	_CCM_ANALOG_PLL_ENET_BYPASS,4,2 ## @CCM_ANALOG_PLL_ENET_BYPASS
	.comm	_CCM_ANALOG_PLL_ENET_ENABLE_100M,4,2 ## @CCM_ANALOG_PLL_ENET_ENABLE_100M
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_imx6_ccm_sata_enable           ; -- Begin function imx6_ccm_sata_enable
	.p2align	2
_imx6_ccm_sata_enable:                  ; @imx6_ccm_sata_enable
	.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
Lloh0:
	adrp	x21, _ccm_sc@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ccm_sc@GOTPAGEOFF]
	ldr	w19, [x21]
Lloh2:
	adrp	x8, _CCM_CCGR5@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CCM_CCGR5@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_RD4
Lloh5:
	adrp	x8, _CCGR5_SATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CCGR5_SATA@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x19
	mov	x1, x20
	bl	_WR4
	ldr	w0, [x21]
Lloh8:
	adrp	x20, _CCM_ANALOG_PLL_ENET@GOTPAGE
Lloh9:
	ldr	x20, [x20, _CCM_ANALOG_PLL_ENET@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_RD4
Lloh10:
	adrp	x8, _CCM_ANALOG_PLL_ENET_POWERDOWN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CCM_ANALOG_PLL_ENET_POWERDOWN@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	bic	w19, w0, w8
	ldr	w0, [x21]
	ldr	w1, [x20]
	mov	x2, x19
	bl	_WR4
	mov	w22, #34465
	movk	w22, #1, lsl #16
Lloh13:
	adrp	x23, _CCM_ANALOG_PLL_ENET_LOCK@GOTPAGE
Lloh14:
	ldr	x23, [x23, _CCM_ANALOG_PLL_ENET_LOCK@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	ldr	w1, [x20]
	bl	_RD4
	ldr	w8, [x23]
	tst	w8, w0
	b.ne	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	sub	w22, w22, #1
	cmp	w22, #2
	b.hs	LBB0_1
; %bb.3:
Lloh15:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_4:
Lloh18:
	adrp	x8, _CCM_ANALOG_PLL_ENET_ENABLE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CCM_ANALOG_PLL_ENET_ENABLE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	orr	w8, w8, w19
Lloh21:
	adrp	x9, _CCM_ANALOG_PLL_ENET_BYPASS@GOTPAGE
Lloh22:
	ldr	x9, [x9, _CCM_ANALOG_PLL_ENET_BYPASS@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	bic	w19, w8, w9
	ldr	w0, [x21]
	ldr	w1, [x20]
	mov	x2, x19
	bl	_WR4
Lloh24:
	adrp	x8, _CCM_ANALOG_PLL_ENET_ENABLE_100M@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CCM_ANALOG_PLL_ENET_ENABLE_100M@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	orr	w2, w8, w19
	ldr	w0, [x21]
	ldr	w1, [x20]
	bl	_WR4
	mov	w0, #0
LBB0_5:
	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	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ccm_sc,4,2                     ; @ccm_sc
	.comm	_CCM_CCGR5,4,2                  ; @CCM_CCGR5
	.comm	_CCGR5_SATA,4,2                 ; @CCGR5_SATA
	.comm	_CCM_ANALOG_PLL_ENET,4,2        ; @CCM_ANALOG_PLL_ENET
	.comm	_CCM_ANALOG_PLL_ENET_POWERDOWN,4,2 ; @CCM_ANALOG_PLL_ENET_POWERDOWN
	.comm	_CCM_ANALOG_PLL_ENET_LOCK,4,2   ; @CCM_ANALOG_PLL_ENET_LOCK
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_CCM_ANALOG_PLL_ENET_ENABLE,4,2 ; @CCM_ANALOG_PLL_ENET_ENABLE
	.comm	_CCM_ANALOG_PLL_ENET_BYPASS,4,2 ; @CCM_ANALOG_PLL_ENET_BYPASS
	.comm	_CCM_ANALOG_PLL_ENET_ENABLE_100M,4,2 ; @CCM_ANALOG_PLL_ENET_ENABLE_100M
.subsections_via_symbols
