	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv643xx_eth_get_link_ksettings_phyless
_mv643xx_eth_get_link_ksettings_phyless: ## @mv643xx_eth_get_link_ksettings_phyless
	.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, %rbx
	movq	_PORT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_rdlp
	movq	_SUPPORTED_MII@GOTPCREL(%rip), %rcx
	movq	_ADVERTISED_MII@GOTPCREL(%rip), %rdx
	movq	_PORT_SPEED_MASK@GOTPCREL(%rip), %rdi
	movl	%eax, %esi
	andl	(%rdi), %esi
	cmpl	$128, %esi
	je	LBB0_5
## %bb.1:
	cmpl	$129, %esi
	je	LBB0_4
## %bb.2:
	movl	$-1, %edi
	cmpl	$130, %esi
	jne	LBB0_7
## %bb.3:
	movq	_SPEED_10@GOTPCREL(%rip), %rsi
	jmp	LBB0_6
LBB0_5:
	movq	_SPEED_1000@GOTPCREL(%rip), %rsi
	jmp	LBB0_6
LBB0_4:
	movq	_SPEED_100@GOTPCREL(%rip), %rsi
LBB0_6:
	movl	(%rsi), %edi
LBB0_7:
	movl	(%rcx), %esi
	movl	(%rdx), %r14d
	movl	%edi, 8(%rbx)
	movq	_FULL_DUPLEX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	jne	LBB0_8
## %bb.9:
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_PORT_MII@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	$0, 16(%rbx)
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movl	4(%rbx), %edi
	callq	_ethtool_convert_legacy_u32_to_link_mode
	movl	(%rbx), %edi
	movl	%r14d, %esi
	callq	_ethtool_convert_legacy_u32_to_link_mode
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PORT_STATUS,4,2                ## @PORT_STATUS
	.comm	_SUPPORTED_MII,4,2              ## @SUPPORTED_MII
	.comm	_ADVERTISED_MII,4,2             ## @ADVERTISED_MII
	.comm	_PORT_SPEED_MASK,4,2            ## @PORT_SPEED_MASK
	.comm	_SPEED_10,4,2                   ## @SPEED_10
	.comm	_SPEED_100,4,2                  ## @SPEED_100
	.comm	_SPEED_1000,4,2                 ## @SPEED_1000
	.comm	_FULL_DUPLEX,4,2                ## @FULL_DUPLEX
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ## @DUPLEX_HALF
	.comm	_PORT_MII,4,2                   ## @PORT_MII
	.comm	_AUTONEG_DISABLE,4,2            ## @AUTONEG_DISABLE
	.no_dead_strip	_mv643xx_eth_get_link_ksettings_phyless
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv643xx_eth_get_link_ksettings_phyless
_mv643xx_eth_get_link_ksettings_phyless: ; @mv643xx_eth_get_link_ksettings_phyless
	.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
Lloh0:
	adrp	x8, _PORT_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PORT_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_rdlp
Lloh3:
	adrp	x8, _SUPPORTED_MII@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SUPPORTED_MII@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _ADVERTISED_MII@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ADVERTISED_MII@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
Lloh9:
	adrp	x8, _PORT_SPEED_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PORT_SPEED_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w8, w8, w0
	cmp	w8, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #130
	b.ne	LBB0_7
; %bb.3:
Lloh12:
	adrp	x8, _SPEED_10@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SPEED_10@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh14:
	adrp	x8, _SPEED_1000@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SPEED_1000@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh16:
	adrp	x8, _SPEED_100@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SPEED_100@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	b	LBB0_8
LBB0_7:
	mov	w8, #-1
LBB0_8:
	str	w8, [x19, #8]
Lloh18:
	adrp	x8, _FULL_DUPLEX@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FULL_DUPLEX@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh22:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh23:
	adrp	x10, _DUPLEX_HALF@GOTPAGE
Lloh24:
	ldr	x10, [x10, _DUPLEX_HALF@GOTPAGEOFF]
	tst	w8, w0
	csel	x8, x10, x9, eq
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _PORT_MII@GOTPAGE
Lloh26:
	ldr	x9, [x9, _PORT_MII@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #24]
	str	xzr, [x19, #16]
Lloh28:
	adrp	x8, _AUTONEG_DISABLE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AUTONEG_DISABLE@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	ldr	w0, [x19, #4]
	bl	_ethtool_convert_legacy_u32_to_link_mode
	ldr	w0, [x19]
	mov	x1, x20
	bl	_ethtool_convert_legacy_u32_to_link_mode
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT_STATUS,4,2                ; @PORT_STATUS
	.comm	_SUPPORTED_MII,4,2              ; @SUPPORTED_MII
	.comm	_ADVERTISED_MII,4,2             ; @ADVERTISED_MII
	.comm	_PORT_SPEED_MASK,4,2            ; @PORT_SPEED_MASK
	.comm	_SPEED_10,4,2                   ; @SPEED_10
	.comm	_SPEED_100,4,2                  ; @SPEED_100
	.comm	_SPEED_1000,4,2                 ; @SPEED_1000
	.comm	_FULL_DUPLEX,4,2                ; @FULL_DUPLEX
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ; @DUPLEX_HALF
	.comm	_PORT_MII,4,2                   ; @PORT_MII
	.comm	_AUTONEG_DISABLE,4,2            ; @AUTONEG_DISABLE
	.no_dead_strip	_mv643xx_eth_get_link_ksettings_phyless
.subsections_via_symbols
