	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ef4_mdio_set_link_ksettings    ## -- Begin function ef4_mdio_set_link_ksettings
	.p2align	4, 0x90
_ef4_mdio_set_link_ksettings:           ## @ef4_mdio_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	%r14
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movq	_ETHTOOL_GLINKSETTINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	(%rdi), %rax
	leaq	-80(%rbp), %rsi
	callq	*(%rax)
	movl	44(%rbx), %esi
	leaq	-24(%rbp), %rdi
	callq	_ethtool_convert_link_mode_to_legacy_u32
	movl	-36(%rbp), %esi
	leaq	-28(%rbp), %rdi
	callq	_ethtool_convert_link_mode_to_legacy_u32
	movl	-40(%rbp), %esi
	leaq	-20(%rbp), %rdi
	callq	_ethtool_convert_link_mode_to_legacy_u32
	movl	-24(%rbp), %esi
	cmpl	-28(%rbp), %esi
	jne	LBB0_5
## %bb.1:
	movq	(%rbx), %rax
	cmpq	-80(%rbp), %rax
	jne	LBB0_5
## %bb.2:
	movq	8(%rbx), %rax
	cmpq	-72(%rbp), %rax
	jne	LBB0_5
## %bb.3:
	movq	16(%rbx), %rax
	cmpq	-64(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	movq	24(%rbx), %rcx
	xorl	%eax, %eax
	cmpq	-56(%rbp), %rcx
	je	LBB0_11
LBB0_5:
	movq	-64(%rbp), %rax
	movq	_PORT_TP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	cmpq	%rax, 16(%rbx)
	jne	LBB0_7
## %bb.8:
	cmpq	$0, 24(%rbx)
	je	LBB0_7
## %bb.9:
	movq	_SUPPORTED_Autoneg@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%esi, %eax
	movl	-20(%rbp), %ecx
	notl	%ecx
	testl	%ecx, %eax
	je	LBB0_10
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$64, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_10:
	movq	_ADVERTISED_Autoneg@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ef4_link_set_advertising
	movq	%r14, %rdi
	callq	_ef4_mdio_an_reconfigure
	xorl	%eax, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_ETHTOOL_GLINKSETTINGS,4,2      ## @ETHTOOL_GLINKSETTINGS
	.comm	_PORT_TP,8,3                    ## @PORT_TP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SUPPORTED_Autoneg,4,2          ## @SUPPORTED_Autoneg
	.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	_ef4_mdio_set_link_ksettings    ; -- Begin function ef4_mdio_set_link_ksettings
	.p2align	2
_ef4_mdio_set_link_ksettings:           ; @ef4_mdio_set_link_ksettings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #32]
	str	q0, [sp, #16]
Lloh0:
	adrp	x8, _ETHTOOL_GLINKSETTINGS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETHTOOL_GLINKSETTINGS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #48]
	ldr	x8, [x0]
	ldr	x8, [x8]
	add	x1, sp, #16
	blr	x8
	ldr	w1, [x20, #44]
	add	x0, sp, #8
	bl	_ethtool_convert_link_mode_to_legacy_u32
	ldr	w1, [sp, #60]
	add	x0, sp, #12
	bl	_ethtool_convert_link_mode_to_legacy_u32
	ldr	w1, [sp, #56]
	add	x0, sp, #4
	bl	_ethtool_convert_link_mode_to_legacy_u32
	ldp	w8, w9, [sp, #8]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.1:
	ldr	x9, [x20]
	ldr	x10, [sp, #16]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.2:
	ldr	x9, [x20, #8]
	ldr	x10, [sp, #24]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.3:
	ldr	x9, [x20, #16]
	ldr	x10, [sp, #32]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.4:
	ldr	x9, [x20, #24]
	ldr	x10, [sp, #40]
	cmp	x9, x10
	b.eq	LBB0_12
LBB0_5:
	ldr	x9, [sp, #32]
Lloh3:
	adrp	x10, _PORT_TP@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PORT_TP@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_9
; %bb.6:
	ldr	x10, [x20, #16]
	cmp	x10, x9
	b.ne	LBB0_9
; %bb.7:
	ldr	x9, [x20, #24]
	cbz	x9, LBB0_9
; %bb.8:
Lloh6:
	adrp	x9, _SUPPORTED_Autoneg@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SUPPORTED_Autoneg@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w9, w9, w8
	ldr	w10, [sp, #4]
	bics	wzr, w9, w10
	b.eq	LBB0_11
LBB0_9:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_11:
Lloh12:
	adrp	x9, _ADVERTISED_Autoneg@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ADVERTISED_Autoneg@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_ef4_link_set_advertising
	mov	x0, x19
	bl	_ef4_mdio_an_reconfigure
LBB0_12:
	mov	w0, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ETHTOOL_GLINKSETTINGS,4,2      ; @ETHTOOL_GLINKSETTINGS
	.comm	_PORT_TP,8,3                    ; @PORT_TP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SUPPORTED_Autoneg,4,2          ; @SUPPORTED_Autoneg
	.comm	_ADVERTISED_Autoneg,4,2         ; @ADVERTISED_Autoneg
.subsections_via_symbols
