	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv_restore_phy
_nv_restore_phy:                        ## @nv_restore_phy
	.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	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_PHY_OUI_REALTEK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	8(%rbx), %rax
	movq	_PHY_MODEL_REALTEK_8201@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	_phy_cross@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_NV_CROSSOVER_DETECTION_DISABLED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movl	16(%rbx), %esi
	movq	_PHY_REALTEK_INIT_REG1@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	_PHY_REALTEK_INIT3@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_mii_rw
	movl	16(%rbx), %esi
	movq	_PHY_REALTEK_INIT_REG2@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	_MII_READ@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movq	%r14, %rdi
	callq	_mii_rw
	movq	_PHY_REALTEK_INIT_MSK1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movq	_PHY_REALTEK_INIT8@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	16(%rbx), %esi
	movl	(%r13), %edx
	movq	%r14, %rdi
	callq	_mii_rw
	movl	16(%rbx), %esi
	movl	(%r15), %edx
	movq	_PHY_REALTEK_INIT1@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_mii_rw
	movl	16(%rbx), %esi
	movq	_MII_BMCR@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movl	(%r12), %ecx
	movq	%r14, %rdi
	callq	_mii_rw
	movq	_BMCR_ANRESTART@GOTPCREL(%rip), %rcx
	movq	_BMCR_ANENABLE@GOTPCREL(%rip), %rdx
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	movl	16(%rbx), %esi
	movl	(%r15), %edx
	movq	%r14, %rdi
	movl	%eax, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mii_rw                         ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_OUI_REALTEK,8,3            ## @PHY_OUI_REALTEK
	.comm	_PHY_MODEL_REALTEK_8201,8,3     ## @PHY_MODEL_REALTEK_8201
	.comm	_phy_cross,8,3                  ## @phy_cross
	.comm	_NV_CROSSOVER_DETECTION_DISABLED,8,3 ## @NV_CROSSOVER_DETECTION_DISABLED
	.comm	_PHY_REALTEK_INIT_REG1,4,2      ## @PHY_REALTEK_INIT_REG1
	.comm	_PHY_REALTEK_INIT3,4,2          ## @PHY_REALTEK_INIT3
	.comm	_PHY_REALTEK_INIT_REG2,4,2      ## @PHY_REALTEK_INIT_REG2
	.comm	_MII_READ,4,2                   ## @MII_READ
	.comm	_PHY_REALTEK_INIT_MSK1,4,2      ## @PHY_REALTEK_INIT_MSK1
	.comm	_PHY_REALTEK_INIT8,4,2          ## @PHY_REALTEK_INIT8
	.comm	_PHY_REALTEK_INIT1,4,2          ## @PHY_REALTEK_INIT1
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_BMCR_ANRESTART,4,2             ## @BMCR_ANRESTART
	.comm	_BMCR_ANENABLE,4,2              ## @BMCR_ANENABLE
	.no_dead_strip	_nv_restore_phy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv_restore_phy
_nv_restore_phy:                        ; @nv_restore_phy
	.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
	mov	x19, x0
	bl	_netdev_priv
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PHY_OUI_REALTEK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PHY_OUI_REALTEK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0, #8]
Lloh3:
	adrp	x9, _PHY_MODEL_REALTEK_8201@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PHY_MODEL_REALTEK_8201@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _phy_cross@GOTPAGE
Lloh7:
	ldr	x8, [x8, _phy_cross@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _NV_CROSSOVER_DETECTION_DISABLED@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NV_CROSSOVER_DETECTION_DISABLED@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	w1, [x20, #16]
Lloh12:
	adrp	x21, _PHY_REALTEK_INIT_REG1@GOTPAGE
Lloh13:
	ldr	x21, [x21, _PHY_REALTEK_INIT_REG1@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh14:
	adrp	x8, _PHY_REALTEK_INIT3@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PHY_REALTEK_INIT3@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_mii_rw
	ldr	w1, [x20, #16]
Lloh17:
	adrp	x22, _PHY_REALTEK_INIT_REG2@GOTPAGE
Lloh18:
	ldr	x22, [x22, _PHY_REALTEK_INIT_REG2@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh19:
	adrp	x23, _MII_READ@GOTPAGE
Lloh20:
	ldr	x23, [x23, _MII_READ@GOTPAGEOFF]
	ldr	w3, [x23]
	mov	x0, x19
	bl	_mii_rw
Lloh21:
	adrp	x8, _PHY_REALTEK_INIT_MSK1@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PHY_REALTEK_INIT_MSK1@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	bic	w8, w0, w8
Lloh24:
	adrp	x9, _PHY_REALTEK_INIT8@GOTPAGE
Lloh25:
	ldr	x9, [x9, _PHY_REALTEK_INIT8@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w3, w8, w9
	ldr	w1, [x20, #16]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_mii_rw
	ldr	w1, [x20, #16]
	ldr	w2, [x21]
Lloh27:
	adrp	x8, _PHY_REALTEK_INIT1@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PHY_REALTEK_INIT1@GOTPAGEOFF]
Lloh29:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_mii_rw
	ldr	w1, [x20, #16]
Lloh30:
	adrp	x21, _MII_BMCR@GOTPAGE
Lloh31:
	ldr	x21, [x21, _MII_BMCR@GOTPAGEOFF]
	ldr	w2, [x21]
	ldr	w3, [x23]
	mov	x0, x19
	bl	_mii_rw
Lloh32:
	adrp	x8, _BMCR_ANRESTART@GOTPAGE
Lloh33:
	ldr	x8, [x8, _BMCR_ANRESTART@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
Lloh35:
	adrp	x9, _BMCR_ANENABLE@GOTPAGE
Lloh36:
	ldr	x9, [x9, _BMCR_ANENABLE@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w3, w8, w9
	ldr	w1, [x20, #16]
	ldr	w2, [x21]
	mov	x0, x19
	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
	b	_mii_rw
LBB0_4:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_OUI_REALTEK,8,3            ; @PHY_OUI_REALTEK
	.comm	_PHY_MODEL_REALTEK_8201,8,3     ; @PHY_MODEL_REALTEK_8201
	.comm	_phy_cross,8,3                  ; @phy_cross
	.comm	_NV_CROSSOVER_DETECTION_DISABLED,8,3 ; @NV_CROSSOVER_DETECTION_DISABLED
	.comm	_PHY_REALTEK_INIT_REG1,4,2      ; @PHY_REALTEK_INIT_REG1
	.comm	_PHY_REALTEK_INIT3,4,2          ; @PHY_REALTEK_INIT3
	.comm	_PHY_REALTEK_INIT_REG2,4,2      ; @PHY_REALTEK_INIT_REG2
	.comm	_MII_READ,4,2                   ; @MII_READ
	.comm	_PHY_REALTEK_INIT_MSK1,4,2      ; @PHY_REALTEK_INIT_MSK1
	.comm	_PHY_REALTEK_INIT8,4,2          ; @PHY_REALTEK_INIT8
	.comm	_PHY_REALTEK_INIT1,4,2          ; @PHY_REALTEK_INIT1
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_BMCR_ANRESTART,4,2             ; @BMCR_ANRESTART
	.comm	_BMCR_ANENABLE,4,2              ; @BMCR_ANENABLE
	.no_dead_strip	_nv_restore_phy
.subsections_via_symbols
