	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smc_ethtool_get_link_ksettings
_smc_ethtool_get_link_ksettings:        ## @smc_ethtool_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	leaq	16(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irq
	addq	$20, %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mii_ethtool_get_link_ksettings
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	jmp	LBB0_11
LBB0_2:
	movq	_SUPPORTED_10baseT_Half@GOTPCREL(%rip), %rax
	movq	_SUPPORTED_10baseT_Full@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_SUPPORTED_TP@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_SUPPORTED_AUI@GOTPCREL(%rip), %rax
	movl	8(%rbx), %ecx
	cmpl	$10, %ecx
	je	LBB0_3
## %bb.4:
	cmpl	$100, %ecx
	jne	LBB0_7
## %bb.5:
	movq	_SPEED_100@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_3:
	movq	_SPEED_10@GOTPCREL(%rip), %rcx
LBB0_6:
	movl	(%rcx), %ecx
	movl	%ecx, 28(%r14)
LBB0_7:
	orl	(%rax), %esi
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	$0, 16(%r14)
	movq	_TCR_SWFDUP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	12(%rbx), %eax
	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, 8(%r14)
	movl	(%r14), %edi
	callq	_ethtool_convert_legacy_u32_to_link_mode
LBB0_11:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SUPPORTED_10baseT_Half,4,2     ## @SUPPORTED_10baseT_Half
	.comm	_SUPPORTED_10baseT_Full,4,2     ## @SUPPORTED_10baseT_Full
	.comm	_SUPPORTED_TP,4,2               ## @SUPPORTED_TP
	.comm	_SUPPORTED_AUI,4,2              ## @SUPPORTED_AUI
	.comm	_SPEED_10,4,2                   ## @SPEED_10
	.comm	_SPEED_100,4,2                  ## @SPEED_100
	.comm	_AUTONEG_DISABLE,4,2            ## @AUTONEG_DISABLE
	.comm	_TCR_SWFDUP,4,2                 ## @TCR_SWFDUP
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ## @DUPLEX_HALF
	.no_dead_strip	_smc_ethtool_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 smc_ethtool_get_link_ksettings
_smc_ethtool_get_link_ksettings:        ; @smc_ethtool_get_link_ksettings
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	bl	_netdev_priv
	mov	x20, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	add	x21, x20, #16
	mov	x0, x21
	bl	_spin_lock_irq
	add	x0, x20, #20
	mov	x1, x19
	bl	_mii_ethtool_get_link_ksettings
	mov	x0, x21
	bl	_spin_unlock_irq
	b	LBB0_8
LBB0_2:
Lloh0:
	adrp	x8, _SUPPORTED_10baseT_Half@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SUPPORTED_10baseT_Half@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SUPPORTED_10baseT_Full@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SUPPORTED_10baseT_Full@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _SUPPORTED_TP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SUPPORTED_TP@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _SUPPORTED_AUI@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SUPPORTED_AUI@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w1, w8, w9
	ldr	w8, [x20, #8]
	cmp	w8, #10
	b.eq	LBB0_5
; %bb.3:
	cmp	w8, #100
	b.ne	LBB0_7
; %bb.4:
Lloh12:
	adrp	x8, _SPEED_100@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SPEED_100@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh14:
	adrp	x8, _SPEED_10@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SPEED_10@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	str	w8, [x19, #28]
LBB0_7:
Lloh16:
	adrp	x8, _AUTONEG_DISABLE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AUTONEG_DISABLE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	str	xzr, [x19, #16]
	ldr	w8, [x20, #12]
Lloh19:
	adrp	x9, _TCR_SWFDUP@GOTPAGE
Lloh20:
	ldr	x9, [x9, _TCR_SWFDUP@GOTPAGEOFF]
Lloh21:
	adrp	x10, _DUPLEX_FULL@GOTPAGE
Lloh22:
	ldr	x10, [x10, _DUPLEX_FULL@GOTPAGEOFF]
Lloh23:
	adrp	x11, _DUPLEX_HALF@GOTPAGE
Lloh24:
	ldr	x11, [x11, _DUPLEX_HALF@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	csel	x8, x11, x10, eq
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldr	w0, [x19]
	bl	_ethtool_convert_legacy_u32_to_link_mode
LBB0_8:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 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	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh25
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_SUPPORTED_10baseT_Half,4,2     ; @SUPPORTED_10baseT_Half
	.comm	_SUPPORTED_10baseT_Full,4,2     ; @SUPPORTED_10baseT_Full
	.comm	_SUPPORTED_TP,4,2               ; @SUPPORTED_TP
	.comm	_SUPPORTED_AUI,4,2              ; @SUPPORTED_AUI
	.comm	_SPEED_10,4,2                   ; @SPEED_10
	.comm	_SPEED_100,4,2                  ; @SPEED_100
	.comm	_AUTONEG_DISABLE,4,2            ; @AUTONEG_DISABLE
	.comm	_TCR_SWFDUP,4,2                 ; @TCR_SWFDUP
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ; @DUPLEX_HALF
	.no_dead_strip	_smc_ethtool_get_link_ksettings
.subsections_via_symbols
