	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ice_set_fc                     ## -- Begin function ice_set_fc
	.p2align	4, 0x90
_ice_set_fc:                            ## @ice_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	8(%rdi), %r13
	movq	_ICE_SET_FC_AQ_FAIL_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsi)
	movl	4(%rdi), %eax
	cmpl	$128, %eax
	je	LBB0_6
## %bb.2:
	cmpl	$129, %eax
	je	LBB0_7
## %bb.3:
	xorl	%r15d, %r15d
	cmpl	$130, %eax
	jne	LBB0_9
## %bb.4:
	movq	_ICE_AQC_PHY_EN_TX_LINK_PAUSE@GOTPCREL(%rip), %rax
	movq	_ICE_AQC_PHY_EN_RX_LINK_PAUSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	orl	(%rax), %r15d
	jmp	LBB0_9
LBB0_5:
	movq	_ICE_ERR_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_17
LBB0_6:
	movq	_ICE_AQC_PHY_EN_TX_LINK_PAUSE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_ICE_AQC_PHY_EN_RX_LINK_PAUSE@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %r15d
LBB0_9:
	movq	%r13, %rdi
	callq	_ice_hw_to_dev
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	$28, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	_ICE_AQC_REPORT_SW_CFG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%rax, %rbx
	movq	%rax, %rcx
	xorl	%r8d, %r8d
	callq	_ice_aq_get_phy_caps
	testl	%eax, %eax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_15
## %bb.11:
	movq	_ICE_SET_FC_AQ_FAIL_GET@GOTPCREL(%rip), %rcx
LBB0_12:
	movl	%eax, %r13d
LBB0_13:
	movl	(%rcx), %eax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx)
	jmp	LBB0_16
LBB0_14:
	movq	_ICE_ERR_NO_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_17
LBB0_15:
	movl	(%rbx), %ecx
	movq	_ICE_AQC_PHY_EN_TX_LINK_PAUSE@GOTPCREL(%rip), %rdx
	movq	_ICE_AQC_PHY_EN_RX_LINK_PAUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rdx), %eax
	notl	%eax
	andl	%ecx, %eax
	orl	%r15d, %eax
	movl	%eax, -96(%rbp)
	cmpl	%ecx, %eax
	jne	LBB0_18
LBB0_16:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_ice_hw_to_dev
	movl	%eax, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_devm_kfree
LBB0_17:
	movl	%r13d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	testl	%r14d, %r14d
	je	LBB0_20
## %bb.19:
	movq	_ICE_AQ_PHY_ENA_AUTO_LINK_UPDT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -96(%rbp)
LBB0_20:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	24(%rcx), %eax
	movl	%eax, -72(%rbp)
	movl	20(%rcx), %eax
	movl	%eax, -76(%rbp)
	movups	4(%rcx), %xmm0
	movups	%xmm0, -92(%rbp)
	movl	(%r12), %esi
	xorl	%r13d, %r13d
	leaq	-96(%rbp), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%ecx, %ecx
	callq	_ice_aq_set_phy_cfg
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	movq	_ICE_SET_FC_AQ_FAIL_SET@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_22:
	movq	%r12, %rdi
	callq	_ice_update_link_info
	testl	%eax, %eax
	je	LBB0_16
## %bb.23:
	movl	$100, %edi
	callq	_mdelay
	movq	%r12, %rdi
	callq	_ice_update_link_info
	testl	%eax, %eax
	je	LBB0_16
## %bb.24:
	movl	$100, %edi
	callq	_mdelay
	movq	%r12, %rdi
	callq	_ice_update_link_info
	testl	%eax, %eax
	je	LBB0_16
## %bb.25:
	movl	$100, %edi
	callq	_mdelay
	movq	%r12, %rdi
	callq	_ice_update_link_info
	testl	%eax, %eax
	je	LBB0_16
## %bb.26:
	movl	$100, %edi
	callq	_mdelay
	movq	%r12, %rdi
	callq	_ice_update_link_info
	testl	%eax, %eax
	je	LBB0_16
## %bb.27:
	movl	$100, %edi
	callq	_mdelay
	movq	%r12, %rdi
	callq	_ice_update_link_info
	testl	%eax, %eax
	je	LBB0_16
## %bb.28:
	movl	$100, %edi
	callq	_mdelay
	movq	%r12, %rdi
	callq	_ice_update_link_info
	testl	%eax, %eax
	je	LBB0_16
## %bb.29:
	movl	$100, %edi
	callq	_mdelay
	movq	%r12, %rdi
	callq	_ice_update_link_info
	testl	%eax, %eax
	je	LBB0_16
## %bb.30:
	movl	$100, %edi
	callq	_mdelay
	movq	%r12, %rdi
	callq	_ice_update_link_info
	testl	%eax, %eax
	je	LBB0_16
## %bb.31:
	movl	$100, %edi
	callq	_mdelay
	movq	%r12, %rdi
	callq	_ice_update_link_info
	testl	%eax, %eax
	je	LBB0_16
## %bb.32:
	movl	%eax, %r14d
	movl	$100, %edi
	callq	_mdelay
	movq	_ICE_SET_FC_AQ_FAIL_UPDATE@GOTPCREL(%rip), %rcx
	movl	%r14d, %r13d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_ICE_ERR_PARAM,4,2              ## @ICE_ERR_PARAM
	.comm	_ICE_SET_FC_AQ_FAIL_NONE,4,2    ## @ICE_SET_FC_AQ_FAIL_NONE
	.comm	_ICE_AQC_PHY_EN_TX_LINK_PAUSE,4,2 ## @ICE_AQC_PHY_EN_TX_LINK_PAUSE
	.comm	_ICE_AQC_PHY_EN_RX_LINK_PAUSE,4,2 ## @ICE_AQC_PHY_EN_RX_LINK_PAUSE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ICE_ERR_NO_MEMORY,4,2          ## @ICE_ERR_NO_MEMORY
	.comm	_ICE_AQC_REPORT_SW_CFG,4,2      ## @ICE_AQC_REPORT_SW_CFG
	.comm	_ICE_SET_FC_AQ_FAIL_GET,4,2     ## @ICE_SET_FC_AQ_FAIL_GET
	.comm	_ICE_AQ_PHY_ENA_AUTO_LINK_UPDT,4,2 ## @ICE_AQ_PHY_ENA_AUTO_LINK_UPDT
	.comm	_ICE_SET_FC_AQ_FAIL_SET,4,2     ## @ICE_SET_FC_AQ_FAIL_SET
	.comm	_ICE_SET_FC_AQ_FAIL_UPDATE,4,2  ## @ICE_SET_FC_AQ_FAIL_UPDATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ice_set_fc                     ; -- Begin function ice_set_fc
	.p2align	2
_ice_set_fc:                            ; @ice_set_fc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp]
	cbz	x0, LBB0_5
; %bb.1:
	mov	x23, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x19, [x0, #8]
Lloh0:
	adrp	x8, _ICE_SET_FC_AQ_FAIL_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICE_SET_FC_AQ_FAIL_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x1]
	ldr	w8, [x0, #4]
	cmp	w8, #128
	b.eq	LBB0_6
; %bb.2:
	cmp	w8, #129
	b.eq	LBB0_7
; %bb.3:
	cmp	w8, #130
	b.ne	LBB0_9
; %bb.4:
Lloh3:
	adrp	x8, _ICE_AQC_PHY_EN_TX_LINK_PAUSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ICE_AQC_PHY_EN_TX_LINK_PAUSE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _ICE_AQC_PHY_EN_RX_LINK_PAUSE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ICE_AQC_PHY_EN_RX_LINK_PAUSE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w25, w9, w8
	b	LBB0_10
LBB0_5:
Lloh9:
	adrp	x8, _ICE_ERR_PARAM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ICE_ERR_PARAM@GOTPAGEOFF]
Lloh11:
	ldr	w24, [x8]
	b	LBB0_18
LBB0_6:
Lloh12:
	adrp	x8, _ICE_AQC_PHY_EN_TX_LINK_PAUSE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ICE_AQC_PHY_EN_TX_LINK_PAUSE@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh14:
	adrp	x8, _ICE_AQC_PHY_EN_RX_LINK_PAUSE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ICE_AQC_PHY_EN_RX_LINK_PAUSE@GOTPAGEOFF]
LBB0_8:
	ldr	w25, [x8]
	b	LBB0_10
LBB0_9:
	mov	w25, #0
LBB0_10:
	mov	x0, x19
	bl	_ice_hw_to_dev
Lloh16:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	w1, #28
	bl	_devm_kzalloc
	cbz	x0, LBB0_14
; %bb.11:
	mov	x20, x0
Lloh19:
	adrp	x8, _ICE_AQC_REPORT_SW_CFG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ICE_AQC_REPORT_SW_CFG@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x22
	mov	w1, #0
	mov	x3, x20
	mov	x4, #0
	bl	_ice_aq_get_phy_caps
	cbz	w0, LBB0_15
; %bb.12:
	mov	x24, x0
Lloh22:
	adrp	x8, _ICE_SET_FC_AQ_FAIL_GET@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ICE_SET_FC_AQ_FAIL_GET@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	str	w8, [x21]
	b	LBB0_17
LBB0_14:
Lloh24:
	adrp	x8, _ICE_ERR_NO_MEMORY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ICE_ERR_NO_MEMORY@GOTPAGEOFF]
Lloh26:
	ldr	w24, [x8]
	b	LBB0_18
LBB0_15:
	ldr	w9, [x20]
Lloh27:
	adrp	x8, _ICE_AQC_PHY_EN_TX_LINK_PAUSE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ICE_AQC_PHY_EN_TX_LINK_PAUSE@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x10, _ICE_AQC_PHY_EN_RX_LINK_PAUSE@GOTPAGE
Lloh31:
	ldr	x10, [x10, _ICE_AQC_PHY_EN_RX_LINK_PAUSE@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
	orr	w8, w10, w8
	bic	w8, w9, w8
	orr	w8, w8, w25
	str	w8, [sp]
	cmp	w8, w9
	b.ne	LBB0_19
LBB0_16:
	mov	w24, #0
LBB0_17:
	mov	x0, x19
	bl	_ice_hw_to_dev
	mov	x1, x20
	bl	_devm_kfree
LBB0_18:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_19:
	cbz	w23, LBB0_21
; %bb.20:
Lloh33:
	adrp	x9, _ICE_AQ_PHY_ENA_AUTO_LINK_UPDT@GOTPAGE
Lloh34:
	ldr	x9, [x9, _ICE_AQ_PHY_ENA_AUTO_LINK_UPDT@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [sp]
LBB0_21:
	ldur	d0, [x20, #20]
	stur	d0, [sp, #20]
	ldur	q0, [x20, #4]
	stur	q0, [sp, #4]
	ldr	w1, [x22]
	mov	x2, sp
	mov	x0, x19
	mov	x3, #0
	bl	_ice_aq_set_phy_cfg
	cbz	w0, LBB0_23
; %bb.22:
	mov	x24, x0
Lloh36:
	adrp	x8, _ICE_SET_FC_AQ_FAIL_SET@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ICE_SET_FC_AQ_FAIL_SET@GOTPAGEOFF]
	b	LBB0_13
LBB0_23:
	mov	x0, x22
	bl	_ice_update_link_info
	cbz	w0, LBB0_16
; %bb.24:
	mov	w0, #100
	bl	_mdelay
	mov	x0, x22
	bl	_ice_update_link_info
	cbz	w0, LBB0_16
; %bb.25:
	mov	w0, #100
	bl	_mdelay
	mov	x0, x22
	bl	_ice_update_link_info
	cbz	w0, LBB0_16
; %bb.26:
	mov	w0, #100
	bl	_mdelay
	mov	x0, x22
	bl	_ice_update_link_info
	cbz	w0, LBB0_16
; %bb.27:
	mov	w0, #100
	bl	_mdelay
	mov	x0, x22
	bl	_ice_update_link_info
	cbz	w0, LBB0_16
; %bb.28:
	mov	w0, #100
	bl	_mdelay
	mov	x0, x22
	bl	_ice_update_link_info
	cbz	w0, LBB0_16
; %bb.29:
	mov	w0, #100
	bl	_mdelay
	mov	x0, x22
	bl	_ice_update_link_info
	cbz	w0, LBB0_16
; %bb.30:
	mov	w0, #100
	bl	_mdelay
	mov	x0, x22
	bl	_ice_update_link_info
	cbz	w0, LBB0_16
; %bb.31:
	mov	w0, #100
	bl	_mdelay
	mov	x0, x22
	bl	_ice_update_link_info
	cbz	w0, LBB0_16
; %bb.32:
	mov	w0, #100
	bl	_mdelay
	mov	x0, x22
	bl	_ice_update_link_info
	mov	x24, x0
	cbz	w0, LBB0_17
; %bb.33:
	mov	w0, #100
	bl	_mdelay
Lloh38:
	adrp	x8, _ICE_SET_FC_AQ_FAIL_UPDATE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ICE_SET_FC_AQ_FAIL_UPDATE@GOTPAGEOFF]
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_ICE_ERR_PARAM,4,2              ; @ICE_ERR_PARAM
	.comm	_ICE_SET_FC_AQ_FAIL_NONE,4,2    ; @ICE_SET_FC_AQ_FAIL_NONE
	.comm	_ICE_AQC_PHY_EN_TX_LINK_PAUSE,4,2 ; @ICE_AQC_PHY_EN_TX_LINK_PAUSE
	.comm	_ICE_AQC_PHY_EN_RX_LINK_PAUSE,4,2 ; @ICE_AQC_PHY_EN_RX_LINK_PAUSE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ICE_ERR_NO_MEMORY,4,2          ; @ICE_ERR_NO_MEMORY
	.comm	_ICE_AQC_REPORT_SW_CFG,4,2      ; @ICE_AQC_REPORT_SW_CFG
	.comm	_ICE_SET_FC_AQ_FAIL_GET,4,2     ; @ICE_SET_FC_AQ_FAIL_GET
	.comm	_ICE_AQ_PHY_ENA_AUTO_LINK_UPDT,4,2 ; @ICE_AQ_PHY_ENA_AUTO_LINK_UPDT
	.comm	_ICE_SET_FC_AQ_FAIL_SET,4,2     ; @ICE_SET_FC_AQ_FAIL_SET
	.comm	_ICE_SET_FC_AQ_FAIL_UPDATE,4,2  ; @ICE_SET_FC_AQ_FAIL_UPDATE
.subsections_via_symbols
