	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_mcdi_phy_set_link_ksettings
_efx_mcdi_phy_set_link_ksettings:       ## @efx_mcdi_phy_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	%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, %r14
	movq	%rdi, %r15
	movq	8(%rdi), %r13
	cmpq	$0, 16(%rsi)
	je	LBB0_5
## %bb.1:
	movl	(%r14), %edi
	callq	_ethtool_linkset_to_mcdi_cap
	movl	%eax, %r12d
	movq	_MC_CMD_PHY_CAP_AN_LBN@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsl	%eax, %r12d
	jmp	LBB0_2
LBB0_5:
	cmpq	$0, 24(%r14)
	movl	8(%r14), %eax
	je	LBB0_26
## %bb.6:
	cmpl	$24999, %eax                    ## imm = 0x61A7
	jg	LBB0_14
## %bb.7:
	cmpl	$999, %eax                      ## imm = 0x3E7
	jg	LBB0_11
## %bb.8:
	cmpl	$10, %eax
	je	LBB0_21
## %bb.9:
	cmpl	$100, %eax
	jne	LBB0_32
## %bb.10:
	movq	_MC_CMD_PHY_CAP_100FDX_LBN@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_26:
	cmpl	$1000, %eax                     ## imm = 0x3E8
	je	LBB0_31
## %bb.27:
	cmpl	$100, %eax
	je	LBB0_30
## %bb.28:
	cmpl	$10, %eax
	jne	LBB0_32
## %bb.29:
	movq	_MC_CMD_PHY_CAP_10HDX_LBN@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_14:
	cmpl	$49999, %eax                    ## imm = 0xC34F
	jg	LBB0_18
## %bb.15:
	cmpl	$25000, %eax                    ## imm = 0x61A8
	je	LBB0_24
## %bb.16:
	cmpl	$40000, %eax                    ## imm = 0x9C40
	jne	LBB0_32
## %bb.17:
	movq	_MC_CMD_PHY_CAP_40000FDX_LBN@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_11:
	cmpl	$1000, %eax                     ## imm = 0x3E8
	je	LBB0_23
## %bb.12:
	cmpl	$10000, %eax                    ## imm = 0x2710
	jne	LBB0_32
## %bb.13:
	movq	_MC_CMD_PHY_CAP_10000FDX_LBN@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_18:
	cmpl	$50000, %eax                    ## imm = 0xC350
	je	LBB0_25
## %bb.19:
	cmpl	$100000, %eax                   ## imm = 0x186A0
	jne	LBB0_32
## %bb.20:
	movq	_MC_CMD_PHY_CAP_100000FDX_LBN@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_32:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_35
LBB0_31:
	movq	_MC_CMD_PHY_CAP_1000HDX_LBN@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_30:
	movq	_MC_CMD_PHY_CAP_100HDX_LBN@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_21:
	movq	_MC_CMD_PHY_CAP_10FDX_LBN@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_24:
	movq	_MC_CMD_PHY_CAP_25000FDX_LBN@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_23:
	movq	_MC_CMD_PHY_CAP_1000FDX_LBN@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_25:
	movq	_MC_CMD_PHY_CAP_50000FDX_LBN@GOTPCREL(%rip), %rax
LBB0_22:
	movb	(%rax), %cl
	movl	$1, %r12d
	shll	%cl, %r12d
LBB0_2:
	movl	4(%r15), %edi
	callq	_ethtool_fec_caps_to_mcdi
	movl	%eax, %ebx
	orl	%r12d, %ebx
	movq	%r15, %rdi
	callq	_efx_get_mcdi_phy_flags
	movl	(%r15), %ecx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%r8d, %r8d
	callq	_efx_mcdi_set_link
	testl	%eax, %eax
	jne	LBB0_35
## %bb.3:
	cmpq	$0, 16(%r14)
	je	LBB0_33
## %bb.4:
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_efx_link_set_advertising
	movl	$0, (%r13)
	jmp	LBB0_34
LBB0_33:
	movq	%r15, %rdi
	callq	_efx_link_clear_advertising
	movl	%ebx, (%r13)
LBB0_34:
	xorl	%eax, %eax
LBB0_35:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MC_CMD_PHY_CAP_AN_LBN,4,2      ## @MC_CMD_PHY_CAP_AN_LBN
	.comm	_MC_CMD_PHY_CAP_10FDX_LBN,4,2   ## @MC_CMD_PHY_CAP_10FDX_LBN
	.comm	_MC_CMD_PHY_CAP_100FDX_LBN,4,2  ## @MC_CMD_PHY_CAP_100FDX_LBN
	.comm	_MC_CMD_PHY_CAP_1000FDX_LBN,4,2 ## @MC_CMD_PHY_CAP_1000FDX_LBN
	.comm	_MC_CMD_PHY_CAP_10000FDX_LBN,4,2 ## @MC_CMD_PHY_CAP_10000FDX_LBN
	.comm	_MC_CMD_PHY_CAP_40000FDX_LBN,4,2 ## @MC_CMD_PHY_CAP_40000FDX_LBN
	.comm	_MC_CMD_PHY_CAP_100000FDX_LBN,4,2 ## @MC_CMD_PHY_CAP_100000FDX_LBN
	.comm	_MC_CMD_PHY_CAP_25000FDX_LBN,4,2 ## @MC_CMD_PHY_CAP_25000FDX_LBN
	.comm	_MC_CMD_PHY_CAP_50000FDX_LBN,4,2 ## @MC_CMD_PHY_CAP_50000FDX_LBN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MC_CMD_PHY_CAP_10HDX_LBN,4,2   ## @MC_CMD_PHY_CAP_10HDX_LBN
	.comm	_MC_CMD_PHY_CAP_100HDX_LBN,4,2  ## @MC_CMD_PHY_CAP_100HDX_LBN
	.comm	_MC_CMD_PHY_CAP_1000HDX_LBN,4,2 ## @MC_CMD_PHY_CAP_1000HDX_LBN
	.no_dead_strip	_efx_mcdi_phy_set_link_ksettings
.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_link_ksettings
_efx_mcdi_phy_set_link_ksettings:       ; @efx_mcdi_phy_set_link_ksettings
	.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	x22, [x0, #8]
	ldr	x8, [x1, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x20]
	bl	_ethtool_linkset_to_mcdi_cap
Lloh0:
	adrp	x8, _MC_CMD_PHY_CAP_AN_LBN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MC_CMD_PHY_CAP_AN_LBN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
	orr	w21, w8, w0
	b	LBB0_30
LBB0_2:
	ldr	x9, [x20, #24]
	ldr	w8, [x20, #8]
	cbz	x9, LBB0_8
; %bb.3:
	mov	w9, #24999
	cmp	w8, w9
	b.gt	LBB0_12
; %bb.4:
	cmp	w8, #999
	b.gt	LBB0_16
; %bb.5:
	cmp	w8, #10
	b.eq	LBB0_25
; %bb.6:
	cmp	w8, #100
	b.ne	LBB0_22
; %bb.7:
Lloh3:
	adrp	x8, _MC_CMD_PHY_CAP_100FDX_LBN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MC_CMD_PHY_CAP_100FDX_LBN@GOTPAGEOFF]
	b	LBB0_29
LBB0_8:
	cmp	w8, #1000
	b.eq	LBB0_23
; %bb.9:
	cmp	w8, #100
	b.eq	LBB0_24
; %bb.10:
	cmp	w8, #10
	b.ne	LBB0_22
; %bb.11:
Lloh5:
	adrp	x8, _MC_CMD_PHY_CAP_10HDX_LBN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MC_CMD_PHY_CAP_10HDX_LBN@GOTPAGEOFF]
	b	LBB0_29
LBB0_12:
	mov	w9, #49999
	cmp	w8, w9
	b.gt	LBB0_19
; %bb.13:
	mov	w9, #25000
	cmp	w8, w9
	b.eq	LBB0_26
; %bb.14:
	mov	w9, #40000
	cmp	w8, w9
	b.ne	LBB0_22
; %bb.15:
Lloh7:
	adrp	x8, _MC_CMD_PHY_CAP_40000FDX_LBN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MC_CMD_PHY_CAP_40000FDX_LBN@GOTPAGEOFF]
	b	LBB0_29
LBB0_16:
	cmp	w8, #1000
	b.eq	LBB0_27
; %bb.17:
	mov	w9, #10000
	cmp	w8, w9
	b.ne	LBB0_22
; %bb.18:
Lloh9:
	adrp	x8, _MC_CMD_PHY_CAP_10000FDX_LBN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MC_CMD_PHY_CAP_10000FDX_LBN@GOTPAGEOFF]
	b	LBB0_29
LBB0_19:
	mov	w9, #50000
	cmp	w8, w9
	b.eq	LBB0_28
; %bb.20:
	mov	w9, #34464
	movk	w9, #1, lsl #16
	cmp	w8, w9
	b.ne	LBB0_22
; %bb.21:
Lloh11:
	adrp	x8, _MC_CMD_PHY_CAP_100000FDX_LBN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MC_CMD_PHY_CAP_100000FDX_LBN@GOTPAGEOFF]
	b	LBB0_29
LBB0_22:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_34
LBB0_23:
Lloh16:
	adrp	x8, _MC_CMD_PHY_CAP_1000HDX_LBN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MC_CMD_PHY_CAP_1000HDX_LBN@GOTPAGEOFF]
	b	LBB0_29
LBB0_24:
Lloh18:
	adrp	x8, _MC_CMD_PHY_CAP_100HDX_LBN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MC_CMD_PHY_CAP_100HDX_LBN@GOTPAGEOFF]
	b	LBB0_29
LBB0_25:
Lloh20:
	adrp	x8, _MC_CMD_PHY_CAP_10FDX_LBN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MC_CMD_PHY_CAP_10FDX_LBN@GOTPAGEOFF]
	b	LBB0_29
LBB0_26:
Lloh22:
	adrp	x8, _MC_CMD_PHY_CAP_25000FDX_LBN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MC_CMD_PHY_CAP_25000FDX_LBN@GOTPAGEOFF]
	b	LBB0_29
LBB0_27:
Lloh24:
	adrp	x8, _MC_CMD_PHY_CAP_1000FDX_LBN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MC_CMD_PHY_CAP_1000FDX_LBN@GOTPAGEOFF]
	b	LBB0_29
LBB0_28:
Lloh26:
	adrp	x8, _MC_CMD_PHY_CAP_50000FDX_LBN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MC_CMD_PHY_CAP_50000FDX_LBN@GOTPAGEOFF]
LBB0_29:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w21, w9, w8
LBB0_30:
	ldr	w0, [x19, #4]
	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]
	mov	x0, x19
	mov	x1, x21
	mov	w4, #0
	bl	_efx_mcdi_set_link
	cbnz	w0, LBB0_34
; %bb.31:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_33
; %bb.32:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_efx_link_set_advertising
	mov	w0, #0
	str	wzr, [x22]
	b	LBB0_34
LBB0_33:
	mov	x0, x19
	bl	_efx_link_clear_advertising
	mov	w0, #0
	str	w21, [x22]
LBB0_34:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_MC_CMD_PHY_CAP_AN_LBN,4,2      ; @MC_CMD_PHY_CAP_AN_LBN
	.comm	_MC_CMD_PHY_CAP_10FDX_LBN,4,2   ; @MC_CMD_PHY_CAP_10FDX_LBN
	.comm	_MC_CMD_PHY_CAP_100FDX_LBN,4,2  ; @MC_CMD_PHY_CAP_100FDX_LBN
	.comm	_MC_CMD_PHY_CAP_1000FDX_LBN,4,2 ; @MC_CMD_PHY_CAP_1000FDX_LBN
	.comm	_MC_CMD_PHY_CAP_10000FDX_LBN,4,2 ; @MC_CMD_PHY_CAP_10000FDX_LBN
	.comm	_MC_CMD_PHY_CAP_40000FDX_LBN,4,2 ; @MC_CMD_PHY_CAP_40000FDX_LBN
	.comm	_MC_CMD_PHY_CAP_100000FDX_LBN,4,2 ; @MC_CMD_PHY_CAP_100000FDX_LBN
	.comm	_MC_CMD_PHY_CAP_25000FDX_LBN,4,2 ; @MC_CMD_PHY_CAP_25000FDX_LBN
	.comm	_MC_CMD_PHY_CAP_50000FDX_LBN,4,2 ; @MC_CMD_PHY_CAP_50000FDX_LBN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MC_CMD_PHY_CAP_10HDX_LBN,4,2   ; @MC_CMD_PHY_CAP_10HDX_LBN
	.comm	_MC_CMD_PHY_CAP_100HDX_LBN,4,2  ; @MC_CMD_PHY_CAP_100HDX_LBN
	.comm	_MC_CMD_PHY_CAP_1000HDX_LBN,4,2 ; @MC_CMD_PHY_CAP_1000HDX_LBN
	.no_dead_strip	_efx_mcdi_phy_set_link_ksettings
.subsections_via_symbols
