	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_mcdi_phy_set_fecparam
_efx_mcdi_phy_set_fecparam:             ## @efx_mcdi_phy_set_fecparam
	.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
	movq	%rdi, %r15
	movq	16(%rdi), %rbx
	movq	_ETHTOOL_LINK_MODE_Autoneg_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r15), %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	8(%r15), %edi
	callq	_ethtool_linkset_to_mcdi_cap
	movl	%eax, %ebx
	movq	_MC_CMD_PHY_CAP_AN_LBN@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsl	%eax, %ebx
	jmp	LBB0_3
LBB0_2:
	movl	(%rbx), %ebx
LBB0_3:
	movl	(%r14), %edi
	callq	_ethtool_fec_caps_to_mcdi
	orl	%eax, %ebx
	movq	%r15, %rdi
	callq	_efx_get_mcdi_phy_flags
	movl	4(%r15), %ecx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%r8d, %r8d
	callq	_efx_mcdi_set_link
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movl	(%r14), %ecx
	movl	%ecx, (%r15)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETHTOOL_LINK_MODE_Autoneg_BIT,4,2 ## @ETHTOOL_LINK_MODE_Autoneg_BIT
	.comm	_MC_CMD_PHY_CAP_AN_LBN,4,2      ## @MC_CMD_PHY_CAP_AN_LBN
	.no_dead_strip	_efx_mcdi_phy_set_fecparam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efx_mcdi_phy_set_fecparam
_efx_mcdi_phy_set_fecparam:             ; @efx_mcdi_phy_set_fecparam
	.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
	mov	x19, x0
	ldr	x21, [x0, #16]
Lloh0:
	adrp	x8, _ETHTOOL_LINK_MODE_Autoneg_BIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETHTOOL_LINK_MODE_Autoneg_BIT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x19, #8]
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #8]
	bl	_ethtool_linkset_to_mcdi_cap
Lloh3:
	adrp	x8, _MC_CMD_PHY_CAP_AN_LBN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MC_CMD_PHY_CAP_AN_LBN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
	orr	w21, w8, w0
	b	LBB0_3
LBB0_2:
	ldr	w21, [x21]
LBB0_3:
	ldr	w0, [x20]
	bl	_ethtool_fec_caps_to_mcdi
	orr	w21, w0, w21
	mov	x0, x19
	bl	_efx_get_mcdi_phy_flags
	mov	x2, x0
	ldr	w3, [x19, #4]
	mov	x0, x19
	mov	x1, x21
	mov	w4, #0
	bl	_efx_mcdi_set_link
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	w8, [x20]
	str	w8, [x19]
LBB0_5:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_ETHTOOL_LINK_MODE_Autoneg_BIT,4,2 ; @ETHTOOL_LINK_MODE_Autoneg_BIT
	.comm	_MC_CMD_PHY_CAP_AN_LBN,4,2      ; @MC_CMD_PHY_CAP_AN_LBN
	.no_dead_strip	_efx_mcdi_phy_set_fecparam
.subsections_via_symbols
