	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phy_ethtool_ksettings_get      ## -- Begin function phy_ethtool_ksettings_get
	.p2align	4, 0x90
_phy_ethtool_ksettings_get:             ## @phy_ethtool_ksettings_get
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	40(%rsi), %edi
	movl	40(%rbx), %esi
	callq	_linkmode_copy
	movl	36(%r14), %edi
	movl	36(%rbx), %esi
	callq	_linkmode_copy
	movl	32(%r14), %edi
	movl	32(%rbx), %esi
	callq	_linkmode_copy
	movl	28(%rbx), %eax
	movl	%eax, 28(%r14)
	movl	24(%rbx), %eax
	movl	%eax, 24(%r14)
	movq	(%rbx), %rax
	movq	_PHY_INTERFACE_MODE_MOCA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_PORT_BNC@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_PORT_MII@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	movq	%rbx, %rdi
	callq	_phy_is_internal
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:
	movq	_XCVR_EXTERNAL@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_XCVR_INTERNAL@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movups	8(%rbx), %xmm0
	movups	%xmm0, (%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_INTERFACE_MODE_MOCA,8,3    ## @PHY_INTERFACE_MODE_MOCA
	.comm	_PORT_BNC,4,2                   ## @PORT_BNC
	.comm	_PORT_MII,4,2                   ## @PORT_MII
	.comm	_XCVR_INTERNAL,4,2              ## @XCVR_INTERNAL
	.comm	_XCVR_EXTERNAL,4,2              ## @XCVR_EXTERNAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phy_ethtool_ksettings_get      ; -- Begin function phy_ethtool_ksettings_get
	.p2align	2
_phy_ethtool_ksettings_get:             ; @phy_ethtool_ksettings_get
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x1, #40]
	ldr	w1, [x20, #40]
	bl	_linkmode_copy
	ldr	w0, [x19, #36]
	ldr	w1, [x20, #36]
	bl	_linkmode_copy
	ldr	w0, [x19, #32]
	ldr	w1, [x20, #32]
	bl	_linkmode_copy
	ldr	d0, [x20, #24]
	str	d0, [x19, #24]
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _PHY_INTERFACE_MODE_MOCA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PHY_INTERFACE_MODE_MOCA@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _PORT_BNC@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PORT_BNC@GOTPAGEOFF]
Lloh5:
	adrp	x11, _PORT_MII@GOTPAGE
Lloh6:
	ldr	x11, [x11, _PORT_MII@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
	str	w8, [x19, #20]
	mov	x0, x20
	bl	_phy_is_internal
Lloh7:
	adrp	x8, _XCVR_INTERNAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _XCVR_INTERNAL@GOTPAGEOFF]
Lloh9:
	adrp	x9, _XCVR_EXTERNAL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _XCVR_EXTERNAL@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [x19, #16]
	ldur	q0, [x20, #8]
	str	q0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_INTERFACE_MODE_MOCA,8,3    ; @PHY_INTERFACE_MODE_MOCA
	.comm	_PORT_BNC,4,2                   ; @PORT_BNC
	.comm	_PORT_MII,4,2                   ; @PORT_MII
	.comm	_XCVR_INTERNAL,4,2              ; @XCVR_INTERNAL
	.comm	_XCVR_EXTERNAL,4,2              ; @XCVR_EXTERNAL
.subsections_via_symbols
