	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smc_ethtool_set_link_ksettings
_smc_ethtool_set_link_ksettings:        ## @smc_ethtool_set_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	12(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irq
	addq	$16, %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mii_ethtool_set_link_ksettings
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	movl	%ebx, %eax
	jmp	LBB0_10
LBB0_2:
	movq	(%r14), %rax
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.3:
	movq	8(%r14), %rax
	movq	_SPEED_10@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.4:
	movq	16(%r14), %rax
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rdx
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	(%rdx), %rax
	je	LBB0_6
## %bb.5:
	cmpq	%rcx, %rax
	jne	LBB0_8
LBB0_6:
	movq	24(%r14), %rdx
	movq	_PORT_TP@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	je	LBB0_9
## %bb.7:
	movq	_PORT_AUI@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	je	LBB0_9
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	xorl	%edx, %edx
	cmpq	%rcx, %rax
	sete	%dl
	movl	%edx, 8(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_AUTONEG_DISABLE,8,3            ## @AUTONEG_DISABLE
	.comm	_SPEED_10,8,3                   ## @SPEED_10
	.comm	_DUPLEX_HALF,8,3                ## @DUPLEX_HALF
	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.comm	_PORT_TP,8,3                    ## @PORT_TP
	.comm	_PORT_AUI,8,3                   ## @PORT_AUI
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_smc_ethtool_set_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_set_link_ksettings
_smc_ethtool_set_link_ksettings:        ; @smc_ethtool_set_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	x20, x1
	bl	_netdev_priv
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	add	x21, x19, #12
	mov	x0, x21
	bl	_spin_lock_irq
	add	x0, x19, #16
	mov	x1, x20
	bl	_mii_ethtool_set_link_ksettings
	mov	x19, x0
	mov	x0, x21
	bl	_spin_unlock_irq
	mov	x0, x19
	b	LBB0_8
LBB0_2:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _AUTONEG_DISABLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AUTONEG_DISABLE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:
	ldr	x8, [x20, #8]
Lloh3:
	adrp	x9, _SPEED_10@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SPEED_10@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.4:
	ldr	x8, [x20, #16]
Lloh6:
	adrp	x9, _DUPLEX_HALF@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DUPLEX_HALF@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x9]
Lloh9:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x10
	ccmp	x8, x9, #4, ne
	b.ne	LBB0_7
; %bb.5:
	ldr	x10, [x20, #24]
Lloh12:
	adrp	x11, _PORT_TP@GOTPAGE
Lloh13:
	ldr	x11, [x11, _PORT_TP@GOTPAGEOFF]
Lloh14:
	ldr	x11, [x11]
Lloh15:
	adrp	x12, _PORT_AUI@GOTPAGE
Lloh16:
	ldr	x12, [x12, _PORT_AUI@GOTPAGEOFF]
Lloh17:
	ldr	x12, [x12]
	cmp	x10, x11
	ccmp	x10, x12, #4, ne
	b.ne	LBB0_7
; %bb.6:
	mov	w0, #0
	cmp	x8, x9
	cset	w8, eq
	str	w8, [x19, #8]
	b	LBB0_8
LBB0_7:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_AUTONEG_DISABLE,8,3            ; @AUTONEG_DISABLE
	.comm	_SPEED_10,8,3                   ; @SPEED_10
	.comm	_DUPLEX_HALF,8,3                ; @DUPLEX_HALF
	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.comm	_PORT_TP,8,3                    ; @PORT_TP
	.comm	_PORT_AUI,8,3                   ; @PORT_AUI
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_smc_ethtool_set_link_ksettings
.subsections_via_symbols
