	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_set_fc                    ## -- Begin function i40e_set_fc
	.p2align	4, 0x90
_i40e_set_fc:                           ## @i40e_set_fc
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	$0, (%rsi)
	leaq	-40(%rbp), %rcx
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_i40e_aq_get_phy_capabilities
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movq	_I40E_SET_FC_AQ_FAIL_GET@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_2:
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_i40e_set_fc_status
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	_I40E_SET_FC_AQ_FAIL_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_4:
	movq	%r15, %rdi
	callq	_i40e_update_link_info
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_msleep
	movq	%r15, %rdi
	callq	_i40e_update_link_info
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movq	_I40E_SET_FC_AQ_FAIL_UPDATE@GOTPCREL(%rip), %rcx
	movl	%eax, %ebx
LBB0_7:
	movl	(%rcx), %eax
	orl	%eax, (%r14)
LBB0_8:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_SET_FC_AQ_FAIL_GET,4,2    ## @I40E_SET_FC_AQ_FAIL_GET
	.comm	_I40E_SET_FC_AQ_FAIL_SET,4,2    ## @I40E_SET_FC_AQ_FAIL_SET
	.comm	_I40E_SET_FC_AQ_FAIL_UPDATE,4,2 ## @I40E_SET_FC_AQ_FAIL_UPDATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_set_fc                    ; -- Begin function i40e_set_fc
	.p2align	2
_i40e_set_fc:                           ; @i40e_set_fc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x19, x1
	mov	x20, x0
	str	wzr, [x1]
	add	x3, sp, #8
	mov	w1, #0
	mov	w2, #0
	mov	x4, #0
	bl	_i40e_aq_get_phy_capabilities
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _I40E_SET_FC_AQ_FAIL_GET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40E_SET_FC_AQ_FAIL_GET@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x21
	bl	_i40e_set_fc_status
	cbz	w0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _I40E_SET_FC_AQ_FAIL_SET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _I40E_SET_FC_AQ_FAIL_SET@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_4:
	mov	x0, x20
	bl	_i40e_update_link_info
	cbz	w0, LBB0_8
; %bb.5:
	mov	w0, #1000
	bl	_msleep
	mov	x0, x20
	bl	_i40e_update_link_info
	cbz	w0, LBB0_8
; %bb.6:
Lloh5:
	adrp	x8, _I40E_SET_FC_AQ_FAIL_UPDATE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I40E_SET_FC_AQ_FAIL_UPDATE@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_SET_FC_AQ_FAIL_GET,4,2    ; @I40E_SET_FC_AQ_FAIL_GET
	.comm	_I40E_SET_FC_AQ_FAIL_SET,4,2    ; @I40E_SET_FC_AQ_FAIL_SET
	.comm	_I40E_SET_FC_AQ_FAIL_UPDATE,4,2 ; @I40E_SET_FC_AQ_FAIL_UPDATE
.subsections_via_symbols
