	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_update_port_capability
_hclge_update_port_capability:          ## @hclge_update_port_capability
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_hclge_convert_setting_fec
	movq	(%rbx), %rax
	movq	_HNAE3_MEDIA_TYPE_BACKPLANE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	8(%rbx), %rcx
	movq	_HNAE3_MODULE_TYPE_UNKNOWN@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_3
## %bb.2:
	movq	_HNAE3_MODULE_TYPE_KR@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_HNAE3_MEDIA_TYPE_COPPER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	movq	_HNAE3_MODULE_TYPE_TP@GOTPCREL(%rip), %rax
LBB0_5:
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
LBB0_6:
	movl	24(%rbx), %esi
	cmpl	$1, 16(%rbx)
	movq	_ETHTOOL_LINK_MODE_Autoneg_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	jne	LBB0_8
## %bb.7:
	callq	_linkmode_set_bit
	movl	20(%rbx), %edi
	movl	24(%rbx), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_linkmode_copy                  ## TAILCALL
LBB0_8:
	callq	_linkmode_clear_bit
	movl	20(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_linkmode_zero                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HNAE3_MEDIA_TYPE_BACKPLANE,8,3 ## @HNAE3_MEDIA_TYPE_BACKPLANE
	.comm	_HNAE3_MODULE_TYPE_UNKNOWN,8,3  ## @HNAE3_MODULE_TYPE_UNKNOWN
	.comm	_HNAE3_MODULE_TYPE_KR,8,3       ## @HNAE3_MODULE_TYPE_KR
	.comm	_HNAE3_MEDIA_TYPE_COPPER,8,3    ## @HNAE3_MEDIA_TYPE_COPPER
	.comm	_HNAE3_MODULE_TYPE_TP,8,3       ## @HNAE3_MODULE_TYPE_TP
	.comm	_ETHTOOL_LINK_MODE_Autoneg_BIT,4,2 ## @ETHTOOL_LINK_MODE_Autoneg_BIT
	.no_dead_strip	_hclge_update_port_capability
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_update_port_capability
_hclge_update_port_capability:          ; @hclge_update_port_capability
	.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
	mov	x19, x0
	bl	_hclge_convert_setting_fec
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _HNAE3_MEDIA_TYPE_BACKPLANE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HNAE3_MEDIA_TYPE_BACKPLANE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	x9, [x19, #8]
Lloh3:
	adrp	x10, _HNAE3_MODULE_TYPE_UNKNOWN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _HNAE3_MODULE_TYPE_UNKNOWN@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _HNAE3_MODULE_TYPE_KR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HNAE3_MODULE_TYPE_KR@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh8:
	adrp	x9, _HNAE3_MEDIA_TYPE_COPPER@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HNAE3_MEDIA_TYPE_COPPER@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
Lloh11:
	adrp	x8, _HNAE3_MODULE_TYPE_TP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HNAE3_MODULE_TYPE_TP@GOTPAGEOFF]
LBB0_5:
	ldr	x8, [x8]
	str	x8, [x19, #8]
LBB0_6:
	ldr	w8, [x19, #16]
Lloh13:
	adrp	x9, _ETHTOOL_LINK_MODE_Autoneg_BIT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _ETHTOOL_LINK_MODE_Autoneg_BIT@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x9]
	ldr	w1, [x19, #24]
	cmp	w8, #1
	b.ne	LBB0_8
; %bb.7:
	bl	_linkmode_set_bit
	ldp	w0, w1, [x19, #20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_linkmode_copy
LBB0_8:
	bl	_linkmode_clear_bit
	ldr	w0, [x19, #20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_linkmode_zero
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_HNAE3_MEDIA_TYPE_BACKPLANE,8,3 ; @HNAE3_MEDIA_TYPE_BACKPLANE
	.comm	_HNAE3_MODULE_TYPE_UNKNOWN,8,3  ; @HNAE3_MODULE_TYPE_UNKNOWN
	.comm	_HNAE3_MODULE_TYPE_KR,8,3       ; @HNAE3_MODULE_TYPE_KR
	.comm	_HNAE3_MEDIA_TYPE_COPPER,8,3    ; @HNAE3_MEDIA_TYPE_COPPER
	.comm	_HNAE3_MODULE_TYPE_TP,8,3       ; @HNAE3_MODULE_TYPE_TP
	.comm	_ETHTOOL_LINK_MODE_Autoneg_BIT,4,2 ; @ETHTOOL_LINK_MODE_Autoneg_BIT
	.no_dead_strip	_hclge_update_port_capability
.subsections_via_symbols
