	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvebu_comphy_power_off_legacy
_mvebu_comphy_power_off_legacy:         ## @mvebu_comphy_power_off_legacy
	.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
	callq	_phy_get_drvdata
	movq	%rax, %r14
	movq	8(%rax), %r12
	movq	8(%r12), %rbx
	movl	(%rax), %edi
	callq	_MVEBU_COMPHY_SERDES_CFG1
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_readl
	movq	_MVEBU_COMPHY_SERDES_CFG1_RESET@GOTPCREL(%rip), %rcx
	movq	_MVEBU_COMPHY_SERDES_CFG1_CORE_RESET@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	movq	_MVEBU_COMPHY_SERDES_CFG1_RF_RESET@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	%ebx, -44(%rbp)
	movq	8(%r12), %r15
	movl	(%r14), %edi
	callq	_MVEBU_COMPHY_SERDES_CFG1
	addq	%rax, %r15
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_writel
	movl	(%r12), %edi
	movq	_MVEBU_COMPHY_SELECTOR@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	-44(%rbp), %r15
	movq	%r15, %rdx
	callq	_regmap_read
	movl	(%r14), %edi
	callq	_MVEBU_COMPHY_SELECTOR_PHY
	movl	$15, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	notl	%edx
	andl	-44(%rbp), %edx
	movl	$15, %ebx
	movl	%edx, -44(%rbp)
	movl	(%r12), %edi
	movl	(%r13), %esi
	callq	_regmap_write
	movl	(%r12), %edi
	movq	_MVEBU_COMPHY_PIPE_SELECTOR@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdx
	callq	_regmap_read
	movl	(%r14), %edi
	callq	_MVEBU_COMPHY_PIPE_SELECTOR_PIPE
	movl	%eax, %ecx
	shll	%cl, %ebx
	notl	%ebx
	andl	-44(%rbp), %ebx
	movl	%ebx, -44(%rbp)
	movl	(%r12), %edi
	movl	(%r13), %esi
	movl	%ebx, %edx
	callq	_regmap_write
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MVEBU_COMPHY_SERDES_CFG1_RESET,4,2 ## @MVEBU_COMPHY_SERDES_CFG1_RESET
	.comm	_MVEBU_COMPHY_SERDES_CFG1_CORE_RESET,4,2 ## @MVEBU_COMPHY_SERDES_CFG1_CORE_RESET
	.comm	_MVEBU_COMPHY_SERDES_CFG1_RF_RESET,4,2 ## @MVEBU_COMPHY_SERDES_CFG1_RF_RESET
	.comm	_MVEBU_COMPHY_SELECTOR,4,2      ## @MVEBU_COMPHY_SELECTOR
	.comm	_MVEBU_COMPHY_PIPE_SELECTOR,4,2 ## @MVEBU_COMPHY_PIPE_SELECTOR
	.no_dead_strip	_mvebu_comphy_power_off_legacy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvebu_comphy_power_off_legacy
_mvebu_comphy_power_off_legacy:         ; @mvebu_comphy_power_off_legacy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	bl	_phy_get_drvdata
	mov	x19, x0
	ldr	x21, [x0, #8]
	ldr	x20, [x21, #8]
	ldr	w0, [x0]
	bl	_MVEBU_COMPHY_SERDES_CFG1
	add	x0, x0, x20
	bl	_readl
Lloh0:
	adrp	x8, _MVEBU_COMPHY_SERDES_CFG1_RESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MVEBU_COMPHY_SERDES_CFG1_RESET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MVEBU_COMPHY_SERDES_CFG1_CORE_RESET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MVEBU_COMPHY_SERDES_CFG1_CORE_RESET@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _MVEBU_COMPHY_SERDES_CFG1_RF_RESET@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MVEBU_COMPHY_SERDES_CFG1_RF_RESET@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w20, w0, w8
	str	w20, [sp, #12]
	ldr	x22, [x21, #8]
	ldr	w0, [x19]
	bl	_MVEBU_COMPHY_SERDES_CFG1
	add	x1, x0, x22
	mov	x0, x20
	bl	_writel
	ldr	w0, [x21]
Lloh9:
	adrp	x20, _MVEBU_COMPHY_SELECTOR@GOTPAGE
Lloh10:
	ldr	x20, [x20, _MVEBU_COMPHY_SELECTOR@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	bl	_regmap_read
	ldr	w0, [x19]
	bl	_MVEBU_COMPHY_SELECTOR_PHY
	mov	w22, #15
	lsl	w8, w22, w0
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w0, [x21]
	ldr	w1, [x20]
	bl	_regmap_write
	ldr	w0, [x21]
Lloh11:
	adrp	x20, _MVEBU_COMPHY_PIPE_SELECTOR@GOTPAGE
Lloh12:
	ldr	x20, [x20, _MVEBU_COMPHY_PIPE_SELECTOR@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	bl	_regmap_read
	ldr	w0, [x19]
	bl	_MVEBU_COMPHY_PIPE_SELECTOR_PIPE
	lsl	w8, w22, w0
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w0, [x21]
	ldr	w1, [x20]
	bl	_regmap_write
	mov	w0, #0
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MVEBU_COMPHY_SERDES_CFG1_RESET,4,2 ; @MVEBU_COMPHY_SERDES_CFG1_RESET
	.comm	_MVEBU_COMPHY_SERDES_CFG1_CORE_RESET,4,2 ; @MVEBU_COMPHY_SERDES_CFG1_CORE_RESET
	.comm	_MVEBU_COMPHY_SERDES_CFG1_RF_RESET,4,2 ; @MVEBU_COMPHY_SERDES_CFG1_RF_RESET
	.comm	_MVEBU_COMPHY_SELECTOR,4,2      ; @MVEBU_COMPHY_SELECTOR
	.comm	_MVEBU_COMPHY_PIPE_SELECTOR,4,2 ; @MVEBU_COMPHY_PIPE_SELECTOR
	.no_dead_strip	_mvebu_comphy_power_off_legacy
.subsections_via_symbols
