	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pch_gbe_set_link_ksettings
_pch_gbe_set_link_ksettings:            ## @pch_gbe_set_link_ksettings
	.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	%rsi, %rbx
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	leaq	8(%rax), %rdi
	movq	(%rbx), %r12
	movq	_MII_BMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BMCR_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_pch_gbe_phy_write_reg_miic
	leaq	-56(%rbp), %rdi
	movq	%rbx, %rsi
	movl	$24, %edx
	callq	_memcpy
	movq	_UINT_MAX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_2
## %bb.1:
	movq	_SPEED_1000@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%r12, -56(%rbp)
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
LBB0_2:
	leaq	4(%r15), %rdi
	leaq	-56(%rbp), %rsi
	callq	_mii_ethtool_set_link_ksettings
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
	jmp	LBB0_7
LBB0_4:
	movq	%r12, 16(%r15)
	movl	-44(%rbp), %eax
	movl	%eax, 12(%r15)
	movl	-40(%rbp), %esi
	leaq	-64(%rbp), %rdi
	callq	_ethtool_convert_link_mode_to_legacy_u32
	movq	-64(%rbp), %rax
	movq	%rax, 24(%r15)
	movl	-48(%rbp), %eax
	movl	%eax, 8(%r15)
	movl	(%r15), %edi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	_pch_gbe_down
	movq	%r15, %rdi
	callq	_pch_gbe_up
	movl	%eax, %ebx
	jmp	LBB0_7
LBB0_6:
	movq	%r15, %rdi
	callq	_pch_gbe_reset
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_BMCR_RESET,4,2                 ## @BMCR_RESET
	.comm	_UINT_MAX,8,3                   ## @UINT_MAX
	.comm	_SPEED_1000,8,3                 ## @SPEED_1000
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error: mii_ethtool_set_link_ksettings\n"

	.no_dead_strip	_pch_gbe_set_link_ksettings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pch_gbe_set_link_ksettings
_pch_gbe_set_link_ksettings:            ; @pch_gbe_set_link_ksettings
	.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	x21, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	add	x0, x0, #8
	ldr	x22, [x21]
Lloh0:
	adrp	x8, _MII_BMCR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MII_BMCR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _BMCR_RESET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BMCR_RESET@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_pch_gbe_phy_write_reg_miic
	add	x0, sp, #8
	mov	x1, x21
	mov	w2, #24
	bl	_memcpy
Lloh6:
	adrp	x8, _UINT_MAX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UINT_MAX@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x22, x8
	b.ne	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _SPEED_1000@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SPEED_1000@GOTPAGEOFF]
Lloh11:
	ldr	x22, [x8]
	str	x22, [sp, #8]
Lloh12:
	adrp	x8, _DUPLEX_FULL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DUPLEX_FULL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [sp, #20]
LBB0_2:
	add	x0, x19, #4
	add	x1, sp, #8
	bl	_mii_ethtool_set_link_ksettings
	cbz	w0, LBB0_4
; %bb.3:
	mov	x21, x0
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
	b	LBB0_7
LBB0_4:
	str	x22, [x19, #16]
	ldr	w8, [sp, #20]
	str	w8, [x19, #12]
	ldr	w1, [sp, #24]
	mov	x0, sp
	bl	_ethtool_convert_link_mode_to_legacy_u32
	ldr	x8, [sp]
	str	x8, [x19, #24]
	ldr	w8, [sp, #16]
	str	w8, [x19, #8]
	ldr	w0, [x19]
	bl	_netif_running
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_pch_gbe_down
	mov	x0, x19
	bl	_pch_gbe_up
	mov	x21, x0
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_pch_gbe_reset
	mov	w21, #0
LBB0_7:
	mov	x0, x21
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_BMCR_RESET,4,2                 ; @BMCR_RESET
	.comm	_UINT_MAX,8,3                   ; @UINT_MAX
	.comm	_SPEED_1000,8,3                 ; @SPEED_1000
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error: mii_ethtool_set_link_ksettings\n"

	.no_dead_strip	_pch_gbe_set_link_ksettings
.subsections_via_symbols
