	.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
	movq	(%rsi), %rax
	cmpq	(%rdi), %rax
	jne	LBB0_1
## %bb.2:
	movl	32(%rsi), %eax
	andl	36(%rdi), %eax
	movl	%eax, 32(%rsi)
	movq	8(%rsi), %rcx
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r9
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	%r9, %rcx
	je	LBB0_4
## %bb.3:
	cmpq	%rdx, %rcx
	jne	LBB0_1
LBB0_4:
	cmpq	%r9, %rcx
	jne	LBB0_6
## %bb.5:
	testl	%eax, %eax
	jne	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_6:
	movq	16(%rsi), %r8
	cmpq	%rdx, %rcx
	jne	LBB0_12
## %bb.7:
	movq	_SPEED_1000@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %r8
	je	LBB0_10
## %bb.8:
	movq	_SPEED_100@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %r8
	je	LBB0_10
## %bb.9:
	movq	_SPEED_10@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %r8
	jne	LBB0_1
LBB0_10:
	movq	24(%rsi), %r10
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %r10
	je	LBB0_12
## %bb.11:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %r10
	jne	LBB0_1
LBB0_12:
	movq	%rcx, 8(%rdi)
	movq	%r8, 16(%rdi)
	movq	_ADVERTISED_Autoneg@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, %r8d
	notl	%r8d
	andl	%eax, %r8d
	orl	%eax, %edx
	cmpq	%r9, %rcx
	cmovnel	%r8d, %edx
	movl	%edx, 32(%rdi)
	movq	24(%rsi), %rax
	movq	%rax, 24(%rdi)
	callq	_phy_start_aneg
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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	_ADVERTISED_Autoneg,4,2         ## @ADVERTISED_Autoneg
.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	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x1]
	ldr	x9, [x0]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.1:
	ldr	w8, [x0, #36]
	ldr	w9, [x1, #32]
	and	w8, w9, w8
	str	w8, [x1, #32]
	ldr	x9, [x1, #8]
Lloh0:
	adrp	x10, _AUTONEG_ENABLE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
Lloh3:
	adrp	x11, _AUTONEG_DISABLE@GOTPAGE
Lloh4:
	ldr	x11, [x11, _AUTONEG_DISABLE@GOTPAGEOFF]
Lloh5:
	ldr	x12, [x11]
	cmp	x9, x10
	ccmp	x9, x12, #4, ne
	b.ne	LBB0_7
; %bb.2:
	cmp	x9, x10
	ccmp	w8, #0, #0, eq
	b.eq	LBB0_7
; %bb.3:
	ldr	x11, [x1, #16]
	cmp	x9, x12
	b.ne	LBB0_8
; %bb.4:
Lloh6:
	adrp	x12, _SPEED_1000@GOTPAGE
Lloh7:
	ldr	x12, [x12, _SPEED_1000@GOTPAGEOFF]
Lloh8:
	ldr	x12, [x12]
Lloh9:
	adrp	x13, _SPEED_100@GOTPAGE
Lloh10:
	ldr	x13, [x13, _SPEED_100@GOTPAGEOFF]
Lloh11:
	ldr	x13, [x13]
Lloh12:
	adrp	x14, _SPEED_10@GOTPAGE
Lloh13:
	ldr	x14, [x14, _SPEED_10@GOTPAGEOFF]
Lloh14:
	ldr	x14, [x14]
	cmp	x11, x12
	ccmp	x11, x13, #4, ne
	ccmp	x11, x14, #4, ne
	b.ne	LBB0_7
; %bb.5:
	ldr	x12, [x1, #24]
Lloh15:
	adrp	x13, _DUPLEX_HALF@GOTPAGE
Lloh16:
	ldr	x13, [x13, _DUPLEX_HALF@GOTPAGEOFF]
Lloh17:
	ldr	x13, [x13]
	cmp	x12, x13
	b.eq	LBB0_8
; %bb.6:
Lloh18:
	adrp	x13, _DUPLEX_FULL@GOTPAGE
Lloh19:
	ldr	x13, [x13, _DUPLEX_FULL@GOTPAGEOFF]
Lloh20:
	ldr	x13, [x13]
	cmp	x12, x13
	b.eq	LBB0_8
LBB0_7:
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_8:
	stp	x9, x11, [x0, #8]
Lloh24:
	adrp	x11, _ADVERTISED_Autoneg@GOTPAGE
Lloh25:
	ldr	x11, [x11, _ADVERTISED_Autoneg@GOTPAGEOFF]
Lloh26:
	ldr	w11, [x11]
	bic	w12, w8, w11
	orr	w8, w11, w8
	cmp	x9, x10
	csel	w8, w8, w12, eq
	str	w8, [x0, #32]
	ldr	x8, [x1, #24]
	str	x8, [x0, #24]
	bl	_phy_start_aneg
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.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	_ADVERTISED_Autoneg,4,2         ; @ADVERTISED_Autoneg
.subsections_via_symbols
