	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_check_port_speed
_hclge_check_port_speed:                ## @hclge_check_port_speed
	.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
	movl	%esi, %ebx
	callq	_hclge_get_vport
	addl	$-128, %ebx
	cmpl	$8, %ebx
	jae	LBB0_2
## %bb.1:
	movq	(%rax), %rcx
	movslq	%ebx, %rax
	leaq	l_switch.table.hclge_check_port_speed(%rip), %rdx
	movq	(%rdx,%rax,8), %rax
	movl	(%rax), %edx
	xorl	%eax, %eax
	testl	%edx, (%rcx)
	jne	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGE_SUPPORT_10M_BIT,4,2      ## @HCLGE_SUPPORT_10M_BIT
	.comm	_HCLGE_SUPPORT_100M_BIT,4,2     ## @HCLGE_SUPPORT_100M_BIT
	.comm	_HCLGE_SUPPORT_1G_BIT,4,2       ## @HCLGE_SUPPORT_1G_BIT
	.comm	_HCLGE_SUPPORT_10G_BIT,4,2      ## @HCLGE_SUPPORT_10G_BIT
	.comm	_HCLGE_SUPPORT_25G_BIT,4,2      ## @HCLGE_SUPPORT_25G_BIT
	.comm	_HCLGE_SUPPORT_40G_BIT,4,2      ## @HCLGE_SUPPORT_40G_BIT
	.comm	_HCLGE_SUPPORT_50G_BIT,4,2      ## @HCLGE_SUPPORT_50G_BIT
	.comm	_HCLGE_SUPPORT_100G_BIT,4,2     ## @HCLGE_SUPPORT_100G_BIT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_hclge_check_port_speed
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.hclge_check_port_speed
l_switch.table.hclge_check_port_speed:
	.quad	_HCLGE_SUPPORT_50G_BIT
	.quad	_HCLGE_SUPPORT_40G_BIT
	.quad	_HCLGE_SUPPORT_25G_BIT
	.quad	_HCLGE_SUPPORT_1G_BIT
	.quad	_HCLGE_SUPPORT_10M_BIT
	.quad	_HCLGE_SUPPORT_10G_BIT
	.quad	_HCLGE_SUPPORT_100M_BIT
	.quad	_HCLGE_SUPPORT_100G_BIT

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_check_port_speed
_hclge_check_port_speed:                ; @hclge_check_port_speed
	.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, x1
	bl	_hclge_get_vport
	sub	w8, w19, #128
	cmp	w8, #8
	b.hs	LBB0_3
; %bb.1:
	ldr	x9, [x0]
	ldr	w9, [x9]
Lloh0:
	adrp	x10, l_switch.table.hclge_check_port_speed@PAGE
Lloh1:
	add	x10, x10, l_switch.table.hclge_check_port_speed@PAGEOFF
	ldr	x8, [x10, w8, sxtw #3]
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGE_SUPPORT_10M_BIT,4,2      ; @HCLGE_SUPPORT_10M_BIT
	.comm	_HCLGE_SUPPORT_100M_BIT,4,2     ; @HCLGE_SUPPORT_100M_BIT
	.comm	_HCLGE_SUPPORT_1G_BIT,4,2       ; @HCLGE_SUPPORT_1G_BIT
	.comm	_HCLGE_SUPPORT_10G_BIT,4,2      ; @HCLGE_SUPPORT_10G_BIT
	.comm	_HCLGE_SUPPORT_25G_BIT,4,2      ; @HCLGE_SUPPORT_25G_BIT
	.comm	_HCLGE_SUPPORT_40G_BIT,4,2      ; @HCLGE_SUPPORT_40G_BIT
	.comm	_HCLGE_SUPPORT_50G_BIT,4,2      ; @HCLGE_SUPPORT_50G_BIT
	.comm	_HCLGE_SUPPORT_100G_BIT,4,2     ; @HCLGE_SUPPORT_100G_BIT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_hclge_check_port_speed
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.hclge_check_port_speed
l_switch.table.hclge_check_port_speed:
	.quad	_HCLGE_SUPPORT_50G_BIT
	.quad	_HCLGE_SUPPORT_40G_BIT
	.quad	_HCLGE_SUPPORT_25G_BIT
	.quad	_HCLGE_SUPPORT_1G_BIT
	.quad	_HCLGE_SUPPORT_10M_BIT
	.quad	_HCLGE_SUPPORT_10G_BIT
	.quad	_HCLGE_SUPPORT_100M_BIT
	.quad	_HCLGE_SUPPORT_100G_BIT

.subsections_via_symbols
