	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phylink_ethtool_ksettings_set  ## -- Begin function phylink_ethtool_ksettings_set
	.p2align	4, 0x90
_phylink_ethtool_ksettings_set:         ## @phylink_ethtool_ksettings_set
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	_support@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	___ETHTOOL_DECLARE_LINK_MODE_MASK
	xorl	%eax, %eax
	callq	_ASSERT_RTNL
	movq	(%r13), %rax
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
LBB0_2:
	movl	(%r14), %edi
	movl	64(%r15), %esi
	callq	_linkmode_copy
	leaq	16(%r15), %rbx
	movups	16(%r15), %xmm0
	movups	32(%r15), %xmm1
	movaps	%xmm1, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movl	-52(%rbp), %r12d
	movl	24(%r13), %esi
	movl	(%r14), %edx
	movl	%r12d, %edi
	callq	_linkmode_and
	movq	(%r13), %rax
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.3:
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	8(%r13), %rsi
	movq	16(%r13), %rdi
	movl	(%r14), %edx
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	callq	_phy_lookup_setting
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	(%r15), %rdx
	movq	_MLO_AN_FIXED@GOTPCREL(%rip), %rsi
	movq	8(%rax), %rcx
	cmpq	(%rsi), %rdx
	jne	LBB0_10
## %bb.5:
	cmpq	32(%r15), %rcx
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_13
## %bb.6:
	movq	(%rax), %rax
	cmpq	(%rbx), %rax
	je	LBB0_11
	jmp	LBB0_13
LBB0_7:
	movq	(%r15), %rax
	movq	_MLO_AN_FIXED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.8:
	movq	_SPEED_UNKNOWN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movq	_DUPLEX_UNKNOWN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)
	movl	$1, -72(%rbp)
	movq	_ETHTOOL_LINK_MODE_Autoneg_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	___set_bit
	jmp	LBB0_12
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_10:
	movq	(%rax), %rax
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
LBB0_11:
	movq	%rcx, -64(%rbp)
	movq	%rax, -80(%rbp)
	movl	$0, -72(%rbp)
	movq	_ETHTOOL_LINK_MODE_Autoneg_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	___clear_bit
LBB0_12:
	movl	(%r14), %esi
	leaq	-80(%rbp), %rdx
	movq	%r15, %rdi
	callq	_phylink_validate
	testq	%rax, %rax
	je	LBB0_16
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_14:
	subl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	cmpl	$0, -72(%rbp)
	je	LBB0_18
## %bb.17:
	movl	-52(%rbp), %edi
	callq	_phylink_is_empty_linkmode
	testq	%rax, %rax
	jne	LBB0_13
LBB0_18:
	movq	%rbx, %r14
	movups	(%r13), %xmm0
	movups	16(%r13), %xmm1
	movaps	%xmm1, -112(%rbp)
	movaps	%xmm0, -128(%rbp)
	movl	-104(%rbp), %edi
	movl	-52(%rbp), %esi
	callq	_linkmode_copy
	movq	-80(%rbp), %rax
	movq	-64(%rbp), %rcx
	movq	%rcx, -112(%rbp)
	movq	%rax, -120(%rbp)
	movq	56(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.19:
	leaq	-128(%rbp), %rsi
	callq	_phy_ethtool_ksettings_set
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
LBB0_20:
	leaq	8(%r15), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movl	44(%r15), %edi
	movl	-104(%rbp), %esi
	callq	_linkmode_copy
	movl	-56(%rbp), %eax
	movl	%eax, 40(%r15)
	movq	-112(%rbp), %rax
	movq	%rax, 32(%r15)
	movq	-120(%rbp), %rax
	movq	%rax, 16(%r15)
	movq	-128(%rbp), %rax
	xorl	%ecx, %ecx
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	setne	%cl
	movl	%ecx, 24(%r15)
	movq	_PHYLINK_DISABLE_STOPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	48(%r15), %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_22
## %bb.21:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_phylink_mac_config
	movq	%r15, %rdi
	callq	_phylink_mac_an_restart
LBB0_22:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	xorl	%ebx, %ebx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_support,4,2                    ## @support
	.comm	_AUTONEG_DISABLE,8,3            ## @AUTONEG_DISABLE
	.comm	_AUTONEG_ENABLE,8,3             ## @AUTONEG_ENABLE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MLO_AN_FIXED,8,3               ## @MLO_AN_FIXED
	.comm	_ETHTOOL_LINK_MODE_Autoneg_BIT,4,2 ## @ETHTOOL_LINK_MODE_Autoneg_BIT
	.comm	_SPEED_UNKNOWN,8,3              ## @SPEED_UNKNOWN
	.comm	_DUPLEX_UNKNOWN,8,3             ## @DUPLEX_UNKNOWN
	.comm	_PHYLINK_DISABLE_STOPPED,4,2    ## @PHYLINK_DISABLE_STOPPED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phylink_ethtool_ksettings_set  ; -- Begin function phylink_ethtool_ksettings_set
	.p2align	2
_phylink_ethtool_ksettings_set:         ; @phylink_ethtool_ksettings_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x24, _support@GOTPAGE
Lloh1:
	ldr	x24, [x24, _support@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	___ETHTOOL_DECLARE_LINK_MODE_MASK
	bl	_ASSERT_RTNL
	ldr	x8, [x21]
Lloh2:
	adrp	x23, _AUTONEG_DISABLE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _AUTONEG_DISABLE@GOTPAGEOFF]
	ldr	x9, [x23]
Lloh4:
	adrp	x10, _AUTONEG_ENABLE@GOTPAGE
Lloh5:
	ldr	x10, [x10, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh6:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_11
; %bb.1:
	ldr	w0, [x24]
	ldr	w1, [x19, #64]
	bl	_linkmode_copy
	add	x20, x19, #16
	ldp	q1, q0, [x19, #16]
	stp	q1, q0, [sp]
	ldr	w22, [sp, #28]
	ldr	w1, [x21, #24]
	ldr	w2, [x24]
	mov	x0, x22
	bl	_linkmode_and
	ldr	x8, [x21]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
	ldp	x1, x0, [x21, #8]
	ldr	w2, [x24]
	mov	w3, #0
	bl	_phy_lookup_setting
	cbz	x0, LBB0_11
; %bb.3:
	ldr	x9, [x19]
Lloh7:
	adrp	x8, _MLO_AN_FIXED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MLO_AN_FIXED@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x8]
	ldr	x8, [x0, #8]
	cmp	x9, x10
	b.ne	LBB0_8
; %bb.4:
	ldr	x9, [x19, #32]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.5:
	ldr	x9, [x0]
	ldr	x10, [x20]
	cmp	x9, x10
	b.eq	LBB0_9
	b	LBB0_11
LBB0_6:
	ldr	x8, [x19]
Lloh10:
	adrp	x9, _MLO_AN_FIXED@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MLO_AN_FIXED@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_11
; %bb.7:
Lloh13:
	adrp	x8, _SPEED_UNKNOWN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SPEED_UNKNOWN@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	str	x8, [sp, #16]
Lloh16:
	adrp	x8, _DUPLEX_UNKNOWN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DUPLEX_UNKNOWN@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	str	x8, [sp]
	mov	w8, #1
	str	w8, [sp, #8]
Lloh19:
	adrp	x8, _ETHTOOL_LINK_MODE_Autoneg_BIT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ETHTOOL_LINK_MODE_Autoneg_BIT@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	mov	x1, x22
	bl	___set_bit
	b	LBB0_10
LBB0_8:
	ldr	x9, [x0]
LBB0_9:
	str	x8, [sp, #16]
	str	x9, [sp]
	str	wzr, [sp, #8]
Lloh22:
	adrp	x8, _ETHTOOL_LINK_MODE_Autoneg_BIT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ETHTOOL_LINK_MODE_Autoneg_BIT@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	mov	x1, x22
	bl	___clear_bit
LBB0_10:
	ldr	w1, [x24]
	mov	x2, sp
	mov	x0, x19
	bl	_phylink_validate
	cbz	x0, LBB0_13
LBB0_11:
Lloh25:
	adrp	x8, _EINVAL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_13:
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_15
; %bb.14:
	ldr	w0, [sp, #28]
	bl	_phylink_is_empty_linkmode
	cbnz	x0, LBB0_11
LBB0_15:
	ldp	q1, q0, [x21]
	stp	q1, q0, [sp, #32]
	ldr	w0, [sp, #56]
	ldr	w1, [sp, #28]
	bl	_linkmode_copy
	ldr	x8, [sp, #16]
	ldr	x9, [sp]
	stp	x9, x8, [sp, #40]
	ldr	x0, [x19, #56]
	cbz	x0, LBB0_17
; %bb.16:
	add	x1, sp, #32
	bl	_phy_ethtool_ksettings_set
	cbnz	w0, LBB0_12
LBB0_17:
	add	x21, x19, #8
	mov	x0, x21
	bl	_mutex_lock
	ldr	w0, [x19, #44]
	ldr	w1, [sp, #56]
	bl	_linkmode_copy
	ldr	w8, [sp, #24]
	str	w8, [x19, #40]
	ldr	x8, [sp, #48]
	str	x8, [x19, #32]
	ldp	x9, x8, [sp, #32]
	str	x8, [x19, #16]
	ldr	x8, [x23]
	cmp	x9, x8
	cset	w8, ne
	str	w8, [x19, #24]
Lloh28:
	adrp	x8, _PHYLINK_DISABLE_STOPPED@GOTPAGE
Lloh29:
	ldr	x8, [x8, _PHYLINK_DISABLE_STOPPED@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	add	x1, x19, #48
	bl	_test_bit
	cbnz	w0, LBB0_19
; %bb.18:
	mov	x0, x19
	mov	x1, x20
	bl	_phylink_mac_config
	mov	x0, x19
	bl	_phylink_mac_an_restart
LBB0_19:
	mov	x0, x21
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_support,4,2                    ; @support
	.comm	_AUTONEG_DISABLE,8,3            ; @AUTONEG_DISABLE
	.comm	_AUTONEG_ENABLE,8,3             ; @AUTONEG_ENABLE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MLO_AN_FIXED,8,3               ; @MLO_AN_FIXED
	.comm	_ETHTOOL_LINK_MODE_Autoneg_BIT,4,2 ; @ETHTOOL_LINK_MODE_Autoneg_BIT
	.comm	_SPEED_UNKNOWN,8,3              ; @SPEED_UNKNOWN
	.comm	_DUPLEX_UNKNOWN,8,3             ; @DUPLEX_UNKNOWN
	.comm	_PHYLINK_DISABLE_STOPPED,4,2    ; @PHYLINK_DISABLE_STOPPED
.subsections_via_symbols
