	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pch_gbe_phy_init_setting       ## -- Begin function pch_gbe_phy_init_setting
	.p2align	4, 0x90
_pch_gbe_phy_init_setting:              ## @pch_gbe_phy_init_setting
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_pch_gbe_hw_to_adapter
	movq	%rax, %r14
	movq	$0, -56(%rbp)
	movl	$0, -48(%rbp)
	movq	_ETHTOOL_GSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	%r14, %r15
	addq	$12, %r15
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdi
	callq	_mii_ethtool_gset
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	8(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
LBB0_2:
	movl	8(%rbx), %esi
	leaq	-56(%rbp), %r12
	movq	%r12, %rdi
	callq	_ethtool_cmd_speed_set
	movl	4(%rbx), %eax
	movl	%eax, -48(%rbp)
	movl	12(%rbx), %eax
	movl	%eax, -52(%rbp)
	movl	(%rbx), %eax
	movl	%eax, -56(%rbp)
	movq	_MII_BMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BMCR_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_pch_gbe_phy_write_reg_miic
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_mii_ethtool_sset
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	8(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_netdev_err
LBB0_4:
	movq	%rbx, %rdi
	callq	_pch_gbe_phy_sw_reset
	movq	_PHY_PHYSP_CONTROL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_pch_gbe_phy_read_reg_miic
	movq	_PHYSP_CTRL_ASSERT_CRS_TX@GOTPCREL(%rip), %rax
	movl	-36(%rbp), %edx
	orl	(%rax), %edx
	movl	%edx, -36(%rbp)
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_pch_gbe_phy_write_reg_miic
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_pch_gbe_phy_tx_clk_delay
LBB0_7:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETHTOOL_GSET,4,2               ## @ETHTOOL_GSET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error: mii_ethtool_gset\n"

	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_BMCR_RESET,4,2                 ## @BMCR_RESET
L_.str.1:                               ## @.str.1
	.asciz	"Error: mii_ethtool_sset\n"

	.comm	_PHY_PHYSP_CONTROL,4,2          ## @PHY_PHYSP_CONTROL
	.comm	_PHYSP_CTRL_ASSERT_CRS_TX,4,2   ## @PHYSP_CTRL_ASSERT_CRS_TX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pch_gbe_phy_init_setting       ; -- Begin function pch_gbe_phy_init_setting
	.p2align	2
_pch_gbe_phy_init_setting:              ; @pch_gbe_phy_init_setting
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	bl	_pch_gbe_hw_to_adapter
	mov	x20, x0
	str	xzr, [sp, #16]
Lloh0:
	adrp	x8, _ETHTOOL_GSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETHTOOL_GSET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	wzr, w8, [sp, #24]
	add	x21, x0, #12
	add	x1, sp, #16
	mov	x0, x21
	bl	_mii_ethtool_gset
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x20, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
LBB0_2:
	ldr	w1, [x19, #8]
	add	x0, sp, #16
	bl	_ethtool_cmd_speed_set
	ldp	w9, w10, [x19]
	ldr	w8, [x19, #12]
	stp	w8, w10, [sp, #20]
	str	w9, [sp, #16]
Lloh5:
	adrp	x8, _MII_BMCR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MII_BMCR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _BMCR_RESET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BMCR_RESET@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_pch_gbe_phy_write_reg_miic
	add	x1, sp, #16
	mov	x0, x21
	bl	_mii_ethtool_sset
	cbz	w0, LBB0_4
; %bb.3:
	ldr	w0, [x20, #8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_err
LBB0_4:
	mov	x0, x19
	bl	_pch_gbe_phy_sw_reset
Lloh13:
	adrp	x21, _PHY_PHYSP_CONTROL@GOTPAGE
Lloh14:
	ldr	x21, [x21, _PHY_PHYSP_CONTROL@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x19
	bl	_pch_gbe_phy_read_reg_miic
Lloh15:
	adrp	x8, _PHYSP_CTRL_ASSERT_CRS_TX@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PHYSP_CTRL_ASSERT_CRS_TX@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_pch_gbe_phy_write_reg_miic
	ldr	x8, [x20]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_pch_gbe_phy_tx_clk_delay
LBB0_7:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ETHTOOL_GSET,4,2               ; @ETHTOOL_GSET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error: mii_ethtool_gset\n"

	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_BMCR_RESET,4,2                 ; @BMCR_RESET
l_.str.1:                               ; @.str.1
	.asciz	"Error: mii_ethtool_sset\n"

	.comm	_PHY_PHYSP_CONTROL,4,2          ; @PHY_PHYSP_CONTROL
	.comm	_PHYSP_CTRL_ASSERT_CRS_TX,4,2   ; @PHYSP_CTRL_ASSERT_CRS_TX
.subsections_via_symbols
