	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_force_link_state
_i40e_force_link_state:                 ## @i40e_force_link_state
	.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	%r12
	pushq	%rbx
	subq	$96, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	xorps	%xmm0, %xmm0
	movups	%xmm0, -96(%rbp)
	movq	$0, -80(%rbp)
	leaq	-72(%rbp), %rcx
	xorl	%esi, %esi
	movl	$1, %edx
	xorl	%r8d, %r8d
	callq	_i40e_aq_get_phy_capabilities
	testq	%rax, %rax
	jne	LBB0_1
## %bb.3:
	movq	-72(%rbp), %r12
	leaq	-72(%rbp), %rcx
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_i40e_aq_get_phy_capabilities
	testq	%rax, %rax
	je	LBB0_4
LBB0_1:
	movq	%rax, %rbx
	movq	8(%r14), %r15
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_i40e_stat_str
	movl	%eax, %r12d
	movl	(%r14), %esi
	movq	%r14, %rdi
	callq	_i40e_aq_str
	leaq	L_.str(%rip), %rsi
LBB0_2:
	movq	%r15, %rdi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_dev_err
LBB0_16:
	movq	%rbx, %rax
	addq	$96, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	-72(%rbp), %rcx
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.5:
	cmpq	$0, -64(%rbp)
	je	LBB0_7
## %bb.6:
	testq	%rcx, %rcx
	jne	LBB0_15
LBB0_7:
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.9:
	movq	_I40E_PHY_TYPES_BITMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	-72(%rbp), %rcx
	jmp	LBB0_10
LBB0_8:
	xorl	%eax, %eax
LBB0_10:
	movl	%eax, -80(%rbp)
	movq	$0, -88(%rbp)
	testq	%rcx, %rcx
	cmovneq	%rcx, %r12
	movq	%r12, -120(%rbp)
	movups	-52(%rbp), %xmm0
	movups	%xmm0, -108(%rbp)
	movq	_I40E_AQ_PHY_FEC_CONFIG_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-56(%rbp), %eax
	movl	%eax, -112(%rbp)
	leaq	-120(%rbp), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_i40e_aq_set_phy_config
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%rax, %rbx
	movq	8(%r14), %r15
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_i40e_stat_str
	movl	%eax, %r12d
	movl	(%r14), %esi
	movq	%r14, %rdi
	callq	_i40e_aq_str
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_12:
	movq	%r14, %rdi
	callq	_i40e_update_link_info
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_msleep
	movq	%r14, %rdi
	callq	_i40e_update_link_info
LBB0_14:
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_i40e_aq_set_link_restart_an
LBB0_15:
	movq	_I40E_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to get phy cap., ret =  %s last_status =  %s\n"

	.comm	_I40E_SUCCESS,8,3               ## @I40E_SUCCESS
	.comm	_I40E_PHY_TYPES_BITMASK,4,2     ## @I40E_PHY_TYPES_BITMASK
	.comm	_I40E_AQ_PHY_FEC_CONFIG_MASK,4,2 ## @I40E_AQ_PHY_FEC_CONFIG_MASK
L_.str.1:                               ## @.str.1
	.asciz	"set phy config ret =  %s last_status =  %s\n"

	.no_dead_strip	_i40e_force_link_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_force_link_state
_i40e_force_link_state:                 ; @i40e_force_link_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x21, x1
	mov	x19, x0
	stp	xzr, xzr, [sp, #32]
	str	xzr, [sp, #48]
	add	x3, sp, #56
	mov	w1, #0
	mov	w2, #1
	mov	x4, #0
	bl	_i40e_aq_get_phy_capabilities
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x22, [sp, #56]
	add	x3, sp, #56
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	x4, #0
	bl	_i40e_aq_get_phy_capabilities
	cbz	x0, LBB0_5
LBB0_2:
	mov	x20, x0
	ldr	x21, [x19, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_i40e_stat_str
	mov	x22, x0
	ldr	w1, [x19]
	mov	x0, x19
	bl	_i40e_aq_str
	mov	x3, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
LBB0_3:
	mov	x0, x21
	mov	x2, x22
	bl	_dev_err
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_5:
	ldr	x8, [sp, #56]
	cbz	w21, LBB0_8
; %bb.6:
	ldr	x9, [sp, #64]
	cbz	x9, LBB0_8
; %bb.7:
	cbnz	x8, LBB0_16
LBB0_8:
	cbz	w21, LBB0_10
; %bb.9:
Lloh2:
	adrp	x8, _I40E_PHY_TYPES_BITMASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _I40E_PHY_TYPES_BITMASK@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	ldr	x8, [sp, #56]
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	str	w0, [sp, #48]
	str	xzr, [sp, #40]
	cmp	x8, #0
	csel	x8, x22, x8, eq
	str	x8, [sp, #8]
	ldur	q0, [sp, #76]
	stur	q0, [sp, #20]
	ldr	w8, [sp, #72]
Lloh5:
	adrp	x9, _I40E_AQ_PHY_FEC_CONFIG_MASK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _I40E_AQ_PHY_FEC_CONFIG_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	and	w8, w9, w8
	str	w8, [sp, #16]
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, #0
	bl	_i40e_aq_set_phy_config
	cbz	x0, LBB0_13
; %bb.12:
	mov	x20, x0
	ldr	x21, [x19, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_i40e_stat_str
	mov	x22, x0
	ldr	w1, [x19]
	mov	x0, x19
	bl	_i40e_aq_str
	mov	x3, x0
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_13:
	mov	x0, x19
	bl	_i40e_update_link_info
	cbz	x0, LBB0_15
; %bb.14:
	mov	w0, #1000
	bl	_msleep
	mov	x0, x19
	bl	_i40e_update_link_info
LBB0_15:
	mov	x0, x19
	mov	w1, #1
	mov	x2, #0
	bl	_i40e_aq_set_link_restart_an
LBB0_16:
Lloh10:
	adrp	x8, _I40E_SUCCESS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _I40E_SUCCESS@GOTPAGEOFF]
Lloh12:
	ldr	x20, [x8]
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to get phy cap., ret =  %s last_status =  %s\n"

	.comm	_I40E_SUCCESS,8,3               ; @I40E_SUCCESS
	.comm	_I40E_PHY_TYPES_BITMASK,4,2     ; @I40E_PHY_TYPES_BITMASK
	.comm	_I40E_AQ_PHY_FEC_CONFIG_MASK,4,2 ; @I40E_AQ_PHY_FEC_CONFIG_MASK
l_.str.1:                               ; @.str.1
	.asciz	"set phy config ret =  %s last_status =  %s\n"

	.no_dead_strip	_i40e_force_link_state
.subsections_via_symbols
