	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv88e6390_serdes_power_sgmii
_mv88e6390_serdes_power_sgmii:          ## @mv88e6390_serdes_power_sgmii
	.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
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_MDIO_MMD_PHYXS@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_MV88E6390_SGMII_CONTROL@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	leaq	-44(%rbp), %r8
	callq	_mv88e6390_serdes_read
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movl	-44(%rbp), %ecx
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.2:
	movq	_MV88E6390_SGMII_CONTROL_RESET@GOTPCREL(%rip), %rax
	movq	_MV88E6390_SGMII_CONTROL_LOOPBACK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	orl	(%rax), %r8d
	movq	_MV88E6390_SGMII_CONTROL_PDOWN@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	notl	%r8d
	andl	%ecx, %r8d
	jmp	LBB0_4
LBB0_3:
	movq	_MV88E6390_SGMII_CONTROL_PDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	orl	%ecx, %r8d
LBB0_4:
	xorl	%eax, %eax
	cmpl	%r8d, %ecx
	je	LBB0_6
## %bb.5:
	movl	(%r12), %edx
	movl	(%r13), %ecx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_mv88e6390_serdes_write
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_MMD_PHYXS,4,2             ## @MDIO_MMD_PHYXS
	.comm	_MV88E6390_SGMII_CONTROL,4,2    ## @MV88E6390_SGMII_CONTROL
	.comm	_MV88E6390_SGMII_CONTROL_RESET,4,2 ## @MV88E6390_SGMII_CONTROL_RESET
	.comm	_MV88E6390_SGMII_CONTROL_LOOPBACK,4,2 ## @MV88E6390_SGMII_CONTROL_LOOPBACK
	.comm	_MV88E6390_SGMII_CONTROL_PDOWN,4,2 ## @MV88E6390_SGMII_CONTROL_PDOWN
	.no_dead_strip	_mv88e6390_serdes_power_sgmii
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv88e6390_serdes_power_sgmii
_mv88e6390_serdes_power_sgmii:          ; @mv88e6390_serdes_power_sgmii
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _MDIO_MMD_PHYXS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MDIO_MMD_PHYXS@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh2:
	adrp	x23, _MV88E6390_SGMII_CONTROL@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MV88E6390_SGMII_CONTROL@GOTPAGEOFF]
	ldr	w3, [x23]
	add	x4, sp, #12
	bl	_mv88e6390_serdes_read
	cbnz	w0, LBB0_6
; %bb.1:
	ldr	w8, [sp, #12]
	cbz	w21, LBB0_4
; %bb.2:
Lloh4:
	adrp	x9, _MV88E6390_SGMII_CONTROL_RESET@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MV88E6390_SGMII_CONTROL_RESET@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
Lloh7:
	adrp	x10, _MV88E6390_SGMII_CONTROL_LOOPBACK@GOTPAGE
Lloh8:
	ldr	x10, [x10, _MV88E6390_SGMII_CONTROL_LOOPBACK@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh10:
	adrp	x10, _MV88E6390_SGMII_CONTROL_PDOWN@GOTPAGE
Lloh11:
	ldr	x10, [x10, _MV88E6390_SGMII_CONTROL_PDOWN@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	orr	w9, w9, w10
	bic	w4, w8, w9
	cmp	w8, w4
	b.ne	LBB0_5
LBB0_3:
	mov	w0, #0
	b	LBB0_6
LBB0_4:
Lloh13:
	adrp	x9, _MV88E6390_SGMII_CONTROL_PDOWN@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MV88E6390_SGMII_CONTROL_PDOWN@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w4, w9, w8
	cmp	w8, w4
	b.eq	LBB0_3
LBB0_5:
	ldr	w2, [x22]
	ldr	w3, [x23]
	mov	x0, x20
	mov	x1, x19
	bl	_mv88e6390_serdes_write
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_MMD_PHYXS,4,2             ; @MDIO_MMD_PHYXS
	.comm	_MV88E6390_SGMII_CONTROL,4,2    ; @MV88E6390_SGMII_CONTROL
	.comm	_MV88E6390_SGMII_CONTROL_RESET,4,2 ; @MV88E6390_SGMII_CONTROL_RESET
	.comm	_MV88E6390_SGMII_CONTROL_LOOPBACK,4,2 ; @MV88E6390_SGMII_CONTROL_LOOPBACK
	.comm	_MV88E6390_SGMII_CONTROL_PDOWN,4,2 ; @MV88E6390_SGMII_CONTROL_PDOWN
	.no_dead_strip	_mv88e6390_serdes_power_sgmii
.subsections_via_symbols
