	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phy_ethtool_sset               ## -- Begin function phy_ethtool_sset
	.p2align	4, 0x90
_phy_ethtool_sset:                      ## @phy_ethtool_sset
	.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, %rbx
	movq	%rdi, %r14
	movq	_advertising@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	___ETHTOOL_DECLARE_LINK_MODE_MASK
	movq	%rbx, %rdi
	callq	_ethtool_cmd_speed
	movq	%rax, %r15
	movq	(%rbx), %rax
	cmpq	40(%r14), %rax
	jne	LBB0_1
## %bb.2:
	movl	(%r12), %edi
	movq	8(%rbx), %rsi
	callq	_ethtool_convert_legacy_u32_to_link_mode
	movl	(%r12), %edi
	movl	32(%r14), %edx
	movl	%edi, %esi
	callq	_linkmode_and
	movq	16(%rbx), %rax
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %r13
	movq	(%r13), %rdx
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rdx, %rax
	je	LBB0_4
## %bb.3:
	cmpq	%rcx, %rax
	je	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	cmpq	%rdx, %rax
	jne	LBB0_6
## %bb.5:
	cmpq	$0, 8(%rbx)
	je	LBB0_1
LBB0_6:
	cmpq	%rcx, %rax
	jne	LBB0_12
## %bb.7:
	movq	_SPEED_1000@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r15
	je	LBB0_10
## %bb.8:
	movq	_SPEED_100@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r15
	je	LBB0_10
## %bb.9:
	movq	_SPEED_10@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r15
	jne	LBB0_1
LBB0_10:
	movq	24(%rbx), %rcx
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_12
## %bb.11:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_1
LBB0_12:
	movq	%rax, (%r14)
	movq	%r15, 24(%r14)
	movl	20(%r14), %edi
	movl	(%r12), %esi
	callq	_linkmode_copy
	movq	_ETHTOOL_LINK_MODE_Autoneg_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	20(%r14), %esi
	movq	(%r13), %rax
	xorl	%edx, %edx
	cmpq	16(%rbx), %rax
	sete	%dl
	callq	_linkmode_mod_bit
	movq	24(%rbx), %rax
	movq	%rax, 8(%r14)
	movl	32(%rbx), %eax
	movl	%eax, 16(%r14)
	movq	%r14, %rdi
	callq	_phy_start_aneg
	xorl	%eax, %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_advertising,4,2                ## @advertising
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AUTONEG_ENABLE,8,3             ## @AUTONEG_ENABLE
	.comm	_AUTONEG_DISABLE,8,3            ## @AUTONEG_DISABLE
	.comm	_SPEED_1000,8,3                 ## @SPEED_1000
	.comm	_SPEED_100,8,3                  ## @SPEED_100
	.comm	_SPEED_10,8,3                   ## @SPEED_10
	.comm	_DUPLEX_HALF,8,3                ## @DUPLEX_HALF
	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.comm	_ETHTOOL_LINK_MODE_Autoneg_BIT,4,2 ## @ETHTOOL_LINK_MODE_Autoneg_BIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phy_ethtool_sset               ; -- Begin function phy_ethtool_sset
	.p2align	2
_phy_ethtool_sset:                      ; @phy_ethtool_sset
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _advertising@GOTPAGE
Lloh1:
	ldr	x22, [x22, _advertising@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	___ETHTOOL_DECLARE_LINK_MODE_MASK
	mov	x0, x20
	bl	_ethtool_cmd_speed
	ldr	x8, [x20]
	ldr	x9, [x19, #40]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.1:
	mov	x21, x0
	ldr	w0, [x22]
	ldr	x1, [x20, #8]
	bl	_ethtool_convert_legacy_u32_to_link_mode
	ldr	w0, [x22]
	ldr	w2, [x19, #32]
	mov	x1, x0
	bl	_linkmode_and
	ldr	x8, [x20, #16]
Lloh2:
	adrp	x23, _AUTONEG_ENABLE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _AUTONEG_ENABLE@GOTPAGEOFF]
	ldr	x10, [x23]
Lloh4:
	adrp	x9, _AUTONEG_DISABLE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _AUTONEG_DISABLE@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x10
	ccmp	x8, x9, #4, ne
	b.ne	LBB0_8
; %bb.2:
	cmp	x8, x10
	b.ne	LBB0_4
; %bb.3:
	ldr	x10, [x20, #8]
	cbz	x10, LBB0_8
LBB0_4:
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.5:
Lloh7:
	adrp	x9, _SPEED_1000@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SPEED_1000@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
Lloh10:
	adrp	x10, _SPEED_100@GOTPAGE
Lloh11:
	ldr	x10, [x10, _SPEED_100@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
Lloh13:
	adrp	x11, _SPEED_10@GOTPAGE
Lloh14:
	ldr	x11, [x11, _SPEED_10@GOTPAGEOFF]
Lloh15:
	ldr	x11, [x11]
	cmp	x21, x9
	ccmp	x21, x10, #4, ne
	ccmp	x21, x11, #4, ne
	b.ne	LBB0_8
; %bb.6:
	ldr	x9, [x20, #24]
Lloh16:
	adrp	x10, _DUPLEX_HALF@GOTPAGE
Lloh17:
	ldr	x10, [x10, _DUPLEX_HALF@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_10
; %bb.7:
Lloh19:
	adrp	x10, _DUPLEX_FULL@GOTPAGE
Lloh20:
	ldr	x10, [x10, _DUPLEX_FULL@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_10
LBB0_8:
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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
LBB0_10:
	str	x8, [x19]
	str	x21, [x19, #24]
	ldr	w0, [x19, #20]
	ldr	w1, [x22]
	bl	_linkmode_copy
Lloh25:
	adrp	x8, _ETHTOOL_LINK_MODE_Autoneg_BIT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ETHTOOL_LINK_MODE_Autoneg_BIT@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	ldr	w1, [x19, #20]
	ldr	x8, [x23]
	ldr	x9, [x20, #16]
	cmp	x8, x9
	cset	w2, eq
	bl	_linkmode_mod_bit
	ldr	x8, [x20, #24]
	str	x8, [x19, #8]
	ldr	w8, [x20, #32]
	str	w8, [x19, #16]
	mov	x0, x19
	bl	_phy_start_aneg
	mov	w0, #0
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_advertising,4,2                ; @advertising
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AUTONEG_ENABLE,8,3             ; @AUTONEG_ENABLE
	.comm	_AUTONEG_DISABLE,8,3            ; @AUTONEG_DISABLE
	.comm	_SPEED_1000,8,3                 ; @SPEED_1000
	.comm	_SPEED_100,8,3                  ; @SPEED_100
	.comm	_SPEED_10,8,3                   ; @SPEED_10
	.comm	_DUPLEX_HALF,8,3                ; @DUPLEX_HALF
	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.comm	_ETHTOOL_LINK_MODE_Autoneg_BIT,4,2 ; @ETHTOOL_LINK_MODE_Autoneg_BIT
.subsections_via_symbols
