	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hclge_cfg_flowctrl             ## -- Begin function hclge_cfg_flowctrl
	.p2align	4, 0x90
_hclge_cfg_flowctrl:                    ## @hclge_cfg_flowctrl
	.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	(%rdi), %rbx
	cmpl	$0, 32(%rbx)
	je	LBB0_7
## %bb.1:
	cmpl	$0, 28(%rbx)
	je	LBB0_7
## %bb.2:
	movq	%rdi, %r14
	movl	24(%rbx), %edi
	callq	_linkmode_adv_to_lcl_adv_t
	xorl	%r15d, %r15d
	cmpq	$0, 16(%rbx)
	movl	$0, %ecx
	je	LBB0_4
## %bb.3:
	movq	_LPA_PAUSE_CAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_4:
	cmpq	$0, 8(%rbx)
	movl	$0, %esi
	je	LBB0_6
## %bb.5:
	movq	_LPA_PAUSE_ASYM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
LBB0_6:
	orl	%ecx, %esi
	movl	%eax, %edi
	callq	_mii_resolve_flowctrl_fdx
	movq	_FLOW_CTRL_TX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%eax, %edx
	movq	_FLOW_CTRL_RX@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	(%rbx), %rcx
	movq	_HCLGE_MAC_HALF@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	cmovel	%r15d, %eax
	cmovel	%r15d, %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hclge_cfg_pauseparam           ## TAILCALL
LBB0_7:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LPA_PAUSE_CAP,4,2              ## @LPA_PAUSE_CAP
	.comm	_LPA_PAUSE_ASYM,4,2             ## @LPA_PAUSE_ASYM
	.comm	_FLOW_CTRL_TX,4,2               ## @FLOW_CTRL_TX
	.comm	_FLOW_CTRL_RX,4,2               ## @FLOW_CTRL_RX
	.comm	_HCLGE_MAC_HALF,8,3             ## @HCLGE_MAC_HALF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hclge_cfg_flowctrl             ; -- Begin function hclge_cfg_flowctrl
	.p2align	2
_hclge_cfg_flowctrl:                    ; @hclge_cfg_flowctrl
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x20, [x0]
	ldr	w8, [x20, #32]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	w8, [x20, #28]
	cbz	w8, LBB0_3
; %bb.2:
	mov	x19, x0
	ldr	w0, [x20, #24]
	bl	_linkmode_adv_to_lcl_adv_t
Lloh0:
	adrp	x8, _LPA_PAUSE_CAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LPA_PAUSE_CAP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	x10, x9, [x20, #8]
	cmp	x9, #0
	csel	w8, wzr, w8, eq
Lloh3:
	adrp	x9, _LPA_PAUSE_ASYM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LPA_PAUSE_ASYM@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	x10, #0
	csel	w9, wzr, w9, eq
	orr	w1, w9, w8
	bl	_mii_resolve_flowctrl_fdx
Lloh6:
	adrp	x8, _FLOW_CTRL_TX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FLOW_CTRL_TX@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh9:
	adrp	x9, _FLOW_CTRL_RX@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FLOW_CTRL_RX@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w9, w9, w0
	ldr	x10, [x20]
Lloh12:
	adrp	x11, _HCLGE_MAC_HALF@GOTPAGE
Lloh13:
	ldr	x11, [x11, _HCLGE_MAC_HALF@GOTPAGEOFF]
Lloh14:
	ldr	x11, [x11]
	cmp	x10, x11
	csel	w1, wzr, w9, eq
	csel	w2, wzr, w8, eq
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_hclge_cfg_pauseparam
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LPA_PAUSE_CAP,4,2              ; @LPA_PAUSE_CAP
	.comm	_LPA_PAUSE_ASYM,4,2             ; @LPA_PAUSE_ASYM
	.comm	_FLOW_CTRL_TX,4,2               ; @FLOW_CTRL_TX
	.comm	_FLOW_CTRL_RX,4,2               ; @FLOW_CTRL_RX
	.comm	_HCLGE_MAC_HALF,8,3             ; @HCLGE_MAC_HALF
.subsections_via_symbols
