	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tenxpress_get_link_ksettings
_tenxpress_get_link_ksettings:          ## @tenxpress_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_MDIO_MMD_AN@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_MDIO_AN_10GBT_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_ef4_mdio_read
	movl	%eax, %ebx
	movq	_MDIO_AN_10GBT_CTRL_ADV10G@GOTPCREL(%rip), %rax
	movq	_ADVERTISED_10000baseT_Full@GOTPCREL(%rip), %r12
	andl	(%rax), %ebx
	je	LBB0_2
## %bb.1:
	movl	(%r12), %ebx
LBB0_2:
	movl	(%r13), %esi
	movq	_MDIO_AN_10GBT_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_ef4_mdio_read
	movq	_MDIO_AN_10GBT_STAT_LP10G@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	je	LBB0_4
## %bb.3:
	movl	(%r12), %eax
LBB0_4:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_mdio45_ethtool_ksettings_get_npage
	movq	%r15, %rdi
	callq	_LOOPBACK_EXTERNAL
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_SPEED_10000@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_MMD_AN,4,2                ## @MDIO_MMD_AN
	.comm	_MDIO_AN_10GBT_CTRL,4,2         ## @MDIO_AN_10GBT_CTRL
	.comm	_MDIO_AN_10GBT_CTRL_ADV10G,4,2  ## @MDIO_AN_10GBT_CTRL_ADV10G
	.comm	_ADVERTISED_10000baseT_Full,4,2 ## @ADVERTISED_10000baseT_Full
	.comm	_MDIO_AN_10GBT_STAT,4,2         ## @MDIO_AN_10GBT_STAT
	.comm	_MDIO_AN_10GBT_STAT_LP10G,4,2   ## @MDIO_AN_10GBT_STAT_LP10G
	.comm	_SPEED_10000,4,2                ## @SPEED_10000
	.no_dead_strip	_tenxpress_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 tenxpress_get_link_ksettings
_tenxpress_get_link_ksettings:          ; @tenxpress_get_link_ksettings
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _MDIO_MMD_AN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MDIO_MMD_AN@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x8, _MDIO_AN_10GBT_CTRL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MDIO_AN_10GBT_CTRL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_ef4_mdio_read
Lloh5:
	adrp	x8, _MDIO_AN_10GBT_CTRL_ADV10G@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MDIO_AN_10GBT_CTRL_ADV10G@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x23, _ADVERTISED_10000baseT_Full@GOTPAGE
Lloh9:
	ldr	x23, [x23, _ADVERTISED_10000baseT_Full@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w8, w0
	csel	w21, wzr, w9, eq
	ldr	w1, [x22]
Lloh10:
	adrp	x8, _MDIO_AN_10GBT_STAT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MDIO_AN_10GBT_STAT@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_ef4_mdio_read
Lloh13:
	adrp	x8, _MDIO_AN_10GBT_STAT_LP10G@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MDIO_AN_10GBT_STAT_LP10G@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [x23]
	tst	w8, w0
	csel	w3, wzr, w9, eq
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_mdio45_ethtool_ksettings_get_npage
	mov	x0, x20
	bl	_LOOPBACK_EXTERNAL
	cbz	x0, LBB0_2
; %bb.1:
Lloh16:
	adrp	x8, _SPEED_10000@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SPEED_10000@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_MMD_AN,4,2                ; @MDIO_MMD_AN
	.comm	_MDIO_AN_10GBT_CTRL,4,2         ; @MDIO_AN_10GBT_CTRL
	.comm	_MDIO_AN_10GBT_CTRL_ADV10G,4,2  ; @MDIO_AN_10GBT_CTRL_ADV10G
	.comm	_ADVERTISED_10000baseT_Full,4,2 ; @ADVERTISED_10000baseT_Full
	.comm	_MDIO_AN_10GBT_STAT,4,2         ; @MDIO_AN_10GBT_STAT
	.comm	_MDIO_AN_10GBT_STAT_LP10G,4,2   ; @MDIO_AN_10GBT_STAT_LP10G
	.comm	_SPEED_10000,4,2                ; @SPEED_10000
	.no_dead_strip	_tenxpress_get_link_ksettings
.subsections_via_symbols
