	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gem_pcs_reinit_adv
_gem_pcs_reinit_adv:                    ## @gem_pcs_reinit_adv
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_PCS_CFG@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movq	_PCS_CFG_ENABLE@GOTPCREL(%rip), %r15
	movq	_PCS_CFG_TO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%r15), %edi
	notl	%edi
	andl	%eax, %edi
	movq	(%r14), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	movq	_PCS_MIIADV@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movq	_PCS_MIIADV_FD@GOTPCREL(%rip), %rcx
	movq	_PCS_MIIADV_HD@GOTPCREL(%rip), %rdx
	movq	_PCS_MIIADV_SP@GOTPCREL(%rip), %rsi
	movq	_PCS_MIIADV_AP@GOTPCREL(%rip), %rdi
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	orl	(%rsi), %eax
	orl	(%rdi), %eax
	movq	(%r12), %rsi
	addq	8(%rbx), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	_PCS_MIICTRL@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movq	_PCS_MIICTRL_RAN@GOTPCREL(%rip), %rcx
	movq	_PCS_MIICTRL_ANE@GOTPCREL(%rip), %rdx
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	movq	_PCS_MIICTRL_WB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movq	(%r12), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	movq	(%r14), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	orl	(%r15), %eax
	movq	(%r14), %rsi
	addq	8(%rbx), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	_PCS_SCTRL@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movq	(%rbx), %rcx
	movq	_phy_serialink@GOTPCREL(%rip), %rdx
	movq	_PCS_SCTRL_LOOP@GOTPCREL(%rip), %rsi
	movl	(%rsi), %edi
	movl	%edi, %esi
	notl	%esi
	andl	%eax, %esi
	orl	%eax, %edi
	cmpq	(%rdx), %rcx
	cmovel	%esi, %edi
	movq	(%r14), %rsi
	addq	8(%rbx), %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PCS_CFG,8,3                    ## @PCS_CFG
	.comm	_PCS_CFG_ENABLE,4,2             ## @PCS_CFG_ENABLE
	.comm	_PCS_CFG_TO,4,2                 ## @PCS_CFG_TO
	.comm	_PCS_MIIADV,8,3                 ## @PCS_MIIADV
	.comm	_PCS_MIIADV_FD,4,2              ## @PCS_MIIADV_FD
	.comm	_PCS_MIIADV_HD,4,2              ## @PCS_MIIADV_HD
	.comm	_PCS_MIIADV_SP,4,2              ## @PCS_MIIADV_SP
	.comm	_PCS_MIIADV_AP,4,2              ## @PCS_MIIADV_AP
	.comm	_PCS_MIICTRL,8,3                ## @PCS_MIICTRL
	.comm	_PCS_MIICTRL_RAN,4,2            ## @PCS_MIICTRL_RAN
	.comm	_PCS_MIICTRL_ANE,4,2            ## @PCS_MIICTRL_ANE
	.comm	_PCS_MIICTRL_WB,4,2             ## @PCS_MIICTRL_WB
	.comm	_PCS_SCTRL,8,3                  ## @PCS_SCTRL
	.comm	_phy_serialink,8,3              ## @phy_serialink
	.comm	_PCS_SCTRL_LOOP,4,2             ## @PCS_SCTRL_LOOP
	.no_dead_strip	_gem_pcs_reinit_adv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gem_pcs_reinit_adv
_gem_pcs_reinit_adv:                    ; @gem_pcs_reinit_adv
	.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	x8, [x0, #8]
Lloh0:
	adrp	x20, _PCS_CFG@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PCS_CFG@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh2:
	adrp	x21, _PCS_CFG_ENABLE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _PCS_CFG_ENABLE@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh4:
	adrp	x9, _PCS_CFG_TO@GOTPAGE
Lloh5:
	ldr	x9, [x9, _PCS_CFG_TO@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w0, w0, w8
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #8]
Lloh7:
	adrp	x22, _PCS_MIIADV@GOTPAGE
Lloh8:
	ldr	x22, [x22, _PCS_MIIADV@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
Lloh9:
	adrp	x8, _PCS_MIIADV_FD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCS_MIIADV_FD@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _PCS_MIIADV_HD@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PCS_MIIADV_HD@GOTPAGEOFF]
Lloh14:
	adrp	x10, _PCS_MIIADV_SP@GOTPAGE
Lloh15:
	ldr	x10, [x10, _PCS_MIIADV_SP@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	ldr	w10, [x10]
Lloh18:
	adrp	x11, _PCS_MIIADV_AP@GOTPAGE
Lloh19:
	ldr	x11, [x11, _PCS_MIIADV_AP@GOTPAGEOFF]
Lloh20:
	ldr	w11, [x11]
	orr	w8, w8, w0
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w0, w8, w11
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #8]
Lloh21:
	adrp	x22, _PCS_MIICTRL@GOTPAGE
Lloh22:
	ldr	x22, [x22, _PCS_MIICTRL@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
Lloh23:
	adrp	x8, _PCS_MIICTRL_RAN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PCS_MIICTRL_RAN@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _PCS_MIICTRL_ANE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _PCS_MIICTRL_ANE@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w8, w0
Lloh29:
	adrp	x10, _PCS_MIICTRL_WB@GOTPAGE
Lloh30:
	ldr	x10, [x10, _PCS_MIICTRL_WB@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh31:
	ldr	w9, [x10]
	bic	w0, w8, w9
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x21]
	orr	w0, w8, w0
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #8]
Lloh32:
	adrp	x20, _PCS_SCTRL@GOTPAGE
Lloh33:
	ldr	x20, [x20, _PCS_SCTRL@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh34:
	adrp	x8, _phy_serialink@GOTPAGE
Lloh35:
	ldr	x8, [x8, _phy_serialink@GOTPAGEOFF]
Lloh36:
	adrp	x9, _PCS_SCTRL_LOOP@GOTPAGE
Lloh37:
	ldr	x9, [x9, _PCS_SCTRL_LOOP@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
Lloh39:
	ldr	w9, [x9]
	bic	w10, w0, w9
	orr	w9, w9, w0
	ldp	x11, x12, [x19]
	cmp	x11, x8
	csel	w0, w10, w9, eq
	ldr	x8, [x20]
	add	x1, x8, x12
	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	_writel
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh38
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PCS_CFG,8,3                    ; @PCS_CFG
	.comm	_PCS_CFG_ENABLE,4,2             ; @PCS_CFG_ENABLE
	.comm	_PCS_CFG_TO,4,2                 ; @PCS_CFG_TO
	.comm	_PCS_MIIADV,8,3                 ; @PCS_MIIADV
	.comm	_PCS_MIIADV_FD,4,2              ; @PCS_MIIADV_FD
	.comm	_PCS_MIIADV_HD,4,2              ; @PCS_MIIADV_HD
	.comm	_PCS_MIIADV_SP,4,2              ; @PCS_MIIADV_SP
	.comm	_PCS_MIIADV_AP,4,2              ; @PCS_MIIADV_AP
	.comm	_PCS_MIICTRL,8,3                ; @PCS_MIICTRL
	.comm	_PCS_MIICTRL_RAN,4,2            ; @PCS_MIICTRL_RAN
	.comm	_PCS_MIICTRL_ANE,4,2            ; @PCS_MIICTRL_ANE
	.comm	_PCS_MIICTRL_WB,4,2             ; @PCS_MIICTRL_WB
	.comm	_PCS_SCTRL,8,3                  ; @PCS_SCTRL
	.comm	_phy_serialink,8,3              ; @phy_serialink
	.comm	_PCS_SCTRL_LOOP,4,2             ; @PCS_SCTRL_LOOP
	.no_dead_strip	_gem_pcs_reinit_adv
.subsections_via_symbols
