	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pch_gbe_get_link_ksettings
_pch_gbe_get_link_ksettings:            ## @pch_gbe_get_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	leaq	4(%rax), %rdi
	movq	%rbx, %rsi
	callq	_mii_ethtool_get_link_ksettings
	movl	8(%rbx), %esi
	leaq	-24(%rbp), %rdi
	callq	_ethtool_convert_link_mode_to_legacy_u32
	movl	4(%rbx), %esi
	leaq	-20(%rbp), %rdi
	callq	_ethtool_convert_link_mode_to_legacy_u32
	movq	_SUPPORTED_TP@GOTPCREL(%rip), %rax
	movq	_SUPPORTED_1000baseT_Half@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	notl	%esi
	andl	-24(%rbp), %esi
	movl	%esi, -24(%rbp)
	movq	_ADVERTISED_TP@GOTPCREL(%rip), %rax
	movq	_ADVERTISED_1000baseT_Half@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, -20(%rbp)
	movl	8(%rbx), %edi
	callq	_ethtool_convert_legacy_u32_to_link_mode
	movl	4(%rbx), %edi
	movl	-20(%rbp), %esi
	callq	_ethtool_convert_legacy_u32_to_link_mode
	movl	(%r14), %edi
	callq	_netif_carrier_ok
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_SPEED_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_2:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SUPPORTED_TP,4,2               ## @SUPPORTED_TP
	.comm	_SUPPORTED_1000baseT_Half,4,2   ## @SUPPORTED_1000baseT_Half
	.comm	_ADVERTISED_TP,4,2              ## @ADVERTISED_TP
	.comm	_ADVERTISED_1000baseT_Half,4,2  ## @ADVERTISED_1000baseT_Half
	.comm	_SPEED_UNKNOWN,4,2              ## @SPEED_UNKNOWN
	.no_dead_strip	_pch_gbe_get_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_get_link_ksettings
_pch_gbe_get_link_ksettings:            ; @pch_gbe_get_link_ksettings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	bl	_netdev_priv
	mov	x20, x0
	add	x0, x0, #4
	mov	x1, x19
	bl	_mii_ethtool_get_link_ksettings
	ldr	w1, [x19, #8]
	add	x0, sp, #12
	bl	_ethtool_convert_link_mode_to_legacy_u32
	ldr	w1, [x19, #4]
	add	x0, sp, #8
	bl	_ethtool_convert_link_mode_to_legacy_u32
Lloh0:
	adrp	x8, _SUPPORTED_TP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SUPPORTED_TP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SUPPORTED_1000baseT_Half@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SUPPORTED_1000baseT_Half@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [sp, #12]
	bic	w1, w9, w8
	str	w1, [sp, #12]
Lloh6:
	adrp	x8, _ADVERTISED_TP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ADVERTISED_TP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _ADVERTISED_1000baseT_Half@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ADVERTISED_1000baseT_Half@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [sp, #8]
	bic	w8, w9, w8
	str	w8, [sp, #8]
	ldr	w0, [x19, #8]
	bl	_ethtool_convert_legacy_u32_to_link_mode
	ldr	w0, [x19, #4]
	ldr	w1, [sp, #8]
	bl	_ethtool_convert_legacy_u32_to_link_mode
	ldr	w0, [x20]
	bl	_netif_carrier_ok
	cbnz	w0, LBB0_2
; %bb.1:
Lloh12:
	adrp	x8, _SPEED_UNKNOWN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SPEED_UNKNOWN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SUPPORTED_TP,4,2               ; @SUPPORTED_TP
	.comm	_SUPPORTED_1000baseT_Half,4,2   ; @SUPPORTED_1000baseT_Half
	.comm	_ADVERTISED_TP,4,2              ; @ADVERTISED_TP
	.comm	_ADVERTISED_1000baseT_Half,4,2  ; @ADVERTISED_1000baseT_Half
	.comm	_SPEED_UNKNOWN,4,2              ; @SPEED_UNKNOWN
	.no_dead_strip	_pch_gbe_get_link_ksettings
.subsections_via_symbols
