	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_update_port_info
_hclge_update_port_info:                ## @hclge_update_port_info
	.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	_HCLGE_MAC_SPEED_UNKNOWN@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movl	%eax, -28(%rbp)
	movq	16(%rdi), %rcx
	movq	_HNAE3_MEDIA_TYPE_COPPER@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_14
## %bb.1:
	movq	%rdi, %rbx
	cmpl	$0, (%rdi)
	je	LBB0_14
## %bb.2:
	leaq	16(%rbx), %r14
	movq	8(%rbx), %rax
	cmpl	$33, (%rax)
	jl	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_hclge_get_sfp_info
	jmp	LBB0_5
LBB0_4:
	leaq	-28(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_hclge_get_sfp_speed
LBB0_5:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	jne	LBB0_7
## %bb.6:
	movl	$0, (%rbx)
	jmp	LBB0_14
LBB0_7:
	testl	%eax, %eax
	jne	LBB0_14
## %bb.8:
	movq	8(%rbx), %rax
	cmpl	$33, (%rax)
	jl	LBB0_12
## %bb.9:
	movq	24(%rbx), %rax
	movq	_QUERY_ACTIVE_SPEED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	callq	_hclge_update_port_capability
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_12:
	movl	-28(%rbp), %esi
	movl	$0, %eax
	cmpl	(%r15), %esi
	jne	LBB0_13
	jmp	LBB0_14
LBB0_11:
	movl	32(%rbx), %esi
LBB0_13:
	movq	_HCLGE_MAC_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_hclge_cfg_mac_speed_dup
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGE_MAC_SPEED_UNKNOWN,4,2    ## @HCLGE_MAC_SPEED_UNKNOWN
	.comm	_HNAE3_MEDIA_TYPE_COPPER,8,3    ## @HNAE3_MEDIA_TYPE_COPPER
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_QUERY_ACTIVE_SPEED,8,3         ## @QUERY_ACTIVE_SPEED
	.comm	_HCLGE_MAC_FULL,4,2             ## @HCLGE_MAC_FULL
	.no_dead_strip	_hclge_update_port_info
.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_info
_hclge_update_port_info:                ; @hclge_update_port_info
	.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	x20, x0
	ldr	x8, [x20, #16]!
Lloh0:
	adrp	x21, _HCLGE_MAC_SPEED_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x21, [x21, _HCLGE_MAC_SPEED_UNKNOWN@GOTPAGEOFF]
	ldr	w9, [x21]
	str	w9, [sp, #12]
Lloh2:
	adrp	x9, _HNAE3_MEDIA_TYPE_COPPER@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HNAE3_MEDIA_TYPE_COPPER@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_12
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_12
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cmp	w8, #33
	b.lt	LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	bl	_hclge_get_sfp_info
	b	LBB0_5
LBB0_4:
	add	x1, sp, #12
	mov	x0, x19
	bl	_hclge_get_sfp_speed
LBB0_5:
Lloh5:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_7
; %bb.6:
	str	wzr, [x19]
	b	LBB0_13
LBB0_7:
	cbnz	w0, LBB0_13
; %bb.8:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cmp	w8, #33
	b.lt	LBB0_11
; %bb.9:
	ldr	x8, [x19, #24]
Lloh8:
	adrp	x9, _QUERY_ACTIVE_SPEED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _QUERY_ACTIVE_SPEED@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.10:
	mov	x0, x20
	bl	_hclge_update_port_capability
	mov	w0, #0
	b	LBB0_13
LBB0_11:
	ldr	w1, [sp, #12]
	ldr	w8, [x21]
	cmp	w1, w8
	b.ne	LBB0_15
LBB0_12:
	mov	w0, #0
LBB0_13:
	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
LBB0_14:
	ldr	w1, [x19, #32]
LBB0_15:
Lloh11:
	adrp	x8, _HCLGE_MAC_FULL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HCLGE_MAC_FULL@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_hclge_cfg_mac_speed_dup
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGE_MAC_SPEED_UNKNOWN,4,2    ; @HCLGE_MAC_SPEED_UNKNOWN
	.comm	_HNAE3_MEDIA_TYPE_COPPER,8,3    ; @HNAE3_MEDIA_TYPE_COPPER
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_QUERY_ACTIVE_SPEED,8,3         ; @QUERY_ACTIVE_SPEED
	.comm	_HCLGE_MAC_FULL,4,2             ; @HCLGE_MAC_FULL
	.no_dead_strip	_hclge_update_port_info
.subsections_via_symbols
